:root {
  color-scheme: light;
  --bg: #f5f6f2; --surface: #fff; --surface-2: #edf2ed; --ink: #172c30; --muted: #52666a;
  --line: #cfdbd5; --accent: #156b6a; --accent-deep: #104e50; --accent-soft: #d8ece7;
  --blue: #315278; --blue-soft: #e8eef5; --yellow: #fff2cf; --yellow-ink: #704d09;
  --deny: #a84838; --deny-soft: #fae8e3; --shadow: 0 18px 50px #102e3212;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d171c; --surface: #15242a; --surface-2: #1b3032; --ink: #e8f1ed; --muted: #a8bfbc;
  --line: #385054; --accent: #7bcebf; --accent-deep: #98ded0; --accent-soft: #183a39;
  --blue: #a7c9e7; --blue-soft: #1b3142; --yellow: #3d3420; --yellow-ink: #f4cf79;
  --deny: #ed9a86; --deny-soft: #492a29; --shadow: 0 18px 50px #0005;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d171c; --surface: #15242a; --surface-2: #1b3032; --ink: #e8f1ed; --muted: #a8bfbc;
    --line: #385054; --accent: #7bcebf; --accent-deep: #98ded0; --accent-soft: #183a39;
    --blue: #a7c9e7; --blue-soft: #1b3142; --yellow: #3d3420; --yellow-ink: #f4cf79;
    --deny: #ed9a86; --deny-soft: #492a29; --shadow: 0 18px 50px #0005;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.proposal-bar { display: flex; justify-content: center; gap: 10px; align-items: center; padding: 8px 20px; background: var(--accent-deep); color: #fff; font-size: 12px; font-weight: 650; text-align: center; letter-spacing: .01em; }
:root[data-theme="dark"] .proposal-bar { background: #294f51; }
.proposal-pill { border: 1px solid #ffffff80; border-radius: 999px; padding: 1px 8px; white-space: nowrap; text-transform: uppercase; font-size: 10px; letter-spacing: .09em; }
.site-header { max-width: 1300px; margin: auto; min-height: 76px; padding: 12px 32px; display: flex; align-items: center; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; white-space: nowrap; font-size: 19px; font-weight: 800; letter-spacing: -.06em; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; background: var(--accent-deep); color: #fff; border-radius: 8px; font-size: 20px; letter-spacing: -.1em; }
.dot { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 650; }
.site-header nav a:hover { color: var(--accent); }
.theme-group { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-group button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; padding: 5px 8px; }
.theme-group button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-deep); }
main { max-width: 1300px; margin: auto; padding: 0 32px; }
.hero { min-height: 535px; display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: clamp(24px,5vw,90px); padding: 55px 0 80px; }
.eyebrow { margin: 0 0 17px; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; }
.eyebrow-line { display: inline-block; width: 22px; height: 2px; background: currentColor; margin: 0 9px 4px 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; font-size: clamp(2.6rem,5.2vw,5.3rem); line-height: 1.03; letter-spacing: -.065em; margin-bottom: 26px; font-weight: 790; }
.lede { max-width: 585px; color: var(--muted); font-size: clamp(1.04rem,1.3vw,1.26rem); line-height: 1.65; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 720; font-size: 14px; }
.button.primary { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.button.primary:hover { filter: brightness(1.15); }
.button.quiet { background: var(--surface); }
.button.quiet:hover { border-color: var(--accent); }
.hero-visual { border: 1px solid var(--line); background: radial-gradient(circle at 75% 15%, var(--accent-soft), transparent 55%), var(--surface); border-radius: 28px; padding: clamp(20px,3vw,36px); box-shadow: var(--shadow); }
.hero-origin { width: 65%; min-width: 210px; max-width: 275px; margin: 0 auto; padding: 22px 20px; border-radius: 16px; background: var(--accent-deep); color: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mini { font-size: 10px; letter-spacing: .2em; opacity: .75; font-weight: 800; }
.hero-origin strong { font-size: 26px; letter-spacing: -.04em; line-height: 1.2; }
.hero-sub { font-size: 11px; opacity: .82; }
.branch-lines { position: relative; display: flex; justify-content: space-around; height: 70px; margin: 0 12%; border-bottom: 2px solid var(--line); }
.branch-lines::before { content: ""; width: 2px; height: 40px; position: absolute; top: 0; left: 50%; background: var(--line); }
.branch-lines span { width: 2px; height: 28px; align-self: flex-end; background: var(--line); transform: translateY(28px); }
.hero-branches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding-top: 27px; }
.hero-branches > div { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 17px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.type-icon { color: var(--accent); font: 800 25px/1 ui-monospace,monospace; margin-bottom: 10px; }
.hero-branches strong { font-size: 13px; }
.hero-branches small { color: var(--muted); font-size: 11px; }
.section { padding: 86px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.section-head .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(2rem,3.4vw,3.5rem); line-height: 1.1; letter-spacing: -.055em; margin-bottom: 15px; }
.section-intro { color: var(--muted); max-width: 660px; margin-bottom: 0; font-size: 16px; }
.section-tag { color: var(--accent); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; padding: 7px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.simulator { display: grid; grid-template-columns: minmax(275px,.83fr) minmax(0,1.17fr); gap: 14px; }
.sim-controls, .flow-wrap { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px,2.5vw,30px); }
fieldset { border: 0; margin: 0 0 26px; padding: 0; }
legend, .policy-controls label { color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 11px; }
.choice-row { display: flex; gap: 7px; flex-wrap: wrap; }
.choice-row label { position: relative; display: inline-flex; }
.choice-row input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.choice-row span { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.choice-row input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.choice-row input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.policy-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; }
.policy-controls label { display: block; min-width: 0; }
select { display: block; width: 100%; min-width: 0; margin-top: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); padding: 9px 32px 9px 10px; font-size: 14px; font-weight: 650; text-transform: none; letter-spacing: normal; }
.passcode-control { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.unlock-choice { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink); font-size: 13px; font-weight: 650; }
.unlock-choice input { accent-color: var(--accent-deep); width: 17px; height: 17px; }
.unlock-choice.is-inactive { opacity: .5; }
.micro { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 12px 0 0; }
.flow { display: grid; justify-items: stretch; width: min(100%,420px); margin: 0 auto; }
.flow-node { position: relative; padding: 10px 17px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); transition: opacity .2s,border-color .2s,background .2s; }
.flow-node strong, .flow-node small { display: block; }
.node-index { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800; }
.flow-node strong { font-size: 15px; line-height: 1.25; margin-top: 2px; }
.flow-node small { font-size: 11px; color: var(--muted); }
.flow-arrow { text-align: center; color: var(--accent); font-size: 20px; line-height: 24px; }
.flow-node[data-state="pass"] { border-color: var(--accent); background: var(--accent-soft); }
.flow-node[data-state="deny"] { border-color: var(--deny); background: var(--deny-soft); }
.flow-node[data-state="skipped"] { opacity: .45; border-style: dashed; }
.flow-node.result[data-state="pass"] strong { color: var(--accent-deep); }
.flow-node.result[data-state="deny"] strong { color: var(--deny); }
.flow-note { display: flex; gap: 10px; width: min(100%,420px); margin: 15px auto 0; color: var(--muted); font-size: 12px; }
.flow-note span { color: var(--accent); font-weight: 800; font-size: 19px; }
.flow-note p { margin: 0; }
.policy-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; }
.policy-summary > div { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 17px; }
.summary-symbol { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 800; }
.policy-summary p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
.policy-summary strong { color: var(--ink); font-size: 13px; }
.type-selector { display: flex; gap: 8px; margin-bottom: 12px; }
.type-selector button { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); padding: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 750; }
.type-selector button[aria-selected="true"] { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.tab-glyph { font: 800 22px/1 ui-monospace,monospace; }
.type-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,4vw,70px); min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px,3vw,40px); }
.type-diagram { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(16px,3vw,30px); border-radius: 15px; background: var(--blue-soft); }
.type-diagram-title { color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.type-diagram p { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.kv-rows { display: grid; gap: 7px; }
.kv-rows > div { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 7px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 11px; min-width: 0; }
.kv-rows > div > * { min-width: 0; overflow-wrap: anywhere; }
.kv-rows span { color: var(--muted); }
.kv-rows strong { color: var(--ink); }
.kv-rows code { color: var(--accent-deep); text-align: right; }
.sql-table { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.sql-table > div { display: grid; grid-template-columns: .5fr 2fr 1fr; gap: 8px; padding: 9px 12px; background: var(--surface); font-size: 12px; border-bottom: 1px solid var(--line); }
.sql-table > div:last-child { border: 0; }
.sql-table .sql-head { font-size: 10px; text-transform: uppercase; font-weight: 800; color: var(--muted); background: var(--surface-2); }
.sql-query { margin-top: 12px; padding: 11px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 11px/1.55 ui-monospace,monospace; overflow-wrap: anywhere; }
.sql-query span { opacity: .7; }
.file-tree { display: grid; gap: 5px; font: 13px/1.5 ui-monospace,monospace; }
.file-tree > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.file-tree .indent { margin-left: 19px; overflow-wrap: anywhere; }
.file-tree span { float: right; color: var(--muted); font-size: 10px; }
.type-copy { min-width: 0; align-self: center; }
.type-kicker { display: block; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 9px; }
.type-copy h3 { font-size: clamp(1.55rem,2.5vw,2.6rem); line-height: 1.13; letter-spacing: -.045em; margin-bottom: 15px; }
.type-copy > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.type-caveat { padding: 11px 13px; background: var(--yellow); color: var(--yellow-ink) !important; border-radius: 9px; font-size: 12px !important; }
details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
summary { display: flex; justify-content: space-between; list-style: none; color: var(--accent-deep); font-size: 13px; font-weight: 800; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 18px; transition: transform .2s; }
details[open] summary span { transform: rotate(90deg); }
.code-stack { display: grid; gap: 11px; margin-top: 17px; }
.code-stack > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.code-stack b { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; color: var(--muted); }
.code-stack code, .code-stack pre { display: block; margin-top: 5px; color: var(--ink); font: 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.code-stack pre { color: var(--accent-deep); margin-bottom: 0; }
.owner-route { display: flex; gap: 14px; align-items: flex-start; padding: 19px 22px; margin-top: 12px; border-radius: 13px; background: var(--accent-soft); }
.owner-route-icon { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 9px; background: var(--accent-deep); color: #fff; }
.owner-route strong { display: block; font-size: 14px; }
.owner-route p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.owner-route code { overflow-wrap: anywhere; }
.fit-diagram { max-width: 980px; margin: 0 auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.fit-site { display: flex; flex-direction: column; align-items: center; width: min(100%,310px); margin: 0 auto; padding: 14px; border-radius: 12px; background: var(--accent-deep); color: #fff; text-align: center; }
.fit-site span, .fit-caption, .fit-floor span:not(.floor-separator) { font-size: 10px; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; }
.fit-site strong { font-size: 19px; }
.fit-site small { font-size: 11px; opacity: .85; }
.fit-split { display: flex; justify-content: space-around; height: 40px; width: 60%; margin: 0 auto; border-top: 0; border-bottom: 2px solid var(--line); position: relative; }
.fit-split::before { content: ""; height: 24px; width: 2px; background: var(--line); position: absolute; left: 50%; top: 0; }
.fit-split span { width: 2px; height: 15px; background: var(--line); align-self: flex-end; transform: translateY(15px); }
.fit-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 24px; }
.fit-sides > div { display: flex; flex-direction: column; padding: 18px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.fit-new { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
.fit-caption { color: var(--accent); }
.fit-sides strong { margin: 5px 0; font-size: 18px; line-height: 1.2; }
.fit-sides small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.fit-floor { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px; background: var(--blue-soft); border-radius: 12px; }
.fit-floor > div { display: flex; flex-direction: column; min-width: 0; }
.fit-floor span:not(.floor-separator) { color: var(--blue); }
.fit-floor strong { font-size: 13px; line-height: 1.3; }
.floor-separator { color: var(--blue); font-weight: 800; font-size: 25px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.comparison-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--surface); }
.comparison-card.accent { border-color: var(--accent); }
.comparison-label { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--accent); font-weight: 800; }
.comparison-card h3 { margin: 8px 0; font-size: 20px; letter-spacing: -.03em; }
.comparison-card p { color: var(--muted); font-size: 13px; margin: 0; }
.migration-flow { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; gap: 11px; margin-top: 14px; }
.migration-flow > div { display: flex; flex-direction: column; min-width: 0; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.migration-flow > div:last-child { border-color: var(--accent); background: var(--accent-soft); }
.migration-flow span { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; }
.migration-flow strong { font-size: 15px; line-height: 1.2; }
.migration-flow small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.migration-arrow { align-self: center; color: var(--accent); font-size: 22px; }
.migration-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.allowance-card { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0,2fr); gap: 20px; margin-top: 14px; padding: 20px; border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.allowance-number { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.allowance-number strong { color: var(--accent); font-size: clamp(35px, 5vw, 58px); letter-spacing: -.06em; line-height: 1; }
.allowance-number span { margin-top: 8px; font-size: 12px; font-weight: 700; }
.allowance-card > div:last-child > strong { font-size: 16px; }
.allowance-card p { color: var(--muted); font-size: 12px; margin: 6px 0; }
.allowance-card details { margin: 12px 0; }
.disk-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.disk-mark { font-size: 28px; color: var(--accent); line-height: 1; }
.disk-note strong { font-size: 14px; }
.disk-note p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.disk-content { flex: 1; min-width: 0; }
.disk-bars { display: grid; gap: 9px; margin: 16px 0 12px; }
.bar-row { display: grid; grid-template-columns: minmax(155px,1fr) minmax(70px,2.2fr) 73px; align-items: center; gap: 12px; font-size: 12px; }
.bar-row > span { line-height: 1.2; font-weight: 700; }
.bar-row small { color: var(--muted); font-size: 10px; font-weight: 500; }
.bar-row b { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; font-size: 12px; }
.bar-track { height: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; }
.bar-pg { width: 20.55%; background: var(--blue); }
.bar-sql { width: 11.59%; background: var(--accent); }
.bar-photo { width: 100%; background: #c18f49; }
.disk-note .disk-caveat { padding-top: 10px; border-top: 1px solid var(--line); }
.closing { padding: 70px clamp(24px,5vw,80px); margin: 10px 0 65px; border-radius: 24px; background: var(--accent-deep); color: #fff; }
.closing .eyebrow { color: #9febe0; }
.closing h2 { max-width: 760px; }
.closing p:not(.eyebrow) { max-width: 650px; opacity: .83; }
.closing .button.primary { background: #fff; color: #123e41; border-color: #fff; }
footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1300px; margin: auto; padding: 20px 32px 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .site-header { flex-wrap: wrap; gap: 12px; } .site-header nav { order: 3; width: 100%; margin: 0; justify-content: space-between; } .theme-group { margin-left: auto; } .hero { grid-template-columns: 1fr; padding-top: 42px; } .hero-visual { max-width: 680px; width: 100%; margin: auto; } .simulator { grid-template-columns: 1fr; } .policy-summary { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .proposal-bar { font-size: 10px; padding: 7px 10px; gap: 6px; }
  .proposal-pill { font-size: 9px; }
  .site-header { min-height: 0; padding: 14px 17px; }
  .site-header nav { gap: 7px; }
  .site-header nav a { font-size: 12px; }
  .theme-group button { padding: 5px 6px; font-size: 10px; }
  main { padding: 0 16px; }
  .hero { gap: 31px; min-height: 0; padding: 42px 0 62px; }
  h1 { font-size: clamp(2.55rem,11vw,4rem); }
  .lede { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-visual { padding: 16px; border-radius: 18px; }
  .hero-origin { min-width: 0; width: 75%; }
  .hero-branches { gap: 5px; }
  .hero-branches > div { padding: 12px 3px; }
  .hero-branches strong { font-size: 11px; }
  .hero-branches small { font-size: 9px; }
  .type-icon { font-size: 20px; }
  .section { padding: 60px 0; }
  .section-head { display: block; }
  .section-tag { display: inline-block; margin-top: 15px; }
  .sim-controls, .flow-wrap { border-radius: 15px; padding: 17px; }
  .policy-controls { gap: 8px; }
  .policy-controls label { font-size: 10px; }
  .choice-row span { font-size: 12px; padding: 7px 10px; }
  .type-selector { gap: 5px; }
  .type-selector button { flex-direction: column; padding: 10px 2px; gap: 3px; font-size: 11px; }
  .tab-glyph { font-size: 18px; }
  .type-panel { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .type-diagram { min-height: 220px; }
  .fit-diagram { padding: 16px; }
  .fit-sides { gap: 7px; }
  .fit-sides > div { padding: 11px; }
  .fit-sides strong { font-size: 13px; }
  .fit-sides small { font-size: 10px; }
  .fit-floor { gap: 8px; padding: 11px; }
  .fit-floor strong { font-size: 11px; }
  .fit-floor span:not(.floor-separator) { font-size: 9px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .migration-flow { grid-template-columns: 1fr; gap: 5px; }
  .migration-arrow { justify-self: center; transform: rotate(90deg); line-height: 1; }
  .allowance-card { grid-template-columns: 1fr; gap: 10px; padding: 17px; }
  .allowance-number { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
  .bar-row { grid-template-columns: minmax(0,1fr) auto; column-gap: 9px; row-gap: 4px; font-size: 12px; }
  .bar-row > span { grid-column: 1; grid-row: 1; }
  .bar-row b { grid-column: 2; grid-row: 1; font-size: 12px; }
  .bar-row small { font-size: 10px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .closing { padding: 30px 22px; border-radius: 18px; }
  footer { flex-direction: column; gap: 4px; padding: 20px 16px 28px; }
}
@media (max-width: 345px) { .wordmark { font-size: 16px; } .mark { margin-right: 4px; } .theme-group button { padding: 4px 5px; } .site-header nav a { font-size: 11px; } .proposal-bar { font-size: 9px; } .flow-node strong { font-size: 13px; } .kv-rows > div { grid-template-columns: .9fr 1fr 1fr; gap: 3px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
