/* Decision Desk — neumorphism UI (after the "split." brand sheet).
   Surface E9EDF0 / E6E9EF · accents FF7272 (cost, urgent), 489CC1 (action), 21A87D (gain).
   Raised = light from top-left (#FFFFFF) + shade bottom-right (#D3DBE6). Pressed = the same, inset.
   Type: Gilroy in the reference (commercial) → Urbanist as the free stand-in. */
:root {
  color-scheme: light;
  --bg: #E9EDF0;
  --surface: #E6E9EF;
  --light: #FFFFFF;
  --shade: #D3DBE6;
  --shade-deep: #C5CEDB;
  --ink: #1B1E24;
  --ink-soft: #4A5160;
  --ink-muted: #7B8494;
  --ink-faint: #A3ABB8;
  --red: #FF7272;
  --red-ink: #D9474A;
  --blue: #489CC1;
  --blue-ink: #2F7FA3;
  --green: #21A87D;
  --green-ink: #178562;
  --amber-ink: #B7791F;
  --violet-ink: #7A6BB5;

  --raise-lg: -20px -20px 40px var(--light), 20px 20px 40px var(--shade);
  --raise: -10px -10px 22px var(--light), 10px 10px 22px var(--shade);
  --raise-sm: -5px -5px 12px var(--light), 5px 5px 12px var(--shade);
  --raise-xs: -3px -3px 7px var(--light), 3px 3px 7px var(--shade);
  --press: inset -4px -4px 9px var(--light), inset 4px 4px 9px var(--shade);
  --press-sm: inset -2px -2px 5px var(--light), inset 2px 2px 5px var(--shade);
  --edge: inset 1px 1px 1px rgba(255,255,255,.6);

  --r-xl: 30px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --sans: 'Urbanist', 'Gilroy', ui-sans-serif, system-ui, sans-serif;
  --display: 'Urbanist', 'Gilroy', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Urbanist', 'Gilroy', ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; font-weight: 500; font-variant-numeric: tabular-nums; }
::selection { background: rgba(72,156,193,.22); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button { font: inherit; cursor: pointer; color: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───────── Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(233,237,240,.88); backdrop-filter: blur(10px); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 20px; max-width: 1140px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-tile { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--bg); box-shadow: var(--raise-sm), var(--edge); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo-text { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; line-height: 1.35; }
.teal { color: var(--blue); }
.divider { display: none; }
#pillar { display: none; }
.resort-name { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.role-label { font-size: 11px; letter-spacing: .08em; color: var(--ink-muted); }
.lang, .seg { display: inline-flex; gap: 2px; border-radius: 14px; padding: 4px; background: var(--bg); box-shadow: var(--press-sm); }
.lang button, .seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); transition: box-shadow .2s, color .2s; }
.lang button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--raise-xs); }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 36px 20px 80px; }

/* ───────── Badges: soft pills, coloured text + dot */
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; background: var(--bg); color: var(--fg, var(--ink-soft)); box-shadow: var(--raise-xs); }
.badge.gray { --fg: var(--ink-muted); }
.badge.navy { --fg: var(--ink); }
.badge.teal, .badge.blue { --fg: var(--blue-ink); }
.badge.green { --fg: var(--green-ink); }
.badge.amber { --fg: var(--amber-ink); }
.badge.red { --fg: var(--red-ink); }
.badge.violet { --fg: var(--violet-ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge.red .dot { background: var(--red); } .badge.green .dot { background: var(--green); } .badge.blue .dot, .badge.teal .dot { background: var(--blue); }

/* ───────── Buttons: raised, press on click */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; height: 42px; padding: 0 18px; border-radius: 14px; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--ink); box-shadow: var(--raise-sm), var(--edge); transition: box-shadow .18s, transform .18s, color .18s; }
.btn:hover { color: var(--blue-ink); }
.btn:active { box-shadow: var(--press-sm); transform: translateY(1px); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn.primary, .btn.tealbtn { background: var(--blue); color: #fff; box-shadow: -6px -6px 14px var(--light), 6px 6px 14px rgba(72,156,193,.45); }
.btn.primary:hover, .btn.tealbtn:hover { color: #fff; background: #3F92B7; }
.btn.tealbtn:active { box-shadow: inset 3px 3px 8px rgba(0,0,0,.18); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-soft); }
.btn.ghost:hover { box-shadow: var(--raise-xs); color: var(--ink); }
.btn:disabled { cursor: not-allowed; color: var(--ink-faint); box-shadow: var(--press-sm); }

/* ───────── Header */
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 10px; }
.date { color: var(--ink-muted); letter-spacing: .12em; }
h1 { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0; text-transform: lowercase; }
h1::after { content: '.'; color: var(--blue); }
.lede { margin: 14px 0 0; color: var(--ink-soft); max-width: 640px; font-size: 15px; letter-spacing: .01em; }
.page-head { margin-bottom: 30px; }

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.tile { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--raise), var(--edge); padding: 20px 22px; min-width: 0; }
.tile .k { font-size: 11px; font-weight: 700; text-transform: lowercase; letter-spacing: .14em; color: var(--ink-muted); }
.tile .v { font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin-top: 6px; line-height: 1.15; }
.tile .s { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.tile .s.warn { color: var(--red-ink); }
.bar { height: 10px; border-radius: 99px; background: var(--bg); box-shadow: var(--press-sm); margin-top: 12px; overflow: hidden; padding: 2px; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.hitl { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: var(--r-md); box-shadow: var(--press); padding: 14px 18px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 30px; }
.hitl svg { flex: none; }
.hitl svg path { stroke: var(--green); }

/* ───────── Summary + tabs + chips */
.strip { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; font-size: 13px; color: var(--ink-muted); margin-bottom: 18px; letter-spacing: .02em; }
.strip b { font-weight: 800; font-size: 17px; color: var(--ink); }
.strip b[style] { color: var(--red) !important; }
.strip .pos { color: var(--green); }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding: 8px 6px 14px; margin-left: -6px; }
.tabs button { flex: none; border: 0; background: var(--bg); border-radius: 14px; padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--ink-muted); box-shadow: var(--raise-sm); text-transform: lowercase; transition: box-shadow .2s, color .2s; }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: var(--press-sm); }
.tabs .count { margin-left: 8px; font-size: 12px; color: var(--blue-ink); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--ink-soft); box-shadow: var(--raise-xs); transition: box-shadow .2s, color .2s; }
.chip[aria-pressed="true"] { box-shadow: var(--press-sm); color: var(--blue-ink); }
.chip .n { margin-left: 6px; color: var(--ink-faint); }

/* ───────── Decision card */
.stack { display: grid; gap: 30px; }
.card { background: var(--bg); border-radius: var(--r-xl); box-shadow: var(--raise-lg), var(--edge); animation: fadein .3s ease; position: relative; }
.card-head { padding: 24px 26px 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.deadline { font-size: 12px; color: var(--ink-muted); letter-spacing: .02em; }
.rank { font-size: 12px; font-weight: 800; color: var(--ink-faint); margin-left: auto; }
.card h3 { font-size: 22px; font-weight: 800; letter-spacing: .005em; margin: 0; line-height: 1.25; }
.card-body { padding: 10px 26px 0; }
.situation { margin: 0; color: var(--ink-soft); font-size: 15px; }
.metrics { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.metric { background: var(--bg); border-radius: var(--r-sm); box-shadow: var(--press-sm); padding: 10px 14px; min-width: 0; }
.metric .ml { font-size: 11px; color: var(--ink-muted); letter-spacing: .04em; }
.metric .mv { font-size: 16px; font-weight: 800; }
.why { font-size: 14px; color: var(--ink-soft); padding: 0; margin: 0 0 14px; }
.why b { color: var(--ink); font-weight: 800; }
.options { display: grid; gap: 14px; padding: 6px 26px 22px; }
.option { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; border-radius: var(--r-md); padding: 14px 16px; background: var(--bg); box-shadow: var(--press-sm); }
.option.suggested { box-shadow: var(--raise-sm), var(--edge), inset 0 0 0 1.5px rgba(72,156,193,.35); }
.option .ol { font-weight: 800; font-size: 14.5px; }
.option .od { font-size: 13px; color: var(--ink-muted); margin-top: 3px; }
.option .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.impact { font-weight: 800; font-size: 17px; text-align: right; white-space: nowrap; }
.impact.pos { color: var(--green); }
.impact.neg { color: var(--red); }
.impact.zero { color: var(--ink-faint); font-weight: 600; font-size: 12.5px; }
.impact small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-faint); text-transform: lowercase; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 26px 22px; border-top: 1px solid rgba(255,255,255,.8); box-shadow: inset 0 1px 0 var(--shade); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.source { font-size: 12px; color: var(--ink-muted); margin-right: auto; }
.snooze { position: relative; }
.snooze summary { list-style: none; }
.snooze summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 20; background: var(--bg); border-radius: var(--r-md); box-shadow: var(--raise), var(--edge); padding: 8px; min-width: 190px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.menu button:hover { box-shadow: var(--press-sm); color: var(--blue-ink); }

.more { display: flex; justify-content: center; margin-top: 10px; }

.empty { border-radius: var(--r-lg); box-shadow: var(--press); padding: 40px 18px; text-align: center; }
.empty p { margin: 0; }
.empty .t { font-weight: 800; font-size: 17px; text-transform: lowercase; }
.empty .t::after { content: '.'; color: var(--blue); }
.empty .x { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }

/* ───────── Snoozed + log rows */
.row { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--raise), var(--edge); padding: 18px 22px; display: grid; gap: 10px; animation: fadein .25s ease; }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row-title { font-weight: 800; font-size: 15.5px; }
.row .time { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.row .choice { font-size: 14px; color: var(--ink-soft); }
.row .plan { font-size: 13px; color: var(--ink-soft); border-radius: var(--r-sm); box-shadow: var(--press-sm); padding: 10px 14px; }
.row .plan b { font-weight: 800; color: var(--ink); }
.row .impact { font-size: 15px; text-align: left; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-actions .lbl { font-size: 12.5px; color: var(--ink-muted); margin-right: 2px; }
.log-intro { color: var(--ink-muted); font-size: 14px; margin: 0 0 22px; }

.foot-note { margin-top: 44px; font-size: 12px; letter-spacing: .06em; color: var(--ink-faint); text-align: center; }

/* ───────── Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; background: var(--bg); color: var(--ink); border-radius: var(--r-md); padding: 12px 12px 12px 18px; font-size: 14px; font-weight: 700; box-shadow: -8px -8px 20px var(--light), 10px 10px 26px var(--shade-deep), var(--edge); animation: fadein .2s ease; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast button { border: 0; background: var(--bg); color: var(--blue-ink); border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 800; box-shadow: var(--raise-xs); }
.toast button:active { box-shadow: var(--press-sm); }

/* ───────── Rule line, notice */
.ruleline { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 12.5px; color: var(--ink-muted); margin: 0 0 6px; }
.ruleline.sub { margin-bottom: 12px; }
.ruleline b { color: var(--ink-soft); font-weight: 800; }
.linkbtn { border: 0; background: var(--bg); padding: 3px 10px; border-radius: 999px; color: var(--blue-ink); font-size: 12px; font-weight: 800; box-shadow: var(--raise-xs); }
.linkbtn:active { box-shadow: var(--press-sm); }
.muted { color: var(--ink-muted); }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-radius: var(--r-md); box-shadow: var(--press); color: var(--ink-soft); padding: 12px 16px; font-size: 13.5px; margin-bottom: 26px; }
.notice > span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 1px; }

/* ───────── Settings */
.setnav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 30px; font-size: 14px; }
.setnav a { color: var(--ink-soft); font-weight: 800; text-decoration: none; text-transform: lowercase; }
.setnav a::after { content: '.'; color: var(--blue); }
.setnav a:hover { color: var(--blue-ink); }
.setactions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.filebtn { cursor: pointer; }
.setsec { background: var(--bg); border-radius: var(--r-xl); box-shadow: var(--raise-lg), var(--edge); padding: 26px 28px; margin-bottom: 34px; scroll-margin-top: 90px; }
.setsec h2 { font-size: 24px; font-weight: 800; letter-spacing: .06em; margin: 0; text-transform: lowercase; }
.setsec h2::after { content: '.'; color: var(--blue); }
.sethelp { margin: 8px 0 18px; font-size: 13.5px; color: var(--ink-muted); max-width: 760px; }
.setlist { display: grid; gap: 14px; }
.setrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 18px; border-radius: var(--r-md); box-shadow: var(--raise-sm), var(--edge); margin-bottom: 14px; scroll-margin-top: 100px; }
.setlist .setrow { margin-bottom: 0; }
.setrow.off { box-shadow: var(--press-sm); }
.setrow.off .settitle, .setrow.off .setsub { opacity: .55; }
.setrow.focus { box-shadow: var(--raise-sm), inset 0 0 0 2px rgba(72,156,193,.55); }
.setmain { min-width: 0; flex: 1 1 320px; }
.settitle { font-weight: 800; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.setsub { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.setgroup { margin-top: 18px; }
.setgroup-h { padding: 4px 0 14px; }
.inputs { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 12px; }
.num { display: grid; gap: 6px; font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.numwrap { display: inline-flex; align-items: center; gap: 8px; }
.num input { width: 110px; height: 40px; border: 0; border-radius: 12px; padding: 0 12px; font-family: var(--sans); font-weight: 800; font-size: 15px; color: var(--ink); background: var(--bg); box-shadow: var(--press-sm); }
.num input:focus { outline: none; box-shadow: var(--press-sm), 0 0 0 2px rgba(72,156,193,.5); }
.num em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
.num .hint { font-size: 12px; font-weight: 700; color: var(--blue-ink); border-radius: 999px; padding: 3px 10px; box-shadow: var(--raise-xs); white-space: nowrap; }
.tgl { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer; user-select: none; }
.tgl input { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: 99px; background: var(--bg); box-shadow: var(--press-sm); position: relative; cursor: pointer; margin: 0; transition: background .2s; flex: none; }
.tgl input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: var(--raise-xs); transition: transform .2s, background .2s; }
.tgl input:checked { background: rgba(33,168,125,.18); }
.tgl input:checked::after { transform: translateX(20px); background: var(--green); box-shadow: 2px 2px 5px rgba(23,133,98,.35); }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 22px; }
.area { display: grid; gap: 10px; border-radius: var(--r-md); box-shadow: var(--raise-sm), var(--edge); padding: 16px; justify-items: start; }

/* ───────── Responsive */
@media (max-width: 1040px) { .resort-name { display: none; } }
@media (max-width: 860px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .topbar-inner { gap: 8px; height: 64px; padding: 0 16px; }
  .topbar-right { gap: 8px; }
  .logo-text, .role-label { display: none; }
  .logo-tile { height: 38px; padding: 0 10px; font-size: 16px; }
  .lang button { padding: 5px 8px; font-size: 12px; }
  #reset-btn { padding: 0; width: 36px; font-size: 0; box-shadow: var(--raise-xs); }
  #reset-btn::before { content: '↺'; font-size: 17px; }
  .wrap { padding: 26px 16px 64px; }
  h1 { font-size: 30px; }
  .glance { gap: 14px; }
  .tile { padding: 16px; }
  .tile .v { font-size: 24px; }
  .card-head, .card-body { padding-left: 18px; padding-right: 18px; }
  .options { padding: 6px 18px 18px; }
  .option { grid-template-columns: minmax(0, 1fr) auto; }
  .option .btn { grid-column: 1 / -1; width: 100%; }
  .card-foot { padding: 14px 18px 18px; }
  .source { width: 100%; }
  .setsec { padding: 20px 16px; }
  .setactions { margin-left: 0; }
}

/* ═════════ Colour layer — same neumorphic surfaces, more colour for meaning ═════════
   Each area has its own colour (--c). Tints are mixed into the soft surface so the
   raised/pressed shadows still read. Green = gain, coral = cost/urgent, blue = action. */
:root { --amber: #F2A93B; --violet: #8E7CE0; --cyan: #1FB5C9; --pink: #E46BA6; --indigo: #5C6BC0; --orange: #F2994A; }
.cat-weather { --c: #F25F5C; } .cat-kitchen { --c: var(--orange); } .cat-rooms { --c: var(--blue); } .cat-activities { --c: var(--cyan); }
.cat-staff { --c: var(--violet); } .cat-maintenance { --c: var(--indigo); } .cat-guests { --c: var(--pink); } .cat-money { --c: var(--green); }
.tint { background: color-mix(in srgb, var(--c) 14%, var(--bg)); }

/* Badges become soft filled pills */
.badge { background: color-mix(in srgb, var(--fg, var(--ink-soft)) 12%, var(--bg)); box-shadow: var(--raise-xs); }
.badge.gray { background: var(--bg); }
.badge.cat { --fg: color-mix(in srgb, var(--c) 78%, #000); background: color-mix(in srgb, var(--c) 16%, var(--bg)); gap: 6px; }
.badge.urg-now { background: var(--red); color: #fff; box-shadow: -3px -3px 7px var(--light), 3px 3px 8px rgba(255,114,114,.45); }
.badge.urg-today { --fg: #9A6412; background: color-mix(in srgb, var(--amber) 26%, var(--bg)); }
.badge.urg-week { --fg: var(--ink-soft); background: color-mix(in srgb, var(--indigo) 10%, var(--bg)); }

/* How it works: three coloured steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0 0 30px; }
.step { display: flex; gap: 12px; align-items: center; border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--press-sm); background: color-mix(in srgb, var(--c) 8%, var(--bg)); }
.step-1 { --c: var(--blue); } .step-2 { --c: var(--green); } .step-3 { --c: var(--violet); }
.step .num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; box-shadow: 3px 3px 8px color-mix(in srgb, var(--c) 45%, transparent), -3px -3px 7px var(--light); }
.step b { display: block; font-weight: 800; color: color-mix(in srgb, var(--c) 70%, #000); }
.step small { display: block; font-size: 12.5px; color: var(--ink-muted); }

/* Glance tiles */
.tile.t-blue { --c: var(--blue); } .tile.t-cyan { --c: var(--cyan); } .tile.t-red { --c: #F25F5C; } .tile.t-green { --c: var(--green); }
.tile { border-top: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, var(--bg)) 0%, var(--bg) 55%); }
.tile .k { display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--c) 70%, #000); }
.ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 15px; background: color-mix(in srgb, var(--c) 18%, var(--bg)); box-shadow: var(--raise-xs); }
.tile .v .in { color: var(--green); } .tile .v .out { color: var(--ink-muted); }
.tile.t-green .v { color: var(--green-ink); }
.bar > i { background: linear-gradient(90deg, var(--cyan), var(--blue)); }

/* Summary strip: each number in its own colour */
.strip span:nth-child(1) b { color: var(--blue-ink); }
.strip span:nth-child(2) b { color: var(--red) !important; }
.strip span:nth-child(3) b { color: #B7791F; }

/* Tabs and filter chips */
.tabs button[aria-selected="true"] { color: var(--blue-ink); background: color-mix(in srgb, var(--blue) 10%, var(--bg)); }
.chip[class*="cat-"] { color: color-mix(in srgb, var(--c, var(--ink)) 75%, #000); }
.chip.cat-all { color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c, var(--blue)) 18%, var(--bg)); color: color-mix(in srgb, var(--c, var(--blue)) 75%, #000); }

/* Decision card: area colour stripe, tinted head, icon tile */
.card { overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--bg)) 0px, var(--bg) 190px); }
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.card.urg-now { box-shadow: var(--raise-lg), var(--edge), inset 0 0 0 2px rgba(255,114,114,.5); }
.titlerow { display: flex; gap: 14px; align-items: flex-start; }
.cat-tile { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; background: color-mix(in srgb, var(--c) 20%, var(--bg)); box-shadow: var(--raise-sm), var(--edge); }
.titlerow .deadline { margin-top: 4px; font-weight: 700; color: color-mix(in srgb, var(--c) 70%, #000); }
.card.urg-now .titlerow .deadline { color: var(--red-ink); }
.metric { background: color-mix(in srgb, var(--c) 6%, var(--bg)); }
.metric .mv { color: color-mix(in srgb, var(--c) 60%, #000); }
.why { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-sm); padding: 12px 14px; background: color-mix(in srgb, var(--amber) 14%, var(--bg)); box-shadow: var(--press-sm); color: #5E4A1F; }
.why b { color: #7A5410; }
.ruleline { border-radius: 10px; padding: 8px 12px; background: color-mix(in srgb, var(--blue) 8%, var(--bg)); margin-bottom: 8px; }
.ruleline.sub { background: color-mix(in srgb, var(--violet) 7%, var(--bg)); }
.opt-title { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin: 6px 0 -2px; }
.option.suggested { background: color-mix(in srgb, var(--blue) 12%, var(--bg)); box-shadow: var(--raise-sm), var(--edge), inset 0 0 0 2px rgba(72,156,193,.55); }
.option .tags .badge.teal { background: var(--blue); color: #fff; }
.impact { border-radius: 12px; padding: 6px 12px; min-width: 112px; }
.impact.pos { background: color-mix(in srgb, var(--green) 15%, var(--bg)); color: var(--green-ink); box-shadow: var(--press-sm); }
.impact.neg { background: color-mix(in srgb, var(--red) 15%, var(--bg)); color: var(--red-ink); box-shadow: var(--press-sm); }
.impact small { color: inherit; opacity: .8; margin-bottom: 1px; }
.impact.zero { min-width: 0; }
.card-foot { background: color-mix(in srgb, var(--c) 5%, var(--bg)); }

/* Log + snoozed rows: area stripe */
.row { position: relative; overflow: hidden; padding-left: 28px; }
.row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c, var(--blue)); }
.row .impact { min-width: 0; padding: 4px 10px; }
.row-actions .badge.green { background: var(--green); color: #fff; }
.row-actions .badge.red { background: var(--red); color: #fff; }
.row-actions .badge.teal { background: var(--blue); color: #fff; }
.row-actions [data-result="as_planned"] { color: var(--blue-ink); }
.row-actions [data-result="better"] { color: var(--green-ink); }
.row-actions [data-result="worse"] { color: var(--red-ink); }

/* Settings: coloured modes and states */
.seg button[data-mode="act"][aria-pressed="true"] { background: var(--green); color: #fff; }
.seg button[data-mode="read"][aria-pressed="true"] { background: var(--blue); color: #fff; }
.seg button[data-mode="off"][aria-pressed="true"] { background: color-mix(in srgb, var(--red) 25%, var(--bg)); color: var(--red-ink); }
.setrow .badge.teal { background: color-mix(in srgb, var(--green) 18%, var(--bg)); color: var(--green-ink); }
.setgroup-h .badge.cat { font-size: 13px; padding: 6px 12px; }
.area { background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--blue)) 10%, var(--bg)) 0%, var(--bg) 60%); }
.setnav a:nth-of-type(1) { color: var(--green-ink); } .setnav a:nth-of-type(2) { color: var(--blue-ink); }
.setnav a:nth-of-type(3) { color: #B7791F; } .setnav a:nth-of-type(4) { color: var(--violet-ink); }

@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 560px) {
  .cat-tile { width: 44px; height: 44px; font-size: 22px; border-radius: 14px; }
  .impact { min-width: 0; }
}
