:root {
  --ink: #0f172a;
  --slate: #1e293b;
  --muted: #64748b;
  --paper: #f0f4f8;
  --panel: #ffffff;
  --line: #e2e8f0;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --ice: #67e8f9;
  --good: #059669;
  --bad: #e11d48;
  --warn: #d97706;
  --nav: #0f172a;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(59, 130, 246, 0.16), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(139, 92, 246, 0.14), transparent 38%),
    radial-gradient(circle at 70% 90%, rgba(6, 182, 212, 0.12), transparent 40%);
}
a { color: #1d4ed8; text-underline-offset: 2px; }
h1, h2, h3 { font-weight: 750; letter-spacing: -0.03em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; margin: 0 0 0.45rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 0.55rem; }
h3 { font-size: 1.02rem; margin: 0 0 0.35rem; }
p { margin: 0 0 0.75rem; }

.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px 20px;
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  display: block;
  text-decoration: none;
  color: white;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}
.brand img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: contain;
  object-position: center;
}
.product {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.tag { display: block; color: #94a3b8; font-size: 0.78rem; margin-top: 2px; }
.items { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  margin: 16px 12px 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a.item {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a.item:hover { background: rgba(255, 255, 255, 0.06); color: white; }
.nav a.item.locked { color: #64748b; display: flex; justify-content: space-between; align-items: center; }
.nav a.item.locked .lock { font-size: 0.7rem; opacity: 0.7; }
.nav-exam { display: block; margin: 14px 8px 4px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, var(--blue), var(--purple)); color: white; font-weight: 800; text-decoration: none; }
.nav-exam span { display: block; font-size: 0.72rem; font-weight: 600; color: #e0e7ff; }
.nav-exam:hover { filter: brightness(1.08); }
.nav a.item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.28));
  color: white;
}
.company {
  margin-top: auto;
  padding: 14px 10px 4px;
  color: #94a3b8;
  font-size: 0.82rem;
}
.company strong { display: block; color: white; font-size: 0.95rem; margin: 2px 0 6px; }
.company a { color: #93c5fd; text-decoration: none; font-weight: 600; }
.company a:hover { color: white; }

.main { padding: 32px 32px 72px; max-width: 1440px; min-width: 0; }
.lede { font-size: 1.05rem; max-width: 68ch; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 8px;
}
.card.hero-score {
  background: linear-gradient(155deg, #0f172a 0%, #1e3a8a 58%, #0e7490 130%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
}
.mark {
  font-size: clamp(3.2rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ice);
  margin-top: 6px;
}

.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(4, 1fr); margin: 18px 0; }
.steps { grid-template-columns: repeat(3, 1fr); }
.steps a { text-decoration: none; color: inherit; display: block; height: 100%; }
.steps a:hover { border-color: #93c5fd; transform: translateY(-2px); }

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.card .k {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card .v { font-size: 1.55rem; font-weight: 750; letter-spacing: -0.03em; margin-top: 4px; }
.card .s { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.card.hero-score .k { color: #93c5fd; }
.card.hero-score .s { color: #cbd5e1; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.hero-score .good { color: #6ee7b7; }
.hero-score .warn { color: #fde68a; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.scroll table td { white-space: nowrap; }
.scroll table th { white-space: normal; line-height: 1.25; vertical-align: bottom; hyphens: auto; letter-spacing: 0.03em; }
.scroll table td input { width: 100%; min-width: 0; padding: 5px 7px; border-radius: 8px; }
.scroll table td input[type="checkbox"] { width: auto; }
.scroll table td input.name-input, .scroll table td:first-child input { min-width: 8.5rem; }
.scroll table td input.money-input { min-width: 6rem; }
.scroll table td input.tiny-input { min-width: 3.2rem; }
table.hours td input.tiny-input { min-width: 2.6rem; padding: 5px 5px; }
table.hours td:first-child input { min-width: 12rem; }
table.hours th, table.hours td { padding-left: 4px; padding-right: 4px; }
table.fit td:has(input) { min-width: 0; }
th, td { text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 12px; }
th:last-child, td:last-child { padding-right: 12px; }
th:first-child, td:first-child, .left { text-align: left; }
th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f8fafc;
}
tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; border-radius: var(--radius); }
.scroll.card, .card .scroll { background: white; }

label { display: grid; gap: 5px; font-size: 0.8rem; font-weight: 650; color: var(--slate); }
input, select, button { font: inherit; color: var(--ink); }
input, select {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: white;
  border-radius: 10px;
  padding: 8px 10px;
}
input:focus, select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  border-color: var(--blue);
}
input[type="checkbox"] { width: auto; accent-color: var(--blue); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.fields.two { grid-template-columns: repeat(2, 1fr); }
button, .button {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}
button:hover, .button:hover { filter: brightness(1.06); }
button.ghost, .button.ghost {
  background: white;
  color: var(--slate);
  border: 1px solid #cbd5e1;
  box-shadow: none;
}
button.ghost:hover { border-color: var(--blue); color: #1d4ed8; }
.row-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.formula { color: var(--muted); font-size: 0.92rem; }
.section { margin: 26px 0; }
.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; }
.tiny { font-size: 0.8rem; color: var(--muted); }
input.tiny-input { padding: 5px 7px; font-variant-numeric: tabular-nums; }
button.icon { padding: 4px 10px; font-size: 1rem; line-height: 1; }
footer.site {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
footer.site a { font-weight: 700; text-decoration: none; }

.purpose { color: var(--slate); max-width: 68ch; margin-top: 0; }
.contents { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.contents a {
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
}
.tabs { display: none; }
.js .tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 18px 0 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
.tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  background: transparent;
  color: var(--slate);
  border: 0;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
  white-space: nowrap;
}
.tabs [role="tab"]:hover { background: #f1f5f9; }
.tabs [role="tab"].active { background: var(--ink); color: white; }
.tabs .n {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 800;
}
.tabs .active .n { background: var(--blue); color: white; }
.tabs .count { font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.tabs .active .count { color: var(--ice); }
.js .tab-panel:not(.active) { display: none; }
.tab-panel, .tab-panel [id] { scroll-margin-top: 76px; }
.tab-panel > h2:first-of-type { margin-top: 6px; }
.tab-hint {
  margin: 0 0 12px;
  padding: 9px 13px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: #eff6ff;
  color: var(--slate);
  font-size: 0.9rem;
  max-width: 80ch;
}
.month-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.month-filter a { text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--slate); font-size: 0.8rem; font-weight: 700; }
.month-filter a.on { background: var(--ink); border-color: var(--ink); color: white; }
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tab-foot { display: flex; justify-content: flex-end; margin: 14px 0 4px; }
.js form.tabs-idle > .sticky-actions, .js form.tabs-idle > .row-actions { display: none; }
.lesson, .block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 8px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.lesson h2, .block h2 { margin-top: 0; }
.kicker { color: #1d4ed8; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.why { margin: 8px 0 16px; }
.why summary, details.why summary { cursor: pointer; font-weight: 750; }
.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.defs div, .defs p { margin: 0; }
.defs strong, .defs b { display: block; }
.defs b { font-size: 1.05rem; letter-spacing: -0.02em; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.check em { display: block; color: var(--muted); font-style: normal; font-weight: 500; font-size: 0.88rem; }
.check .ask-line { display: block; color: var(--slate); font-size: 0.9rem; margin-top: 3px; line-height: 1.45; }
.check .yes-line { display: block; margin-top: 5px; padding: 5px 9px; border-radius: 8px; background: #f0fdf4; color: #065f46; font-size: 0.84rem; line-height: 1.4; }
.check .yes-line b { font-weight: 750; }
.check input[type="checkbox"] { margin-top: 3px; }
.steps-list { margin: 0 0 8px; padding-left: 1.2rem; }
.steps-list li { margin: 0 0 8px; }
.pill, .callout {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #e2e8f0;
}
.pill.good, .callout.good { background: #d1fae5; color: #065f46; }
.pill.bad, .callout.bad { background: #ffe4e6; color: #9f1239; }
.pill.warn, .callout.warn { background: #fef3c7; color: #92400e; }
.callout { display: block; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
label.stack { margin: 12px 0; }
textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; font: inherit; }
td input { text-align: right; }
td:first-child input, input[name^="name_"], input[name^="role_"], input[name^="tname_"], input[name^="note_"], input[name^="pursue_"] { text-align: left; }
tr.here td { background: #eff6ff; }
.sticky-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.plan-cover { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.plan-cover img { width: 92px; height: 92px; object-fit: contain; }
.plan-sheet section { break-inside: avoid; margin-bottom: 16px; }
.scroll thead th { position: sticky; top: 0; z-index: 1; }

.fig {
  margin: 18px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lesson .fig, .block .fig { box-shadow: none; }
.fig-art { padding: 14px 14px 6px; background: linear-gradient(180deg, #f8fafc, #ffffff); }
svg.art { display: block; width: 100%; height: auto; max-height: 560px; }
.fig figcaption {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.fig figcaption strong { color: var(--ink); margin-right: 4px; }
.fig-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14));
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.card .fig-art { padding: 6px 0 0; background: none; }
.figs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.figs-two .fig { margin: 0; }

.stage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.stage-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--tone, var(--blue));
  border-radius: 12px;
  padding: 12px 14px 4px;
  background: white;
}
.stage-card p { color: var(--slate); font-size: 0.9rem; }
.stage-card.here { background: #eff6ff; box-shadow: 0 0 0 2px var(--tone, var(--blue)); }

.results-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: start; margin: 12px 0 16px; }
.gauge-card { position: relative; padding: 12px; }
.gauge-card.locked svg { filter: blur(5px) saturate(0.7); opacity: 0.75; }
.lock-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
}
.lead-form h2 { margin-top: 0; }
.lead-form .check { border-bottom: 0; }
input.narrow { width: 5.5em; }
.fields .check { border-bottom: 0; align-self: end; align-items: center; padding-bottom: 12px; }
ol.actions { margin: 0 0 14px; padding-left: 1.3rem; }
ol.actions li { margin: 0 0 12px; }
.why-line, .do-line, .block-line { display: block; }
.why-line { color: var(--muted); font-size: 0.9rem; }
.do-line { font-size: 0.9rem; font-weight: 600; color: var(--slate); }
form.inline { display: inline; }

.score-rows { display: grid; gap: 10px; margin: 8px 0 12px; }
.score-row { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr 2.5rem; gap: 12px; align-items: center; font-weight: 650; }
.score-row b { text-align: right; font-size: 1.1rem; }
.track { position: relative; height: 14px; border-radius: 999px; background: #e2e8f0; }
.track > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.track i { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.warn-block { border-left: 4px solid var(--warn); background: #fffbeb; }
.warn-block li { margin-bottom: 8px; }
table.compare td:first-child { white-space: normal; min-width: 18rem; }
table.compare td { text-align: center; }
table.compare td:first-child { text-align: left; }
.dot { display: inline-block; min-width: 2.6rem; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; }
.dot.yes { background: #d1fae5; color: #065f46; }
.dot.no { background: #ffe4e6; color: #9f1239; }
tr.agree-split td { background: #fffbeb; }
.link-input { font-size: 0.78rem; text-align: left !important; min-width: 16rem; color: var(--slate); background: #f8fafc; }

table.bids select { padding: 5px 4px; border-radius: 8px; min-width: 6.4rem; max-width: 8.5rem; font-size: 0.85rem; }
.scroll table.bids td input[type="date"] { width: 7.4rem; min-width: 7.4rem; padding: 5px 2px; font-size: 0.8rem; }
.scroll table.bids td input.name-input { min-width: 11.6rem; display: block; text-align: left; }
table.bids select[name^="div_"] { min-width: 8.9rem; max-width: 10rem; }
.scroll table.bids td input.client-input { margin-top: 4px; font-size: 0.8rem; color: var(--muted); padding: 3px 7px; }
.scroll table.bids td input.money-input { min-width: 5.2rem; }
.scroll table.bids td input.tiny-input { min-width: 3rem; }
table.bids th, table.bids td { padding-left: 3px; padding-right: 3px; }
tr.status-won td:first-child { box-shadow: inset 4px 0 0 var(--good); }
tr.status-lost td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
tr.status-pending td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
tr.status-withdrawn td { color: var(--muted); }
tr.status-withdrawn td:first-child { box-shadow: inset 4px 0 0 #94a3b8; }
tr.future td { color: #94a3b8; }

table.ratios td:first-child { white-space: normal; min-width: 14rem; }
table.ratios td.ratio-why { white-space: normal; min-width: 16rem; color: var(--muted); }
table.ratios td.good, table.statements td.good { color: var(--good); font-weight: 700; }
table.ratios td.bad, table.statements td.bad { color: var(--bad); font-weight: 700; }
table.statements td:first-child { white-space: normal; min-width: 15rem; }
.scroll table.statements td input.money-input { min-width: 7rem; }
table.statements tr.section-head td { background: #f8fafc; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1d4ed8; padding-top: 12px; }
table.statements tr.subtotal td { font-weight: 750; border-top: 2px solid var(--line); }

body.solo { display: block; }
.solo-main { max-width: 860px; margin: 0 auto; padding: 28px 20px 56px; }
.solo-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.solo-head img { width: 56px; height: 56px; object-fit: contain; }
.solo-head strong { display: block; font-size: 1.1rem; }

.landing-hero { margin: 4px 0 18px; }
.landing-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.12; margin: 6px 0 10px; }
.landing-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.landing-points div { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.landing-points b { display: block; font-size: 1rem; }
.landing-points span { color: var(--muted); font-size: 0.88rem; }
.exam-form h2 { font-size: 1.1rem; margin-top: 4px; }
.chip-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; font-weight: 650; cursor: pointer; }
.chip-option input:checked + span { background: linear-gradient(90deg, var(--blue), var(--purple)); color: white; border-color: transparent; }
.chip-option input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 2px; }
fieldset.exam-group { border: 0; padding: 0; margin: 0 0 12px; }
fieldset.exam-group legend { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #1d4ed8; padding: 8px 0 2px; }
.yes-count { margin-right: auto; font-weight: 650; color: var(--slate); }
.yes-count b { font-size: 1.2rem; }
.exam-form .sticky-actions { display: flex; align-items: center; gap: 12px; }

.cta-plan { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: center; margin: 18px 0; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #e2e8f0; }
.cta-plan h2 { color: white; margin: 4px 0 8px; }
.cta-plan .eyebrow { color: #67e8f9; }
.cta-plan p { color: #cbd5e1; margin: 0 0 8px; }
.cta-plan ul.ticks { margin: 0; padding: 0; list-style: none; }
.cta-plan ul.ticks li { padding-left: 1.4rem; position: relative; margin: 3px 0; color: #e2e8f0; font-size: 0.92rem; }
.cta-plan ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 800; }
.cta-actions { display: grid; gap: 10px; }
.cta-actions .button { text-align: center; }
.cta-actions .button.ghost { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.4); }
.button.big { font-size: 1.05rem; padding: 14px 22px; }
.progress-card { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 14px; }
.steps a.card.done { border-color: #a7f3d0; background: #f0fdf4; }
.steps a.card.shut { opacity: 0.72; }
.steps a.card.shut:hover { opacity: 1; }
.welcome-card.exam-first { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border-color: #c7d2fe; }
.steps a.card h3 .pill { font-size: 0.68rem; vertical-align: middle; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-row .link-input { flex: 1 1 18rem; }

.welcome-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 18px; padding: 20px 22px; border-radius: 18px; background: #eff6ff; border: 1px solid #bfdbfe; }
.welcome-card h2 { margin: 4px 0 8px; }
.welcome-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.welcome-steps li { counter-increment: step; }
.welcome-steps a { display: grid; grid-template-columns: 2rem 1fr; column-gap: 10px; padding: 10px 12px; border-radius: 12px; background: white; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.welcome-steps a::before { content: counter(step); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; font-weight: 800; }
.welcome-steps a:hover { border-color: var(--blue); }
.welcome-steps span { color: var(--muted); font-size: 0.86rem; }

@media print {
  body::before, .nav, .no-print, footer.site, .sticky-actions, .contents { display: none !important; }
  .tab-panel { display: block !important; }
  .tab-hint { display: none; }
  .fig { break-inside: avoid; box-shadow: none; }
  svg.art { max-height: 420px; }
  .gauge-card.locked svg { filter: none; }
  .shell { display: block; }
  .main { max-width: none; padding: 0; }
  .card, .lesson, .block { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 1400px) {
  .shell { grid-template-columns: 212px 1fr; }
  .main { padding: 28px 22px 64px; }
  .brand img { height: 120px; }
  .scroll table td input.name-input, .scroll table td:first-child input { min-width: 7.5rem; }
  table.hours td:first-child input { min-width: 11rem; }
}
@media (max-width: 1300px) {
  table.hours th, table.hours td { padding-left: 2px; padding-right: 2px; }
  table.hours th:first-child, table.hours td:first-child { padding-left: 8px; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .brand { display: flex; align-items: center; gap: 12px; border-bottom: 0; margin-bottom: 8px; padding-bottom: 8px; }
  .brand img { height: 72px; width: 120px; }
  .nav { position: relative; height: auto; }
  .items { flex-direction: row; flex-wrap: wrap; }
  .company { margin-top: 12px; }
  .stats, .steps, .fields, .split, .hero, .defs, .stage-cards, .results-head, .figs-two, .landing-points, .cta-plan, .welcome-card { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 48px; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
