/* PactPilot — ConstructFi product brand.
   Ink Navy carries the page, Beacon Amber carries one action. Risk colours live only in findings. */
:root {
  --ink: #123049; --deep: #0B1D2E; --amber: #F2C14E; --amber-d: #D9A62F; --harbour: #3E6A85;
  --paper: #F7F6F3; --fog: #E4E2DB; --line: #E0DED7; --line-2: #EEECE6; --white: #fff;
  --text: #0B1D2E; --muted: #5B6570; --faint: #8A9099;
  --high: #B3322B; --high-bg: #FBEDEC; --review: #C97B1E; --review-bg: #FCF3E6; --clear: #2E7D62; --clear-bg: #E9F4EF; --open: #6B7480; --open-bg: #F0F0EE;
  --display: 'Newsreader', Georgia, serif; --body: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 6px; --shadow: 0 1px 2px rgba(11,29,46,.05), 0 6px 24px rgba(11,29,46,.06);
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 15.5px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--harbour); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.micro { font-size: 12px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; line-height: 1.08; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--deep); color: #fff; }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -.01em; }
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-left: 4px; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { background: none; border: 0; color: rgba(255,255,255,.66); padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav button[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav button:disabled { opacity: .35; cursor: not-allowed; }
.qualbar { background: var(--ink); color: rgba(255,255,255,.72); font-size: 12px; }
.qualbar .wrap { height: auto; padding-top: 6px; padding-bottom: 6px; display: block; }
.qualbar b { color: var(--amber); font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: 14.5px; text-decoration: none; color: var(--ink); transition: background-color .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--harbour); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--deep); }
.btn-primary:hover { background: var(--amber-d); border-color: var(--amber-d); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--deep); border-color: var(--deep); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* Home */
.hero { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(242,193,78,.16) 0 4px, transparent 4px 34px), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 100% 100%, 26px 26px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.hero .wrap { position: relative; padding-top: 68px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); }
.hero p.lede { font-size: 18px; color: rgba(255,255,255,.74); max-width: 56ch; margin: 20px 0 0; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: #fff; }
.steps { display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }

.steps > div { background: rgba(11,29,46,.82); padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.steps > div > div { display: block; }
.steps .mono { color: var(--amber); font-size: 12px; padding-top: 2px; }
.steps b { font-weight: 500; display: block; }
.steps span.s { color: rgba(255,255,255,.62); font-size: 13.5px; }

.section { padding: 56px 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-h h2 { font-family: var(--display); font-size: 30px; font-weight: 300; letter-spacing: -.02em; }
.grid { display: grid; gap: 14px; }
.scen-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.scen { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.scen:hover { border-color: var(--harbour); box-shadow: var(--shadow); }
.scen h3 { font-family: var(--display); font-size: 21px; font-weight: 400; }
.scen p { margin: 0; font-size: 14px; color: var(--muted); }
.scen .go { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 500; color: var(--ink); }
.pact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pact-row { background: #fff; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; }
.pact-row h3 { font-size: 16px; font-weight: 500; }
.pact-row .acts { display: flex; gap: 6px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); }
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.eco a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; transition: border-color .15s; }
.eco a:hover { border-color: var(--harbour); }
.eco h3 { font-family: var(--display); font-size: 20px; margin: 6px 0; }
.eco p { margin: 0; font-size: 14px; color: var(--muted); }

/* Builder */
.builder { display: grid; grid-template-columns: 236px minmax(0, 1fr) 300px; gap: 28px; padding-top: 28px; padding-bottom: 80px; align-items: start; }
.rail { position: sticky; top: 92px; display: grid; gap: 2px; }
.rail button { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 4px; cursor: pointer; font-size: 14px; color: var(--muted); }
.rail button:hover { background: #fff; color: var(--text); }
.rail button[aria-current="step"] { background: #fff; color: var(--text); box-shadow: inset 2px 0 0 var(--amber); }
.rail .mono { font-size: 11px; color: var(--faint); }
.rail .cnt { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rail .cnt.done { color: var(--clear); }
.dots { display: inline-flex; gap: 3px; }
.sec-head { margin-bottom: 18px; }
.sec-head h2 { font-family: var(--display); font-size: 34px; font-weight: 300; letter-spacing: -.02em; margin-top: 4px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 12px; position: relative; }
.qcard.st-high { box-shadow: inset 3px 0 0 var(--high); }
.qcard.st-review { box-shadow: inset 3px 0 0 var(--review); }
.qcard.st-clear { box-shadow: inset 3px 0 0 var(--clear); }
.qhead { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.qhead h3 { font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.qref { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; margin-bottom: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.qref .crit { color: var(--high); }
.qhelp { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.opts { display: grid; gap: 6px; margin-top: 14px; }
.opt { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; text-align: left; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--paper); cursor: pointer; font-size: 14.5px; transition: border-color .12s, background-color .12s; }
.opt:hover { border-color: var(--harbour); background: #fff; }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--ink); background: #fff; }
.opt .tick { width: 16px; height: 16px; margin-top: 3px; border: 1.5px solid var(--faint); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.opt.multi .tick { border-radius: 3px; }
.opt[aria-pressed="true"] .tick, .opt[aria-checked="true"] .tick { border-color: var(--ink); background: var(--ink); }
.opt[aria-pressed="true"] .tick::after, .opt[aria-checked="true"] .tick::after { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.opt.multi[aria-checked="true"] .tick::after { width: 8px; height: 4px; background: none; border-left: 2px solid #fff; border-bottom: 2px solid #fff; border-radius: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt .nt { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.field { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.field input { width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.field input:focus { background: #fff; border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(242,193,78,.35); }
.field input[type="number"] { max-width: 160px; font-family: var(--mono); }
.field .unit { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.qfoot { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.learn { font-size: 12.5px; color: var(--harbour); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.learn svg { width: 14px; height: 14px; flex: none; }
svg.ic { width: 16px; height: 16px; flex: none; }
.learn:hover { text-decoration: underline; }
.finding-note { margin-top: 10px; font-size: 13.5px; padding: 8px 12px; border-radius: 4px; }
.finding-note.high { background: var(--high-bg); color: #7E211C; }
.finding-note.review { background: var(--review-bg); color: #7A4A10; }
.secnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.high { color: var(--high); background: var(--high-bg); }
.pill.review { color: var(--review); background: var(--review-bg); }
.pill.clear { color: var(--clear); background: var(--clear-bg); }
.pill.open { color: var(--open); background: var(--open-bg); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.high { background: var(--high); } .dot.review { background: var(--review); } .dot.clear { background: var(--clear); } .dot.open { background: var(--fog); }

/* Score panel */
.side { position: sticky; top: 92px; display: grid; gap: 12px; }
.scorecard { background: var(--deep); color: #fff; border-radius: var(--r); padding: 20px; }
.scorecard .num { font-family: var(--display); font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.scorecard .of { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5); margin-left: 6px; }
.verdict { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; padding: 5px 10px; border-radius: 3px; margin-top: 12px; }
.verdict.clear { background: var(--clear); color: #fff; }
.verdict.review { background: var(--amber); color: var(--deep); }
.verdict.high { background: var(--high); color: #fff; }
.meter { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; margin-top: 16px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--amber); transition: width .3s ease; }
.scorecard .meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.55); margin-top: 8px; }
.scorecard p { font-size: 13px; color: rgba(255,255,255,.7); margin: 12px 0 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.panel h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.mini-find { display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.mini-find:first-of-type { border-top: 0; }
.mini-find button { text-align: left; }

/* Results */
.results { padding-top: 32px; padding-bottom: 80px; }
.res-top { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; }
.res-top .scorecard .num { font-size: 96px; }
.gatebox { background: var(--high-bg); border: 1px solid #F0CFCC; border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.gatebox h3 { color: var(--high); font-size: 14px; font-weight: 600; }
.gatebox ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.secbars { display: grid; gap: 8px; }
.secbar { display: grid; grid-template-columns: 26px 150px 1fr 70px; gap: 10px; align-items: center; font-size: 13.5px; }
.secbar .track { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.secbar .track i { display: block; height: 100%; border-radius: 4px; }
.secbar .v { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--muted); }
.flist { display: grid; gap: 10px; }
.fitem { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.fitem.high { box-shadow: inset 3px 0 0 var(--high); } .fitem.review { box-shadow: inset 3px 0 0 var(--review); } .fitem.open { box-shadow: inset 3px 0 0 var(--fog); }
.fitem h3 { font-size: 15.5px; font-weight: 500; }
.fitem .ask { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.fitem .ask b { color: var(--ink); font-weight: 500; }
.fitem .r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stress { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.stress div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stress h4 { margin: 8px 0 4px; font-size: 14.5px; font-weight: 500; }
.stress p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Waterfall */
.wf-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.form label span.h { font-weight: 400; color: var(--muted); font-size: 12px; }
.form input, .form select, .form textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { background: #fff; border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(242,193,78,.35); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: right; font-variant-numeric: tabular-nums; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tablewrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.tierbar { display: flex; height: 34px; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.tierbar i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Counsel package */
.pkg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px 40px; }
.doc h2 { font-family: var(--display); font-size: 22px; margin: 28px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.doc h2:first-of-type { margin-top: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--line-2); }
.doc th { font-weight: 500; width: 45%; color: var(--ink); }
.doc td.o { color: var(--open); }
.asks { counter-reset: a; list-style: none; padding: 0; margin: 0; }
.asks li { padding: 9px 0 9px 40px; border-bottom: 1px solid var(--line-2); position: relative; font-size: 14px; }
.asks li::before { counter-increment: a; content: counter(a, decimal-leading-zero); position: absolute; left: 0; top: 9px; font-family: var(--mono); font-size: 12px; color: var(--harbour); }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--muted); align-items: start; }
.check input { margin-top: 3px; }
.notice { background: var(--paper); border-left: 3px solid var(--amber); padding: 12px 14px; font-size: 13px; color: #3B4652; border-radius: 0 4px 4px 0; }
.done-box { background: var(--clear-bg); border: 1px solid #CFE6DB; border-radius: var(--r); padding: 16px; font-size: 14px; }

/* Rewards */
.rw { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ledger div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.ledger div:first-child { border-top: 0; }
.badge-grad { display: inline-flex; gap: 8px; align-items: center; background: #082C23; color: #D4A95A; padding: 6px 12px; border-radius: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

/* Toast and modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--deep); color: #fff; padding: 11px 18px; border-radius: 5px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; background: rgba(11,29,46,.5); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal .box { background: #fff; border-radius: 8px; max-width: 460px; width: 100%; padding: 24px; box-shadow: var(--shadow); }
.modal h3 { font-family: var(--display); font-size: 24px; margin-bottom: 8px; }
.modal .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 12.5px; color: var(--muted); }
.foot .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }

.mobile-score { display: none; }

@media (max-width: 1120px) {
  .builder { grid-template-columns: 200px minmax(0, 1fr); }
  .builder .side { display: none; }
  .mobile-score { display: flex; position: sticky; bottom: 0; z-index: 15; background: var(--deep); color: #fff; padding: 10px 16px; align-items: center; gap: 12px; justify-content: space-between; }
  .mobile-score .n { font-family: var(--display); font-size: 28px; font-weight: 300; }
  .pkg { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 18px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 40px; gap: 30px; }
  .builder { grid-template-columns: 1fr; padding-top: 0; gap: 0; }
  .rail { position: sticky; top: 60px; z-index: 10; display: flex; overflow-x: auto; gap: 4px; background: var(--paper); padding: 10px 0; margin: 0 -18px; padding-left: 18px; padding-right: 18px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail button { display: flex; flex: none; padding: 7px 10px; background: #fff; border: 1px solid var(--line); }
  .rail button .lbl { white-space: nowrap; }
  .rail button .dots { display: none; }
  .rail button[aria-current="step"] { box-shadow: inset 0 -2px 0 var(--amber); }
  .sec-head { margin-top: 20px; }
  .sec-head h2 { font-size: 28px; }
  .qcard { padding: 16px; }
  .res-top, .wf-grid, .rw, .eco { grid-template-columns: 1fr; }
  .secbar { grid-template-columns: 22px 1fr 60px; }
  .secbar .track { grid-column: 2 / 4; grid-row: 2; }
  .doc { padding: 22px 18px; }
  .doc th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .doc td { display: block; }
  .pact-row { grid-template-columns: 1fr; }
  .fitem { grid-template-columns: 1fr; }
  .fitem .r { align-items: flex-start; flex-direction: row; }
  .brand small { display: none; }
  .bar .wrap { gap: 8px; }
  .nav button { padding: 8px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Shown only when the browser blocks storage (private mode, sandboxed previews). */
.savebar { background: #FBF3DC; border-bottom: 1px solid #EBD9A6; color: var(--ink, #123049); font-size: 13px; }
.savebar .wrap { height: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
@media (max-width: 560px) { .savebar .wrap { flex-direction: column; align-items: flex-start; } }
