/* ─────────── Module-specific styles ─────────── */

/* page wrapper anim */
.page { display: flex; flex-direction: column; gap: 0; }

/* ─────────── Meetings ─────────── */
.cal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.cs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.cs-value {
  font-size: 26px; font-weight: 700; letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.cs-value.warn { color: #f59e0b; }
.cs-value.accent { color: var(--accent); }
.cs-label { font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.cs-sub { font-size: 11.5px; margin-top: 2px; }

.cal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }

.cal-week { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.cw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cw-grid { display: grid; grid-template-columns: 36px repeat(5, 1fr); gap: 0; }
.cw-time-col { padding-top: 38px; }
.cw-time { height: 44px; font-size: 10.5px; color: var(--text-subtle); padding-right: 6px; text-align: right; line-height: 1; }
.cw-day { border-left: 1px solid var(--border); position: relative; min-width: 0; }
.cw-day:first-of-type { border-left: 0; }
.cw-day-head { padding: 4px 8px 8px; text-align: center; }
.cw-day-name { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--text-subtle); letter-spacing: .06em; }
.cw-day-num { font-size: 16px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cw-day-num.is-today {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: inline-grid; place-items: center;
}
.cw-day-body { position: relative; height: 484px; padding: 0 4px; }
.cw-hour-rule { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); opacity: .6; }
.cw-event {
  position: absolute; left: 4px; right: 4px;
  background: color-mix(in oklab, var(--info) 14%, var(--surface));
  border-left: 3px solid var(--info);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
  transition: transform .1s ease;
}
.cw-event:hover { transform: scale(1.02); z-index: 3; }
.cw-event.tentative {
  background: repeating-linear-gradient(45deg, var(--surface-sunken) 0 6px, var(--surface) 6px 12px);
  border-left-color: var(--text-subtle);
  color: var(--text-muted);
}
.cw-event.is-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-left-color: color-mix(in oklab, var(--accent) 60%, #000);
}
.cw-ev-title { font-weight: 600; line-height: 1.2; }
.cw-ev-time { font-size: 10px; opacity: .8; margin-top: 1px; font-variant-numeric: tabular-nums; }

.cal-side { display: flex; flex-direction: column; gap: 14px; }

.upcoming { padding: 20px; position: relative; overflow: hidden; }
.upcoming::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 20%, transparent) 0, transparent 60%);
  pointer-events: none;
}
.up-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.up-time { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.up-title { margin: 4px 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.018em; }
.up-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.up-loc { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin: 8px 0 14px; }
.up-join { width: 100%; justify-content: center; }
.up-hint { font-size: 11px; text-align: center; margin-top: 8px; }

.md-card { padding: 0; overflow: hidden; }
.md-head { display: flex; gap: 12px; padding: 16px 18px 14px; align-items: flex-start; }
.md-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--info); }
.md-bar.primary { background: var(--accent); }
.md-section { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.md-row { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.md-agenda { padding: 14px 18px; border-top: 1px solid var(--border); }
.md-actions { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 6px; }

.rsvp-row { display: flex; align-items: center; gap: 10px; }
.rsvp-btn {
  appearance: none; border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  cursor: pointer;
}
.rsvp-btn:hover { border-color: var(--border-strong); }
.rsvp-btn.yes:hover { background: var(--accent-soft); border-color: transparent; }
.rsvp-btn.no:hover { background: color-mix(in oklab, var(--danger) 10%, var(--surface)); }

@media (max-width: 1100px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────── Documents ─────────── */
.doc-progress {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  margin-bottom: 18px;
}
.dp-left { display: flex; flex-direction: column; }
.dp-pct { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.dp-pct span { font-weight: 500; font-size: 18px; margin: 0 4px; }
.dp-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.dp-bar-wrap { min-width: 0; }
.dp-meta { display: flex; gap: 8px; margin-top: 8px; font-size: 12px; flex-wrap: wrap; }
.dp-encrypt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }

.filter-pill {
  appearance: none; border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px; border-radius: 999px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.is-active { background: var(--text); color: var(--surface); border-color: var(--text); }

.doc-thumb {
  width: 32px; height: 40px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* sign modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklab, #000 55%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 32px;
  animation: fadeUp .2s ease;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 920px;
  max-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: fadeUp .25s ease;
}
.sign-modal { max-width: 980px; }
.sign-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sign-stepper { display: flex; align-items: center; gap: 6px; }
.ss-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--text-subtle);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-sunken); justify-content: center;
}
.ss-step span { display: none; }
.ss-step.active { background: var(--accent); color: var(--accent-ink); }
.ss-line { width: 24px; height: 1px; background: var(--border); }
@media (min-width: 760px) {
  .ss-step { width: auto; padding: 4px 12px 4px 4px; border-radius: 999px; gap: 8px; }
  .ss-step span { display: inline; }
  .ss-step::before {
    content: attr(data-num); width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0,0,0,.06); display: grid; place-items: center;
  }
}

.sign-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--surface-sunken); }
.sign-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sign-foot .small { font-size: 11.5px; }

/* doc preview */
.doc-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dp-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); width: 100%; max-width: 720px; }
.dp-paper {
  width: 100%; max-width: 720px;
  background: white; color: #111;
  padding: 64px 80px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08), 0 1px 0 rgba(0,0,0,.04);
  position: relative;
  font-family: "Georgia", serif;
}
.dp-letterhead { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 2px solid #111; margin-bottom: 24px; }
.dp-logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.05em; }
.dp-addr { font-size: 11px; line-height: 1.5; text-align: right; font-family: var(--font-sans); }
.dp-h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.dp-h2 { font-size: 14px; font-weight: 700; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.dp-meta { font-size: 11px; color: #666; margin: 0 0 18px; font-family: var(--font-mono); }
.dp-p { font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
.dp-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, white);
  border-radius: 0 0 4px 4px;
}

/* signature pane */
.sign-pane { max-width: 720px; margin: 0 auto; }
.sign-paper {
  background: white; color: #111;
  border-radius: 4px;
  padding: 32px 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
[data-theme="dark"] .sign-paper, [data-theme="dark"] .dp-paper { background: #161c26; color: var(--text); }
[data-theme="dark"] .dp-fade { background: linear-gradient(to bottom, transparent, #161c26); }
[data-theme="dark"] .dp-letterhead { border-bottom-color: var(--text); }

.sp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.sp-body { font-size: 13.5px; line-height: 1.6; }
.sp-body p { margin: 0 0 10px; }
.small { font-size: 11.5px; }

.sig-tabs { display: flex; gap: 4px; margin: 24px 0 8px; border-bottom: 1px solid var(--border); }
.sig-tab {
  appearance: none; border: 0; background: transparent;
  padding: 8px 16px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sig-tab.active { color: var(--text); border-bottom-color: var(--accent); }

.sig-zone { padding: 12px 0; }
.sig-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.sig-input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.sig-preview {
  margin-top: 14px;
  padding: 24px;
  background: white;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  text-align: center;
  font-size: 36px;
  color: #111;
  min-height: 80px;
  display: grid; place-items: center;
}
[data-theme="dark"] .sig-preview { background: #161c26; color: var(--text); }
.sig-canvas {
  width: 100%;
  height: 140px;
  background: white;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  cursor: crosshair;
  touch-action: none;
}
[data-theme="dark"] .sig-canvas { background: #161c26; }

.sign-agree {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface-sunken);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  cursor: pointer;
}
.sign-agree input { margin-top: 2px; accent-color: var(--accent); }

.sign-success { display: flex; flex-direction: column; align-items: center; padding: 24px; }
.success-ring {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  border: 3px solid var(--accent);
}
[data-theme="dark"] .success-ring { color: var(--accent); }
.sign-receipt {
  margin-top: 24px;
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.sr-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; }
.sr-row:not(:last-child) { border-bottom: 1px solid var(--border); }

/* ─────────── Training ─────────── */
.train-overview {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  margin-bottom: 24px; align-items: center;
}
.to-pct { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; margin-top: 4px; line-height: 1; }
.to-pct span { font-size: 28px; color: var(--text-muted); margin-left: 2px; }

.featured-train { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.ft-side { aspect-ratio: 1; border-radius: var(--r-md); position: relative; overflow: hidden; padding: 14px; color: white; }
.ft-play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; backdrop-filter: blur(6px); }
.ft-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.ft-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-family: var(--font-display); }

.train-section { margin-top: 28px; }
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.train-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.train-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.tc-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: white;
  overflow: hidden;
}
.tc-shape { position: absolute; inset: 0; pointer-events: none; }
.tc-shape svg { width: 100%; height: 100%; }
.tc-cover-inner { position: relative; z-index: 1; }
.tc-category { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.tc-title { font-size: 17px; font-weight: 700; letter-spacing: -0.018em; margin-top: 4px; font-family: var(--font-display); line-height: 1.2; max-width: 220px; text-wrap: balance; }
.tc-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 700;
  background: rgba(0,0,0,.55); color: white;
  padding: 3px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}

.tc-body { padding: 14px 16px; }
.tc-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.tc-instructor { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* player */
.player-modal { max-width: 1100px; height: calc(100vh - 64px); }
.player-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.player-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.player-stage {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: white;
  overflow: hidden;
}
.player-stage-overlay { padding: 32px; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.ps-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .85; }
.ps-title { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; max-width: 480px; line-height: 1.2; font-family: var(--font-display); }
.ps-play {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 0; cursor: pointer;
  display: grid; place-items: center; color: white;
  margin-top: 18px; backdrop-filter: blur(8px);
}
.player-controls {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  font-size: 12px;
}
.pc-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.pc-time { font-variant-numeric: tabular-nums; opacity: .9; }
.pc-bar { flex: 1; height: 4px; background: rgba(255,255,255,.2); border-radius: 999px; }
.pc-fill { height: 100%; background: white; border-radius: 999px; }

.player-side { border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.ps-head { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.ps-list { flex: 1; overflow-y: auto; padding: 6px; }
.ps-lesson {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  cursor: pointer;
}
.ps-lesson:hover { background: var(--surface-sunken); }
.ps-lesson.active { background: var(--accent-soft); }
.ps-lesson-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-sunken); color: var(--text-muted);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.ps-lesson.done .ps-lesson-num { background: var(--accent); color: var(--accent-ink); }
.ps-lesson.active .ps-lesson-num { background: var(--text); color: var(--surface); }
.ps-lesson-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

.player-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}

/* ─────────── Insurance wizard ─────────── */
.stepper {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 16px;
  padding: 4px;
}
.step { display: flex; align-items: center; gap: 10px; padding: 8px 4px; flex-shrink: 0; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-sunken); color: var(--text-muted);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.step.active .step-num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step.done .step-num { background: var(--text); color: var(--surface); border-color: var(--text); }
.step-label { font-size: 13px; font-weight: 600; line-height: 1.2; }
.step.active .step-label { color: var(--text); }
.step:not(.active):not(.done) .step-label { color: var(--text-muted); }
.step-sub { font-size: 11px; }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; min-width: 24px; }
.step-line.done { background: var(--text); }

.wizard-body { margin-bottom: 14px; }

.step-pane { display: flex; flex-direction: column; gap: 22px; }
.step-head { }
.step-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-display); }
.step-head p { margin: 6px 0 0; }

.coverage-toggle {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.ct-opt {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 14px 12px;
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.ct-opt:hover { border-color: var(--border-strong); }
.ct-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.ct-label { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.ct-desc { font-size: 11.5px; margin-top: 2px; }

.coverage-section { display: flex; flex-direction: column; gap: 12px; }
.cs-head { display: flex; justify-content: space-between; align-items: center; }
.cs-title-row { display: flex; align-items: center; gap: 10px; }
.cs-title-row h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.012em; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-grid-3 { grid-template-columns: repeat(3, 1fr); }

.plan-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 18px 14px;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, transform .04s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.plan-card:hover { border-color: var(--border-strong); }
.plan-card.selected { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.plan-card.small { padding: 14px; }
.plan-card.declined { opacity: .8; }

.plan-badge {
  position: absolute; top: -10px; right: 14px;
  background: var(--text); color: var(--surface);
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}
.plan-card.selected .plan-badge { background: var(--accent); color: var(--accent-ink); }

.pc-head { display: flex; gap: 12px; align-items: flex-start; }
.pc-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  display: grid; place-items: center;
  margin-top: 2px;
}
.plan-card.selected .pc-radio { border-color: var(--accent); }
.pc-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.pc-type { line-height: 1.2; }
.pc-name { font-size: 15px; font-weight: 700; letter-spacing: -0.012em; }
.pc-carrier { line-height: 1.3; }

.pc-cost { padding-top: 4px; }
.pc-cost-main { display: flex; align-items: baseline; gap: 4px; }
.pc-cost-amt { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; font-family: var(--font-display); line-height: 1; }

.pc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pc-stat { font-size: 14px; font-weight: 700; }

.pc-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-perks li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }

/* dependents */
.dep-list { display: flex; flex-direction: column; gap: 10px; }
.dep-row {
  display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 18px;
  align-items: center;
  padding: 14px 18px;
}
.dep-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dep-cov { display: flex; gap: 6px; flex-wrap: wrap; }
.dep-actions { display: flex; gap: 4px; }

.cov-tog {
  appearance: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  background: var(--surface-sunken);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
}
.cov-tog.on {
  background: color-mix(in oklab, var(--cov-color) 12%, var(--surface));
  color: var(--cov-color);
  border-color: transparent;
}

.dep-add {
  appearance: none;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border: 1.5px dashed var(--border-strong);
  background: transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text-muted);
  width: 100%; justify-content: center;
}
.dep-add.small { padding: 8px; font-size: 12px; }
.dep-add:hover { border-color: var(--accent); color: var(--accent); }

/* dep modal */
.dep-modal { max-width: 540px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}

.field { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.field-label { font-size: 12.5px; font-weight: 600; }
.field-row { display: flex; gap: 10px; }
.field-hint { font-size: 11px; }
.input {
  appearance: none; border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 12px; border-radius: var(--r-sm);
  font-family: inherit; font-size: 13.5px;
  color: var(--text);
  outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: var(--ring); }

.callout {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  font-size: 12.5px;
}
.callout-info { background: color-mix(in oklab, var(--info) 10%, var(--surface)); }

/* beneficiaries */
.bene-group { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface-sunken); border-radius: var(--r-md); }
.bg-head { display: flex; justify-content: space-between; align-items: center; }
.bg-total { display: flex; flex-direction: column; align-items: flex-end; }
.bg-total.warn { color: #d97706; }
.bg-total.ok { color: var(--success); }

.bene-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.bene-slider { display: flex; align-items: center; gap: 10px; }
.bene-slider input[type="range"] { width: 140px; accent-color: var(--accent); }
.bene-num { width: 60px; text-align: center; }

/* review */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-section { padding: 16px 18px; }
.review-section.wide { grid-column: 1 / -1; }
.rs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rs-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.rs-line { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 10px; font-size: 13px; }
.rs-stats > div { display: flex; flex-direction: column; gap: 2px; }
.rev-dep { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.rev-dep:first-child { border-top: 0; }

/* cost breakdown */
.cost-breakdown { margin-top: 6px; }
.cb-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.cb-row:first-of-type { border-top: 0; }
.cb-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--text); }

/* wizard foot */
.wizard-foot {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  position: sticky; bottom: 16px; z-index: 10;
  box-shadow: var(--shadow-md);
}
.wizard-cost { display: flex; flex-direction: column; align-items: flex-end; flex: 1; line-height: 1; }
.wc-value { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1; }

/* enrollment complete */
.enrollment-complete { display: grid; place-items: center; padding: 60px 0; }
.ec-card { max-width: 600px; text-align: center; }
.ec-ring {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  border: 3px solid var(--accent);
}
[data-theme="dark"] .ec-ring { color: var(--accent); }
.ec-summary { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.ec-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--surface-sunken);
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
}

@media (max-width: 1100px) {
  .plan-grid, .plan-grid-3, .review-grid { grid-template-columns: 1fr 1fr; }
  .coverage-toggle { grid-template-columns: 1fr 1fr; }
  .train-overview { grid-template-columns: 1fr; }
}

/* ─────────── Profile ─────────── */
.profile-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ps-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ps-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.pf { display: flex; flex-direction: column; gap: 3px; }
.pf.wide { grid-column: 1 / -1; }
.pf-label { font-weight: 600; }
.pf-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pf-value { flex: 1; font-size: 13.5px; }
.pf-edit {
  appearance: none; border: 0; background: transparent;
  width: 24px; height: 24px; border-radius: 5px;
  color: var(--text-subtle);
  cursor: pointer;
}
.pf-edit:hover { background: var(--surface-sunken); color: var(--text); }

/* ─────────── Payroll ─────────── */
.pay-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.pay-amount { background: linear-gradient(135deg, var(--surface) 0%, color-mix(in oklab, var(--accent) 8%, var(--surface)) 100%); }
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.pay-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pc-card-head { display: flex; gap: 10px; align-items: center; }
.pay-rows { font-size: 13px; width: 100%; }
.pay-rows td { padding: 4px 0; }
.pay-rows td:first-child { width: 130px; }

.empty-state { padding: 32px; text-align: center; color: var(--text-muted); }

/* ─────────── Equipment ─────────── */
.shipment-card { margin-bottom: 18px; }
.ship-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.ship-track { display: flex; align-items: center; gap: 6px; }
.st-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.st-step > span:first-child {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-sunken);
  border: 2px solid var(--border);
  display: grid; place-items: center;
  font-size: 10px;
}
.st-step.done > span:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.st-step.active > span:first-child { background: var(--surface); border-color: var(--accent); display: grid; place-items: center; }
.st-step span:last-child { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.st-step.done span:last-child, .st-step.active span:last-child { color: var(--text); }
.st-bar { flex: 1; height: 2px; background: var(--border); border-radius: 1px; margin-top: -16px; }
.st-bar.done { background: var(--accent); }

.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.eq-card { display: flex; flex-direction: column; }
.eq-thumb {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 80% at 50% 30%, var(--surface) 0%, var(--surface-sunken) 100%);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
}
.eq-body { padding: 14px 16px; }
.eq-name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }

.sw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }

@media (max-width: 1100px) {
  .pay-hero, .pay-grid, .profile-grid { grid-template-columns: 1fr; }
  .sw-grid { grid-template-columns: 1fr; }
}
