.htmljs-criterion-map #htmljs-world-map { height: clamp(320px,55vw,560px); width:100%; min-width:0; background:#e0ecff; color:#172647; border:1px solid var(--site-border); border-radius:14px; z-index:0; }
.htmljs-map-land { fill:#f0eddf; }
.public-site .htmljs-criterion-map > h1 { padding:14px 22px; margin-block:0 14px; font-size:clamp(1.4rem,3vw,2rem); }
.public-site .htmljs-criterion-map > .htmljs-map-workspace { position:relative; padding:12px; margin-block:0 24px; }
.htmljs-map-stage { position:relative; isolation:isolate; }
.htmljs-map-west,.htmljs-map-east,.htmljs-map-chips,.htmljs-map-view-controls { position:absolute; z-index:1000; display:flex; gap:6px; }
.htmljs-map-west { top:110px; left:10px; flex-direction:column; max-width:38px; }
.htmljs-map-view-controls { top:10px; left:52px; flex-direction:column; }
.htmljs-map-east { top:62px; right:10px; flex-direction:column; max-width:180px; }
.htmljs-map-chips { top:10px; left:100px; right:55px; flex-wrap:wrap; justify-content:center; pointer-events:none; }
.public-site .htmljs-map-chips button { pointer-events:auto; background:var(--chip-color); color:#fff; border:2px solid #fff; box-shadow:0 2px 6px #0006; width:34px; min-height:34px; height:34px; padding:0; border-radius:9px; }
.htmljs-map-chips button span { background:#0008; border-radius:50%; padding:1px 5px; font-size:12px; }
.htmljs-map-chips button[aria-pressed=false] { opacity:.45; border-style:dashed; }
.public-site .htmljs-map-west button,.public-site .htmljs-map-east a,.public-site .htmljs-map-east button,.public-site .htmljs-map-view-controls button { display:flex; align-items:center; justify-content:center; width:38px; min-height:36px; padding:4px; font-size:.8rem; line-height:1.3; background:var(--htmljs-panel,var(--site-bg)); color:var(--site-ink); border:1px solid var(--site-border); box-shadow:0 2px 7px #0003; border-radius:9px; text-decoration:none; text-align:center; }
.htmljs-map-region-labels { position:absolute; inset:0; z-index:660; pointer-events:none; overflow:hidden; }
.htmljs-map-region-label { position:absolute; display:block; white-space:nowrap; padding:3px 5px; border:1px solid; border-radius:5px; font-family:system-ui,sans-serif; font-weight:700; line-height:1.4; box-shadow:0 1px 3px #0003; unicode-bidi:isolate; pointer-events:none; }
.htmljs-map-logo { background:transparent; border:0; pointer-events:none!important; }
.htmljs-map-logo img { display:block; width:32px; height:32px; object-fit:contain; filter:drop-shadow(0 1px 2px #fff); }
.htmljs-map-north-logo { object-fit:contain; pointer-events:none!important; filter:drop-shadow(0 1px 2px #fff); }
.htmljs-map-north-name { background:transparent; border:0; text-align:center; pointer-events:none!important; color:#14366b; font-weight:800; font-size:clamp(12px,1.5vw,23px); line-height:32px; text-shadow:0 1px 2px #fff,1px 0 2px #fff; direction:ltr; }
.htmljs-map-date-logo { width:24px; height:24px; object-fit:contain; flex:none; }
.htmljs-map-view-date { display:flex; align-items:center; justify-content:center; gap:8px; }
.htmljs-user-location-pin { border:3px solid #fff; border-radius:50%; background:#1262d4; box-shadow:0 0 0 4px #1262d43d,0 2px 6px #0005; }
.public-site .htmljs-map-east [data-map-locate][aria-pressed=true] { background:#1262d4; color:#fff; border-color:#fff; }
.htmljs-map-popup .leaflet-popup-content { margin:12px 16px; font:13px/1.6 system-ui,sans-serif; overflow-wrap:normal; color:var(--site-ink); }
.htmljs-map-popup.htmljs-popup-shifted .leaflet-popup-tip-container { display:none; }
.htmljs-map-popup .leaflet-popup-close-button { z-index:2; }
.htmljs-map-layers [data-layer-status][hidden] { display:none!important; }
.htmljs-map-popup .leaflet-popup-content-wrapper,.htmljs-map-popup .leaflet-popup-tip { background:var(--htmljs-panel,var(--site-bg)); color:var(--site-ink); }
.htmljs-map-quick :is(h3,h4,p) { margin:6px 0; }
.htmljs-map-quick h3 { font-size:1rem; }
.htmljs-map-quick h4 { font-size:.95rem; }
.htmljs-popup-cities { list-style:none; margin:6px 0; padding:0; display:flex; flex-wrap:wrap; gap:5px; }
.public-site .htmljs-popup-cities button { display:inline-block; min-height:34px; padding:5px 8px; border:1px solid var(--site-border); border-radius:7px; text-decoration:none; background:var(--htmljs-soft,var(--site-bg)); color:var(--site-ink); font-size:12px; }
.public-site .htmljs-popup-cities button[aria-current=true] { background:var(--site-accent); color:var(--site-bg); }
.htmljs-map-quick dl { display:grid; grid-template-columns:1fr auto; gap:3px 12px; margin:8px 0; }
.htmljs-map-quick dd { margin:0; font-variant-numeric:tabular-nums; }
.htmljs-map-quick bdi { display:inline-block; max-width:100%; overflow-wrap:anywhere; }
.public-site .htmljs-map-quick .action { margin:8px 0; padding:7px 10px; font-size:.85rem; }
.htmljs-celestial-tooltip { width:max-content; min-width:160px; max-width:min(70vw,300px)!important; white-space:normal!important; overflow-wrap:normal!important; color:#172647; background:#fff; }
.htmljs-celestial-info { display:flex; flex-direction:column; gap:4px; font:13px/1.5 system-ui,sans-serif; text-align:start; }
.htmljs-celestial-info bdi { white-space:normal; overflow-wrap:normal; }
.htmljs-point-tooltip { min-width:0; direction:ltr; font:13px/1.5 system-ui,sans-serif; }
.public-site .htmljs-map-controls-toggle { bottom:5px; }
.htmljs-map-control-icon { font-weight:800; font-size:18px; direction:ltr; white-space:nowrap; }
.public-site .htmljs-map-controls-toggle { position:absolute; z-index:1400; bottom:5px; left:10px; min-height:38px; width:40px; padding:4px; background:#ffffff80; color:#172647; border:1px solid #61749a; box-shadow:none; opacity:.75; font-size:22px; }
.public-site .htmljs-map-controls-toggle:is(:hover,:focus-visible) { opacity:1; }
.htmljs-map-view-date { position:absolute; bottom:24px; inset-inline:65px; max-width:none!important; text-align:center; padding:5px 10px; margin:0; z-index:900; background:#ffffffe8; color:#172647!important; border-radius:8px; font-size:.8rem; pointer-events:none; }
.htmljs-map-controls-hidden [data-map-overlay],.htmljs-map-controls-hidden .leaflet-control-zoom { visibility:hidden; pointer-events:none; }
.htmljs-map-enhanced [data-map-settings-panel][open] { position:absolute; top:70px; left:60px; z-index:1200; width:min(620px,calc(100% - 76px)); max-height:calc(100% - 90px); overflow:auto; box-shadow:0 12px 45px #0006; overscroll-behavior:contain; }
.public-site .htmljs-criterion-map details[data-map-settings-panel]:not(.site-menu) { padding:0; }
.public-site .htmljs-criterion-map details[data-map-settings-panel]:not(.site-menu) > summary { position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box; margin:0; padding:8px 12px; background:var(--htmljs-panel,var(--site-bg)); border-bottom:1px solid var(--site-border); border-radius:11px 11px 0 0; }
.htmljs-map-settings-title { flex:1; min-width:0; }
.htmljs-map-settings-title::before { content:'▸'; display:inline-block; margin-inline-end:8px; }
[data-map-settings-panel][open] .htmljs-map-settings-title::before { content:'▾'; }
.htmljs-map-settings-body { padding:12px 16px; }
.public-site .htmljs-criterion-map [data-map-settings-close] { flex:none; min-width:44px; min-height:44px; padding:4px; font-size:24px; line-height:1; color:var(--site-accent); background:var(--htmljs-panel,var(--site-bg)); border:1px solid var(--site-border); box-shadow:none; }
.htmljs-criterion-map [data-map-settings-close][hidden] { display:none; }
.htmljs-criterion-map [data-map-auto-sort][aria-pressed=true] { outline:3px solid var(--site-accent); outline-offset:3px; }
.htmljs-map-commands { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-block:14px; }
.htmljs-map-commands label { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
.public-site .htmljs-criterion-map input[type=checkbox] { width:22px; height:22px; min-height:22px; padding:0; flex:none; accent-color:var(--site-accent); }
.public-site .htmljs-criterion-map input[type=color] { width:52px; height:44px; min-height:44px; padding:4px; }
.public-site .htmljs-criterion-map input[type=range] { width:150px; min-height:32px; padding:0; accent-color:var(--site-accent); }
.htmljs-map-layers { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:12px; }
.htmljs-map-layers li { display:flex; flex-wrap:wrap; gap:10px; align-items:center; border:1px solid var(--site-border); background:var(--htmljs-soft,var(--site-bg)); padding:14px; border-radius:12px; min-width:0; }
.htmljs-map-layers li > label:first-child { display:flex; align-items:center; gap:10px; width:100%; font-weight:700; }
.htmljs-map-layers [data-layer-status] { flex:0 0 100%; font-size:.85rem; overflow-wrap:anywhere; }
.htmljs-map-layers li > label { display:flex; align-items:center; gap:8px; }
.htmljs-criterion-map [data-map-status] { min-height:30px; color:var(--site-accent); font-weight:650; }
.htmljs-criterion-map [data-map-inspection] { scroll-margin-block:20px; }
.htmljs-criterion-map [data-map-inspection] > div { display:grid; gap:16px; }
.htmljs-criterion-map [data-map-inspection] .htmljs-month { margin-block:16px!important; }
.htmljs-criterion-map [data-map-inspection] bdi { display:inline-block; max-width:100%; overflow-wrap:anywhere; }
.htmljs-criterion-map [data-map-markers] { list-style:none; padding:0; }
.htmljs-criterion-map [data-map-markers] li { display:flex; gap:12px; flex-wrap:wrap; margin-block:12px; }
.htmljs-map-workspace:fullscreen { overflow:auto; background:var(--htmljs-panel,var(--site-bg)); padding:20px; color:var(--site-ink); }
.htmljs-map-workspace:fullscreen #htmljs-world-map { height:70vh; }
.htmljs-map-workspace:fullscreen { height:100dvh; padding:10px!important; }
.htmljs-map-workspace:fullscreen #htmljs-world-map { height:calc(100dvh - 115px); }
.public-site .htmljs-criterion-map .leaflet-control-zoom a { color:#172647; background:#fff; min-height:36px; width:36px; line-height:36px; }
.public-site .htmljs-criterion-map .leaflet-control-attribution { color:#172647; background:#fffffff0; font-size:11px; }
.public-site .htmljs-criterion-map .leaflet-control-attribution a { color:#164cc5; }
.htmljs-criterion-map .leaflet-tooltip { max-width:min(70vw,360px); white-space:normal; overflow-wrap:anywhere; }
@media (max-width:640px) { .public-site .htmljs-map-workspace { padding:12px; } .htmljs-map-commands button { flex:1 1 130px; } .htmljs-map-layers { grid-template-columns:minmax(0,1fr); } }
@media (max-width:640px) {
  .htmljs-map-west { max-width:52px; }
  .public-site .htmljs-map-west button { min-height:32px; padding:4px; }
  .htmljs-map-control-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .htmljs-map-east { max-width:42px; }
  .public-site .htmljs-map-east a { width:38px; min-height:34px; padding:4px; }
  .htmljs-map-chips { left:100px; right:55px; gap:4px; }
  .public-site .htmljs-map-chips button { width:28px; height:28px; min-height:28px; }
  .htmljs-map-view-date { inset-inline:55px; font-size:.7rem; }
  .htmljs-map-enhanced [data-map-settings-panel][open] { left:8px; width:calc(100% - 16px); }
}
@media print {
  .htmljs-criterion-map .htmljs-map-commands,.htmljs-criterion-map .leaflet-control-container,.htmljs-criterion-map [data-map-layers] button,.htmljs-criterion-map [data-map-layers] input,.htmljs-criterion-map [data-map-share],.htmljs-criterion-map [data-map-location-section] > form { display:none!important; }
  .htmljs-criterion-map #htmljs-world-map { height:420px; break-inside:avoid; print-color-adjust:exact; }
  .htmljs-criterion-map .htmljs-map-layers { display:block; }
  .htmljs-criterion-map .htmljs-map-layers li { display:block; padding:6px; margin:6px 0; }
  .htmljs-criterion-map [data-map-data] { break-inside:auto; }
  .htmljs-criterion-map .htmljs-map-west,.htmljs-criterion-map .htmljs-map-east,.htmljs-criterion-map .htmljs-map-chips,.htmljs-criterion-map .htmljs-map-controls-toggle,.htmljs-criterion-map [data-map-settings-panel] > summary,.htmljs-criterion-map .htmljs-map-settings-body > .reference,.htmljs-criterion-map .htmljs-map-settings-body > .direct-answer { display:none!important; }
  .htmljs-criterion-map .htmljs-map-view-controls { display:none!important; }
  .htmljs-criterion-map [data-map-settings-panel][open] { position:static; width:100%; max-height:none; overflow:visible; box-shadow:none; }
  .htmljs-map-view-date { position:static; color:#000!important; background:#fff; font-size:10pt; }
  .htmljs-criterion-map .htmljs-map-layers label { color:#000; }
}

.htmljs-map-enhanced .htmljs-map-workspace.htmljs-map-standalone { position:fixed; inset:0; z-index:2000; height:100dvh; margin:0; overflow:auto; padding:10px!important; background:var(--htmljs-panel,var(--site-bg)); }
.htmljs-map-workspace.htmljs-map-standalone #htmljs-world-map { height:calc(100dvh - 115px); }
