.map-sidebar__scroll { display:contents; }
@media (min-width:1024px) {
  html, html.map-reading-open { overflow:hidden; scrollbar-gutter:auto; }
  body { overflow:hidden; height:100dvh; }
  :root { --home-map-sidebar-width:40vw; --home-map-gutter:0px; --home-desktop-header-height:80px; --home-workspace-inset:24px; --home-header-filters-width:300px; }
  body > .site-header { position:relative; inset:auto; width:100%; height:var(--home-desktop-header-height); min-height:0; box-sizing:border-box; display:flex; justify-content:flex-start; gap:20px; padding:12px var(--home-workspace-inset); padding-right:calc(var(--home-workspace-inset) + var(--home-content-scrollbar-width, 0px)); border:0; border-bottom:1px solid var(--border); border-radius:0; background:var(--silk-surface); backdrop-filter:none; box-shadow:var(--silk-raised-sm); z-index:1200; }
  .site-header > .map-topbar.map-toolbar { position:relative; inset:auto; display:block; flex:1 1 auto; width:auto; min-width:0; max-width:none; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; --topbar-bg:var(--silk-surface); --topbar-control:var(--silk-surface); --topbar-line:var(--border); color:var(--fg); }
  .site-header .map-topbar .map-topbar__content { display:flex; align-items:center; gap:8px; }
  .site-header .map-topbar .map-topbar__territory-row { flex:0 1 300px; width:auto; padding:0; }
  .site-header .map-topbar .map-topbar__filter-row { flex:0 0 var(--home-header-filters-width); width:var(--home-header-filters-width); margin-left:auto; grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.25fr); gap:8px; }
  .site-header .map-topbar .map-topbar__filter-row > button { min-height:48px; padding-inline:8px; }
  .site-header .map-topbar [data-toolbar-menu="period"] > .map-topbar__chevron { position:static; transform:none; }
  .site-header #map-period-label { white-space:nowrap; }
  .site-header .map-topbar .map-topbar__menu { right:auto; max-width:calc(100vw - 24px); }
  .site-header .map-topbar .map-topbar__toggle { display:none; }
  .site-header .map-topbar [hidden] { display:none !important; }
  .site-header .map-topbar__status:not(:empty) { position:absolute; top:calc(100% + 8px); left:0; max-width:320px; padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--silk-surface); box-shadow:var(--silk-raised-sm); }

  .site-header .nav-links a.nav-link-home { display:none; }
  .map-stage > .map-report-action { position:absolute; right:40px; bottom:40px; z-index:910; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:56px; min-width:56px; height:56px; min-height:56px; padding:0; border:0; border-radius:50%; background:var(--brand); color:#fff; box-shadow:0 4px 14px rgba(2,12,27,.22); text-decoration:none; transition:transform .14s ease,box-shadow .18s ease,opacity .18s ease; }
  .map-stage > .map-report-action:hover { background:var(--brand); box-shadow:0 6px 20px rgba(2,12,27,.28); }
  .map-stage > .map-report-action:active { transform:scale(.96); }
  .map-stage > .map-report-action:focus-visible { outline:3px solid var(--brand); outline-offset:4px; box-shadow:0 0 0 2px #fff,0 6px 20px rgba(2,12,27,.28); }
  .map-stage > .map-report-action[aria-disabled="true"] { opacity:.65; cursor:not-allowed; transform:none; }
  .map-stage > .map-report-action[aria-busy="true"] { opacity:.85; cursor:progress; }
  .map-report-action__icon { position:relative; display:block; width:24px; height:24px; flex-shrink:0; }
  .map-report-action__icon::before, .map-report-action__icon::after { content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); border-radius:2px; background:currentColor; }
  .map-report-action__icon::before { width:3.5px; height:20px; }
  .map-report-action__icon::after { width:20px; height:3.5px; }
  .map-report-action[aria-busy="true"] .map-report-action__icon::before { display:none; }
  .map-report-action[aria-busy="true"] .map-report-action__icon::after { box-sizing:border-box; width:24px; height:24px; background:transparent; border:2px dashed currentColor; border-radius:50%; }
  .map-report-action__tooltip { position:absolute; right:calc(100% + 12px); top:50%; transform:translateY(-50%); padding:8px 12px; border-radius:8px; background:#0f172a; color:#fff; box-shadow:0 3px 12px rgba(2,12,27,.2); font-size:13px; font-weight:600; line-height:1.4; white-space:nowrap; pointer-events:none; opacity:0; visibility:hidden; transition:opacity .15s ease,visibility .15s ease; }
  .map-report-action:is(:hover,:focus-visible):not(.is-tooltip-dismissed) > .map-report-action__tooltip { opacity:1; visibility:visible; }
  @media (prefers-reduced-motion:no-preference) {
    .map-report-action[aria-busy="true"] .map-report-action__icon::after { border-style:solid; border-right-color:transparent; animation:map-report-loading 1s linear infinite; }
    @keyframes map-report-loading { from { transform:translate(-50%,-50%) rotate(0); } to { transform:translate(-50%,-50%) rotate(360deg); } }
  }
  @media (prefers-reduced-motion:reduce) {
    .map-stage > .map-report-action, .map-report-action__tooltip { transition:none; }
    .map-stage > .map-report-action:active { transform:none; }
  }
  .site-header .brand { flex-shrink:0; }
  .site-header .logo-full { height:32px; width:auto; max-width:170px; }
  .site-header .site-nav { width:auto; min-width:0; flex:0 0 auto; margin-left:0; }
  .site-header .nav-links { width:auto; min-width:0; justify-content:space-between; gap:8px; }
  .site-header .nav-links > :is(a,button) { flex-shrink:0; }
  main { height:calc(100dvh - var(--home-desktop-header-height)); min-height:0; }
  main .dashboard--reading .map-section { top:0; height:calc(100dvh - var(--home-desktop-header-height)); min-height:0; width:100%; margin:0; overflow:hidden; }
  .dashboard--reading .map-wrap { display:grid; height:100%; min-height:0; grid-template-columns:minmax(0,3fr) minmax(0,2fr); border:0; border-radius:0; overflow:hidden; box-sizing:border-box; background:var(--silk-background); box-shadow:none; }
  .dashboard--reading .map-stage { width:calc(100% - var(--home-workspace-inset)); height:calc(100% - 32px); margin:16px 0 16px var(--home-workspace-inset); min-width:0; min-height:0; border-radius:18px; overflow:hidden; background:var(--silk-surface); box-shadow:var(--silk-raised); }
  .map-sidebar { height:100%; min-height:0; padding:0; gap:0; grid-template-rows:minmax(0,1fr); border-left:0; background:transparent; }
  .map-sidebar__scroll { display:block; position:relative; z-index:0; min-height:0; min-width:0; overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; overscroll-behavior-y:contain; scrollbar-width:thin; scrollbar-color:var(--silk-muted) transparent; padding:8px 24px 24px; border-top:0; scroll-padding-block:16px; }
  .map-sidebar__scroll:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
  html:has(dialog[open]) .map-sidebar__scroll { overflow-y:hidden; }
  .offline-banner { position:fixed; top:96px; left:16px; right:calc(40% + 16px); z-index:1201; }
  .dashboard--map .map-sidebar__scroll .dashboard-content { display:grid; width:100%; max-width:none; min-width:0; box-sizing:border-box; margin:8px 0 0; padding:0; gap:24px; }
  .dashboard--map .map-sidebar__scroll .dashboard-content::before { display:none; }
  .dashboard--map .dashboard-content > :first-child { margin-top:0; }
  .map-sidebar .silk-dashboard { gap:24px; min-width:0; }
  .map-sidebar .silk-dashboard__hero, .map-sidebar .silk-panel { padding:20px; border-radius:18px; min-width:0; }
  .map-sidebar .silk-dashboard__copy h2 { font-size:clamp(30px,2.5vw,44px); line-height:1.1; letter-spacing:-.035em; }
  .map-sidebar .silk-dashboard__copy h2 span { white-space:normal; }
  .map-sidebar .silk-dashboard__copy > p { font-size:14px; line-height:1.5; }
  .map-sidebar .silk-dashboard__filters { display:none; }
  .map-sidebar .silk-dashboard__status.is-default { display:none; }
  .map-sidebar .silk-dashboard__hero { gap:24px; }
  .map-sidebar .silk-dashboard__hero > .map-reading { padding-top:0; border-top:0; }
  .map-sidebar .map-reading__header, .map-sidebar .map-reading__scope { display:none; }
  .map-sidebar .map-reading__trend-button { padding:8px 12px; min-height:40px; border-radius:12px; background:var(--silk-surface); box-shadow:var(--silk-inset); }
  .map-sidebar .map-reading__trend-button .map-reading__trend { box-shadow:none; font-size:13px; font-weight:700; }
  .map-sidebar .silk-kpis, .map-sidebar .silk-species { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .map-sidebar .silk-kpi { min-height:132px; padding:16px; border-radius:18px; }
  .map-sidebar .silk-kpi:has(.map-reading__trend-button) { position:relative; }
  .map-sidebar .silk-kpi > .map-reading__trend-button { position:absolute; right:12px; top:50%; transform:translateY(-50%); min-height:32px; padding:6px 8px; }
  .map-sidebar .silk-kpi > .map-reading__trend-button[hidden] { display:none; }
  .map-sidebar .silk-kpi:has(.map-reading__trend-button:not([hidden])) > strong { padding-right:48px; }
  .map-sidebar .silk-kpi strong { font-size:36px; }
  .map-sidebar .silk-dashboard__grid, .map-sidebar .silk-signal-summary { grid-template-columns:minmax(0,1fr); gap:16px; }
  .map-sidebar .silk-panel__head h3 { font-size:22px; }
  .map-sidebar .silk-signal { min-height:0; padding:16px; }
  .map-sidebar .sighting-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .map-sidebar .site-footer { margin:32px 0 0; padding:24px 0 0; min-width:0; border-top:1px solid var(--border); background:transparent; }
  .map-sidebar .footer-content { width:100%; padding:0; gap:24px; }
  .map-sidebar .footer-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .map-sidebar .footer-cta .cta-row { flex-direction:column; align-items:stretch; }
  .map-sidebar .footer-cta input { min-width:0; width:100%; box-sizing:border-box; }
  .map-sidebar .map-reading__distribution-disclosure { display:block; margin-top:0; }
  .map-sidebar :is(.map-reading__distribution-disclosure,.map-reading__inline-disclosure) > summary { display:flex; min-height:52px; padding:12px; list-style:none; }
  :is(.map-reading__distribution-disclosure,.map-reading__inline-disclosure) > summary:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
  :is(.map-reading__distribution-disclosure,.map-reading__inline-disclosure) > summary::marker { content:""; }
  :is(.map-reading__distribution-disclosure,.map-reading__inline-disclosure) > summary::-webkit-details-marker { display:none; }
  :is(.map-reading__distribution-disclosure,.map-reading__inline-disclosure)[open] > summary .map-reading__alert-arrow { transform:rotate(135deg); }
  .map-reading__inline-body { padding:16px 4px 0; font-size:14px; line-height:1.5; }
  .map-reading__inline-body > section + section { margin-top:24px; padding-top:16px; border-top:1px solid var(--border); }
  [data-reading-inline="alerts"] [data-reading-section] > :is(h3,ul,button,details) { display:none; }
  [data-reading-inline="alerts"] article { margin-top:16px; padding-top:16px; border-top:1px solid var(--border); overflow-wrap:anywhere; }
  [data-reading-inline="alerts"] article h3 { margin:0 0 8px; font-size:16px; }
  [data-reading-inline="alerts"] .environmental-alert__date { color:var(--muted); font-size:12px; }
  .map-sidebar .map-reading__distribution { grid-template-columns:clamp(112px,10vw,144px) minmax(0,1fr); gap:16px; margin-top:16px; padding-top:0; border-top:0; }
  .map-sidebar .map-reading__distribution > figcaption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .map-sidebar .map-reading__chart-slot { display:grid; place-items:center; aspect-ratio:1; padding:8px; border-radius:50%; background:var(--silk-surface); box-shadow:var(--silk-inset); }
  .map-sidebar .map-reading__chart-slot .map-reading__pie { width:100%; height:auto; }
  .map-sidebar .map-reading__chart-legend { grid-template-columns:minmax(0,1fr); gap:8px; font-size:12px; }
  .map-sidebar .map-reading__chart-group { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; flex:1; }
  .map-sidebar .map-reading__chart-value { min-height:0; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .map-sidebar .map-reading__chart-legend .map-reading__group-amount { font-size:12px; }
  .map-sidebar [data-reading-has-reports="true"] [data-map-reading-chart-status] { display:none; }
  .map-sidebar .has-reading-dialog .map-reading__desktop-actions { border-top:0; padding-top:0; margin-top:24px; }
  main .flash-stack { left:16px; right:calc(40% + 16px); width:auto; }
  .push-toast { right:calc(40% + 16px); max-width:calc(60vw - 32px); }
  .dashboard--reading .map-stage .map-empty { top:16px; }
  .dashboard--reading .maplibregl-ctrl-top-left, .dashboard--reading .maplibregl-ctrl-top-right { top:16px; }
}
@media (min-width:1024px) and (max-width:1199px) {
  :root { --home-workspace-inset:16px; --home-header-filters-width:245px; }
  body > .site-header { gap:12px; }
  .site-header .logo-full { max-width:130px; height:auto; }
  .site-header .logo-iso { display:none; }
  .site-header .map-topbar .map-topbar__filter-row > button { padding-inline:8px; }
  .site-header .map-topbar .map-topbar__filter-row { gap:6px; }
  .site-header .map-topbar .map-topbar__filter-row > button > svg:not(.map-topbar__chevron) { display:none; }
  .site-header .nav-links { gap:6px; }
  .site-header .nav-links > :is(.nav-profile,#nav-push-toggle,#theme-toggle) { box-sizing:border-box; width:36px; min-width:36px; height:40px; min-height:40px; padding:0; }
  .map-sidebar__scroll { padding-inline:16px; }
}
