/* Wayfarer: one spatial, source-backed route board inside the game shell. */
#expeditionPanel{overflow:hidden}
#expeditionPanel #expeditionRouteHost{position:relative;display:flex;flex:1;min-width:0;min-height:0;padding:0;overflow:hidden;isolation:isolate;background:#182025}
#expeditionRouteHost button,#expeditionRouteHost summary{min-height:44px;min-width:44px;touch-action:manipulation}
#expeditionRouteHost .hidden{display:none!important}
.charter-board-view{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.charter-map-heading{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;min-height:38px;box-sizing:border-box;border-bottom:1px solid #c2a56b33;background:#172023;color:#dbcfac;font-size:12px}
.charter-map-heading strong{font-weight:500;color:#f6dda7}.charter-map-heading>span{color:#aeb5a8;font-size:11px;white-space:nowrap}
.charter-map{position:relative;flex:1;min-height:180px;min-width:0;overflow:hidden;background:#25332f;isolation:isolate}
.charter-map-art,.charter-map-vignette,.charter-roads,.charter-map-nodes{position:absolute;inset:0;pointer-events:none}
.charter-map-art{overflow:hidden;opacity:.65}
.charter-map-art>i{position:absolute;left:var(--node-x);top:var(--node-y);width:64%;height:150%;background-size:cover;background-position:center;transform:translate(-50%,-50%);mask-image:radial-gradient(ellipse at center,#000 15%,transparent 68%);-webkit-mask-image:radial-gradient(ellipse at center,#000 15%,transparent 68%);filter:saturate(.6)}
.charter-map-vignette{background:radial-gradient(ellipse at 50% 48%,#0b181729,#0b111bbd 90%),repeating-linear-gradient(0deg,transparent 0 39px,#d7c39a07 40px),repeating-linear-gradient(90deg,transparent 0 39px,#d7c39a07 40px);box-shadow:inset 0 0 45px #091319}
.charter-roads{width:100%;height:100%;overflow:visible}
.charter-roads-portrait{display:none}
.charter-roads path{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke:#718282;stroke-width:2;stroke-dasharray:4 7}
.charter-roads .charter-road-bed{stroke:#0a151aba;stroke-width:8;stroke-dasharray:none}
.charter-roads path[data-state=complete]{stroke:#bdd49b;stroke-width:4;stroke-dasharray:none}
.charter-roads path[data-state=chosen]{stroke:#f0c778;stroke-width:4;stroke-dasharray:none}
.charter-roads path[data-state=available]{stroke:#dcca99;stroke-width:3;stroke-dasharray:8 5}
.charter-roads path[data-state=bypassed]{stroke:#707976;stroke-width:1.5;stroke-dasharray:2 8;opacity:.65}
#expeditionRouteHost .charter-node{position:absolute;left:var(--node-x);top:var(--node-y);transform:translate(-50%,-50%);width:146px;min-width:0;height:auto;min-height:88px;padding:6px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:0;pointer-events:auto;background:transparent;box-shadow:none;color:#e9e0c8;text-transform:none;letter-spacing:0;line-height:1.2;text-align:center;text-shadow:0 2px 4px #071010,1px 0 5px #071010,-1px 0 5px #071010}
#expeditionRouteHost .charter-node:hover{background:transparent;color:#fff3cf}
.charter-node-seal{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;box-sizing:border-box;border:2px solid #70847d;border-radius:50%;outline:1px solid #162820;outline-offset:3px;background:radial-gradient(circle at 50% 35%,#324947,#142622);box-shadow:0 4px 12px #04110cbb,inset 0 0 0 4px #06131444;font:21px Georgia,serif;color:#adbbb1;text-shadow:none}
.charter-node strong{font:17px/1.15 Georgia,serif;font-weight:400;white-space:nowrap}
.charter-node small{font-size:11px;color:#c2c9b9}
.charter-node[data-state=complete] .charter-node-seal{color:#e7efc7;border-color:#b4c78f;background:radial-gradient(circle,#557453,#273d35)}
.charter-node[data-state=current] .charter-node-seal{border-color:#ecc584;color:#ffdfa2;background:radial-gradient(circle,#73593e,#382e26)}
.charter-node[data-state=available] .charter-node-seal{border-color:#eddda6;color:#fff0bd;background:radial-gradient(circle,#526858,#243f37)}
.charter-node[data-state=bypassed] .charter-node-seal{color:#87948a;border-color:#65736b;background:#1b2c2b}
.charter-node[data-state=bypassed] strong,.charter-node[data-state=locked] strong{color:#c2c8ba}
.charter-node[data-state=bypassed] small{color:#b2bbb1}
#expeditionRouteHost .charter-node[aria-pressed=true] .charter-node-seal{outline:2px solid #ffedbf;outline-offset:4px;box-shadow:0 0 22px #ead19b35,0 4px 12px #04110cbb}
#expeditionRouteHost .charter-node:focus-visible{outline:2px solid #ffe7b8;outline-offset:1px;border-radius:4px}
.charter-map-compass{position:absolute;left:18px;top:12px;font:11px/1.3 Georgia,serif;text-align:center;color:#c3bd9f99;pointer-events:none}
.charter-road-key{position:relative;display:flex;flex:none;justify-content:center;gap:16px;padding:5px 10px;background:#182025;font-size:11px;line-height:1.2;color:#d4d6c6;pointer-events:none}
.charter-road-key span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.charter-road-key span:before{content:'';width:15px;height:0;border-top:2px solid #bdd49b}
.charter-road-key [data-state=chosen]:before{border-color:#f0c778}.charter-road-key [data-state=available]:before{border-color:#dcca99;border-top-style:dashed}.charter-road-key [data-state=locked]:before{border-color:#859494;border-top-style:dashed}.charter-road-key [data-state=bypassed]:before{border-color:#707976;border-top-style:dotted}
.charter-command{display:flex;align-items:center;flex:none;gap:8px;min-height:74px;padding:10px 18px;box-sizing:border-box;border-top:1px solid #b899614d;background:linear-gradient(90deg,#2e2526,#201d25)}
.charter-selection{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.charter-selection strong{font:20px/1.1 Georgia,serif;color:#f4dfb8}.charter-selection>span{font-size:11px;line-height:1.3;color:#d3c8ae}
.charter-command>button,.charter-choice-actions>button{flex:none;padding:7px 12px;font-size:12px;white-space:nowrap}
.charter-choice-actions{display:flex;gap:6px}
.charter-choice-actions:empty{display:none}
#expeditionRouteHost .charter-reset-link{border:0;background:transparent;color:#c4b4a0;font-size:11px;padding-inline:7px;box-shadow:none}
/* Inspection is its own shallow game sheet, preserving a full-size map by default. */
.charter-inspector{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;background:#1b2325}
.charter-inspect-head{display:flex;align-items:center;justify-content:space-between;flex:none;gap:14px;padding:12px 20px;border-bottom:1px solid #c1a16855;background:#2c2928}
.charter-inspect-head h3{font:27px/1.1 Georgia,serif;margin:4px 0 0;color:#f3ddb4}
.charter-inspect-head .eyebrow{color:#c6c3a5;font-size:10px}
.charter-inspect-head button{flex:none;padding:7px 14px;font-size:12px}
.charter-inspect-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 20px 14px}
.charter-inspect-scene{margin:0 -20px 14px;padding:18px 20px 14px;background-size:cover;background-position:center 47%}
.charter-inspect-scene>p{font:18px/1.4 Georgia,serif;color:#f1e2c4;margin:0 0 12px;max-width:80ch;text-shadow:0 2px 4px #000}
.charter-field-facts{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:#c1ccbd}.charter-field-facts b{font-size:17px;color:#f6dca2;font-weight:500}
.charter-intel-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.charter-inspector h4{font-size:13px;margin:0 0 7px;color:#e4d2a8}
.charter-inspector p{font-size:12px;line-height:1.6}
.charter-orders>p{margin:7px 0 10px}.charter-orders>small{display:block;font-size:11px;line-height:1.45;color:#c6c6b7}
.charter-tradeoff{color:#ecd499}.charter-stat-note{margin:4px 0 10px;color:#bec6b7;font-size:11px!important;line-height:1.5!important}
.charter-inspector .atlas-threats{grid-template-columns:minmax(0,1fr);gap:2px}
.charter-inspector .atlas-threats>span{font-size:12px;padding:5px 0}.charter-inspector .atlas-threats small{font-size:12px}
.charter-terrain{margin:12px 0 8px;padding:8px;background:#172324;border-color:#ac98604d}.charter-terrain svg{height:65px}.charter-terrain>div{font-size:10px}
.charter-field-note{color:#bfccbc}
.charter-inspector details{border-top:1px solid #bba05c40;margin-top:8px;padding-top:4px}
.charter-inspector summary{display:flex;align-items:center;cursor:pointer;font-size:12px;line-height:1.35;color:#e7d4ab;font-weight:600;list-style:none}
.charter-inspector summary:before{content:'+';margin-right:8px;font-size:18px;line-height:1;font-weight:400;color:#dcc08c}.charter-inspector details[open]>summary:before{content:'−'}
.charter-inspector details p{margin:4px 0 10px;color:#c9c7b4}
.charter-inspect-actions{display:flex;align-items:center;gap:16px;flex:none;padding:8px 20px;border-top:1px solid #bba05c40;background:#282229}
.charter-inspect-actions p{flex:1;margin:0;font-size:12px;line-height:1.4;color:#ccc6af}.charter-inspect-actions button{flex:none;min-width:128px;padding:8px 15px;font-size:12px}
#expeditionRouteHost .charter-reset{position:absolute;z-index:10;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(490px,calc(100% - 24px));max-height:calc(100% - 20px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;margin:0;padding:20px;border:1px solid #d2ab67;border-radius:4px;background:#2b2028;box-shadow:0 0 0 100vmax #0c101bd9,0 12px 30px #000b}
.charter-reset h3{margin:0 0 10px;font:24px Georgia,serif;color:#f1d7a7}.charter-reset p{font-size:12px;line-height:1.6;margin:0 0 14px}.charter-reset .overlay-actions{display:flex;gap:8px;flex-wrap:wrap}.charter-reset button{flex:1;padding:8px;font-size:12px}
#hubExpeditionProgress{font-size:12px;color:#d7c294;line-height:1.6;margin:10px 0}.charter-objective-note{font-size:12px;color:#e4cf9e;line-height:1.6}
@media(max-width:1100px){.charter-command{flex-wrap:wrap;gap:6px}.charter-selection{flex-basis:40%}.charter-choice-actions{order:5;width:100%}.charter-choice-actions>button{flex:1}.charter-node strong{font-size:15px}}
@media(orientation:portrait){
 .charter-map{min-height:320px}
 .charter-map-art>i{left:var(--portrait-x);top:var(--portrait-y);width:145%;height:65%}
 .charter-roads-landscape{display:none}.charter-roads-portrait{display:block}
 #expeditionRouteHost .charter-node{left:var(--portrait-x);top:var(--portrait-y);width:142px;min-height:76px;padding:2px 0;gap:2px}
 .charter-node-seal{width:36px;height:36px;font-size:19px}.charter-node strong{font-size:16px}.charter-node small{font-size:11px}
 .charter-map-heading{padding:7px 10px;min-height:34px;gap:6px;font-size:11px}.charter-map-heading>span{font-size:10px}
 .charter-road-key{gap:9px;font-size:10px}.charter-road-key span{gap:3px}.charter-road-key span:before{width:10px}
 .charter-command{gap:5px;padding:7px 9px;min-height:66px}.charter-selection{flex-basis:calc(100% - 75px)}.charter-selection strong{font-size:19px}.charter-selection>span{font-size:11px}.charter-command>button{padding:6px 9px}
 .charter-choice-actions{flex:1;order:4;width:auto}.charter-choice-actions>button{padding:7px 6px;white-space:normal;font-size:11px;line-height:1.25}
 #charterReturn{order:5}.charter-command>.charter-reset-link{order:6;font-size:10px;padding-inline:5px}
 .charter-inspect-head{padding:8px 12px;gap:8px}.charter-inspect-head h3{font-size:23px}.charter-inspect-head button{padding:7px 9px;font-size:11px}
 .charter-inspect-scroll{padding:0 12px 12px}.charter-inspect-scene{margin:0 -12px 13px;padding:14px 12px 12px}.charter-field-facts{gap:12px;font-size:11px}.charter-field-facts b{font-size:15px}
 .charter-intel-grid{grid-template-columns:minmax(0,1fr);gap:12px}.charter-inspect-actions{padding:7px 12px;gap:10px}.charter-inspect-actions p{font-size:11px}.charter-inspect-actions button{min-width:112px;padding:7px 10px;font-size:11px}
}
@media(max-height:600px) and (orientation:landscape){
 .charter-map-heading{padding:3px 12px;min-height:24px;font-size:11px}.charter-map-heading>span{font-size:10px}
 .charter-map{min-height:140px}
 #expeditionRouteHost .charter-node{width:120px;min-height:62px;padding:2px 0;gap:2px}
 .charter-node-seal{width:30px;height:30px;font-size:16px;border-width:1px;outline-offset:2px}
 #expeditionRouteHost .charter-node[aria-pressed=true] .charter-node-seal{outline-width:1px;outline-offset:3px}
 .charter-node strong{font-size:13px}.charter-node small{font-size:10px}
 .charter-map-compass{left:10px;top:7px;font-size:9px}.charter-road-key{display:none}.charter-road-key span:before{width:11px}
 .charter-command{min-height:56px;flex-wrap:nowrap;gap:5px;padding:5px 8px}.charter-selection{flex:1;gap:3px}.charter-selection strong{font-size:16px;line-height:1.15}.charter-selection>span{font-size:10px;line-height:1.2}
 .charter-command>button,.charter-choice-actions>button{padding:5px 8px;font-size:11px}.charter-choice-actions{order:0;width:auto;flex:none;gap:4px}.charter-choice-actions>button{flex:none;max-width:100px;white-space:normal;line-height:1.25}
 #charterReturn{display:none}.charter-command>.charter-reset-link{padding-inline:5px;font-size:10px}
 .charter-inspect-head{padding:5px 12px;gap:10px}.charter-inspect-head h3{font-size:21px;margin-top:2px}.charter-inspect-head .eyebrow{font-size:9px}.charter-inspect-head button{padding:5px 10px;font-size:11px}
 .charter-inspect-scroll{padding:0 12px 10px}.charter-inspect-scene{margin:0 -12px 12px;padding:10px 12px}.charter-inspect-scene>p{margin-bottom:8px}.charter-field-facts{gap:16px;font-size:11px}.charter-field-facts b{font-size:15px}
 .charter-intel-grid{gap:20px}.charter-inspect-actions{padding:4px 12px;gap:12px}.charter-inspect-actions p{font-size:11px}.charter-inspect-actions button{min-width:120px;padding:5px 9px;font-size:11px}
 #expeditionRouteHost .charter-reset{padding:12px}.charter-reset h3{font-size:20px;margin-bottom:6px}.charter-reset p{margin-bottom:8px;line-height:1.45}
}
/* Extremely short windows retain a scrollable route rather than clipping targets. */
@media(max-height:295px) and (orientation:landscape){#expeditionPanel #expeditionRouteHost{overflow:auto}.charter-board-view{min-height:220px}.charter-inspector{min-height:205px}}

#expeditionPanel.game-management>.panel-head .menu-back{min-height:44px}
