/* Colour tokens, the two themes (light and dark), the slider and the rem scale steps.
   The planner shares the landing page's design system: translucent glass panes with a
   gradient hairline and a faint grain, soft colour glows behind, Inter throughout and
   JetBrains Mono for the small labels.
   The visitor picks Light, Dark or Match device; html[data-theme] always carries the
   resolved one, set before first paint by the inline script in planner.html and kept up
   to date by applyTheme() in views/chrome.js. */

/* LIGHT: white ground, black ink, the brand orange #FD6703 on the main button (with black
   text, which reads at 7:1 on it) and a deeper orange for orange TEXT, which needs 4.5:1 on
   white and #FD6703 only manages 2.9:1. */
:root,:root[data-theme="light"]{
  --ground:#ffffff; --paper:#ffffff; --on-ink:#ffffff;
  --surface:color-mix(in srgb,var(--paper) 66%,transparent); --surface-2:color-mix(in srgb,var(--ink) 6%,transparent);
  --ink:#111827; --ink-2:#374151; --muted:#4b5563; --line:color-mix(in srgb,var(--ink) 12%,transparent);
  --accent:#c2410c; --accent-hover:#9a3412; --accent-ink:#ffffff; --accent-soft:color-mix(in srgb,var(--accent) 10%,transparent);
  --cta:#fd6703; --cta-hover:#ea5f00; --cta-ink:#111827;
  --good:#15803d; --good-soft:rgba(21,128,61,.11); --bad:#b91c1c; --bad-soft:rgba(185,28,28,.09);
  --sun:#a16207; --sun-soft:rgba(202,138,4,.14); --focus:var(--accent);
  /* Glass panes (cards, the rail, segmented controls): a translucent fill under a grain, framed
     by a gradient hairline that runs from --rim-a through --rim to --rim-b. */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  --pane:color-mix(in srgb,#ffffff 60%,transparent); --pane-strong:color-mix(in srgb,#ffffff 82%,transparent);
  --rim-a:color-mix(in srgb,#ffffff 95%,transparent); --rim-b:color-mix(in srgb,#fd6703 25%,transparent); --rim:#e5e7eb;
  --field:#ffffff; --field-edge:#d1d5db; --shadow-tint:#4b2a3f;
  /* The glows behind the page, the faint icon grid on the budgets page, and the rail's glider. */
  --glow-1:#febed9; --glow-2:#fd6703; --glow-3:#f3e8ff; --glow-strength:28%;
  --grid-icon:color-mix(in srgb,#111827 8%,transparent);
  --glide:#fd6703; --glide-text:#c2410c; --glide-track:color-mix(in srgb,#111827 14%,transparent);
  /* Both globes: a white ocean, orange land, black grid, rim and pin. */
  /* Chart slices, in order: the landing page's palette (orange, pink, purple, then supporting
     tones), grey last. */
  --chart-1:#fd6703; --chart-2:#ec4899; --chart-3:#a855f7; --chart-4:#f59e0b; --chart-5:#0ea5e9; --chart-6:#10b981; --chart-7:#f9a8d4; --chart-8:#9ca3af;
  /* Housing statuses: one clear colour each, so a list of places reads at a glance. */
  --st-shortlist:#2563eb; --st-contacted:#7c3aed; --st-viewing:#d97706; --st-viewed:#0891b2; --st-offer:#16a34a; --st-rejected:#dc2626;
  /* The globe, "lit" (chosen 2026-10-11): the land shades from --globe-land-lit at the top left to
     --globe-land, with a stronger sphere shade, so it reads as a lit object rather than flat colour. */
  --globe-land-lit:#ffc48f; --globe-line-alpha:.55; --globe-line-width:.5; --globe-shade:1.8;
  --globe-ocean:#ffffff; --globe-land:#b8400a; --globe-line:#ffffff; --globe-grid:#111827; --globe-pin:#111827; --globe-rim:rgba(17,24,39,.28);
  --display:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; --body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
  --e-out:cubic-bezier(.16,1,.3,1); --e-soft:cubic-bezier(.22,.61,.36,1); --e-pen:cubic-bezier(.37,.01,.2,1);
  --blur:blur(1.625rem) saturate(118%);
  color-scheme:light;
}

/* DARK: near-black ground, white ink, translucent dark glass, a white main button with black
   text, and sky blue for accents, like the landing page's dark theme. */
:root[data-theme="dark"]{
  --ground:#050608; --paper:#14171d; --on-ink:#050608;
  --ink:#f8fafc; --ink-2:#cbd5e1; --muted:#9aa3ae; --line:color-mix(in srgb,var(--ink) 13%,transparent);
  --accent:#7dd3fc; --accent-hover:#bae6fd; --accent-ink:#0b1220;
  --cta:#f4f4f5; --cta-hover:#ffffff; --cta-ink:#18181b;
  --good:#34d399; --good-soft:rgba(52,211,153,.14); --bad:#f87171; --bad-soft:rgba(248,113,113,.13);
  --sun:#fbbf24; --sun-soft:rgba(251,191,36,.14);
  --pane:color-mix(in srgb,#ffffff 4%,transparent); --pane-strong:color-mix(in srgb,#ffffff 8%,transparent);
  --rim-a:color-mix(in srgb,#ffffff 22%,transparent); --rim-b:color-mix(in srgb,#ffffff 4%,transparent); --rim:color-mix(in srgb,#ffffff 12%,transparent);
  --field:#0f1318; --field-edge:color-mix(in srgb,#ffffff 16%,transparent); --shadow-tint:#000000;
  --glow-1:#0ea5e9; --glow-2:#6366f1; --glow-3:#10b981; --glow-strength:22%;
  --grid-icon:color-mix(in srgb,#ffffff 7%,transparent);
  --glide:#7dd3fc; --glide-text:#7dd3fc; --glide-track:color-mix(in srgb,#ffffff 16%,transparent);
  --chart-1:#38bdf8; --chart-2:#818cf8; --chart-3:#34d399; --chart-4:#e879f9; --chart-5:#fbbf24; --chart-6:#fb7185; --chart-7:#a3e635; --chart-8:#94a3b8;
  --st-shortlist:#60a5fa; --st-contacted:#a78bfa; --st-viewing:#fbbf24; --st-viewed:#22d3ee; --st-offer:#4ade80; --st-rejected:#f87171;
  --globe-land-lit:#7fd0f3; --globe-shade:1.5;
  --globe-ocean:#0b1a26; --globe-land:#123f58; --globe-line:#0b1a26; --globe-grid:#7dd3fc; --globe-pin:#f87171; --globe-rim:color-mix(in srgb,var(--paper) 20%,transparent);
  color-scheme:dark;
}

/* Sliders: the capsule style, everywhere (the visitor no longer picks one). */
input[type="range"]{-webkit-appearance:none;appearance:none;height:1.25rem;background:transparent;cursor:pointer}
input[type="range"]:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:99px}
input[type="range"]::-webkit-slider-runnable-track{height:.75rem;border-radius:99px;border:1px solid var(--line);background:linear-gradient(to right,color-mix(in srgb,var(--accent) 75%,var(--paper)) var(--p,0%),color-mix(in srgb,var(--ink) 9%,transparent) var(--p,0%))}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.875rem;height:1.25rem;margin-top:-.3125rem;border-radius:.4375rem;background:var(--paper);border:1px solid var(--line);box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 22%,transparent)}
input[type="range"]::-moz-range-track{height:.75rem;border-radius:99px;border:1px solid var(--line);background:color-mix(in srgb,var(--ink) 9%,transparent)}
input[type="range"]::-moz-range-progress{height:.75rem;border-radius:99px;background:color-mix(in srgb,var(--accent) 75%,var(--paper))}
input[type="range"]::-moz-range-thumb{width:.875rem;height:1.25rem;border-radius:.4375rem;background:var(--paper);border:1px solid var(--line)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
/* Large monitors: every size is in rem, so a bigger root size scales the whole layout in proportion
   to the screen instead of leaving empty space. Steps match common resolutions at 100% scaling. */
@media (min-width:1800px) and (min-height:1000px){html{font-size:112.5%}}
@media (min-width:2200px) and (min-height:1250px){html{font-size:125%}}
@media (min-width:2900px) and (min-height:1650px){html{font-size:150%}}
@media (min-width:3500px) and (min-height:1950px){html{font-size:175%}}
body{background:var(--ground);color:var(--ink);font-family:var(--body);font-size:.875rem;line-height:1.5;margin:0;-webkit-font-smoothing:antialiased;font-feature-settings:"kern" 1}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;letter-spacing:-.02em}
input,select,button,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.num{font-variant-numeric:tabular-nums}
.ui-icon{width:1.25rem;height:1.25rem;flex:none;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
