:root {
  --bg: #ffffff; --ink: #1a1a1a; --body: #333333; --muted: #5a5c5e; --rule: #e1e2e0; --card: #f4f4f4;
  --red: #c8262d; --brand: #f03239; --tint: #fdecec; --link: #0b6470;
  --met: #2e7d4f; --proposed-bg: #fdf0d5; --proposed-ink: #6b4a00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141516; --ink: #ececea; --body: #d6d6d4; --muted: #a6a8aa; --rule: #303336; --card: #1e2022;
    --red: #ff6b70; --brand: #f03239; --tint: #3a1c1f; --link: #6cc6cf;
    --met: #4fb37c; --proposed-bg: #3d3115; --proposed-ink: #f1d592;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #141516; --ink: #ececea; --body: #d6d6d4; --muted: #a6a8aa; --rule: #303336; --card: #1e2022;
    --red: #ff6b70; --brand: #f03239; --tint: #3a1c1f; --link: #6cc6cf;
    --met: #4fb37c; --proposed-bg: #3d3115; --proposed-ink: #f1d592;
    color-scheme: dark;
}

* { box-sizing: border-box; }
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.55 Arial, "Helvetica Neue", Helvetica, sans-serif; }
a { color: var(--link); }
h1, h2, h3 { color: var(--ink); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
h2 { font-size: 22px; margin: 36px 0 12px; }
h3 { font-size: 18px; margin: 6px 0 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.top-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 10px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand b { font-size: 17px; }
.brand span { font-size: 13px; color: var(--red); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 6px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.search { position: relative; flex: 0 1 380px; }
.search input { width: 100%; min-height: 42px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 21px; background: var(--card); color: var(--ink); font: inherit; }
.results { position: absolute; left: 0; right: 0; top: 48px; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 60vh; overflow: auto; }
.results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--body); }
.results a:hover, .results a:focus { background: var(--card); outline: none; }
.results b { color: var(--ink); font-weight: 600; }
.results small { display: block; color: var(--muted); }
main { padding-bottom: 48px; }
.hero { padding: 32px 0 8px; }
.hero.product { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.hero .art { width: 100%; max-height: 260px; object-fit: cover; object-position: center 30%; border-radius: 12px; }
.hero.family { display: flex; gap: 28px; align-items: center; }
.number { font-size: 72px; color: var(--brand); margin: 0; line-height: 1; }
.label, .eyebrow { color: var(--red); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; display: block; }
.lead { font-size: 19px; color: var(--body); max-width: 70ch; margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.btn.primary { background: #c8262d; border-color: #c8262d; color: #fff; }
.grid.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.card.link { text-decoration: none; color: var(--body); border: 1px solid transparent; }
.card.link:hover { border-color: var(--brand); }
.card p { margin: 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 400; border-bottom: 2px solid var(--ink); }
.num { text-align: right; }
.list.compact td, .list.compact th { padding: 6px 10px; font-size: 14px; }
.matrix th[scope="row"] { white-space: nowrap; font-weight: 400; }
.matrix th[scope="row"] a { color: var(--ink); text-decoration: none; }
.matrix td { min-width: 110px; }
.matrix tr.reserved th, .matrix tr.reserved td { color: var(--muted); }
.code { display: inline-block; min-width: 30px; text-align: center; padding: 1px 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; }
.chip { display: inline-block; margin: 2px; padding: 2px 9px; border-radius: 10px; font-size: 13px; text-decoration: none; }
.chip.available { background: #ddefe4; color: #1f5c3b; }
.chip.proposed { background: var(--tint); color: var(--red); }
.sku { color: var(--red); white-space: nowrap; }
.pill { display: inline-block; vertical-align: middle; font-size: 12px; padding: 2px 9px; border-radius: 10px; }
.pill.proposed { background: var(--proposed-bg); color: var(--proposed-ink); }
h1 .pill { font-size: 14px; }
.marks { display: inline-flex; gap: 4px; vertical-align: middle; }
.mk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--met); }
.mk.met { background: var(--met); }
.mk.depends { background: radial-gradient(circle, var(--met) 38%, transparent 42%); }
.mk.not-met { border-color: var(--muted); }
.mkrow { display: flex; align-items: center; gap: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.facts { background: var(--card); border-radius: 12px; padding: 20px 22px; position: sticky; top: 130px; }
.facts dl { margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.value { background: var(--card); border-radius: 10px; padding: 14px 16px; color: var(--ink); }
.problem { background: var(--tint); border-radius: 12px; padding: 18px 22px; margin: 18px 0 24px; }
.problem p { margin: 0; color: var(--ink); }
.doc { max-width: 80ch; }
.doc table { margin: 12px 0; }
.foot { border-top: 1px solid var(--rule); padding-top: 18px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .hero.product, .two { grid-template-columns: 1fr; }
  .facts { position: static; }
  .hero.product .art { max-width: 320px; }
}
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; font-size: 14px; z-index: 20; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-left: 50px; margin: 0 0 6px; cursor: pointer; color: var(--body); font-size: 15px; user-select: none; }
.toggle::before { content: ""; position: absolute; left: 0; top: 50%; width: 38px; height: 22px; margin-top: -11px; border-radius: 11px; background: var(--rule); box-shadow: inset 0 0 0 1px var(--muted); transition: background .15s; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.toggle-input:checked + .toggle::before { background: var(--red); box-shadow: none; }
.toggle-input:checked + .toggle::after { transform: translateX(16px); }
.toggle-input:focus-visible + .toggle::before { outline: 2px solid var(--ink); outline-offset: 2px; }
.matrix tr.empty { display: none; }
.toggle-input:checked ~ .scroll .matrix tr.empty { display: table-row; }
.matrix tr.empty th, .matrix tr.empty td { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .toggle::before, .toggle::after { transition: none; } }
.proposal { background: var(--card); border-radius: 12px; padding: 16px 22px; margin: 18px 0 8px; }
.proposal dl { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.proposal dt { font-size: 13px; color: var(--muted); }
.proposal dd { margin: 0; color: var(--ink); }
.proposal p { margin: 12px 0 0; }
.proposal .k { display: block; font-size: 13px; color: var(--muted); }
.card.concern { max-width: 640px; }
.card.concern h3 a { color: var(--ink); }
.template h2 { font-size: 18px; margin: 22px 0 4px; }
.template p { margin: 0; color: var(--muted); }
.template ul { color: var(--muted); }
.signals { background: #ddefe4; border-radius: 12px; padding: 16px 22px; margin: 18px 0 4px; }
.signals .eyebrow { color: #1f5c3b; }
.signals ul { margin: 6px 0 0; padding-left: 20px; color: #1a1a1a; }
.signals li { margin: 4px 0; }
.ink { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signals { background: #1d3a2a; } :root:not([data-theme="light"]) .signals ul { color: #ececea; } :root:not([data-theme="light"]) .signals .eyebrow { color: #a6e0be; } }
:root[data-theme="dark"] .signals { background: #1d3a2a; }
:root[data-theme="dark"] .signals ul { color: #ececea; }
:root[data-theme="dark"] .signals .eyebrow { color: #a6e0be; }

.banner { background: var(--tint); border-radius: 10px; padding: 10px 16px; margin: 14px 0 0; font-size: 14px; color: var(--ink); }
.notice { background: var(--proposed-bg); color: var(--proposed-ink); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.notice a { color: inherit; }
.pill.proposed-retired, .pill.retired, .pill.rejected, .pill.rework { background: #ececea; color: #5a5c5e; }
.pill.approved { background: #ddefe4; color: #1f5c3b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.proposed-retired, :root:not([data-theme="light"]) .pill.retired, :root:not([data-theme="light"]) .pill.rejected, :root:not([data-theme="light"]) .pill.rework { background: #303336; color: #c9c9c7; } }
:root[data-theme="dark"] .pill.proposed-retired, :root[data-theme="dark"] .pill.retired, :root[data-theme="dark"] .pill.rejected, :root[data-theme="dark"] .pill.rework { background: #303336; color: #c9c9c7; }
.pform { max-width: 920px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; }
.field > span { font-size: 13px; color: var(--muted); }
.field .help { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 9px 11px; min-height: 42px; }
.field textarea { resize: vertical; }
.field input:disabled { color: var(--muted); background: var(--card); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.field .grid2 .field { margin-bottom: 0; }
.op-more { margin: 0 0 14px; }
.op-more summary { cursor: pointer; color: var(--link); font-weight: 600; margin: 0 0 14px; }
.error { background: var(--tint); color: var(--red); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.btn.danger { background: var(--bg); border-color: var(--red); color: var(--red); }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
button.btn { font: inherit; cursor: pointer; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.downloads { display: inline-flex; flex-wrap: wrap; gap: 4px 24px; }
.retire { margin: 28px 0; background: var(--card); border-radius: 12px; padding: 12px 20px; }
.retire summary { cursor: pointer; color: var(--red); font-weight: 600; }
.retire .grid2 { margin-top: 14px; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kcol { background: var(--card); border-radius: 12px; padding: 14px; min-height: 240px; }
.kcol h3 { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.count { font-size: 13px; background: var(--bg); color: var(--muted); border-radius: 10px; padding: 1px 8px; }
.kcard { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; border-left: 4px solid var(--brand); }
.kcard.rework { border-left-color: #c99a2e; }
.kcard h4 { margin: 4px 0 6px; font-size: 15px; font-weight: 600; }
.kcard h4 a, .kid { text-decoration: none; color: var(--ink); }
.kid { font-size: 12px; color: var(--red); }
.kcard p { margin: 0 0 6px; font-size: 14px; }
.kcard .rework { color: #6b4a00; font-size: 13px; }
.kactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.decided { margin-top: 28px; }
.decided summary { cursor: pointer; color: var(--muted); }
@media (max-width: 860px) { .kanban, .grid2, .grid3 { grid-template-columns: 1fr; } }
.fam-admin { display: none; }
.toggle-input:checked ~ .scroll .fam-admin, .toggle-input:checked ~ .fam-add { display: inline; }
.fam-admin .linkbtn { margin-left: 8px; }
.toggle-input:checked ~ .fam-add { display: block; }
.fam-add { margin-top: 24px; background: var(--card); border-radius: 12px; padding: 12px 20px 4px; }
.fam-add h3 { margin: 6px 0 12px; }
.fam-add .pform { max-width: none; }
.linkbtn.small { font-size: 13px; margin-left: 8px; }
.chip.proposed { background: transparent; border: 1px dashed var(--red); color: var(--red); }
.matrix .chip { white-space: nowrap; padding: 2px 7px; }
.matrix .chip.proposed { display: none; }
.toggle-input:checked ~ .scroll .matrix .chip.proposed { display: inline-block; }
.fam-add.plain { background: none; padding: 0; margin-top: 16px; }
/* The switch sits in a span, so the rules for Show all families above never apply to it. */
.source-filter { display: inline-flex; align-items: center; margin-left: 24px; }
.theme-filter { display: inline-flex; align-items: center; gap: 8px; margin-left: 24px; font-size: 15px; color: var(--body); }
.theme-filter select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; min-height: 36px; }
.board-filter { margin: 0 0 14px; }
.klink { font-size: 13px; }
.aid { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.aid .eyebrow { color: #1f5c3b; }
.aid .aid-title { margin: 10px 0 4px; font-size: 14px; color: var(--ink); font-weight: 600; }
.aid ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 14px; }
.aid li { margin: 3px 0; }
.aid .actions { margin-top: 8px; }
.hero .art { max-height: 220px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aid .eyebrow { color: #a6e0be; } }
:root[data-theme="dark"] .aid .eyebrow { color: #a6e0be; }
h1 .marks { vertical-align: middle; margin: 0 4px; }
h1 .mk { width: 14px; height: 14px; }
.values.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values.big .value { font-size: 18px; line-height: 1.3; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.values.big .num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
@media (max-width: 700px) { .values.big { grid-template-columns: 1fr; } }
.crumbs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.crumbs-row .crumbs { margin: 0; }
.edit-btn { color: var(--muted); border-color: var(--rule); }
.edit-btn:hover { color: var(--ink); border-color: var(--ink); }
.facts .art.side { display: block; width: 100%; max-height: 200px; object-fit: cover; object-position: center 30%; border-radius: 10px; margin: 0 0 16px; }
.hero { padding-bottom: 4px; }
.tabs { display: flex; gap: 4px; margin: 10px 0 0; border-bottom: 1px solid var(--rule); }
.tabs a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.deliver { max-width: 80ch; }
.dsec h2 { margin-top: 28px; }
.dsec p { margin: 0 0 10px; }
.dprice { margin: 0 0 14px; }
.dprice dt { font-size: 13px; color: var(--muted); }
.dprice dd { margin: 2px 0 10px; color: var(--ink); }
.figure { margin: 20px 0 8px; max-width: 980px; }
.figure svg { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 12px; background: #fff; cursor: zoom-in; display: block; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.f-title { font: 600 17px Arial, sans-serif; fill: #1a1a1a; }
.f-sub { font: 14px Arial, sans-serif; fill: #4d4d4d; }
.f-head { font: 600 20px Arial, sans-serif; fill: #1a1a1a; }
.f-red { fill: #c8262d; }
.f-q { font: 600 13px Arial, sans-serif; fill: #1a1a1a; }
.f-link { font: 600 13px Arial, sans-serif; fill: #c8262d; }
.f-box { fill: #f4f4f4; stroke: #c9cac9; stroke-width: 1.5; }
.f-board { fill: #fdecec; stroke: #c8262d; stroke-width: 2; }
.f-queue { fill: #fff; stroke: #c8262d; stroke-width: 1; }
.f-out { fill: #e3f3f5; stroke: #2a8a95; stroke-width: 1.5; }
.f-pill { fill: #fff; stroke: #c9cac9; stroke-width: 1.5; }
.f-arrow { fill: none; stroke: #333; stroke-width: 2; }
.f-dash { stroke-dasharray: 6 6; stroke: #777; }
.f-node { cursor: pointer; }
.f-node:hover .f-box { stroke: #c8262d; stroke-width: 2.5; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); cursor: zoom-out; }
.lightbox svg { width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: #fff; border-radius: 12px; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #1a1a1a; font-size: 26px; cursor: pointer; }
.pform.wide { max-width: none; }
.field textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.5; }
.kanban.lanes { grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); gap: 10px; }
.kanban.lanes .kcol { padding: 10px; min-height: 280px; }
.kanban.lanes h3 { font-size: 15px; }
.lane-sub { margin: -6px 0 10px; }
.kcard.change { border-left-color: #2a8a95; }
.kcard.retire { border-left-color: #5a5c5e; }
.kcard.approved { opacity: .92; }
.kcard.rejected { opacity: .7; }
.kcard[draggable="true"] { cursor: grab; }
.kcard.dragging { opacity: .4; }
.kcol.over { outline: 2px dashed var(--brand); outline-offset: -4px; background: var(--tint); }
.ktype { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; }
.figure.doc-width { max-width: 820px; }
.zoomable { cursor: zoom-in; }
.why { background: var(--card); border-radius: 12px; padding: 8px 22px 18px; margin: 8px 0 24px; }
.why .two { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; }
.why img { width: 100%; border-radius: 10px; background: #fff; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 12px; }
@media (max-width: 1100px) { .kanban.lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .why .two { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .kanban.lanes { grid-template-columns: 1fr; } }
.matrix thead th { white-space: nowrap; }
.kcard.compact { padding: 8px 10px; }
.kcard.compact h4 { font-size: 13px; margin: 2px 0 4px; }
.kcard.compact .kid { font-size: 11px; }
.kcard.compact .kactions .btn { font-size: 12px; min-height: 28px; padding: 0 8px; }
@media (max-width: 1100px) { .kanban.lanes { grid-template-columns: 1fr 1fr 1fr; } }
.figure.html { border: 1px solid var(--rule); border-radius: 12px; padding: 16px; background: var(--bg); margin: 16px 0 20px; }
.figure.html h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.figure.html p { margin: 0; font-size: 13px; color: var(--body); }
.fig-how { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.6fr); gap: 14px; align-items: center; }
.fig-org { background: var(--card); border-radius: 12px; padding: 14px; }
.fig-org h3 { margin-bottom: 10px; }
.fig-item { background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 14px; color: var(--ink); }
.fig-arrow { width: 0; height: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-left: 24px solid var(--brand); margin: 0 auto; }
.fig-right { display: flex; flex-direction: column; gap: 10px; }
.fig-box { border: 1.5px solid var(--brand); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.fig-box.tint { background: var(--tint); }
.fig-box.solid { background: #c8262d; border-color: #c8262d; color: #fff; }
.fig-box.solid h3, .fig-box.solid p { color: #fff; }
.fig-customer { background: linear-gradient(90deg, #f03239, #a8161c); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-size: 16px; font-weight: 600; }
.fig-team { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; border: 1.5px solid #2a8a95; background: #e3f3f5; border-radius: 10px; padding: 10px 14px; margin: 10px 0; color: #1a1a1a; }
.fig-team b { font-size: 15px; }
.fig-team span { font-size: 13px; }
.fig-grid { display: grid; gap: 10px; }
.fig-grid.forms { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fig-grid.eco { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .fig-grid.forms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fig-grid.eco { grid-template-columns: 1fr; } }
.fig-form { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.fig-form.blue { background: #e3f3f5; border-color: #2a8a95; }
.fig-form.green { background: #ddefe4; border-color: #1f5c3b; }
.fig-form .fig-code { font-size: 12px; color: var(--muted); }
.fig-eco { margin-top: 12px; background: var(--card); border-radius: 10px; padding: 12px; }
.fig-eco > h3 { text-align: center; }
.fig-eco .fig-form { background: var(--bg); border-style: dashed; }
.fig-eco .fig-form.green { background: #ddefe4; border-style: solid; }
@media (max-width: 700px) { .fig-how { grid-template-columns: 1fr; } .fig-arrow { transform: rotate(90deg); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fig-team, :root:not([data-theme="light"]) .fig-form.blue { background: #1c3236; color: #ececea; } :root:not([data-theme="light"]) .fig-form.green { background: #1d3a2a; } :root:not([data-theme="light"]) .fig-team b, :root:not([data-theme="light"]) .fig-team span { color: #ececea; } }
:root[data-theme="dark"] .fig-team, :root[data-theme="dark"] .fig-form.blue { background: #1c3236; color: #ececea; }
:root[data-theme="dark"] .fig-form.green { background: #1d3a2a; }
:root[data-theme="dark"] .fig-team b, :root[data-theme="dark"] .fig-team span { color: #ececea; }
.path { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin: 8px 0 28px; }
.paxis { position: relative; border-left: 2px solid var(--rule); }
.paxis::before { content: ""; position: absolute; left: -7px; top: -2px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--muted); }
.paxis span { position: absolute; left: -4px; bottom: 0; transform: rotate(-90deg); transform-origin: left bottom; white-space: nowrap; font-size: 12px; color: var(--muted); }
.psteps { display: grid; gap: 14px; align-items: end; }
.pstep { background: var(--card); border-radius: 12px; padding: 14px 16px; margin-top: calc(var(--lift) * 44px); }
.pstep h3 { margin: 0 0 10px; font-size: 18px; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.pstep .pnum { color: var(--brand); font-size: 22px; }
.pstep .code { margin-left: auto; }
.pprod { margin: 4px 0; font-size: 14px; }
.pprod a { color: var(--ink); text-decoration: none; font-weight: 600; }
.pprod .sku { color: var(--red); }
.pband { grid-column: 1 / -1; margin-top: 10px; background: var(--card); border-radius: 20px; padding: 8px 16px; font-size: 14px; }
.pband + .pband { background: var(--bg); border: 1px solid var(--rule); }
@media (max-width: 820px) { .path { grid-template-columns: 1fr; } .paxis { display: none; } .psteps { grid-template-columns: 1fr !important; } .pstep { margin-top: 0; } }
.calc { background: var(--card); border-radius: 12px; padding: 14px 18px 8px; margin: 24px 0 8px; }
.calc h2 { margin-top: 4px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 10px 0 14px; }
.calc-grid label { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.calc-grid label span { grid-column: 1 / -1; color: var(--ink); }
.calc-grid input, .calc-grid select { font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; min-height: 36px; max-width: 100%; }
.calc .list td { background: var(--bg); }
.calc-total td { font-weight: 600; color: var(--ink); }
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } }
.calc h3 { font-size: 15px; margin: 14px 0 6px; }
.calc-total.grand td { background: var(--tint); }

/* The parts of the page that only the web app has: the test bar, the signed-in user, start-up pages and access. */

[hidden] {
  display: none !important;
}

.devbar {
  background: var(--proposed-bg);
  color: var(--proposed-ink);
  font-size: 14px;
  padding: 6px 24px;
  text-align: center;
}

.devbar select {
  font: inherit;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}

.top-inner .search {
  margin-left: auto;
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.account .linkbtn {
  font-size: 14px;
}

.whoami {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boot-note {
  padding: 48px 0;
}

.boot {
  max-width: 70ch;
  padding-top: 48px;
}

.banner .linkbtn {
  margin-left: 6px;
}

.access-mode {
  max-width: 70ch;
}

.access-list td {
  overflow-wrap: anywhere;
}

.access-list .you {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .account {
    width: 100%;
    justify-content: flex-end;
  }
}
