:root{
  --forest:#1F3D2E; --forest-d:#16301F; --green:#2E5C42; --sage:#7FA98A;
  --ink:#21352B; --slate:#5C6E67; --line:#CDD6D2;
  --stream:#3E8CA6; --stream-d:#2C6E86; --stream-lt:#9FC9D6; --stream-sft:#DCEAEE;
  --rock:#737F82; --rock-lt:#AEB8B8;
  --mist:#EDF1EF; --paleblue:#D6E5E9; --card:#F8FAF9; --paper:#F4F7F5;
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--mist); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.5; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
.mono{ font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; }
.band{ width:100%; position:relative; overflow:hidden; }
.inner{ max-width:1060px; margin:0 auto; padding:0 20px; position:relative; z-index:2; }
.scene{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; display:block; }
.scene-hero-sky{ z-index:0; }
.scene-hero-clouds{ position:relative; z-index:1; display:block; width:100%; height:clamp(64px,10vw,120px); margin-top:-1px; }
.scene-ov-mountains{ z-index:0; min-height:100%; }
.scene-ov-forest-edge{ position:relative; z-index:1; display:block; width:100%; height:clamp(72px,11vw,160px); margin-top:0; }
.scene-re-forest{ z-index:0; min-height:100%; }

.surface{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(33,53,43,.12);
  border-radius:14px;
  padding:22px 22px 24px;
  box-shadow:0 10px 36px rgba(31,61,46,.1);
  color:var(--ink);
}

/* ---------- HERO (sky) ---------- */
.band-hero{ background:#A8D4EF; color:var(--ink); padding-bottom:0; }
.band-hero .inner{ padding:28px 20px 28px; }
.hero-top{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.hero-top .title{ flex:1 1 12rem; min-width:0; }
.hero-top .lang{ flex:0 0 auto; margin-top:4px; }
.hero-surface .lede{ color:#3a4f48; max-width:58ch; }
.hero-block{
  margin-top:20px; padding-top:18px; border-top:1px solid var(--line);
}
.hero-block-chips{ margin-top:16px; }
.hero-block .agenda-label{ margin-bottom:8px; }
.agenda{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.agenda-label{ flex:0 0 100%; color:var(--stream-d); font-size:11px; letter-spacing:.12em; text-transform:uppercase; margin:0; font-weight:700; }
.apill{
  background:var(--stream-sft); border:1px solid #B8D4DE; color:var(--forest-d);
  border-radius:999px; padding:6px 13px; font-size:13px; font-weight:600;
}
.chips{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,168px),1fr)); gap:10px; margin:0; padding:0; }
.chip{
  background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 12px;
  box-shadow:0 1px 3px rgba(31,61,46,.06); min-width:0; max-width:none;
}
.chip .k{ font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--stream-d); font-weight:700; }
.chip .v{ margin-top:3px; font-size:14px; font-weight:700; color:var(--forest-d); line-height:1.25; }
.chip .s{ display:block; font-size:12px; color:#4a5c56; font-weight:400; margin-top:3px; line-height:1.35; }
.lang{ display:inline-flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:#fff; box-shadow:0 1px 3px rgba(31,61,46,.08); }
.lang button{ font-family:inherit; font-size:12px; font-weight:700; letter-spacing:.04em; padding:7px 13px; border:none; background:transparent; color:var(--forest-d); cursor:pointer; }
.lang button.on{ background:var(--forest); color:var(--paper); }
h1.title{ font-size:clamp(34px,6.8vw,64px); line-height:.98; letter-spacing:-.02em; font-weight:800; margin:0; color:var(--forest-d); }
h1.title .glow{ color:var(--stream-d); }
.tagline{ margin:14px 0 0; font-size:clamp(16px,2vw,20px); font-weight:600; color:var(--ink); }
.lede{ margin:10px 0 0; font-size:15px; line-height:1.5; }

/* ---------- section heads ---------- */
.sec-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.sec-eyebrow{ font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; font-weight:700; display:flex; align-items:center; gap:8px; }
.sec-eyebrow::before{ content:""; width:9px; height:9px; border-radius:50%; }
.ov .sec-eyebrow{ color:var(--rock); } .ov .sec-eyebrow::before{ background:var(--rock); }
.re .sec-eyebrow{ color:var(--green); } .re .sec-eyebrow::before{ background:var(--green); }
.re .sec-head{ margin-bottom:0; }
.re-intro{ margin-bottom:16px; padding:18px 22px; }
.re-intro h2{ margin-top:6px; color:var(--forest-d); }
h2{ font-size:clamp(26px,4vw,38px); letter-spacing:-.015em; margin:8px 0 0; font-weight:800; color:var(--forest-d); }
.sec-sub{ color:#4a5c56; font-size:14.5px; margin:9px 0 0; max-width:66ch; }

/* ---------- OVERVIEW (mountains) ---------- */
.band-ov{ background:#D4E4EE; padding:46px 0 0; }
.band-ov .inner{ padding-bottom:0; }
.band-ov .ov-surface{ margin-bottom:8px; }
.ov-surface .sec-sub{ color:#4a5c56; }
.ov-surface .live{ color:#4a5c56; font-weight:600; }
.ov-surface .group-empty{ color:#4a5c56; }
.ov-surface .group-row .meta{ color:#4a5c56; }
.ov-surface .leg-item{ color:#4a5c56; }
.pdot{ width:8px; height:8px; border-radius:50%; background:var(--green); }
@media (prefers-reduced-motion:no-preference){
  .pdot{ animation:pulse 2.4s infinite; }
  @keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(46,92,66,.5)} 70%{box-shadow:0 0 0 7px rgba(46,92,66,0)} 100%{box-shadow:0 0 0 0 rgba(46,92,66,0)} }
}
.readout{ display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 0; }
.live{ display:inline-flex; align-items:center; gap:7px; font-size:12px; }
.ov-responders{ margin:20px 0 4px; }
.ov-responders h3{ font-size:11px; letter-spacing:.11em; text-transform:uppercase; color:var(--stream-d); margin:0 0 10px; font-weight:700; }
.group-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.group-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; background:var(--mist); border:1px solid var(--line); border-radius:10px; padding:8px 12px; font-size:13px; }
.group-row.you{ border-color:var(--stream); box-shadow:0 0 0 1px var(--stream-sft); }
.group-row .who{ font-weight:700; flex:0 1 auto; min-width:min(100%, 10rem); }
.group-row .meta{ flex:1 1 12rem; color:var(--slate); font-size:12.5px; line-height:1.35; }
.group-row .badge{ font-size:10.5px; font-weight:700; color:var(--stream-d); background:var(--stream-sft); padding:2px 7px; border-radius:999px; }
.group-empty{ font-size:13px; color:var(--slate); padding:4px 0; }
.stat{ background:var(--green); color:var(--paper); border-radius:10px; padding:9px 13px; }
.stat .n{ font-size:19px; font-weight:700; } .stat .l{ font-size:10px; letter-spacing:.1em; text-transform:uppercase; opacity:.85; }
.stat.muted{ background:#fff; color:var(--slate); border:1px solid var(--line); } .stat.muted .n{ color:var(--ink); }
.stat.warn{ background:var(--rock); color:#fff; }
.legend{ display:flex; flex-wrap:wrap; gap:14px 22px; align-items:center; margin:18px 0 14px; padding:13px 16px; background:var(--mist); border:1px solid var(--line); border-radius:12px; }
.leg-item{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--slate); }
.leg-item .ico{ width:17px; height:17px; flex:0 0 auto; }
.ramp{ display:flex; } .ramp .cell{ width:16px; height:13px; min-height:0; border-radius:0; }
.leg-ramp-label{ margin-left:8px; }
.hidden{ display:none !important; }
.dot-sw{ width:9px; height:9px; border-radius:50%; background:var(--stream); flex:0 0 auto; }

/* ---------- calendars ---------- */
.cal{ display:grid; gap:22px 24px; margin-top:6px; width:100%; max-width:100%; }
.month{ min-width:0; max-width:100%; }
.month h3{ margin:0 0 8px; font-size:13px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--ink); }
.dow{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; margin-bottom:3px; }
.dow span{ text-align:center; font-size:10px; color:var(--slate); font-weight:600; }
.grid{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; width:100%; }
.cell{ position:relative; border-radius:7px; border:1px solid transparent; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:11px; min-width:0; }
.cell.pad{ background:transparent !important; border:none; }
.cell .dnum{ position:absolute; top:3px; left:5px; font-size:9.5px; color:var(--slate); opacity:.8; z-index:2; }
.cell.we .dnum{ color:var(--stream-d); }
.mk{ position:absolute; top:4px; right:4px; width:6px; height:6px; border-radius:50%; background:var(--stream); z-index:2; }

#heatCal{ grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)); }
#heatCal .cell{ min-height:56px; background:#fff; box-shadow:inset 0 0 0 1px rgba(0,0,0,.03); cursor:default; }
#heatCal .cell.day{ cursor:pointer; }
.counts{ display:flex; flex-direction:column; gap:1px; align-items:center; margin-top:6px; position:relative; z-index:2; }
.crow{ display:flex; align-items:center; gap:3px; font-weight:700; font-size:12px; }
.crow svg{ width:12px; height:12px; display:block; }
#heatCal .cell.inrange{ box-shadow:0 0 0 2px rgba(46,92,66,.6); }
#heatCal .cell.over::after{ content:""; position:absolute; inset:0; z-index:1; background:repeating-linear-gradient(45deg, rgba(18,42,28,0) 0 4px, rgba(18,42,28,.2) 4px 5px); }
#heatCal .cell.peak::before{ content:"▲"; position:absolute; top:3px; left:50%; transform:translateX(-50%); font-size:7px; color:#fff; opacity:.9; z-index:2; }

.paintcard{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 16px 18px; margin-top:20px; max-width:100%; overflow-x:auto; }
.form-meta{ padding-bottom:18px; margin-bottom:4px; border-bottom:1px solid var(--line); }
.date-toolbar{ padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.date-toolbar .pgroup{ margin-top:12px; }
.date-toolbar .pgroup:first-child{ margin-top:0; }
.stay-days-ico{ font-size:11px; font-weight:700; color:var(--slate); letter-spacing:-0.02em; }
.paint-hint{ font-size:12.5px; color:var(--slate); margin:0 0 12px; }
#paintCal{ grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:16px 18px; }
#paintCal .cell{ min-height:38px; background:#fff; border:1px solid var(--line); cursor:pointer; transition:background .08s,border-color .08s; }
#paintCal .cell.day:hover{ border-color:var(--slate); }
#paintCal .cell.sel{ background:var(--green); border-color:var(--forest-d); }
#paintCal .cell.sel .dnum{ color:rgba(255,255,255,.95); }
#paintCal .cell .pick{ color:transparent; font-weight:800; font-size:13px; line-height:1; }
#paintCal .cell.sel .pick{ color:#fff; }
#paintCal .cell.sel .mk{ background:#fff; }
#paintCal.painting{ touch-action:none; } #paintCal.painting .cell{ touch-action:none; }

.tip{ position:fixed; z-index:60; background:var(--forest); color:var(--paper); font-size:12px; line-height:1.45; padding:9px 12px; border-radius:9px; max-width:260px; box-shadow:0 8px 24px rgba(0,0,0,.22); pointer-events:none; opacity:0; transform:translateY(4px); transition:opacity .12s,transform .12s; white-space:pre-line; text-align:left; }
.tip.show{ opacity:1; transform:translateY(0); }

/* ---------- RESPOND (forest) ---------- */
.band-re{ background:var(--forest-d); padding:32px 0 56px; border-top:none; }
.band-re .notice{ background:rgba(255,255,255,.96); border-color:#BFD9E1; box-shadow:0 8px 28px rgba(0,0,0,.12); }
.band-re .panel{ box-shadow:0 12px 40px rgba(0,0,0,.18); }
.notice{ margin:6px 0 22px; padding:16px 18px; background:var(--stream-sft); border:1px solid #BFD9E1; border-left:4px solid var(--stream); border-radius:11px; }
.notice h3,.notice h4{ margin:0; font-size:15px; font-weight:800; color:var(--stream-d); }
.notice p{ margin:6px 0 0; font-size:14px; color:#3c5560; }
.panel{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:20px; max-width:100%; overflow-x:clip; }
.form-row{ display:flex; flex-wrap:wrap; gap:16px 22px; align-items:flex-end; }
.field{ display:flex; flex-direction:column; gap:6px; flex:0 1 auto; min-width:0; }
.field label,.field .label-like{ font-size:11px; letter-spacing:.11em; text-transform:uppercase; color:var(--stream-d); font-weight:700; }
.field input[type=text]{ font-size:15px; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); min-width:230px; font-family:inherit; }
.field input[type=text]:focus{ outline:2px solid var(--stream); outline-offset:1px; border-color:var(--stream); }
.stepper{ display:flex; align-items:center; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.stepper button{ width:42px; height:44px; border:none; background:#fff; font-size:20px; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.stepper button:hover{ background:var(--mist); }
.stepper .num{ width:44px; text-align:center; font-size:17px; font-weight:700; }
.stepper .ico{ display:flex; align-items:center; padding:0 8px 0 12px; } .stepper .ico svg{ width:16px; height:16px; }

.pgroup{ display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-top:16px; }
.plabel{ font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--slate); font-weight:700; margin-right:2px; }
.preset{ font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer; border:1px solid var(--line); background:#fff; color:var(--ink); padding:7px 12px; border-radius:999px; }
.preset:hover{ border-color:var(--stream); color:var(--stream-d); }
.preset.danger:hover{ border-color:var(--rock); color:var(--rock); }
.preset.undo{ background:transparent; } .preset.undo:disabled{ opacity:.4; cursor:not-allowed; }
.selcount{ font-size:13px; color:var(--slate); margin:12px 0 0; font-weight:600; }

.callout{ margin-top:18px; padding:15px 17px; background:rgba(127,169,138,.16); border:1px solid #BFD3C5; border-left:3px solid var(--green); border-radius:10px; }
.callout h3,.callout h4{ margin:0; font-size:14.5px; font-weight:700; color:var(--green); }
.callout p{ margin:6px 0 0; font-size:13.5px; color:var(--slate); }
.check{ display:inline-flex; align-items:center; gap:9px; margin-top:12px; font-size:14px; font-weight:600; cursor:pointer; color:var(--ink); }
.check input{ width:18px; height:18px; accent-color:var(--green); cursor:pointer; }

.actions{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:20px; }
.btn{ font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; background:var(--green); color:var(--paper); border:none; border-radius:11px; padding:13px 22px; }
.btn:hover{ background:var(--forest-d); } .btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn.ghost{ background:transparent; color:var(--slate); border:1px solid var(--line); }
.btn.ghost:hover{ color:var(--rock); border-color:var(--rock); }
.status{ font-size:13px; color:var(--slate); } .status.ok{ color:var(--green); font-weight:600; }

.rawwrap{ margin-top:18px; }
.rawtoggle{ font-family:inherit; font-size:11.5px; font-weight:600; letter-spacing:.04em; color:var(--slate); background:transparent; border:1px solid var(--line); border-radius:8px; padding:6px 11px; cursor:pointer; display:inline-flex; align-items:center; gap:7px; }
.rawtoggle:hover{ color:var(--ink); border-color:var(--rock-lt); }
.rawtoggle .chev{ font-size:10px; transition:transform .15s; }
.rawtoggle.open .chev{ transform:rotate(180deg); }
.rawpanel{ margin-top:10px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px; }
.rawbar{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; }
.rawbtn{ font-family:inherit; font-size:12px; font-weight:600; color:var(--ink); background:var(--mist); border:1px solid var(--line); border-radius:7px; padding:6px 10px; cursor:pointer; }
.rawbtn:hover{ border-color:var(--stream); color:var(--stream-d); }
.rawnote{ font-size:11.5px; color:var(--slate); }
.rawpre{ margin:0; max-height:240px; overflow:auto; background:var(--mist); border:1px solid var(--line); border-radius:8px; padding:10px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:11px; line-height:1.45; color:var(--ink); white-space:pre; }

.skip-link{ position:absolute; left:-9999px; top:0; z-index:100; padding:10px 16px; background:var(--paper); color:var(--forest); font-weight:700; border-radius:0 0 8px 8px; }
.skip-link:focus{ left:8px; outline:2px solid var(--stream); outline-offset:2px; }
.lang button:focus-visible,.stepper button:focus-visible,.preset:focus-visible,.btn:focus-visible,.rawtoggle:focus-visible,.rawbtn:focus-visible,#heatSummaryToggle:focus-visible{ outline:2px solid var(--stream); outline-offset:2px; }
#paintCal .cell.day{ min-height:max(38px,2.75rem); touch-action:pan-y; }
#paintCal .cell.day:focus-visible{ outline:2px solid var(--stream); outline-offset:1px; z-index:3; }
#heatCal .cell.day{ min-height:56px; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.heat-summary{ margin-top:18px; }
.heat-summary-toggle{ font-family:inherit; font-size:13px; font-weight:600; color:var(--stream-d); background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; cursor:pointer; width:100%; text-align:left; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.heat-summary-toggle:hover{ border-color:var(--stream); }
.heat-summary-panel{ margin-top:10px; max-height:320px; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:10px; }
.heat-summary-panel table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.heat-summary-panel th,.heat-summary-panel td{ padding:8px 10px; text-align:left; border-bottom:1px solid var(--line); }
.heat-summary-panel th{ position:sticky; top:0; background:var(--mist); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--slate); }
.live.offline .pdot{ background:var(--rock); animation:none; }
.live.offline{ color:var(--rock); }
@media (prefers-reduced-motion:reduce){
  .pdot{ animation:none !important; }
  .tip{ transition:none; }
  .rawtoggle .chev{ transition:none; }
  #paintCal .cell{ transition:none; }
}
@media (max-width:768px){
  .hero-top .lang{ margin-top:0; }
  .form-row{ flex-direction:column; align-items:stretch; }
  .field input[type=text]{ min-width:0; width:100%; }
  .readout .stat{ flex:1 1 calc(50% - 10px); min-width:140px; }
}
@media (max-width:560px){
  #heatCal,#paintCal{ grid-template-columns:1fr; }
  #paintCal .cell.day{ min-height:44px; }
  .readout .stat{ flex:1 1 100%; }
}
