/* Ricognita Workspace — design tokens
   "Spatial Intelligence Studio — Obsidian / Slate Blue / Ricognita Green" (2026-11).
   Revision of the first dark pass: the initial dark-mint palette read too close to Classic's
   own green identity. Color hierarchy now: OBSIDIAN (application background) < SLATE BLUE
   (interface structure, panels, interactive controls — the dominant accent) < RICOGNITA GREEN
   (#8DE9A7, extracted directly from shared/brand-logo.svg's fill — never approximated —
   reserved for success/operational-highlight moments only: GPS fix acquired, sync OK, saved
   confirmation, a few deliberate KPI accents. Never a general button/panel/badge color). Every
   existing variable and class NAME is kept unchanged (every page in Workspace references these
   by name) — only the underlying values move, so no page markup needs to change.
   Google Fonts: Space Grotesk (headings/display) + IBM Plex Sans (body/data), both with
   full system-font fallback stacks so the page still reads correctly offline. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');
:root{
  /* Core surfaces — background < surface < surface-elevated < surface-hover, darkest to
     lightest. --rw-dark is the deepest layer (sidebar, mobile header/bottomnav); --rw-surface
     is the page canvas (body background); --rw-paper is the elevated-card surface (rw-card,
     inputs, buttons); --rw-surface-hover is the hover/active state one step up. */
  --rw-dark:#101922;
  --rw-surface:#1c2b37;
  --rw-paper:#253747;
  --rw-surface-hover:#30475a;
  --rw-ink:#f1f6fa;
  --rw-muted:#b5c3cd;
  --rw-line:#405669;
  /* --rw-ink-solid — a fixed solid background used ONLY for "pressed/active toggle" controls
     and the toast/skip-link overlay (never for text). Decoupled from --rw-ink on purpose:
     --rw-ink is a LIGHT text color (dark theme), but ~15 pressed-state rules across Workspace
     (mp-toolbar, ar-views, sv-seg, mo-tabs, cf-tabs, cm-filters, rwre-toolbar, mapCtrlSeg…)
     reuse "background:var(--rw-ink)" as a solid highlight with white text — those still need an
     always-dark value regardless of theme. Uses the same "selected" slate (#294257) as the
     sidebar/nav selected state, so a pressed segmented-control button reads as the same kind of
     highlight as a selected nav item, not an unrelated flat black. */
  --rw-ink-solid:#294257;
  /* Ricognita Green — success/positive semantic AND the only place the literal brand green
     appears (GPS fix, sync OK, saved-status icon, a handful of deliberate KPI accents). Never
     reused as a general panel/badge/button color — see --rw-brand below for that role. */
  --rw-action:#8de9a7;
  --rw-action-ink:#0d2016;
  /* Neutral tag/highlight background — a translucent slate, not green: the default .rw-badge,
     a pressed basemap toggle, Campo's info note box. Kept separate from success-green so a
     generic "tag" never implies "this is a positive/success state" by accident. */
  --rw-pale:rgba(64,86,105,.3);
  --rw-accent:#f2bf6b;
  --rw-admin-dark:#101922;
  --rw-admin-green:#3f7254;
  --rw-danger:#f17884;
  /* Primary interactive accent — slate blue, the DOMINANT accent (sidebar active state, header
     CTA, focus rings, icon badges, segmented controls). Ricognita Green is deliberately NOT
     used here — see the file header note on the color hierarchy. */
  --rw-brand:#799caf;
  --rw-brand-dark:#a3bece;
  --rw-brand-ink:#101922;
  --rw-brand-pale:rgba(121,156,175,.2);
  --rw-brand-pale-ink:#a3bece;
  --rw-sidebar-bg:#101922;
  --rw-sidebar-panel:#253747;
  --rw-sidebar-panel-ink:#b5c3cd;
  --rw-sidebar-ink:#93a9b7;
  --rw-font-display:"Space Grotesk",var(--rw-font-sans);
  --rw-font-sans:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --rw-font-serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --rw-radius:6px;
  --rw-radius-lg:12px;
  --rw-shadow:0 1px 2px rgba(0,0,0,.3);
  --rw-nav-w:200px;
  --rw-header-h:56px;
  --rw-header-h-mobile:52px;
  --rw-bottomnav-h:64px;
  --rw-content-max:1600px;
  --rw-radius-md:12px;
  --rw-shadow-sm:0 1px 2px rgba(0,0,0,.25);
  --rw-shadow-md:0 10px 28px rgba(0,0,0,.4);
  /* Spacing scale (Spatial Intelligence Studio, 2026-11) — 4/8/12/16/24/32/48, for new layout
     work to reference instead of arbitrary values; existing per-page margins/padding are left
     as-is except where touched directly. */
  --rw-space-1:4px;
  --rw-space-2:8px;
  --rw-space-3:12px;
  --rw-space-4:16px;
  --rw-space-5:24px;
  --rw-space-6:32px;
  --rw-space-7:48px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body.rw{
  background:var(--rw-surface);
  color:var(--rw-ink);
  font-family:var(--rw-font-sans);
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
}
/* Base anchor styling for plain/unclassed links (guide tooltip body text, inline help
   copy in aiuto.html etc) — without this they inherit the browser default blue/visited-
   purple instead of a Workspace token. Scoped to a:not([class]) so it never touches
   classed, already-styled links (.rw-btn, .db-quick-tile, .el-card, .db-section-head a,
   which all set their own color intentionally). */
a:not([class]){color:var(--rw-brand-dark);text-decoration:underline;text-decoration-color:rgba(163,190,206,.4)}
a:not([class]):visited{color:var(--rw-brand-dark)}
a:not([class]):hover{text-decoration-color:currentColor}
a:not([class]):focus-visible{outline:2px solid var(--rw-brand);outline-offset:2px;border-radius:2px}
/* Shared page header — eyebrow+h1+lede on the left, primary/secondary actions on the
   right. Previously each page reimplemented this inline (GNA/Sorveglianza/Scavo, no wrap
   on the action group) or as a page-local near-duplicate (archivio.html's .ar-head/
   .ar-actions, mappe.html's .mp-head/.mp-actions) — three slightly different behaviors
   for the same component, the inconsistent button placement/wrapping this was flagged
   for. One definition now; the action group wraps on its own instead of only the whole
   header wrapping as one block. */
.rw-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;min-width:0}
.rw-page-head .rw-h1{margin:.1em 0 .3em}
/* margin-left:auto — pushes it right on its own when a page's title block is gone (RIC-558,
   19/11/2026: nome pagina solo nell'header); harmless when a title sibling exists too, since
   .rw-page-head's justify-content:space-between already does that job in that case. */
.rw-page-head-actions{display:flex;gap:8px;flex-wrap:wrap;min-width:0;flex:0 0 auto;margin-left:auto}
@media (max-width:860px){
  .rw-page-head{gap:10px}
  .rw-page-head-actions{gap:8px}
}
.rw-eyebrow{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px;
  font-weight:600;
  color:var(--rw-muted);
}
.rw-h1{
  font-family:var(--rw-font-display);
  font-weight:700;
  font-size:22px;
  line-height:1.2;
  margin:.1em 0 .3em;
  letter-spacing:-.01em;
}
@media (max-width: 860px){
  .rw-h1{font-size:20px}
}
.rw-lede{color:var(--rw-muted);font-size:.98rem;max-width:62ch}
.rw-badge{
  display:inline-flex;align-items:center;gap:.35em;
  padding:.25em .6em;border-radius:999px;
  font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  background:var(--rw-pale);color:var(--rw-brand-dark);
  border:1px solid rgba(64,86,105,.6);
}
.rw-badge.warn{background:rgba(242,191,107,.16);color:var(--rw-accent);border-color:rgba(242,191,107,.35)}
.rw-badge.off{background:rgba(181,195,205,.14);color:var(--rw-muted);border-color:var(--rw-line)}
/* Button system — one shared vocabulary instead of page-local button CSS: default
   (secondary), .primary, .cta (brand-mint, primary call-to-action), .ghost (no fill/border,
   least emphasis), .danger (destructive — never a solid fill, so it never visually competes
   with a primary action), .icon (square, icon-only), .sm (compact), .lg (large, new —
   toolbar/hero-level emphasis). Every variant shares the same radius/focus/disabled rules
   below. Sizing follows the Spatial Intelligence Studio scale: compact 32 / standard 40 /
   large 48, text-labelled buttons keep auto width (padding + content), only icon-only and
   input controls hit the literal px heights. */
.rw-btn{
  font:inherit;font-weight:600;font-size:.88rem;
  padding:.55em 1.1em;border-radius:var(--rw-radius-md);
  border:1px solid var(--rw-line);background:var(--rw-paper);color:var(--rw-ink);
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.45em;
  min-height:40px;box-shadow:var(--rw-shadow-sm);
}
@media (prefers-reduced-motion:no-preference){
  .rw-btn{transition:border-color .12s ease,background-color .12s ease,box-shadow .12s ease,transform .12s ease}
}
.rw-btn:hover{border-color:var(--rw-muted);background:var(--rw-surface-hover);box-shadow:var(--rw-shadow-md);transform:translateY(-1px)}
.rw-btn:active{transform:translateY(0);box-shadow:var(--rw-shadow-sm)}
.rw-btn:focus-visible{outline:2px solid var(--rw-brand);outline-offset:2px}
.rw-btn.primary{background:var(--rw-brand);border-color:var(--rw-brand);color:var(--rw-brand-ink)}
.rw-btn.primary:hover{background:var(--rw-brand-dark);border-color:var(--rw-brand-dark)}
.rw-btn.cta{background:var(--rw-action);border-color:var(--rw-action);color:var(--rw-action-ink)}
.rw-btn.cta:hover{background:#78e0a2;border-color:#78e0a2}
.rw-btn.ghost{background:transparent;border-color:transparent;box-shadow:none;color:var(--rw-muted)}
.rw-btn.ghost:hover{background:var(--rw-surface-hover);border-color:transparent;box-shadow:none;color:var(--rw-ink);transform:none}
.rw-btn.danger{background:var(--rw-paper);border-color:rgba(241,120,132,.4);color:var(--rw-danger)}
.rw-btn.danger:hover{background:rgba(241,120,132,.14);border-color:var(--rw-danger)}
.rw-btn.sm{min-height:32px;padding:.4em .75em;font-size:.78rem;border-radius:9px}
.rw-btn.lg{min-height:48px;padding:.7em 1.4em;font-size:.95rem;border-radius:var(--rw-radius-lg)}
.rw-btn.icon{padding:0;width:40px;min-height:40px;flex:0 0 auto}
.rw-btn.icon.sm{width:32px;min-height:32px}
.rw-btn.icon.lg{width:48px;min-height:48px}
.rw-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
/* Linee guida mobile Workspace, punto 4 (docs/workspace-mobile-guidelines-2026-11-16.md) —
   bersagli di tocco ≥44px. .rw-btn.icon (40px), .rw-btn.icon.sm (32px) e .rw-btn.sm testuale
   (32px, usato per "Modifica"/"Rimuovi"/"Scollega" nelle righe di liste GNA/Scavo/
   Sorveglianza/Archivio) restano come sono su desktop (dimensionati per il mouse, usati
   ovunque in liste/toolbar); solo sotto 860px crescono al minimo richiesto per un tocco —
   mobile-only, nessun impatto sul layout desktop. Solo min-height per .sm testuale (non
   width): a differenza delle icone quadrate, un bottone con etichetta non deve diventare
   quadrato — la larghezza resta quella del testo + padding esistente. */
@media (max-width:860px){
  .rw-btn.icon,.rw-btn.icon.sm{width:44px;min-height:44px}
  .rw-btn.sm{min-height:44px}
}

/* Tinted icon container — the one recurring "icon with personality" primitive used across
   module cards, list rows and empty states instead of a bare small <svg>. */
.rw-icon-box{
  display:inline-flex;align-items:center;justify-content:center;border-radius:12px;flex:0 0 auto;
  background:var(--rw-brand-pale);color:var(--rw-brand-pale-ink);
}
.rw-icon-box svg{width:52%;height:52%}
.rw-icon-box.sm{width:32px;height:32px;border-radius:9px}
.rw-icon-box.md{width:42px;height:42px}
.rw-icon-box.lg{width:60px;height:60px;border-radius:16px}
.rw-icon-box.neutral{background:var(--rw-surface-hover);color:var(--rw-muted)}

/* Shared "AI assistant" section — GNA, Scavo and Sorveglianza each had their own AI-generation
   block (appunti/textarea + "Genera" button); per CLAUDE.md's own explicit rule, this is the
   one shared look: a tinted card with an icon-box header, used by all three instead of three
   slightly different boxes. Pure presentation — none of the three pages' generate/save logic
   changed. */
.rw-ai-card{background:var(--rw-brand-pale);border:1px solid rgba(121,156,175,.35);border-radius:var(--rw-radius-lg);padding:16px;margin:16px 0}
.rw-ai-card-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rw-ai-card-head h3{margin:0;font-size:.95rem;font-weight:700;font-family:var(--rw-font-sans);color:var(--rw-ink)}
.rw-ai-card-desc{color:var(--rw-muted);font-size:.82rem;margin:0 0 10px}

/* Shared account avatar. */
.rw-avatar{
  width:34px;height:34px;border-radius:50%;background:var(--rw-brand-pale);
  color:var(--rw-brand-pale-ink);display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:.82rem;border:1px solid rgba(121,156,175,.35);flex:0 0 auto;
}

/* Overflow action menu — one shared dropdown pattern (wired by shared/ui-menu.js) instead of
   cramming every row action inline (the GNA project-list complaint this round). */
.rw-menu-wrap{position:relative;display:inline-flex}
.rw-menu{
  position:absolute;top:calc(100% + 6px);right:0;min-width:180px;background:var(--rw-paper);
  border:1px solid var(--rw-line);border-radius:var(--rw-radius-md);box-shadow:var(--rw-shadow-md);
  padding:6px;display:none;z-index:40;
}
.rw-menu.open{display:block}
.rw-menu button,.rw-menu a{
  display:flex;width:100%;align-items:center;gap:.55em;padding:.55em .7em;border-radius:8px;
  border:0;background:none;font:inherit;font-size:.85rem;font-weight:600;color:var(--rw-ink);
  text-align:left;cursor:pointer;text-decoration:none;
}
.rw-menu button:hover,.rw-menu a:hover{background:var(--rw-surface-hover)}
.rw-menu button.danger,.rw-menu a.danger{color:var(--rw-danger)}

/* Designed empty state — icon + heading + one line of context + one real action, the shared
   replacement for a bare "Seleziona un elemento" sentence. */
.rw-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:48px 24px;color:var(--rw-muted)}
.rw-empty .rw-icon-box{margin-bottom:4px}
.rw-empty h3{margin:0;font-family:var(--rw-font-display);font-weight:700;font-size:1.05rem;color:var(--rw-ink)}
.rw-empty p{margin:0;font-size:.88rem;max-width:42ch}

/* Redesign QA (RIC-619) — the guided-tour card (shared/guide.js, used by every page's "❓
   Guida rapida") renders each step's own <h3> headline with no font-family override, so it
   fell back to body text instead of the display typography used for every other content
   heading in this pass. One rule covers every page's tour, present or future. */
#rwGuideCard h3{font-family:var(--rw-font-display)}

/* Shared collapsible split-panel — used by GNA, Scavo and Sorveglianza (same list+detail
   layout in all three). The list column is a flex item with an explicit width; collapsing it
   just shrinks that width to 0 — the detail column (flex:1) reclaims the space on its own, no
   grid-template-columns animation needed (unreliable across engines). */
.rw-split{display:flex;gap:14px;align-items:flex-start;margin-top:16px}
.rw-split-list-wrap{flex:0 0 300px;width:300px;overflow:hidden}
@media (prefers-reduced-motion:no-preference){
  .rw-split-list-wrap{transition:width .2s ease,opacity .2s ease}
}
.rw-split.collapsed .rw-split-list-wrap{width:0;flex-basis:0;opacity:0;pointer-events:none}
.rw-split-list-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 8px;gap:8px}
.rw-split-list-head>span{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--rw-muted)}
.rw-split-reopen{
  display:none;flex:0 0 auto;width:32px;align-self:stretch;min-height:120px;
  border:1px solid var(--rw-line);border-radius:var(--rw-radius-md);background:var(--rw-paper);
  color:var(--rw-muted);cursor:pointer;align-items:center;justify-content:center;box-shadow:var(--rw-shadow-sm);
}
.rw-split-reopen:hover{color:var(--rw-ink);background:var(--rw-surface-hover)}
.rw-split-reopen:focus-visible{outline:2px solid var(--rw-brand);outline-offset:2px}
.rw-split.collapsed .rw-split-reopen{display:flex}
@media (max-width:860px){
  .rw-split{flex-direction:column}
  .rw-split-list-wrap{width:auto!important;flex-basis:auto!important;opacity:1!important;pointer-events:auto!important}
  .rw-split-list-head,.rw-split-reopen{display:none!important}
  /* ELAB-mobile-single-pane — the rules above keep list+detail both expanded and stacked
     under this breakpoint; these show exactly one at a time instead. RWUI.setMobileScreen()
     toggles .show-detail on .rw-split; ">.rw-card" reaches only the detail pane. */
  .rw-split:not(.show-detail)>.rw-card{display:none}
  .rw-split.show-detail .rw-split-list-wrap{display:none!important}
  .rw-split.show-detail .rw-split-mobile-bar{display:flex}
}
/* Static "‹ Elenco" sibling of the detail pane — never touched by renderDetail()'s innerHTML
   rewrites. Hidden outside the mobile single-pane state (desktop, and mobile while the list
   is showing). */
.rw-split-mobile-bar{display:none;align-items:center;margin:0 0 10px}

/* Lighter collapsible (RWUI.wireDisclosure) for a horizontal control row that isn't a
   list+detail split — e.g. Archivio's filter selects. */
.rw-disclosure{max-height:200px;overflow:hidden}
.rw-disclosure.lg{max-height:420px}
@media (prefers-reduced-motion:no-preference){
  .rw-disclosure{transition:max-height .18s ease}
}
.rw-disclosure.collapsed{max-height:0!important}

/* Stato di salvataggio/generazione rappresentato da un'icona colorata, non solo da una
   frase. Condiviso da elabora-gna.html/elabora-scavo.html/elabora-sorveglianza.html
   (setSaveStatus). */
.rw-status-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;vertical-align:-3px;margin-right:4px}
.rw-status-icon[data-state="saved"]{color:var(--rw-action)}
.rw-status-icon[data-state="error"]{color:var(--rw-danger)}
.rw-status-icon[data-state="saving"]{color:var(--rw-muted)}
.rw-status-icon[data-state="dirty"]{width:9px;height:9px;border-radius:50%;background:var(--rw-accent);margin-right:7px}
@media (prefers-reduced-motion:no-preference){
  .rw-status-icon[data-state="saving"] svg{animation:rw-status-spin 1.1s linear infinite}
}
@keyframes rw-status-spin{to{transform:rotate(360deg)}}
.rw-input,.rw-select,textarea.rw-input{
  font:inherit;padding:.55em .7em;border-radius:var(--rw-radius);
  border:1px solid var(--rw-line);background:var(--rw-paper);color:var(--rw-ink);
  min-height:40px;
}
textarea.rw-input{min-height:auto}
.rw-input:focus-visible,.rw-select:focus-visible,textarea.rw-input:focus-visible{
  outline:2px solid var(--rw-brand);outline-offset:1px;
}
.rw-card{
  background:var(--rw-paper);border:1px solid var(--rw-line);
  border-radius:var(--rw-radius-lg);
}
.rw-demo-note{
  font-size:.82rem;color:var(--rw-muted);
  border-top:1px solid var(--rw-line);padding-top:.8em;margin-top:1.4em;
}
.rw-skip-link{
  position:absolute;left:-999px;top:0;background:var(--rw-ink-solid);color:#fff;
  padding:.6em 1em;z-index:1000;border-radius:0 0 var(--rw-radius) 0;
}
.rw-skip-link:focus{left:0}
@media (prefers-reduced-motion:no-preference){
  .rw-btn,.rw-card{transition:border-color .12s ease,background-color .12s ease}
}

/* Controlli Leaflet condivisi (webapp/mapview.js's createMapView — basemap toggle, zoom,
   misura) — definiti una sola volta qui, non una copia per pagina. */
.mapCtrlBox{background:var(--rw-paper);border:1px solid var(--rw-line);border-radius:var(--rw-radius);padding:6px;display:flex;flex-direction:column;gap:6px;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.mapCtrlSeg{display:flex;border:1px solid var(--rw-line);border-radius:4px;overflow:hidden}
.mapCtrlSeg button{background:var(--rw-paper);border:0;border-right:1px solid var(--rw-line);padding:.4em .6em;font:inherit;font-size:.76rem;cursor:pointer;color:var(--rw-ink)}
.mapCtrlSeg button:last-child{border-right:0}
.mapCtrlSeg button[aria-pressed="true"]{background:var(--rw-ink-solid);color:#fff}
.mapCtrlZoom{display:flex;flex-direction:column;border:1px solid var(--rw-line);border-radius:4px;overflow:hidden}
.mapCtrlZoom button{background:var(--rw-paper);border:0;border-bottom:1px solid var(--rw-line);padding:.3em .5em;font:inherit;cursor:pointer;color:var(--rw-ink)}
.mapCtrlZoom button:last-child{border-bottom:0}
/* display:inline-flex centering added (RIC-619, redesign QA) — these buttons now hold an
   inline RWIcons SVG on several pages instead of a bare emoji glyph; default inline layout
   left it slightly off-baseline-centered. Harmless for any existing bare-text usage (a single
   inline child centers identically either way). */
.mapCtrlBtn{background:var(--rw-paper);border:1px solid var(--rw-line);border-radius:4px;padding:.3em .5em;cursor:pointer;color:var(--rw-ink);display:inline-flex;align-items:center;justify-content:center}
.mapCtrlBtn[aria-pressed="true"]{background:var(--rw-pale)}
.mapCtrlInfo{background:rgba(37,55,71,.95);border:1px solid var(--rw-line);border-radius:4px;padding:.3em .5em;font-size:.72rem;white-space:nowrap;color:var(--rw-ink)}
/* RIC-564 — l'avviso IGM (mapview.js) è più lungo del riepilogo della misura (che resta
   nowrap, sempre breve: "Distanza: 123 m") — senza questa riga il testo più lungo
   sconfinava fuori dal bordo della mappa invece di andare a capo. */
.mapCtrlIgmHint{white-space:normal;max-width:220px;text-align:right}
/* RIC-560 — mini-mappa espandibile a schermo intero: pattern condiviso da Elabora GNA e
   Archivio. Un solo .rw-map-mini può essere espanso alla volta in tutta l'app. */
.rw-map-mini{position:relative}
.rw-map-expand-btn{position:absolute;top:8px;right:8px;z-index:1000;width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--rw-paper);border:1px solid var(--rw-line);box-shadow:0 1px 5px rgba(0,0,0,.4);cursor:pointer;font-size:16px;line-height:1;color:var(--rw-ink)}
body.rw-map-fullscreen{overflow:hidden}
body.rw-map-fullscreen .rw-header,
body.rw-map-fullscreen .rw-bottomnav,
body.rw-map-fullscreen .rw-nav,
body.rw-map-fullscreen .rw-page-head{display:none}
.rw-map-mini.rw-map-expanded{
  position:fixed;inset:0;z-index:1000;margin:0;border:0;border-radius:0;height:100dvh!important;
  padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  box-sizing:border-box;
}
/* Nascosto di default (desktop): shared/map-controls.js lo inserisce sempre, a ogni
   viewport, ma serve solo sotto la media query mobile qui sotto. */
.rw-attrib-toggle{display:none}
/* Linee guida mobile Workspace, punto 4 — bersagli di tocco ≥44px. */
@media (max-width:860px){
  .mapCtrlSeg button,.mapCtrlZoom button,.mapCtrlBtn{min-height:44px;min-width:44px}
  /* RIC-563 — compressa dietro un'icona "ⓘ" solo sotto 860px, dove il testo esteso si
     estendeva verso il centro della mappa invece di restare incollato nell'angolo. */
  .leaflet-control-attribution{max-width:0;padding:0 !important;margin:0 !important;border:0;overflow:hidden;opacity:0;white-space:nowrap;transition:max-width .15s ease,opacity .15s ease}
  .leaflet-control-attribution.rw-attrib-open{max-width:280px;padding:0 6px !important;opacity:1;background:var(--rw-paper);color:var(--rw-ink)}
  .rw-attrib-toggle{background:var(--rw-paper);border:1px solid var(--rw-line);border-radius:4px;width:44px;height:44px;font-size:15px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--rw-muted)}
  /* RIC-562 — stesso .rw-bottomnav fisso a piena larghezza (shell.css) scorre sopra
     qualunque contenuto con cui coincide durante lo scroll, angolo Leaflet incluso. */
  .rw-map-mini:not(.rw-map-expanded){margin-bottom:calc(var(--rw-bottomnav-h) + 24px + env(safe-area-inset-bottom,0px))}
  dialog .rw-map-mini:not(.rw-map-expanded){margin-bottom:0}
}
