:root {
  color-scheme: light dark;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eceef3;
  --surface-container: #e9efec;
  --surface-container-high: #e1e9e5;
  --text: #15171c;
  --muted: #6e737e;
  --line: #dfe2e8;
  --brand: #215d50;
  --brand-strong: #16463d;
  --accent: #9cf4d7;
  --danger: #b4233a;
  --shadow: 0 1px 2px rgba(20, 25, 35, .08), 0 2px 6px rgba(20, 25, 35, .04);
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101316; --surface: #191d21; --surface-2: #24292e; --surface-container: #202622; --surface-container-high: #29302c; --text: #f3f6f4; --muted: #a6aca9; --line: #30363a; --brand: #79d8bd; --brand-strong: #a7f1da; --accent: #2b6e5e; --shadow: 0 1px 3px rgba(0,0,0,.28);
  }
}

:root[data-theme="dark"] { --bg: #101316; --surface: #191d21; --surface-2: #24292e; --surface-container: #202622; --surface-container-high: #29302c; --text: #f3f6f4; --muted: #a6aca9; --line: #30363a; --brand: #79d8bd; --brand-strong: #a7f1da; --accent: #2b6e5e; --shadow: 0 1px 3px rgba(0,0,0,.28); }
:root[data-theme="light"] { --bg: #f4f5f8; --surface: #fff; --surface-2: #eceef3; --surface-container: #e9efec; --surface-container-high: #e1e9e5; --text: #15171c; --muted: #6e737e; --line: #dfe2e8; --brand: #215d50; --brand-strong: #16463d; --accent: #9cf4d7; --shadow: 0 1px 2px rgba(20,25,35,.08), 0 2px 6px rgba(20,25,35,.04); }

* { box-sizing: border-box; min-width: 0; }
html, body, #root { width: 100%; min-width: 0; min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); line-height: 1.4; }
body h1, body h2, body h3 { line-height: 1.15; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { display: block; }
.app-mode :where(button, .bottom-nav a, .setting-row) { position: relative; isolation: isolate; overflow: hidden; }
.app-mode :where(button, .bottom-nav a, .setting-row)::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: currentColor; opacity: 0; transition: opacity 160ms ease; }
.app-mode :where(button, .bottom-nav a, .setting-row):active::after { opacity: .10; transition-duration: 0ms; }
.app-mode :where(button, a, input, textarea):focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 38%, transparent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-mode, .app-mode body { width: 100%; overflow-x: hidden; overscroll-behavior: none; }
.app-mode body { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.app-mode input, .app-mode textarea { -webkit-user-select: text; user-select: text; }
.app-mode input[type="range"] { touch-action: pan-x; }
.app-shell { min-height: 100vh; min-height: 100dvh; background: var(--bg); padding-left: var(--safe-left); padding-right: var(--safe-right); overflow-x: hidden; }
.app-content { width: 100%; max-width: 720px; margin: 0 auto; padding-bottom: calc(104px + var(--safe-bottom)); }
.app-topbar { position: sticky; z-index: 10; top: 0; min-height: calc(92px + var(--safe-top)); display: flex; align-items: flex-end; justify-content: space-between; padding: calc(18px + var(--safe-top)) 20px 14px; background: var(--bg); }
.app-topbar span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.app-topbar h1 { margin: 4px 0 0; font-size: clamp(28px, 7vw, 34px); line-height: 1.12; letter-spacing: -.025em; }
.top-mark { width: 44px; height: 44px; }
.app-mark-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.screen { padding: 8px 16px 28px; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(720px, 100%); height: calc(80px + var(--safe-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; padding: 8px max(4px, var(--safe-right)) var(--safe-bottom) max(4px, var(--safe-left)); border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: var(--surface-container); box-shadow: 0 -1px 4px rgba(20, 25, 35, .04); }
.bottom-nav a { min-height: 64px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 650; line-height: 1; }
.bottom-nav a.active { color: var(--brand-strong); }
.nav-icon { width: 56px; height: 32px; display: grid; place-items: center; border-radius: 18px; transition: background-color 180ms ease, color 180ms ease; }
.bottom-nav a.active .nav-icon { background: color-mix(in srgb, var(--accent) 56%, var(--surface-container)); }
.bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.signal-card, .preview-card, .form-card, .settings-group, .insight-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.signal-card { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--surface) 52%); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h2, .preview-card h2 { margin: 10px 0 0; font-size: 23px; letter-spacing: -.025em; }
.signal-card > p, .preview-card > p { color: var(--muted); line-height: 1.5; margin: 8px 0 18px; }
.status-pill, .preview-label { display: inline-flex; padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-strong); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.icon-button { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: var(--surface-2); }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.result-list { display: grid; gap: 14px; }
.result-row { display: flex; align-items: center; gap: 10px; }
.result-rank { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; }
.result-row.winner .result-rank { background: var(--brand); color: #fff; }
.result-body { flex: 1; }
.result-body > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.result-body span { color: var(--muted); font-weight: 800; }
.bar { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.bar i, .mini-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.result-row.winner .bar i { background: linear-gradient(90deg, var(--brand), #4bad91); }
.confidence { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; }
.confidence span { font-size: 13px; font-weight: 700; }
.confidence strong { color: var(--brand-strong); }
.confidence small { grid-column: 1 / -1; color: var(--muted); line-height: 1.4; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 26px; }
.stat-grid div { display: grid; gap: 2px; min-height: 76px; align-content: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.stat-grid strong { font-size: 21px; }
.stat-grid span { color: var(--muted); font-size: 11px; }
.section-heading, .filter-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading span, .settings-group > h2 { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.section-heading h2 { margin: 4px 0 0; font-size: 20px; line-height: 1.18; }
.text-button { min-height: 48px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--brand-strong); font-size: 13px; font-weight: 750; }
.decision-list { display: grid; gap: 9px; margin-top: 12px; }
.decision-card { width: 100%; min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.decision-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 45%, var(--surface)); color: var(--brand-strong); }
.decision-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.decision-copy { flex: 1; display: grid; gap: 5px; overflow: hidden; }
.decision-copy strong, .decision-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision-copy strong { font-size: 14px; }
.decision-copy small { color: var(--muted); font-size: 12px; }
.decision-meta { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 10px; }
.decision-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.gentle-empty { min-height: 80px; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 15px; border: 1px dashed var(--line); border-radius: 18px; }
.gentle-empty p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.empty-orbit { width: 42px; height: 42px; flex: 0 0 42px; border: 2px solid var(--line); border-radius: 50%; position: relative; }
.empty-orbit::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); top: -3px; right: 1px; }
.fab { position: fixed; z-index: 19; right: max(18px, calc((100vw - 700px) / 2 + 18px)); bottom: calc(92px + var(--safe-bottom)); min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 18px; background: var(--brand-strong); color: #fff; box-shadow: 0 3px 8px rgba(20, 75, 63, .24); font-weight: 750; }
.fab svg, .button svg, .add-row svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; }
.button.primary { background: var(--brand-strong); color: #fff; }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.compact { min-height: 48px; padding: 0 16px; }
.button.full { width: 100%; margin-top: 20px; }
.danger-button { background: var(--danger); color: #fff; }

.editor-screen form { display: grid; gap: 14px; }
.form-card { box-shadow: none; }
.step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.step-label b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-size: 12px; }
.step-label span { font-size: 14px; font-weight: 800; }
.form-card > label, .repeat-row label, .criterion-row > label { display: grid; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 12px; font-weight: 700; }
input, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: var(--bg); color: var(--text); padding: 11px 13px; font-size: 16px; }
textarea { resize: vertical; min-height: 86px; line-height: 1.45; }
input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.field-error { display: block; color: var(--danger); font-size: 12px; font-weight: 650; margin-top: 5px; }
.form-help, .disclaimer { color: var(--muted); font-size: 12px; line-height: 1.45; margin: -8px 0 12px; }
.repeat-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 48px; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.repeat-row:first-child { border-top: 0; }
.repeat-row label { margin: 0 0 7px; }
.repeat-row label:last-child { margin-bottom: 0; }
.row-index { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 12px; font-weight: 850; }
.danger-quiet { color: var(--danger); background: transparent; }
.add-row { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border: 1px dashed var(--line); border-radius: 14px; background: transparent; color: var(--brand-strong); font-weight: 750; }
.add-row:disabled { opacity: .4; }
.criterion-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px 48px; align-items: end; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.criterion-row:first-child { border-top: 0; }
.criterion-row > label { margin: 0; }
.weight-control span { display: flex; justify-content: space-between; }
.weight-control output { color: var(--brand-strong); }
input[type="range"] { min-height: 48px; padding: 0; border: 0; box-shadow: none; accent-color: var(--brand); background: transparent; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--brand) var(--range-progress, 50%), var(--surface-container-high) var(--range-progress, 50%)); }
input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--brand-strong); box-shadow: 0 0 0 4px var(--surface); -webkit-appearance: none; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--brand) var(--range-progress, 50%), var(--surface-container-high) var(--range-progress, 50%)); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 4px solid var(--surface); border-radius: 50%; background: var(--brand-strong); }
.score-option { padding: 14px 0; border-top: 1px solid var(--line); }
.score-option:first-of-type { border-top: 0; }
.score-option h3 { margin: 0 0 9px; font-size: 15px; }
.score-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(100px, 1.5fr) 25px; align-items: center; gap: 8px; min-height: 48px; font-size: 12px; color: var(--muted); }
.score-row output { text-align: right; color: var(--text); font-weight: 800; }
.live-results { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 24%, var(--surface)), var(--surface) 55%); }
.live-results .disclaimer { margin: 16px 0 0; }
.editor-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.editor-actions.has-delete { grid-template-columns: 48px 1fr 1.4fr; }
.delete-edit { width: 48px; padding: 0; color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.delete-edit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.filter-row { margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.decision-list.expanded .decision-card { min-height: 84px; }
.large-empty { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; }
.large-empty .empty-orbit { width: 72px; height: 72px; margin-bottom: 20px; }
.large-empty h2 { margin: 0; font-size: 23px; }
.large-empty p { max-width: 330px; color: var(--muted); line-height: 1.55; }
.large-empty .button { margin-top: 8px; }

.insights-screen { display: grid; gap: 14px; }
.insight-hero { display: grid; justify-items: center; text-align: center; }
.insight-hero > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.insight-hero > p { max-width: 310px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ring { --value: 0; width: 142px; height: 142px; display: grid; place-items: center; margin: 16px 0 6px; border-radius: 50%; background: radial-gradient(circle, var(--surface) 57%, transparent 58%), conic-gradient(var(--brand) calc(var(--value) * 1%), var(--surface-2) 0); }
.ring strong { font-size: 31px; letter-spacing: -.04em; }
.form-card > .section-heading { margin-bottom: 18px; }
.chart { display: grid; gap: 17px; }
.chart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "bar bar"; align-items: center; gap: 7px 12px; font-size: 13px; }
.chart-row > span { grid-area: label; overflow-wrap: anywhere; font-weight: 680; line-height: 1.3; }
.chart-row > div { grid-area: bar; height: 9px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.chart-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #49a78d); }
.chart-row strong { grid-area: value; min-width: 38px; text-align: right; font-size: 13px; }
.insight-list { display: grid; gap: 9px; }
.insight-list div { min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 15px; background: var(--bg); }
.insight-list strong { width: 55px; color: var(--brand-strong); font-size: 20px; }
.insight-list span { color: var(--muted); font-size: 12px; }

.settings-screen { display: grid; gap: 14px; }
.settings-group { padding: 16px; box-shadow: none; }
.settings-group > h2 { margin: 0 0 12px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: transparent; }
.segmented button { min-height: 48px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 12px; font-weight: 750; }
.segmented button:first-child { border-left: 0; }
.segmented button.selected { background: color-mix(in srgb, var(--accent) 52%, var(--surface)); color: var(--brand-strong); }
.setting-row { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; text-decoration: none; }
.segmented + .setting-row, .settings-group > h2 + .setting-row { border-top: 0; }
.setting-row span { display: grid; gap: 4px; }
.setting-row strong { font-size: 14px; }
.setting-row small { color: var(--muted); font-size: 11px; }
.setting-row > svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.setting-row input[type="checkbox"] { width: 52px; height: 32px; min-height: 32px; flex: 0 0 52px; margin: 8px 0; border: 2px solid var(--muted); border-radius: 999px; background: var(--surface-container-high); appearance: none; position: relative; transition: background-color 160ms ease, border-color 160ms ease; }
.setting-row input[type="checkbox"]::before { content: ""; position: absolute; width: 20px; height: 20px; left: 4px; top: 4px; border-radius: 50%; background: var(--muted); transition: transform 160ms ease, background-color 160ms ease; }
.setting-row input[type="checkbox"]:checked { border-color: var(--brand-strong); background: var(--brand-strong); }
.setting-row input[type="checkbox"]:checked::before { transform: translateX(20px); background: var(--surface); }
.action-row { position: relative; }
.action-row.danger strong { color: var(--danger); }
.file-input { position: absolute; inset: 0; opacity: 0; min-height: 0; cursor: pointer; }
.version-row { display: grid; gap: 5px; padding: 15px 2px 4px; border-top: 1px solid var(--line); }
.version-row span { font-weight: 800; }
.version-row small { color: var(--muted); }

.dialog-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; align-items: end; padding: 16px max(16px, var(--safe-right)) calc(16px + var(--safe-bottom)) max(16px, var(--safe-left)); background: rgba(5, 8, 10, .55); backdrop-filter: blur(6px); }
.dialog { width: 100%; max-width: 430px; margin: auto; padding: 24px; border-radius: 28px 28px 0 0; background: var(--surface); box-shadow: 0 -2px 12px rgba(0,0,0,.16); text-align: center; }
.dialog-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: auto; color: var(--brand); }
.dialog-icon.danger { border-radius: 16px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.dialog-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dialog-icon .app-mark-image { width: 46px; height: 46px; }
.dialog h2 { margin: 10px 0 7px; }
.dialog p { color: var(--muted); line-height: 1.5; }
.dialog > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(92px + var(--safe-bottom)); width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); padding: 12px 16px; border-radius: 13px; background: var(--text); color: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }

.public-shell { --public-bg: #fbfaf6; --public-card: #ffffff; --public-text: #17221f; --public-muted: #55635f; --public-line: #dce5e1; --public-accent: #3d7667; min-height: 100vh; min-height: 100dvh; background: var(--public-bg); color: var(--public-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .public-shell { --public-bg: #101513; --public-card: #19201d; --public-text: #edf5f1; --public-muted: #aebdb7; --public-line: #34413c; --public-accent: #79d8bd; } }
:root[data-theme="dark"] .public-shell { --public-bg: #101513; --public-card: #19201d; --public-text: #edf5f1; --public-muted: #aebdb7; --public-line: #34413c; --public-accent: #79d8bd; }
.public-header, .public-footer { width: min(1120px, calc(100% - 36px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-header { min-height: 82px; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 17px; font-weight: 850; letter-spacing: -.02em; }
.brand small { color: var(--public-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; }
.public-header nav, .public-footer nav { display: flex; align-items: center; gap: 8px; }
.public-header nav a, .public-footer nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; color: inherit; text-decoration: none; font-size: 13px; font-weight: 650; opacity: .78; }
.landing, .policy-page { width: min(1120px, calc(100% - 36px)); margin: auto; }
.hero { min-height: 630px; display: grid; grid-template-columns: 1.1fr .9fr; align-content: center; gap: 64px; padding: 70px 0 100px; position: relative; }
.eyebrow { color: var(--public-accent); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero h1, .policy-page h1 { max-width: 730px; margin: 14px 0 18px; font-size: clamp(45px, 7vw, 82px); line-height: .98; letter-spacing: -.06em; }
.hero-copy { align-self: center; }
.hero-copy > p { max-width: 630px; margin: 0; color: var(--public-muted); font-size: 19px; line-height: 1.6; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.benefit-row span { padding: 9px 13px; border: 1px solid var(--public-line); border-radius: 99px; color: var(--public-muted); font-size: 12px; font-weight: 750; }
.hero-visual { min-height: 390px; display: flex; flex-direction: column; justify-content: center; padding: 30px; border-radius: 36px; background: #dff6ed; transform: rotate(2deg); }
.mini-card { width: 85%; padding: 25px; border-radius: 21px; background: white; box-shadow: 0 18px 40px rgba(26, 72, 60, .12); color: #17221f; }
.mini-card.offset { margin: -5px 0 0 auto; transform: rotate(-3deg); }
.mini-card span, .mini-card small { display: block; color: #66746f; font-size: 11px; }
.mini-card strong { display: block; margin: 8px 0 14px; }
.mini-bar { height: 8px; margin-bottom: 7px; border-radius: 99px; background: #e8edeb; }
.public-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 90px; overflow: hidden; border: 1px solid var(--public-line); border-radius: 28px; background: var(--public-line); }
.public-section > div { padding: 30px; background: var(--public-bg); }
.public-section h2 { margin: 28px 0 8px; font-size: 20px; }
.public-section p { color: var(--public-muted); line-height: 1.55; }
.step { color: var(--public-accent); font-size: 12px; font-weight: 850; }
.public-footer { min-height: 100px; border-top: 1px solid var(--public-line); color: var(--public-muted); font-size: 12px; }
.policy-page { max-width: 760px; padding: 90px 0 120px; }
.policy-page h1 { font-size: clamp(44px, 7vw, 70px); }
.policy-page .lead { font-size: 20px; line-height: 1.55; }
.policy-page h2 { margin: 42px 0 10px; font-size: 21px; }
.policy-page p { color: var(--public-muted); line-height: 1.72; }
.policy-page p a { min-height: 44px; display: inline-flex; align-items: center; color: var(--public-accent); font-weight: 700; }
.faq details { border-top: 1px solid var(--public-line); padding: 18px 0; }
.faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 750; cursor: pointer; }

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
@media (min-width: 600px) {
  .dialog-backdrop { align-items: center; }
  .dialog { border-radius: 28px; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
}
@media (min-width: 840px) {
  .app-content { max-width: 960px; padding-left: 104px; padding-right: 16px; padding-bottom: 40px; }
  .app-topbar { padding-left: 20px; }
  .bottom-nav { left: 0; top: 0; bottom: 0; width: calc(88px + var(--safe-left)); height: 100vh; height: 100dvh; transform: none; grid-template-columns: 1fr; grid-auto-rows: 68px; align-content: center; gap: 4px; padding: var(--safe-top) 8px var(--safe-bottom) var(--safe-left); border-top: 0; border-right: 1px solid color-mix(in srgb, var(--line) 72%, transparent); box-shadow: none; }
  .bottom-nav a { min-height: 64px; }
  .fab { right: max(28px, calc((100vw - 856px) / 2 + 28px)); bottom: 28px; }
  .toast { bottom: 28px; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 45px; padding: 65px 0 70px; }
  .hero h1 { font-size: clamp(46px, 14.5vw, 68px); line-height: 1.02; }
  .hero-visual { min-height: 340px; }
  .public-section { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .screen { padding-left: 12px; padding-right: 12px; }
  .app-topbar { padding-left: 16px; padding-right: 16px; }
  .signal-card, .preview-card, .form-card, .settings-group, .insight-hero { padding: 16px; border-radius: 19px; }
  .bottom-nav { width: 100%; }
  .bottom-nav a { font-size: 10px; }
  .criterion-row { grid-template-columns: minmax(0, 1fr) 95px 48px; }
  .fab span { display: none; }
  .fab { width: 56px; padding: 0; justify-content: center; }
  .public-header, .public-footer { width: min(100% - 28px, 1120px); }
  .public-header nav { gap: 2px; }
  .public-header nav a { padding: 0 5px; font-size: 12px; }
  .public-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 18px 0; }
  .public-footer nav { width: 100%; justify-content: space-between; }
}
