/* Fernway Benefits. One brand colour (petrol), Public Sans, tabular money, quiet surfaces. */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0e5266;
  --brand-strong: #0a3d4c;
  --brand-hover: #116079;
  --brand-tint: #eaf3f6;
  --brand-tint-2: #cfe3ea;
  --ink: #1c2427;
  --ink-2: #44525a;
  --ink-3: #5f6e75;
  --line: #d6dde0;
  --line-soft: #e6ebed;
  --line-strong: #a7b4ba;
  --field: #77868d;
  --canvas: #f3f5f6;
  --surface: #ffffff;
  --attention: #8a4f00;
  --attention-bg: #fff4e2;
  --attention-line: #efc788;
  --error: #b3261e;
  --error-bg: #fdeeec;
  --error-line: #efb3ac;
  --focus: #0a3d4c;
  --radius: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.num, .plan-amount, .table td, .cell-money { font-variant-numeric: tabular-nums lining-nums; }

h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.87rem; font-weight: 650; letter-spacing: -0.012em; margin-bottom: 6px; }
h2 { font-size: 1.2rem; font-weight: 650; margin-bottom: 12px; letter-spacing: -0.005em; }
h3 { font-size: 1.07rem; font-weight: 650; }
p { margin: 0 0 12px; }
ul, ol { margin-top: 0; }
a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
.muted { color: var(--ink-3); }
.small { font-size: 0.87rem; }
.icon { width: 16px; height: 16px; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only, .default-submit {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 12px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.fern-mark { width: 30px; height: 30px; color: var(--brand); }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sep { width: 1px; height: 28px; background: var(--line); }
.employer { display: inline-flex; align-items: center; gap: 8px; }
.jf-mark { width: 26px; height: 26px; }
.employer-name { display: grid; font-size: 11px; line-height: 1.05; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #3d2b25; }
.topnav { margin-left: auto; display: flex; gap: 2px; }
.topnav-link { padding: 7px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.topnav-link:hover { background: var(--canvas); color: var(--ink); }
.topnav-link[aria-current="page"] { color: var(--brand-strong); background: var(--brand-tint); }
.usermenu { display: flex; align-items: center; gap: 10px; margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint-2); color: var(--brand-strong); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.usermenu-name { font-weight: 600; font-size: 14.5px; }
.usermenu-signout { font-size: 14px; color: var(--ink-2); }
.demo-label { font-weight: 650; color: var(--ink-2); }

/* ------------------------------------------------------------------ frame */
.shell { display: flex; align-items: stretch; min-height: calc(100vh - 61px); }
.main { flex: 1; min-width: 0; padding: 28px 40px 0; }
.main:focus { outline: none; }
.main-wide { max-width: 1200px; margin: 0 auto; padding: 32px 40px 48px; }
.has-rail .main { max-width: 1020px; display: flex; flex-direction: column; }
.step-form { flex: 1; display: flex; flex-direction: column; }
.step-form > .actionbar { margin-top: auto; }

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 28px; font-size: 13px; color: var(--ink-3); }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-2); }

/* ------------------------------------------------------------------ step rail */
.rail {
  width: 264px; flex: none; background: var(--surface); border-right: 1px solid var(--line);
  position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; padding: 22px 0 8px;
}
.rail-head { padding: 0 24px 16px; border-bottom: 1px solid var(--line-soft); }
.rail-title { font-weight: 650; font-size: 15.5px; margin: 0 0 4px; }
.rail-meta { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.rail-meta strong { color: var(--ink); }
.rail-progress { font-size: 13px; color: var(--ink-3); margin: 0; }
.rail-count { font-weight: 650; color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 10px 0; }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: 32px; width: 2px; top: 0; bottom: 0; background: var(--line); }
.step:first-child::before { top: 20px; }
.step:last-child::before { bottom: auto; height: 20px; }
.step-link { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 9px 20px 9px 26px; color: var(--ink); text-decoration: none; }
.step-link:hover { background: var(--canvas); color: var(--ink); }
.step-link:focus-visible { outline-offset: -3px; }
.leaf {
  display: block; position: relative; z-index: 1; flex: none; width: 14px; height: 14px; margin-top: 4px;
  border-radius: 12px 1px 12px 1px; border: 2px solid var(--line-strong); background: var(--surface);
}
.step-text { display: flex; flex-direction: column; min-width: 0; }
.step-name { font-size: 14.5px; line-height: 1.35; }
.step-status { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); margin-top: 1px; }
.st-in_progress .leaf { border-color: var(--brand); background: linear-gradient(45deg, var(--brand) 50%, var(--surface) 50%); }
.st-in_progress .step-status { color: var(--ink-2); }
.st-complete .leaf { border-color: var(--brand); background: var(--brand); }
.st-complete .step-status { color: var(--brand); }
.st-attention .leaf { border-color: var(--attention); background: var(--attention-bg); }
.st-attention .step-status { color: var(--attention); font-weight: 600; }
.step.is-current .step-link { background: var(--brand-tint); }
.step.is-current .step-name { font-weight: 650; color: var(--brand-strong); }
.step.is-current .leaf { box-shadow: 0 0 0 3px var(--brand-tint-2); }
.rail-foot { padding: 14px 24px; border-top: 1px solid var(--line-soft); }
.rail-exit { font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------------ page head */
.page-head { margin-bottom: 20px; }
.step-count { font-size: 13px; color: var(--ink-3); font-weight: 500; margin: 0 0 2px; }
.lede { font-size: 15.5px; color: var(--ink-2); max-width: 70ch; margin: 0; }

/* ------------------------------------------------------------------ panels, notices */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.panel > h2 { font-size: 17px; }
.panel-head { margin-bottom: 14px; }
.panel-head h2 { margin-bottom: 2px; }
.panel-head p { margin: 0; }
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head-row h2 { margin: 0; font-size: 17px; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14.5px; }
.notice .icon { width: 18px; height: 18px; margin-top: 1px; }
.notice p { margin: 0; }
.notice-info { background: var(--brand-tint); color: var(--ink); }
.notice-success { background: var(--brand-tint); color: var(--brand-strong); border: 1px solid var(--brand-tint-2); }
.notice-attention { background: var(--attention-bg); color: #5b3500; border: 1px solid var(--attention-line); }
.notice-error { background: var(--error-bg); color: #7a1a14; border: 1px solid var(--error-line); }
.notice-list { display: block; }
.notice-list h2, .error-summary h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 8px; }
.notice-list h2 { color: #5b3500; }
.notice-list ul, .error-summary ul { margin: 0; padding-left: 22px; }
.notice-list li, .error-summary li { margin-bottom: 4px; }
.notice-list a { color: #5b3500; font-weight: 600; }
.error-summary { background: var(--surface); border: 2px solid var(--error); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.error-summary:focus { outline: 3px solid var(--error-line); outline-offset: 2px; }
.error-summary h2 { color: var(--error); }
.error-summary a { color: var(--error); font-weight: 600; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 6px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-primary:active { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn-quiet { background: transparent; color: var(--brand); padding: 0 12px; }
.btn-quiet:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #95201a; color: #fff; }
.btn-danger-text { color: var(--error); }
.btn-danger-text:hover { background: var(--error-bg); color: #8f1f18; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 14px; }
.btn-block { width: 100%; }
.inline-form { display: inline; margin: 0; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--ink); }
.hint { font-size: 13px; color: var(--ink-3); margin: -2px 0 7px; }
.hint-under { margin: 4px 0 14px 30px; }
.input {
  display: block; width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--field); border-radius: 6px;
}
.input:focus { outline: 2px solid transparent; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 82, 102, .22); }
.input[aria-invalid="true"] { border: 2px solid var(--error); }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2344525a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field-row { display: flex; gap: 16px; align-items: flex-start; }
.field-row .grow { flex: 1; min-width: 0; }
.w-state { width: 160px; flex: none; }
.w-zip { width: 116px; flex: none; }
.w-date { max-width: 220px; }
.w-ssn { max-width: 260px; }
.w-sign { max-width: 440px; }
.w-num { max-width: 240px; }
.affix { display: flex; align-items: stretch; }
.affix-pre, .affix-post-text {
  display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--field); background: var(--canvas);
  color: var(--ink-2); font-weight: 600;
}
.affix-pre { border-right: 0; border-radius: 6px 0 0 6px; }
.affix-pre + .input { border-radius: 0 6px 6px 0; }
.affix-post .input { border-radius: 6px 0 0 6px; }
.affix-post-text { border-left: 0; border-radius: 0 6px 6px 0; }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--error); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field-error .icon { margin-top: 2px; }
.field-error-row { margin: 6px 0 0; font-size: 13px; }

.fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.fieldset > legend { padding: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; }
.choice input[type="checkbox"], .choice input[type="radio"] { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.choice label { font-size: 15px; cursor: pointer; }
.choices-inline { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.choices-scale { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.choice-locked label { color: var(--ink-2); cursor: default; }
.choice-ack { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }
.choice-ack label { font-weight: 600; }
.ack { margin: 14px 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.form-actions-left { justify-content: flex-start; border: 0; padding-top: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.panel-form { max-width: 720px; }
.address-fields { margin-top: 4px; }

/* ------------------------------------------------------------------ action bar */
.actionbar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  margin: 12px -40px 0; padding: 14px 40px; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 18px -16px rgba(16, 36, 44, .4);
}
.actionbar-total { margin: 0 0 0 auto; display: flex; align-items: baseline; gap: 7px; font-size: 14px; color: var(--ink-2); }
.actionbar-total strong { font-size: 19px; color: var(--ink); font-weight: 700; }
.actionbar-right { display: flex; gap: 10px; }

/* ------------------------------------------------------------------ who's covered, plan cards */
.covered { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 16px; margin: 0 0 16px; }
.covered-legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 650; font-size: 15px; }
.covered-row { clear: both; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.covered-tier { margin: 0; font-size: 14px; color: var(--ink-2); }
.covered-tier strong { color: var(--ink); }
.covered .hint { clear: both; margin: 10px 0 0; }
.selection-line { font-size: 14.5px; margin: 0 0 14px; color: var(--ink-2); }
.selection-line strong { color: var(--ink); }

.plans { display: grid; column-gap: 16px; row-gap: 0; margin-bottom: 16px; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
.plans-1 { grid-template-columns: minmax(0, 380px); }
.plan {
  position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 6px;
}
.plan.is-selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-waive { background: #fafbfb; border-style: dashed; border-color: var(--line-strong); }
.plan-waive.is-selected { background: var(--surface); border-style: solid; }
.plan-tags { display: flex; gap: 6px; min-height: 22px; margin-bottom: 8px; }
.plan-name { font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.plan-blurb { font-size: 13.5px; color: var(--ink-3); margin: 4px 0 12px; }
.plan-cost { margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.plan-amount { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan-unit { font-size: 14px; color: var(--ink-2); }
.plan-annual { font-size: 13px; color: var(--ink-3); margin: 3px 0 0; }
.plan-action { margin-bottom: 14px; }
.plan-facts .fact-highlight { margin: 6px 0 2px; padding: 7px 10px; border: 0; border-radius: 6px; background: var(--brand-tint); }
.plan-facts .fact-highlight dt { color: var(--brand-strong); }
.plan-facts .fact-highlight dd { color: var(--brand-strong); font-weight: 650; }
.plan-facts { margin: 0; border-top: 1px solid var(--line-soft); }
.plan-facts div { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.plan-facts div:last-child { border-bottom: 0; }
.plan-facts dt { font-size: 12.5px; color: var(--ink-3); }
.plan-facts dd { margin: 1px 0 0; font-size: 14px; font-weight: 500; }
.tag-selected { gap: 4px; color: #fff; background: var(--brand); }
.tag-selected .icon { width: 13px; height: 13px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--brand-strong); background: var(--brand-tint); white-space: nowrap; flex: none; }
.tag-quiet { color: var(--ink-2); background: var(--canvas); border: 1px solid var(--line); }
.tag-attention { color: #6b3e00; background: var(--attention-bg); }

.compare { margin: 0 0 16px; }
.compare-toggle .icon { transition: transform .15s; }
.compare-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.compare-body { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 6px; overflow-x: auto; }
.compare-table th[scope="row"] { font-weight: 500; color: var(--ink-2); width: 26%; }
.compare-table .row-strong td { font-weight: 700; }

.waive-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 8px; }
.waive-row.is-selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.waive-text p { margin: 0; }
.waive-q { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.waive-state { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-strong); }
.waive-state .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ tables and facts */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table caption { text-align: left; font-weight: 650; font-size: 15px; padding: 0 0 10px; color: var(--ink); }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding-top: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.table tbody th { font-weight: 600; }
.table .cell-money { text-align: right; white-space: nowrap; }
.table tfoot th, .table tfoot td { border-bottom: 0; padding-top: 10px; padding-bottom: 4px; font-weight: 500; }
.table .row-total th, .table .row-total td { border-top: 2px solid var(--ink); padding-top: 12px; font-weight: 700; font-size: 16px; }
.table-summary thead th { white-space: nowrap; }
.table-summary thead th:nth-child(1) { width: 17%; }
.table-summary thead th:nth-child(2) { width: 32%; }
.table-summary thead th:nth-child(3) { width: 14%; }
.table-summary thead th:nth-child(4) { width: 21%; }
.cell-note { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-missing { display: inline-flex; gap: 6px; align-items: center; color: var(--attention); font-weight: 600; }
.table-compact th, .table-compact td { padding-top: 8px; padding-bottom: 8px; }
.table-deps td, .table-deps th { vertical-align: middle; }
.table-ben td { padding: 8px 8px 8px 0; }
.table-ben .input { height: 38px; }
.input-pct { width: 70px; text-align: right; }
.ben-total { font-weight: 700; font-size: 16px; }
.ben-total.is-off { color: var(--error); }

.facts { margin: 0 0 14px; }
.facts > div { display: flex; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { width: 170px; flex: none; color: var(--ink-3); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; }
.facts-row { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 16px; }
.facts-row > div { flex-direction: column; gap: 2px; border: 0; padding: 0; }
.facts-row dt { width: auto; font-size: 13px; }
.facts-row dd { font-size: 17px; font-weight: 650; }
.facts-compact > div { padding: 6px 0; }
.facts-compact dt { width: 150px; font-size: 13.5px; }

.empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--canvas); }
.empty-title { font-weight: 650; font-size: 16px; margin-bottom: 4px; }
.empty p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ spending, life */
.benefit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.benefit-head h2 { margin: 0; font-size: 17px; }
.benefit-panel > p { max-width: 72ch; color: var(--ink-2); }
.field-money { max-width: 340px; margin-bottom: 4px; }
.per-pay { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.per-pay .num { font-weight: 650; color: var(--ink); }
.option-list { margin: 10px 0 12px; }
.option-list > legend { margin-bottom: 8px; }
.option-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 190px; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; background: var(--surface);
}
.option-row:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.option-tags { display: flex; gap: 6px; }
.option-cost { text-align: right; }
.option-cost .num { font-weight: 650; }
.eoi-note { margin-bottom: 0; }

/* ------------------------------------------------------------------ review, confirmation */
.sign-panel .ack { margin: 6px 0 18px; max-width: 640px; }
.confirm-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.confirm-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.confirm-mark .icon { width: 28px; height: 28px; }
.confirm-meta { font-size: 16px; margin: 4px 0 2px; }
.confirm-meta strong { font-size: 22px; letter-spacing: 0.01em; margin-left: 4px; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.next-list { padding-left: 20px; margin: 0; }
.next-list li { margin-bottom: 8px; }
.dialog-total { color: var(--ink); }

/* ------------------------------------------------------------------ dashboard */
.dash-head { margin-bottom: 22px; }
.dash-head p { margin: 0; }
.oe-panel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.oe-main { padding: 28px 32px; }
.oe-main h2 { font-size: 22px; margin-bottom: 8px; }
.oe-main p { color: var(--ink-2); max-width: 64ch; }
.oe-deadline { color: var(--ink) !important; }
.oe-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.oe-side { background: var(--brand); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.oe-side-title { font-size: 13px; color: #d4e7ee; margin: 0 0 2px; }
.oe-side-count { font-size: 15px; margin: 0; }
.oe-side-count .num { font-size: 34px; font-weight: 700; margin-right: 4px; }
.mini-leaves { list-style: none; display: flex; gap: 9px; padding: 0; margin: 16px 0 0; }
.mini-leaf .leaf { width: 18px; height: 18px; margin: 0; border-radius: 15px 1px 15px 1px; border: 2px solid rgba(255, 255, 255, .55); background: transparent; }
.mini-leaf.st-complete .leaf { background: #fff; border-color: #fff; }
.mini-leaf.st-in_progress .leaf { border-color: #fff; background: linear-gradient(45deg, #fff 50%, transparent 50%); }
.mini-leaf.st-attention .leaf { border-color: #ffd08f; background: #ffd08f; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.dash-side .panel h2 { font-size: 16px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { border-bottom: 1px solid var(--line-soft); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a { display: flex; gap: 10px; align-items: center; padding: 9px 0; text-decoration: none; }
.doc-list a .icon { color: var(--ink-3); }
.doc-list a:hover span { text-decoration: underline; }
.doc-list-wide { columns: 2; column-gap: 40px; }
.doc-list-wide li { break-inside: avoid; }
.doc-page { max-width: 860px; }
.doc-back { margin-bottom: 10px; font-size: 14px; }
.doc-body h2 { margin: 26px 0 8px; font-size: 17px; }
.doc-body .table { margin-bottom: 24px; background: var(--surface); }
.doc-body .lede { margin-bottom: 18px; }
.faq h3 { margin: 18px 0 4px; font-size: 15.5px; }
.faq h3:first-of-type { margin-top: 0; }
.faq p { color: var(--ink-2); }
.simple-page { max-width: 640px; padding: 24px 0 40px; }
.simple-body { color: var(--ink-2); }

/* ------------------------------------------------------------------ sign-in */
.is-auth { background: var(--surface); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; padding: 26px 56px 22px; }
.auth-content { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 28px 0; }
.auth-content:focus { outline: none; }
.auth-employer { margin-bottom: 24px; }
.auth-employer .jf-mark { width: 32px; height: 32px; }
.auth-employer .employer-name { font-size: 12.5px; }
.auth-title { font-size: 28px; margin-bottom: 6px; }
.auth-sub { color: var(--ink-2); margin-bottom: 22px; }
.field-lg .input { height: 48px; font-size: 16px; }
.field-code .input { height: 58px; max-width: 230px; font-size: 26px; font-weight: 600; letter-spacing: 0.32em; padding-left: 16px; font-variant-numeric: tabular-nums; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: var(--brand-tint); }
.auth-form .choice { margin: 2px 0 20px; }
.auth-alt { margin: 18px 0 0; font-size: 14.5px; }
.auth-help { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.auth-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-3); }
.auth-foot p { margin: 0; }
.auth-art { position: relative; overflow: hidden; background: var(--brand); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art-figure { position: absolute; inset: 0; }
.auth-art-img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 60%; }
.auth-art-copy { position: relative; padding: 26px 44px 30px; background: var(--brand-strong); border-top: 1px solid rgba(255, 255, 255, .14); }
.auth-art-copy p { margin: 0; color: #d4e7ee; max-width: 420px; }
.auth-art-title { font-size: 20px; font-weight: 650; color: #fff !important; margin-bottom: 2px !important; }
.auth-art-dates { font-size: 15px; color: #fff !important; }
.auth-art-note { font-size: 14px; margin-top: 10px !important; }

/* ------------------------------------------------------------------ dialogs */
.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 12px;
  color: var(--ink); background: var(--surface); box-shadow: 0 24px 64px rgba(8, 28, 36, .30), 0 2px 8px rgba(8, 28, 36, .14);
}
.dialog::backdrop { background: rgba(14, 30, 38, .55); }
.dialog:focus, .dialog:focus-visible { outline: none; }
.dialog[open] { animation: dialog-in .16s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dialog-inner { position: relative; padding: 26px 28px 22px; }
.dialog-title { font-size: 20px; line-height: 1.3; margin: 0 0 12px; padding-right: 36px; }
.dialog-body p { color: var(--ink-2); }
.dialog-body p:last-child { margin-bottom: 4px; }
.dialog-list { padding-left: 20px; color: var(--ink-2); margin: 0 0 12px; }
.dialog-list li { margin-bottom: 5px; }
.dialog .facts-compact { background: var(--canvas); border-radius: var(--radius); padding: 4px 14px; margin: 4px 0 14px; }
.dialog .facts-compact > div:last-child { border-bottom: 0; }
.dialog-field { margin-top: 14px; }
.dialog-field .field { margin-bottom: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.dialog-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; }
.dialog-x:hover { background: var(--canvas); color: var(--ink); }
.dialog .fieldset { margin: 14px 0 12px; }

/* ------------------------------------------------------------------ loading, toasts */
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; pointer-events: none; opacity: 0; transition: opacity .2s; }
.loadbar span { display: block; height: 100%; width: 0; background: var(--brand); }
html.is-loading .loadbar { opacity: 1; }
html.is-loading .loadbar span { animation: loading 2.6s cubic-bezier(.12, .7, .25, 1) forwards; }
html.is-loading body { cursor: progress; }
html.is-loading .actionbar .btn, html.is-loading .plan-action .btn { opacity: .7; }
@keyframes loading { from { width: 0; } to { width: 88%; } }
.toasts { position: fixed; right: 24px; bottom: 92px; z-index: 2500; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 400px; padding: 12px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: 0 10px 30px rgba(8, 28, 36, .28); animation: toast-in .18s ease-out; }
.toast .icon { width: 18px; height: 18px; color: #9fd3e2; }
.toast.is-leaving { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ statement */
.is-statement { background: var(--canvas); }
.statement { max-width: 880px; margin: 0 auto; padding: 24px 24px 64px; }
.statement-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.statement-sheet { background: var(--surface); border: 1px solid var(--line); padding: 44px 56px 36px; }
.statement-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 2px solid var(--ink); }
.statement-brands { display: flex; align-items: center; gap: 14px; }
.statement-id { text-align: right; }
.statement-id p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.statement-id .statement-number { font-size: 20px; font-weight: 700; color: var(--ink); }
.statement-sheet h1 { font-size: 24px; }
.statement-sheet h2 { font-size: 15px; margin: 26px 0 8px; }
.statement-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; }
.statement .facts dt { width: 104px; }
.statement-sign p { margin-bottom: 4px; }
.statement-foot { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.statement-foot p { margin: 0; }

/* ------------------------------------------------------------------ demo controls */
.demo-main h2 { font-size: 17px; }
.setting-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .hint { margin: 2px 0 0 30px; }
.demo-reset-all { display: block; margin-top: 16px; }
.segs { display: flex; gap: 6px; margin-bottom: 18px; }
.seg { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 500; }
.seg.is-on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; }
.totp-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
.totp-now { grid-column: 1 / -1; }
.totp-qr { min-height: 240px; display: grid; place-items: center; }
.totp-qr svg { width: 250px; height: 250px; }
.totp-code { font-size: 46px; font-weight: 700; letter-spacing: 0.08em; margin: 0 0 4px; }
.totp-secret { font-size: 16px; letter-spacing: 0.05em; }
.totp-uri { word-break: break-all; font-size: 13px; color: var(--ink-2); }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 980px) {
  .shell.has-rail { flex-direction: column; }
  .rail { width: auto; position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .main, .main-wide { padding: 20px 16px 32px; }
  .actionbar { margin: 12px -16px 0; padding: 12px 16px; flex-wrap: wrap; }
  .plans-3, .plans-2, .form-grid, .dash-grid, .oe-panel, .totp-grid, .statement-cols { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-row: auto; grid-template-rows: none; margin-bottom: 16px; }
  .rail { height: auto; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-main { padding: 20px 16px; }
  .topnav, .usermenu-name { display: none; }
  .topbar-inner { padding: 0 16px; }
  .field-row { flex-wrap: wrap; }
  .option-row { grid-template-columns: minmax(0, 1fr); }
  .option-cost { text-align: left; }
  .statement-sheet { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .no-print, .loadbar, .toasts { display: none !important; }
  body, .is-statement { background: #fff; }
  .statement { padding: 0; max-width: none; }
  .statement-sheet { border: 0; padding: 0; }
}
