/* Exploration map + mission briefing (task-41, round 1 overhaul).
   Map-first layout over the real 1200x700 Auren cartography. Markers are native buttons
   positioned with the server site coordinates baked into CSS classes (no inline styles).
   CSP-safe: classes only, no external assets except /art/auren-cartography-v1.png. */
.exp-view h1 { margin: 0; }
.exp-view { --exp-bg: #07161c; --exp-panel: linear-gradient(160deg, rgba(14,35,42,.96), rgba(6,20,26,.98)); --exp-edge: rgba(153,178,174,.28); --exp-amber: #d9ac6c; --exp-muted: #a9bbb6; --exp-ink: #e8ede6; position: relative; display: grid; gap: .7rem; color: var(--exp-ink); }
.exp-view *, .exp-view *::before, .exp-view *::after { box-sizing: border-box; }
.exp-view :focus-visible { outline: 3px solid var(--exp-amber); outline-offset: 2px; }
.exp-view p, .exp-view h2, .exp-view h3, .exp-view h4, .exp-view ul, .exp-view blockquote { margin: 0; }
.exp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.exp-status:not(:empty), .exp-error:not(:empty) { position: fixed; left: 50%; top: 4.2rem; transform: translateX(-50%); z-index: 90; width: max-content; max-width: min(32rem, calc(100vw - 1rem)); padding: .45rem .8rem; border: 1px solid var(--exp-edge); border-left: 3px solid var(--exp-amber); background: #0b2229; font-size: .78rem; }
.exp-error:not(:empty) { border-left-color: #ff9a91; }
.exp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1rem; padding: .8rem .9rem; border: 1px solid var(--exp-edge); border-radius: 4px; background: var(--exp-panel); position: relative; overflow: hidden; }
.exp-head::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--exp-amber), rgba(217,172,108,0)); }
.exp-head__title { min-width: 0; }
.exp-kicker { color: var(--exp-amber); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.exp-title { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.1; letter-spacing: .02em; }
.exp-sub { color: var(--exp-muted); font-size: .76rem; line-height: 1.5; max-width: 72ch; margin-top: .25rem !important; }
.exp-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.exp-head__chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.exp-chip { display: inline-flex; align-items: center; min-height: 2rem; padding: .18rem .55rem; border: 1px solid var(--exp-edge); border-radius: 999px; background: rgba(6,24,30,.7); font-size: .68rem; letter-spacing: .04em; color: #dfe7e0; }
.exp-chip[hidden] { display: none; }
.exp-chip--active { border-color: rgba(239,202,119,.6); color: #efca77; }
.exp-toggle { min-height: 2.75rem; padding: .3rem .8rem; border: 1px solid var(--exp-amber); border-radius: 3px; background: transparent; color: var(--exp-amber); font-size: .74rem; cursor: pointer; }
.exp-toggle[aria-expanded="true"] { background: rgba(217,172,108,.15); }
/* Map */
.exp-main { display: grid; grid-template-columns: minmax(0,1fr) 22rem; gap: .7rem; align-items: start; }
.exp-mapcol { min-width: 0; display: grid; gap: .5rem; }
.exp-mappanel { border: 1px solid var(--exp-edge); border-radius: 4px; background: var(--exp-panel); overflow: hidden; }
.exp-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .7rem; padding: .5rem .7rem; border-bottom: 1px solid rgba(153,178,174,.18); }
.exp-panel-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--exp-amber); }
.exp-panel-note { color: var(--exp-muted); font-size: .68rem; }
.exp-mapstage { position: relative; width: 100%; aspect-ratio: 1200 / 700; background: #06131a; }
.exp-map { position: absolute; inset: 0; overflow: hidden; }
.exp-map__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; filter: saturate(.92) contrast(1.04); pointer-events: none; }
.exp-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, rgba(4,14,19,0) 40%, rgba(4,14,19,.55) 100%); }
.exp-map__routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; background: transparent; }
.exp-route { stroke: rgba(217,172,108,.38); stroke-width: 1.4; stroke-dasharray: 6 6; }
.exp-route--hint { stroke: rgba(148,201,237,.35); stroke-width: 1; stroke-dasharray: 2 7; }
.exp-route-node { fill: rgba(232,237,230,.7); }
.exp-province__dot { fill: rgba(148,201,237,.5); }
.exp-origin__pulse { fill: none; stroke: #9ac998; stroke-width: 2; opacity: .5; animation: exp-origin-pulse 2.8s ease-in-out infinite; }
.exp-origin__core { fill: #9ac998; }
.exp-origin--active .exp-origin__core { fill: #efca77; }
.exp-origin--active .exp-origin__pulse { stroke: #efca77; }
@keyframes exp-origin-pulse { 0%, 100% { opacity: .25; stroke-width: 2; } 50% { opacity: .8; stroke-width: 3; } }
.exp-map__markers { position: absolute; inset: 0; pointer-events: none; }
.exp-marker { position: absolute; z-index: 3; width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--exp-amber); cursor: pointer; pointer-events: auto; }
.exp-marker__art { display: grid; place-items: center; width: 30px; height: 30px; color: currentColor; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.exp-marker__art svg { width: 30px; height: 30px; }
.exp-marker__dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(4,14,19,.8); }
.exp-marker__status { position: absolute; left: 50%; top: calc(100% - .1rem); transform: translateX(-50%); padding: 0 .2rem; border-radius: 2px; background: rgba(4,14,19,.82); color: #dfe7e0; font-size: .52rem; letter-spacing: .04em; white-space: nowrap; opacity: 0; transition: opacity .15s ease; }
.exp-marker:hover .exp-marker__status, .exp-marker:focus-visible .exp-marker__status, .exp-marker--selected .exp-marker__status { opacity: 1; }
.exp-marker:hover, .exp-marker:focus-visible { border-color: var(--exp-amber); background: rgba(217,172,108,.16); }
.exp-marker--selected { border-color: var(--exp-amber); background: rgba(217,172,108,.2); box-shadow: 0 0 0 3px rgba(217,172,108,.25); }
.exp-marker--traveling { color: #94c9ed; }
.exp-marker--cooldown { color: #efca77; }
.exp-marker--blocked { color: #ff9a91; }
.exp-marker--available { color: #9ac998; }
.exp-marker--abandoned-city { color: #d9b27c; }
.exp-marker--industry { color: #cf9a72; }
.exp-marker--science { color: #a9c0e0; }
.exp-marker--depot { color: #d2c47f; }
.exp-marker--port { color: #8fd0c8; }
.exp-marker--contamination { color: #c3a6e6; }
.exp-marker--military { color: #e39a9a; }
.exp-marker--unknown { color: #b8c0c4; }
.exp-marker--fallback { left: 50%; top: 52%; color: #8e9aa3; }
/* Real site coordinates in the 1200x700 cartography (percentages stay exact). */
.exp-marker--ruins { left: 15%; top: 21.4286%; }
.exp-marker--industry { left: 25.8333%; top: 18.5714%; }
.exp-marker--science { left: 83.75%; top: 34.2857%; }
.exp-marker--storage { left: 16.25%; top: 65.7143%; }
.exp-marker--port { left: 74.1667%; top: 20.7143%; }
.exp-marker--contamination { left: 45%; top: 17.8571%; }
.exp-marker--military { left: 45%; top: 60.7143%; }
.exp-marker--unknown { left: 52.5%; top: 75%; }
.exp-mapstate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: max-content; max-width: min(26rem, calc(100% - 1rem)); padding: .45rem .7rem; border: 1px solid var(--exp-edge); border-radius: 3px; background: rgba(6,20,26,.94); color: #f0dbab; font-size: .76rem; text-align: center; }
.exp-mapstate:empty { display: none; }
.exp-maplegend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; padding: .45rem .7rem; border-top: 1px solid rgba(153,178,174,.18); color: var(--exp-muted); font-size: .64rem; }
.exp-legend { display: inline-flex; align-items: center; gap: .3rem; }
.exp-legend::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #9ac998; }
.exp-legend--cooldown::before { background: #efca77; }
.exp-legend--blocked::before { background: #ff9a91; }
.exp-legend--traveling::before { background: #94c9ed; }
/* Mission list */
.exp-listcol { min-width: 0; display: grid; gap: .5rem; }
.exp-panel { border: 1px solid var(--exp-edge); border-radius: 4px; background: var(--exp-panel); overflow: hidden; }
.exp-filters { display: flex; flex-wrap: wrap; gap: .25rem; padding: .45rem .55rem .2rem; }
.exp-filters--types { padding-top: 0; }
.exp-filter { min-width: 44px; min-height: 2.75rem; padding: .2rem .55rem; border: 1px solid var(--exp-edge); border-radius: 999px; background: rgba(6,24,30,.8); color: #dfe7e0; font-size: .68rem; cursor: pointer; }
.exp-filter[aria-pressed="true"] { border-color: var(--exp-amber); color: var(--exp-amber); background: rgba(217,172,108,.14); }
.exp-list { list-style: none; display: grid; gap: .35rem; padding: .4rem; margin: 0; max-height: min(52vh, 34rem); overflow-y: auto; scrollbar-width: thin; }
.exp-site { display: grid; gap: .18rem; width: 100%; min-height: 2.75rem; padding: .45rem .55rem; border: 1px solid rgba(153,178,174,.2); border-left: 3px solid rgba(153,178,174,.4); border-radius: 3px; background: rgba(4,17,23,.55); color: var(--exp-ink); text-align: left; cursor: pointer; }
.exp-site:hover, .exp-site:focus-visible { border-color: rgba(217,172,108,.6); }
.exp-site--selected { border-color: var(--exp-amber); border-left-color: var(--exp-amber); background: rgba(217,172,108,.1); }
.exp-site--available { border-left-color: #9ac998; }
.exp-site--cooldown { border-left-color: #efca77; }
.exp-site--blocked { border-left-color: #ff9a91; }
.exp-site--traveling { border-left-color: #94c9ed; }
.exp-site__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .5rem; }
.exp-site__name { font-weight: 700; font-size: .82rem; }
.exp-site__meta { color: var(--exp-muted); font-size: .68rem; }
.exp-site__stats { color: #d9cbaa; font-size: .66rem; font-variant-numeric: tabular-nums; }
.exp-pill { display: inline-flex; align-items: center; min-height: 1.35rem; padding: 0 .4rem; border: 1px solid currentColor; border-radius: 999px; font-size: .58rem; letter-spacing: .04em; white-space: nowrap; }
.exp-pill--available { color: #9ac998; }
.exp-pill--cooldown { color: #efca77; }
.exp-pill--blocked { color: #ff9a91; }
.exp-pill--traveling { color: #94c9ed; }
.exp-extra { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
.exp-history, .exp-discoveries { list-style: none; display: grid; gap: .3rem; padding: .45rem .55rem .6rem; margin: 0; max-height: 16rem; overflow-y: auto; }
.exp-log, .exp-discovery { display: grid; gap: .1rem; padding: .35rem .45rem; border-left: 2px solid rgba(153,178,174,.3); background: rgba(4,17,23,.4); font-size: .72rem; }
.exp-log__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem; }
.exp-log__name { font-weight: 700; }
.exp-log__meta { color: var(--exp-muted); font-size: .66rem; }
.exp-log__result { color: #efca77; }
.exp-discovery__kind { font-weight: 700; color: var(--exp-amber); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.exp-discovery__meta { color: #dfe7e0; font-size: .7rem; }
.exp-state { padding: .6rem; color: var(--exp-muted); font-size: .76rem; }
.exp-state--error { color: #ff9a91; }
/* Briefing dialog: right rail on desktop, bottom sheet on mobile */
.exp-brief { width: min(26rem, 100vw); max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid rgba(217,172,108,.45); border-radius: 0; background: linear-gradient(160deg, #0c242c, #06151b); color: var(--exp-ink); }
.exp-brief:not([open]) { display: none; }
.exp-brief[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.exp-brief::backdrop { background: rgba(2,9,12,.55); }
.exp-brief__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .8rem .8rem .6rem; border-bottom: 1px solid rgba(153,178,174,.22); }
.exp-brief__title { font-size: 1.1rem; line-height: 1.2; }
.exp-close { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; min-width:44px; min-height:44px; flex-shrink:0; border: 1px solid var(--exp-edge); border-radius: 3px; background: transparent; color: var(--exp-ink); font-size: 1.2rem; cursor: pointer; }
.exp-brief__body { overflow-y: auto; display: grid; gap: .55rem; align-content: start; padding: .7rem .8rem 1rem; }
.exp-brief__meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .25rem .6rem; }
.exp-fact { display: grid; gap: .05rem; padding: .3rem .4rem; border: 1px solid rgba(153,178,174,.16); border-radius: 3px; background: rgba(4,17,23,.4); }
.exp-fact__label { color: var(--exp-muted); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.exp-fact__value { color: #f0eee5; font-size: .76rem; overflow-wrap: anywhere; }
.exp-risk { display: grid; gap: .25rem; }
.exp-risk__head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; font-size: .72rem; color: var(--exp-muted); }
.exp-risk__head strong { color: #efca77; font-size: .92rem; }
.exp-risk__meter { width: 100%; height: .55rem; accent-color: #efca77; }
.exp-hint { color: var(--exp-muted); font-size: .68rem; line-height: 1.45; }
.exp-subhead { color: var(--exp-amber); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem !important; }
.exp-supplies { display: grid; gap: .2rem; }
.exp-supplies .exp-fact { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.exp-weights { border: 1px solid rgba(153,178,174,.2); border-radius: 3px; padding: .3rem .45rem; background: rgba(4,17,23,.35); }
.exp-weights summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; color: #dfe7e0; font-size: .72rem; }
.exp-weight { display: flex; justify-content: space-between; gap: .5rem; padding: .1rem 0; color: #dfe7e0; font-size: .7rem; }
.exp-narrative { padding: .5rem .6rem; border-left: 3px solid var(--exp-amber); background: rgba(217,172,108,.07); color: #e8ede6; font-size: .78rem; line-height: 1.5; font-style: italic; }
.exp-previous { display: grid; gap: .15rem; }
.exp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .4rem .8rem; border: 1px solid rgba(217,172,108,.5); border-radius: 3px; background: rgba(217,172,108,.1); color: #f0dbab; font-size: .78rem; cursor: pointer; }
.exp-button--primary { background: var(--exp-amber); border-color: var(--exp-amber); color: #191306; font-weight: 700; }
.exp-button:disabled { opacity: .55; cursor: not-allowed; }
.exp-send { width: 100%; margin-top: .2rem; }
.exp-confirm { width: min(26rem, calc(100vw - 1rem)); padding: .9rem; border: 1px solid rgba(217,172,108,.55); border-radius: 4px; background: linear-gradient(160deg, #0d252d, #06151b); color: var(--exp-ink); }
.exp-confirm::backdrop { background: rgba(2,9,12,.72); }
.exp-confirm__text { color: #dfe7e0; font-size: .78rem; line-height: 1.5; margin: .4rem 0 .8rem !important; }
.exp-confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
/* The exploration panel is only for /exploration; hidden on the RTS command page. */
body[data-page="command"] .exploration-screen { display: none !important; }
@media (max-width: 1100px) { .exp-main { grid-template-columns: minmax(0,1fr) 19rem; } }
@media (max-width: 900px) {
  .exp-main { grid-template-columns: minmax(0,1fr); }
  .exp-listcol { display: none; }
  .exp-view.exp-list-open .exp-listcol { display: grid; }
  .exp-list { max-height: none; }
  .exp-extra { grid-template-columns: minmax(0,1fr); }
  .exp-brief { width: 100vw; max-width: 100vw; height: auto; max-height: 82dvh; margin: auto 0 0; border-left: 0; border-top: 1px solid rgba(217,172,108,.45); border-radius: 8px 8px 0 0; }
  .exp-brief[open] { grid-template-rows: auto minmax(0,1fr); }
  .exp-brief::backdrop { background: rgba(2,9,12,.7); }
}
@media (max-width: 600px) {
  .exp-head { padding: .6rem .65rem; }
  .exp-head__actions { width: 100%; justify-content: space-between; }
  .exp-title { font-size: 1.25rem; }
  .exp-sub { font-size: .72rem; }
  .exp-maplegend { font-size: .58rem; }
  .exp-marker { width: 2.75rem; height: 2.75rem; }
  .exp-marker__art, .exp-marker__art svg { width: 24px; height: 24px; }
  .exp-marker__status { font-size: .65rem; }
  .exp-filter { font-size: .64rem; padding: .2rem .45rem; }
  .exp-brief__meta { grid-template-columns: minmax(0,1fr); }
  .exp-site__stats { font-size: .62rem; }
}
@media (max-width: 390px) {
  .exp-view { gap: .5rem; }
  .exp-marker { width: 2.75rem; height: 2.75rem; }
  .exp-head__chips .exp-chip:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .exp-view, .exp-view * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .exp-marker, .exp-site, .exp-filter, .exp-button, .exp-close, .exp-brief, .exp-confirm, .exp-panel, .exp-head, .exp-fact { border: 1px solid CanvasText; }
  .exp-marker--selected { outline: 2px solid Highlight; outline-offset: 1px; }
  .exp-filter[aria-pressed="true"], .exp-site--selected { outline: 2px solid Highlight; outline-offset: -2px; }
  .exp-pill { border-color: CanvasText; }
}
@media print { .exp-map__art { display: none; } }
/* Opaque, readable mission sheet: the map and list must not bleed through it. */
body.game-shell dialog.exp-brief,body.game-shell dialog.exp-confirm{background:#102638!important;color:#e7f2fb!important;opacity:1;box-shadow:0 18px 80px #0009;max-width:100vw}
body.game-shell dialog.exp-brief{width:min(520px,100vw)}
body.game-shell .exp-brief__body{background:#102638;gap:14px;padding:18px}
body.game-shell .exp-brief__head{background:#17364d;padding:18px}
body.game-shell .exp-hint,body.game-shell .exp-fact__label{color:#bfd4e4!important;font-size:12px;line-height:1.6}
body.game-shell .exp-fact__value{font-size:14px;color:#edf6ff}
body.game-shell .exp-subhead{color:#ffda96!important;font-size:12px}
.exp-mission-purpose{color:#d7e8f2;font-size:14px;line-height:1.6;padding:12px;border-left:3px solid #89cfff;background:#173b53}
.exp-reward-preview{padding:16px;border:1px solid #7095ad;border-radius:10px;background:linear-gradient(135deg,#244960,#173247)}
.exp-reward-preview h4{margin:0 0 10px;color:#f9dda4}.exp-reward-preview p{font-size:14px;line-height:1.6;margin:8px 0}
.exp-prestige-reward{color:#ffe19e;font-weight:700}
body.game-shell .exp-brief select{display:block;width:100%;min-height:44px;margin-top:8px;background:#1a3c54;color:#ecf5fc;border:1px solid #7095ad;padding:10px}
@media(max-width:900px){body.game-shell dialog.exp-brief{width:100vw;max-height:88dvh}}
@media(max-width:600px){body.game-shell .exp-brief__meta{grid-template-columns:repeat(2,minmax(0,1fr))}.exp-mission-purpose{font-size:13px;padding:10px}.exp-reward-preview{padding:12px}.exp-reward-preview p{font-size:13px}}

/* Accessible route heading retains the existing compact title spacing. */
.exp-view h1{margin:0}

/* Mission dossier: compact configuration and illustrated reward estimates. */
body.game-shell dialog.exp-brief{width:min(570px,100vw);border-left:1px solid #7c9297!important}
body.game-shell .exp-brief__head{padding:16px 20px;background:linear-gradient(110deg,#16394c,#10283a)!important;align-items:center}
body.game-shell .exp-brief__title{font-family:inherit;font-size:20px;font-weight:650;color:#f2e1bd!important;outline:0}
body.game-shell .exp-brief__head .exp-close{border-radius:9px;min-width:44px;width:44px;height:44px;background:#24485c!important}
body.game-shell .exp-brief__body{padding:16px 20px;gap:15px;display:flex;flex-direction:column;align-items:stretch;overflow-y:auto;min-height:0;background:#0c2434}
.exp-brief-identity{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:16px;border:1px solid #4c6e7e;border-radius:11px;background:linear-gradient(110deg,#102d40f5,#102d40ba),url('/art/home/auren-cartography-v1.webp') center/cover;align-items:center}
.exp-brief-identity>div{min-width:0}.exp-brief-identity span:not(.exp-brief-icon){display:block;font-size:9px;letter-spacing:.12em;color:#e4c88d}.exp-brief-identity strong{display:block;font-size:14px;margin:5px 0;color:#e6eff4}.exp-brief-identity p{font-size:11px;line-height:1.6;color:#bad4e1}
.exp-brief-icon{display:inline-flex;align-items:center;justify-content:center;color:#d5c292;flex:none}.exp-brief-icon>.waz-icon{width:34px!important;height:34px!important}
body.game-shell .exp-mission-config{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0!important;padding:14px!important;border:1px solid #385c71;border-radius:11px;background:#122f41}
body.game-shell .exp-mission-config>label{display:flex;flex-direction:column;gap:6px;margin:0!important;padding:0;font-size:11px;line-height:1.5;min-width:0}
body.game-shell .exp-mission-config>label:has([data-exp-purpose]){grid-column:1/-1;order:3}
body.game-shell .exp-mission-config select{margin:0!important;min-height:44px;width:100%;font-size:12px;padding:10px 8px;border-radius:7px;background:#1d4054!important;color:#eaf5fa!important;box-sizing:border-box;text-overflow:ellipsis}
body.game-shell .exp-brief__body .exp-mission-purpose{margin:0;padding:10px 12px;font-size:11px;line-height:1.6;border-radius:0 7px 7px 0;color:#b8d2e0}
body.game-shell .exp-reward-preview{margin:0;padding:14px!important;border:1px solid #557278!important;border-radius:12px;background:linear-gradient(135deg,#1d3d49,#102c3e)!important}
body.game-shell .exp-reward-preview h4{font-size:14px;margin:0 0 12px;color:#e9d2a5!important;text-transform:none;letter-spacing:0}
.exp-reward-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.exp-prize{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;padding:11px;border:1px solid #426377;border-radius:8px;background:#102b3cd9;min-width:0}.exp-prize>div{min-width:0}.exp-prize-label{display:block;font-size:10px;line-height:1.4;color:#b7cfdb}.exp-prize strong{display:block;font-size:17px;line-height:1.4;color:#f4dfb1;font-variant-numeric:tabular-nums}.exp-prize small{display:block;font-size:9px;color:#accad8;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
body.game-shell .exp-reward-preview>.exp-hint{margin:12px 0 0;font-size:10px;line-height:1.6;color:#afcad9!important}
body.game-shell .exp-brief .exp-risk{border:1px solid #3f6275;border-radius:10px;padding:12px;background:#122f40;gap:7px}.exp-brief .exp-risk>.exp-hint{font-size:10px!important}
body.game-shell .exp-brief .exp-supplies{display:flex;flex-wrap:wrap;gap:7px;padding:0}.exp-brief .exp-supplies h4{width:100%;margin:0 0 4px;font-size:10px}.exp-brief .exp-supplies .exp-fact{display:flex;flex:1 1 90px;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #426377;border-radius:7px}
.exp-route-details{border-top:1px solid #3f6174;padding-top:8px}.exp-route-details>summary{min-height:44px;align-content:center;font-size:12px;color:#c1d9e5;cursor:pointer}.exp-route-details>.exp-brief__meta{margin:8px 0 12px}.exp-route-details .exp-fact{padding:8px;border-radius:6px}.exp-route-details .exp-fact__label{font-size:9px!important}.exp-route-details .exp-fact__value{font-size:12px!important}
body.game-shell .exp-brief .exp-send{position:sticky;bottom:0;flex:none;min-height:46px;margin:0;border:1px solid #a5bfa9!important;background:linear-gradient(110deg,#427369,#29545c)!important;color:#f0f6e4!important;border-radius:9px;box-shadow:0 -8px 20px #0b2234c4}
@media(max-width:600px){body.game-shell .exp-brief__body{padding:12px;gap:12px}.exp-reward-grid{gap:7px}.exp-prize{padding:9px;grid-template-columns:28px minmax(0,1fr);gap:7px}.exp-prize .exp-brief-icon>.waz-icon{width:28px!important;height:28px!important}.exp-prize strong{font-size:15px}body.game-shell .exp-mission-config{padding:12px!important;gap:10px}.exp-brief-identity{padding:12px}.exp-brief-identity p{font-size:10px}}

/* Preparation sheet: scrollable dossier and a separate, unobstructed action footer. */
body.game-shell .exp-brief[open]{grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
body.game-shell .exp-brief__body>*{flex-shrink:0}
body.game-shell .exp-brief__footer{padding:12px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid #486579;background:linear-gradient(115deg,#193b4c,#102c3e);display:grid;gap:9px}
body.game-shell .exp-brief__footer .exp-hint{margin:0;color:#bcd5dd!important;font-size:11px;line-height:1.5}
body.game-shell .exp-brief .exp-send{position:static;box-shadow:0 4px 12px #0003;gap:10px;color:#fff5da!important;font-weight:650;background:linear-gradient(110deg,#426c60,#254c54)!important}
.exp-send .exp-brief-icon>.waz-icon{width:23px!important;height:23px!important}
body.game-shell .exp-brief__footer .exp-send>span{color:#fff5da!important}
.exp-ready::before{content:'';display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#a5d7af;box-shadow:0 0 7px #88b99b66}
body.game-shell .exp-brief .exp-risk{padding:14px;border-color:#3e626e;background:linear-gradient(120deg,#193c46,#112d3c);gap:9px}
.exp-risk__heading{display:flex;gap:12px;align-items:center}.exp-risk__heading>.exp-brief-icon{color:#a1ccae}.exp-risk__heading>.exp-brief-icon>.waz-icon{width:27px!important;height:27px!important}
body.game-shell .exp-risk__head{flex:1;display:flex;align-items:center;margin:0;font-size:12px;gap:10px;color:#d7e8e9}
body.game-shell .exp-risk__head strong{font-size:23px;color:#f0d49b;font-variant-numeric:tabular-nums}
body.game-shell .exp-risk__meter{height:8px;display:block;border:0;border-radius:8px;overflow:hidden;background:#071d29}
.exp-risk__meter::-webkit-meter-bar{background:#071d29;border:0;border-radius:8px}.exp-risk__meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#8bbca2,#e2c485);border-radius:8px}.exp-risk__meter::-moz-meter-bar{background:#b9c59a}
body.game-shell .exp-brief .exp-supplies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:13px;border:1px solid #3c5e70;border-radius:11px;background:#102c3e}
body.game-shell .exp-supplies .exp-subhead{grid-column:1/-1;font-size:10px!important;letter-spacing:.08em;margin-bottom:3px}
.exp-supply{display:flex;align-items:center;gap:9px;min-width:0;padding:10px 7px;border-radius:7px;background:#1c3d50}
.exp-supply>div{min-width:0}.exp-supply span:not(.exp-brief-icon){display:block;font-size:10px;line-height:1.5;color:#c4dbe5;overflow-wrap:anywhere}.exp-supply strong{display:block;font-size:19px;color:#f4e2bf;font-variant-numeric:tabular-nums}.exp-supply .exp-brief-icon>.waz-icon{width:30px!important;height:30px!important}
body.game-shell .exp-route-details,body.game-shell .exp-previous{border:1px solid #385c70;border-radius:10px;background:#102b3c;padding:0;overflow:hidden;display:block}
.exp-route-details>summary,.exp-previous>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 13px;font-size:12px;color:#c8dce5;cursor:pointer;list-style:none}
.exp-route-details>summary::-webkit-details-marker,.exp-previous>summary::-webkit-details-marker{display:none}
.exp-route-details>summary::after,.exp-previous>summary::after{content:'+';margin-left:auto;color:#d9bf8c;font-size:19px}.exp-route-details[open]>summary::after,.exp-previous[open]>summary::after{content:'−'}
.exp-route-details>summary .waz-icon,.exp-previous>summary .waz-icon{width:22px!important;height:22px!important}
.exp-previous>summary>b{font-size:10px;font-weight:500;border:1px solid #46667a;border-radius:5px;padding:2px 6px;color:#e0d3b2}
body.game-shell .exp-route-details>.exp-brief__meta{margin:0;padding:8px 12px}.exp-route-details>.exp-weights,.exp-route-details>.exp-hint,.exp-route-details>.exp-weather-note,.exp-route-details>.exp-narrative{margin:10px 12px!important}
.exp-weather-note{font-size:11px;line-height:1.7;color:#bcd3dd;padding:10px;background:#1a3a4e;border-radius:6px}
.exp-previous__list{list-style:none;padding:0 12px 10px!important;max-height:260px;overflow-y:auto}
.exp-previous__row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-top:1px solid #36566a}.exp-previous__row .waz-icon{width:21px!important;height:21px!important;color:#93c2ad}
.exp-previous__row strong{display:block;font-size:12px;font-weight:600;color:#d5e3e9}.exp-previous__row time{display:block;font-size:10px;margin-top:3px;color:#a9c1cd}.exp-previous__result{font-size:10px;max-width:100px;color:#e4c48d;text-align:right;overflow-wrap:anywhere}.exp-previous__row--setback .waz-icon{color:#d8a894}
@media(max-width:600px){body.game-shell .exp-brief__footer{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.exp-supply{gap:5px;padding:8px 5px}.exp-supply .exp-brief-icon>.waz-icon{width:24px!important;height:24px!important}.exp-supply strong{font-size:17px}.exp-supply span:not(.exp-brief-icon){font-size:9px}}
/* Dispatch feedback must be visible inside the modal top layer, not clipped behind it. */
.exp-status:empty,.exp-error:empty{display:none}
.exp-status:not(:empty),.exp-error:not(:empty){position:relative;left:auto;top:auto;transform:none;z-index:auto;width:auto;max-width:100%;height:auto;overflow:visible;clip-path:none;white-space:normal;overflow-wrap:anywhere;border-radius:8px;padding:12px}
.exp-dispatch-error,.exp-dispatch-notice{padding:12px;border:1px solid #b7736f;border-left:4px solid #ed9a8d;border-radius:8px;background:#432c35;color:#ffe5df!important;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.exp-dispatch-notice{border-color:#5c997f;background:#193e38;color:#d5f3df!important}
