/* Compact roguelike instruments. Leave room for the world, keeping real
   simultaneous hazards visible; no clipped text or forced maximum heights. */
#rogueChart{right:146px}
#rogue .embark-retry-context{display:grid;gap:5px;max-width:360px;margin:0;font-size:13px;line-height:1.4;color:#b9c1c8}
#rogue .embark-retry-context b{font-size:17px;color:#f3a343}
#rogue .embark-retry-context span{font-size:12px;line-height:1.5}
#rogue .rogue-debrief-result .session-actions{gap:12px}
#rogue .rogue-debrief-result .session-actions button{padding:10px 12px;font-size:14px}
#rogue .rogue-record-summary{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;padding:4px 0 14px;color:#b9c1c8;font-size:14px}
#rogue .rogue-record-summary b{margin-left:6px;color:#f3f1e8;font-size:18px;font-variant-numeric:tabular-nums}
#rogue .rogue-debrief summary small{margin-left:10px;color:#b9c1c8;font-size:13px}
#rogue .rogue-record-list{list-style:none;margin:6px 0 0;padding:0}
#rogue .rogue-record-list li{display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px;padding:10px 0;border-top:1px solid #b9c1c81a}
#rogue .rogue-record-list time{font-size:13px;color:#b9c1c8;font-variant-numeric:tabular-nums}
#rogue .rogue-record-list strong{font-size:14px;color:#f3f1e8;font-weight:600}
#rogue .rogue-record-list p{margin:2px 0;font-size:14px;line-height:1.5}
#rogue .rogue-record-list small{display:block;color:#b9c1c8;font-size:12px;line-height:1.5}
#rogue .rogue-record-totals{display:flex;flex-wrap:wrap;gap:6px 20px;padding:8px 0;color:#b9c1c8;font-size:13px}
#rogue .rogue-debrief .rogue-record-note{font-size:14px;color:#ffbe78}
#rogue .rogue-debrief .rogue-record-unavailable,#rogue .rogue-debrief .rogue-record-equipment{font-size:14px}
#rogue .rogue-debrief .rogue-rescue-result{margin:0 0 10px;color:#f3f1e8;font-size:15px;font-weight:600}
#rogue .harbor-plan-rescue{color:#f3a343;font-size:13px}
#rogue .rogue-workshop-return{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 28px;border-top:1px solid #52606a;background:#222a30}
#rogue .rogue-workshop-return p{font-size:14px;line-height:1.4}
#rogue .rogue-workshop-return small{display:block;color:#f3a343;font-size:13px;margin-top:4px}
#rogue #rogueWorkshopReturn{flex-shrink:0;background:transparent;border-color:#f3a343}
#rogue .rogue-workshop-actions{display:flex;gap:10px;flex-shrink:0}
#rogue .rogue-workshop-actions #rogueSalvageHome{background:transparent}
#rogue .rogue-workshop-save-error{padding:10px 28px;color:#ffbe78;font-size:14px}
@media(max-height:740px){#rogue .rogue-workshop-return{padding:10px 24px;gap:14px}}
@media(max-width:700px){#rogue .rogue-workshop-return{align-items:flex-start;flex-direction:column;padding:16px 20px}#rogue .rogue-workshop-actions{flex-direction:column;width:100%}#rogue #rogueWorkshopReturn{width:100%}}
#rogue .rogue-plan-summary{margin-top:7px;color:#b9c1c8;font-size:14px;line-height:1.4}
/* Encounter instrument: the two real drives, without a fictitious body HP. */
.boss-encounter{position:fixed;top:14px;left:50%;transform:translateX(-50%);width:clamp(196px,32vw,420px);height:76px;padding:5px 10px;pointer-events:none;text-align:center;color:#efe6cc;font:500 13px/1.25 Pretendard,sans-serif;background:linear-gradient(90deg,transparent,#07151cbb 20%,#07151cbb 80%,transparent);text-shadow:0 1px 3px #000}
.boss-encounter header{display:flex;align-items:center;justify-content:center;gap:12px;min-height:20px}
.boss-encounter .be-title{font-size:17px;font-weight:750;letter-spacing:.03em;white-space:nowrap}
.boss-encounter .be-count{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#e5ac7b}
.boss-encounter .be-parts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
.boss-encounter .be-label{display:flex;justify-content:space-between;gap:6px;font-size:11px;line-height:14px}
.boss-encounter .be-label i{font-style:normal;font-variant-numeric:tabular-nums}
.boss-encounter .be-meter{height:5px;margin-top:2px;background:#18232c;box-shadow:0 0 0 1px #cbb57f66}
.boss-encounter .be-meter>svg{display:block;width:100%!important;height:100%!important;filter:none!important}
.boss-encounter .be-fill{fill:#e9b876;stroke:none}
.boss-encounter .be-note{padding:0;margin:6px 0 0;font-size:12px;line-height:15px;color:#d4bf8f;white-space:nowrap}
.boss-encounter[data-tone=danger] .be-note{color:#ff9c88}
.boss-encounter[data-tone=exposed] .be-note{color:#efd593}
.boss-encounter[data-tone=cleared] .be-title,.boss-encounter[data-tone=cleared] .be-count,.boss-encounter[data-tone=cleared] .be-note{color:#a9d9c1}
.boss-encounter .be-part[data-state=destroyed]{color:#92b4a6}
.boss-encounter .be-part[data-state=destroyed] .be-meter{box-shadow:0 0 0 1px #72978a55}
#rogueMission:has(.boss-encounter){max-width:calc((100vw - clamp(196px,32vw,420px))/2 - 36px)}
#rogue[data-hud=compact] .rogue-top-stack{width:320px;gap:8px}
#rogue[data-hud=compact] #rogueMission{padding:10px 14px;font-size:16px;line-height:1.35}
#rogue[data-hud=compact] #rogueMission small{font-size:14px;margin-bottom:4px}
#rogue[data-hud=compact] #rogueMission strong{display:block;font-size:18px;line-height:1.35}
#rogue[data-hud=compact] #rogueMission .rogue-boss-state{margin-top:6px;font-size:14px;line-height:1.4}
#rogue[data-hud=compact] .rogue-radio{padding:10px 14px;font:400 14px/1.45 Pretendard,sans-serif}
#rogue[data-hud=compact] .rogue-console{left:16px;width:min(780px,calc(100% - 232px));padding:10px 14px;border-top:1px solid #647580}
#rogue[data-hud=compact] .rogue-readings{gap:6px 20px;font-size:14px}
#rogue[data-hud=compact] [data-rogue-metric]{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}
#rogue[data-hud=compact] .rogue-readings b{margin:0;font-size:20px;line-height:1.2}
#rogue[data-hud=compact] .rogue-maximum{font-size:14px;color:#b9c1c8;margin-left:-4px}
#rogue[data-hud=compact] .rogue-instrument{position:relative;padding-bottom:8px}
#rogue[data-hud=compact] .rogue-gauge{position:absolute;display:block;left:0;bottom:0;width:100%;height:8px;color:#b9c1c8}
#rogue[data-hud=compact] .gauge-track{fill:#b9c1c826}
#rogue[data-hud=compact] .gauge-fill{fill:currentColor}
#rogue[data-hud=compact] .gauge-mark{stroke:#f3f1e8;stroke-width:1}
#rogue[data-hud=compact] [data-rogue-condition] .rogue-gauge{width:160px;max-width:100%}
#rogue[data-hud=compact] [data-tone=warning] .rogue-gauge{color:#f3a343}
#rogue[data-hud=compact] [data-tone=ready] .rogue-gauge{color:#75b4c4}
#rogue[data-hud=compact] .rogue-conditions{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:7px;font:400 14px/1.4 Pretendard,sans-serif;color:#b9c1c8}
#rogue[data-hud=compact] .rogue-conditions:empty{display:none}
#rogue[data-hud=compact] .rogue-impact{display:flex;flex-wrap:wrap;flex-basis:100%;min-height:20px;line-height:20px;gap:4px 12px;border-left:2px solid #ffbe78;padding-left:8px;color:#dfc4aa}
#rogue[data-hud=compact] .rogue-impact:empty{border-color:transparent}
#rogue[data-hud=compact] .rogue-impact strong{color:#ffbe78;font-size:14px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums}
#rogue[data-hud=compact] [data-impact=true] b,#rogue[data-hud=compact] [data-impact=true] .rogue-gauge{color:#ffbe78}
#rogue[data-hud=compact] [data-tone=warning]{color:#ffbe78}
#rogue[data-hud=compact] .rogue-controls{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font:500 14px/1.4 Pretendard,sans-serif;margin-top:7px;padding-top:7px;color:#f3f1e8}
#rogue[data-hud=compact] [data-rogue-context=defense]{flex-basis:100%;color:#b9c1c8}
#rogue[data-hud=compact] [data-rogue-context=docking]{flex-basis:100%;color:#b9c1c8}
#rogue[data-hud=compact] .rogue-controls [data-tone=warning]{color:#ffbe78}
#rogue[data-hud=compact] [data-rogue-context=search]{font-weight:600}
#rogue .rogue-supply{flex-basis:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;padding:8px 12px;border-left:2px solid #e4c282;background:#0b202be8;pointer-events:auto}
#rogue .rogue-supply strong{font-size:13px;color:#ffe0a1}
#rogue .rogue-supply small{grid-column:1;color:#c3d6d9;font-size:12px}
#rogue .rogue-supply p{grid-column:1;margin:4px 0;font-size:12px}
#rogue .rogue-supply>div{grid-column:2;grid-row:1/4;align-self:center;display:flex;gap:8px}
#rogue .rogue-supply button{min-height:44px;min-width:145px;padding:6px 12px;border:1px solid #cbb27e;border-radius:8px;background:#17313b;color:#fff0cb;font-size:13px}
#rogue .rogue-supply button:disabled{opacity:.5}
html[data-mobile-ui=true] #rogue .rogue-supply{display:none}
#rogue .rogue-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* A fixed-width key hint changes ink only when a real rig action resolves. */
#rogue .rogue-rig-control{display:inline-flex;align-items:center;gap:6px;width:194px;height:22px;flex:none;white-space:nowrap;font-size:14px;color:#b9c1c8;pointer-events:none}
#rogue .rogue-rig-control kbd{display:inline-flex;align-items:center;justify-content:center;width:34px;height:22px;flex:none;border:1px solid #b9c1c866;border-radius:3px;font:600 14px/1 Pretendard,sans-serif}
#rogue .rogue-rig-control svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#rogue .rogue-rig-control[data-rig-control-id]{color:#a4e0df}
#rogue .rogue-rig-control[data-rig-control-id] kbd{box-shadow:inset 0 0 0 1px #a4e0df}
html[data-mobile-ui=true] #rogue .rogue-rig-control{display:none}
#rogue[data-hud=compact] .rogue-dock-checks{display:flex;flex-basis:100%;flex-wrap:wrap;gap:6px 18px;color:#aebdc5;font-size:14px}
#rogue[data-hud=compact] .rogue-dock-checks i{font-style:normal;color:#8fcbd8}
#rogue[data-hud=compact] .rogue-dock-checks [data-active=true]{color:#f3f1e8;font-weight:600}
#rogue[data-hud=compact] .rogue-dock-checks [data-ok=true]{color:#c8dbde}
#rogue:has(#rogueSea[data-dock-panel=true]) .rogue-dock-checks{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#rogue[data-hud=compact] .rogue-work{display:flex;gap:10px;align-items:center;font-size:14px;color:#f3a343}
#rogue[data-hud=compact] .rogue-work progress{width:110px;height:5px;accent-color:#f3a343}
#rogue[data-hud=compact] #rogueSkill{padding:10px 12px 14px;min-height:0;width:184px;gap:6px;font:400 14px/1.4 Pretendard,sans-serif}
#rogue[data-hud=compact] #rogueSkill kbd{font-size:14px;margin:0;flex-shrink:0}
#rogue[data-hud=compact] #rogueSkill b{font-size:16px}
#rogue[data-hud=compact] #rogueSkill small{font-size:14px;line-height:1.4}
#rogue[data-hud=compact] #rogueSkill[data-compact=true]{padding:8px 10px;border-color:transparent;background:#15191dcc}
#rogue[data-hud=compact] #rogueSkill[data-compact=true] b{display:none}
#rogue[data-hud=compact] #rogueSkill[data-compact=true] small{margin:0}
#rogue[data-hud=compact] #rogueSkill:focus-visible{outline:2px solid #f3a343;outline-offset:3px}
#rogue .rogue-detail-list{display:grid;gap:10px;font-size:14px;line-height:1.5}
#rogue .rogue-detail-list>div{display:grid;grid-template-columns:120px 1fr;gap:12px}
#rogue .rogue-detail-list dt{color:#b9c1c8}
#rogue .rogue-detail-list dd{margin:0;color:#f3f1e8}
@media(max-width:700px){
 #rogue[data-hud=compact] .rogue-console{left:12px;bottom:12px;width:calc(100% - 24px)}
 #rogue[data-hud=compact] #rogueSkill{right:12px;bottom:auto;top:70px;width:156px}
 #rogue[data-hud=compact] .rogue-top-stack{max-width:calc(100% - 190px)}
 #rogue[data-hud=compact] .rogue-readings{gap:6px 14px}
 #rogue .rogue-detail-list>div{grid-template-columns:1fr;gap:2px}
}

/* A paused chart and a plain destination list, using the same harbor theme. */
#rogue[data-surface=chart] #rogueHud{visibility:hidden}
#rogue[data-surface=chart] #rogueModal{display:block;padding:0;background:#10171c;overflow:hidden}
#rogue .harbor-plan{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;min-height:0;max-height:100dvh;padding:24px 32px;color:#f3f1e8;gap:16px;font:400 14px/1.4 Pretendard,sans-serif}
#rogue .harbor-plan p{font:inherit}
#rogue .harbor-plan small{line-height:1.3}
#rogue .harbor-plan-header{display:flex;align-items:center;gap:24px;border-bottom:1px solid #48535c;padding-bottom:16px}
#rogue .harbor-plan-header p{margin:0 0 4px;color:#b9c1c8}
#rogue .harbor-plan-header h2{margin:0;font-size:28px;line-height:1.2}
#rogue .harbor-plan-paused{color:#f3a343;letter-spacing:.06em;font-size:12px}
#rogue .harbor-plan button{font:inherit;border-radius:0;color:inherit;cursor:pointer}
#rogue .harbor-plan button:focus-visible{outline:2px solid #f3a343;outline-offset:-2px}
#rogue .harbor-plan button:disabled{cursor:default}
#rogue #harborPlanClose,#rogue #harborPlanClear{padding:10px 14px;border:1px solid #647580;background:transparent;min-height:42px}
#rogue #harborPlanClose{margin-left:auto}
#rogue #harborPlanClear:disabled{opacity:.4}
#rogue .harbor-plan-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;min-height:0}
#rogue .harbor-plan-map{position:relative;min-height:0;background:#0b1c24;overflow:hidden;border:1px solid #34444d}
#rogue #harborPlanSea{position:absolute;inset:0;width:100%;height:100%}
#rogue .harbor-plan-pin{position:absolute;transform:translate(-50%,-50%);width:34px;height:34px;padding:0;border:1px solid #9eb4bc;background:#151d24;color:#f3f1e8;font-weight:700}
#rogue .harbor-plan-pin:hover,#rogue .harbor-plan-pin[aria-pressed=true]{background:#f3a343;color:#10171c;border-color:#f3a343}
#rogue .harbor-plan-you{position:absolute;transform:translate(-50%,-50%);color:#9bd0dc;font-size:18px;pointer-events:none}
#rogue .harbor-plan-you small{position:absolute;left:-12px;top:-19px;font-size:12px;white-space:nowrap;background:#10171cbb;padding:1px 4px}
#rogue .harbor-plan-legend{position:absolute;left:12px;bottom:10px;right:12px;color:#a9b7bf;font-size:12px;pointer-events:none}
#rogue .harbor-plan-sites{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#647580 #10171c}
#rogue .harbor-plan-list-label{margin:0 0 4px;color:#b9c1c8;letter-spacing:.08em;font-size:12px}
#rogue .harbor-plan-site{display:flex;flex-direction:column;width:100%;gap:4px;text-align:left;padding:14px 12px;border:0;border-bottom:1px solid #48535c;background:transparent;line-height:1.4}
#rogue .harbor-plan-site:hover:not(:disabled){background:#25323b}
#rogue .harbor-plan-site[aria-pressed=true]{background:#f3a34318;border-left:3px solid #f3a343;padding-left:9px}
#rogue .harbor-plan-site-heading{display:flex;align-items:baseline;gap:8px;justify-content:space-between}
#rogue .harbor-plan-site-heading b{font-size:16px}
#rogue .harbor-plan-site-heading b small{color:#9daeb9;font-size:12px;margin-right:3px}
#rogue .harbor-plan-site-heading>span{font-size:12px;color:#a9b7bf;flex-shrink:0}
#rogue .harbor-plan-rig{display:block;color:#efd39b}
#rogue .harbor-plan-rig strong{font-size:14px;font-weight:650}
#rogue .harbor-plan-rig small{display:block;color:#c0cfc9;font-size:12px;line-height:1.4}
#rogue .harbor-plan-gear{color:#f3a343;font-weight:600}
#rogue .harbor-plan-gear small{margin-left:8px;color:#a9b7bf;font-weight:400}
#rogue .harbor-plan-muted,#rogue .harbor-plan-sightings,#rogue .harbor-plan-actual{color:#a9b7bf;font-size:12px}
#rogue .harbor-plan-actual{display:block}
#rogue .harbor-plan-tool{color:#8fc1d0;font-size:12px}
#rogue .harbor-plan-boss{margin-top:8px}
#rogue .harbor-plan-record-note{display:block;font-size:12px;color:#a9b7bf;margin:3px 0 0}
#rogue .harbor-plan-footer{display:flex;align-items:center;gap:20px;border-top:1px solid #48535c;padding-top:12px}
#rogue .harbor-plan-footer p{margin:0;color:#b9c1c8}
#rogue #harborPlanSaveError{color:#ffbe78;font-size:13px}
@media(max-width:1100px){
 #rogue .harbor-plan{padding:16px;gap:12px}
 #rogue .harbor-plan-header{padding-bottom:12px}
 #rogue .harbor-plan-header h2{font-size:24px}
 #rogue .harbor-plan-body{grid-template-columns:minmax(0,1fr) 320px;gap:16px}
 #rogue .harbor-plan-site{padding-top:8px;padding-bottom:8px;gap:2px}
}

/* The metre-scale dock has separate light instruments and key prompts.
   Their actual bounds are measured individually by the camera HUD probe. */
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] .rogue-console{display:contents}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] .rogue-top-stack{width:360px;max-width:42%;gap:8px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] #rogueMission{padding:0 0 0 10px;background:none;border-left:2px solid #e9c582;text-shadow:0 1px 3px #07151f,0 0 7px #07151f}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] #rogueMission small{font-size:12px;margin-bottom:3px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] #rogueMission strong{font-size:18px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] .rogue-radio{padding:5px 10px;font-size:12px;line-height:1.45;background:linear-gradient(90deg,#10212ccc,#10212c55);border-left:1px solid #8bb9c7;text-shadow:0 1px 3px #07151f}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] #rogueReadings{position:absolute;left:20px;bottom:18px;width:max-content;max-width:42%;margin:0;padding:4px 0;gap:8px 22px;text-shadow:0 1px 3px #07151f,0 0 8px #07151f}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-metric]{font-size:12px;gap:5px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-metric] b{font-size:20px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] .rogue-maximum{font-size:11px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-metric=boost]{display:none}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-metric=ammo]{padding-bottom:0;align-self:center}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-metric=ammo] .rogue-gauge{display:none}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] #rogueControls{position:absolute;left:auto;right:20px;bottom:18px;width:max-content;max-width:53%;display:flex;justify-content:flex-end;align-items:center;gap:6px 12px;margin:0;padding:0;border:0;background:none;font-size:13px;line-height:1.4;text-align:right;text-shadow:0 1px 3px #07151f,0 0 7px #07151f}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-action=primary]:empty{display:none}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-action=primary]{padding:5px 9px;border-left:2px solid #e9c582;background:#10212c80;color:#f5e2b9}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] [data-rogue-context=defense]{flex-basis:auto;font-size:12px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] .rogue-work{font-size:12px;gap:8px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] .rogue-work progress{width:80px;height:4px}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] #rogueConditions{position:absolute;left:20px;bottom:70px;width:max-content;max-width:calc(100% - 40px);margin:0;gap:4px 16px;font-size:12px;line-height:1.4;text-shadow:0 1px 3px #07151f,0 0 8px #07151f}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] .rogue-impact:empty{display:none}
html:not([data-mobile-ui=true]) #rogue[data-shore-profile=metre] #rogueSkill{display:none}

/* A recoverable scenery download never opens a menu or covers play controls. */
#rogueQuayAssets{position:absolute;z-index:40;top:72px;right:16px;display:flex;align-items:center;gap:8px;max-width:310px;padding:3px 7px;color:#c5d3d9;background:linear-gradient(90deg,#10212cb3,#10212c55);font:500 12px/1.35 Pretendard,sans-serif;text-shadow:0 1px 3px #07151f;pointer-events:none}
#rogueQuayAssets[hidden],#rogueQuayAssets [hidden]{display:none!important}
#rogueQuayAssets .quay-asset-short{display:none}
#rogueQuayAssetCount{color:#a7bec7;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
#rogueQuayAssets[data-status=error]{color:#e5c28d}
#rogue #rogueQuayRetry{flex:none;min-height:32px;margin:0;padding:5px 9px;border:1px solid #b89b65;border-radius:3px;background:#10212c;color:#f1d69f;font:600 12px/1.2 Pretendard,sans-serif;pointer-events:auto;touch-action:manipulation;cursor:pointer}
#rogue #rogueQuayRetry:focus-visible{outline:2px solid #f2cb7f;outline-offset:3px}
#rogue #rogueQuayRetry:disabled{opacity:.5;cursor:default}

/* A permanent position instrument and a map-first central chart. */
#rogueChart,#storyChart{position:fixed;right:24px;top:66px;width:168px;height:100px;padding:0;overflow:hidden;border:1px solid #9ab4ad88;border-radius:2px;background:#081a22d9;z-index:12}
#rogueChart canvas,#storyChart canvas{position:static;display:block;width:100%;height:100%}#rogueChart>span,#storyChart>span{position:absolute;right:5px;bottom:3px;padding:1px 4px;font-size:10px;background:#081a22aa;color:#e4e8d8}
#storyChart[hidden],html[data-mobile-ui="true"] #storyChart{display:none}
#storyChart{transition:none}
#storyChart.expanded{width:min(1000px,86vw);height:min(650px,78vh);left:50%;top:50%;right:auto;transform:translate(-50%,-50%);background:#081a22f5;box-shadow:0 0 0 100vmax #00121866;z-index:25}
#rogue .harbor-plan{width:min(1400px,96vw);height:92dvh;margin:auto;padding:16px 20px;gap:10px}
#rogue .harbor-plan-header{padding-bottom:10px}#rogue .harbor-plan-header h2{font-size:24px}
#rogue .harbor-plan-body{display:block;position:relative;min-height:0}
#rogue .harbor-plan-map{width:100%;height:100%;min-height:0;background:#0b1d25}
#rogue .harbor-plan-directory{position:absolute;right:12px;top:12px;width:min(340px,42%);max-height:calc(100% - 24px);padding:0;overflow:auto;background:#0d202af5;border:1px solid #8ba7a466;color:#e6ebe2;scrollbar-width:thin;z-index:2}
#rogue .harbor-plan-directory>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;list-style:none;cursor:pointer;font-size:13px}
#rogue .harbor-plan-directory[open]>summary{border-bottom:1px solid #80999a55}#rogue .harbor-plan-directory[open]>summary span{transform:rotate(45deg)}
#rogue .harbor-plan-sites{overflow:visible;padding:4px 0}.harbor-plan-directory:not([open])>.harbor-plan-sites{display:none}
#rogue .harbor-plan-list-label{display:none}#rogue .harbor-plan-pin{width:38px;height:38px;border-radius:50%;box-shadow:0 2px 8px #0005}
#rogue .harbor-plan-you{color:#fff0b6;text-shadow:0 1px 3px #000}#rogue .harbor-plan-you small{color:#fff0b6}
#rogue .harbor-plan-footer{gap:14px}#rogue .harbor-plan-footer p{font-size:12px}
@media(max-width:900px){#rogue .harbor-plan{width:100%;height:100dvh;padding:8px 12px;gap:6px}#rogue .harbor-plan-header{gap:12px;padding-bottom:6px}#rogue .harbor-plan-header h2{font-size:18px}#rogue .harbor-plan-header p{font-size:10px}#rogue .harbor-plan-paused{font-size:9px}#rogue .harbor-plan-directory{right:8px;top:8px;width:min(290px,44%);max-height:calc(100% - 16px)}#rogue .harbor-plan-directory>summary{font-size:11px}#rogue .harbor-plan-legend{font-size:9px}#rogue .harbor-plan-record-note{display:none}#rogue .harbor-plan-footer{gap:8px}#rogue .harbor-plan-footer p{font-size:10px}}

/* Factual result highlight, scoped to the Rogue result only. */
#rogue[data-surface=result] .rogue-debrief-result .result-insight{position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:2px;text-align:left;width:100%;min-height:0;padding:5px 24px 7px 0;margin:8px 0 10px;background:transparent;border:0;border-radius:0;box-shadow:none;line-height:1.35;color:var(--session-text)}
#rogue[data-surface=result] .rogue-debrief-result .result-insight .insight-label{font-size:12px;font-weight:500;color:var(--session-secondary);align-self:center}
#rogue[data-surface=result] .rogue-debrief-result .result-insight strong{font-size:15px;font-weight:650;color:var(--session-text)}
#rogue[data-surface=result] .rogue-debrief-result .result-insight .insight-detail{grid-column:2;font-size:12px;font-weight:400;line-height:1.4;color:var(--session-secondary)}
#rogue[data-surface=result] .rogue-debrief-result .result-insight .insight-open{position:absolute;right:2px;top:8px;color:var(--session-action)}
#rogue[data-surface=result] .rogue-debrief-result .result-insight:hover{background:#ffffff05;border:0}
#rogue[data-surface=result] .rogue-debrief-result .rogue-retry-note{font-size:13px;line-height:1.45;margin:8px 0 12px}
html[data-mobile-ui=true] #rogue[data-surface=result] .rogue-debrief-result .result-insight{grid-template-columns:1fr;gap:1px;padding:2px 22px 4px 0;margin:4px 0 6px}
html[data-mobile-ui=true] #rogue[data-surface=result] .rogue-debrief-result .result-insight .insight-label{font-size:11px;line-height:14px}
html[data-mobile-ui=true] #rogue[data-surface=result] .rogue-debrief-result .result-insight strong{font-size:14px;line-height:18px}
html[data-mobile-ui=true] #rogue[data-surface=result] .rogue-debrief-result .result-insight .insight-detail{grid-column:1;font-size:11px;line-height:15px}
html[data-mobile-ui=true] #rogue[data-surface=result] .rogue-debrief-result .result-insight .insight-open{top:16px}
html[data-mobile-ui=true] #rogue[data-surface=result] .rogue-debrief-result .rogue-retry-note{font-size:12px;line-height:16px;margin:5px 0 8px}

/* Discrete gates and real relay progress share the existing encounter footprint. */
.boss-encounter[data-kind] .be-parts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.boss-encounter[data-kind] .be-label{gap:3px;white-space:nowrap}
.boss-encounter[data-kind] .be-fill{fill:#b4d8c4}
.boss-encounter[data-kind] .be-part[data-state=complete]{color:#b4d8c4}
.boss-encounter[data-kind] .be-part[data-state=selected] .be-meter{box-shadow:0 0 0 1px #edc987}
