/* Frost Map opt-in. Existing live styles apply untouched in Classic. */
:root[data-dashboard-style="frost-map"]{
  --atlas-bg:#06121d; --atlas-edge:#345063; --atlas-muted:#9abcd0;
  --atlas-ink:#d8edf7; --atlas-action:#8fd7f2; --atlas-active:#69c9ee;
  --atlas-card:#0b1c29ee; --atlas-glass:#102838d9; --atlas-hero:#081521;
  --atlas-pale:#c8ecfa; --atlas-shadow:0 12px 28px #02070cc9;
  --atlas-lines:drop-shadow(0 0 3px #53c7f475);
}
:root[data-dashboard-style="frost-map"][data-theme=light]{
  --atlas-bg:#e7eff6; --atlas-edge:#859fb2; --atlas-muted:#3e5d72;
  --atlas-ink:#132d41; --atlas-action:#135a7d; --atlas-active:#247c9f;
  --atlas-card:#f1f9ffee; --atlas-glass:#fafcffed; --atlas-shadow:0 9px 25px #152e4d36;
}
:root[data-dashboard-style="frost-map"]:root[data-theme] .g-app{
  --g-bg:var(--atlas-bg); --g-ink:var(--atlas-ink); --g-muted:var(--atlas-muted);
  --g-accent:var(--atlas-active); --g-accent-soft:color-mix(in srgb,var(--atlas-active) 19%,var(--atlas-bg));
  --g-accent-ink:#031824; --g-side:var(--atlas-card); --g-bar:var(--atlas-card);
  --g-surface:var(--atlas-card); --g-surface2:var(--atlas-glass); --g-line:var(--atlas-edge);
  --g-shadow:var(--atlas-shadow);
  background:radial-gradient(ellipse at 40% 5%,color-mix(in srgb,var(--atlas-edge) 46%,var(--atlas-bg)),var(--atlas-bg) 52%);
}
:root[data-dashboard-style="frost-map"]:root[data-theme=light] .g-app{ --g-accent-ink:#fff }
:root[data-dashboard-style="frost-map"] body:has(.g-app) .wood-backdrop{ visibility:hidden }
:root[data-dashboard-style="frost-map"] .g-content.is-overview{max-width:1550px;padding-top:12px}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-overview{--wood-text:var(--atlas-ink);--wood-muted:var(--atlas-muted);--wood-line:var(--atlas-edge);--wood-gold:var(--atlas-action)}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-welcome{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;gap:14px}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-welcome h1{font:590 clamp(25px,3vw,41px)/1.08 system-ui,sans-serif;letter-spacing:-.045em;margin:0 0 3px;color:var(--atlas-ink);text-shadow:none}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-welcome p,
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-day{color:var(--atlas-muted);text-shadow:none}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-deck{grid-template-columns:minmax(0,1fr) minmax(245px,290px);gap:14px}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-context,
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-dashboard-main,
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-dashboard-aside{gap:12px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-glass:not(.wood-map),
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-dashboard-tasks > .replica-panel{
  background:var(--atlas-card);border:1px solid var(--atlas-edge);border-radius:15px;color:var(--atlas-ink);
  box-shadow:var(--atlas-shadow);backdrop-filter:none;
}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-card :is(strong,b,h2,h3),
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-card .wood-link,
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-dashboard-tasks a{color:var(--atlas-action)}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-map-frame{
  padding:12px 12px 10px;border:1px solid #42637a;border-radius:18px;overflow:hidden;min-width:0;
  background:#071725;color:#d8edf7;box-shadow:var(--atlas-shadow);
  --wood-text:#e4f5fc;--wood-gold:#9fe5ff;--wood-muted:#bfdbe9;--wood-line:#527a91;
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame:before{
  background:linear-gradient(180deg,#051321eb 0%,#06152275 25%,#091b2852 68%,#061320ed 100%),
    url("/grow-pinea-atlas.webp") center/cover no-repeat;
  border:none;box-shadow:none;backdrop-filter:none;
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame .wood-map-head{background:transparent;padding:3px 2px 10px;align-items:flex-start}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame .wood-map-head h2{
  font:600 clamp(22px,2.4vw,33px)/1.05 system-ui,sans-serif;letter-spacing:-.035em;color:#e7f6ff;text-shadow:none;
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame .wood-kicker{color:#95c7df;filter:none;letter-spacing:.16em}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview :is(.wood-map-plan,.wood-open-space){
  color:#061824;background:#a1dced;border:1px solid #c8ecfa;border-radius:999px;min-height:38px;padding:6px 12px;font-size:12px;
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview :is(.wood-map-plan,.wood-open-space):hover{background:#d2eef9}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview :is(.wood-map-plan,.wood-open-space,.wood-chip,.wood-pin,.wood-mode button):focus-visible{outline:2px solid #c4efff;outline-offset:2px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-scene{
  width:100%;min-height:235px;height:clamp(235px,34vh,385px);position:relative;isolation:isolate;border:0;background:transparent;aspect-ratio:auto;overflow:visible;
}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-scene .wood-art{display:none}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-scene:after{
  display:block;z-index:0;inset:1px;
  background:url("/grow-pinea-public-plots.svg") center/100% 100% no-repeat;
  opacity:.85;filter:var(--atlas-lines);
}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-pins{z-index:3}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-location{display:none}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview :is(.wood-mode,.wood-map-legend,.wood-selected-detail,.wood-chips,.wood-pin){
  background:#071824ea;color:#d5f1fc;border-color:#6f9ab7;box-shadow:0 4px 13px #03101ad9;
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin{
  font:650 12px/1.2 system-ui,sans-serif;min-height:36px;max-width:175px;padding:6px 10px;border-radius:999px;
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin:before{background:#79d9fc;box-shadow:0 0 6px #68cbf0}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview :is(.wood-pin,.wood-chip,.wood-mode button)[aria-pressed=true]{
  color:#052237;background:#a0dff7;border-color:#ccf2ff;
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin[aria-pressed=true]:before{background:#226a8d;box-shadow:none}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-chip{min-height:34px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-focus{color:#deedf7;text-shadow:0 1px 8px #06121d}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-detail-layer .wood-selected-detail{z-index:6}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-achievement-dock .wood-achievement{
  --dock-edge:var(--atlas-edge);--dock-card:var(--atlas-card);--dock-frost:var(--atlas-glass);--dock-surround:var(--atlas-card);
  --achievement-seam:var(--atlas-edge);--achievement-dot:var(--atlas-active);--achievement-track:var(--atlas-edge);--achievement-core:var(--atlas-card);
  border-radius:15px;box-shadow:var(--atlas-shadow);
}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-achievement-dock :is(.wood-achievement-stat,.wood-achievement-trend,.wood-achievement-totals){
  border-radius:11px;box-shadow:none;backdrop-filter:none;
}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-achievement-dock .wood-achievement-ring:not([data-empty=true]){
  background:conic-gradient(from 224deg,var(--achievement-dot) 0 calc(var(--achievement-fill)*.75),var(--achievement-track) 0 75%,transparent 0 100%);
}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-achievement-dock .wood-achievement-ring:after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1px solid color-mix(in srgb,var(--atlas-active) 50%,transparent);border-bottom-color:transparent;pointer-events:none}
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-achievement-dock .wood-achievement-bar i{background:linear-gradient(0deg,var(--atlas-active),var(--atlas-pale));box-shadow:0 -1px 6px #57b9df48}
@media(min-width:881px){
:root[data-dashboard-style="frost-map"] .g-app{display:flex;flex-direction:column}
:root[data-dashboard-style="frost-map"] .g-side{display:flex;align-items:center;gap:18px;min-height:54px;height:auto;width:100%;padding:5px clamp(10px,2vw,29px);border-inline-end:0;border-bottom:1px solid var(--g-line);top:0;position:sticky;overflow:hidden}
:root[data-dashboard-style="frost-map"] .g-side-head{flex:none;margin:0}
:root[data-dashboard-style="frost-map"] .g-brand{font:650 18px/1 system-ui,sans-serif;letter-spacing:-.03em;min-height:44px}
:root[data-dashboard-style="frost-map"] .g-side nav{width:100%;display:flex;gap:4px;overflow-x:auto;align-items:center;scrollbar-width:thin;overscroll-behavior-x:contain}
:root[data-dashboard-style="frost-map"] .g-nav-label{display:none}
:root[data-dashboard-style="frost-map"] .g-nav-item{min-height:39px;flex:none;margin:0;gap:4px;padding:6px 10px;white-space:nowrap;font-size:13px}
:root[data-dashboard-style="frost-map"] .g-nav-item.is-active{box-shadow:inset 0 -2px 0 var(--g-accent)}
:root[data-dashboard-style="frost-map"] .g-nav-icon{width:15px}
:root[data-dashboard-style="frost-map"] .g-topbar{position:relative;min-height:42px;padding-block:4px;top:auto}
:root[data-dashboard-style="frost-map"] .g-avatar{width:40px;height:40px}
}
@media(max-width:880px){
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-deck{grid-template-columns:minmax(0,1fr)}
:root[data-dashboard-style="frost-map"] .g-bottom-item{min-height:44px}
:root[data-dashboard-style="frost-map"] :is(.g-avatar,.g-icon){min-width:44px;min-height:44px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview :is(.wood-map-plan,.wood-open-space,.wood-pin,.wood-mode button,.wood-chip,.wood-achievement-active button){min-height:44px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin{font-size:10px;max-width:86px;padding:7px 4px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-scene{min-height:205px;height:clamp(205px,33vh,325px)}
}
@media(max-width:500px){
:root[data-dashboard-style="frost-map"] .g-content.is-overview .wood-welcome{align-items:flex-start;margin-bottom:8px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame .wood-map-head{display:block;padding-bottom:2px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame .wood-map-controls{justify-content:flex-start;gap:5px;margin-top:7px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame .wood-mode{gap:1px}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame .wood-mode button{padding-inline:5px}
}
@media(prefers-reduced-motion:reduce){
:root[data-dashboard-style="frost-map"] .g-side,
:root[data-dashboard-style="frost-map"] .g-content.is-overview *{animation:none!important;transition:none!important}
}
@media(forced-colors:active){
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-map-frame:before,
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-scene:after{background:Canvas;filter:none}
:root[data-dashboard-style="frost-map"] .g-content.is-overview :is(.wood-pin,.wood-card,.wood-achievement-ring,.g-bottom-item){border:1px solid CanvasText}
}
:root[data-dashboard-style="frost-map"] .pinea-shortcuts{display:flex;align-items:center;gap:6px}
:root[data-dashboard-style="frost-map"] .pinea-shortcuts a{display:flex;align-items:center;white-space:nowrap;min-height:38px;border-radius:999px;padding:4px 10px;text-decoration:none;font:650 12px/1.2 system-ui,sans-serif;border:1px solid var(--atlas-edge);color:var(--atlas-ink);background:var(--atlas-glass)}
:root[data-dashboard-style="frost-map"] .pinea-shortcuts .pinea-add{background:var(--atlas-active);color:var(--g-accent-ink);border-color:transparent}
:root[data-dashboard-style="frost-map"] .pinea-shortcuts a:focus-visible{outline:2px solid var(--atlas-action);outline-offset:2px}
@media(max-width:880px){
:root[data-dashboard-style="frost-map"] .pinea-shortcuts a{min-height:44px}}
@media(max-width:480px){
:root[data-dashboard-style="frost-map"] .g-topbar:has(.pinea-shortcuts){flex-wrap:wrap}
:root[data-dashboard-style="frost-map"] .g-top-actions:has(.pinea-shortcuts){display:contents}
:root[data-dashboard-style="frost-map"] .pinea-shortcuts{order:1;flex:1 0 100%;padding:1px 0 3px}
:root[data-dashboard-style="frost-map"] .pinea-shortcuts a{justify-content:center;flex:1;min-width:0}}
:root[data-dashboard-style="frost-map"] .pinea-shortcuts{flex-direction:row}
@media(min-width:881px){
:root[data-dashboard-style="frost-map"] .g-side nav{flex-direction:row}}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-chip:not([aria-pressed=true]){color:#d5f1fc;background:#0b2639b8;border-color:#457084}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-mode button:not([aria-pressed=true]){color:#cde8f5}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-card .wood-bar{background:color-mix(in srgb,var(--atlas-active) 24%,var(--atlas-card))}
@media(max-width:880px){
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pins{display:block}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin{display:block;min-width:44px;max-width:min(108px,43%)}
}
@media(max-width:520px){
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin:nth-child(1){left:24%;top:19%}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin:nth-child(2){left:72%;top:16%}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin:nth-child(3){left:73%;top:51%}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin:nth-child(4){left:35%;top:76%}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin:nth-child(5){left:76%;top:83%}
:root[data-dashboard-style="frost-map"]:root .g-content.is-overview .wood-pin:nth-child(6){left:19%;top:48%}
}

.pinea-dashboard-switch{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
  margin:0 0 8px;color:var(--g-muted);font:650 12px/1.25 system-ui,sans-serif
}
.pinea-dashboard-switch select{
  width:auto;min-width:104px;min-height:36px;margin:0;padding:6px 9px;
  color:var(--g-ink);background:var(--g-surface);border:1px solid var(--g-line);
  border-radius:9px;font:650 12px/1.2 system-ui,sans-serif;cursor:pointer
}
:root[data-theme="dark"] .pinea-dashboard-switch select{color-scheme:dark}
:root[data-theme="light"] .pinea-dashboard-switch select{color-scheme:light}
.pinea-dashboard-switch select:focus-visible{outline:2px solid var(--g-accent);outline-offset:2px}
@media(max-width:880px){.pinea-dashboard-switch select{min-height:44px}}

:root[data-dashboard-style=frost-map] .g-content:not(.is-overview){width:min(100%,1510px);margin-inline:auto}
:root[data-dashboard-style=frost-map] .g-content :is(.g-card,.g-form-card,.g-group,.g-linked,.g-cal,.g-list,.replica-panel){border-radius:16px;border-color:var(--atlas-edge);color:var(--atlas-ink)}
:root[data-dashboard-style=frost-map] .g-content :is(.g-card,.g-form-card,.g-cal,.replica-panel),:root[data-dashboard-style=frost-map] :is(.g-menu,.g-bottom){background:var(--atlas-card);box-shadow:var(--atlas-shadow)}
:root[data-dashboard-style=frost-map] .g-content :is(.g-row,.g-toolbar,.g-cal-day:not(.is-selected),.g-cal-items,.g-agenda){border-color:var(--atlas-edge)}
:root[data-dashboard-style=frost-map] .g-content :is(.g-title-input,.g-field input,.g-field select,.g-field textarea,.g-filter,.g-seg){color:var(--atlas-ink);background:var(--atlas-glass);border-color:var(--atlas-edge)}
:root[data-dashboard-style=frost-map] .g-content .g-page-head h1{font:600 clamp(25px,4vw,43px)/1.1 system-ui,sans-serif;letter-spacing:-.035em}
:root[data-dashboard-style=frost-map] .g-app :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--atlas-action);outline-offset:2px}
@media(prefers-reduced-motion:reduce){:root[data-dashboard-style=frost-map] .g-app *{transition:none!important;animation:none!important}}
