.covert-entry,.dossier-hero{position:relative;isolation:isolate;overflow:hidden;border:1px solid #587366;background:#182c29}
dialog:not([open]){display:none}
.compat-dialog-open,.compat-dialog-open body{overflow:hidden}
.compat-backdrop{position:fixed;inset:0;background:rgba(3,10,10,.83)}
dialog.compat-modal[open]{position:fixed;display:block;inset:0;margin:auto;height:fit-content;max-height:92vh}
#theater.compat-modal[open]{margin:0;height:100vh;max-height:100vh}
.toast{pointer-events:none}
@supports not (height: 100dvh){dialog[open]{max-height:92vh}#theater[open]{height:100vh;max-height:100vh}}
.covert-entry{display:flex;align-items:center;min-height:144px;margin:0 0 10px}
.covert-entry>img,.dossier-hero>img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 35%}
.covert-entry::after,.dossier-hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(95deg,#0b1d1a 1%,#182d26e8 35%,#16292344 68%,transparent)}
.covert-entry>div{padding:14px 20px}.covert-entry h3,.dossier-hero h3{font-size:clamp(23px,3.5vw,34px);margin:0;color:#f1f5e8;line-height:1.1}
.covert-entry p{font-size:13px;margin:6px 0 12px;color:#d4e3d4}.covert-entry .primary{padding:7px 15px}
.dossier-link{display:block;width:100%;padding:6px 12px;text-align:right;border:1px solid #455b50;border-top:0;background:#1d2c28;color:#c3e4cf;font-size:12px}
#dialog[data-view="dossier"]{width:min(640px,calc(100vw - 20px))}
#dossier-person{max-width:65%;margin-left:auto;color:#e9f1e5;border:1px solid #597265;background:#21332d;padding:6px}
.dossier-hero{display:flex;align-items:end;min-height:165px;margin-top:10px}.dossier-hero>div{padding:20px}.dossier-hero small,.dossier-hero b{color:#bfd3c3;font-size:13px}.dossier-hero h3{margin:6px 0}
.dossier-ranks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.dossier-ranks span{padding:7px 2px;text-align:center;color:#a7b7ad;border-top:3px solid #536057;background:#23302c;font-size:13px}
.dossier-ranks span[data-earned="true"]{border-color:#dfc584;color:#f3dfae}.dossier-ranks small{display:block;margin-top:3px;font-size:10px}
.dossier-progress{margin-bottom:7px;color:#d4ddc9;font-size:13px}.op-route[aria-pressed=true],.op-command [aria-pressed=true]{background:#34503d;border-color:#bee6b7}
.field-depot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:11px 0;padding:10px 12px;border-left:3px solid #ceb176;background:#2e3329}
.field-depot b{color:#edd9a5;font-size:14px}.field-depot p{margin:4px 0 0;color:#d1d6c7;font-size:12px}.field-depot button{flex:none;padding:7px 9px}
.radio-tuner{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;min-height:40px;margin:8px 0;border:1px solid #526858;background:repeating-linear-gradient(90deg,#233a2e 0 1px,#1a3029 1px 12px)}
.radio-tuner span{position:relative;background:#162a22;padding:3px 10px;color:#c0d5c3;font-size:12px}.radio-tuner i,.route-beam{position:absolute;pointer-events:none;background:linear-gradient(90deg,transparent,#c4efb7)}
.radio-tuner i{left:-12%;width:12%;height:100%}.op-route{position:relative;overflow:hidden}.route-beam{left:0;right:0;height:10px;background:linear-gradient(transparent,#a5e5bd93)}
.op-waypoints .now{transform-origin:left}.cargo-in-transit{position:absolute;z-index:4;width:32px;height:32px;object-fit:contain;pointer-events:none}.op-report .op-stars{display:inline-block}
.op-deck[data-expert=true]{grid-template-columns:repeat(4,minmax(0,1fr))}
[data-op="expert"]{padding:6px 10px;font-size:12px}
[data-op="expert"][aria-pressed=true]{background:#45412c;color:#f6dda3}
.map-header{display:flex;align-items:center;gap:15px;margin:13px 0 7px;font-size:12px;color:#c7d6cc}.map-header h3{margin:0 auto 0 0;font-size:20px;color:#f2f4e5}.map-header b{color:#f4e2b3}
.map-board{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:7px;border:1px solid #637a69;background:#112320;isolation:isolate}
.map-cell{position:relative;display:grid;place-items:center;aspect-ratio:1.68;min-width:0;padding:0;border:1px solid #435950;color:#a8c0ae;background:radial-gradient(circle at 50% 50%,#617166 1px,transparent 1.5px),#21342e;font-family:inherit}
.map-cell:disabled{opacity:1;cursor:default;color:#a4baa9}.map-cell:not(:disabled){border:2px solid #b1d4b8;background-color:#304b3c;cursor:pointer}.map-cell:not(:disabled):hover,.map-cell:focus-visible{background-color:#41684d;outline:2px solid #e9e6ad;outline-offset:-3px}
.map-cell[data-wall=true]{border:1px solid #45504a;background:repeating-linear-gradient(135deg,#2e3932 0 3px,#222b28 3px 9px)}
.covert-skill{display:flex;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;background:#20322e;border-left:3px solid var(--skill-color)}
.covert-skill>.ic{color:var(--skill-color);--size:24px}.covert-skill>div{flex:1;min-width:0}.covert-skill b{color:var(--skill-color);font-size:15px}.covert-skill p,.covert-roster p{color:#d1dcd2;font-size:12px;line-height:1.45;margin:3px 0}
.skill-trigger{flex:none;min-height:40px;padding:6px 10px;color:var(--skill-color);background:#172723;border:1px solid var(--skill-color);font-weight:700}
.map-board[data-aim=true] .map-cell:not(:disabled){outline:2px solid var(--skill-color);outline-offset:-3px;background-color:#43524a}
.skill-mark{position:absolute;bottom:1px;right:2px;color:#e1e0ff;background:#302f47;font:10px/1.2 sans-serif;z-index:5}
.covert-roster{border-top:1px solid #46594e;margin-top:10px;padding-top:5px}.covert-roster summary{padding:8px 0;cursor:pointer;color:#d2e6d7}
.covert-roster label{display:inline-grid;vertical-align:middle;font-size:12px;color:#bdcebf;margin-right:8px;max-width:100%}.covert-roster select{min-height:40px;max-width:100%;color:#f1f4eb;background:#1e3029;border:1px solid #667a6d}.covert-roster button{min-height:40px;vertical-align:bottom}
.cast-effect{position:absolute;inset:0;z-index:7;overflow:hidden;pointer-events:none;color:var(--skill-color)}.op-report{position:relative}
.cast-particle{position:absolute;display:block;pointer-events:none;background:currentColor;box-shadow:0 0 8px currentColor}
.cast-ring{width:22px;height:22px;margin:-11px;border:2px solid currentColor;background:transparent;border-radius:50%}
.cast-dot,.cast-paw,.cast-echo{width:10px;height:10px;margin:-5px;border-radius:50%}.cast-shard{width:7px;height:5px}.cast-jet,.cast-slash{width:6px;height:23px;margin:-9px -3px;border-radius:65% 12%}
.cast-paw{box-shadow:-5px -7px 0 -2px currentColor,1px -9px 0 -2px currentColor,7px -6px 0 -2px currentColor}.cast-echo{background:transparent;width:26px;height:26px;border:2px dashed currentColor;margin:-13px}
.map-agent,.map-guard{position:absolute;z-index:3;display:grid;place-items:center;height:68%;aspect-ratio:1;max-width:70%;font-style:normal;pointer-events:none}
.map-agent{border:2px solid #c6f3c9;border-radius:100%;background:#56715d;box-shadow:0 0 0 2px #182720;overflow:hidden}.map-agent img{width:100%;height:100%;object-fit:cover}
.map-guard{z-index:2;width:clamp(18px,3.2vw,28px);height:auto;border:1px solid #e59884;border-radius:4px;background:#714137;color:#ffe8d9;font-size:12px;font-weight:bold}
.map-item{z-index:1;padding:1px 4px;border:1px solid currentColor;font-size:clamp(10px,1.6vw,14px);font-weight:bold;color:#eccb82;background:#332f22}.map-item[data-item="录音"]{color:#d9bcde;background:#352a3b}.map-item[data-item="出口"]{color:#b7ddbf;background:#233d31}
.map-cell:has(.map-agent,.map-guard) .map-item{position:absolute;bottom:1px;left:1px;z-index:4;font-size:9px;line-height:1.1}
.map-warning{position:absolute;top:2px;right:3px;color:#ffd0ad;background:#773e30;font:bold 12px/14px monospace;width:14px;text-align:center;border-radius:50%}
#dialog[data-view="drill"] .map-cell:disabled{opacity:1}
.map-guard{width:auto;min-width:24px;padding:2px 3px;aspect-ratio:auto;line-height:1.1}
.map-item{display:inline-flex;align-items:center;justify-content:center;gap:3px;border-radius:3px}
.map-item .ic{--size:clamp(11px,1.6vw,17px)}.map-cell:has(.map-guard,.map-agent) .map-item .ic{display:none}
.map-cell:has(.map-warning){background-color:#3b342d}
.map-cell:has(.map-agent){border-color:#8bb08d;background-color:#304337}
[data-op="lockdown"]{padding:5px 9px;font-size:12px;margin:0 0 8px}
[data-op="lockdown"][aria-pressed=true]{background:#492e29;border-color:#d89478;color:#f5c4a8}
.map-legend{display:flex;gap:12px;flex-wrap:wrap;margin:7px 0;color:#b9c9bc;font-size:11px}.map-legend span:last-child{color:#ecc8af}
.map-brief{margin:8px 0;color:#e6e5cf;min-height:1.5em;font-size:14px}.map-help{font-size:12px;color:#bdcdc1}.map-help summary{cursor:pointer}.map-help p{line-height:1.6}
@media(pointer:coarse){.map-cell,.skill-trigger,.covert-roster summary,.map-help summary{min-height:40px}.map-help summary,.covert-roster summary{align-content:center}}
@media(max-width:550px){.covert-entry{min-height:118px}.covert-entry>div{padding:12px}.covert-entry p{max-width:72%}.map-board{gap:3px;padding:4px}.map-cell{aspect-ratio:1.12}.map-header{gap:7px}.map-legend{gap:6px}.dossier-hero{min-height:135px}}
