:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#e9eee9;background:#101410}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{background:#e88b38;color:#17110b;border:0;border-radius:6px;padding:10px 13px;cursor:pointer;font-weight:700}button:hover{filter:brightness(1.13)}input,select,textarea{width:100%;border:1px solid #343f36;border-radius:6px;background:#161d18;color:#eef5ec;padding:12px;outline:none}input:focus,textarea:focus{border-color:#e88b38}header{height:66px;display:flex;justify-content:space-between;align-items:center;padding:0 22px;background:#151b16;border-bottom:1px solid #303a30}.brand{font-weight:900;letter-spacing:2px;font-size:19px}.brand span{color:#e88b38}.header-actions{display:flex;align-items:center;gap:14px}#sync{font-size:12px;color:#9cb69b}.subtle{background:#303a32;color:#ddd}.workspace{display:flex;height:calc(100dvh - 66px)}aside{width:340px;min-width:290px;background:#151b16;display:flex;flex-direction:column;padding:20px 16px;gap:14px;border-right:1px solid #303a30}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#e88b38}h2{margin:0;font-size:20px}h2 span{font-size:14px;color:#8c9c8d}.filters{display:flex;gap:5px}.filters button{flex:1;font-size:12px;padding:8px 5px;background:#283128;color:#b5c1b5}.filters .active{background:#e88b38;color:#1b140d}.marker-list{overflow-y:auto;flex:1}.marker{display:block;width:100%;text-align:left;background:#202921;color:#e8eee8;margin:0 0 8px;padding:13px;border:1px solid #334035}.marker strong{display:block;margin-bottom:5px}.marker small{color:#aab8aa;font-weight:400;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aside-foot{font-size:12px;color:#9ba99b;line-height:1.5;border-top:1px solid #303a30;padding-top:12px}.aside-foot p{font-size:11px}main{position:relative;flex:1;min-width:0}#map{width:100%;height:100%;background:#0b1110}#mapHint,#coord{position:absolute;z-index:500;bottom:16px;background:#131a15d9;padding:10px 13px;border-radius:5px;font-size:11px;letter-spacing:1px;pointer-events:none}#mapHint{left:15px}#coord{right:15px}.login{position:fixed;inset:0;background:radial-gradient(circle at center,#283c2c,#101410 70%);display:grid;place-items:center;z-index:1000}.login[hidden],#app[hidden]{display:none}.login-card{width:min(420px,calc(100% - 32px));padding:35px;background:#19221b;border:1px solid #394539;border-radius:14px;box-shadow:0 24px 80px #0008}.login-card h1{letter-spacing:1px;font-size:26px}.login-card h1 span{color:#e88b38}.login-card p{color:#aab6aa;line-height:1.5}.login-card button{width:100%;margin-top:12px}.error{color:#ff8b8b;font-size:13px;min-height:18px;margin-top:8px}dialog{background:#19221b;color:#f0f5f0;border:1px solid #536251;border-radius:12px;width:min(450px,95vw);padding:25px}dialog::backdrop{background:#000a}dialog form{display:flex;flex-direction:column;gap:14px}dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#bdc9bc}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}#positionText{font-size:12px;color:#9dac9c}.leaflet-container{font-family:inherit}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#202921;color:white}.leaflet-popup-content{line-height:1.6}.pin{font-size:22px;filter:drop-shadow(0 2px 2px #000)}@media(max-width:700px){header{padding:0 10px}.brand{font-size:13px}.header-actions{gap:5px}.header-actions button{font-size:11px;padding:8px}.workspace{flex-direction:column-reverse}aside{height:37%;width:100%;min-width:0;padding:10px;gap:7px}main{height:63%;flex:none}.aside-foot{display:none}#sync{display:none}}

.stash-photo{display:block;max-width:300px;max-height:220px;width:auto;height:auto;border-radius:7px;margin:10px 0;cursor:zoom-in}.photo-preview img{max-width:100%;max-height:200px;border-radius:7px;display:block;margin-bottom:8px}.photo-preview{padding:8px;background:#101811;border:1px solid #364338;border-radius:7px}.photo-preview button{font-size:12px;padding:6px 10px}.pin-stash{display:grid;place-items:center;width:30px;height:30px;background:#1d261c;border:2px solid #e88b38;border-radius:50%;box-shadow:0 2px 7px #000b;font-size:18px}#photoField small{color:#aab8aa;line-height:1.4}#stashPhoto{padding:8px}#stashStyleField[hidden],#photoField[hidden]{display:none}


/* Collapsible map controls */
.ra-popup-control{background:#171b22;color:#fff;border:1px solid #48515e;border-radius:10px;box-shadow:0 4px 16px #0009;font:13px Arial,sans-serif;min-width:0;max-width:min(300px,calc(100vw - 80px));overflow:hidden}
.ra-control-toggle{display:block;width:100%;border:0;border-radius:8px;background:#171b22;color:#fff;cursor:pointer;font:600 13px Arial,sans-serif;padding:11px 14px;text-align:left;white-space:nowrap}
.ra-control-toggle:hover,.ra-control-toggle[aria-expanded="true"]{background:#303947;color:#ffa34b}
.ra-control-panel{padding:11px;border-top:1px solid #3c4450;min-width:215px}
.ra-control-panel[hidden]{display:none!important}
.ra-panel-title{font-weight:700;margin-bottom:8px}
.ra-coord-row{display:flex;gap:6px;align-items:center}
.ra-coord-row input{min-width:0;width:70px;flex:1;padding:8px 6px;border:1px solid #555;border-radius:5px;background:#292f39;color:#fff}
.ra-coord-row button{padding:8px 12px;border:0;border-radius:5px;background:#e87525;color:#fff;cursor:pointer}


/* Unified, vertically centered right-side map toolbar */
#map .leaflet-top.leaflet-right {
  top:50%;right:16px;transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:flex-end;gap:10px;
  pointer-events:none;
}
#map .leaflet-top.leaflet-right > .leaflet-control {margin:0!important;pointer-events:auto;}
#map .leaflet-top.leaflet-right .ra-popup-control,
#map .leaflet-top.leaflet-right .leaflet-control-layers {
  background:#19231e!important;border:1px solid #415146!important;
  border-radius:10px!important;color:#eef5ed!important;
  box-shadow:0 6px 22px #0008!important;overflow:visible!important;
}
#map .leaflet-top.leaflet-right .ra-control-toggle,
#map .leaflet-top.leaflet-right .leaflet-control-layers-toggle {
  width:44px!important;height:44px!important;min-width:44px!important;
  padding:0!important;display:flex!important;align-items:center;justify-content:center;
  background:#19231e!important;color:#ffa34b!important;
  border:0!important;border-radius:9px!important;
  font-size:22px!important;font-weight:800!important;line-height:1!important;
  text-decoration:none!important;filter:none!important;
}
#map .leaflet-top.leaflet-right .ra-control-toggle:hover,
#map .leaflet-top.leaflet-right .leaflet-control-layers-toggle:hover {background:#2c3a30!important;}
#map .leaflet-top.leaflet-right .leaflet-control-layers-toggle {
  background-image:none!important;
}
#map .leaflet-top.leaflet-right .leaflet-control-layers-toggle::after {
  content:'▤';color:#ffa34b;font-size:24px;
}
#map .leaflet-top.leaflet-right .leaflet-control-layers-expanded {
  padding:0!important;position:relative;
}
#map .leaflet-top.leaflet-right .leaflet-control-layers-expanded .leaflet-control-layers-list {
  display:block;position:absolute;right:54px;top:0;
  background:#19231e;border:1px solid #415146;border-radius:10px;
  padding:13px;min-width:210px;box-shadow:0 8px 24px #0009;
}
#map .leaflet-top.leaflet-right .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display:flex!important;
}
#map .leaflet-top.leaflet-right .ra-control-panel {
  position:absolute;right:54px;top:0;width:250px;min-width:250px;
  background:#19231e;border:1px solid #415146;border-radius:10px;
  box-shadow:0 8px 24px #0009;padding:12px;
}
#map .leaflet-top.leaflet-right .ra-popup-control {position:relative;min-width:44px;max-width:none;overflow:visible;}
#map .leaflet-top.leaflet-right .ra-coord-row input {width:74px;}
@media(max-width:700px){
 #map .leaflet-top.leaflet-right{right:8px;gap:7px;}
 #map .leaflet-top.leaflet-right .ra-control-toggle,
 #map .leaflet-top.leaflet-right .leaflet-control-layers-toggle{width:39px!important;height:39px!important;min-width:39px!important;}
 #map .leaflet-top.leaflet-right .ra-control-panel,
 #map .leaflet-top.leaflet-right .leaflet-control-layers-expanded .leaflet-control-layers-list {right:46px;max-width:calc(100vw - 105px);min-width:190px;width:auto;}
}

/* Map controls refinement: compact, click-to-open flyouts */
#map .leaflet-top.leaflet-right {gap:9px;z-index:850;}
#map .leaflet-top.leaflet-right > .leaflet-control {border:0!important;background:transparent!important;box-shadow:none!important;}
#map .leaflet-top.leaflet-right .ra-popup-control,
#map .leaflet-top.leaflet-right .leaflet-control-layers {width:44px;min-width:44px;max-width:44px;height:44px;background:#19231e!important;border:1px solid #415146!important;border-radius:11px!important;box-shadow:0 5px 18px #0008!important;overflow:visible!important;}
#map .leaflet-top.leaflet-right .ra-control-toggle[aria-expanded="true"],
#map .leaflet-top.leaflet-right .leaflet-control-layers-toggle[aria-expanded="true"] {background:#35432f!important;box-shadow:inset 0 0 0 1px #e88b38!important;}
#map .leaflet-top.leaflet-right .leaflet-control-layers-expanded {padding:0!important;}
#map .leaflet-top.leaflet-right .leaflet-control-layers-expanded .leaflet-control-layers-list,
#map .leaflet-top.leaflet-right .ra-control-panel {box-sizing:border-box;width:270px!important;min-width:270px!important;max-width:min(270px,calc(100vw - 110px))!important;top:0!important;right:55px!important;background:#17211b!important;border:1px solid #3b5040!important;border-radius:12px!important;box-shadow:0 14px 36px #000b!important;padding:16px!important;color:#ecf2ea!important;}
#map .leaflet-top.leaflet-right .leaflet-control-layers-list::before {content:'MAP DISPLAY';font-size:11px;letter-spacing:.12em;color:#ffa34b;margin:0 0 12px;}
#map .leaflet-top.leaflet-right .leaflet-control-layers-base label,
#map .leaflet-top.leaflet-right .leaflet-control-layers-overlays label {padding:8px 9px;border-radius:7px;background:#222e25;margin:5px 0!important;font-weight:600;}
#map .leaflet-top.leaflet-right .leaflet-control-layers label:hover {background:#304034;}
#map .leaflet-top.leaflet-right .leaflet-control-layers input {accent-color:#ff9c37;}
#map .leaflet-top.leaflet-right .leaflet-control-layers-separator {margin:12px 0!important;border-color:#3b5040!important;}
#map .ra-panel-heading {display:flex;flex-direction:column;gap:4px;margin-bottom:14px;}
#map .ra-panel-kicker {font-size:10px;letter-spacing:.13em;color:#ffa34b;font-weight:800;}
#map .ra-panel-heading strong {font-size:17px;color:#f3f6f0;}
#map .ra-panel-description {font-size:11px;line-height:1.5;color:#a6b8a8;}
#map .ra-switch-row {display:flex;align-items:center;justify-content:space-between;gap:12px;background:#243127;padding:10px 11px;border-radius:8px;font-weight:650;font-size:12px;}
#map .ra-switch-row input {width:17px;height:17px;accent-color:#e88b38;cursor:pointer;}
#map .ra-field-label {display:block;font-size:11px;color:#b8c6b8;font-weight:650;margin:13px 0 6px;}
#map .ra-dze-panel select {width:100%;padding:10px 12px!important;margin:0!important;background:#202b23!important;border:1px solid #405043!important;border-radius:8px!important;color:#f3f5f1!important;font-size:12px;}
#map .ra-status {font-size:11px;color:#ffa34b;margin-top:13px;padding-top:11px;border-top:1px solid #344537;}
#map .ra-panel-help {font-size:11px;color:#9baa9d;margin-top:6px;}
@media(max-width:700px){#map .leaflet-top.leaflet-right .ra-popup-control,#map .leaflet-top.leaflet-right .leaflet-control-layers{width:39px;min-width:39px;max-width:39px;height:39px;}#map .leaflet-top.leaflet-right .leaflet-control-layers-expanded .leaflet-control-layers-list,#map .leaflet-top.leaflet-right .ra-control-panel{right:47px!important;width:230px!important;min-width:0!important;max-width:calc(100vw - 105px)!important;}}

/* Click-only Map Display flyout: consistent with the right toolbar */
#map .leaflet-top.leaflet-right .ra-map-display-control {position:relative;width:44px;height:44px;min-width:44px;max-width:44px;background:#19231e!important;border:1px solid #415146!important;border-radius:11px!important;box-shadow:0 5px 18px #0008!important;pointer-events:auto;}
#map .ra-map-trigger {display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:10px;background:transparent;color:#ffa34b;font-size:24px;line-height:1;cursor:pointer;}
#map .ra-map-trigger:hover,#map .ra-map-trigger[aria-expanded="true"]{background:#304034;color:#ffad56;}
#map .ra-map-flyout {position:absolute;right:55px;top:0;width:265px;padding:16px;background:#17211b;border:1px solid #3b5040;border-radius:12px;box-shadow:0 14px 36px #000b;color:#ecf2ea;font:13px/1.35 Inter,Segoe UI,Arial,sans-serif;}
#map .ra-map-flyout[hidden]{display:none!important;}
#map .ra-map-heading {display:flex;flex-direction:column;gap:4px;margin-bottom:17px;}
#map .ra-map-heading span {font-size:10px;letter-spacing:.14em;color:#ffa34b;font-weight:800;}
#map .ra-map-heading strong {font-size:17px;font-weight:750;}
#map .ra-map-caption {font-size:10px;color:#98ac9b;letter-spacing:.11em;font-weight:750;margin-bottom:8px;}
#map .ra-map-choice {display:flex;align-items:center;gap:11px;padding:11px 10px;margin:5px 0;border:1px solid #344538;border-radius:9px;background:#222e25;cursor:pointer;}
#map .ra-map-choice:hover {background:#2b3a2f;border-color:#526a54;}
#map .ra-map-choice input {width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#ff9c37;cursor:pointer;}
#map .ra-map-choice-copy {display:flex;flex-direction:column;gap:3px;min-width:0;}
#map .ra-map-choice-copy strong {font-size:12px;font-weight:750;line-height:1.3;}
#map .ra-map-choice-copy small {font-size:11px;color:#a4b4a6;line-height:1.3;}
#map .ra-map-divider {border-top:1px solid #344537;margin:14px 0 12px;}
#map .ra-map-labels {margin-bottom:0;}
@media(max-width:700px){#map .leaflet-top.leaflet-right .ra-map-display-control{width:39px;height:39px;min-width:39px;max-width:39px;}#map .ra-map-flyout{right:47px;width:min(265px,calc(100vw - 105px));}}

/* Squad access keypad */
.login-card{width:min(390px,calc(100% - 32px));text-align:center;padding:34px 30px}
.login-card .eyebrow{letter-spacing:2.5px}
.login-card h1{margin:14px 0 6px}
.login-card p{font-size:13px;margin:0 0 23px}
.pin-hidden-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;padding:0;border:0}
.pin-dots{display:flex;justify-content:center;gap:16px;margin:0 0 24px}
.pin-dots span{height:15px;width:15px;border:2px solid #677568;border-radius:50%;background:transparent;transition:background .12s,border-color .12s,transform .12s}
.pin-dots span.filled{background:#f49b3e;border-color:#f49b3e;transform:scale(1.05)}
.pin-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:282px;margin:0 auto}
.login-card .pin-keypad button{margin:0;width:100%;height:62px;border:1px solid #394a3d;border-radius:12px;background:#243127;color:#f3f5f1;font-size:23px;font-weight:650;transition:background .12s,border-color .12s}
.login-card .pin-keypad button:hover{background:#344739;border-color:#e88b38;filter:none}
.login-card .pin-keypad button:active{background:#e88b38;color:#18140f}
.login-card .pin-keypad button[data-pin=clear],.login-card .pin-keypad button[data-pin=back]{font-size:15px;color:#f4a04e}
.login-card .pin-unlock{display:block;max-width:282px;margin:18px auto 0;background:#e88b38}
.login-card .pin-unlock:disabled{opacity:.45;cursor:not-allowed;filter:none}
.login-card #loginError{margin-top:12px;min-height:18px}
@media(max-width:420px){.login-card{padding:25px 18px}.login-card .pin-keypad button{height:57px}}

/* Readable DayZ town and airfield labels */
#map .dayz-town-label { background: transparent; border: 0; pointer-events: none; }
#map .dayz-town-label span {
  display: inline-block; position: relative; left: 0; top: 0; transform: translate(-50%, -50%);
  white-space: nowrap; font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .12px; line-height: 1.2;
  color: #f5f6ee; text-shadow: 0 1px 2px #07100b, 1px 0 2px #07100b, -1px 0 2px #07100b, 0 -1px 3px #07100b, 0 2px 5px #000;
}
#map .dayz-location-city span { font-size: 14px; font-weight: 800; letter-spacing: .18px; }
#map .dayz-location-town span { font-size: 13px; font-weight: 750; }

/* Important Rearmed landmark: same prominent weight as major airfield labels */
#map .dayz-location-military span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .18px;
}
/* Shared site geometry for both pages */
:root{--shared-header:66px;--shared-sidebar:340px;--shared-bg:#151b16;--shared-border:#303a30;--shared-orange:#e88b38}
header{position:relative;height:var(--shared-header);min-height:var(--shared-header);padding:0 22px;display:flex;align-items:center;justify-content:space-between;background:var(--shared-bg);border-bottom:1px solid var(--shared-border)}
header .brand{font-size:19px;font-weight:900;letter-spacing:2px;line-height:1.2;text-decoration:none;color:#e9eee9;white-space:nowrap}
header .brand span{color:var(--shared-orange)}
header .site-tabs{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:17px;padding:7px 18px;border:1px solid #344439;border-radius:10px;background:#1e2921;font-size:13px;font-weight:800;white-space:nowrap;z-index:10}
header .site-tabs a{color:#aebbb0;text-decoration:none}header .site-tabs a:hover,header .site-tabs a.selected{color:#ff9c3d}header .tab-separator{color:#5b6a5e}
.workspace,.layout{height:calc(100dvh - var(--shared-header));min-height:0}
.workspace>aside,.layout>aside{width:var(--shared-sidebar);min-width:var(--shared-sidebar);flex:0 0 var(--shared-sidebar);padding:20px 16px;background:var(--shared-bg);border-right:1px solid var(--shared-border);overflow-y:auto}
.workspace>aside .eyebrow,.layout>aside .eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--shared-orange)}
.workspace>aside h2,.layout>aside h2{font-size:20px;line-height:1.3}
.workspace>main,.layout>main{flex:1 1 0;min-width:0;min-height:0}
@media(max-width:900px){header .brand{font-size:14px;letter-spacing:1px}header{padding:0 12px}}
@media(max-width:750px){.workspace,.layout{display:flex;flex-direction:column;height:calc(100dvh - var(--shared-header))}.workspace>aside,.layout>aside{width:100%;min-width:0;flex:0 0 255px;height:255px;padding:12px;border-right:0;border-bottom:1px solid var(--shared-border)}.workspace>main,.layout>main{flex:1 1 0;height:auto;min-height:180px}header .brand{max-width:30%;white-space:normal;font-size:12px}header .site-tabs{gap:8px;padding:7px 9px;font-size:11px}header .header-actions{gap:6px}}

/* Zoom-tiered Chernarus labels: major towns red, small settlements subdued. */
#map .dayz-town-label.dayz-label-major span,
#map .dayz-town-label.dayz-label-major.dayz-location-military span {
  color:#f05b53; font-size:15px; font-weight:850;
  text-shadow:0 1px 3px #100707,0 0 6px #100707,0 0 2px #000;
}
#map .dayz-town-label.dayz-label-medium span {
  color:#d1d1c6; font-size:12px; font-weight:700; opacity:.88;
}
#map .dayz-town-label.dayz-label-small span {
  color:#a6aea6; font-size:11px; font-weight:600; opacity:.74;
}

#map .dayz-town-label.dayz-label-major span {color:#ff3535!important;font-size:15px!important;font-weight:850!important;letter-spacing:.65px!important;text-transform:uppercase;}
#map .dayz-town-label.dayz-label-medium span{color:#d2d2cb!important;opacity:.88;}
#map .dayz-town-label.dayz-label-small span{color:#b3b8ae!important;opacity:.68;font-size:10px!important;}

/* Reference-map zoom label polish */
#map .dayz-town-label.dayz-label-major span{color:#ff3030!important;text-transform:uppercase;font-size:15px!important;font-weight:850!important;letter-spacing:.7px!important;text-shadow:0 1px 2px #000,1px 0 3px #000,-1px 0 3px #000,0 0 5px #000!important}
#map .dayz-town-label.dayz-label-medium span{color:#e2e2da!important;font-size:12px!important;font-weight:750!important}
#map .dayz-town-label.dayz-label-small span{color:#b0b5aa!important;font-size:10px!important;font-weight:650!important;opacity:.74!important}

/* Rearmed Stashes-inspired map name hierarchy (full-map -> close-up). */
#map .dayz-town-label span {font-family:Arial,Helvetica,sans-serif;line-height:1.12;white-space:nowrap;text-shadow:0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000,0 -1px 2px #000,0 2px 3px #000;}
#map .dayz-town-label.dayz-label-major span {color:#ff2727!important;font-size:14px!important;font-weight:900!important;letter-spacing:1.05px!important;text-transform:uppercase!important;opacity:1!important;text-shadow:1px 1px 2px #080000,-1px -1px 2px #080000,0 0 4px #000!important;}
#map .dayz-town-label.dayz-label-medium span {color:#e4e4dc!important;font-size:12px!important;font-weight:700!important;letter-spacing:.25px!important;text-transform:lowercase!important;opacity:.92!important;}
#map .dayz-town-label.dayz-label-small span {color:#c4c6bf!important;font-size:10px!important;font-weight:650!important;letter-spacing:.2px!important;text-transform:lowercase!important;opacity:.70!important;}

/* Key-room editor and Rust-style hover loot card */
#keyLootSection[hidden]{display:none!important}
.key-loot-section{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid #405044;border-radius:8px;background:#111a14}
.key-loot-heading{display:flex;justify-content:space-between;gap:8px;align-items:center}.key-loot-heading span,.key-loot-section small{color:#aab8aa;font-size:11px}
.key-loot-row{display:grid;grid-template-columns:minmax(0,1fr) 65px 32px;gap:7px;align-items:center;margin-bottom:7px}.key-loot-name{font-size:12px}.key-loot-row input{padding:8px;text-align:center}.key-loot-row button{padding:6px;background:#56312f;color:#ffb5ad}
.key-loot-actions{display:flex;gap:8px}.key-loot-actions select{min-width:0;flex:1;padding:9px}.key-loot-actions button{white-space:nowrap;padding:8px 11px}
#editor{max-height:90vh;overflow-y:auto}
.leaflet-tooltip.key-hover-tooltip{background:rgba(8,10,8,.94);border:1px solid #aaa;border-radius:8px;color:#fff;padding:0;box-shadow:0 3px 12px #000b;max-width:min(310px,85vw);white-space:normal}
.leaflet-tooltip.key-hover-tooltip:before{border-top-color:#aaa}
.key-hover-card{font-family:Arial,sans-serif;font-size:12px;line-height:1.38;padding:8px 10px;min-width:140px;max-width:290px}
.key-hover-card>strong{display:block;font-size:12px;margin-bottom:5px}.key-hover-loot-title{color:#ff5555;font-weight:800;margin:3px 0 1px}.key-hover-extra{color:#c7d0c7;margin-top:3px;white-space:pre-wrap}

/* Red keycard power activation route, shown only on marker hover. */
.leaflet-interactive.red-card-power-route {pointer-events:none}
.power-button-marker {background:transparent;border:0;overflow:visible!important}
.power-button-marker span {display:inline-block;position:relative;top:-14px;left:8px;
  white-space:nowrap;padding:4px 10px;border-radius:14px;
  background:#160c0be8;border:1px solid #ff563c;color:#fff;
  font-size:12px;font-weight:750;text-shadow:0 1px 2px #000;
  box-shadow:0 2px 8px #0009;pointer-events:none}

/* Clean key preview and editable alarm state */
.key-hover-heading{display:flex;align-items:center;gap:9px;margin:4px 0 5px}
.key-hover-heading .key-hover-loot-title{margin:0;color:#ff6861;font-weight:850;letter-spacing:.35px}
.key-hover-alarm{display:inline-block;color:#ff3434;font-size:12px;font-weight:950;letter-spacing:.65px;text-shadow:0 0 3px #420000}
.key-hover-guide{background:#311712;border-left:2px solid #e34d36;border-radius:4px;padding:5px 7px;margin:4px 0 7px;color:#f0c8bd;white-space:pre-wrap}
.key-hover-guide strong{display:block;color:#ff806c;font-size:10px;letter-spacing:.6px;margin-bottom:3px}
.key-hover-loot-item{color:#f4f4f0}
.key-hover-empty{color:#a8b0a8;font-style:italic}
.key-alarm-option{display:flex;align-items:center;gap:9px;font-size:12px;color:#ffc0bb;font-weight:700;padding:8px 0 0}
.key-alarm-option input{width:17px;height:17px;accent-color:#e8443c}

/* Fit stash hover cards to their contents instead of stretching across the map. */
.leaflet-tooltip.stash-hover-tooltip {
  width:max-content!important; min-width:0!important; max-width:min(460px,85vw);
  padding:7px 11px; white-space:normal;
}
.stash-hover-tooltip .stash-hover-preview { width:max-content; max-width:100%; }
.stash-hover-tooltip .stash-hover-preview img { max-width:min(440px,80vw); }

/* Sidebar icons use the same key/card and stash images as map markers. */
.marker .marker-heading{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:5px}
.marker .marker-heading strong{display:block;min-width:0;margin:0;line-height:1.3}
.marker .marker-list-icon{width:26px;height:30px;flex:0 0 26px;display:flex;align-items:center;justify-content:center;overflow:visible}
.marker .marker-list-icon img{display:block;width:24px!important;height:27px!important;max-width:24px!important;max-height:27px!important;object-fit:contain;filter:drop-shadow(0 1px 2px #000a)}

/* Illustrated Normal/Pine stash choices in the marker editor */
#stashStyle.stash-original-select-hidden {display:none!important}
.stash-appearance-picker {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:6px}
.stash-appearance-choice {display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:8px 11px;min-height:52px;background:#202e26;border:1px solid #405349;border-radius:7px;color:#f2f4f0;font:inherit;font-weight:600;cursor:pointer;text-align:left}
.stash-appearance-choice img {display:block;width:34px;height:34px;max-width:34px;max-height:34px;object-fit:contain;flex:none}
.stash-appearance-choice:hover {border-color:#e28b36;background:#2b382d}
.stash-appearance-choice.chosen {border-color:#f19a3c;background:#33402f;box-shadow:0 0 0 1px #f19a3c66 inset}
.stash-appearance-choice:focus-visible {outline:2px solid #f19a3c;outline-offset:2px}

/* Large light-blue extract X markers */
.leaflet-marker-icon.extract-safezone-icon { background:transparent!important; border:0!important; overflow:visible!important; }
.leaflet-marker-icon.extract-safezone-icon span {
  display:flex!important; align-items:center; justify-content:center;
  width:46px!important; height:46px!important;
  color:#76ddff!important; font:900 52px/1 Arial,sans-serif!important;
  -webkit-text-stroke:1.2px #07394b;
  text-shadow:0 2px 3px #001a25,0 0 8px #45c9ff;
  pointer-events:none;
}
