/* SnowBuddy YYC — styles */
:root {
  --bg: #F3F7FB;
  --surface: #FFFFFF;
  --surface-2: #F7FAFD;
  --ink: #0B1B2B;
  --ink-2: #44586C;
  --ink-3: #66798D;
  --line: #DFE7EF;
  --line-2: #C6D3E0;
  --navy: #0A2342;
  --navy-2: #13335E;
  --blue: #1F56D6;
  --blue-600: #1846B4;
  --blue-50: #EAF1FF;
  --ice: #BFE3FF;
  --coral: #D63D25;
  --coral-600: #B52F19;
  --coral-50: #FDECE8;
  --amber: #9A5500;
  --amber-500: #E39B0B;
  --amber-50: #FEF3D6;
  --green: #04704F;
  --green-500: #0E9F6E;
  --green-50: #DDF6EC;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 35, 66, .06), 0 1px 3px rgba(10, 35, 66, .08);
  --shadow: 0 12px 32px -14px rgba(10, 35, 66, .28), 0 2px 6px rgba(10, 35, 66, .06);
  --shadow-lg: 0 34px 70px -24px rgba(4, 18, 40, .55), 0 6px 18px rgba(4, 18, 40, .12);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --topbar: 4.25rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 12px); -webkit-text-size-adjust: 100%; }
html.large-text { font-size: 118.75%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: var(--blue-600); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #5B9BFF; outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.center { text-align: center; }
.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--surface); color: var(--ink); padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 1.1rem; border-radius: var(--radius-sm);
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { --b-bg: var(--coral); --b-fg: #fff; --b-bd: var(--coral); box-shadow: 0 6px 16px -8px rgba(214, 61, 37, .7); }
.btn-primary:hover { --b-bg: var(--coral-600); --b-bd: var(--coral-600); color: #fff; box-shadow: 0 10px 20px -8px rgba(214, 61, 37, .7); }
.btn-success { --b-bg: var(--green); --b-fg: #fff; --b-bd: var(--green); }
.btn-success:hover { --b-bg: #035C41; color: #fff; }
.btn-ghost { --b-bg: transparent; --b-bd: var(--line-2); }
.btn-ghost:hover { --b-bg: var(--surface-2); color: var(--ink); }
.btn-light { --b-bg: rgba(255, 255, 255, .1); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .4); backdrop-filter: blur(6px); }
.btn-light:hover { --b-bg: rgba(255, 255, 255, .2); color: #fff; }
.btn-sm { min-height: 2.25rem; padding: 0 .85rem; font-size: .875rem; border-radius: 10px; }
.btn-lg { min-height: 3.4rem; padding: 0 1.5rem; font-size: 1.05rem; border-radius: 14px; }
.btn-lg .i { width: 1.25em; height: 1.25em; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; border: 1.5px solid var(--line-2); background: transparent; color: inherit; transition: background-color .2s, transform .15s; }
.icon-btn:hover { background: rgba(127, 184, 255, .12); }
.icon-btn:active { transform: scale(.94); }
.link-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: .35rem .25rem; color: var(--blue-600); font-weight: 600; font-size: .9rem; border-radius: 8px; }
.link-btn:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 900; height: var(--topbar); background: rgba(7, 26, 51, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background-color .3s, box-shadow .3s; }
.topbar.scrolled { background: rgba(7, 26, 51, .92); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6); }
.topbar-inner { height: 100%; width: min(1320px, 100% - 2rem); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-logo { width: 2.35rem; height: 2.35rem; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-name b { color: var(--ice); font-weight: 800; }
.nav { display: flex; gap: .25rem; margin-left: .5rem; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.topbar .icon-btn { border-color: rgba(255, 255, 255, .25); }
.topbar .icon-btn[aria-pressed="true"] { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.aa { font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1; }
.aa small { font-size: .7em; }
.topbar .btn-ghost { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .3); }
.topbar .btn-ghost:hover { --b-bg: rgba(255, 255, 255, .1); color: #fff; }
.topbar .btn-ghost.is-me::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: #3BE3A2; box-shadow: 0 0 0 3px rgba(59, 227, 162, .25); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(120% 70% at 70% -10%, rgba(127, 184, 255, .33), transparent 60%), radial-gradient(80% 60% at 0% 20%, rgba(31, 86, 214, .35), transparent 70%), linear-gradient(180deg, #06162D 0%, #0A2342 50%, #14407C 100%); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(9rem, 16vw, 13rem); margin-top: calc(var(--topbar) * -1); padding-top: calc(var(--topbar) + clamp(2.5rem, 6vw, 4.5rem)); isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 30% at 50% 100%, rgba(191, 227, 255, .18), transparent 70%); }
.snowfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: min(1240px, 100% - 2.5rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--ice); background: rgba(191, 227, 255, .1); border: 1px solid rgba(191, 227, 255, .22); padding: .35rem .8rem; border-radius: 999px; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.7rem, 5.6vw, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.hero h1 .hl { background: linear-gradient(90deg, #FFFFFF 0%, #BFE3FF 60%, #8FC7FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; left: 2%; right: 4%; bottom: -.12em; height: .14em; border-radius: 99px; background: var(--coral); transform-origin: left; animation: swash 1s .5s var(--ease) both; }
@keyframes swash { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lede { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 36rem; }
.lede strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.5rem 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats dt { margin-top: .35rem; color: var(--ice); font-size: .85rem; font-weight: 500; opacity: .9; }
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 15vw, 220px); z-index: 1; pointer-events: none; }
.sk-mtn-far { fill: #2A5A95; opacity: .55; }
.sk-mtn-snow { fill: #DDEBFA; opacity: .55; }
.sk-city { fill: #0B2748; opacity: .9; }
.sk-snow { fill: var(--bg); }

/* ---------- Clock card ---------- */
.clock-card { position: relative; background: var(--surface); color: var(--ink); border-radius: 26px; padding: 1.4rem 1.4rem 1.1rem; box-shadow: var(--shadow-lg); min-height: 23rem; transition: box-shadow .4s; animation: rise .8s .15s var(--ease) both; }
.clock-card.is-running { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(214, 61, 37, .12); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.clock-skeleton { height: 20rem; border-radius: 16px; background: linear-gradient(90deg, #EEF3F8 0%, #F8FAFC 50%, #EEF3F8 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.clock-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.clock-title { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(14, 159, 110, .5); animation: ping 2s infinite; }
.live-dot.running { background: var(--coral); animation-name: ping-red; }
.live-dot.snowing { background: var(--blue); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(14, 159, 110, .5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(14, 159, 110, 0); } }
@keyframes ping-red { 0% { box-shadow: 0 0 0 0 rgba(214, 61, 37, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(214, 61, 37, 0); } }
.pill { font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 99px; white-space: nowrap; }
.pill-live { background: var(--green-50); color: var(--green); }
.pill-sim { background: var(--amber-50); color: var(--amber); }
.clock-body { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.25rem; align-items: center; margin-top: 1.1rem; }
.ring { position: relative; width: 8.5rem; height: 8.5rem; --p: 1; --ring: var(--blue); }
.ring[data-level="warn"] { --ring: var(--amber-500); }
.ring[data-level="urgent"] { --ring: var(--coral); }
.ring > svg:not(.i) { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #E8EEF5; stroke-width: 10; }
.ring-fill { fill: none; stroke: var(--ring); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: calc(326.73px * (1 - var(--p))); transition: stroke-dashoffset 1s linear, stroke .6s; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-time { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.ring-sub { font-size: .72rem; color: var(--ink-3); margin-top: .3rem; font-weight: 500; }
.ring-clear, .ring-snowing { display: grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green); }
.ring-clear .i { width: 3.2rem; height: 3.2rem; stroke-width: 2.4; }
.ring-snowing { background: var(--blue-50); color: var(--blue); }
.ring-snowing .i { width: 3.4rem; height: 3.4rem; }
.spin { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.clock-text h3 { font-size: 1.35rem; font-weight: 700; }
.clock-text p { margin-top: .45rem; color: var(--ink-2); font-size: .95rem; }
.clock-text strong { color: var(--ink); }
.next-snow { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .6rem .8rem; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: .9rem; }
.wx-now { list-style: none; margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wx-now li { display: flex; align-items: center; gap: .5rem; }
.wx-now .i { color: var(--blue); width: 1.35rem; height: 1.35rem; }
.wx-now span { display: flex; flex-direction: column; font-size: .75rem; color: var(--ink-3); line-height: 1.25; }
.wx-now b { font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.wx-days { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wx-days li { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem .3rem; border-radius: 12px; background: var(--surface-2); font-size: .8rem; }
.wx-days li.has-snow { background: var(--blue-50); }
.wx-days .i { width: 1.4rem; height: 1.4rem; color: var(--ink-2); }
.wx-days .has-snow .i { color: var(--blue); }
.d-name { font-weight: 600; color: var(--ink-2); }
.d-temp { font-weight: 600; font-variant-numeric: tabular-nums; }
.d-temp i { font-style: normal; color: var(--ink-3); font-weight: 500; }
.d-snow { color: var(--ink-3); font-size: .75rem; }
.has-snow .d-snow { color: var(--blue-600); font-weight: 600; }
.clock-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .5rem; margin-top: .9rem; font-size: .8rem; }
.clock-foot .link-btn { white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.board.section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; margin-top: .35rem; letter-spacing: -0.03em; }
.section-sub { margin-top: .6rem; color: var(--ink-2); max-width: 44rem; font-size: 1.02rem; }
.demo-note { display: inline-block; margin-top: .2rem; font-size: .85rem; color: var(--amber); background: var(--amber-50); padding: .1rem .55rem; border-radius: 8px; font-weight: 500; }

/* ---------- Board ---------- */
.board-grid { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 1.25rem; height: clamp(36rem, 78vh, 46rem); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; min-height: 0; }
.list-panel { display: flex; flex-direction: column; }
.map-panel { position: relative; }
#map { position: absolute; inset: 0; background: #E6EDF3; }
.osm-tiles { filter: saturate(.5) brightness(1.04) contrast(.94) hue-rotate(-6deg); }
.toolbar { padding: 1rem 1rem .75rem; border-bottom: 1px solid var(--line); display: grid; gap: .7rem; background: var(--surface); }
.toolbar-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: .25rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; gap: .25rem; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; background: transparent; padding: .55rem .6rem; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.35rem; padding: 0 .4rem; border-radius: 99px; background: var(--line); font-size: .75rem; font-variant-numeric: tabular-nums; }
[data-status="open"][aria-pressed="true"] .count { background: var(--coral); color: #fff; }
[data-status="claimed"][aria-pressed="true"] .count { background: var(--amber-500); color: #fff; }
[data-status="done"][aria-pressed="true"] .count { background: var(--green); color: #fff; }
.search { position: relative; display: block; }
.search .i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input, .select select { width: 100%; height: 2.75rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 0 .9rem 0 2.4rem; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.select select { padding: 0 2rem 0 .8rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2344586C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; font-weight: 500; }
.search input:focus, .select select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 86, 214, .15); }
.vol-banner { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; background: linear-gradient(90deg, var(--blue-50), #F3F8FF); border-bottom: 1px solid #D5E3FB; font-size: .9rem; animation: fadeDown .4s var(--ease); }
.vol-banner p { flex: 1; color: var(--ink-2); line-height: 1.35; }
.vol-banner b { color: var(--ink); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

.req-list { list-style: none; margin: 0; padding: .75rem; overflow-y: auto; flex: 1; display: grid; gap: .65rem; align-content: start; scroll-behavior: smooth; overscroll-behavior: contain; }
.req { --accent: var(--coral); position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: .85rem; padding: .95rem 1rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); cursor: pointer; }
.req::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.req:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.req.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 86, 214, .14), var(--shadow); }
.req-claimed { --accent: var(--amber-500); }
.req-done { --accent: var(--green-500); background: var(--surface-2); }
.req-byme { border-color: #F4C76B; background: linear-gradient(180deg, #FFFCF3, #fff 60%); }
.req.enter { animation: cardIn .5s var(--ease) both; }
.req.enter:nth-child(2) { animation-delay: .04s; } .req.enter:nth-child(3) { animation-delay: .08s; } .req.enter:nth-child(4) { animation-delay: .12s; }
.req.enter:nth-child(5) { animation-delay: .16s; } .req.enter:nth-child(6) { animation-delay: .2s; } .req.enter:nth-child(n+7) { animation-delay: .24s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.req.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(31, 86, 214, .0); transform: scale(.98); } 20% { box-shadow: 0 0 0 6px rgba(31, 86, 214, .22); transform: scale(1.01); } 100% { box-shadow: 0 0 0 0 rgba(31, 86, 214, 0); transform: none; } }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1rem; background: hsl(var(--h, 210) 75% 92%); color: hsl(var(--h, 210) 55% 28%); flex: none; }
.avatar-sm { width: 2rem; height: 2rem; font-size: .75rem; }
.req-body { min-width: 0; }
.req-top { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.req-top h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-right: .15rem; }
.req-name { all: unset; cursor: pointer; border-radius: 4px; }
.req-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.req-name:focus-visible { outline: 3px solid #5B9BFF; outline-offset: 2px; }
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 99px; background: var(--blue-50); color: var(--blue-600); line-height: 1.35; }
.badge .i { width: .9em; height: .9em; }
.badge-priority { background: var(--coral-50); color: var(--coral-600); }
.badge-mine { background: var(--green-50); color: var(--green); }
.badge-angel { background: var(--amber-50); color: var(--amber); }
.req-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; font-size: .85rem; color: var(--ink-3); }
.req-meta .i { width: .95rem; height: .95rem; }
.req-meta b { color: var(--blue-600); font-weight: 600; }
.dot-sep { opacity: .6; }
.req-note { margin-top: .45rem; font-size: .93rem; color: var(--ink-2); line-height: 1.45; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; padding: 0; }
.chips li { font-size: .75rem; padding: .18rem .55rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.chips .chip-est { background: transparent; border-style: dashed; color: var(--ink-3); }
.req-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.status .i { width: 1rem; height: 1rem; }
.s-late { color: var(--amber); }
.s-claimed { color: var(--amber); }
.s-done { color: var(--green); }
.private { width: 100%; padding: .7rem .85rem; border-radius: 12px; background: var(--blue-50); border: 1.5px dashed #A9C4F5; animation: fadeDown .45s var(--ease); }
.private-title { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.private ul { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .3rem; }
.private li { display: flex; gap: .45rem; font-size: .88rem; color: var(--ink); }
.private li .i { margin-top: .2rem; color: var(--blue-600); width: .95rem; height: .95rem; }
.private i { color: var(--ink-3); }
.foot-actions { display: flex; gap: .5rem; margin-left: auto; }
.empty { display: grid; place-items: center; gap: .6rem; padding: 3rem 1.5rem; text-align: center; color: var(--ink-2); }
.empty .i { width: 2.25rem; height: 2.25rem; color: var(--blue); }
.view-toggle { display: none; padding: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }

/* Map */
.map-legend { position: absolute; left: 1rem; top: 1rem; z-index: 500; display: flex; gap: .9rem; flex-wrap: wrap; padding: .5rem .85rem; background: rgba(255, 255, 255, .94); border-radius: 12px; box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 600; color: var(--ink-2); backdrop-filter: blur(6px); }
.map-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.dot-open { background: var(--coral); } .dot-claimed { background: var(--amber-500); } .dot-done { background: var(--green-500); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: .68rem; background: rgba(255, 255, 255, .85) !important; border-radius: 8px 0 0 0; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { width: 2.4rem !important; height: 2.4rem !important; line-height: 2.4rem !important; color: var(--ink) !important; }
.pin-wrap { background: none; border: 0; }
.pin { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--coral); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 14px -4px rgba(10, 35, 66, .55); transition: transform .25s var(--ease); }
.pin .i { width: 55%; height: 55%; stroke-width: 2.4; }
.pin-open::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--coral); animation: pinPulse 2.2s infinite var(--ease); }
@keyframes pinPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.3); opacity: 0; } }
.pin-claimed { background: var(--amber-500); }
.pin-done { background: var(--green-500); border-width: 2px; box-shadow: 0 3px 8px -3px rgba(10, 35, 66, .45); }
.pin-mine { box-shadow: 0 0 0 3px var(--navy), 0 6px 14px -4px rgba(10, 35, 66, .55); }
.pin-home { background: var(--navy); border-color: #fff; }
.is-hot .pin { transform: scale(1.3); z-index: 10; }
.is-new .pin { animation: pinNew 1.2s 3 var(--ease); }
@keyframes pinNew { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 61, 37, .6); } 50% { transform: scale(1.45); box-shadow: 0 0 0 18px rgba(214, 61, 37, 0); } 100% { transform: scale(1); } }
.is-new .pin-done { animation-name: pinNewDone; }
@keyframes pinNewDone { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14, 159, 110, .7); } 50% { transform: scale(1.8); box-shadow: 0 0 0 22px rgba(14, 159, 110, 0); } 100% { transform: scale(1); } }
.privacy { fill: var(--coral); fill-opacity: .1; stroke: var(--coral); stroke-opacity: .25; stroke-width: 1; stroke-dasharray: 3 4; }
.privacy-claimed { fill: var(--amber-500); stroke: var(--amber-500); }
.home-radius { fill: var(--navy); fill-opacity: .04; stroke: var(--navy); stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 6 6; }
.sb-popup .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); padding: 0; }
.sb-popup .leaflet-popup-content { margin: .8rem .9rem; }
.map-pop { display: grid; gap: .2rem; font-size: .85rem; min-width: 11rem; }
.map-pop strong { font-size: 1rem; }
.map-pop span { color: var(--ink-3); }
.map-pop .map-pop-status { font-weight: 700; font-size: .78rem; }
.map-pop .s-open { color: var(--coral-600); } .map-pop .s-claimed { color: var(--amber); } .map-pop .s-done { color: var(--green); }
.map-pop-btn { margin-top: .4rem; border: 0; border-radius: 9px; background: var(--navy); color: #fff; padding: .45rem .7rem; font-weight: 600; font-size: .82rem; }
.map-pop-btn:hover { background: var(--navy-2); }

/* ---------- Impact ---------- */
.impact { background: linear-gradient(180deg, var(--bg), #EAF1F8); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem 1.3rem 1.2rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi > .i { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.kpi:nth-child(2) > .i { background: var(--coral-50); color: var(--coral); }
.kpi:nth-child(3) > .i { background: var(--green-50); color: var(--green); }
.kpi:nth-child(4) > .i { background: var(--amber-50); color: var(--amber); }
.kpi-num { margin-top: .9rem; font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-num small { font-size: .5em; color: var(--ink-3); font-weight: 700; }
.kpi-label { margin-top: .35rem; color: var(--ink-2); font-weight: 500; }
.bump { display: inline-block; animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); color: var(--green); } }
.impact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; margin-top: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h3 { font-size: 1.12rem; font-weight: 700; }
.card-head .muted { font-size: .85rem; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; height: 13.5rem; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .35rem; }
.bar-val { font-size: .82rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar-fill { width: min(100%, 3.2rem); height: 3%; border-radius: 10px 10px 5px 5px; background: linear-gradient(180deg, #5B8DEF, var(--blue)); transition: height 1s var(--ease); max-height: calc(100% - 3rem); }
.bar.today .bar-fill { background: linear-gradient(180deg, #F07A62, var(--coral)); }
.bar-day { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.bar.today .bar-day { color: var(--coral); }
.ontime-card { display: flex; flex-direction: column; }
.donut-wrap { position: relative; width: 11rem; height: 11rem; margin: .25rem auto 1rem; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: #E8EEF5; stroke-width: 14; }
.donut-fill { fill: none; stroke: var(--green-500); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.2s var(--ease); }
.donut-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-label p { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.donut-label small { display: block; font-size: .75rem; font-weight: 600; color: var(--ink-3); margin-top: .35rem; max-width: 6rem; line-height: 1.25; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; counter-reset: r; }
.rank li { display: grid; grid-template-columns: 1fr 40% 2rem; align-items: center; gap: .75rem; font-size: .93rem; }
.rank-name { font-weight: 600; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rank-name small { font-weight: 500; color: var(--ink-3); font-size: .78rem; }
.rank-bar { height: .55rem; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7FB8FF, var(--blue)); transition: width 1s var(--ease); }
.rank-count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-vol li { grid-template-columns: 2rem 1fr auto 2rem; }

/* ---------- How ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.step h3 { margin-top: 1rem; font-size: 1.35rem; }
.step p { margin-top: .4rem; color: var(--ink-2); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.principles article { padding: 1.3rem; border-radius: 20px; background: linear-gradient(180deg, #fff, var(--surface-2)); border: 1px solid var(--line); }
.principles .i { width: 1.6rem; height: 1.6rem; color: var(--blue); }
.principles h3 { margin-top: .8rem; font-size: 1.08rem; font-family: var(--font); font-weight: 700; letter-spacing: -0.01em; }
.principles p { margin-top: .35rem; color: var(--ink-2); font-size: .93rem; }
.callout { margin: 1.5rem 0 0; padding: 1.5rem 1.75rem; border-radius: 20px; background: var(--navy); color: rgba(255, 255, 255, .86); position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--coral); }
.callout p { font-size: 1.08rem; max-width: 60rem; }
.callout strong { color: #fff; }
.callout q { color: #fff; font-style: italic; }
.callout a { color: var(--ice); }
.callout footer { margin-top: .75rem; font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* ---------- Footer ---------- */
.site-footer { background: #06162D; color: rgba(255, 255, 255, .8); padding: 2.5rem 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.15rem; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
.site-footer a { color: var(--ice); }
.footer-actions { display: flex; gap: .5rem; }
.site-footer .btn-ghost { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .25); }
.site-footer .btn-ghost:hover { --b-bg: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Dialogs ---------- */
.modal { border: 0; padding: 0; border-radius: 26px; width: min(42rem, 100% - 2rem); max-height: min(92vh, 52rem); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-sm { width: min(33rem, 100% - 2rem); }
.modal-sm .modal-inner { gap: 1.1rem; }
.modal-sm .form-error { margin-top: -.6rem; }
.modal[open] { animation: modalIn .32s var(--ease); }
.modal.closing { animation: modalOut .18s ease-in forwards; }
.modal::backdrop { background: rgba(4, 16, 34, .55); backdrop-filter: blur(4px); animation: fade .3s; }
.modal.closing::backdrop { animation: fade .18s reverse forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal-inner { display: flex; flex-direction: column; max-height: inherit; overflow-y: auto; padding: 1.5rem 1.6rem 0; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal-head h2 { font-size: 1.7rem; font-weight: 800; margin-top: .2rem; letter-spacing: -0.03em; }
.modal-head .icon-btn { border-color: var(--line); color: var(--ink-2); flex: none; }
.modal-head .icon-btn:hover { background: var(--surface-2); }
.progress { height: 5px; border-radius: 99px; background: var(--line); margin: 1.1rem 0 .5rem; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #5B8DEF); transition: width .45s var(--ease); }
.step-pane { display: grid; gap: 1.15rem; padding: .6rem 0 .5rem; }
.step-pane[hidden] { display: none; }
.pane-in { animation: paneIn .35s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } }
.field { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .98rem; padding: 0; display: inline-flex; align-items: center; gap: .35rem; }
.field legend { margin-bottom: .45rem; }
.req-mark { color: var(--coral); }
.opt { font-weight: 500; font-size: .8rem; color: var(--ink-3); background: var(--surface-2); padding: .05rem .45rem; border-radius: 6px; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 4.2rem; line-height: 1.45; }
.hint { font-size: .83rem; color: var(--ink-3); }
.input-with-btn { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.input-with-btn .btn { min-height: 3rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-col { display: grid; gap: .45rem; }
.choice, .chip-choice, .task-choice, .check { position: relative; display: block; cursor: pointer; }
.choice input, .chip-choice input, .task-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span, .chip-choice span { display: flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .55rem 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 500; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s; }
.choice span::before { content: ''; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: border .2s, background .2s; }
.choice input:checked + span::before { border: 5px solid var(--blue); }
.choice input:checked + span, .chip-choice input:checked + span, .task-choice input:checked + span { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue); }
.choice input:focus-visible + span, .chip-choice input:focus-visible + span, .task-choice input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid #5B9BFF; outline-offset: 2px; }
.choice:hover span, .chip-choice:hover span, .task-choice:hover span { border-color: var(--blue); }
.chip-choice:active span, .task-choice:active span { transform: scale(.98); }
.chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.chip-choice .i { color: var(--blue); }
.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.task-choice span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .65rem; padding: .8rem .9rem; border: 1.5px solid var(--line-2); border-radius: 14px; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s; }
.task-choice .i { grid-row: span 2; width: 1.5rem; height: 1.5rem; color: var(--blue); margin-top: .1rem; }
.task-choice b { font-size: .95rem; }
.task-choice small { color: var(--ink-3); font-size: .8rem; }
.task-choice span::after { content: ''; position: absolute; right: .7rem; top: .7rem; width: 1.15rem; height: 1.15rem; border-radius: 6px; border: 2px solid var(--line-2); background: #fff center/70% no-repeat; transition: all .2s; }
.task-choice input:checked + span::after { background-color: var(--blue); border-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.consent, .check { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); cursor: pointer; }
.check { padding: .6rem .8rem; background: transparent; border: 0; }
.consent input, .check input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--blue); flex: none; }
.checklist { display: grid; gap: .1rem; }
.pledge { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .45rem; }
.pledge li { display: flex; gap: .55rem; color: var(--ink-2); font-size: .93rem; }
.pledge .i { color: var(--green); margin-top: .2rem; }
.form-error { min-height: 1.4rem; color: var(--coral-600); font-weight: 600; font-size: .9rem; margin-top: .25rem; }
.modal-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: .75rem; padding: 1rem 0 1.4rem; margin-top: auto; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%); }
.modal-foot .btn[type="submit"] { margin-left: auto; min-width: 11rem; min-height: 3.1rem; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.review { display: grid; gap: 1rem; }
.review-preview { padding: 1rem; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.mini-card { display: grid; grid-template-columns: 2.75rem 1fr; gap: .8rem; margin-top: .6rem; padding: .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.review-list { margin: 0; display: grid; gap: .1rem; }
.review-list div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.review-list dt { font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: .3rem; }
.review-list dd { margin: 0; }
.success { text-align: center; justify-items: center; padding: 1rem 0; }
.success-badge { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--green-50); color: var(--green); animation: pop .6s var(--ease); box-shadow: 0 0 0 10px rgba(14, 159, 110, .08); }
.success-badge .i { width: 2.6rem; height: 2.6rem; stroke-width: 2.6; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.success h3 { font-size: 1.6rem; }
.success p { color: var(--ink-2); max-width: 30rem; }
.next-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .55rem; text-align: left; width: 100%; max-width: 30rem; }
.next-list li { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: .93rem; }
.next-list .i { color: var(--blue); }

/* ---------- Toasts & effects ---------- */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 2000; display: grid; gap: .6rem; width: min(25rem, 100% - 2.5rem); }
.toast { display: flex; align-items: center; gap: .75rem; padding: .85rem .85rem .85rem 1rem; background: var(--navy); color: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .93rem; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateX(30px); }
.toast p { flex: 1; line-height: 1.4; }
.toast b { color: var(--ice); }
.toast-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: rgba(255, 255, 255, .1); flex: none; }
.toast-success .toast-icon { background: var(--green-500); }
.toast-action { border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; border-radius: 9px; padding: .4rem .7rem; font-size: .85rem; }
.toast-action:hover { background: rgba(255, 255, 255, .24); }
.toast-x { border: 0; background: none; color: rgba(255, 255, 255, .6); display: grid; place-items: center; padding: .25rem; border-radius: 8px; }
.toast-x:hover { color: #fff; }
.burst { position: fixed; z-index: 3000; width: 1.1rem; height: 1.1rem; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(10, 35, 66, .35)); }
.burst .i { width: 100%; height: 100%; stroke-width: 2.4; }
.burst-dot { width: .55rem; height: .55rem; border-radius: 50%; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .clock-card { max-width: 40rem; }
  .board-grid { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .view-toggle { display: inline-flex; }
  .board-grid { grid-template-columns: 1fr; height: auto; }
  .board-grid[data-view="list"] .map-panel { display: none; }
  .board-grid[data-view="map"] .list-panel { display: none; }
  .map-panel { height: 70vh; min-height: 26rem; }
  .list-panel { max-height: none; }
  .req-list { overflow: visible; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  :root { --topbar: 3.75rem; }
  .brand-name { font-size: 1.1rem; }
  .brand-logo { width: 2rem; height: 2rem; }
  .topbar-actions { gap: .4rem; }
  .topbar-actions .btn-primary span, #volunteerBtnLabel { display: none; }
  .topbar-actions .btn { padding: 0 .8rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero-stats { gap: 1.25rem; flex-wrap: nowrap; }
  .hero-stats dd { font-size: 1.8rem; }
  .hero-stats dt { font-size: .78rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .clock-card { padding: 1.1rem; border-radius: 22px; }
  .clock-body { grid-template-columns: 7rem 1fr; gap: .9rem; }
  .ring { width: 7rem; height: 7rem; }
  .ring-time { font-size: 1.25rem; }
  .clock-text h3 { font-size: 1.12rem; }
  .wx-now { grid-template-columns: repeat(2, 1fr); row-gap: .8rem; }
  .principles { grid-template-columns: 1fr; }
  .chip-grid, .task-grid { grid-template-columns: 1fr; }
  .modal { width: 100%; max-width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .modal-inner { padding: 1.2rem 1.1rem 0; }
  .review-list div { grid-template-columns: 1fr; gap: .1rem; }
  .input-with-btn { grid-template-columns: 1fr; }
  .toasts { left: 1rem; right: 1rem; bottom: 1rem; width: auto; }
  .container { width: min(1240px, 100% - 1.5rem); }
  .map-legend { font-size: .72rem; gap: .6rem; }
  .kpi { padding: 1rem; }
}
html.large-text .board-grid { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .snowfx { display: none; }
}
@media (forced-colors: active) {
  .pin, .btn, .seg-btn[aria-pressed="true"] { border: 2px solid CanvasText; }
}
