/* Niskus VALOR — onboarding (welcome & account creation; guided data capture). Self-contained: does not load
   /styles.css, so no class collisions. Niskus brand: ink #10212B, teal #1F7A75, gold #C9A23A / #E6AD2B on paper. */
:root { --ink: #10212B; --ink-2: #163A39; --teal: #1F7A75; --teal-d: #155E5A; --teal-t: #E3F1EF; --gold: #C9A23A; --gold-b: #E6AD2B; --gold-t: #FFF7E3;
  --paper: #F4F2EC; --surface: #FBFAF6; --surface-2: #ECE9DF; --line: #E2DED2; --line-2: #D3CDBD; --muted: #4F5D5C; --muted-l: #8C9A99; --text-muted: #5F6B69; /* B5: --muted-l is for lines and dots; muted TEXT is --text-muted (≥ 4.5:1) */
  --alert: #B4452E; --alert-t: #F6E9E4; --ok: #2F7D4F; --ok-t: #E3F1E8; --t1: #C9A23A; --t2: #1F7A75; --t3: #8C9A99;
  --serif: Georgia, 'Times New Roman', serif; --sans: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; min-height: 100vh; }
a { color: var(--teal-d); }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ob-ic { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
:focus-visible { outline: 3px solid var(--teal-d); outline-offset: 2px; }

/* ---------- header ---------- */
.ob-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 22px; background: linear-gradient(150deg, var(--ink), var(--ink-2)); color: #F4EFE2; border-bottom: 3px solid var(--gold); }
.ob-top img { height: 32px; width: auto; display: block; }
.ob-top .ob-title { display: flex; flex-direction: column; line-height: 1.15; }
.ob-top .ob-title b { font-family: var(--serif); font-size: 17px; color: #fff; }
.ob-top .ob-title small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-b); }
.ob-top .sp { flex: 1; }
.ob-top .ob-org { font-size: 12.5px; color: #CFE3E0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.ob-top .ob-save { font-size: 12px; color: #CFE3E0; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.ob-top .ob-save .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ob-top .ob-save.busy .dot { background: var(--gold-b); }
.ob-top .ob-save.err .dot { background: var(--alert); }
.ob-tbtn { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .26); color: #fff; padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ob-tbtn:hover { border-color: var(--gold-b); }
.ob-tbtn.gold { background: var(--gold-b); border-color: var(--gold-b); color: var(--ink); }

/* ---------- buttons, chips ---------- */
.ob-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--teal); background: var(--teal); color: #fff; text-decoration: none; }
.ob-btn:hover { background: var(--teal-d); }
.ob-btn.gold { background: var(--gold-b); border-color: var(--gold-b); color: var(--ink); }
.ob-btn.gold:hover { background: #D99E1C; }
.ob-btn.ghost { background: #fff; color: var(--teal-d); border-color: var(--line-2); }
.ob-btn.ghost:hover { border-color: var(--teal); }
.ob-btn.sm { font-size: 12.5px; padding: 6px 12px; }
.ob-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ob-link { border: none; background: none; padding: 0; color: var(--teal-d); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (pointer: coarse), (max-width: 820px) { .ob-link { padding-top: 4px; padding-bottom: 4px; } } /* a comfortable tap height on phones */
.ob-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.ob-chip.t1 { background: #FBF1D8; color: #7A5A06; } .ob-chip.t2 { background: var(--teal-t); color: #0F5A55; } .ob-chip.t3 { background: var(--surface-2); color: var(--muted); }
.ob-chip.acct { background: var(--ink); color: var(--gold-b); } .ob-chip.req { background: #FBF1D8; color: #7A5A06; } .ob-chip.intp { background: #EAF0F7; color: #20507A; }
.ob-chip.ok { background: var(--ok-t); color: var(--ok); } .ob-chip.warn { background: #FDF0D8; color: #7A4B00; } .ob-chip.bad { background: var(--alert-t); color: var(--alert); } .ob-chip.mute { background: var(--surface-2); color: var(--muted); }
.ob-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* ---------- welcome page ---------- */
.ow-main { max-width: 1120px; margin: 0 auto; padding: 30px 22px 60px; }
.ow-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; margin-bottom: 26px; }
.ow-kick { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d); }
.ow-hero h1 { font-family: var(--serif); font-size: 36px; line-height: 1.12; margin: 0 0 12px; }
.ow-hero p.lead { margin: 0; font-size: 16.5px; color: var(--muted); }
.ow-hero img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(16, 33, 43, .2); }
.ow-flow { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ow-flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 14px; }
.ow-flow li:not(:last-child)::after { content: ''; position: absolute; right: -9px; top: 24px; width: 8px; height: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
.ow-flow .n { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: var(--ink); color: var(--gold-b); font-weight: 800; font-size: 13px; }
.ow-flow b { display: block; margin: 8px 0 3px; font-size: 13.5px; }
.ow-flow small { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; }
.ow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.ow-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: 0 1px 0 rgba(16, 33, 43, .03); }
.ow-card h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 4px; }
.ow-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.ow-step { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.ow-sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ow-sector { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 11px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.25; min-height: 52px; }
.ow-sector:hover { border-color: var(--teal); }
.ow-sector[aria-checked="true"] { border-color: var(--teal); background: var(--teal-t); box-shadow: inset 0 0 0 1px var(--teal); }
.ow-sector .ico { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--gold-b); display: inline-flex; align-items: center; justify-content: center; }
.ow-sector .ico .ob-ic { vertical-align: 0; }
.ow-sector small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.ow-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ow-fields .wide { grid-column: 1 / -1; }
.ob-field label { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.ob-field input, .ob-field select, .ob-field textarea { width: 100%; font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.ob-field input:focus-visible, .ob-field select:focus-visible, .ob-field textarea:focus-visible { outline: 3px solid var(--teal-d); outline-offset: 1px; }
.ob-field .err { color: var(--alert); font-size: 12px; margin-top: 4px; min-height: 0; font-weight: 700; }
.ob-field.invalid input, .ob-field.invalid select { border-color: var(--alert); }
.ob-strength { display: flex; gap: 4px; margin-top: 6px; }
.ob-strength span { flex: 1; height: 5px; border-radius: 9px; background: var(--surface-2); }
.ob-strength.s1 span:nth-child(-n+1) { background: var(--alert); } .ob-strength.s2 span:nth-child(-n+2) { background: var(--gold-b); }
.ob-strength.s3 span:nth-child(-n+3) { background: var(--teal); } .ob-strength.s4 span { background: var(--ok); }
.ob-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ow-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ow-consent input { margin-top: 3px; accent-color: var(--teal); }
.ow-side h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 10px; }
.ow-tier { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ow-tier:last-of-type { border-bottom: none; }
.ow-tier .bar { flex: none; width: 6px; border-radius: 6px; }
.ow-tier .bar.t1 { background: var(--t1); } .ow-tier .bar.t2 { background: var(--t2); } .ow-tier .bar.t3 { background: var(--t3); }
.ow-tier b { font-size: 14px; } .ow-tier p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.ow-keys { margin-top: 12px; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ow-keys div { display: flex; gap: 8px; align-items: flex-start; }
.ow-secure { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; background: var(--teal-t); border-radius: 10px; padding: 10px 12px; }
.ow-err { color: var(--alert); font-weight: 700; min-height: 20px; margin-top: 10px; }
.ow-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- onboarding app ---------- */
.ob-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.ob-rail { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 58px; align-self: start; height: calc(100vh - 58px); overflow: auto; }
.ob-rail h2 { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 6px; }
.ob-nav { display: flex; flex-direction: column; gap: 4px; }
.ob-nav button { display: block; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 11px; padding: 10px 11px; color: var(--ink); }
.ob-nav button:hover { background: var(--surface-2); }
.ob-nav button[aria-current="page"] { background: #fff; border-color: var(--line-2); box-shadow: 0 1px 0 rgba(16, 33, 43, .04); }
.ob-nav .row { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 13.5px; }
.ob-nav .row .cnt { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ob-nav .tbar { display: block; height: 6px; border-radius: 9px; background: var(--surface-2); margin-top: 7px; overflow: hidden; }
.ob-nav .tbar span { display: block; height: 100%; border-radius: 9px; transition: width .4s ease; }
.ob-nav .tbar.t1 span { background: var(--t1); } .ob-nav .tbar.t2 span { background: var(--t2); } .ob-nav .tbar.t3 span { background: var(--t3); }
.ob-nav .meta { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.ob-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold-b); color: var(--ink); font-size: 11px; font-weight: 800; align-items: center; justify-content: center; }
.ob-legend { margin: 18px 6px 0; display: grid; gap: 6px; font-size: 11.5px; color: var(--muted); }
.ob-legend div { display: flex; gap: 6px; align-items: center; }
.ob-main { padding: 24px 30px 80px; max-width: 1040px; outline: none; }
.ob-main h1 { font-family: var(--serif); font-size: 27px; margin: 0 0 6px; line-height: 1.2; }
.ob-lede { color: var(--muted); margin: 0 0 18px; max-width: 72ch; }
.ob-banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line-2); border-left: 4px solid var(--teal); background: var(--surface); display: flex; gap: 10px; align-items: flex-start; }
.ob-banner.gold { border-left-color: var(--gold-b); background: var(--gold-t); }
.ob-banner.ok { border-left-color: var(--ok); }
.ob-banner.bad { border-left-color: var(--alert); background: var(--alert-t); }
.ob-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ob-tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--t3); }
.ob-tcard.t1, .ob-tcard.ob-overall { border-top-color: var(--t1); } .ob-tcard.t2 { border-top-color: var(--t2); } .ob-tcard.ob-overall { max-width: 520px; margin-bottom: 14px; }
.ob-tcard h3 { font-family: var(--serif); font-size: 18px; margin: 0; }
.ob-tcard .row { display: flex; gap: 14px; align-items: center; }
.ob-tcard .stats { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ob-tcard .stats b { color: var(--ink); }
.ob-ring { flex: none; }
.ob-ring .trk { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ob-ring .val { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ob-ring.t1 .val { stroke: var(--t1); } .ob-ring.t2 .val { stroke: var(--t2); } .ob-ring.t3 .val { stroke: var(--t3); }
.ob-ring .num { font-family: var(--serif); font-size: 22px; font-weight: 700; fill: var(--ink); }
.ob-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 16px; }
.ob-panel h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 6px; }
/* the AI-ready data form: download it, let an assistant fill it in, upload or paste it back (previewed before saving) */
.ob-ai { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.ob-ai > summary { cursor: pointer; font-weight: 800; color: var(--teal-d); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.ob-ai > summary svg { width: 16px; height: 16px; }
.ob-paste { width: 100%; font: 13px/1.4 ui-monospace, Consolas, monospace; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; background: #fff; resize: vertical; min-height: 96px; }
.ob-modes { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.ob-modes button { border: none; background: transparent; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ob-modes button + button { border-left: 1px solid var(--line-2); }
.ob-modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ob-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ob-count { font-size: 13px; color: var(--muted); }

/* the question card */
.ob-q { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 20px; box-shadow: 0 8px 24px rgba(16, 33, 43, .06); border-left: 5px solid var(--t3); animation: obIn .25s ease both; }
.ob-q.rq, .ob-q.t1 { border-left-color: var(--t1); } .ob-q.t2 { border-left-color: var(--t2); } /* rq: a required question (no tiers on the client side) */
.ob-q.compact { padding: 14px 16px 14px; box-shadow: none; margin-bottom: 10px; animation: none; }
.ob-q .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ob-q h2.qlabel, .ob-q h3.qlabel { font-family: var(--serif); font-size: 21px; line-height: 1.3; margin: 0 0 4px; }
.ob-q.compact h3.qlabel { font-size: 16px; font-family: var(--sans); font-weight: 700; }
.ob-q .qhelp { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.ob-q .qwhy { font-size: 12px; color: #20507A; margin: 0 0 12px; display: flex; gap: 6px; align-items: flex-start; }
.ob-q .qstream { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); margin: 0 0 4px; }
.ob-q .req { color: var(--alert); }
@keyframes obIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ob-input { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ob-input input[type=text], .ob-input input[type=email], .ob-input input[type=date], .ob-input select, .ob-input textarea {
  font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; color: var(--ink); min-width: 0; }
.ob-input input.num { width: 190px; font-variant-numeric: tabular-nums; text-align: right; }
.ob-input select { min-width: 280px; max-width: 100%; }
.ob-input textarea { width: 100%; min-height: 90px; resize: vertical; }
.ob-input input.wide { width: 100%; }
.ob-unit { font-size: 13.5px; color: var(--muted); font-weight: 700; }
/* metric or imperial: the unit a figure is typed in (stored in metric) */
.ob-input select.ob-unitsel { min-width: 0; width: auto; max-width: 220px; font-size: 13.5px; font-weight: 700; color: var(--teal-d); background: var(--surface); padding: 8px 10px; }
.ob-unitsbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted); }
.ob-unitsbar label { font-weight: 800; color: var(--ink); }
.ob-unitsbar select { font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink); max-width: 100%; }
.ob-unitsbar span { flex: 1 1 260px; }
.ob-q.invalid .ob-input input, .ob-q.invalid .ob-input select { border-color: var(--alert); }
.ob-reads { margin-top: 10px; font-size: 13px; color: var(--ink); background: var(--teal-t); border-radius: 9px; padding: 8px 11px; display: flex; gap: 8px; align-items: flex-start; }
.ob-reads.warn { background: #FDF0D8; color: #7A4B00; }
.ob-reads.bad { background: var(--alert-t); color: var(--alert); font-weight: 700; }
/* segmented choice and chips */
.ob-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ob-seg label { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.ob-seg label:hover { border-color: var(--teal); }
.ob-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-seg input:checked + span { color: #fff; }
.ob-seg label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.ob-seg label:has(input:focus-visible) { outline: 3px solid var(--teal-d); outline-offset: 2px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-chips label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.ob-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-chips label:has(input:checked) { background: var(--teal-t); border-color: var(--teal); color: #0F5A55; }
.ob-chips label:has(input:checked)::before { content: '✓'; font-weight: 800; }
.ob-chips label:has(input:focus-visible) { outline: 3px solid var(--teal-d); outline-offset: 2px; }
/* A3 — hazards: a tick per hazard; once ticked, how it is known (and the result, when measured) */
.ob-hz { display: grid; gap: 6px; }
.hz-row { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; min-width: 0; }
.hz-row.on { border-color: var(--teal); background: var(--teal-t); }
.hz-tick { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 28px; }
.hz-tick input { width: 18px; height: 18px; }
.hz-basis { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px 26px; }
.hz-basis label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font-size: 13px; cursor: pointer; min-height: 28px; }
.hz-basis label:has(input:checked) { border-color: var(--teal-d); color: var(--teal-d); font-weight: 700; }
.hz-val { margin: 6px 0 2px 26px; display: flex; gap: 6px; align-items: center; }
.hz-val select { min-height: 34px; }
.hz-test { margin: 4px 0 2px 26px; font-size: 13px; color: var(--text-muted); }
/* the scaling bar (slider) with the typical range */
.ob-scale { flex: 1 1 320px; min-width: 240px; }
.ob-scale .track { position: relative; height: 34px; }
/* the track is drawn here (not by the range input) so the typical-range band sits on it and the thumb above both */
.ob-scale .track::before { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 6px; background: var(--surface-2); }
.ob-scale .band { position: absolute; top: 13px; height: 8px; border-radius: 6px; background: rgba(31, 122, 117, .38); pointer-events: none; }
.ob-scale input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; height: 34px; }
.ob-scale input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: transparent; }
.ob-scale input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: transparent; }
.ob-scale input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(16, 33, 43, .35); margin-top: -8px; }
.ob-scale input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(16, 33, 43, .35); }
.ob-scale input[type=range].unset::-webkit-slider-thumb { background: var(--muted-l); }
.ob-scale .ticks { position: relative; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -4px; min-height: 16px; }
.ob-scale .ticks .typ { position: absolute; top: 0; transform: translateX(-50%); color: var(--teal-d); font-weight: 700; white-space: nowrap; }
/* markers: don't know · to follow · doesn't apply */
.ob-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.ob-marks .lbl { font-size: 12px; color: var(--muted); margin-right: 2px; }
.ob-mark { border: 1px solid var(--line-2); background: #fff; color: var(--muted); border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.ob-mark:hover { border-color: var(--teal); color: var(--teal-d); }
.ob-mark[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ob-markbox { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 13.5px; }
.ob-markbox.pend { background: var(--gold-t); border-color: #F0DCA9; }
.ob-markbox .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ob-markbox input { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; }
.ob-markbox input.note { flex: 1 1 260px; }
/* source of a figure */
.ob-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.ob-src .lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.ob-src button { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--ink); }
.ob-src button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-t); color: #0F5A55; }
.ob-src.ask .lbl { color: #7A4B00; }
.ob-bench { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ob-qerr { color: var(--alert); font-size: 12.5px; font-weight: 700; margin-top: 8px; min-height: 0; }
.ob-qnav { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.ob-qnav .sp { flex: 1; }
.ob-progress { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin: 6px 0 16px; }
.ob-progress span { display: block; height: 100%; background: var(--teal); transition: width .35s ease; }
.ob-done { text-align: center; padding: 28px 20px; }
.ob-done .big { font-family: var(--serif); font-size: 22px; margin: 10px 0 6px; }
/* C1 — the first sitting: one live line under the heading, and the divider (or the done state) in the one-page list */
.ob-sitting-line { font-size: 15px; font-weight: 700; color: var(--teal-d); margin: 2px 0 8px; }
.ob-sitting-line.done { color: var(--ok); }
.ob-sitting { display: flex; align-items: center; gap: 10px; margin: 22px 0; font-size: 13px; color: var(--muted); }
.ob-sitting::before, .ob-sitting::after { content: ""; flex: 1; border-top: 2px dashed var(--line-2); }
.ob-sitting span { flex: 0 1 auto; text-align: center; font-weight: 600; }
.ob-sitting.done { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 12px; background: var(--surface); color: var(--ink); }
.ob-sitting.done::before, .ob-sitting.done::after { content: none; }
.ob-sitting.done .big { font-family: var(--serif); font-size: 19px; margin: 0 0 4px; }
.ob-sitting.done .ob-ic { flex: 0 0 auto; width: 22px; height: 22px; color: var(--ok); }
/* streams picker */
.ob-streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 6px; }
.ob-stream { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 13.5px; color: var(--ink); }
.ob-stream[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-t); box-shadow: inset 0 0 0 1px var(--teal); }
.ob-stream .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--teal-d); display: inline-flex; align-items: center; justify-content: center; }
.ob-stream[aria-pressed="true"] .ico { background: var(--teal); color: #fff; }
.ob-stream .ico .ob-ic { vertical-align: 0; }
.ob-stream b { display: block; line-height: 1.3; } .ob-stream small { color: var(--muted); }
/* form mode */
.ob-group { margin-top: 18px; }
.ob-group > h3 { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
/* review and the data record */
.ob-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ob-tbl th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line-2); padding: 7px 8px; white-space: nowrap; }
.ob-tbl td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.ob-tbl td small { color: var(--muted); display: block; }
.ob-tblwrap { overflow-x: auto; max-width: 100%; }
.ob-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.ob-filters select, .ob-filters input { font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; }
.ob-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); margin: 8px 0 6px; }
.ob-stack span { display: block; height: 100%; }
.ob-stack .s-captured { background: var(--teal); } .ob-stack .s-unknown { background: #8FB3D6; } .ob-stack .s-to-follow { background: var(--gold-b); } .ob-stack .s-not-applicable { background: var(--line-2); } .ob-stack .s-missing { background: #E9C7BD; }
.ob-keyrow { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.ob-keyrow i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.ob-log { list-style: none; margin: 0; padding: 0; }
.ob-log li { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.ob-log details summary { cursor: pointer; }
.ob-log ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.ob-up { margin-top: 10px; }
.ob-foot { margin-top: 30px; font-size: 12px; color: var(--muted); }
@media (max-width: 980px) {
  .ow-hero, .ow-grid { grid-template-columns: 1fr; }
  .ow-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ow-flow li::after { display: none; }
  .ob-wrap { grid-template-columns: 1fr; }
  .ob-rail { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .ob-cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ow-main { padding: 20px 16px 50px; } .ow-hero h1 { font-size: 27px; } .ow-fields { grid-template-columns: 1fr; } .ow-card { padding: 18px 16px; }
  .ob-top { padding: 10px 14px; gap: 8px; flex-wrap: wrap; row-gap: 6px; } .ob-top .ob-org, .ob-top .ob-title small { display: none; }
  .ob-top .ob-save { order: 9; width: 100%; } /* the save status gets its own line, so the buttons are never clipped */
  .ob-main { padding: 18px 16px 70px; } .ob-q { padding: 16px; } .ob-input input.num { width: 140px; } .ob-input select { min-width: 0; width: 100%; } .ob-input select.ob-unitsel { width: auto; flex: 1 1 120px; }
}
@media (prefers-reduced-motion: reduce) { .ob-q { animation: none; } .ob-nav .tbar span, .ob-progress span, .ob-ring .val { transition: none; } }
/* (optional) after a label */
.ob-opt { font-weight: 400; color: var(--muted); font-size: 12px; }
/* the role: a list, and Other opens a box to type it (welcome and registration, 16 Oct 2026) */
.ob-role-other { margin-top: 8px; }
.ob-field [hidden] { display: none !important; }
