:root {
  color-scheme: light;
  --bg: #f5f5fa; --surface: #ffffff; --surface-soft: #f8f8fc; --ink: #242337;
  --muted: #66657b; --line: #e5e5ef; --accent: #6250c9; --accent-hover: #4f3caf;
  --accent-soft: #efecfc; --accent-ink: #5742b7; --mint-bg: #e9f6f0; --mint-ink: #22654c;
  --banner: #f0eef9; --banner-ink: #585173; --error-bg: #fff0ed; --error-ink: #963e32;
  --shadow: 0 4px 24px #2c245508; --input: #ffffff; --control-line: #918ba5; --focus: #7657dd; --on-accent: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10121c; --surface: #1a1c29; --surface-soft: #212332; --ink: #efedf9;
  --muted: #b1aec4; --line: #343547; --accent: #b3a4ff; --accent-hover: #c5baff;
  --accent-soft: #2d2848; --accent-ink: #c3b5ff; --mint-bg: #1e3832; --mint-ink: #9ddbc0;
  --banner: #242337; --banner-ink: #c0b8dc; --error-bg: #3a252a; --error-ink: #ffb6a8;
  --shadow: 0 4px 24px #00000015; --input: #202230; --control-line: #777289; --focus: #c5b5ff; --on-accent: #19132e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; line-height: 1.6; }
a { color: var(--accent-ink); text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--accent-soft); }
.wrap { max-width: 1280px; padding-inline: 40px; margin-inline: auto; }
.header { min-height: 92px; display: flex; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 25px; font-weight: 800; letter-spacing: -1.2px; white-space: nowrap; }
.brand .dot { color: var(--accent); margin-left: -10px; }
.mark { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: italic 32px Georgia, serif; border-radius: 12px; width: 40px; height: 40px; padding-bottom: 5px; transform: rotate(-7deg); }
nav { display: flex; gap: 12px; align-items: center; margin-left: auto; font-size: 13px; font-weight: 600; }
.nav-link { display: block; padding: 9px 15px; border-radius: 9px; text-decoration: none; color: var(--muted); }
.nav-link:first-child { background: var(--accent-soft); color: var(--accent-ink); }
.nav-link:hover { color: var(--accent-ink); background: var(--accent-soft); }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 1px solid var(--control-line); border-radius: 24px; padding: 9px 13px; min-height: 42px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 600; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.moon-icon, [data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.dropdown { position: relative; }
.dropdown > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; border-radius: 9px; }
.dropdown > summary::-webkit-details-marker { display: none; }
.chevron { width: 18px; height: 18px; transition: transform .16s ease; }
.dropdown[open] > summary .chevron { transform: rotate(180deg); }
.nav-dropdown > summary { padding: 9px 10px; color: var(--muted); min-height: 44px; }
.dropdown-panel { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 35px #16132924; }
.nav-dropdown .dropdown-panel { min-width: 220px; left: auto; right: 0; }
.nav-dropdown .dropdown-panel a { display: flex; justify-content: space-between; gap: 20px; color: var(--ink); text-decoration: none; border-radius: 7px; padding: 10px; white-space: nowrap; font-size: 13px; }
.nav-dropdown .dropdown-panel a:hover { background: var(--accent-soft); }
.intro { padding-block: 62px 43px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); letter-spacing: .12em; font-size: 10px; font-weight: 750; margin: 0 0 20px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
h1 { font-size: clamp(46px, 5.3vw, 67px); font-weight: 750; line-height: 1.06; letter-spacing: -3px; margin: 0; }
h1 > span { color: var(--accent); }
.lead { color: var(--muted); font-size: 15px; line-height: 1.8; margin-block: 21px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 17px; font-size: 11px; color: var(--muted); }
.hero-points b { color: var(--mint-ink); margin-right: 4px; }
.intro-visual { position: relative; min-height: 285px; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.visual-orbit { position: absolute; z-index: -1; border: 1px solid var(--line); width: 280px; height: 280px; border-radius: 50%; }
.orbit-two { width: 340px; height: 230px; transform: rotate(-30deg); border-style: dashed; }
.visual-card { position: relative; background: var(--surface); box-shadow: 0 20px 50px #30216d0c; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transform: rotate(-4deg); width: 315px; }
.visual-card-top { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 650; }
.visual-icon { background: var(--accent-soft); color: var(--accent-ink); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.visual-icon svg { width: 21px; height: 21px; }
.visual-card > p { font-size: 20px; font-weight: 600; line-height: 1.55; letter-spacing: -.5px; margin-block: 19px; }
.visual-card em { font-style: normal; color: var(--accent-ink); }
.visual-tags { display: flex; gap: 6px; }
.visual-tags span { padding: 5px 9px; border-radius: 6px; font-size: 9px; background: var(--surface-soft); color: var(--muted); }
.floating-note { position: absolute; bottom: 8px; right: 12px; padding: 12px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 10px; font-weight: 600; transform: rotate(3deg); }
.floating-note span { background: var(--mint-bg); color: var(--mint-ink); padding: 3px 6px; border-radius: 50%; margin-right: 5px; }
.visual-spark { position: absolute; color: var(--accent); font-size: 28px; }
.spark-one { top: 10px; right: 45px; }.spark-two { bottom: 23px; left: 18px; }
.demo-banner { display: flex; align-items: center; gap: 12px; background: var(--banner); color: var(--banner-ink); padding: 14px 18px; border-radius: 10px; font-size: 11px; margin-bottom: 30px; border: 1px solid var(--line); }
.demo-banner strong { font-weight: 650; }
.info-icon { border: 1px solid currentColor; display: grid; place-items: center; border-radius: 50%; width: 16px; height: 16px; font: 600 11px Georgia, serif; flex-shrink: 0; }
.demo-pill { margin-left: auto; font-size: 8px; letter-spacing: .08em; font-weight: 700; white-space: nowrap; padding: 4px 7px; border-radius: 5px; border: 1px solid var(--line); }
.planner-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: start; gap: 26px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-width: 0; box-shadow: var(--shadow); }
.section-title { display: flex; gap: 12px; align-items: center; }
.section-icon { border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; }
.section-icon svg { width: 22px; height: 22px; }.section-icon.mint { color: var(--mint-ink); background: var(--mint-bg); }
.eyebrow { color: var(--muted); letter-spacing: .12em; font-size: 9px; font-weight: 750; margin: 0 0 7px; }
.section-title .eyebrow { margin-bottom: 3px; }
h2 { font-size: 23px; line-height: 1.3; font-weight: 700; letter-spacing: -.8px; margin: 0; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 650; letter-spacing: -.4px; margin: 0 0 10px; }
.muted { font-size: 13px; color: var(--muted); }.hint { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 5px 0 18px; }
#coverage { font-size: 10px; margin: 18px 0 0; }
#setup-status { font-size: 10px; color: var(--mint-ink); margin: 4px 0 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label, legend { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 46px; border: 1px solid var(--control-line); background-color: var(--input); border-radius: 9px; padding: 11px 12px; color: var(--ink); margin-bottom: 18px; font-size: 13px; line-height: 1.5; }
select { cursor: pointer; padding-right: 30px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:hover, textarea:hover, select:hover { border-color: var(--accent); }
textarea { resize: vertical; min-height: 105px; }
#origin, #budget-preset, #budget { margin-bottom: 0; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.two-columns > div { min-width: 0; }
input, select, textarea { min-width: 0; }
#custom-budget { margin-top: 13px; }
.interest-picker { margin-bottom: 0; }
.interest-picker > summary { min-height: 46px; padding: 11px 12px; background: var(--input); border: 1px solid var(--control-line); font-size: 13px; }
.interest-picker > summary:hover { border-color: var(--accent); }
.interest-picker .dropdown-panel { position: static; margin-top: 8px; padding: 16px; box-shadow: none; background: var(--surface-soft); }
.interest-picker .hint { margin-bottom: 10px; font-size: 10px; }
.interest-options { display: grid; gap: 4px; }
.interest-options label { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 7px; margin: 0; font-size: 13px; font-weight: 500; cursor: pointer; min-height: 44px; }
.interest-options label:hover { background: var(--accent-soft); }
.interest-options input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.button { border: 1px solid transparent; min-height: 44px; padding: 11px 16px; border-radius: 9px; font-weight: 650; font-size: 12px; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.button svg { width: 18px; height: 18px; }.primary { background: var(--accent); color: var(--on-accent); }
.primary:hover { background: var(--accent-hover); }.secondary { border-color: var(--control-line); color: var(--ink); background: var(--surface); }
.secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
#plan-submit, #search-form .button { width: 100%; }
#plan-submit { justify-content: space-between; padding-block: 13px; margin-top: 4px; }
.form-footnote { color: var(--muted); font-size: 10px; text-align: center; margin: 12px 0 0; }
.form-footnote span { color: var(--accent); margin-right: 3px; }
.text-button { color: var(--accent-ink); background: none; border: 0; font-size: 12px; padding: 10px 0; min-height: 44px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.feedback { font-size: 12px; line-height: 1.7; }.feedback:empty { display: none; }
.error, #setup-status.error { color: var(--error-ink); border-left: 3px solid var(--error-ink); padding: 10px 14px; background: var(--error-bg); border-radius: 4px; }
.results-panel { min-height: 570px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.local-badge, .privacy-badge { font-size: 9px; font-weight: 600; padding: 6px 9px; border-radius: 20px; white-space: nowrap; color: var(--mint-ink); background: var(--mint-bg); }
.local-badge { display: flex; align-items: center; gap: 5px; }
#plan-status { color: var(--muted); margin-top: 18px; }
#plan-status.error { color: var(--error-ink); }
.empty-state { text-align: center; padding: 62px 10px 55px; }
.empty-illustration { position: relative; margin: 0 auto 26px; width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.empty-illustration > svg { width: 65px; height: 65px; stroke-width: 1.8; transform: rotate(-7deg); }
.empty-orbit { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--line); }
.empty-star { position: absolute; top: 2px; right: 0; color: var(--accent); font-size: 27px; background: var(--surface); width: 34px; height: 34px; border-radius: 50%; }
.empty-state h3 { font-size: 19px; }.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.empty-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.empty-tags span { border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 10px; padding: 5px 10px; }
.activity { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.activity.featured { background: var(--accent-soft); border-color: var(--line); padding: 23px; }
.activity .eyebrow { color: var(--accent-ink); font-size: 8px; }
.activity h3 { font-size: 22px; letter-spacing: -.7px; margin-bottom: 0; }
.activity:not(.featured) h3 { font-size: 18px; }
.activity .price { font-size: 25px; font-weight: 750; letter-spacing: -1px; color: var(--accent-ink); }
.activity .activity-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.activity .muted { font-size: 11px; }
.activity dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-block: 14px; border-block: 1px solid var(--line); }
.activity dt { font-size: 10px; color: var(--muted); }.activity dd { margin: 4px 0 0; font-weight: 650; font-size: 12px; }
.activity-notes { margin-top: 12px; font-size: 11px; }.activity-notes summary { color: var(--accent-ink); font-weight: 600; min-height: 28px; }
.activity ul { padding-left: 17px; font-size: 11px; line-height: 1.8; margin-bottom: 0; }
.provenance { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.provenance p { margin: 7px 0; }.provenance strong { color: var(--ink); font-weight: 600; }
.library-panel { margin-top: 28px; }.library-heading { display: flex; align-items: center; gap: 15px; justify-content: space-between; }
.library-panel > .muted { max-width: 780px; margin-bottom: 8px; }
.help-details summary { color: var(--accent-ink); font-size: 11px; min-height: 30px; padding-block: 4px; }
.help-details > .hint { max-width: 800px; padding: 10px 14px; background: var(--surface-soft); border-radius: 8px; }
#library-status { color: var(--muted); font-size: 10px; }#library-status.error { color: var(--error-ink); }
.library-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin-top: 25px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 15px; }
.check { display: flex; align-items: start; gap: 10px; font-size: 11px; font-weight: 400; min-height: 30px; }
.check input { accent-color: var(--accent); margin: 3px 0 0; flex-shrink: 0; width: 16px; height: 16px; }
.import-label { color: var(--muted); }
#paste-form { padding: 18px; margin-block: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.source-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); margin-top: 15px; }
.source-toolbar .hint { margin: 0; }.source-toolbar select { width: auto; min-height: 40px; margin: 0 0 5px; font-size: 10px; background: var(--surface); border-color: transparent; padding-left: 6px; }
.source-item { padding: 17px 0 10px; border-bottom: 1px solid var(--line); }.source-item:last-child { border-bottom: 0; }
.source-item .check { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; margin-bottom: 0; }
.source-item .hint { margin: 3px 0 0 26px; font-size: 10px; }.source-actions { display: flex; gap: 18px; margin-left: 26px; }
.source-actions .text-button { font-size: 10px; }.source-actions .text-button:last-child { color: var(--muted); }
.search-panel { border-left: 1px solid var(--line); padding-left: 34px; }.search-panel > .eyebrow { margin-top: 3px; }
.search-panel h3 { font-size: 23px; margin-bottom: 12px; }.search-panel .muted { font-size: 12px; margin-bottom: 22px; }
.excerpt { border: 1px solid var(--line); padding: 18px; border-radius: 10px; margin-top: 15px; overflow-wrap: anywhere; background: var(--surface-soft); }
.excerpt h4 { margin: 0; font-size: 13px; }blockquote { margin: 12px 0; white-space: pre-wrap; font-size: 12px; border-left: 2px solid var(--accent); padding-left: 14px; }
.how-it-works { margin-top: 50px; padding-block: 12px 24px; }.how-it-works > div:first-child { text-align: center; }
.how-it-works h2 { font-size: 25px; }.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 35px; }
.steps article { position: relative; padding: 0 18px 0 48px; }.steps article > span { position: absolute; top: 0; left: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 10px; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); }
.steps h3 { font-size: 14px; margin-bottom: 5px; }.steps p { font-size: 12px; color: var(--muted); margin: 0; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--muted); font-size: 11px; padding: 24px 0; border-top: 1px solid var(--line); margin-top: 20px; }
.footer { border-top: 1px solid var(--line); padding-block: 24px; display: flex; justify-content: space-between; gap: 25px; font-size: 10px; color: var(--muted); }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 800px; width: calc(100% - 32px); max-height: 85vh; color: var(--ink); background: var(--surface); box-shadow: 0 20px 100px #00000044; }
dialog::backdrop { background: #101020a8; }.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
#viewer-title { overflow-wrap: anywhere; }.passage { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; padding: 18px; background: var(--surface-soft); border-radius: 9px; margin-block: 16px; }
.passage.selected { outline: 2px solid var(--accent); }.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; left: 10px; top: 10px; color: var(--ink); background: var(--surface); padding: 10px; z-index: 50; border-radius: 8px; }
@media (max-width: 1000px) { .wrap { padding-inline: 26px; }.header { gap: 20px; }.intro { gap: 25px; }.intro-visual { transform: scale(.9); }.results-heading { flex-wrap: wrap; }.panel { padding: 23px; }.library-grid { gap: 24px; }.search-panel { padding-left: 24px; }.demo-pill { display: none; }.activity-top { flex-wrap: wrap; } }
@media (max-width: 760px) { .header { min-height: 80px; gap: 14px; }.brand { font-size: 22px; }.mark { width: 34px; height: 34px; font-size: 28px; }nav { gap: 0; }.nav-link { padding: 9px 10px; }.intro { grid-template-columns: 1fr; padding-block: 42px 30px; }.intro-visual { display: none; }h1 { font-size: 58px; }.planner-grid { grid-template-columns: 1fr 1.1fr; gap: 16px; }.panel { padding: 20px; }h2 { font-size: 20px; }.section-icon { width: 34px; height: 34px; }.section-icon svg { width: 19px; height: 19px; }.eyebrow { font-size: 8px; }.library-grid { grid-template-columns: 1fr; }.search-panel { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--line); }.steps { gap: 15px; }.steps article { padding-left: 40px; padding-right: 0; }.activity { padding: 15px; }.activity.featured { padding: 18px; }.activity dl { grid-template-columns: 1fr; gap: 9px; }.activity dl > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.activity dd { margin: 0; }.theme-toggle { padding: 9px; }.theme-toggle span { display: none; }.empty-state { padding-inline: 0; } }
@media (max-width: 560px) { .wrap { padding-inline: 18px; }.header { gap: 8px; min-height: 76px; }.brand { font-size: 21px; }nav { font-size: 11px; }.nav-link { padding: 8px; }.nav-dropdown > summary { font-size: 11px; padding: 8px 4px; }.nav-dropdown .dropdown-panel { right: -40px; }.theme-toggle { min-width: 40px; min-height: 40px; }.intro { padding-top: 32px; }h1 { font-size: 51px; letter-spacing: -2.5px; }.lead { font-size: 14px; }.lead br { display: none; }.hero-badge { font-size: 8px; }.hero-points { gap: 8px 14px; font-size: 9px; }.demo-banner { align-items: start; font-size: 10px; padding: 13px; }.info-icon { margin-top: 2px; }.planner-grid, .about, .steps { grid-template-columns: 1fr; }.panel { border-radius: 14px; padding: 22px; }.results-panel { min-height: auto; }.results-heading { flex-wrap: nowrap; }.local-badge { font-size: 8px; }.empty-state { padding: 40px 0; }.empty-illustration { width: 100px; height: 100px; }.empty-illustration > svg { width: 56px; height: 56px; }.activity-top { flex-wrap: nowrap; }.activity h3 { font-size: 21px; }.activity .price { font-size: 24px; }.activity dl { grid-template-columns: repeat(3, 1fr); gap: 8px; }.activity dl > div { display: block; }.activity dt { font-size: 9px; }.activity dd { font-size: 11px; margin-top: 4px; }.library-heading { align-items: start; flex-wrap: wrap; gap: 12px; }.privacy-badge { margin-left: 46px; }.steps { gap: 25px; margin-top: 30px; }.steps article { padding-left: 45px; }.how-it-works { margin-top: 36px; }.how-it-works h2 { font-size: 22px; }.about { gap: 0; padding-block: 20px; }.footer { flex-direction: column; gap: 7px; }.source-toolbar { flex-wrap: wrap; }.source-toolbar select { padding-right: 10px; }dialog { padding: 22px; } }
@media (max-width: 370px) { .wrap { padding-inline: 12px; }.brand { font-size: 19px; }.brand .mark { width: 30px; height: 30px; }.nav-link { padding-inline: 5px; }.nav-dropdown > summary { gap: 2px; }.header { gap: 5px; }.panel { padding: 18px; }.local-badge { display: none; }.hero-points { gap: 8px; }.activity-top { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.chevron { transition: none; } }
@media (max-width: 1000px) { .orbit-two { width: 280px; height: 210px; } }
@media (max-width: 560px) { .nav-link:first-child { display: none; } input:not([type=checkbox]), select, textarea { font-size: 16px; } }
@media (forced-colors: active) { .button, .theme-toggle, .panel, .visual-card, .section-icon { border: 1px solid ButtonText; }.status-dot { background: CanvasText; }.primary { border: 2px solid ButtonText; } }

.intro { padding-block: 32px 26px; }
.intro h1 { font-size: clamp(38px, 4.4vw, 56px); }
.intro-visual { min-height: 220px; }
.intro .visual-card { padding: 18px 22px; }
.intro .visual-orbit { width: 210px; height: 210px; }
.intro .orbit-two { width: 285px; height: 180px; }
.sound-toggle b { font-size: 19px; line-height: 1; }
.header button.nav-link { border: 0; background: none; font: inherit; cursor: pointer; }
.workspace-heading, .criteria-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.workspace-heading { margin-bottom: 18px; }
.workspace-heading h2 { font-size: 27px; }
.scenario-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.scenario-tab { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 64px; padding: 13px; border: 1px solid var(--control-line); border-radius: 12px; color: var(--ink); background: var(--surface); transition: transform .15s ease, border-color .15s ease; }
.scenario-tab:hover { border-color: var(--accent); transform: translateY(-2px); }
.scenario-tab[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent); }
.scenario-tab .scenario-symbol { font-size: 22px; font-weight: 500; }
.scenario-tab strong { font-size: 12px; font-weight: 650; }
.decision-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: 24px; align-items: start; }
.decision-preferences h3 { margin-bottom: 7px; }
.scenario-notice { padding: 11px 13px; background: var(--banner); border: 1px solid var(--line); border-radius: 9px; font-size: 11px; line-height: 1.7; color: var(--banner-ink); }
.criteria-heading h3 { font-size: 17px; margin: 0; }
.criteria-heading .text-button { font-size: 11px; }
.criterion-control { border-top: 1px solid var(--line); padding-block: 16px 10px; }
.criterion-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.criterion-title label { margin: 0; font-size: 12px; }
.criterion-title .hint { margin: 0; font-size: 10px; text-align: right; }
.weight-controls { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 14px; align-items: center; margin-block: 8px; }
.weight-controls input[type="range"] { border: 0; background: transparent; padding: 0; margin: 0; min-height: 32px; height: 32px; accent-color: var(--accent); }
.weight-controls input[type="number"] { text-align: center; padding: 6px; margin: 0; min-height: 38px; font-size: 12px; }
.constraint-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 10px; align-items: start; }
.constraint-controls select, .constraint-controls input { margin: 0 0 6px; min-height: 40px; font-size: 11px; padding: 8px 10px; }
.constraint-controls label { margin: 0; }
#decision-submit { width: 100%; margin-top: 14px; justify-content: space-between; }
.decision-output { min-height: 490px; }
#decision-status { color: var(--muted); }
#decision-status.error { color: var(--error-ink); }
.decision-placeholder { text-align: center; padding: 70px 15px; }
.decision-placeholder > span { display: grid; place-items: center; border-radius: 18px; width: 65px; height: 65px; margin: 0 auto 22px; font-size: 34px; background: var(--accent-soft); color: var(--accent-ink); }
.decision-placeholder h3 { font-size: 19px; }
.decision-placeholder p { color: var(--muted); font-size: 12px; }
.decision-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-block: 18px; background: var(--accent-soft); animation: decision-enter .24s ease-out both; }
.decision-card header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.decision-card h3 { margin-bottom: 8px; font-size: 23px; }
.decision-score { text-align: right; color: var(--accent-ink); font-size: 26px; font-weight: 750; white-space: nowrap; }
.decision-score small { display: block; font-size: 9px; font-weight: 500; }
.decision-card ul { padding-left: 18px; font-size: 12px; }
.decision-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.decision-metrics div { min-width: 0; }
.decision-metrics dt { color: var(--muted); font-size: 10px; }
.decision-metrics dd { margin: 3px 0 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.comparison-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-block: 20px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.comparison-table caption { text-align: left; padding: 12px; color: var(--muted); font-size: 11px; font-weight: 500; }
.comparison-table th, .comparison-table td { padding: 11px 13px; border-top: 1px solid var(--line); text-align: left; }
.comparison-table th { font-weight: 650; background: var(--surface-soft); }
.comparison-table tbody tr:first-child td { color: var(--accent-ink); font-weight: 600; }
.decision-disclosure { padding-block: 8px; font-size: 12px; }
.decision-disclosure summary, .custom-editor summary { color: var(--accent-ink); min-height: 40px; padding-block: 10px; font-weight: 600; }
.decision-excluded { border-left: 2px solid var(--control-line); padding: 8px 14px; margin-block: 12px; }
.decision-excluded h4 { margin: 0; font-size: 13px; }
.decision-excluded ul { margin: 6px 0; padding-left: 16px; font-size: 11px; color: var(--muted); }
.decision-limitations { font-size: 11px; color: var(--muted); padding-left: 17px; }
.custom-editor { margin-top: 12px; }
#custom-json { font: 11px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.tools-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-block: 1px solid var(--line); margin-block: 28px; padding-block: 20px; }
.tools-strip strong { font-size: 14px; }
.tools-strip .hint { margin: 4px 0 0; }
.legacy-example { margin-bottom: 28px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.legacy-example > summary { min-height: 42px; padding-block: 10px; color: var(--ink); font-size: 13px; font-weight: 650; }
.legacy-example > summary > span { display: inline-block; margin-left: 10px; color: var(--muted); font-weight: 400; font-size: 11px; }
.legacy-example[open] > summary { margin-bottom: 14px; }
.tools-dialog { max-width: 1050px; }
.tools-dialog #library { padding: 12px 0 0; margin-top: 20px; border: 0; box-shadow: none; }
@keyframes decision-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) { .scenario-tab { gap: 7px; padding: 11px; }.scenario-tab strong { font-size: 11px; }.scenario-tab .scenario-symbol { font-size: 18px; }.decision-grid { gap: 18px; } }
@media (max-width: 760px) { .intro { padding-top: 28px; }.decision-grid { grid-template-columns: 1fr; }.decision-output { min-height: 300px; }.scenario-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }.scenario-tab { min-height: 54px; }.decision-placeholder { padding-block: 35px; }.workspace-heading h2 { font-size: 23px; } }
@media (max-width: 560px) { .header .nav-dropdown { display: none; }.header { gap: 7px; }.header nav { font-size: 11px; }.header .nav-link { padding-inline: 5px; }.sound-toggle { min-width: 36px; padding: 8px; }.theme-toggle { min-width: 36px; }.scenario-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.scenario-tab:last-child { grid-column: 1 / -1; }.workspace-heading { align-items: start; }.workspace-heading .local-badge { display: none; }.decision-score { font-size: 22px; }.decision-card { padding: 18px; }.decision-card h3 { font-size: 20px; }.tools-strip { align-items: stretch; flex-direction: column; }.tools-strip .button { align-self: start; }.legacy-example { padding: 12px; }.legacy-example > summary > span { display: block; margin: 6px 0 0; }.constraint-controls input, .constraint-controls select { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }.scenario-tab:hover { transform: none; } }

/* Calm, explicit appearance choices rather than an ambiguous on/off button. */
.appearance-picker { flex-shrink: 0; }
.appearance-picker > .theme-toggle { min-height: 44px; gap: 8px; font-size: 12px; }
.appearance-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--control-line); background: linear-gradient(90deg, var(--surface) 50%, var(--ink) 50%); display: inline-block; }
.appearance-caption { color: var(--muted); font-weight: 500; }
#theme-label { color: var(--ink); }
.appearance-panel { width: min(352px, calc(100vw - 32px)); min-width: 0; right: 0; left: auto; padding: 22px; }
.appearance-panel h2 { font-size: 21px; }
.appearance-panel > .muted { font-size: 12px; margin-block: 7px 18px; }
.theme-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.theme-choice { position: relative; min-width: 0; margin: 0; cursor: pointer; border: 1px solid var(--control-line); border-radius: 10px; padding: 5px; background: var(--surface); }
.theme-choice:has(input:checked) { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--accent-soft); }
.theme-choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.theme-choice > input { position: absolute; width: 15px; height: 15px; top: 10px; right: 9px; accent-color: var(--accent); margin: 0; z-index: 1; }
.theme-preview { display: grid; grid-template-columns: 22% 1fr; grid-template-rows: 13px 1fr; gap: 5px; border-radius: 6px; height: 61px; padding: 9px 7px; background: #f0eff8; }
.theme-preview > span { border-radius: 2px; background: #d1cbe8; }
.theme-preview > span:first-child { grid-row: span 2; background: #fff; }
.theme-preview > span:nth-child(2) { width: 45%; }
.theme-preview > span:last-child { background: #fff; }
.preview-dark { background: #171925; }.preview-dark > span { background: #a99ae8; }.preview-dark > span:first-child, .preview-dark > span:last-child { background: #33354a; }
.preview-system { background: linear-gradient(90deg, #f0eff8 50%, #171925 50%); }.preview-system > span:last-child { background: linear-gradient(90deg, #fff 40%, #33354a 40%); }
.theme-choice-label { display: block; text-align: center; font-size: 11px; line-height: 1.4; padding-block: 9px 5px; white-space: nowrap; }
#theme-status { font-size: 12px; margin: 16px 0 12px; min-height: 38px; }
#appearance-done { width: 100%; }

/* A small amount of guidance, with freedom to adjust every preference. */
.starter-box { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.starter-box label { color: var(--accent-ink); }
#starter { margin-bottom: 0; background-color: var(--surface); }
.starter-box .hint { margin: 9px 0 0; font-size: 12px; }
.reset-button { display: block; margin: 7px auto 0; min-height: 44px; padding-block: 5px; }
.field-error { color: var(--error-ink); font-size: 12px; font-weight: 550; margin: -7px 0 18px; }
[aria-invalid="true"] { border-color: var(--error-ink) !important; }
#results-title:focus-visible { border-radius: 4px; }
#coverage { font-size: 11px; }#setup-status { font-size: 11px; }
label, legend { font-size: 13px; }
.hint { font-size: 12px; }
#budget-hint { margin-bottom: 20px; }
.feedback { font-size: 13px; }
.activity .muted, .activity dt, .activity ul, .activity-notes { font-size: 12px; }
.activity-notes > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.activity-notes > summary::before { content: '+'; font-size: 17px; font-weight: 400; }.activity-notes[open] > summary::before { content: '−'; }
.provenance { font-size: 11px; }

/* One obvious place to add a source, with comfortable selection and recovery. */
.add-source-picker > summary { list-style: none; gap: 25px; min-width: 160px; }
.add-source-picker > summary::-webkit-details-marker { display: none; }
.source-menu { width: min(344px, calc(100vw - 80px)); min-width: 0; padding: 8px; }
.dropdown-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 70px; color: var(--ink); text-align: left; background: transparent; border: 0; border-radius: 9px; padding: 12px; }
.dropdown-action:hover, .dropdown-action:focus-visible { background: var(--accent-soft); }
.dropdown-action strong { display: block; font-size: 13px; font-weight: 650; }
.dropdown-action small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; line-height: 1.5; }
.action-icon { display: grid; place-items: center; width: 32px; height: 34px; flex-shrink: 0; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; font-size: 15px; }
.add-source-hint { margin: 0; font-size: 11px; }
.library-empty { text-align: center; padding: 38px 16px; border: 1px dashed var(--control-line); border-radius: 12px; background: var(--surface-soft); margin-top: 15px; }
.library-empty-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font-size: 26px; font-weight: 300; margin: 0 auto 15px; }
.library-empty h3 { font-size: 16px; }.library-empty .muted { font-size: 12px; max-width: 300px; margin: 0 auto; }
.selection-tools { display: flex; gap: 20px; }.selection-tools .text-button { font-size: 12px; min-height: 44px; }
.selection-tools button:disabled { cursor: default; }
.source-item .check { min-height: 44px; align-items: center; font-size: 13px; }.source-item .check input { margin-top: 0; }
.source-item .hint, .source-actions .text-button { font-size: 11px; }
.source-toolbar select { font-size: 12px; min-height: 44px; }
.confirm-dialog { max-width: 430px; }.confirm-dialog h2 { font-size: 25px; }.confirm-dialog p { overflow-wrap: anywhere; }
.confirm-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.danger { background: var(--error-bg); color: var(--error-ink); border: 1px solid var(--error-ink); }
.danger:hover { outline: 1px solid var(--error-ink); }
@media (max-width: 760px) { .theme-toggle .appearance-dot, .theme-toggle #theme-label { display: inline-block; }.theme-toggle .appearance-caption { display: none; }.appearance-picker > .theme-toggle { padding-inline: 11px; }.appearance-panel { padding: 18px; }.appearance-panel .eyebrow { font-size: 9px; } }
@media (max-width: 560px) { .appearance-picker > .theme-toggle { gap: 5px; }.theme-toggle .appearance-dot { display: none; }.appearance-panel h2 { font-size: 21px; }.add-source-hint { display: none; }.source-menu { width: min(320px, calc(100vw - 80px)); }.dropdown-action { padding: 11px 8px; }.starter-box { padding: 14px; }.confirm-actions { flex-direction: column-reverse; }.confirm-actions button { width: 100%; }.theme-choice-label { font-size: 10px; } }
.theme-choice > input { min-height: 0; padding: 0; border: 0; background: transparent; }
@media (max-width: 370px) { .nav-link { display: none; } }
#library-open { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.library-nav-icon { width: 18px; height: 18px; }
@media (max-width: 560px) { #library-open { min-width: 36px; justify-content: center; }.library-nav-label { display: none; } }
@media (min-width: 761px) and (max-width: 1000px) { .header { gap: 14px; }.appearance-caption, .sound-toggle > span { display: none; }.appearance-picker > .theme-toggle { padding-inline: 11px; } }
@media (max-width: 560px) { .constraint-controls input, .constraint-controls select, .weight-controls input[type="number"] { font-size: 16px; min-height: 44px; } }

/* Clear, colourful topics with readable ink in both appearances. */
:root { --wash-one: #e9e4ff; --wash-two: #e0f5ee; --wash-three: #fff0df; }
:root[data-theme="dark"] { --wash-one: #251f43; --wash-two: #142e2c; --wash-three: #2d231e; }
body { background: radial-gradient(ellipse at 5% 3%, var(--wash-one), transparent 35%), radial-gradient(ellipse at 97% 15%, var(--wash-two), transparent 28%), var(--bg); }
.intro .hero-badge { font-size: 11px; }.intro h1 { font-size: clamp(37px, 4.5vw, 57px); line-height: 1.12; }
.intro-visual .visual-card { border-top: 4px solid var(--accent); }
#decision-workspace, .scenario-tab { --topic: var(--blue); --topic-soft: var(--blue-soft); }
#decision-workspace[data-scenario="market"], .scenario-tab[data-id="market"] { --topic: var(--red); --topic-soft: var(--red-soft); }
#decision-workspace[data-scenario="student"], .scenario-tab[data-id="student"] { --topic: var(--yellow); --topic-soft: var(--yellow-soft); }
#decision-workspace[data-scenario="sustainability"], .scenario-tab[data-id="sustainability"] { --topic: var(--green); --topic-soft: var(--green-soft); }
.scenario-tab { background: var(--topic-soft); color: var(--topic); border: 2px solid transparent; border-bottom: 4px solid var(--topic); min-height: 78px; }
.scenario-tab .scenario-symbol { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--surface); flex-shrink: 0; }
.scenario-tab[aria-pressed="true"] { background: var(--topic-soft); color: var(--topic); border-color: var(--topic); box-shadow: 0 0 0 3px var(--surface); }
.scenario-tab:hover { border-color: var(--topic); }
.decision-preferences { border-top: 5px solid var(--topic); }
.decision-card { background: var(--topic-soft); border-color: var(--topic); }
.decision-card .eyebrow, .decision-card .decision-score { color: var(--topic); }
.workspace-heading h2 { max-width: 650px; }.criteria-heading h3 { font-size: 20px; }
.criterion-control { background: var(--surface-soft); border: 1px solid var(--line); padding: 18px; border-radius: 12px; margin-block: 14px; }
.criterion-title { flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }.criterion-title label { font-size: 15px; }.criterion-title .hint { font-size: 11px; }
.priority-choice { margin-bottom: 12px; min-height: 46px; font-size: 14px; }
.constraint-controls { grid-template-columns: 1fr; gap: 10px; }
.constraint-controls .limit-heading { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.constraint-controls select { font-size: 13px; min-height: 44px; }
.limit-caption { display: block; font-size: 12px; margin-bottom: 7px; }
.currency-input, .limit-input { position: relative; display: block; }
.currency-prefix { position: absolute; left: 14px; top: 11px; font-size: 15px; color: var(--ink); font-weight: 650; }
.constraint-controls .currency-input input { padding-left: 32px; font-size: 15px; min-height: 46px; }
.constraint-controls .limit-input input { font-size: 14px; min-height: 46px; }
.exact-priority { margin-top: 8px; }.exact-priority > summary { color: var(--accent-ink); font-size: 12px; min-height: 36px; padding-block: 8px; cursor: pointer; }
.exact-priority .hint { font-size: 11px; margin-bottom: 0; }
.decision-about { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.decision-about .provenance { border-top: 0; padding-top: 0; }
.decision-score small { max-width: 115px; white-space: normal; line-height: 1.5; font-size: 10px; }
.comparison-table th, .comparison-table td { font-size: 12px; }.decision-metrics dt { font-size: 12px; }.decision-metrics dd { font-size: 17px; }
@media (max-width: 1000px) { .scenario-tab { flex-direction: column; align-items: start; gap: 9px; }.scenario-tab strong { font-size: 12px; } }
@media (max-width: 560px) { .scenario-tab { flex-direction: row; align-items: center; min-height: 72px; }.criterion-control { padding: 15px; }.intro .hero-badge { font-size: 9px; }.priority-choice, .constraint-controls select, .constraint-controls input, .constraint-controls .currency-input input, .constraint-controls .limit-input input { font-size: 16px; } }

/* A clear first visit: one topic choice, simple preferences, optional limits. */
.welcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; }
.welcome-actions .text-button { font-size: 14px; }
.welcome-actions + .hint { max-width: 460px; font-size: 13px; }
.topic-text { display: grid; gap: 4px; min-width: 0; }
.topic-text small { font-size: 11px; line-height: 1.5; }
.scenario-tab { align-items: start; }
.workspace-heading .hint { margin-bottom: 0; font-size: 14px; }
#scenario-title { font-size: 23px; }
#spending-controls { margin-block: 22px; }
#spending-controls .constraint-controls { padding: 16px; background: var(--topic-soft); border: 1px solid var(--topic); border-radius: 12px; }
.criteria-heading { align-items: baseline; flex-wrap: wrap; gap: 6px; }
.criteria-heading .text-button { font-size: 12px; }
.criterion-control { padding: 13px 15px; margin-block: 10px; }
.criterion-title { margin-bottom: 8px; }
.priority-choice { margin-bottom: 0; }
.extra-limits { margin-block: 18px; border: 1px solid var(--control-line); border-radius: 10px; padding: 0 14px; }
.extra-limits > summary { min-height: 48px; padding-block: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.limit-preview { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 5px; }
.limit-preview:empty { display: none; }
#other-limit-controls .constraint-controls { border-top: 1px solid var(--line); padding-block: 14px; }
.match-explanation { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 15px; }
.match-explanation h4 { font-size: 15px; margin: 0; }
.match-explanation ul { margin-bottom: 0; }
.decision-disclosure .decision-score { text-align: left; font-size: 14px; font-weight: 600; }
#edit-choices { width: 100%; justify-content: space-between; margin-top: 18px; }
.decision-output > .feedback, .decision-placeholder p, .decision-card ul, .decision-card > .hint { font-size: 14px; }
@media (max-width: 1000px) { .topic-text small { font-size: 10px; } }
@media (max-width: 560px) { .welcome-actions { align-items: stretch; flex-direction: column; gap: 14px; }.welcome-actions .button { justify-content: space-between; }.welcome-actions .text-button { align-self: start; }.scenario-tab { align-items: center; }.topic-text small { font-size: 11px; }.intro h1 { font-size: 36px; }.criterion-title .hint { text-align: left; } }

/* The shared lamp follows the active violet and gold palette. */
:root { --lamp-gold: #9b6a17; }
:root[data-theme="dark"] { --lamp-gold: #e9c779; }
.brand .lamp-badge { padding: 2px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--line); transform: none; }
.lamp-mark { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.lamp-mark .lamp-body { fill: var(--accent-soft); }
.lamp-mark .lamp-gold { stroke: var(--lamp-gold); }
.brand-label { letter-spacing: -.9px; }
.visual-icon.assistant-lamp { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line); }
.assistant-lamp .lamp-mark { width: 100%; height: 100%; }
.assistant-label { color: var(--accent-ink); font-weight: 650; }
.intro-visual .spark-two { color: var(--lamp-gold); }
.intro-visual .visual-card { border-top-color: var(--lamp-gold); }

/* Language choices affect interface copy without changing stored decision data. */
.language-picker { margin: 0; flex: 0 0 auto; }
.language-picker select { width: 112px; min-height: 42px; margin: 0; padding: 8px 24px 8px 10px; font-size: 12px; background-color: var(--surface); }
.intro h1 > span[data-i18n] { color: var(--ink); }
.criterion-title > label, .topic-text, .scenario-tab, .match-explanation { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .header { gap: 12px; }.header nav { margin-left: auto; }.header .appearance-caption { display: none; } }
@media (max-width: 560px) { .header .nav-link[href="#decision-workspace"] { display: none; }.language-picker select { width: 88px; min-height: 40px; padding-left: 6px; font-size: 12px; }.header .brand { gap: 7px; }.header nav { margin-left: auto; }.header { flex-wrap: nowrap; }.header #theme-label { display: none; }.header .appearance-dot { display: inline-block; width: 8px; height: 8px; }.header .appearance-picker > .theme-toggle { width: 44px; padding-inline: 8px; gap: 3px; }.header .appearance-picker .chevron { width: 14px; }.workspace-heading h2 { overflow-wrap: anywhere; } }
@media (max-width: 370px) { .language-picker select { width: 76px; }.header { gap: 5px; } }

/* Red, green, blue and yellow accents keep labels readable in both themes. */
:root {
  --red: #b72c3d; --red-soft: #fff0ee; --green: #176b47; --green-soft: #e9f7ee;
  --blue: #245dcd; --blue-soft: #edf3ff; --yellow: #805600; --yellow-soft: #fff7d9;
  --accent: #245dcd; --accent-hover: #194aaf; --accent-ink: #2053b9; --accent-soft: #edf3ff; --focus: #245dcd;
}
:root[data-theme="dark"] {
  --red: #ffb3b7; --red-soft: #3a242d; --green: #9ce2bc; --green-soft: #18382e;
  --blue: #a6c4ff; --blue-soft: #1d2b46; --yellow: #f4d878; --yellow-soft: #38301c;
  --accent: #a6c4ff; --accent-hover: #c0d6ff; --accent-ink: #b8cfff; --accent-soft: #1d2b46; --focus: #a6c4ff; --on-accent: #132341;
}
.scenario-tab { position: relative; overflow: hidden; }
.scenario-tab[data-id="custom"]::after, .intro-copy::before {
  content: ''; display: block; height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--red) 0 25%, var(--green) 25% 50%, var(--blue) 50% 75%, var(--yellow) 75% 100%);
}
.scenario-tab[data-id="custom"]::after { position: absolute; inset: auto 0 0; }
.intro-copy::before { width: 64px; margin-bottom: 18px; }
.criterion-control { --control-accent: var(--blue); border-left: 3px solid var(--control-accent); }
.criterion-control:nth-child(4n + 1) { --control-accent: var(--red); }
.criterion-control:nth-child(4n + 2) { --control-accent: var(--blue); }
.criterion-control:nth-child(4n + 3) { --control-accent: var(--green); }
.criterion-control:nth-child(4n + 4) { --control-accent: var(--yellow); }
.number-with-unit { display: flex; align-items: center; min-width: 0; border: 1px solid var(--control-line); border-radius: 10px; background: var(--input); overflow: hidden; }
.number-with-unit:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.number-with-unit .number-unit { padding-inline: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; font-weight: 650; }
.number-with-unit input, .weight-controls .number-with-unit input[type="number"], .constraint-controls .number-with-unit input {
  min-width: 0; width: 100%; min-height: 48px; margin: 0; padding: 10px 8px; border: 0; border-radius: 0; outline: none; box-shadow: none; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.number-with-unit input:focus-visible { outline: none; }
.amount-input .number-unit:first-child { padding-right: 0; font-size: 17px; color: var(--ink); }
.weight-controls { grid-template-columns: minmax(0, 1fr) 130px; gap: 18px; align-items: center; }
.weight-controls .number-with-unit input[type="number"] { text-align: right; }
.measure-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(135px, .8fr); gap: 16px; align-items: center; --control-accent: var(--topic); }
.slider-group { min-width: 0; }
.range-endpoints { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; margin-top: 4px; }
.weight-controls input[type="range"], .measure-controls input[type="range"] {
  --range-fill: 0%; appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(to right, var(--control-accent) 0 var(--range-fill), var(--control-line) var(--range-fill) 100%) center / 100% 7px no-repeat;
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface); background: var(--control-accent); box-shadow: 0 0 0 1px var(--control-accent), 0 2px 5px #0002; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--surface); background: var(--control-accent); box-shadow: 0 0 0 1px var(--control-accent); }
input[type="range"]::-moz-range-track { background: transparent; }
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--control-accent); }
.amount-hint { margin: 9px 0 0; font-size: 12px; }
.exact-priority .hint { font-size: 12px; }
.wave-setting { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 13px; align-items: center; gap: 10px; }
.wave-setting input { accent-color: var(--accent); width: 20px; height: 20px; }
.ambient-waves { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.wave-layer { position: absolute; width: 200%; height: min(65vh, 580px); min-height: 300px; bottom: -50px; left: 0; background: url('waves.svg') repeat-x bottom / 50% 100%; animation: wave-drift 38s linear infinite; opacity: .35; }
.wave-back { bottom: 30px; opacity: .15; animation-duration: 54s; animation-direction: reverse; }
[data-theme="dark"] .wave-layer { opacity: .22; }
[data-theme="dark"] .wave-back { opacity: .1; }
[data-waves="off"] .wave-layer { animation-play-state: paused; }
body > .header { position: relative; z-index: 10; }
body > main, body > .footer { position: relative; z-index: 1; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 560px) { .weight-controls { gap: 12px; grid-template-columns: minmax(0, 1fr) 125px; }.measure-controls { gap: 12px; }.number-with-unit .number-unit { padding-inline: 7px; font-size: 11px; } }
@media (forced-colors: active) { input[type="range"]::-webkit-slider-thumb { background: Highlight; border-color: Canvas; }.number-with-unit { border-color: ButtonText; }.ambient-waves { display: none; } }

/* Both platforms open the same decision workspace. */
main.wrap { padding-top: 26px; }
.workspace-heading { margin-bottom: 14px; }
.workspace-heading h1 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: -1px; }
.workspace-heading .button { margin: 0; white-space: nowrap; }
#decision-workspace .demo-banner { margin: 0 0 18px; padding: 10px 14px; }
.demo-detail { margin-left: 9px; }
.decision-grid { margin-top: 16px; }
.decision-placeholder { min-height: 180px; padding: 35px 20px; display: grid; place-items: center; }
.feedback:empty { display: none; }
.edition-note { margin: 24px 0; font-size: 12px; color: var(--muted); }
.footer { margin-top: 24px; padding-block: 18px; }
[data-platform="desktop"] .browser-only { display: none; }
.provenance > summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
@media (max-width: 560px) { main.wrap { padding-top: 18px; }.workspace-heading h1 { font-size: 25px; }.workspace-heading .button { padding-inline: 12px; font-size: 12px; }.demo-detail { display: block; margin: 3px 0 0; } }

/* Conditions, calculated choices and questions remain visible together on wide screens. */
.wrap { max-width: 1600px; padding-inline: 30px; }
.decision-grid { grid-template-columns: minmax(250px, .88fr) minmax(360px, 1.32fr) minmax(280px, 1fr); gap: 16px; }
.decision-grid > .panel, .browser-ai-notice { padding: 20px; }
.decision-grid h2 { font-size: 20px; }
.conditions-title { margin: 0 0 16px; }
.decision-goal { margin-bottom: 16px; }
.decision-goal > label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
#decision-goal { min-height: 76px; margin-bottom: 8px; font-size: 14px; resize: vertical; }
#ai-options-generate { width: 100%; min-height: 40px; }
#ai-options-notice { margin-block: 8px; font-size: 11px; }
#scenario-title { font-size: 19px; }
.decision-preferences .criteria-heading h3 { font-size: 15px; margin-block: 0; }
.decision-preferences .criteria-heading .text-button { font-size: 11px; }
.decision-preferences .criterion-control { padding: 9px 10px; margin-block: 7px; }
.decision-preferences .criterion-title { margin-bottom: 5px; gap: 2px; }
.decision-preferences .criterion-title label { font-size: 13px; }
.decision-preferences .criterion-title .hint { font-size: 10px; }
.decision-preferences .priority-choice, .decision-preferences .constraint-controls select { min-height: 36px; padding-block: 6px; font-size: 12px; }
.decision-preferences #spending-controls { margin-block: 12px; }
.decision-preferences #spending-controls .constraint-controls { padding: 10px; gap: 7px; }
.decision-preferences .measure-controls { grid-template-columns: minmax(0, 1fr) minmax(95px, .85fr); gap: 8px; }
.decision-preferences .amount-hint { margin-top: 3px; font-size: 11px; }
.decision-preferences .extra-limits { margin-block: 12px; padding-inline: 10px; }
.decision-preferences .extra-limits > summary { min-height: 40px; padding-block: 9px; font-size: 12px; }
.decision-preferences #decision-submit { margin-top: 12px; min-height: 42px; font-size: 13px; }
.decision-source-picker { border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 14px; }
.compact-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.compact-heading h3 { margin: 0; font-size: 14px; }
.compact-heading .text-button { font-size: 11px; }
#decision-sources-status { font-size: 11px; margin-block: 6px; }
.decision-source-list { display: grid; gap: 2px; max-height: 180px; overflow: auto; }
.compact-source { min-width: 0; padding-block: 5px; margin: 0; font-size: 12px; gap: 8px; }
.compact-source span { min-width: 0; overflow-wrap: anywhere; }
.compact-source-copy { display: grid; gap: 2px; }
.compact-source-badge { color: var(--accent-ink); font-size: 10px; font-weight: 600; }
.compact-source input { flex: 0 0 auto; width: 17px; height: 17px; }
#decision-ai-slot { min-width: 0; }
.browser-ai-notice h2 { margin-top: 0; }
.browser-ai-notice .button { margin-bottom: 0; }
.ai-options-panel { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.ai-options-panel > h3 { font-size: 18px; margin-block: 0 6px; }
.ai-options-panel > .hint { margin-block: 0 12px; }
.ai-option-card { border: 1px solid var(--line); border-left: 3px solid var(--lamp-gold); border-radius: 12px; padding: 16px; margin-top: 12px; background: var(--surface-soft); }
.ai-option-card h4 { margin: 0 0 8px; font-size: 16px; }
.ai-option-card h5 { margin: 14px 0 4px; font-size: 12px; }
.ai-option-card p, .ai-option-card ul, .ai-options-overview { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-option-card ul { margin-block: 4px; padding-left: 18px; }
.ai-options-context { font-size: 11px; margin-top: 8px; }
.ai-options-context summary { color: var(--accent-ink); cursor: pointer; }
.ai-options-context pre { max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; }
@media (max-width: 1199px) { .decision-grid { grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); }#decision-ai-slot { grid-column: 1 / -1; }.wrap { padding-inline: 24px; } }
@media (max-width: 800px) { .decision-grid { grid-template-columns: minmax(0, 1fr); }#decision-ai-slot { grid-column: auto; }.decision-output { min-height: 0; }.decision-placeholder { min-height: 100px; padding-block: 20px; } }
@media (max-width: 560px) { .wrap { padding-inline: 16px; }.decision-grid > .panel, .browser-ai-notice { padding: 18px; }.decision-preferences .priority-choice, .decision-preferences .constraint-controls select, #decision-goal { font-size: 16px; }.decision-preferences .measure-controls { grid-template-columns: minmax(0, 1fr) minmax(105px, .85fr); } }
