:root {
  --forest: #152c26;
  --panel: #1c352d;
  --line: #375046;
  --muted: #a9b8ac;
  --cream: #f4f0e5;
  --accent: #f1ca83;
}

body { font-family: "Trebuchet MS", sans-serif; color: var(--cream); background: var(--forest); height: 100dvh; }
button, select, input { font: inherit; }
button { transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, select:focus-visible, a:focus-visible, input:focus-visible, #map:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 4px; }
aside { width: 370px; background: var(--forest); border-color: var(--line); box-shadow: 6px 0 28px #152c2626; }
.header { padding: 24px; background: var(--forest); border-color: var(--line); gap: 10px; }
.header-logo { width: 42px; height: 42px; }
.header h1 { color: var(--cream); font-size: 1.05rem; font-weight: 700; letter-spacing: -.035em; }
.brand-caption { font-size: .55rem; color: var(--muted); letter-spacing: .12em; margin-top: 6px; }
.user-badge.pro { background: #284637; border: 1px solid #547451; color: #d0dec0; font-size: .55rem; border-radius: 20px; padding: 6px 8px; white-space: nowrap; }
.content { padding: 26px 24px 20px; gap: 19px; scrollbar-width: thin; scrollbar-color: var(--line) var(--forest); }
.eyebrow { color: var(--accent); font-size: .6rem; letter-spacing: .16em; font-weight: 700; }
.explore-intro h2 { font-family: Georgia, serif; font-size: 2.15rem; line-height: 1.08; letter-spacing: -.04em; font-weight: 400; margin: 13px 0; }
.explore-intro p, .area-summary { color: var(--muted); font-size: .78rem; line-height: 1.65; }
.area-card { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.section-heading { display: flex; align-items: center; gap: 10px; }
.section-heading h3 { font-size: .82rem; font-weight: 600; }
.step-number { color: var(--accent); font-size: .6rem; letter-spacing: .08em; border: 1px solid #746443; border-radius: 50%; width: 25px; height: 25px; display: grid; place-items: center; }
.draw-btn, .gps-btn { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 12px 8px; border-radius: 8px; font-size: .76rem; cursor: pointer; }
.draw-btn { background: var(--accent); border: 1px solid var(--accent); color: var(--forest); font-weight: 700; margin-top: 17px; }
.draw-btn:hover { background: #f8dba6; }
.draw-btn[aria-pressed="true"] { background: #fff0cf; box-shadow: 0 0 0 3px #f1ca8326; }
.gps-btn { background: transparent; color: var(--cream); border: 1px solid var(--line); margin-top: 8px; font-weight: 400; }
.gps-btn:hover { background: #2b493c; }
.draw-btn svg, .gps-btn svg, .map-tool-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.area-summary { margin-top: 13px; font-size: .68rem; }
.text-btn { border: none; padding: 6px 0 0; background: transparent; color: var(--accent); cursor: pointer; font-size: .68rem; text-decoration: underline; text-underline-offset: 3px; }
.live-status { background: transparent; border-color: var(--line); padding: 13px 14px; border-radius: 10px; font-size: .67rem; color: var(--muted); gap: 12px; line-height: 1.6; }
.live-status b { color: var(--cream); font-weight: 400; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b1c7a0; margin-right: 5px; }
.sync-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--accent); font-size: 1.3rem; flex-shrink: 0; cursor: pointer; }
.sync-btn:hover { background: #2b493c; }
.sync-btn:disabled { opacity: .4; cursor: default; }
.is-loading .status-dot { animation: breathe 1s ease-in-out infinite alternate; }
.filter-group { gap: 8px; }
label { font-size: .65rem; text-transform: none; letter-spacing: .02em; color: var(--muted); }
select, input[type="text"], input[type="password"], input[type="email"] { border-color: var(--line); background: var(--panel); color: var(--cream); padding: 12px 10px; font-size: .76rem; border-radius: 8px; }
.card { background: var(--panel); border-color: var(--line); border-radius: 12px; padding: 16px; }
.card-title { color: var(--accent); border-color: var(--line); font-size: .68rem; letter-spacing: .05em; }
#detailsContent p { color: var(--muted) !important; line-height: 1.65; }
#detailsContent > div > div { background: var(--forest) !important; padding: 8px !important; }
.model-note { font-size: .65rem; color: var(--muted); line-height: 1.65; padding-top: 10px; border-top: 1px solid var(--line); }
.logout-btn { margin-top: auto; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; font-size: .7rem; cursor: pointer; }
.logout-btn:hover { color: var(--cream); background: var(--panel); }
main { min-width: 0; min-height: 0; }
#map { background: #e1e5d9; }
#map.is-drawing, #map.is-drawing .leaflet-interactive { cursor: crosshair; touch-action: none; }
.map-toolbar { position: absolute; top: 24px; left: 72px; z-index: 800; display: flex; align-items: center; gap: 8px; background: var(--cream); padding: 6px 8px 6px 16px; border: 1px solid #d6dace; border-radius: 12px; box-shadow: 0 4px 20px #152c2626; color: var(--forest); }
.map-toolbar-label { font-size: .55rem; letter-spacing: .1em; font-weight: 700; margin-right: 8px; }
.map-tool-btn { display: flex; align-items: center; gap: 7px; padding: 9px 11px; min-height: 40px; border: 1px solid #cdd4c7; border-radius: 7px; background: transparent; color: var(--forest); font-size: .74rem; cursor: pointer; }
.map-tool-btn:hover { background: #e3e7da; }
.map-tool-btn[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--accent); }
.map-hint { position: absolute; top: 91px; left: 72px; right: 24px; max-width: 500px; z-index: 800; padding: 10px 13px; background: #f4f0e5f2; color: var(--forest); border: 1px solid #d6dace; border-radius: 9px; font-size: .71rem; line-height: 1.5; pointer-events: none; box-shadow: 0 3px 15px #152c2610; }
.map-legend { position: absolute; bottom: 34px; left: 24px; z-index: 800; width: 255px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: #152c26f5; box-shadow: 0 4px 24px #152c2633; pointer-events: none; }
.map-legend .eyebrow { font-size: .56rem; }
.legend-scale { display: flex; align-items: center; gap: 10px; font-size: .65rem; color: var(--cream); margin: 12px 0; }
.legend-gradient { flex: 1; height: 6px; border-radius: 8px; background: linear-gradient(90deg, #2563eb, #22c55e, #facc15, #f97316, #dc2626); }
.map-legend p { color: var(--muted); font-size: .6rem; line-height: 1.4; }
.leaflet-control-zoom { border: 1px solid #d6dace !important; border-radius: 9px !important; overflow: hidden; box-shadow: 0 4px 16px #152c2626 !important; margin: 24px 0 0 20px !important; }
.leaflet-control-zoom a { background: var(--cream) !important; color: var(--forest) !important; border-color: #d6dace !important; width: 34px !important; height: 34px !important; line-height: 34px !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--cream); color: var(--forest); }
.leaflet-popup-content { font-family: "Trebuchet MS", sans-serif; }
.paywall-overlay { background: #10231fe8; }
.auth-box { background: var(--forest); border-color: var(--line); padding: 32px; border-radius: 20px; box-shadow: 0 24px 90px #0a211c66; }
.auth-title { font-family: Georgia, serif; font-weight: 400; font-size: 1.85rem; color: var(--cream); }
.auth-sub { color: var(--muted); line-height: 1.6; }
.primary-btn { background: var(--accent); color: var(--forest); border-radius: 9px; }
.primary-btn:hover { background: #f8dba6; }
.auth-link { color: var(--accent); font-size: .76rem; }
.auth-message { color: var(--muted); }
.paypal-plan-box { background: var(--panel); border-color: var(--line); }
.paypal-plan-box h3 { color: var(--accent); }
.view-toggle { background: var(--forest); border-color: var(--line); }
.toggle-btn { color: var(--muted); padding: 16px 12px; }
.toggle-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--panel); }
@keyframes breathe { from { opacity: .3; } to { opacity: 1; } }
@media (min-width: 769px) { .explore-intro { animation: reveal 500ms ease both; } .area-card { animation: reveal 500ms 80ms ease both; } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) and (min-width: 769px) { aside { width: 330px; } .header { padding: 20px 18px; } .content { padding: 24px 18px; } .map-toolbar-label { display: none; } }
@media (max-width: 768px) {
  aside { width: 100%; }
  .header { padding: 18px 22px; }
  .content { padding: 22px; }
  .explore-intro h2 { font-size: 2rem; }
  .map-toolbar { top: 14px; left: 64px; right: 12px; width: fit-content; padding: 5px; gap: 5px; }
  .map-toolbar-label { display: none; }
  .map-tool-btn { font-size: .69rem; padding: 8px; min-height: 40px; }
  .leaflet-control-zoom { margin: 14px 0 0 12px !important; }
  .map-hint { left: 64px; top: 77px; right: 12px; font-size: .65rem; }
  .map-legend { bottom: 32px; left: 12px; width: 225px; padding: 14px; }
  .auth-box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Fungaie salvate */
.fungaie-card .gps-btn { margin-top: 8px; }
.fungaie-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fungaie-item { display: flex; gap: 6px; }
.fungaie-open { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; background: #020617; border: 1px solid #1e293b; border-radius: 8px; color: #f8fafc; cursor: pointer; text-align: left; font-size: .76rem; }
.fungaie-open small { color: #94a3b8; font-size: .66rem; }
.fungaie-open:hover { border-color: #34d399; }
.fungaie-delete { width: 36px; background: transparent; border: 1px solid #334155; border-radius: 8px; color: #94a3b8; cursor: pointer; }
.fungaie-delete:hover { color: #f97316; border-color: #f97316; }
.fungaia-pin { display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--cream); border: 2px solid var(--forest); border-radius: 50%; box-shadow: 0 2px 8px #0006; }
.fungaia-form { display: flex; flex-direction: column; gap: 4px; }
.fungaia-form label { color: var(--forest); }
.fungaia-form input, .fungaia-form select, .fungaia-form textarea { width: 100%; background: #fff; color: #152c26; border: 1px solid #cdd4c7; border-radius: 6px; padding: 7px; font: inherit; font-size: .8rem; }
.fungaia-popup-btn { margin-top: 8px; padding: 7px 12px; background: var(--forest); color: var(--accent); border: none; border-radius: 6px; font-weight: 700; font-size: .75rem; cursor: pointer; }

/* Filtri sulla mappa */
.map-filters { position: absolute; top: 24px; right: 24px; z-index: 800; display: flex; flex-direction: column; gap: 6px; width: 240px; padding: 10px; background: var(--cream); border: 1px solid #d6dace; border-radius: 12px; box-shadow: 0 4px 20px #152c2626; color: var(--forest); }
.map-filters label { display: flex; flex-direction: column; gap: 3px; font-size: .6rem; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.map-filters select { width: 100%; padding: 8px; background: #fff; color: #152c26; border: 1px solid #cdd4c7; border-radius: 8px; font: inherit; font-size: .8rem; text-transform: none; letter-spacing: 0; }

/* Scheda del fungo e modello di crescita */
.cell-sheet { position: absolute; z-index: 900; right: 24px; bottom: 34px; width: 410px; max-height: calc(100% - 190px); overflow-y: auto; background: #0f1d1a; color: #f8fafc; border: 1px solid #1e3a34; border-radius: 14px; box-shadow: 0 8px 32px #0008; }
.cell-sheet header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #152c26; border-bottom: 1px solid #1e3a34; }
.cell-sheet h3 { font-size: .85rem; }
.cell-sheet header button { background: none; border: 0; color: #cbd5e1; font-size: 1.1rem; cursor: pointer; padding: 4px 8px; }
#cellSheetBody { padding: 14px 16px 18px; }
#cellSheetBody h4 { margin: 18px 0 8px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cs-best { display: flex; flex-direction: column; gap: 3px; padding: 12px; background: #064e3b; border: 1px solid #34d399; border-radius: 10px; font-size: .7rem; color: #a7f3d0; }
.cs-best b { font-size: 1rem; color: #fff; }
.cs-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cs-tiles div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: #020617; border: 1px solid #1e293b; border-radius: 8px; font-size: .62rem; color: #94a3b8; }
.cs-tiles b { font-size: .88rem; color: #f8fafc; }
.cs-note { margin-top: 8px; font-size: .64rem; line-height: 1.5; color: #94a3b8; }
.cs-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #1e293b; }
.cs-stack i { height: 100%; }
.cs-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: .7rem; color: #cbd5e1; }
.cs-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.cs-species { margin-top: 6px; background: #020617; border: 1px solid #1e293b; border-radius: 8px; }
.cs-species summary { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 9px 10px; font-size: .78rem; cursor: pointer; list-style: none; }
.cs-species summary .cs-bar { grid-column: 1 / -1; }
.cs-bar { height: 6px; background: #1e293b; border-radius: 3px; overflow: hidden; }
.cs-bar i { display: block; height: 100%; }
.cs-why { padding: 2px 10px 12px; }
.cs-limit { font-size: .7rem; color: #e2e8f0; margin: 4px 0 8px; }
.cs-factor { margin-top: 8px; }
.cs-factor-head { display: flex; justify-content: space-between; font-size: .7rem; margin-bottom: 3px; }
.cs-factor small { display: block; margin-top: 3px; font-size: .62rem; color: #94a3b8; }
@media (max-width: 768px) {
  .cell-sheet { left: 0; right: 0; bottom: 0; width: auto; max-height: 68%; border-radius: 16px 16px 0 0; }
}

/* Scheda del fungo - hero, phenology */
.cs-hero { padding: 12px; background: #0b2e26; border: 1px solid #34d399; border-radius: 12px; }
.cs-hero-label { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #a7f3d0; margin-bottom: 6px; }
.cs-hero-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: 6px; }
.cs-phen-state { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #020617; border: 1px solid #1e293b; border-radius: 10px; font-size: .72rem; line-height: 1.45; color: #cbd5e1; }
.cs-phen-state b { font-size: .95rem; color: #fff; }
.cs-stagebar { position: relative; display: flex; height: 28px; margin-top: 10px; border-radius: 8px; overflow: visible; }
.cs-stagebar > div { display: flex; align-items: center; justify-content: center; overflow: hidden; color: #04210f; font-size: .56rem; font-weight: 700; }
.cs-stagebar > div:first-child { border-radius: 8px 0 0 8px; }
.cs-stagebar > div:last-of-type { border-radius: 0 8px 8px 0; }
.cs-stagebar em { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px #0f1d1a; }
.cs-chart { display: flex; align-items: flex-end; gap: 1px; height: 46px; margin-top: 14px; padding-bottom: 1px; border-bottom: 1px solid #334155; }
.cs-chart i { flex: 1; background: #38bdf8; border-radius: 2px 2px 0 0; }
.cs-markers { position: relative; height: 20px; }
.cs-markers span { position: absolute; top: 2px; transform: translateX(-50%); font-size: .8rem; }
.cs-markers .cs-today { font-size: .58rem; color: #facc15; font-weight: 700; top: 4px; }
.cs-cond { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cs-cond div { display: flex; gap: 8px; align-items: flex-start; font-size: .68rem; color: #cbd5e1; line-height: 1.4; }
.cs-cond i { flex: none; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; }
.cs-cond b { display: block; color: #fff; }

/* Segnalazioni pubbliche (GBIF) */
.finding-pin { display: flex; align-items: center; justify-content: center; font-size: 17px; background: #0f172a; border: 2px solid #38bdf8; border-radius: 50%; box-shadow: 0 2px 6px #0006; }
.map-filters .map-check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .68rem; letter-spacing: 0; text-transform: none; font-weight: 600; cursor: pointer; }
.map-filters .map-check input { width: auto; accent-color: #0ea5e9; }
.map-filters .map-check small { flex-basis: 100%; font-weight: 400; color: #4b5563; font-size: .62rem; }

/* Avviso tessere della mappa non raggiungibili */
.tile-warning { position: absolute; z-index: 1000; left: 12px; right: 12px; bottom: 56px; padding: 10px 14px; background: #7c2d12; color: #fff; border-radius: 10px; font-size: .78rem; line-height: 1.4; box-shadow: 0 4px 16px #0006; }

/* Mappa di calore continua */
.heat-overlay { image-rendering: auto; mix-blend-mode: normal; pointer-events: none; }

/* Toast notifications */
.toast-root { position: fixed; top: 16px; right: 16px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 10px; background: #1e293b; color: #f8fafc; font-size: .82rem; line-height: 1.4; border-left: 4px solid #64748b; box-shadow: 0 4px 20px rgba(0,0,0,0.5); opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; max-width: 360px; }
.toast.in { opacity: 1; transform: translateY(0); }
.toast-info { border-left-color: #38bdf8; }
.toast-success { border-left-color: #34d399; }
.toast-warn { border-left-color: #facc15; }
.toast-error { border-left-color: #f97316; }

/* Modal dialog */
.modal-backdrop { position: fixed; inset: 0; z-index: 9500; background: rgba(2, 6, 23, 0.75); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; padding: 20px; overflow-y: auto; }
.modal-box { background: #0f172a; border: 1px solid #334155; border-radius: 16px; padding: 24px; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.6); color: #f8fafc; }
.modal-box h3 { color: #34d399; font-size: 1.1rem; margin-bottom: 12px; }
.modal-box p { color: #cbd5e1; font-size: .88rem; line-height: 1.55; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-btn { padding: 10px 18px; border-radius: 8px; border: none; font-weight: 700; font-size: .82rem; cursor: pointer; transition: background .15s; }
.modal-btn.cancel { background: #334155; color: #f8fafc; }
.modal-btn.cancel:hover { background: #475569; }
.modal-btn.primary { background: #10b981; color: white; }
.modal-btn.primary:hover { background: #059669; }
.modal-btn.danger { background: #dc2626; color: white; }
.modal-btn.danger:hover { background: #b91c1c; }

/* Top cells panel */
#topCellsPanel { padding: 12px; background: #1e293b; border: 1px solid #334155; border-radius: 10px; }
#topCellsPanel h4 { margin: 0 0 8px; }
.top-cell-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 10px; margin-bottom: 6px; background: #0f172a; border: 1px solid #1e293b; border-radius: 8px; color: #f8fafc; font-size: .78rem; text-align: left; cursor: pointer; }
.top-cell-btn:hover { border-color: #34d399; }
.top-cell-btn b { color: #34d399; }

/* Legal links */
.legal-links a { color: #94a3b8; text-decoration: underline; }
.legal-links a:hover { color: #34d399; }

/* ⚡ NUOVO OVERLAY: badge in basso a destra, non blocca la mappa */
#loadingOverlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 40px);
}
#loadingOverlay.hidden { display: none !important; }
#loadingOverlay .mushroom-loader {
  font-size: 2rem;
  animation: mushroom-float 1s ease-in-out infinite alternate;
  line-height: 1;
}
#loadingOverlay .loader-text {
  color: #34d399;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 0.05em;
}
@keyframes mushroom-float {
  0% { transform: translateY(0) rotate(-10deg); }
  100% { transform: translateY(-8px) rotate(10deg); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .toast-root { left: 16px; right: 16px; top: 8px; max-width: none; }
  .toast { max-width: none; }
  #loadingOverlay { bottom: 16px; right: 16px; padding: 10px 16px; }
  #loadingOverlay .mushroom-loader { font-size: 1.5rem; }
  #loadingOverlay .loader-text { font-size: .78rem; }
}

/* Mobile: mappa più pulita. Filtri in un pannello a comparsa (pulsante "Filtri"), legenda compatta, suggerimento che si dissolve */
.filters-fab { display: none; }
@media (max-width: 768px) {
  .filters-fab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: absolute; right: 12px; bottom: 12px; z-index: 850; width: 56px; height: 56px; border: 1px solid #d6dace; border-radius: 14px; background: var(--cream); color: var(--forest); font: inherit; font-size: .6rem; font-weight: 700; box-shadow: 0 4px 16px #152c2633; cursor: pointer; }
  .filters-fab span:first-child { font-size: 1.2rem; line-height: 1; }
  .filters-fab[aria-expanded="true"] { background: var(--forest); color: var(--accent); border-color: var(--forest); }

  .map-filters { display: none; top: auto; left: 12px; right: 12px; bottom: 80px; width: auto; max-height: 60%; overflow-y: auto; z-index: 850; padding: 12px; gap: 12px 10px; grid-template-columns: 1fr 1fr; flex-direction: row; }
  .map-filters.open { display: grid; }
  .map-filters label { min-width: 0; font-size: .62rem; }
  .map-filters select { font-size: 16px; min-height: 44px; padding: 8px; text-overflow: ellipsis; }
  .map-filters .map-check { grid-column: 1 / -1; font-size: .8rem; }

  .map-legend { left: 12px; right: 80px; bottom: 12px; width: auto; padding: 8px 12px; }
  .map-legend .legend-scale { margin: 6px 0; }
  .map-hint { padding: 6px 10px; font-size: .62rem; transition: opacity .4s ease; }
  .map-hint.faded { opacity: 0; }
  #loadingOverlay { bottom: 80px; right: 12px; }
}
