@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-border: #ece7e0;
  --color-border-strong: #ddd5c9;
  --color-text: #1c1410;
  --color-text-muted: #6b5f54;
  --color-text-faint: #a89d8f;

  /* Athletic orange + navy blue */
  --color-primary: #ff5a1f;
  --color-primary-light: #ff8a4d;
  --color-primary-dark: #d6440f;
  --color-blue: #1d4ed8;
  --color-blue-dark: #14328f;
  --color-navy: #10193a;

  --gradient-primary: linear-gradient(180deg, #ff8a4d 0%, #ff5a1f 55%, #e6480f 100%);
  --gradient-primary-hover: linear-gradient(180deg, #ff9a63 0%, #ff6a2e 55%, #f1520f 100%);
  --gradient-brand: linear-gradient(135deg, #ff8a4d 0%, #ff5a1f 55%, #d6440f 100%);
  --gradient-panel: linear-gradient(160deg, #ff7a33 0%, #ff5a1f 45%, #d6440f 100%);
  --gradient-blue: linear-gradient(180deg, #3b6cf0 0%, #1d4ed8 55%, #1638a8 100%);
  --gradient-blue-hover: linear-gradient(180deg, #5680f5 0%, #2c5be0 55%, #1d4ed8 100%);

  --color-success-bg: #ecfdf3;
  --color-success-text: #067647;
  --color-success-border: #abefc6;
  --color-error-bg: #fef3f2;
  --color-error-text: #b42318;
  --color-error-border: #fecdca;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 20, 16, 0.06);
  --shadow-md: 0 4px 14px rgba(28, 20, 16, 0.08), 0 1px 2px rgba(28, 20, 16, 0.04);
  --shadow-lg: 0 16px 40px rgba(28, 20, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html { max-width: 100%; overflow-x: hidden; }
body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-feature-settings: 'calt' 1, 'cv02' 1, 'cv03' 1, 'cv04' 1;
  font-variation-settings: 'calt' 1, 'cv02' 1, 'cv03' 1, 'cv04' 1;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Icons (Google Material Symbols) ---------- */
.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}
.icon-sm { font-size: 16px; }
.icon-lg { font-size: 26px; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

p { margin: 0 0 12px; color: var(--color-text-muted); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons (Cloudflare-style: light top, dark bottom, crisp outline) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(180deg, #ff8149 0%, #ff5a1f 60%, #f0510f 100%);
  color: #fff;
  border: 1px solid rgba(198, 63, 12, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(28, 20, 16, 0.08),
    0 3px 8px rgba(230, 72, 15, 0.22);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff9160 0%, #ff6a2e 60%, #fa5b12 100%); }
.btn-primary:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; }

.btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f6 100%);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

.btn-blue {
  background: linear-gradient(180deg, #3d6ce8 0%, #1d4ed8 60%, #1a45c4 100%);
  color: #fff;
  border: 1px solid rgba(18, 42, 128, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(16, 25, 58, 0.1),
    0 3px 8px rgba(29, 78, 216, 0.24);
}
.btn-blue:hover { background: linear-gradient(180deg, #5680f0 0%, #2c5be0 60%, #1d4ed8 100%); }
.btn-blue:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover { color: var(--color-text); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

.btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}
.btn-secondary .btn-spinner {
  border-color: rgba(28, 20, 16, 0.18);
  border-top-color: var(--color-primary);
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Top nav ---------- */
.topnav {
  border-bottom: 1px solid var(--color-border);
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topnav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  height: 30px;
  width: auto;
  display: block;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 28px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.size-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.size-row input[type="text"] { flex: 1; }
.size-row input[type="number"] { width: 90px; }

.injury-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}

.injury-row {
  text-decoration: none;
  color: inherit;
}
.injury-row.unread { background: rgba(255, 90, 31, 0.05); }
.injury-row.unread .roster-name { font-weight: 800; }
.injury-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-right: 8px;
  vertical-align: middle;
}
.injury-attention-tag {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-color: var(--color-error-border);
}

.injury-attention-banner-stack { display: flex; flex-direction: column; }
.injury-attention-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-bottom: 1px solid var(--color-error-border);
  font-size: 13.5px;
  font-weight: 600;
}
.injury-attention-banner-text { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.injury-attention-banner [data-dismiss-attention] { margin-left: auto; }

.injury-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.injury-status-open { background: var(--color-success-bg); color: var(--color-success-text); border-color: var(--color-success-border); }
.injury-status-closed { background: var(--color-bg); color: var(--color-text-muted); }

.injury-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.injury-comments { display: flex; flex-direction: column; gap: 14px; }
.injury-comment {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.injury-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.injury-comment-author { font-weight: 700; font-size: 13.5px; }
.injury-comment-edit-form textarea { width: 100%; }

.issue-title-input { font-size: 27px; font-weight: 800; letter-spacing: -0.01em; width: 100%; }

.issue-layout { display: grid; grid-template-columns: 1fr 296px; gap: 28px; align-items: start; margin-top: 20px; }
@media (max-width: 900px) { .issue-layout { grid-template-columns: 1fr; } }

.issue-main { min-width: 0; }

.issue-edit-actions { display: flex; gap: 8px; margin: -14px 0 20px; }
.issue-edit-actions[hidden] { display: none; }

.issue-add-comment { margin-top: 20px; }

.issue-sidebar { display: flex; flex-direction: column; }
.issue-sidebar-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.issue-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-faint);
  margin-bottom: 8px;
}
.issue-sidebar-header .btn-link-inline { font-size: 12px; text-transform: none; letter-spacing: normal; }

.issue-contributors { display: flex; flex-wrap: wrap; gap: 6px; }

.checkout-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-roster { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 74vh; }
.checkout-roster-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.checkout-roster-item {
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.checkout-roster-item:hover { background: var(--color-bg); }
.checkout-roster-item.active { background: var(--gradient-brand); color: #fff; }

.checkout-items { padding: 26px; min-height: 320px; min-width: 0; }
.checkout-items-header { margin-bottom: 22px; }
.checkout-items-header h3 { margin: 0 0 4px; font-size: 19px; }

.checkout-item-group { margin-bottom: 22px; }
.checkout-item-group:last-child { margin-bottom: 0; }
.checkout-item-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.checkout-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.checkout-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.checkout-chip:hover:not(:disabled) { border-color: var(--color-primary); }
.checkout-chip.checked { border-color: transparent; background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-sm); }
.checkout-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.checkout-chip-count { font-size: 11.5px; font-weight: 600; color: var(--color-text-faint); }
.checkout-chip.checked .checkout-chip-count { color: rgba(255, 255, 255, 0.85); }

.inventory-progress { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.inventory-progress-track {
  width: 120px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.inventory-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--gradient-panel);
}
.inventory-progress-pct { font-size: 13px; font-weight: 700; color: var(--color-text-muted); width: 38px; text-align: right; }

.item-checkouts-sizes { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 16px; border-bottom: 1px solid var(--color-border); margin-bottom: 12px; }
.inventory-progress-row { display: flex; align-items: center; gap: 12px; }
.inventory-progress-row-label { font-size: 13.5px; font-weight: 700; width: 84px; flex-shrink: 0; }
.inventory-progress-row .roster-meta { margin-left: auto; white-space: nowrap; }
.item-checkouts-list-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-faint); margin: 0 0 8px; }

@media (max-width: 480px) {
  .modal-card { padding: 22px 18px 26px; }
  .inventory-progress-row { flex-wrap: wrap; row-gap: 4px; }
  .inventory-progress-row-label { width: 100%; }
  .inventory-progress-row .inventory-progress { flex: 1; min-width: 0; }
  .inventory-progress-row .roster-meta { margin-left: 0; }
  .inventory-progress-track { width: auto; flex: 1; }

}

.sport-chip-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 2px;
}
.sport-chip-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.sport-chip-option:hover { border-color: var(--color-primary); color: var(--color-text); }
.sport-chip-option input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sport-chip-check { display: none; }
.sport-chip-option:has(input:checked) .sport-chip-check { display: inline-flex; }
.sport-chip-option:has(input:checked) {
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.sport-chip-option.boys:has(input:checked) { background: var(--gradient-blue); }
.sport-chip-option.girls:has(input:checked) { background: var(--gradient-panel); }
.sport-chip-option.unified:has(input:checked) { background: linear-gradient(160deg, #6b7280 0%, #3f4756 100%); }
label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 44px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.14);
}
input::placeholder { color: var(--color-text-faint); }
input:disabled { background: var(--color-bg); color: var(--color-text-faint); cursor: not-allowed; }
.hint { font-size: 12.5px; color: var(--color-text-faint); margin-top: 6px; }

/* ---------- Custom color picker ---------- */
.color-picker { position: relative; }

.color-picker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}
.color-picker-trigger:hover { border-color: var(--color-primary); }

.color-picker-swatch {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(28, 20, 16, 0.12);
  flex-shrink: 0;
}
.color-picker-hexlabel {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.color-picker-chevron { margin-left: auto; color: var(--color-text-faint); font-size: 11px; }

.color-picker-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: 220px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.color-picker-sv {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  background-image:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, transparent);
  cursor: crosshair;
  touch-action: none;
  margin-bottom: 14px;
}
.color-picker-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(28, 20, 16, 0.35), var(--shadow-sm);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.color-picker-hue {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
  touch-action: none;
  margin-bottom: 14px;
}
.color-picker-hue-cursor {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(28, 20, 16, 0.35), var(--shadow-sm);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.color-picker-hex-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-faint);
}
.color-picker-hex-row input {
  border: none;
  padding: 0;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
}
.color-picker-hex-row input:focus { box-shadow: none; }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-color: var(--color-success-border);
}
.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-color: var(--color-error-border);
}

/* ---------- Auth pages: simple centered wrap (verify / 404) ---------- */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

/* ---------- Auth pages: split screen ---------- */
.auth-split {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 48px max(32px, calc((100vw - 1280px) / 2 + 24px));
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-header { margin-bottom: 26px; }
.auth-header h1 { font-size: 26px; }
.auth-footer-link {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.auth-footer-link a { color: var(--color-primary-dark); font-weight: 700; }

.btn-link-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
}
.btn-link-inline:hover { text-decoration: underline; }

/* ---------- OTP code input ---------- */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.otp-box {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  padding: 0;
}

.auth-panel {
  position: relative;
  background: var(--gradient-panel);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
}
.auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 78% 30%, black 0%, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 78% 30%, black 0%, black 35%, transparent 78%);
  opacity: 0.9;
}
.auth-panel-top {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.auth-panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 25, 58, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 700;
}
.auth-panel-body { position: relative; max-width: 380px; }
.auth-panel-body h2 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 14px;
}
.auth-panel-body p { color: rgba(255, 255, 255, 0.86); font-size: 15px; }
.auth-panel-tag {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

/* ---------- Marketing / home ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #fff2ea;
  border: 1px solid #ffd7bc;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 22px;
}
.eyebrow .eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
}
.hero h1 {
  font-size: 54px;
  max-width: 800px;
  margin: 0 auto 18px;
  line-height: 1.06;
}
.hero .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.hero-shot {
  position: relative;
  max-width: 900px;
  margin: 116px auto 0;
}
.hero-shot-glow {
  position: absolute;
  inset: -3% -6% 6% -6%;
  background: var(--gradient-brand);
  border-radius: 32px;
  filter: blur(2px);
  opacity: 0.16;
  z-index: 0;
}
.hero-shot-frame { position: relative; z-index: 1; transform: none; }

/* ---------- Floating screenshot frames ---------- */
.showcase-shot-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.showcase-shot-chrome {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.showcase-shot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); }
.showcase-shot-frame img { display: block; width: 100%; height: auto; background: var(--color-bg); }

/* ---------- Feature showcase (alternating text/screenshot) ---------- */
.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 12px 0 20px;
}
.showcase-strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.showcase-strip-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-border-strong); }
.showcase-strip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.showcase-strip-icon.orange { background: var(--gradient-brand); }
.showcase-strip-icon.blue { background: var(--gradient-blue); }
.showcase-strip-value { font-size: 22px; font-weight: 800; color: var(--color-text); letter-spacing: -0.01em; line-height: 1.2; }
.showcase-strip-label { font-size: 13px; font-weight: 600; color: var(--color-text-muted); margin-top: 1px; }

.showcase-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
}
.showcase-section.flip .showcase-media { order: -1; }

.showcase-eyebrow-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.showcase-eyebrow-icon.orange { background: var(--gradient-brand); }
.showcase-eyebrow-icon.blue { background: var(--gradient-blue); }

.showcase-text h2 { font-size: 29px; margin-bottom: 12px; line-height: 1.16; }
.showcase-text p { font-size: 15.5px; margin-bottom: 20px; }
.showcase-list { display: flex; flex-direction: column; gap: 11px; padding: 0; margin: 0; list-style: none; }
.showcase-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; }
.showcase-list .icon-sm {
  flex-shrink: 0;
  margin-top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff2ea;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.showcase-media { position: relative; }
.showcase-backdrop {
  position: absolute;
  inset: 20px -20px -20px 20px;
  border-radius: 26px;
  z-index: 0;
}
.showcase-section.flip .showcase-backdrop { inset: 20px 20px -20px -20px; }
.showcase-backdrop.orange { background: var(--gradient-brand); }
.showcase-backdrop.blue { background: var(--gradient-blue); }
.showcase-media .showcase-shot-frame { position: relative; z-index: 1; transform: rotate(-1deg); }
.showcase-section.flip .showcase-media .showcase-shot-frame { transform: rotate(1deg); }

.cta-band {
  margin: 0 0 96px;
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  color: #fff;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 20% 20%, black 0%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 20% 20%, black 0%, black 25%, transparent 70%);
}
.cta-band h2 { position: relative; font-size: 28px; margin-bottom: 8px; }
.cta-band p { position: relative; color: rgba(255, 255, 255, 0.86); max-width: 420px; margin: 0 auto 22px; }
.cta-band .btn { position: relative; }

footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  text-align: center;
  color: var(--color-text-faint);
  font-size: 13px;
}

/* ---------- Admin shell ---------- */
.admin-shell { display: flex; min-height: calc(100vh - 68px); }
.admin-sidebar {
  width: 248px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  padding: 24px 16px;
  background: var(--color-surface);
}
.admin-sidebar .school-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.admin-sidebar .school-chip .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-border);
  flex-shrink: 0;
}
.admin-sidebar .school-chip .name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.admin-sidebar .school-chip .state {
  font-size: 11.5px;
  color: var(--color-text-faint);
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.side-link:hover { background: var(--color-bg); color: var(--color-text); }
.side-link.active { background: #fff2ea; color: var(--color-primary-dark); }
.side-link .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-border-strong);
  flex-shrink: 0;
}
.side-link.active .dot { background: var(--color-primary); }
.side-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 20px 0 8px 12px;
}

.sidebar-logout-form { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--color-border); }
.sidebar-logout-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.sidebar-logout-btn:hover { color: var(--color-error-text); }

.admin-main { flex: 1; min-width: 0; padding: 32px 40px 60px; max-width: 1040px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.admin-header h1 { font-size: 26px; }
.admin-header p { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 20px; }
.stat-card .label { font-size: 12.5px; font-weight: 700; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 6px; }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-card .badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
}

.dashboard-card-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.dashboard-card-stats strong { color: var(--color-text); font-weight: 800; }

.logo-preview {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: cover;
  background: var(--color-bg);
}
.logo-upload-row { display: flex; align-items: center; gap: 18px; }

.file-input-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-surface);
}
.file-input-btn:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.file-input-btn input[type="file"] { display: none; }

/* ---------- File upload dropzone ---------- */
.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 28px 20px;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-upload input[type="file"] { display: none; }
.file-upload:hover,
.file-upload.dragover { border-color: var(--color-primary); background: #fff2ea; }
.file-upload-icon { color: var(--color-text-faint); margin-bottom: 4px; }
.file-upload:hover .file-upload-icon,
.file-upload.dragover .file-upload-icon,
.file-upload.has-file .file-upload-icon { color: var(--color-primary); }
.file-upload-title { font-size: 13.5px; font-weight: 700; color: var(--color-text); }
.file-upload-title .accent { color: var(--color-primary-dark); }
.file-upload-hint { font-size: 12px; color: var(--color-text-faint); }
.file-upload.has-file .file-upload-hint { color: var(--color-primary-dark); font-weight: 600; word-break: break-all; }

.section-divider { border: none; border-top: 1px solid var(--color-border); margin: 28px 0; }

/* ---------- Teams page ---------- */
.teams-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 20px;
}
.toolbar-search { flex: 1; max-width: 280px; }
.season-select {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 5px 30px 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-faint);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-faint) 50%), linear-gradient(135deg, var(--color-text-faint) 50%, transparent 50%);
  background-position: calc(100% - 15px) center, calc(100% - 10px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.season-select:hover { color: var(--color-text); border-color: var(--color-border-strong); }

.archive-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #fff2ea;
  border: 1px solid #ffd7bc;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.team-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.team-card:hover { box-shadow: var(--shadow-md); }

.team-card-banner {
  position: relative;
  height: 128px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  overflow: hidden;
}
.team-card-banner.boys { background: var(--gradient-blue); }
.team-card-banner.girls { background: var(--gradient-panel); }
.team-card-banner.unified { background: linear-gradient(160deg, #6b7280 0%, #3f4756 100%); }
.team-card-banner.inventory { background: var(--gradient-blue); }

.team-card-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 85% 15%, black 0%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 85% 15%, black 0%, black 25%, transparent 75%);
}
.team-card-banner > * { position: relative; }

.gender-tag-overlay {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
}

.team-card-body { padding: 16px 18px 18px; }
.team-card-body h3 { font-size: 21px; margin: 0 0 4px; line-height: 1.15; }
.team-athlete-count { margin: 0; font-size: 13.5px; color: var(--color-text-faint); font-weight: 600; }

/* ---------- Card overflow menu ---------- */
.card-menu { position: relative; }
.card-menu-trigger {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.card-menu-trigger:hover { background: rgba(255, 255, 255, 0.34); }

.card-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 25;
}
.card-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
}
.card-menu-item:hover { background: var(--color-bg); }
.card-menu-item.danger { color: var(--color-error-text); }
.card-menu-item.danger:hover { background: var(--color-error-bg); }
.card-menu form { margin: 0; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 16, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px 32px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-header h3 { font-size: 19px; margin: 0; }
.modal-close {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close .icon { font-size: 18px; }
.modal-close:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.modal-section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 4px 0 12px;
}
.modal-info-box {
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.modal-info-box p { font-size: 12.5px; color: var(--color-text-muted); }

/* ---------- Athlete autocomplete ---------- */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: -14px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.autocomplete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}
.autocomplete-row:last-child { border-bottom: none; }
.autocomplete-row:hover { background: var(--color-bg); }
.autocomplete-name { font-size: 13.5px; font-weight: 700; color: var(--color-text); }
.autocomplete-email { font-size: 12px; color: var(--color-text-faint); }
.autocomplete-empty { padding: 12px; font-size: 12.5px; color: var(--color-text-faint); text-align: center; }

/* ---------- Tabs (team detail, Classroom-style) ---------- */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}
.tab-link {
  padding: 10px 4px;
  margin-right: 22px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-link:hover { color: var(--color-text); }
.tab-link.active { color: var(--color-primary-dark); border-bottom-color: var(--color-primary); }

/* ---------- Roster rows ---------- */
.roster-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}
.roster-row:last-child { border-bottom: none; }
.roster-row-clickable { cursor: pointer; transition: background 0.1s ease; }
.roster-row-clickable:hover { background: var(--color-bg); }
.roster-row:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.roster-row:last-child { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.roster-row > div:first-child { flex: 1; min-width: 0; }
.roster-name { font-weight: 700; font-size: 14px; }
.roster-meta { font-size: 13px; color: var(--color-text-muted); }
.roster-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.athlete-teams { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 6px; flex: 1; min-width: 160px; }
.team-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}
.team-chip.boys { background: #eef2ff; color: var(--color-blue-dark); border-color: #d3ddfb; }
.team-chip.girls { background: #fff2ea; color: var(--color-primary-dark); border-color: #ffd7bc; }
.team-chip.unified { background: var(--color-bg); color: var(--color-text-muted); border-color: var(--color-border); }
.team-chip:hover { filter: brightness(0.96); }
.no-teams-label { font-size: 12.5px; color: var(--color-text-faint); font-style: italic; }

.btn-icon-danger {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-error-border);
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-icon-danger:hover { background: var(--color-error-text); color: #fff; border-color: var(--color-error-text); }

.btn-icon-neutral {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-icon-neutral:hover { background: var(--color-bg); color: var(--color-text); border-color: var(--color-primary); }

code {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12.5px;
}

/* ---------- Compliance form builder (full page, Forms-style) ---------- */
.builder-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .builder-topbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .builder-actions { flex-direction: column; align-items: stretch; }
  .builder-actions .btn { width: 100%; }
}

.team-name-edit-form { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.team-name-edit-form[hidden] { display: none; }

.forms-builder-layout { display: flex; align-items: flex-start; gap: 20px; }
.forms-builder-content { flex: 1; min-width: 0; max-width: 720px; }

.forms-builder-toolbar {
  width: 52px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-md);
}
.toolbar-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toolbar-btn:hover { background: var(--color-bg); color: var(--color-primary-dark); }

.forms-header-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.forms-header-card .forms-title-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 6px 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: transparent;
}
.forms-title-input:focus { border-bottom-color: var(--color-primary); box-shadow: none; }
.forms-header-card .forms-desc-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 6px 0;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--color-text-muted);
  background: transparent;
  resize: none;
  min-height: 26px;
  overflow: hidden;
}
.forms-desc-input:focus { border-bottom-color: var(--color-border-strong); box-shadow: none; }

@media (max-width: 480px) {
  .forms-header-card { padding: 20px 18px; }
  .forms-header-card .forms-title-input { font-size: 21px; }
}

#elementsContainer { display: flex; flex-direction: column; gap: 16px; }

.qcard {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.qcard:hover { box-shadow: var(--shadow-md); }
.qcard.dragging { opacity: 0.4; }
.qcard.qcard-textblock { border-left: 4px solid var(--color-blue); }
.qcard:not(.qcard-textblock) { border-left: 4px solid var(--color-primary); }

.qcard-draghandle {
  flex-shrink: 0;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  cursor: grab;
  border-right: 1px solid var(--color-border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.qcard-draghandle:hover { color: var(--color-text-muted); background: var(--color-bg); }
.qcard-draghandle:active { cursor: grabbing; }

.qcard-body { flex: 1; min-width: 0; padding: 20px 22px; }

.qcard-top { display: flex; gap: 12px; margin-bottom: 4px; }
.qcard-label {
  flex: 1;
  min-width: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 700;
}
.qcard-label:focus { border-bottom-color: var(--color-primary); box-shadow: none; }
.qcard-type { width: 180px; flex-shrink: 0; }

.qcard-heading { font-size: 17px; }
.qcard-content {
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 8px 2px 4px;
  font-size: 13.5px;
  color: var(--color-text-muted);
  resize: vertical;
  min-height: 40px;
}
.qcard-content:focus { box-shadow: none; }

.qcard-options { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--color-border); }
.qoption-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qoption-bullet { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--color-text-faint); flex-shrink: 0; }
.qoption-input { flex: 1; padding: 7px 10px; font-size: 13.5px; }
.qoption-remove {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--color-text-faint);
  font-size: 15px;
  cursor: pointer;
  border-radius: 50%;
}
.qoption-remove:hover { background: var(--color-bg); color: var(--color-error-text); }
.qcard-add-option {
  background: none;
  border: none;
  padding: 4px 0 4px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-faint);
  cursor: pointer;
}
.qcard-add-option:hover { color: var(--color-primary-dark); }

.qcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.qcard-actions { display: flex; align-items: center; gap: 4px; }
.qcard-icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--color-text-faint);
  font-size: 14.5px;
  cursor: pointer;
}
.qcard-icon-btn:hover { background: var(--color-bg); color: var(--color-text); }
.qcard-icon-btn.danger:hover { background: var(--color-error-bg); color: var(--color-error-text); }

.switch-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--color-text-muted); user-select: none; }
.switch-toggle input { display: none; }
.switch-track {
  width: 34px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  position: relative;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}
.switch-toggle input:checked + .switch-track { background: var(--color-primary); }
.switch-toggle input:checked + .switch-track .switch-thumb { transform: translateX(14px); }

.builder-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--color-text-faint);
  font-size: 13.5px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .forms-builder-layout { flex-direction: column; }
  .forms-builder-content { max-width: none; }
  .forms-builder-toolbar { position: static; flex-direction: row; width: auto; }
}

@media (max-width: 560px) {
  .qcard { flex-direction: column; }
  .qcard-draghandle { width: 100%; height: 26px; }
  .qcard-top { flex-wrap: wrap; row-gap: 8px; }
  .qcard-type { width: 100%; }
}

/* ---------- Signature pad ---------- */
.signature-pad-wrap { }
.signature-pad {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 160;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  cursor: crosshair;
  touch-action: none;
  display: block;
}
.signature-pad-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.signature-error { font-size: 12.5px; font-weight: 600; color: var(--color-error-text); }

/* ---------- Compliance results (admin) ---------- */
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results-search { max-width: 320px; }
.results-count { font-size: 13px; color: var(--color-text-faint); font-weight: 600; white-space: nowrap; }

/* ---------- List/card view toggle ---------- */
.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.view-toggle-btn {
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--color-text-faint);
  cursor: pointer;
}
.view-toggle-btn:hover { color: var(--color-text); }
.view-toggle-btn.active { background: var(--color-surface); color: var(--color-primary-dark); box-shadow: var(--shadow-sm); }

.result-row { border-bottom: 1px solid var(--color-border); }
.result-row:last-child { border-bottom: none; }
.result-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.result-summary > div:first-child { flex: 1; min-width: 0; }
.result-summary::-webkit-details-marker { display: none; }
.result-summary:hover { background: var(--color-bg); }
.result-row:first-child .result-summary { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.result-row:last-child .result-summary { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
details[open].result-row:last-child .result-summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.result-summary .chev { margin-left: auto; color: var(--color-text-faint); font-size: 12px; transition: transform 0.15s ease; }
details[open] .result-summary .chev { transform: rotate(90deg); }

@media (max-width: 640px) {
  .result-summary { flex-wrap: wrap; row-gap: 6px; }
  .result-summary > div:first-child { flex: 1 1 100%; }
  .result-summary .chev { margin-left: auto; }
}

.result-answers { padding: 4px 18px 18px 46px; }
.result-answer { padding: 10px 0; border-top: 1px solid var(--color-border); }
.result-answer:first-child { border-top: none; }
.result-answer-label { font-size: 12.5px; font-weight: 700; color: var(--color-text-faint); margin-bottom: 3px; }
.result-answer-value { font-size: 13.5px; color: var(--color-text); word-break: break-word; }
.result-answer-value img { max-width: 240px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }

/* ---------- Team compliance tab ---------- */
.compliance-item-card { border-bottom: 1px solid var(--color-border); padding: 16px 18px; }
.compliance-item-card:last-child { border-bottom: none; }
.compliance-item-top { display: flex; align-items: flex-start; gap: 14px; }
.compliance-item-info { flex: 1; min-width: 0; }
.compliance-item-info .roster-meta { margin-top: 2px; }
.compliance-item-links { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.compliance-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.compliance-roster-toggle {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}
.compliance-roster-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.compliance-roster-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.compliance-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--color-border-strong); }
.compliance-status-dot.done { background: #12b76a; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
}

.sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 640px) {
  .roster-row { flex-wrap: wrap; row-gap: 8px; }
  .roster-row > div:first-child { flex: 1 1 100%; }

  .teams-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-search { max-width: none; width: 100%; }
}

@media (max-width: 480px) {
  .topnav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
  .nav-actions { flex-wrap: wrap; justify-content: flex-end; }
  .auth-form-col { padding: 40px 20px; }
  .otp-row { gap: 6px; }
  .otp-box { width: 38px; height: 46px; font-size: 18px; }
}

@media (max-width: 860px) {
  .module-grid, .stat-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 24px 20px 48px; }
  .hero h1 { font-size: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .showcase-section, .showcase-section.flip { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .showcase-section .showcase-media, .showcase-section.flip .showcase-media { order: -1; }
  .showcase-backdrop, .showcase-section.flip .showcase-backdrop { inset: 14px -10px -10px 10px; }
  .showcase-strip { grid-template-columns: 1fr; }

  .nav-desktop-only { display: none; }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-sm);
    color: var(--color-text);
    cursor: pointer;
    flex-shrink: 0;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .admin-sidebar.open { transform: translateX(0); }

  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 25, 58, 0.35);
    z-index: 39;
  }
}
