:root{
  --bg:#f4eee5;--paper:#fffaf4;--paper2:#fbf5ed;--ink:#2d2925;--muted:#7b736b;--line:#e5d9cb;
  --terracotta:#c66a4b;--terracotta-dark:#a85037;--ochre:#d9a24b;--sage:#83937c;--shadow:0 16px 45px rgba(74,49,31,.12);
  --laporte:#c8453a;--cpc:#c8453a;--dmcl:#242424;--concurrent:#92908b;--prospect:#4f8f64;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{font-size:14px}button,input,select{font:inherit;color:inherit}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}h1,h2,h3,p{margin-top:0}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#a16c53;margin-bottom:7px}.wide{width:100%}.primary,.secondary,.ghost,.iconBtn{border:0;border-radius:12px;min-height:42px;padding:10px 14px;font-weight:700}.primary{background:var(--terracotta);color:white;box-shadow:0 7px 18px rgba(198,106,75,.23)}.primary:hover{background:var(--terracotta-dark)}.primary.compact{display:inline-flex;align-items:center;min-height:36px;padding:8px 11px}.secondary{background:#f2e5d8;color:#6d493a}.secondary:hover{background:#ead7c6}.ghost{background:#fff8f0;border:1px solid var(--line);color:#554941}.ghost:hover{background:white}.iconBtn{width:40px;padding:0;background:#f3e8dc;font-size:24px;line-height:1}.alert,.success{padding:11px 13px;border-radius:10px;margin:12px 0}.alert{background:#f8ddd6;color:#8b3f30}.success{background:#dcebdc;color:#356440}.logoMark{font-weight:950;font-size:34px;letter-spacing:-.08em}.logoMark span{color:var(--terracotta);font-size:.45em;vertical-align:middle}.logoMark.small{font-size:27px}.brand{display:flex;align-items:center;gap:10px}.brand strong{display:block;letter-spacing:.08em;font-size:14px}.brand small{display:block;color:var(--muted);font-size:8px;letter-spacing:.17em;margin-top:2px}
input,select{width:100%;min-height:43px;border:1px solid var(--line);border-radius:11px;background:#fffdf9;padding:9px 11px;outline:none}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid rgba(217,162,75,.38);outline-offset:2px}label{display:block;font-size:12px;font-weight:700;margin:12px 0 6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px}.sectionTitle{font-size:10px;font-weight:850;letter-spacing:.08em;color:#79675c;margin-bottom:9px}
/* Login */
.loginPage{min-height:100dvh;display:grid;place-items:center;padding:24px}.loginShell{width:min(980px,100%);min-height:610px;display:grid;grid-template-columns:1fr 1fr;background:var(--paper);border:1px solid #eaded2;border-radius:30px;overflow:hidden;box-shadow:var(--shadow)}.loginCard{padding:70px 68px;align-self:center}.loginCard h1{font-size:40px;line-height:1.05;letter-spacing:-.04em;margin:18px 0 12px}.loginArt{position:relative;background:linear-gradient(160deg,#c26a4c 0%,#d58b62 35%,#e2ad6b 65%,#8b9074 150%);overflow:hidden}.loginArt p{position:absolute;left:11%;bottom:8%;font-size:52px;line-height:.92;font-weight:900;letter-spacing:.05em;color:#fff6eb}.sun{position:absolute;width:190px;height:190px;border-radius:50%;background:#f3c875;right:10%;top:11%;box-shadow:0 0 0 28px rgba(255,245,216,.12)}.ridge{position:absolute;left:-10%;right:-10%;bottom:-7%;height:49%;background:#756a5c;clip-path:polygon(0 65%,18% 48%,33% 60%,48% 21%,59% 51%,72% 30%,100% 62%,100% 100%,0 100%)}.ridge.r2{bottom:-18%;background:#4f4e45;transform:scaleX(1.1)}
/* App */
.appShell{height:100dvh;overflow:hidden}.topbar{height:72px;background:rgba(255,250,244,.97);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 22px;position:relative;z-index:1000}.topActions{display:flex;align-items:center;gap:9px}.userChip{display:flex;flex-direction:column;align-items:flex-end;padding:6px 10px}.userChip span{font-weight:750}.userChip small{color:var(--muted);font-size:9px;margin-top:2px}.workspace{height:calc(100dvh - 72px);display:grid;grid-template-columns:350px minmax(0,1fr);position:relative}.filtersPanel{background:rgba(255,250,244,.98);border-right:1px solid var(--line);padding:19px 17px 14px;display:flex;flex-direction:column;min-height:0;z-index:600}.panelHead{position:relative}.panelHead h1{font-size:24px;letter-spacing:-.03em;margin-bottom:15px}.fieldGroup{display:grid;gap:9px}.familyCard{background:#f8efe6;border:1px solid #eadccd;border-radius:14px;margin-top:12px;padding:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.familyCard .sectionTitle{grid-column:1/-1}.familyCard label{display:flex;align-items:center;gap:5px;margin:0;font-size:11px}.familyCard input{width:auto;min-height:auto;accent-color:var(--terracotta)}.resultMeta{display:flex;align-items:baseline;gap:5px;color:var(--muted);font-size:11px;padding:13px 2px 10px}.resultMeta strong{color:var(--ink);font-size:14px}.entityList{overflow:auto;margin:12px -6px 0;padding:0 6px 80px}.entityRow{width:100%;display:grid;grid-template-columns:13px minmax(0,1fr) auto;gap:9px;align-items:center;text-align:left;border:0;border-bottom:1px solid #eee2d6;background:transparent;padding:13px 7px}.entityRow:hover{background:#f7eee5;border-radius:10px}.entityRow strong{display:block;font-size:12px;line-height:1.3}.entityRow small{display:block;color:var(--muted);font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entityRow em{font-style:normal;font-size:10px;color:#8b654e;background:#f1dfd0;border-radius:12px;padding:4px 7px}.statusDot{width:9px;height:9px;border-radius:50%;display:inline-block;box-shadow:0 0 0 1px rgba(255,255,255,.9)}.statusDot.laporte{background:var(--laporte)}.statusDot.cpc{background:var(--cpc)}.statusDot.dmcl{background:var(--dmcl)}.statusDot.concurrent{background:var(--concurrent)}.statusDot.prospect{background:var(--prospect)}.empty,.listNote{color:var(--muted);font-size:11px;padding:16px 6px}.mapArea{position:relative;min-width:0}.mapArea #map{height:100%;background:#e7e1d8}.mapLegend{position:absolute;right:14px;top:14px;z-index:500;background:rgba(255,250,244,.94);backdrop-filter:blur(8px);border:1px solid rgba(229,217,203,.9);border-radius:14px;padding:9px 11px;box-shadow:0 8px 25px rgba(70,51,37,.11);display:flex;flex-wrap:wrap;gap:7px 11px;font-size:10px}.mapLegend span{display:flex;align-items:center;gap:5px}.detailDrawer{position:absolute;right:14px;top:14px;bottom:14px;width:min(410px,calc(100% - 28px));z-index:900;background:rgba(255,250,244,.98);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:22px;overflow:auto}.detailDrawer h2{font-size:26px;line-height:1.05;letter-spacing:-.035em;margin:6px 40px 9px 0}.detailDrawer>.iconBtn{position:sticky;top:0;float:right;z-index:2}.statusBadge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:850;color:white}.statusBadge.laporte{background:var(--laporte)}.statusBadge.cpc{background:var(--cpc)}.statusBadge.dmcl{background:var(--dmcl)}.statusBadge.concurrent{background:var(--concurrent)}.statusBadge.prospect{background:var(--prospect)}.categoryChips{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0 17px}.categoryChips span{font-size:10px;background:#eee6dc;color:#5d5149;border-radius:999px;padding:5px 8px}.categoryChips .huntChip{background:#efd4bd;color:#7a472f}.detailField{padding:11px 0;border-top:1px solid #eee2d6}.detailField dt{font-size:10px;font-weight:800;color:#967761;margin-bottom:4px}.detailField dd{margin:0;line-height:1.45;overflow-wrap:anywhere}.detailField a{color:#a45038;text-decoration:underline;text-underline-offset:2px}.mobileFab,.mobileOnly{display:none}
/* Admin */
.adminPage{min-height:100dvh}.adminTop{height:72px;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.adminGrid{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:22px;padding:22px;max-width:1400px;margin:auto}.adminList,.adminEdit{background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 24px rgba(74,49,31,.07);padding:20px}.adminSectionHead{display:flex;align-items:flex-start;justify-content:space-between}.adminSectionHead h1{font-size:25px}.userRow{display:flex;justify-content:space-between;gap:10px;padding:12px 4px;border-top:1px solid #eee2d6}.userRow:hover{background:#f8efe7}.userRow strong{display:block;font-size:12px}.userRow small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.userRow.inactive{opacity:.55}.userTags{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap}.userTags span{font-size:9px;background:#eee5da;padding:4px 6px;border-radius:999px}.userTags .warn{background:#efc5b8;color:#7d3424}.adminEdit h2{font-size:28px}.toggleLine{display:flex;gap:20px;align-items:center;margin:10px 0}.toggleLine label{display:flex;align-items:center;gap:7px;margin:0}.toggleLine input{width:auto;min-height:auto;accent-color:var(--terracotta)}.countryBox{margin:16px 0;border:1px solid var(--line);border-radius:14px;background:#fbf5ee;overflow:hidden}.countryBoxHead{display:grid;grid-template-columns:1fr 220px;gap:12px;align-items:center;padding:12px;border-bottom:1px solid var(--line)}.countryChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:340px;overflow:auto;padding:8px}.countryChoices label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;margin:0;padding:8px;border-radius:8px;font-weight:600}.countryChoices label:hover{background:#f0e2d4}.countryChoices input{width:auto;min-height:auto;accent-color:var(--terracotta)}.countryChoices small{font-size:9px;color:var(--muted)}
@media(max-width:900px){.loginShell{grid-template-columns:1fr;max-width:560px}.loginArt{display:none}.loginCard{padding:48px}.adminGrid{grid-template-columns:1fr}.countryChoices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.topbar{height:62px;padding:0 10px}.brand small{display:none}.userChip{display:none}.topActions{gap:5px}.topActions .ghost{min-height:36px;padding:7px 9px;font-size:11px}.workspace{height:calc(100dvh - 62px);display:block}.filtersPanel{position:absolute;inset:0;z-index:800;width:100%;display:none;border:0;padding:14px;background:rgba(255,250,244,.99)}.mobileListOpen .filtersPanel{display:flex}.mobileListOpen .mapArea{display:none}.mobileOnly{display:inline-flex}.panelHead{display:flex;align-items:flex-start;justify-content:space-between}.panelHead h1{font-size:22px}.familyCard{margin-top:9px}.entityList{padding-bottom:85px}.mapArea{height:100%}.mapLegend{left:10px;right:10px;top:10px;justify-content:center}.mobileFab{display:block;position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:1000;background:#5a493f;color:white;border:0;border-radius:999px;padding:12px 22px;font-weight:800;box-shadow:0 8px 25px rgba(51,42,35,.28)}.detailDrawer{position:fixed;top:70px;bottom:calc(14px + env(safe-area-inset-bottom));right:10px;width:calc(100% - 20px);border-radius:18px}.loginPage{padding:0}.loginShell{min-height:100dvh;border:0;border-radius:0}.loginCard{padding:45px 25px}.loginCard h1{font-size:35px}.adminTop{padding:0 12px}.adminGrid{padding:10px}.adminList,.adminEdit{border-radius:14px;padding:14px}.grid2{grid-template-columns:1fr}.countryBoxHead{grid-template-columns:1fr}.countryChoices{grid-template-columns:1fr}.toggleLine{align-items:flex-start;flex-direction:column;gap:9px}}
.mapLegend .ringToggle{display:flex;align-items:center;gap:5px;margin:0;font-size:10px;font-weight:700;padding-right:5px;border-right:1px solid var(--line)}.mapLegend .ringToggle input{width:auto;min-height:auto;accent-color:var(--terracotta)}
.brand small .byGuy{font-weight:500;letter-spacing:.2px;text-transform:none;color:#a56d52;margin-left:4px}
/* V3.4 interaction fixes */
.maplibregl-canvas-container,.maplibregl-canvas{pointer-events:none!important}
.mapTools{position:absolute;right:14px;top:62px;z-index:520;display:flex;gap:8px}.mapTools .compact{min-height:34px;padding:7px 11px;background:rgba(255,250,244,.95);box-shadow:0 6px 18px rgba(70,51,37,.10)}
.entityRow.selected{background:#f3e3cf;border-radius:10px;box-shadow:inset 3px 0 0 #d19b44}.entityRow.selected strong{color:#7b4d2e}
.mapPopup{min-width:170px}.mapPopup strong{display:block;font-size:13px;margin-bottom:4px}.mapPopup div{font-size:11px;margin:2px 0}.mapPopup small{font-size:10px;font-weight:800;color:#78675c}.mapPopup .popupVolume{margin-top:6px;font-weight:700}
.detailSection{border-top:1px solid #eadfd3}.detailSection summary{cursor:pointer;list-style:none;font-weight:850;font-size:12px;letter-spacing:.02em;padding:13px 0;color:#6d493a}.detailSection summary::-webkit-details-marker{display:none}.detailSection summary:after{content:'+';float:right;font-size:18px;line-height:.7;color:#a16c53}.detailSection[open] summary:after{content:'−'}.detailSectionBody{padding:0 0 9px}.detailSectionBody>dl{margin:0}.sectionEmpty{color:var(--muted);font-size:11px;margin:0 0 10px}.legacyCard{background:#fbf3ea;border:1px solid #eadccd;border-radius:10px;padding:8px 10px;margin:7px 0}.legacyCard p{font-size:10px;line-height:1.35;margin:3px 0;overflow-wrap:anywhere}.legacyCard b{color:#866a58}
.passwordWrap{position:relative}.passwordWrap input{padding-right:54px}.passwordToggle{position:absolute;right:5px;top:5px;min-height:33px;border:0;border-radius:8px;background:#f3e8dc;padding:5px 9px;font-size:11px;font-weight:800;color:#6d493a}
@media(max-width:720px){.mapTools{top:auto;bottom:78px;right:12px}.mapTools .compact{min-height:38px}.detailDrawer{z-index:1100}.leaflet-popup{z-index:1050}.leaflet-tooltip{z-index:1040}}
/* V3.5 detail, interactions and accessibility */
.detailHero{padding-bottom:12px}.detailHeroTop{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.detailHeroTop .eyebrow{margin-bottom:0}.coordsTiny{font-size:9px;color:var(--muted);white-space:nowrap}.volumeSummary{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;background:#f7ecdf;border:1px solid #ead7c5;border-radius:11px;padding:8px 10px;margin:8px 0}.volumeSummary strong{font-size:12px;color:#6d493a}.volumeSummary .palletValue{font-size:12px;color:#c8453a}.volumeSummary small{font-size:10px;color:var(--muted);margin-left:auto}.heroBadges{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.heroBadges .categoryChips{margin:0}.familyChips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 3px}.familyChips span{font-size:9px;font-weight:850;letter-spacing:.04em;color:#7a4d38;background:#f3dfd1;border:1px solid #e4c8b8;border-radius:999px;padding:4px 7px}.linkStack{display:flex;flex-direction:column;gap:4px}.contactLink{display:inline-flex;align-items:center;min-height:30px;padding:5px 7px;border-radius:8px;background:#fff4e9;color:#9b4e37!important;font-weight:750;text-decoration:none!important}.contactLink:hover{background:#f5e3d4}.notesText{font-size:11px;line-height:1.55;white-space:pre-wrap}.nestedSection{margin:10px 0 2px;border:1px solid #eadfd3;border-radius:10px;background:#fcf6ef}.nestedSection summary{cursor:pointer;padding:10px 11px;font-size:11px;font-weight:800;color:#7c6658}.nestedBody{padding:0 11px 8px}.inlineForm,.volumeForm{display:grid;gap:8px;background:#fbf3ea;border:1px solid #eadccd;border-radius:12px;padding:10px;margin:5px 0 10px}.inlineForm textarea,.volumeForm textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fffdf9;padding:9px 10px;resize:vertical;font:inherit}.volumeForm{grid-template-columns:110px minmax(0,1fr)}.volumeForm textarea,.volumeForm button,.volumeForm .formMessage,.volumeForm .palettePreview{grid-column:1/-1}.volumeForm .palettePreview{color:#8a6d5c;font-weight:700}.formMessage{font-size:10px;color:var(--muted);align-self:center}.historyCard{background:#fbf3ea;border:1px solid #eadccd;border-radius:10px;padding:9px 10px;margin:7px 0}.historyCard p{font-size:11px;line-height:1.45;margin:5px 0 0;white-space:pre-wrap}.historyCard>small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.historyHead{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.historyHead strong{font-size:11px}.historyHead small{font-size:9px;color:var(--muted);white-space:nowrap}.detailSectionBody h4{font-size:10px;color:#8e705d;text-transform:uppercase;letter-spacing:.06em;margin:12px 0 5px}.detailDrawer{scroll-behavior:smooth}.mapPopup .leaflet-popup-content{margin:9px 11px}.leaflet-interactive{cursor:pointer}.leaflet-tooltip{pointer-events:none}.leaflet-popup-content-wrapper{border-radius:12px}.leaflet-container a.leaflet-popup-close-button{padding:6px 7px}.passwordToggle{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:720px){.detailHero{position:sticky;top:-22px;z-index:3;background:rgba(255,250,244,.98);padding-top:22px;border-bottom:1px solid #eadfd3}.coordsTiny{font-size:8px}.volumeForm{grid-template-columns:1fr}.contactLink{min-height:38px;font-size:13px}.detailDrawer{padding:18px}.detailDrawer h2{font-size:24px}.mapLegend{max-height:72px;overflow:auto}.leaflet-marker-icon,.leaflet-interactive{touch-action:manipulation}}

/* V3.6 localisation / route */
.localityValue{font-size:12px;color:#3b302a;letter-spacing:.01em}.distanceValue{font-size:12px;color:#3b302a}.detailRoute{width:100%}.routeBox{display:grid;gap:7px;width:100%}.routeRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.routeRow select,.routeCustom{width:100%;border:1px solid var(--line);border-radius:9px;background:#fffdf9;padding:8px 9px;font:inherit}.routeBtn{white-space:nowrap}.routeMessage{display:block;color:#9b4e37;line-height:1.35}.detailField:has(.distanceValue) dd{font-weight:800}.detailField:has(.localityValue) dd{font-weight:800}
@media(max-width:720px){.routeRow{grid-template-columns:1fr}.routeBtn{width:100%;min-height:40px}.routeCustom{min-height:40px}}
/* V3.7 identity edit + help */
.editToolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0 10px}.editToolbar .primary{min-height:34px;padding:7px 9px}.editToolbar .primary:disabled{opacity:.45;cursor:not-allowed}.profileEditForm{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fbf3ea;border:1px solid #eadccd;border-radius:12px;padding:10px;margin:5px 0 10px}.profileEditForm[hidden]{display:none}.profileField{margin:0;display:grid;gap:4px}.profileField span{font-size:9px;color:#8e705d;font-weight:800}.profileField input,.profileField textarea{width:100%;min-height:38px;border:1px solid var(--line);border-radius:9px;background:#fffdf9;padding:8px 9px;font:inherit}.profileField textarea{resize:vertical}.profileField:nth-child(5),.profileField:nth-child(10),.profileEditForm .formMessage{grid-column:1/-1}.editingHidden{display:none!important}.helpDialog{width:min(560px,calc(100% - 28px));max-height:min(760px,85dvh);border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);box-shadow:0 28px 70px rgba(48,35,26,.28);padding:20px}.helpDialog::backdrop{background:rgba(38,31,27,.32);backdrop-filter:blur(2px)}.helpHead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid var(--line);padding-bottom:10px}.helpHead h2{margin:0;font-size:24px}.helpBody{overflow:auto;max-height:calc(85dvh - 100px);padding:12px 3px 3px}.helpBody h3{font-size:12px;color:#6d493a;margin:13px 0 4px}.helpBody p{font-size:12px;line-height:1.5;color:#5e554f;margin:0}.topActions #helpBtn{white-space:nowrap}
@media(max-width:720px){.profileEditForm{grid-template-columns:1fr}.profileField:nth-child(n){grid-column:1}.helpDialog{padding:16px}.topActions #helpBtn{padding:7px 8px}}
/* V3.8 classification edit, readable history, permanent Laporte sites */
.classificationEditor{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.classificationEditor>.profileField{grid-column:auto}.editFamilies,.editCategories{grid-column:1/-1;border:1px solid var(--line);border-radius:10px;background:#fffaf4;padding:8px 9px;margin:0}.editFamilies legend,.editCategories legend{padding:0 5px;font-size:9px;color:#8e705d;font-weight:850;letter-spacing:.04em}.editFamilies{display:flex;gap:14px;flex-wrap:wrap}.editFamilies label{display:flex;align-items:center;gap:5px;margin:0;font-size:10px}.editFamilies input,.editCategories input{width:auto;min-height:auto;accent-color:var(--terracotta)}.categoryEditGroup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;padding:7px 0;border-top:1px solid #efe4d9}.categoryEditGroup:first-of-type{border-top:0}.categoryEditGroup strong{grid-column:1/-1;font-size:9px;color:#6d493a;text-transform:uppercase;letter-spacing:.05em}.categoryEditGroup label{display:flex;align-items:flex-start;gap:5px;margin:0;font-size:10px;font-weight:650;line-height:1.25}.historyCard p b{color:#795b49}.laporteSiteIconWrap{background:transparent;border:0}.laporteSitePin{position:relative;display:block;width:24px;height:24px;background:#d43f32;border:2px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 3px 9px rgba(77,35,23,.38)}.laporteSitePin i{position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;left:6.5px;top:6.5px}.sitePopup strong{display:block;font-size:13px;margin-bottom:4px}.sitePopup div{font-size:11px;color:#6b5d54}.leaflet-pane.leaflet-laporteSitesPane-pane{pointer-events:auto}
@media(max-width:720px){.classificationEditor{grid-template-columns:1fr}.categoryEditGroup{grid-template-columns:1fr}.laporteSitePin{width:26px;height:26px}.laporteSitePin i{left:7.5px;top:7.5px}}
/* V4.0 - richer help */
.helpDialog{width:min(760px,calc(100% - 28px));max-height:min(860px,90dvh)}
.helpBody{max-height:calc(90dvh - 105px);padding-right:8px}
.helpBody h3{font-size:13px;margin:17px 0 5px;color:#744f3e}
.helpBody p{font-size:12px;line-height:1.58}
/* V4.0 - bulk country access controls */
.countryBulk{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 12px;border-bottom:1px solid var(--line);background:#fffaf4}
.countryBulk button{border:1px solid #dbc8b7;background:#fff;color:#6f4b3c;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;cursor:pointer}
.countryBulk button:hover{background:#f2dfcf;border-color:#c89a7d}
.countrySelectedCount{margin-left:auto;font-size:10px;font-weight:800;color:var(--terracotta);white-space:nowrap}
@media(max-width:720px){.countrySelectedCount{width:100%;margin-left:0}.countryBulk button{padding:7px 9px}}


/* V4.1 logistics, strategic sites, history and mobile */
.customRefBox{display:grid;grid-template-columns:1fr;gap:7px;margin-top:8px}.customRefBox[hidden]{display:none}.deliveryFilterTitle{grid-column:1/-1;font-size:10px;font-weight:850;letter-spacing:.06em;color:#79675c;margin-top:5px;padding-top:8px;border-top:1px solid #eadccd}.storageFilter{grid-column:1/-1;display:grid!important;grid-template-columns:auto minmax(80px,1fr);gap:8px!important;align-items:center!important}.storageFilter input{min-height:34px!important;width:100%!important}.ringToggle{display:flex!important;align-items:center;gap:4px;margin:0!important;font-size:10px!important}.ringToggle input{width:auto;min-height:auto;accent-color:var(--terracotta)}
.compactDetails .detailField{padding:7px 0}.compactDetails .detailField dt{margin-bottom:2px}.compactCard{padding:7px 9px;margin:5px 0}.contactCard{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;border-top:1px solid #eee2d6;padding:7px 0}.contactCard:first-child{border-top:0}.contactCard strong{font-size:11px}.contactCard small{font-size:9px;color:var(--muted)}.contactCard a{font-size:10px;color:#a45038;text-decoration:underline;overflow-wrap:anywhere}.contactCard p{grid-column:1/-1;margin:1px 0;font-size:10px;color:var(--muted)}
.auxEditForm,.logisticsEditForm{display:grid;gap:9px}.auxFieldset{border:1px solid var(--line);border-radius:10px;padding:8px;margin:0}.auxFieldset legend{padding:0 5px;font-size:9px;font-weight:850;color:#8e705d}.contactEditorList{display:grid;gap:7px}.contactEditorRow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px;border:1px solid #eadfd3;border-radius:9px;background:#fffaf4}.contactEditorRow input{min-height:36px}.contactEditorRow label{display:flex;align-items:center;gap:5px;margin:0;font-size:10px}.contactEditorRow label input{width:auto;min-height:auto}.logisticsEditForm{grid-template-columns:repeat(3,minmax(0,1fr))}.logisticsEditForm>label{display:flex;align-items:center;gap:5px;margin:0}.logisticsEditForm>label input{width:auto;min-height:auto}.logisticsEditForm input[type=number],.logisticsEditForm select,.logisticsEditForm textarea,.logisticsEditForm button,.logisticsEditForm .formMessage{grid-column:1/-1}.logisticsEditForm textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:#fffdf9;padding:8px;font:inherit}
.logisticsBadges{display:flex;gap:5px;flex-wrap:wrap;margin:1px 0 8px}.logisticsBadge{font-size:9px;font-weight:800;padding:5px 7px;border-radius:999px;background:#eee5dc;color:#69594f}.logisticsBadge.yes{background:#dcebdc;color:#356440}.logisticsBadge.no{background:#f0e9e3;color:#776b62}.candidateFlag{font-size:10px;font-weight:800;border-radius:9px;padding:7px 9px;margin:5px 0}.candidateFlag.positive{background:#dcebdc;color:#356440}.candidateFlag.neutral{background:#f0e9e3;color:#776b62}.routeDistanceBox{border-top:1px solid #eadfd3;border-bottom:1px solid #eadfd3;margin:7px 0;padding:3px 0}.routeDistanceRow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;padding:6px 2px;align-items:center}.routeDistanceRow strong{font-size:11px}.routeDistanceRow span{font-size:11px;font-weight:800}.routeCost{min-width:82px;text-align:right;font-variant-numeric:tabular-nums}.routeCost.expensive{color:#b43b32}.routeCost.cheap{color:#2d7545;font-weight:900}.transportCalculator{display:grid;gap:7px;background:#fbf3ea;border:1px solid #eadccd;border-radius:11px;padding:9px;margin:8px 0}.transportCalculator>label{display:flex;align-items:center;gap:6px;margin:0}.transportCalculator>label input{width:auto;min-height:auto}.transportCostRow{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #eadfd3;padding-top:6px;font-size:11px}.transportCostRow .expensive{color:#b43b32;font-weight:850}.transportCostRow .cheap{color:#2d7545;font-weight:900}.transportSaving{background:#e5f1e6;color:#2d6d40;border-radius:8px;padding:7px 9px;font-size:11px;font-weight:900}.transportSaving.negative{background:#f6dfda;color:#9a3e32}.transportRatesForm{display:grid;gap:9px;padding-top:12px}.transportRatesForm label{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:9px;align-items:center;margin:0}.transportRateActions{display:flex;gap:10px;align-items:center;margin-top:4px}
.strategicSiteIconWrap{background:transparent;border:0}.strategicSitePin{display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:6px;background:#5d5149;border:2px solid #fff;box-shadow:0 3px 9px rgba(54,43,36,.33)}.strategicSitePin i{display:block;width:8px;height:8px;border:2px solid #fff}.strategicSitePin.factory_logistics,.strategicSitePin.distribution_manufacturing{border-radius:3px}.strategicSitePin.warehouse{transform:rotate(45deg)}.strategicSitePin.warehouse i{transform:rotate(-45deg)}.strategicSitePin.office{border-radius:50%}.strategicSitePin.distribution_logistics{border-radius:3px 3px 10px 10px}.leaflet-pane.leaflet-strategicSitesPane-pane{pointer-events:auto}
.backToMap{border:0;border-radius:9px;background:#f2e5d8;color:#6d493a;font-weight:800;padding:8px 10px}.historyPage{background:var(--bg);min-height:100dvh}.historyMain{max-width:1100px;margin:auto;padding:20px}.historyFilters{display:grid;grid-template-columns:1fr 1.4fr 1fr 1fr auto;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:12px}.historyCount{font-size:11px;color:var(--muted);margin:12px 2px}.historyTimeline{display:grid;gap:8px}.historyGlobalCard{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:11px 13px}.historyGlobalCard>div{display:flex;justify-content:space-between;gap:10px}.historyGlobalCard strong{font-size:11px}.historyGlobalCard small{font-size:9px;color:var(--muted)}.historyGlobalCard h3{font-size:13px;margin:5px 0}.historyGlobalCard h3 a{color:#a45038;text-decoration:underline}.historyGlobalCard p{font-size:11px;margin:4px 0 0;line-height:1.4}
@media(max-width:720px){.topActions{gap:5px}.topActions>.ghost{padding:7px 8px;min-height:36px;font-size:10px}.userChip{display:none}.detailDrawer>.backToMap{display:inline-flex;position:sticky;top:0;z-index:5;margin:0 6px 8px 0}.detailDrawer>.iconBtn{top:0}.contactEditorRow{grid-template-columns:1fr}.logisticsEditForm{grid-template-columns:1fr}.transportRatesForm label{grid-template-columns:1fr}.historyFilters{grid-template-columns:1fr 1fr}.historyFilters button{grid-column:1/-1}.historyMain{padding:12px}.familyCard{grid-template-columns:repeat(2,1fr)}.familyCard>.sectionTitle,.deliveryFilterTitle,.storageFilter{grid-column:1/-1}}

.transportApplicabilityWarning{display:block;color:#8b654e;background:#f7eadc;border-radius:8px;padding:7px 9px;line-height:1.35}

/* V4.1.1 ergonomics */
.advancedFilters{margin-top:10px;border:1px solid #eadccd;border-radius:14px;background:#f8efe6;overflow:hidden}.advancedFilters>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;font-size:11px;font-weight:850;color:#6d493a}.advancedFilters>summary::-webkit-details-marker{display:none}.advancedFilters>summary:after{content:'›';font-size:18px;color:#a16c53;line-height:1}.advancedFilters[open]>summary:after{content:'⌄'}.advancedFilterCount{margin-left:auto;min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--terracotta);color:white;font-size:9px;font-weight:900}.advancedFilterCount[hidden]{display:none}.advancedFilters .familyCard{margin:0;border:0;border-top:1px solid #eadccd;border-radius:0;background:transparent}.mapLocationFilter{grid-column:1/-1}.mapLocationFilter select{min-height:34px}.storageFilter{grid-template-columns:auto minmax(90px,1fr)!important}.storagePalletPreview{grid-column:1/-1;color:#8b654e;font-size:9px;font-weight:800;min-height:12px;padding-left:2px}
.entityRow{grid-template-columns:13px 18px minmax(0,1fr) auto}.mapState{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;font-size:14px;font-weight:900;line-height:1}.mapState.mapped{color:#3f7a58;background:#e4efe7}.mapState.unmapped{color:#9a8f86;background:#f0ebe6}
.detailSection summary:after{content:'›';font-size:18px;line-height:.8;color:#a16c53}.detailSection[open] summary:after{content:'⌄'}.dataQualityNotice{margin:7px 0 9px;border:1px solid #ead8bd;border-radius:9px;background:#fff6e8}.dataQualityNotice summary{cursor:pointer;list-style:none;padding:7px 9px;font-size:10px;font-weight:850;color:#8a633f}.dataQualityNotice summary::-webkit-details-marker{display:none}.dataQualityNotice ul{margin:0;padding:0 24px 8px;font-size:10px;color:#6f6258}.dataQualityNotice li{margin:3px 0}
.unifiedEditToolbar{display:flex;justify-content:flex-end;gap:7px;grid-template-columns:none}.unifiedEditToolbar button{min-width:92px}.combinedIdentityEditor .auxFieldset{grid-column:1/-1}.combinedIdentityEditor .contactsEditor{grid-column:1/-1}.sectionUtilityBar{display:flex;justify-content:flex-end;margin:0 0 7px}.sectionUtilityBar .compact{min-height:32px;padding:6px 10px;font-size:10px}.previousEntityBtn{display:block;max-width:100%;border:0;background:transparent;color:#a45038;font-size:10px;font-weight:800;padding:4px 0 2px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recentDialog{width:min(520px,calc(100% - 28px))}.recentList{display:grid;gap:6px;padding-top:12px;max-height:60dvh;overflow:auto}.recentRow{display:grid;gap:3px;text-align:left;border:1px solid var(--line);background:#fffaf4;border-radius:10px;padding:10px 11px}.recentRow:hover{background:#f8efe6}.recentRow strong{font-size:12px}.recentRow small{font-size:10px;color:var(--muted)}
.logisticsEditForm .palettePreview{grid-column:1/-1;color:#8a6d5c;font-size:9px;font-weight:800}
@media(max-width:720px){.advancedFilters{margin-top:8px}.entityRow{grid-template-columns:13px 18px minmax(0,1fr) auto}.topActions #recentBtn{padding:7px 8px;font-size:10px}.detailDrawer.isCompact>.backToMap{display:none!important}.detailDrawer.isCompact .detailHero{top:-18px;padding:11px 46px 8px 0;min-height:50px}.detailDrawer.isCompact .detailHeroTop,.detailDrawer.isCompact .volumeSummary,.detailDrawer.isCompact .heroBadges,.detailDrawer.isCompact .familyChips,.detailDrawer.isCompact .previousEntityBtn{display:none}.detailDrawer.isCompact .detailHero h2{font-size:18px;line-height:1.15;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detailDrawer.isCompact>.iconBtn{top:3px}.unifiedEditToolbar{justify-content:stretch}.unifiedEditToolbar button{flex:1;min-width:0}}
.dialogHint{margin:0;color:var(--muted);font-size:10px;line-height:1.4}

/* V4.1.1a advanced filters + map location indicator */
.advancedFilters{margin-top:10px;border:1px solid #eadccd;border-radius:14px;background:#f8efe6;overflow:hidden}.advancedFiltersToggle{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:8px;padding:11px 12px;color:#6d493a;font:inherit;font-size:11px;font-weight:850;text-align:left;cursor:pointer}.advancedFiltersChevron{margin-left:auto;font-size:18px;color:#a16c53;line-height:1;transition:transform .15s ease}.advancedFiltersToggle[aria-expanded="true"] .advancedFiltersChevron{transform:rotate(90deg)}.advancedFiltersBody[hidden]{display:none!important}.advancedFiltersBody .familyCard{margin:0;border:0;border-top:1px solid #eadccd;border-radius:0;background:transparent}
.mapState{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;position:relative;box-sizing:border-box;flex:0 0 18px}.mapState.mapped{border:2px solid #4f8f64;background:#e8f3eb}.mapState.mapped:before{content:'';width:6px;height:6px;border-radius:50%;background:#4f8f64}.mapState.unmapped{border:2px solid #aaa39d;background:#f2efeb}.mapState.unmapped:before{content:'';position:absolute;width:12px;height:2px;background:#8f8882;transform:rotate(-45deg);border-radius:2px}.entityRow{grid-template-columns:13px 18px minmax(0,1fr) auto}

/* V4.1.1c - stable advanced filters + highlighted detail accordion headers */
#advancedFilters.advancedFilters{display:block!important;visibility:visible!important;opacity:1!important;margin-top:10px;border:1px solid #e6d7c8;border-radius:0;background:#fbf4ec;overflow:visible}
#advancedFilters.advancedFilters>summary{display:flex!important;visibility:visible!important;opacity:1!important;align-items:center;gap:8px;min-height:42px;padding:10px 11px;list-style:none;cursor:pointer;background:#f0e0d2;color:#674638;font-size:11px;font-weight:850;border:0;border-radius:0}
#advancedFilters.advancedFilters>summary::-webkit-details-marker{display:none}
#advancedFilters.advancedFilters>summary:after{content:'›';margin-left:auto;font-size:18px;line-height:1;color:#a16c53}
#advancedFilters.advancedFilters[open]>summary{background:#e9d2c0}
#advancedFilters.advancedFilters[open]>summary:after{content:'⌄'}
#advancedFilters.advancedFilters>.familyCard{margin:0;border:0;border-top:1px solid #e4d2c1;border-radius:0;background:#fbf4ec;padding:12px}

.detailSection{border-top:0;margin-top:2px}
.detailSection>summary{display:block!important;position:relative;margin:0;padding:10px 30px 10px 10px;background:#f1e4d8;color:#684738;border:0;border-left:3px solid transparent;border-radius:0!important;font-size:12px;font-weight:850;letter-spacing:.02em;cursor:pointer}
.detailSection>summary:hover{background:#eddbcb}
.detailSection>summary:after{position:absolute;right:10px;top:50%;transform:translateY(-50%);float:none!important;content:'›';font-size:18px;line-height:1;color:#9d654d}
.detailSection[open]>summary{background:#e7cfbd;color:#5d3d31;border-left-color:var(--terracotta)}
.detailSection[open]>summary:after{content:'⌄'}
.detailSectionBody{padding:8px 0 10px}
@media(max-width:720px){#advancedFilters.advancedFilters>summary{min-height:40px;padding:9px 10px}.detailSection>summary{padding:10px 30px 10px 9px}}

/* WW_MOBILE_FILTER_SCROLL_HOTFIX_20261006 */
@media (max-width:720px){
  /* The whole filter panel must scroll when advanced filters expand. */
  #filtersPanel.filtersPanel{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding-bottom:calc(28px + env(safe-area-inset-bottom)) !important;
  }

  /* On mobile, avoid a second nested scroll area stealing the available height. */
  #filtersPanel .entityList{
    overflow:visible !important;
    flex:0 0 auto !important;
    max-height:none !important;
    padding-bottom:90px !important;
  }

  /* Ensure the opened advanced block participates in normal document flow. */
  #advancedFilters.advancedFilters[open]{
    overflow:visible !important;
    flex:0 0 auto !important;
  }

  #advancedFilters.advancedFilters[open] > .familyCard{
    display:grid !important;
    visibility:visible !important;
    opacity:1 !important;
  }
}

/* WW_HEADER_023 */
.wwTopbar023{min-height:58px!important;height:58px!important;padding:7px 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.wwBrand023{display:flex;align-items:center;gap:7px;text-decoration:none;color:inherit;min-width:0}
.wwMark023{font-size:27px;font-weight:950;line-height:.9;letter-spacing:-.08em}
.wwMark023 span{color:#c86147;font-size:.48em;vertical-align:.15em}
.wwName023{font-size:15px;font-weight:900;letter-spacing:.06em;white-space:nowrap}
.wwQuick023{display:flex;align-items:center;gap:6px}
.wwQuickBtn023{border:1px solid #ded6ca;background:#fffaf4;color:#493a31;border-radius:11px;padding:8px 10px;font-weight:800;text-decoration:none;font-size:11px;min-height:38px}
.wwFieldLink023{background:#e0f3f0;border-color:#8fc9c3;color:#075758}
.wwHamb023{width:42px;height:38px;border:0;background:transparent;padding:7px 5px;display:grid;align-content:center;gap:4px}
.wwHamb023 span{display:block;height:4px;background:#17212b;border-radius:4px}
.wwMenuBackdrop023{position:fixed;inset:0;z-index:9997;background:rgba(14,24,35,.28);backdrop-filter:blur(2px)}
.wwMenuBackdrop023[hidden]{display:none!important}
.wwMenu023{position:fixed;z-index:9998;top:0;right:0;width:min(86vw,340px);height:100dvh;background:#fffdf9;box-shadow:-12px 0 38px rgba(27,18,15,.25);padding:64px 14px 18px;display:grid;align-content:start;gap:7px;overflow-y:auto}
.wwMenu023[hidden]{display:none!important}
.wwMenu023>a,.wwMenu023>button{border:0;background:#f5f0e9;color:#352d28;text-decoration:none;padding:12px 13px;border-radius:11px;font-weight:800;text-align:left;font:inherit}
.wwMenu023>a:hover,.wwMenu023>button:hover{background:#e9f4f1}
.wwMenuClose023{position:absolute;right:13px;top:13px;width:40px!important;height:40px!important;padding:0!important;border-radius:50%!important;text-align:center!important;font-size:24px!important}
.wwMenuUser023{display:grid;gap:1px;padding:0 3px 12px;border-bottom:1px solid #e8e1d9}
.wwMenuUser023 small{color:#7d7066}
.wwLogout023{color:#8b2f27!important;background:#fff0ed!important}
@media(max-width:720px){
  .wwTopbar023{min-height:54px!important;height:54px!important;padding:6px 10px!important}
  .wwName023{font-size:13px}
  .wwQuickBtn023{padding:7px 8px;font-size:10px;min-height:36px}
  .wwMark023{font-size:24px}
  /* preserve working filter scroll geometry with the shorter header */
  .workspace{height:calc(100dvh - 54px)!important}
}
@media(max-width:390px){
  .wwName023{display:none}
  .wwQuick023{gap:4px}
  .wwQuickBtn023{padding:7px}
}

/* WW_HOTFIX_024_STABLE_DETAIL_HEADER */
@media(max-width:720px){
  /*
   * The previous compact mode changed the sticky hero height at the same
   * scroll threshold used to activate it. On some Samsung/Chrome builds
   * this can create a visible oscillation ("tremblement").
   * Keep one constant sticky geometry instead.
   */
  .detailDrawer .detailHero,
  .detailDrawer.isCompact .detailHero{
    position:sticky !important;
    top:-18px !important;
    z-index:3 !important;
    background:rgba(255,250,244,.985) !important;
    padding:18px 46px 10px 0 !important;
    min-height:0 !important;
    border-bottom:1px solid #eadfd3 !important;
  }

  .detailDrawer.isCompact .detailHeroTop,
  .detailDrawer.isCompact .volumeSummary,
  .detailDrawer.isCompact .heroBadges,
  .detailDrawer.isCompact .familyChips,
  .detailDrawer.isCompact .previousEntityBtn{
    display:flex;
  }

  .detailDrawer.isCompact .detailHeroTop{display:flex!important}
  .detailDrawer.isCompact .volumeSummary{display:flex!important}
  .detailDrawer.isCompact .heroBadges{display:flex!important}
  .detailDrawer.isCompact .familyChips{display:flex!important}
  .detailDrawer.isCompact .previousEntityBtn{display:block!important}

  .detailDrawer .detailHero h2,
  .detailDrawer.isCompact .detailHero h2{
    font-size:24px !important;
    line-height:1.08 !important;
    margin:6px 0 9px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  /* Keep close/back controls stable above the sticky hero. */
  .detailDrawer>.iconBtn{
    position:sticky !important;
    top:0 !important;
    z-index:6 !important;
  }
}

/* WW_HEADER_025_COMPACT_BRAND */
.wwTopbar023{
  min-height:58px!important;
  height:58px!important;
  padding:6px 10px!important;
  gap:7px!important;
}
.wwBrand023{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  flex:0 1 auto!important;
}
.wwMark023{
  font-size:24px!important;
  flex:0 0 auto!important;
}
.wwName023{
  display:inline-block!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.wwQuick023{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  flex:0 0 auto!important;
}
.wwQuickBtn023{
  min-height:36px!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.wwHamb023{
  width:39px!important;
  height:36px!important;
  padding:6px 4px!important;
  flex:0 0 39px!important;
}
.wwHamb023 span{
  height:4px!important;
}

@media(max-width:720px){
  .wwTopbar023{
    min-height:56px!important;
    height:56px!important;
    padding:6px 8px!important;
  }
  .workspace{
    height:calc(100dvh - 56px)!important;
  }
  .wwMark023{font-size:23px!important}
  .wwName023{font-size:11px!important}
  .wwQuick023{gap:4px!important}
  .wwQuickBtn023{
    min-height:34px!important;
    padding:6px 8px!important;
    font-size:9.5px!important;
  }
  .wwHamb023{
    width:36px!important;
    height:34px!important;
    flex-basis:36px!important;
  }
}

/* Even on narrow phones, keep WHEREWHO visible.
   Shrink controls instead of hiding the brand. */
@media(max-width:390px){
  .wwName023{
    display:inline-block!important;
    font-size:9.5px!important;
    letter-spacing:.02em!important;
  }
  .wwMark023{font-size:21px!important}
  .wwQuickBtn023{
    padding:6px 6px!important;
    font-size:8.7px!important;
  }
  .wwHamb023{
    width:33px!important;
    flex-basis:33px!important;
  }
}

@media(max-width:350px){
  .wwName023{font-size:8.5px!important}
  .wwQuickBtn023{padding:5px 5px!important;font-size:8px!important}
  .wwHamb023{width:31px!important;flex-basis:31px!important}
}

/* WW_HEADER_026_EXACT_MOCKUP */
/* Exact mobile visual requested: compact logo + text links + hamburger. */
.wwTopbar023{
  height:58px!important;
  min-height:58px!important;
  padding:4px 10px!important;
  background:rgba(255,250,244,.98)!important;
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr) 44px!important;
  align-items:center!important;
  column-gap:8px!important;
}

.wwBrand023{
  display:block!important;
  min-width:0!important;
  width:72px!important;
  color:#111!important;
  text-decoration:none!important;
}

.wwLogoStack026{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  line-height:1!important;
  width:max-content!important;
}

.wwMark023{
  display:block!important;
  font-size:30px!important;
  line-height:.78!important;
  font-weight:950!important;
  letter-spacing:-.09em!important;
  color:#111!important;
}

.wwMark023 span{
  color:#c86147!important;
  font-size:.42em!important;
  vertical-align:.12em!important;
}

.wwLogoLabel026{
  display:block!important;
  margin-top:4px!important;
  font-size:7.5px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
  color:#111!important;
}

.wwQuick023{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:center!important;
  justify-items:center!important;
  gap:6px!important;
  margin:0!important;
  min-width:0!important;
}

.wwQuickBtn023{
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:2px 3px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#3d332d!important;
  font-size:11px!important;
  line-height:1.05!important;
  font-weight:850!important;
  text-decoration:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:2px!important;
  white-space:nowrap!important;
}

.wwQuickBtn023:hover,
.wwQuickBtn023:focus{
  background:transparent!important;
  color:#111!important;
}

.wwFieldLink023{
  background:transparent!important;
  border:0!important;
  color:#3d332d!important;
}

.wwHamb023{
  justify-self:end!important;
  width:44px!important;
  height:42px!important;
  min-width:44px!important;
  padding:7px 2px!important;
  border:0!important;
  background:transparent!important;
  display:grid!important;
  align-content:center!important;
  gap:5px!important;
}

.wwHamb023 span{
  display:block!important;
  width:100%!important;
  height:5px!important;
  border-radius:4px!important;
  background:#111!important;
}

@media(max-width:720px){
  .workspace{height:calc(100dvh - 58px)!important}
  .wwTopbar023{
    grid-template-columns:72px minmax(0,1fr) 44px!important;
  }
}

@media(max-width:380px){
  .wwTopbar023{
    grid-template-columns:64px minmax(0,1fr) 40px!important;
    column-gap:5px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
  .wwBrand023{width:64px!important}
  .wwMark023{font-size:28px!important}
  .wwLogoLabel026{font-size:7px!important}
  .wwQuick023{gap:3px!important}
  .wwQuickBtn023{font-size:10px!important;padding:2px!important}
  .wwHamb023{width:40px!important;min-width:40px!important}
}

/* WW_HEADER_027_HAMBURGER_ALIGN */
/* Hamburger is inside .wwQuick023: give the quick area four columns. */
.wwTopbar023{
  grid-template-columns:72px minmax(0,1fr)!important;
}

.wwQuick023{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr)) 44px!important;
  align-items:center!important;
  justify-items:center!important;
  gap:6px!important;
}

.wwHamb023{
  grid-column:4!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
}

@media(max-width:380px){
  .wwTopbar023{
    grid-template-columns:64px minmax(0,1fr)!important;
  }
  .wwQuick023{
    grid-template-columns:repeat(3,minmax(0,1fr)) 40px!important;
    gap:3px!important;
  }
}

/* WW_ACTIVITY_030_CSS */
.mobileSearchCandidates030{display:none}
.fieldHistoryCard{border-left:3px solid #178b88}
.fieldHistoryFlags{font-weight:800;color:#356b69}
@media(max-width:720px){
  .mobileSearchCandidates030{display:grid;gap:5px;margin:4px 0 3px;padding:7px;background:#eef8f6;border:1px solid #b9ddd8;border-radius:10px}
  .mobileSearchCandidates030[hidden]{display:none!important}
  .mobileCandidatesTitle030{font-size:10px;font-weight:900;color:#176b68;padding:1px 3px 4px}
  .mobileCandidate030{display:grid;gap:2px;width:100%;border:0;border-top:1px solid #d6e9e6;background:transparent;text-align:left;padding:8px 4px;color:#24302f}
  .mobileCandidate030:first-of-type{border-top:0}
  .mobileCandidate030 strong{font-size:12px}
  .mobileCandidate030 small,.mobileCandidatesMore030{font-size:9px;color:#667875}
}
/* WHEREWHO CLEAN 0.4.0 */
.mapLegend{display:none!important}.legendBtn{position:absolute;z-index:900;top:12px;right:12px;border:1px solid #cdbfb1;border-radius:11px;background:#fffdf9;color:#352d27;padding:9px 13px;font-weight:850;box-shadow:0 3px 12px rgba(0,0,0,.18)}.mapLegendPanel{position:absolute;z-index:910;top:56px;right:12px;width:min(290px,calc(100% - 24px));padding:10px;border:1px solid #d8cabd;border-radius:13px;background:#fffdf9;box-shadow:0 10px 30px rgba(0,0,0,.24);font-size:11px}.mapLegendPanel[hidden]{display:none!important}.legendHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.legendHead button{width:28px;height:28px;border:0;border-radius:50%;font-size:18px}.mapLegendPanel label{display:flex;align-items:center;gap:8px;min-height:32px}.mapLegendPanel label input{width:18px;height:18px}.mapLegendPanel .statusDot{width:11px;height:11px}.mapLegendPanel hr{border:0;border-top:1px solid #e6dbd1;margin:6px 0}.legendAll{width:100%;padding:7px;border:1px solid #cdbfb1;border-radius:8px;background:#f5eee7;font-weight:750}.fieldHistoryFlags{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 2px}.fieldMediaBtn{border:1px solid #b6d6d2;background:#eaf6f4;color:#176b68;border-radius:8px;padding:6px 8px;font-size:10px;font-weight:850}.fieldInfoFlag{display:inline-flex;align-items:center;background:#f2eee8;color:#62564d;border-radius:8px;padding:6px 8px;font-size:10px;font-weight:750}.fieldEventFocus{outline:3px solid rgba(15,143,141,.48);outline-offset:2px;background:#eff9f7!important;scroll-margin-top:120px}.wwMediaDialog{width:min(980px,96vw);height:min(860px,94dvh);padding:0;border:0;border-radius:14px;background:#fff;overflow:hidden}.wwMediaDialog::backdrop{background:rgba(12,18,22,.76)}.wwMediaHead{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;border-bottom:1px solid #ddd}.wwMediaHead button{width:38px;height:38px;border:0;border-radius:50%;font-size:24px}.wwMediaBody{height:calc(100% - 116px);display:flex;align-items:center;justify-content:center;background:#25292c;padding:6px;overflow:hidden}.wwMediaImage{max-width:100%;max-height:100%;object-fit:contain}.wwMediaFrame{width:100%;height:100%;border:0;background:#fff}.wwMediaActions{height:64px;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 12px;border-top:1px solid #ddd}.wwMediaActions a,.wwMediaActions button{min-height:40px;padding:8px 12px;border-radius:9px}@media(max-width:720px){.wwMediaDialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.wwMediaBody{height:calc(100dvh - 120px)}.wwMediaActions{height:68px}.wwMediaActions a,.wwMediaActions button{flex:1;text-align:center;font-size:10px;padding:7px 4px}}

/* WHEREWHO CLEAN 0.4.1 */
.leaflet-popup{z-index:880!important}.leaflet-popup-content-wrapper{opacity:1!important}.leaflet-popup-tip{opacity:1!important}

/* WHEREWHO CLEAN 0.4.2 — persistent search label */
.leaflet-tooltip.wwSearchLabel{
  background:#fff!important;
  color:#17211f!important;
  border:2px solid #236d62!important;
  border-radius:11px!important;
  padding:8px 11px!important;
  box-shadow:0 6px 18px rgba(0,0,0,.28)!important;
  opacity:1!important;
  font-size:12px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.leaflet-tooltip.wwSearchLabel:before{
  border-top-color:#236d62!important;
}

/* WHEREWHO CLEAN 0.4.4 — mobile filter/result closers */
@media(max-width:720px){
  #filtersPanel .panelHead{
    position:sticky!important;
    top:0!important;
    z-index:80!important;
    background:#fffaf5!important;
    margin:-2px -2px 8px!important;
    padding:6px 42px 4px 2px!important;
    border-bottom:1px solid rgba(199,175,151,.30)!important;
  }
  #filtersPanel #closeFilters{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:absolute!important;
    right:5px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #d9c9ba!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#59483d!important;
    font-size:24px!important;
    font-weight:700!important;
    line-height:1!important;
    box-shadow:0 2px 8px rgba(70,50,36,.12)!important;
  }
  #filtersPanel #closeFilters:active{
    transform:translateY(-50%) scale(.94)!important;
  }

  .mobileSearchCandidates030{
    max-height:min(52dvh,460px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    padding-top:0!important;
  }
  .mobileCandidatesTitle030{
    position:sticky!important;
    top:0!important;
    z-index:10!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-height:38px!important;
    padding:6px 5px 6px 7px!important;
    margin:0 -1px 2px!important;
    background:#eef8f6!important;
    border-bottom:1px solid #c9e4df!important;
  }
  .mobileCandidatesClose040{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 30px!important;
    width:30px!important;
    height:30px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #b8d8d2!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#176b68!important;
    font-size:21px!important;
    font-weight:800!important;
    line-height:1!important;
    box-shadow:0 1px 5px rgba(23,107,104,.12)!important;
  }
}

/* WHEREWHO GLOBAL 0.4.6 — one nominative popup only */
.leaflet-popup-content strong{font-weight:850}

/* WHEREWHO GLOBAL 0.4.7 — grouped activities + filtered-map warning */
.legendBtn{display:inline-flex!important;align-items:center!important;gap:6px!important}
.legendBtn.hasHidden{border-color:#d68b2a!important;box-shadow:0 0 0 2px rgba(214,139,42,.16),0 3px 12px rgba(0,0,0,.18)!important}
.legendBtn.hasHidden:after{content:'';width:8px;height:8px;border-radius:50%;background:#e58a17;box-shadow:0 0 0 2px #fff6e9;flex:0 0 8px}
.legendHiddenCount{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#e58a17;color:#fff;font-size:9px;font-weight:900}
.legendHiddenCount[hidden]{display:none!important}
.legendSectionTitle{margin:7px 0 3px;padding-top:6px;border-top:1px solid #e6dbd1;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#7a675a}

/* WHEREWHO GLOBAL 0.4.8 — compact scrollable Legend */
.mapLegendPanel{
  max-height:min(72dvh,620px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable!important;
}
.mapLegendPanel .legendHead{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
  background:#fffdf9!important;
  padding:3px 0 6px!important;
  margin-bottom:3px!important;
}
.mapLegendPanel label{
  min-height:26px!important;
  gap:6px!important;
  padding:1px 0!important;
  line-height:1.1!important;
}
.mapLegendPanel label input{
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
}
.mapLegendPanel .statusDot{
  width:10px!important;
  height:10px!important;
  flex:0 0 10px!important;
}
.mapLegendPanel .legendSectionTitle{
  margin:5px 0 2px!important;
  padding-top:5px!important;
}
.mapLegendPanel .legendAll{
  position:sticky!important;
  bottom:0!important;
  z-index:20!important;
  margin-top:6px!important;
  background:#f5eee7!important;
  box-shadow:0 -4px 8px rgba(255,253,249,.9)!important;
}

@media(max-width:720px){
  .mapLegendPanel{
    top:52px!important;
    right:8px!important;
    width:min(330px,calc(100% - 16px))!important;
    max-height:68dvh!important;
    padding:8px!important;
    font-size:10px!important;
  }

  .mapLegendPanel{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:10px!important;
    align-content:start!important;
  }

  .mapLegendPanel[hidden]{display:none!important}

  .mapLegendPanel .legendHead,
  .mapLegendPanel .legendSectionTitle,
  .mapLegendPanel hr,
  .mapLegendPanel .legendAll{
    grid-column:1 / -1!important;
  }

  .mapLegendPanel label{
    min-width:0!important;
    font-size:10px!important;
  }

  .mapLegendPanel label span{
    min-width:0!important;
    overflow-wrap:anywhere!important;
  }

  .mapLegendPanel .legendHead strong{
    font-size:11px!important;
  }

  .mapLegendPanel .legendHead button{
    width:30px!important;
    height:30px!important;
    font-size:20px!important;
  }
}

@media(max-width:380px){
  .mapLegendPanel{
    grid-template-columns:1fr!important;
  }
  .mapLegendPanel .legendHead,
  .mapLegendPanel .legendSectionTitle,
  .mapLegendPanel hr,
  .mapLegendPanel .legendAll{
    grid-column:1!important;
  }
}

/* WHEREWHO GLOBAL 0.4.9 — Legend true side-by-side columns */
.mapLegendPanel{
  max-height:min(64dvh,560px)!important;
}

.legendColumns{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  grid-column:1 / -1!important;
}

.legendColumn{
  min-width:0!important;
}

.legendColumn .legendSectionTitle{
  margin:2px 0 3px!important;
  padding-top:0!important;
  border-top:0!important;
}

.legendColumn label{
  min-height:22px!important;
  padding:0!important;
  gap:5px!important;
  line-height:1!important;
  font-size:9.5px!important;
}

.legendColumn label input{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
}

.legendColumn .statusDot{
  width:9px!important;
  height:9px!important;
  flex:0 0 9px!important;
}

.mapLegendPanel hr{
  margin:5px 0!important;
}

.mapLegendPanel > label{
  min-height:22px!important;
  padding:0!important;
  font-size:9.5px!important;
}

.mapLegendPanel .legendAll{
  min-height:30px!important;
  padding:5px 7px!important;
  margin-top:4px!important;
}

@media(max-width:720px){
  .mapLegendPanel{
    width:min(340px,calc(100% - 12px))!important;
    max-height:62dvh!important;
    padding:7px!important;
    font-size:9.5px!important;
    display:block!important;
  }

  .mapLegendPanel[hidden]{display:none!important}

  .legendColumns{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
  }

  .mapLegendPanel .legendHead{
    min-height:32px!important;
    padding:2px 0 4px!important;
  }

  .mapLegendPanel .legendHead strong{
    font-size:10.5px!important;
  }

  .legendColumn label span{
    overflow-wrap:anywhere!important;
  }
}

@media(max-width:340px){
  .legendColumns{
    grid-template-columns:1fr!important;
  }
}

/* WHEREWHO GLOBAL 0.5.0 — final compact Legend layout */
.mapLegendPanel{
  width:min(410px,calc(100% - 16px))!important;
  max-height:min(70dvh,520px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:8px!important;
  background:#fffdf9!important;
  border-radius:14px!important;
}

.mapLegendPanel .legendHead{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-height:32px!important;
  padding:2px 0 5px!important;
  margin:0 0 5px!important;
  background:#fffdf9!important;
  border-bottom:1px solid #e4d8cc!important;
}

.mapLegendPanel .legendHead strong{
  font-size:12px!important;
  font-weight:900!important;
}

.mapLegendPanel .legendHead button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  padding:0!important;
  border:1px solid #d9c9ba!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#59483d!important;
  font-size:20px!important;
  line-height:1!important;
  box-shadow:0 1px 5px rgba(0,0,0,.10)!important;
}

.legendGrid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:7px 9px!important;
  align-items:start!important;
}

.legendMiniBlock{
  min-width:0!important;
  padding:5px 6px!important;
  border:1px solid #e5dacf!important;
  border-radius:10px!important;
  background:#fff!important;
}

.legendMiniBlock .legendSectionTitle{
  margin:0 0 3px!important;
  padding:0!important;
  border:0!important;
  font-size:8.5px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  color:#806d60!important;
}

.legendMiniBlock label{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-height:20px!important;
  padding:0!important;
  margin:0!important;
  line-height:1!important;
  font-size:9.25px!important;
}

.legendMiniBlock label input{
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  margin:0!important;
  flex:0 0 15px!important;
}

.legendMiniBlock .statusDot{
  width:8px!important;
  height:8px!important;
  min-width:8px!important;
  flex:0 0 8px!important;
}

.legendMiniBlock label span{
  min-width:0!important;
  line-height:1.05!important;
}

.legendDisplayBlock{
  grid-column:1 / -1!important;
}

.legendDisplayOptions{
  display:grid!important;
  grid-template-columns:auto auto minmax(90px,1fr)!important;
  align-items:center!important;
  gap:6px!important;
}

.legendDisplayOptions label{
  min-height:28px!important;
  padding:0 4px!important;
}

.legendDisplayOptions .legendAll{
  position:static!important;
  width:100%!important;
  min-height:28px!important;
  margin:0!important;
  padding:5px 8px!important;
  font-size:9px!important;
  box-shadow:none!important;
}

@media(max-width:720px){
  .mapLegendPanel{
    top:50px!important;
    right:6px!important;
    width:min(390px,calc(100% - 12px))!important;
    max-height:68dvh!important;
    padding:7px!important;
  }

  .legendGrid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:6px!important;
  }

  .legendMiniBlock{
    padding:4px 5px!important;
  }

  .legendMiniBlock label{
    min-height:19px!important;
    font-size:8.8px!important;
  }

  .legendDisplayOptions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(86px,.9fr)!important;
    gap:4px!important;
  }
}

@media(max-width:340px){
  .legendGrid{
    grid-template-columns:1fr!important;
  }
  .legendDisplayBlock{
    grid-column:1!important;
  }
  .legendDisplayOptions{
    grid-template-columns:1fr!important;
  }
}

/* WHEREWHO GLOBAL 0.5.1 — force real two-column Legend on mobile */
.mapLegendPanel{
  display:block!important;
}

.mapLegendPanel[hidden]{
  display:none!important;
}

.legendGrid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:6px!important;
  width:100%!important;
}

.legendStatusBlock{
  grid-column:1!important;
}

.legendActivityBlock{
  grid-column:2!important;
}

.legendDisplayBlock{
  grid-column:1 / -1!important;
}

/* Neutralise previous narrow-screen fallback */
@media(max-width:380px){
  .mapLegendPanel{
    display:block!important;
  }

  .legendGrid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:5px!important;
  }

  .legendStatusBlock{
    grid-column:1!important;
  }

  .legendActivityBlock{
    grid-column:2!important;
  }

  .legendDisplayBlock{
    grid-column:1 / -1!important;
  }

  .legendMiniBlock{
    padding:4px!important;
  }

  .legendMiniBlock label{
    min-height:18px!important;
    font-size:8.2px!important;
    gap:3px!important;
  }

  .legendMiniBlock label input{
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
    flex-basis:14px!important;
  }

  .legendMiniBlock .statusDot{
    width:7px!important;
    height:7px!important;
    min-width:7px!important;
    flex-basis:7px!important;
  }

  .legendMiniBlock .legendSectionTitle{
    font-size:8px!important;
  }

  .legendDisplayOptions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(72px,.9fr)!important;
  }
}

/* WHEREWHO GLOBAL 0.5.2 — Legend quick visibility actions */
.legendQuickActions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:6px!important;
  margin:0 0 6px!important;
}
.legendQuickActions button{
  min-height:30px!important;
  padding:5px 8px!important;
  border:1px solid #d7c8ba!important;
  border-radius:8px!important;
  background:#f6efe8!important;
  color:#45392f!important;
  font-size:9.5px!important;
  font-weight:850!important;
}
.legendQuickActions button:last-child{
  background:#fff!important;
}
.legendQuickActions button:active{
  transform:scale(.98)!important;
}

/* WHEREWHO / FIELD 0.6.0 — final ergonomic consolidation */
.mapPopupOpenable{cursor:pointer}
.mapPopupOpenable:hover strong{text-decoration:underline;text-underline-offset:2px}
.popupVolumeUnknown{font-style:italic;color:#8d8178}

/* Nested accordions: closed = right, open = down */
.nestedSection>summary{position:relative;padding-right:30px!important;list-style:none}
.nestedSection>summary::-webkit-details-marker{display:none}
.nestedSection>summary:after{content:'›';position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:18px;line-height:1;color:#9d654d}
.nestedSection[open]>summary:after{content:'⌄'}

/* One visual language for cross close buttons */
#closeFilters,#closeDetail,#legendClose,#wwMediaX,
.helpHead .iconBtn,.recentDialog .iconBtn,.transportDialog .iconBtn{
  width:36px!important;height:36px!important;min-width:36px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;border:0!important;border-radius:50%!important;
  background:#eef1f4!important;color:#3f4b59!important;
  font-size:24px!important;font-weight:600!important;line-height:1!important;
  box-shadow:none!important;
}

/* Mobile filter header must fully mask content scrolling underneath it */
@media(max-width:720px){
  #filtersPanel.filtersPanel{padding-top:0!important}
  #filtersPanel .panelHead{
    top:0!important;
    margin:0 -14px 8px!important;
    padding:14px 54px 8px 16px!important;
    background:#fffaf5!important;
    box-shadow:0 5px 9px rgba(255,250,245,.96)!important;
  }
}

/* WHEREWHO / FIELD 0.7.0 — recipe consolidation */
.detailSection .nestedSection > summary{position:relative!important;padding-right:34px!important;list-style:none!important}
.detailSection .nestedSection > summary:after{
 content:'›'!important;position:absolute!important;right:11px!important;top:50%!important;
 transform:translateY(-50%)!important;float:none!important;font-size:23px!important;
 line-height:1!important;font-weight:800!important;color:#9d654d!important
}
.detailSection .nestedSection[open] > summary:after{content:'⌄'!important}

#closeFilters,#closeDetail,#legendClose,#wwMediaX,#recentClose,#helpClose,#transportSettingsClose,
#wwMenu023Close,.helpHead .iconBtn,.recentDialog .iconBtn,.transportDialog .iconBtn{
 width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 border:0!important;border-radius:50%!important;background:#ef2d24!important;color:#fff!important;
 font-size:25px!important;font-weight:900!important;line-height:1!important;
 box-shadow:0 3px 8px rgba(130,20,18,.28)!important
}
.leaflet-container a.leaflet-popup-close-button{
 width:27px!important;height:27px!important;top:7px!important;right:7px!important;padding:0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 border-radius:50%!important;background:#ef2d24!important;color:#fff!important;
 font-size:19px!important;font-weight:900!important;line-height:1!important
}
#historySection .nestedSection{margin:7px 0;background:#fffaf5}
#historySection .nestedSection>summary{font-size:11px;font-weight:900}


/* WHEREWHO PRESENTATION 0.8.0 */
/* Unified close glyph: optical centering independent of font baseline */
#closeFilters,#closeDetail,#legendClose,#wwMediaX,#recentClose,#helpClose,#transportSettingsClose,#wwMenu023Close,
.helpHead .iconBtn,.recentDialog .iconBtn,.transportDialog .iconBtn{
 font-size:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
#closeFilters:before,#closeDetail:before,#legendClose:before,#wwMediaX:before,#recentClose:before,#helpClose:before,
#transportSettingsClose:before,#wwMenu023Close:before,.helpHead .iconBtn:before,.recentDialog .iconBtn:before,.transportDialog .iconBtn:before{
 content:'✕';font-size:20px;line-height:1;font-family:Arial,sans-serif;font-weight:900;transform:translateY(-.5px);
}
/* Closed = right, open = down, including data-quality and nested accordions */
.dataQualityNotice>summary{position:relative;padding-right:30px!important}
.dataQualityNotice>summary:after{content:'›'!important;position:absolute;right:10px;top:50%;transform:translateY(-50%);float:none!important;font-size:19px;line-height:1}
.dataQualityNotice[open]>summary:after{content:'⌄'!important}
/* Keep mobile filter header opaque/sticky so scrolled controls never bleed above it */
@media(max-width:720px){
 #filtersPanel .panelHead{position:sticky!important;top:0!important;z-index:30!important;background:#fffaf4!important;padding-top:14px!important;padding-bottom:8px!important;margin-top:0!important}
 .wwQuick023{gap:8px}
}

/* WHEREWHO PRESENTATION 0.8.1 — final presentation polish */
/* Desktop: Latest records + FIELD belong together at the right edge, beside hamburger. */
@media(min-width:721px){
  .wwTopbar023{display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:space-between!important}
  .wwQuick023{width:auto!important;display:flex!important;grid-template-columns:none!important;margin-left:auto!important;justify-content:flex-end!important;justify-items:initial!important;gap:18px!important}
  .wwQuick023 .wwQuickBtn023{display:inline-flex!important;width:auto!important;min-width:0!important}
  #filtersBtn.mobileOnly{display:none!important}
  #closeFilters{display:none!important}
  .wwHamb023{grid-column:auto!important;margin-left:6px!important}
}
/* Mobile filter close: one centred glyph only. */
@media(max-width:720px){
  #closeFilters{font-size:20px!important;line-height:1!important}
  #closeFilters:before{content:none!important}
}

/* V6_TOP_SEARCHES */
.wwV6TopSearch{display:flex;flex-direction:column;gap:5px;margin:8px 0 11px}
.wwV6TopSearch label{font-size:12px;font-weight:700;letter-spacing:.01em;color:#655246}
.wwV6TopSearch input{width:100%;min-width:0;border:1px solid #e1cabb;border-radius:12px;padding:11px 10px;background:#fff;font:inherit}
.wwV6TopSearch input:focus{outline:2px solid #c37a57;outline-offset:1px}
