/* SmartBaton — shared mockup stylesheet */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;
  --accent: #0d9488;
  --accent-soft: #f0fdfa;
  --accent-border: #99f6e4;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --ai: #7c3aed;
  --ai-soft: #f5f3ff;
  --ai-border: #ddd6fe;
  --manager: #2563eb;
  --leaver: #0d9488;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Mockup badge */
.mockup-badge {
  position: fixed;
  bottom: 14px;
  right: 16px;
  z-index: 9999;
  background: #1e293b;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

/* App shell */
.app {
  min-height: 900px;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--ai));
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.logo span.sub {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

.topbar-nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}

.topbar-nav a {
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
}

.topbar-nav a.active, .topbar-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--primary-border);
}

.company-chip {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.main {
  flex: 1;
  padding: 28px 32px 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover { background: var(--surface-2); }

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

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fecaca;
}

.btn-ai {
  background: var(--ai);
  color: white;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-pad { padding: 20px 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-teal { background: var(--accent-soft); color: var(--accent); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-purple { background: var(--ai-soft); color: var(--ai); }
.badge-gray { background: #f1f5f9; color: var(--text-muted); }
.badge-red { background: var(--danger-soft); color: var(--danger); }

/* Stage progress */
.stages {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.stage {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.stage-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
}

.stage.done { color: var(--success); }
.stage.done .stage-dot {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.stage.current { color: var(--primary); }
.stage.current .stage-dot {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.stage-line {
  width: 12px;
  height: 2px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}

.stage.done + .stage-line, .stage-line.after-done { background: var(--success); }

.sitting-progress {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Tables / lists */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-info strong { display: block; font-size: 14px; }
.person-info span { font-size: 12px; color: var(--text-muted); }

/* Forms */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input, .textarea, .select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}

.textarea { min-height: 88px; resize: vertical; line-height: 1.5; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field { margin-bottom: 18px; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.chip .crit {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.crit-high { background: var(--danger-soft); color: var(--danger); }
.crit-med { background: var(--warning-soft); color: var(--warning); }
.crit-low { background: var(--success-soft); color: var(--success); }

/* Steps / guided form */
.steps-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.step-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.step-item.done { color: var(--success); }

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: var(--primary);
  color: white;
}

.step-item.done .step-num {
  background: var(--success);
  color: white;
}

/* Live interview */
.interview-layout {
  display: grid;
  grid-template-columns: 210px 1fr 300px;
  gap: 14px;
  height: calc(900px - 56px - 40px);
  min-height: 780px;
  max-height: calc(900px - 56px - 40px);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
}

.panel-body {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
}

.topic-item {
  display: flex;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-muted);
  align-items: flex-start;
}

.topic-item.done { color: var(--success); }
.topic-item.current {
  background: var(--ai-soft);
  color: var(--ai);
  font-weight: 600;
  border: 1px solid var(--ai-border);
}

.topic-item.upcoming { color: var(--text-soft); }

.topic-status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.topic-item.done .topic-status { background: var(--success); color: white; }
.topic-item.current .topic-status {
  background: var(--ai);
  color: white;
  animation: pulse 1.5s ease-in-out infinite;
}
.topic-item.upcoming .topic-status {
  border: 2px solid var(--border-strong);
  background: transparent;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* AI voice presence */
.ai-presence {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 14px;
  background: linear-gradient(180deg, var(--ai-soft) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  margin-bottom: 10px;
}

.waveform span {
  width: 5px;
  border-radius: 3px;
  background: var(--ai);
  animation: wave 1.1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 18px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 36px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 52px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 28px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 44px; animation-delay: 0.15s; }
.waveform span:nth-child(6) { height: 20px; animation-delay: 0.25s; }
.waveform span:nth-child(7) { height: 48px; animation-delay: 0.05s; }
.waveform span:nth-child(8) { height: 32px; animation-delay: 0.35s; }
.waveform span:nth-child(9) { height: 40px; animation-delay: 0.18s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.ai-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.ai-status {
  font-size: 12px;
  color: var(--text-muted);
}

.ai-quote {
  margin-top: 12px;
  max-width: 560px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--radius);
}

.time-budget {
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.time-box {
  flex: 1;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.time-box .label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.time-box .value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.time-box.warning .value { color: var(--warning); }

.time-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.time-bar > div {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

.time-box.warning .time-bar > div { background: var(--warning); }

.notes-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-card {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--ai);
  font-size: 13px;
}

.note-card .note-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.file-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  background: var(--surface-2);
  margin-bottom: 14px;
}

.file-drop strong { display: block; font-size: 13px; margin-bottom: 4px; }
.file-drop span { font-size: 12px; color: var(--text-muted); }

.file-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--surface);
}

.file-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.file-meta strong { display: block; font-size: 12px; }
.file-meta span { font-size: 11px; color: var(--text-muted); }

.interview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.ctrl-btn {
  min-width: 64px;
  height: 52px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.ctrl-btn .ctrl-icon {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.ctrl-btn .ctrl-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ctrl-btn.mute { background: var(--surface-2); }
.ctrl-btn.end {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
  width: auto;
  min-width: 120px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  flex-direction: row;
  gap: 6px;
}

/* Join screen */
.join-hero {
  max-width: 720px;
  margin: 40px auto;
  text-align: center;
}

.join-hero h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.join-hero .lede {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  margin-bottom: 28px;
}

.info-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.mic-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.mic-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.mic-bars span {
  width: 4px;
  background: var(--success);
  border-radius: 2px;
  animation: wave 0.8s ease-in-out infinite;
}

.mic-bars span:nth-child(1) { height: 8px; }
.mic-bars span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.mic-bars span:nth-child(3) { height: 22px; animation-delay: 0.2s; }
.mic-bars span:nth-child(4) { height: 12px; animation-delay: 0.15s; }
.mic-bars span:nth-child(5) { height: 18px; animation-delay: 0.05s; }

/* Review / comments */
.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 16px;
  min-height: 780px;
}

.doc-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 2px;
}

.doc-nav a:hover, .doc-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.doc-nav .nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  font-weight: 700;
  padding: 12px 12px 6px;
}

.doc-body {
  padding: 28px 32px;
}

.doc-body h2 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.doc-body h3 {
  font-size: 15px;
  margin: 22px 0 8px;
}

.doc-body p {
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.doc-body ul {
  margin: 0 0 14px 18px;
  color: var(--text);
}

.doc-body li { margin-bottom: 6px; line-height: 1.5; }

.inline-comment {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.inline-comment.manager {
  border-left: 3px solid var(--manager);
}

.inline-comment.leaver {
  border-left: 3px solid var(--leaver);
}

.comment-who {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-who.manager { color: var(--manager); }
.comment-who.leaver { color: var(--leaver); }

.comment-body { font-size: 13px; color: var(--text); }

.gap-item {
  padding: 14px;
  border: 1px solid var(--warning-border);
  background: var(--warning-soft);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.gap-item .gap-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gap-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.locked-tag {
  font-size: 10px;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

/* Final pack */
.view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.view-toggle button {
  padding: 7px 14px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.view-toggle button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.folder-tree {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
}

.folder-tree .folder { color: var(--primary); font-weight: 600; }
.folder-tree .file { color: var(--text-muted); padding-left: 16px; display: block; }
.folder-tree .file.active {
  background: var(--ai-soft);
  color: var(--ai);
  border-radius: 4px;
  padding: 2px 8px 2px 16px;
}

.md-preview {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow: auto;
  white-space: pre-wrap;
}

.md-preview .fm { color: #a78bfa; }
.md-preview .key { color: #67e8f9; }
.md-preview .val { color: #86efac; }
.md-preview .h { color: #fbbf24; font-weight: 700; }
.md-preview .c { color: #94a3b8; }

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  cursor: default;
}

.checklist label:last-child { border-bottom: none; }

.checklist input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Index page */
.index-wrap {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 24px 60px;
}

.index-wrap h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.index-wrap .lede {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.screen-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-list li a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.screen-list li a:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.screen-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.screen-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.screen-list span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.fw-600 { font-weight: 600; }
.hidden { display: none !important; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notice-info {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: #1e3a8a;
}

.notice-warn {
  background: var(--warning-soft);
  border: 1px solid var(--warning-border);
  color: #92400e;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.day-cell {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--surface);
  color: var(--text-muted);
}

.day-cell.available {
  background: var(--success-soft);
  border-color: #bbf7d0;
  color: var(--success);
  font-weight: 600;
  cursor: pointer;
}

.day-cell.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.day-cell.muted { opacity: 0.4; }

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.slot {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
}

.slot.selected {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cover-list {
  list-style: none;
}

.cover-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.cover-list li:last-child { border-bottom: none; }

.cover-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}

.cover-icon.ok { background: var(--success-soft); color: var(--success); }
.cover-icon.gap { background: var(--warning-soft); color: var(--warning); }
.cover-icon.miss { background: var(--danger-soft); color: var(--danger); }

.footer-note {
  text-align: center;
  padding: 24px;
  color: var(--text-soft);
  font-size: 12px;
}

/* Enrollment / service tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.tier-card {
  appearance: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-weight: 400;
  color: inherit;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 196px;
}

.tier-card:hover { border-color: var(--primary-border); }

.tier-card:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tier-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), var(--shadow);
}

.tier-card h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tier-selected-badge { visibility: hidden; }
.tier-card.selected .tier-selected-badge { visibility: visible; }

.tier-fit {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.tier-price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tier-meta {
  font-size: 12px;
  font-weight: 600;
}

.master-field {
  background: var(--surface);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 12px 14px 14px;
  margin-bottom: 18px;
}

.tier-card.selected .master-field { background: var(--surface); }
