/* ============================================================
   Dugout Labs — Styles
   Dark/Light mode via prefers-color-scheme + CSS variables
   Mobile-first responsive layout
============================================================ */

/* ---- Dark mode (default) — Navy theme ---- */
:root {
  --bg:           #0d1f3c;
  --surface:      #0a1828;
  --card:         #0f2744;
  --border:       #1e3a6e;
  --text:         #f0f6ee;
  --text-muted:   #8a9bb0;
  --accent:       #1a56db;
  --accent-light: #4d7fe8;
  --accent-dim:   #0e3a9e;
  --good:         #1a56db;
  --warn:         #e3a935;
  --poor:         #c0392b;
  --overlay:      rgba(0,0,0,0.75);
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 16px rgba(0,0,0,0.6);
  --row-hover:    rgba(26,86,219,0.08);
  --nav-h:        52px;
  --bar-h:        56px;
}
 
/* ---- Light mode — clean navy/blue on white ---- */
@media (prefers-color-scheme: light) {
  :root {
    --bg:           #f0f4f9;
    --surface:      #ffffff;
    --card:         #ffffff;
    --border:       #d0daea;
    --text:         #0d1f3c;
    --text-muted:   #5a7a9b;
    --accent:       #1a56db;
    --accent-light: #1a4dba;
    --accent-dim:   #e8f0fc;
    --good:         #1a4dba;
    --warn:         #b86e00;
    --poor:         #c0392b;
    --overlay:      rgba(0,0,0,0.45);
    --shadow:       0 2px 12px rgba(13,31,60,0.12);
    --row-hover:    rgba(26,86,219,0.06);
  }

}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--accent-light); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-light); }
textarea { resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237aab74' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ---- Auth Screen ---- */
.auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.auth-brand { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.auth-tagline { font-size: 13px; color: var(--text-muted); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 10px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  min-height: 44px; /* iOS tap target */
}
.auth-tab.active { color: var(--accent-light); border-bottom-color: var(--accent-light); }
.auth-error { font-size: 13px; color: var(--poor); padding: 8px 0 4px; }

/* ---- App Shell ---- */
#app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* ---- Top Bar ---- */
.top-bar {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  min-height: var(--bar-h);
}
.top-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
  /* 44×44 minimum tap target */
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { color: var(--text); background: var(--card); }

/* ---- Top Nav (scrollable pill-style) ---- */
.top-nav {
  order: 1;
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: var(--nav-h);
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}
.top-nav::-webkit-scrollbar { display: none; }

.nav-item {
  background: none;
  border: none;
  border-radius: 20px;
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
  /* 44px tall tap target */
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover:not(:disabled) { color: var(--text); background: var(--card); }
.nav-item:disabled { opacity: .35; cursor: default; }
.nav-item.active {
  color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

/* ---- Page Container ---- */
.page-container {
  order: 2;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.page {
  display: none;
  padding: 14px 14px 32px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.page.active { display: block; }

/* ---- Typography ---- */
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.muted-label { font-size: 13px; color: var(--text-muted); }
.good { color: var(--good); }
.warn { color: var(--warn); }
.poor { color: var(--poor); }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-primary.small { padding: 8px 14px; font-size: 13px; min-height: 38px; }
.btn-primary.full  { width: 100%; padding: 14px; font-size: 16px; margin-top: 4px; min-height: 50px; }

.btn-outline {
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  transition: border-color .15s, color .15s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-outline.small { padding: 7px 12px; font-size: 13px; min-height: 38px; }

.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.btn-ai:hover { background: var(--card); }
.btn-ai:disabled { opacity: .5; cursor: default; }
.btn-danger {
  background: #991b1b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; }
.btn-danger.small { padding: 6px 12px; font-size: 13px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card-list { display: flex; flex-direction: column; gap: 10px; }

/* ---- Team Card ---- */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.team-card:hover { border-color: var(--accent-light); }
.team-card:active { transform: scale(0.98); }
.team-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.team-card-info { flex: 1; min-width: 0; }
.team-card-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.team-card-record { font-size: 15px; font-weight: 600; color: var(--accent-light); flex-shrink: 0; }

/* ---- Team Header ---- */
.team-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.team-header .meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.team-header .record { font-size: 14px; color: var(--accent-light); margin-top: 2px; font-weight: 600; }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-light); border-bottom-color: var(--accent-light); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tabs-inner {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.tab-inner {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 500;
  transition: color .15s, border-color .15s;
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.tab-inner.active { color: var(--accent-light); border-bottom-color: var(--accent-light); }

/* ---- Player Row ---- */
.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px; /* comfortable touch target */
}
.player-row:hover { border-color: var(--accent-light); background: var(--row-hover); }
.player-row:active { transform: scale(0.98); }
.player-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.player-info { flex: 1; min-width: 0; }
.player-name { font-size: 15px; font-weight: 500; }
.player-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.player-avg  { font-size: 16px; font-weight: 600; flex-shrink: 0; min-width: 40px; text-align: right; }
.position-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ---- Game Row ---- */
.game-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color .15s;
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
}
.game-row:hover { border-color: var(--accent-light); }
.game-result { font-size: 17px; font-weight: 700; flex-shrink: 0; }
.game-info .game-opponent { font-size: 14px; font-weight: 500; }
.game-info .game-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---- Stat Grid ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
  font-weight: 600;
}
.stat-value { font-size: 20px; font-weight: 700; color: var(--text); }

/* ---- Game Log Stat Entry ---- */
.stat-entry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.stat-entry-name {
  font-size: 15px; font-weight: 600;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.stat-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-input-group label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.stat-input-group input {
  padding: 10px 8px;
  font-size: 16px;
  text-align: center;
}

/* ---- Player Detail ---- */
.player-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.player-detail-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ---- AI Output ---- */
.ai-response {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  margin-top: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ai-thinking {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.loading-dots::after {
  content: '...';
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
  0%,20%  { content: '.';  }
  40%     { content: '..'; }
  60%,100%{ content: '...'; }
}

/* ---- Forms ---- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row { display: flex; align-items: flex-end; gap: 8px; }
.form-row.gap { gap: 12px; }

/* ---- Page Header ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

/* ---- Modals — slide up from bottom on mobile ---- */
.modal {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 520px) {
  .modal { align-items: center; padding: 24px; }
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  /* drag handle hint */
  background-image: linear-gradient(to bottom, var(--border) 3px, transparent 3px);
  background-size: 40px 3px;
  background-repeat: no-repeat;
  background-position: center 10px;
  padding-top: 26px;
}
@media (min-width: 520px) {
  .modal-card {
    border-radius: var(--radius);
    padding: 24px 20px;
    background-image: none;
  }
}
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
/* Full-width modal buttons on small screens */
@media (max-width: 380px) {
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn-outline,
  .modal-actions .btn-primary { width: 100%; text-align: center; }
}

/* ---- Overlay Menu ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.overlay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  width: 100%;
  max-width: 480px;
}
.menu-item {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px;
  font-size: 15px;
  margin-bottom: 10px;
  text-align: center;
  transition: background .15s;
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
}
.menu-item:hover { background: var(--card); }
.menu-item.cancel { color: var(--text-muted); margin-bottom: 0; }

/* ---- Spray Chart ---- */
.spray-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}
.spray-container canvas {
  max-width: 100%;
  height: auto;
  touch-action: manipulation; /* prevents scroll interfering with taps */
}
.spray-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}
.dot-sample {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}

/* ---- Spray page controls — stack on small screens ---- */
#page-spray .page-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
#page-spray .page-header h2 { margin-bottom: 0; }
.spray-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.spray-controls select { flex: 1; min-width: 110px; max-width: 160px; }

/* ---- Empty & Loading State ---- */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 20px;
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Responsive breakpoints ---- */
@media (min-width: 480px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-input-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 600px) {
  .stat-grid { grid-template-columns: repeat(5, 1fr); }
  .stat-input-grid { grid-template-columns: repeat(5, 1fr); }
  .page { padding: 20px 20px 40px; }
  .stat-value { font-size: 22px; }
  #page-spray .page-header { flex-direction: row; align-items: center; }
}
@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(6, 1fr); }
  .top-nav {
    padding: 0 12px;
    gap: 2px;
  }
  .nav-item { padding: 10px 16px; font-size: 13px; }
}

/* ---- Very small phones (< 360px) ---- */
@media (max-width: 359px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 18px; }
  .nav-item { padding: 8px 10px; font-size: 12px; }
  .tabs .tab { padding: 10px 10px; font-size: 12px; }
  
}
/* ---- Lineup number badge (replaces avatar in lineup rows) ---- */
.lineup-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
 
/* ---- Roster section header (Batting Order / Bench) ---- */
.roster-section-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 14px 4px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.roster-section-header:first-child {
  padding-top: 0;
}
 
/* ---- Game log section header ---- */
.game-log-section-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.game-log-section-header:first-child {
  padding-top: 0;
}
 
/* ---- Stat section label inside entry card (Batting / Pitching) ---- */
.stat-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#page-player {
  display: block !important;
}

#player-detail-content {
  display: block !important;
  width: 100% !important;
}

#player-detail-content > .card,
#player-detail-content > .rc-card,
#player-detail-content > .trend-card {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  min-width: 0 !important;
  margin-bottom: 12px !important;
}
  
  /* Hide watermark logo on mobile */
@media (max-width: 768px) {
  #watermark-logo { display: none !important; }
}
.signup-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
 
.signup-plan-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  transition: border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.signup-plan-card:hover { border-color: var(--accent); }
.signup-plan-card.selected { border-color: var(--accent-light); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.signup-plan-card.popular { border-color: var(--accent); }
 
.signup-plan-popular {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--accent-light);
  margin-bottom: 3px;
}
.signup-plan-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.signup-plan-price { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.signup-plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.signup-plan-features li { font-size: 11px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 5px; line-height: 1.3; }
.signup-plan-features li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); border: 1.5px solid var(--accent); flex-shrink: 0; margin-top: 1px; }
 
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.auth-tab { flex: 1; padding: 10px; text-align: center; font-size: 14px; font-weight: 500; color: var(--text-muted); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--accent-light); border-bottom-color: var(--accent-light); }
.parent-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
 
.parent-linked-badge {
  font-size: 10px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-light);
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: 4px;
}
 
.parent-pickup-badge {
  font-size: 10px;
  font-weight: 700;
  background: color-mix(in srgb, var(--warn) 15%, transparent);
  color: var(--warn);
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: 4px;
}