/* MOBILE-BASELINE-BEGIN */
@media(max-width:900px){
/* C: shared presentation; game actions and all detail states remain native. */
:root{--bg:#090a0b;--bg2:#101113;--panel:#141517;--panel2:#1b1c1f;--panel3:#242529;--line:#2c2d31;--line2:#414248;--ink:#f0f0ed;--ink2:#b4b4ad;--ink3:#92938c;--amber:#b7a044;--amber2:#756628;--amber-glow:#b7a04420;--amber-dk:#756628;--amber-lt:#c5b05e;--r:16px;--r-sm:9px;--lift:0 1px 0 #ffffff05;--lift2:0 16px 48px #0006}
body{background:var(--bg) url('/img/c-ui/console-grid.svg') fixed;color:var(--ink);font-size:15px}
#app{max-width:1800px;padding:24px 32px 40px}
.panel,.ui-selected,.ui-master-list,.ui-compare,.pc-workspace,.exact-lobby,.shop-preview-right{background-color:var(--panel);border-color:var(--line);border-radius:var(--r);box-shadow:none}
.mainpanel{background:transparent;border:0;box-shadow:none}
.mainpanel>.panel-b{padding:0}
.mainhead{padding:12px 0 24px;border:0;background:transparent}
.mainhead h3{font-size:26px;font-weight:700}
.mainhead .uiico{width:28px;height:28px}
.panel-h{background:transparent;border-color:var(--line);padding:16px 20px}
.panel-b{padding:20px}
.btn,.stab,.pc-section-tabs button,.ui-filter-btn{border-radius:9px;min-height:36px;padding:8px 13px;background:#202124;border-color:#37383b;color:var(--ink);font-size:13px}
.btn.primary,.btn.go,.subtabs .stab.on,.pc-section-tabs .primary{background:var(--amber);color:#11120f;border-color:var(--amber);font-weight:700;box-shadow:none}
.btn:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #d8c36d;outline-offset:3px}
input,select,textarea{background:#101113;color:var(--ink);border-color:var(--line2);border-radius:8px;font-size:14px}
.subtabs,.pc-section-tabs{gap:8px;padding:8px 0 18px;overflow-x:auto;flex-wrap:nowrap}
.subtabs .stab,.pc-section-tabs button{white-space:nowrap;flex-shrink:0}
.dim,.hint{color:var(--ink2)}
.tag,.chip{border-radius:6px}
.ui-master-detail{gap:20px}
.ui-master-list{padding:14px}
.ui-selected,.ui-compare{padding:22px}
.ui-list-card{border-radius:10px;padding:14px;background:#1b1c1f;border-color:var(--line);margin-bottom:8px}
.ui-list-card.selected,.ui-list-card.on,.ui-list-card.open{background:#25241b;border-color:var(--amber)}
table.grid{border-spacing:0;background:var(--panel)}
table.grid th{background:#202124;color:var(--ink2);font-size:12px;padding:12px}
table.grid td{padding:12px;border-color:var(--line)}
details{border-color:var(--line);border-radius:9px}
summary{padding:10px 12px;cursor:pointer;color:var(--ink2)}
.overlay{background:#000b;backdrop-filter:blur(8px)}
.modal{background:#17181a;border:1px solid #5c532f;border-radius:20px;box-shadow:0 28px 100px #0009;padding:24px;max-height:calc(100dvh - 48px);overflow:auto}
.dialog-closebar{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px;color:var(--ink)}
.empty{padding:28px 20px;background:#151618;border:1px dashed var(--line2);border-radius:12px;color:var(--ink2)}
.topbar:is(.hud-layout-one,.hv2),.topbar.hv2,.topbar{background:#121315;border:1px solid var(--line);border-radius:16px;margin:0 0 24px;padding:16px;box-shadow:none}
.topbar:is(.hud-layout-one,.hv2) .hudop,.topbar:is(.hud-layout-one,.hv2) .exact-head-vitals,.topbar:is(.hud-layout-one,.hv2) .stat-strip,.topbar:is(.hud-layout-one,.hv2) .sfield{background:transparent;border-color:var(--line)}
#bottomDock .dk .uiico{filter:none;width:22px;height:22px;min-width:22px;object-fit:contain;flex:0 0 22px}
#bottomDock .dockmore .uiico{width:22px;height:22px;object-fit:contain;flex:0 0 22px}
.dockmore .dmtabs{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:6px}
.dockmore .dk{display:flex;align-items:center;gap:8px;min-width:0;min-height:40px;padding:8px;font-size:13px}
.dockmore .dk .rl{font-style:normal;white-space:normal;overflow-wrap:anywhere}
.dockmore .dmbtns{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.dockmore .dmbtns .iconbtn{min-width:0;white-space:normal}
.c-home .ui-home-recommend-list{height:auto;min-height:0}
.c-home .ui-home-recommend .htile{flex-shrink:0;height:auto;min-height:78px;overflow:visible;grid-template-rows:auto auto auto}
.c-home .ui-home-recommend .htile .tt{grid-row:1}
.c-home .ui-home-recommend .htile .tv{grid-row:2;min-width:0;white-space:normal;overflow-wrap:anywhere}
.c-home .ui-home-recommend .htile .ts{grid-row:3;display:block;overflow:visible;white-space:normal;-webkit-line-clamp:unset}
@media(min-width:901px){
 .subtabs .stab,.pc-section-tabs button,.gear-tabs .btn{min-height:30px;padding:5px 10px;font-size:12px}
}
.dock .dk{background:transparent;border:0;border-radius:10px;color:var(--ink2);box-shadow:none}
.dock .dk.on{background:#b7a0441c;color:#d4bd60;border:1px solid #b7a04448}
.dock .dk.go{background:var(--amber);color:#10110d}
.dock .dk:hover{background:#242529}
.dock .dk.go:hover{background:#c8b15a}
.dock .dk .rl{font-style:normal;font-size:14px;line-height:1.3}
.dockmore{background:#191a1d;border:1px solid var(--line2);border-radius:14px;box-shadow:var(--lift2)}
@media(min-width:901px){
 body:has(#bottomDock) #app{margin-left:240px;margin-right:auto;width:calc(100% - 240px);max-width:1680px}
 #bottomDock.dock{position:fixed;inset:0 auto 0 0;width:240px;height:100dvh;max-width:none;transform:none;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:24px 16px;background:#101113;border:0;border-right:1px solid var(--line);gap:8px;z-index:45;overflow:visible}
 #bottomDock::before{content:'BLACKLINE';display:block;padding:6px 12px 24px;font-size:22px;font-weight:800;letter-spacing:.08em;color:#d4bd60}
 #bottomDock .dock-toggle{display:none}
 #bottomDock .dock-items{display:flex;flex-direction:column;gap:5px;flex:1;overflow-y:auto;scrollbar-width:thin;width:100%;padding:0}
 #bottomDock .dk{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:38px;margin:0;padding:7px 10px;flex:none}
 #bottomDock .dk .rl{display:block}
 #bottomDock .more{position:relative;inset:auto;margin-top:auto;flex:none}
 #bottomDock .dots{font-size:24px;width:24px;text-align:center}
 #bottomDock .dot{right:10px;left:auto;top:12px}
 #bottomDock .dockmore{position:absolute;left:248px;right:auto;bottom:16px;width:min(580px,calc(100vw - 280px));max-height:85dvh;overflow:auto}
 .hubB{padding-bottom:0}
 .layout.drawopen{padding-right:0}
 .drawer{z-index:55}
 .topbar:is(.hud-layout-one,.hv2){grid-template-columns:minmax(240px,1fr) minmax(240px,1fr) minmax(280px,1fr);min-height:110px}
}
@media(max-width:900px){
 #app{max-width:100%;padding:12px 12px calc(90px + env(safe-area-inset-bottom))}
 .mainhead{padding:12px 0 16px}.mainhead h3{font-size:22px}
 .panel-b,.ui-selected,.ui-compare{padding:15px}
 .ui-master-detail{gap:12px;grid-template-columns:minmax(0,1fr)}
 .ui-master-detail>*{min-width:0}
 .topbar:is(.hud-layout-one,.hv2),.topbar.hv2,.topbar{position:relative;top:auto;margin-bottom:16px;padding:12px;border-radius:14px}
 #bottomDock.dock{position:fixed;inset:auto 0 0;transform:none;width:100%;max-width:none;display:flex;align-items:stretch;justify-content:space-around;gap:0;padding:8px 6px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:#111214f5;backdrop-filter:blur(12px);z-index:60}
 #bottomDock .dock-toggle{display:none}
 #bottomDock .dock-items{display:flex;flex:4;gap:0;justify-content:space-around;min-width:0}
 #bottomDock .dk{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:54px;width:auto;height:auto;margin:0;padding:7px 4px}
 #bottomDock .dk .rl{display:block;font-size:11px}
 #bottomDock .more{position:relative;inset:auto;flex:1;width:auto}
 #bottomDock .dots{height:24px;font-size:24px;line-height:24px}
 #bottomDock .dockmore{position:fixed;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:auto;max-height:75dvh;overflow:auto}
 .modal{width:calc(100vw - 24px);max-width:640px;padding:18px;border-radius:16px;max-height:calc(100dvh - 24px)}
 .btn{min-height:40px}.btn.xs{min-height:32px}
 table.grid td,table.grid th{padding:10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Replace legacy teal presentation surfaces while preserving artwork. */
.pc-page .panel,.review-rebuild .panel,.exact-workspace .panel{background-color:var(--panel);background-image:none;border:1px solid var(--line);border-radius:16px}
.pc-page .panel-h,.review-rebuild .panel-h{background:transparent;border-bottom:1px solid var(--line)}
.pc-page .ui-home-stat,.pc-page .ui-list-card,.pc-page .ui-preview-stat{background:#1c1d20;border-color:var(--line);border-radius:12px}
.pc-page .ui-home-six{gap:12px;padding:16px}
.pc-page .ui-home-dashboard{gap:20px}
.pc-page .ui-home-status h3,.pc-page .ui-home-recommend h3{font-size:16px}
.pc-page .ui-home-stat b{color:#d4bd60}
.pc-page .hqbub{background:#111214e8;border-color:#b7a04448;border-radius:12px}
.pc-page .ui-home-recommend .htile{background:#1c1d20;border-color:var(--line);border-radius:10px}
.pc-page .ui-home-recommend .htile.hot{border-color:#756628}
.pc-page .ui-home-shortcuts .btn{min-height:48px}
.topbar:is(.hud-layout-one,.hv2) .hudop,.topbar:is(.hud-layout-one,.hv2) .exact-head-vitals,.topbar:is(.hud-layout-one,.hv2) .hud-right .stat-strip,.topbar:is(.hud-layout-one,.hv2) .hud-right .stat-strip .sfield.res,.topbar:is(.hud-layout-one,.hv2) .hud-utilities>.sfield.cr{background:transparent;border:0}
@media(min-width:901px){
 .pc-page .ui-home-dashboard{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)}
 .pc-page .ui-home-hero{min-height:320px}
 .pc-page .ui-home-stat{min-height:100px}
}
@media(max-width:900px){
 .topbar:is(.hud-layout-one,.hv2){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:0}
 .topbar:is(.hud-layout-one,.hv2) .hv-id{grid-column:1;grid-row:1;padding:0;min-height:0;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-id .hv-avatar{width:48px!important;height:48px!important}
 .topbar:is(.hud-layout-one,.hv2) .hv-id .ht>b{font-size:16px}
 .topbar:is(.hud-layout-one,.hv2) .hv-vitals{grid-column:1/-1;grid-row:2;min-height:0;padding:0;display:flex;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .exact-head-vitals{min-height:0;padding:0;width:100%;gap:10px}
 .topbar:is(.hud-layout-one,.hv2) .hrest{min-width:52px;width:52px;min-height:44px;height:44px;padding:5px}
 .topbar:is(.hud-layout-one,.hv2) .hv-res{grid-column:1/-1;grid-row:3;min-height:0;padding:0;border:0;background:transparent;display:flex;gap:14px}
 .topbar:is(.hud-layout-one,.hv2) .hv-res .sfield.res{display:flex;flex-direction:row;gap:5px;min-height:28px;padding:0;flex:1;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-res .sfield.res img{width:20px!important;height:20px!important}
 .topbar:is(.hud-layout-one,.hv2) .hv-res .sfield.res .v{font-size:12px}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy{grid-column:2;grid-row:1;min-height:0;padding:0;gap:3px;align-items:flex-end;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy>.sfield.cr{padding:0;min-height:0;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy>.sfield.cr .v{font-size:16px}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy .topbtns .btn{min-height:26px;padding:3px 6px;font-size:10px}
}
/* Final header uses hv2 markup, separate from the older hud classes. */
.topbar.hv2{background:#121315;border:1px solid var(--line);border-radius:16px;font-family:var(--f-ui)}
.hv2 .hv-id,.hv2 .hv-vitals,.hv2 .hv-resource,.hv2 .hv-link{background:none;box-shadow:none;border-color:var(--line)}
@media(min-width:901px){
 .topbar.hv2{grid-template-columns:minmax(240px,1.1fr) minmax(260px,1.2fr) minmax(230px,1fr) minmax(140px,.6fr);min-height:110px!important}
 .topbar.hv2 .hv-avatar{width:60px;height:60px;min-width:60px}
 .topbar.hv2 .hv-name{font-size:18px}
 .topbar.hv2 .hv-id,.topbar.hv2 .hv-vitals{padding:10px;border:0}
 .topbar.hv2 .hv-resource{min-height:70px;border:0}
 .topbar.hv2 .hv-resource img{width:28px;height:28px}
 .topbar.hv2 .hv-credit{background:none;border:0}
}
@media(max-width:900px){
 .topbar.hv2{grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important;padding:12px!important;gap:10px!important}
 .topbar.hv2 .hv-id{grid-column:1;grid-row:1;gap:8px;width:auto;min-width:0;padding:0;display:flex;align-items:center}
 .topbar.hv2 .hv-avatar{width:42px!important;height:42px!important;min-width:42px;flex:none}
 .topbar.hv2 .hv-info{gap:3px;min-width:0;flex:1}
 .topbar.hv2 .hv-name{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .topbar.hv2 .hv-meta{font-size:10px;white-space:nowrap}
 .topbar.hv2 .hv-rank{display:none}
 .topbar.hv2 .hv-title{display:none}
 .topbar.hv2 .hv-economy{grid-column:2;grid-row:1;display:flex;flex-direction:column;width:auto;gap:4px;padding:0}
 .topbar.hv2 .hv-credit{min-height:0;padding:0;border:0;background:none}
 .topbar.hv2 .hv-credit .v{font-size:16px}
 .topbar.hv2 .hv-links{display:flex;gap:5px}
 .topbar.hv2 .hv-link{min-height:24px;height:auto;padding:3px 5px;font-size:10px}
 .topbar.hv2 .hv-vitals{grid-column:1/-1;grid-row:2;display:flex;width:100%;min-height:0;padding:0;gap:10px}
 .topbar.hv2 .hv-bars{flex:1;width:auto;gap:7px}
 .topbar.hv2 .hv-meter{padding-left:20px;gap:3px}
 .topbar.hv2 .hv-meter::before{width:14px;height:16px}
 .topbar.hv2 .hv-label{font-size:10px;line-height:14px}
 .topbar.hv2 .hv-rest{width:52px;min-width:52px;min-height:46px;padding:5px;flex:none}
 .topbar.hv2 .hv-bed{width:20px;height:16px}
 .topbar.hv2 .hv-rest-label{font-size:10px}
 .topbar.hv2 .hv-res{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:8px;min-height:0;padding:0}
 .topbar.hv2 .hv-resource{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;padding:4px;min-height:28px;border:0}
 .topbar.hv2 .hv-resource img{width:20px!important;height:20px!important;max-width:20px;max-height:20px}
 .topbar.hv2 .hv-resource .v{font-size:12px;line-height:16px}
}
.pc-page .gear-tabs{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding:0 0 14px;margin-bottom:16px;scrollbar-width:thin}
.pc-page .gear-tabs .btn{flex:none;width:auto;white-space:nowrap;border-radius:8px}
.pc-page .gear-main,.pc-page .gear-operator,.pc-page .gear-summary{background:#141517;border-color:var(--line);border-radius:16px}
.pc-page .gear-columns{gap:20px}
.pc-page .gear-loadout-card{background:#1b1c1f;border-color:var(--line);border-radius:12px}
@media(max-width:900px){.pc-page .gear-columns{gap:12px}.pc-page .gear-tabs{max-width:100%}}

}
/* MOBILE-BASELINE-END */
/* DESKTOP-ONLY-BEGIN */
@media(min-width:901px){
/* C: shared presentation; game actions and all detail states remain native. */
:root{--bg:#0d0e10;--bg2:#101113;--panel:#141517;--panel2:#1b1c1f;--panel3:#242529;--line:#2c2d31;--line2:#414248;--ink:#f0f0ed;--ink2:#b4b4ad;--ink3:#92938c;--amber:#b7a044;--amber2:#756628;--amber-glow:#b7a04420;--amber-dk:#756628;--amber-lt:#c5b05e;--r:16px;--r-sm:9px;--lift:0 1px 0 #ffffff05;--lift2:0 16px 48px #0006}
body{background:var(--bg);color:var(--ink);font-size:15px}
#app{max-width:1800px;padding:24px 32px 40px}
.panel,.ui-selected,.ui-master-list,.ui-compare,.pc-workspace,.exact-lobby,.shop-preview-right{background-color:var(--panel);border-color:var(--line);border-radius:var(--r);box-shadow:none}
.mainpanel{background:transparent;border:0;box-shadow:none}
.mainpanel>.panel-b{padding:0}
.mainhead{padding:12px 0 24px;border:0;background:transparent}
.mainhead h3{font-size:26px;font-weight:700}
.mainhead .uiico{width:28px;height:28px}
.panel-h{background:transparent;border-color:var(--line);padding:16px 20px}
.panel-b{padding:20px}
.btn,.stab,.pc-section-tabs button,.ui-filter-btn{border-radius:9px;min-height:36px;padding:8px 13px;background:#202124;border-color:#37383b;color:var(--ink);font-size:13px}
.btn.primary,.btn.go,.subtabs .stab.on,.pc-section-tabs .primary{background:var(--amber);color:#11120f;border-color:var(--amber);font-weight:700;box-shadow:none}
.btn:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #d8c36d;outline-offset:3px}
input,select,textarea{background:#101113;color:var(--ink);border-color:var(--line2);border-radius:8px;font-size:14px}
.subtabs,.pc-section-tabs{gap:8px;padding:8px 0 18px;overflow-x:auto;flex-wrap:nowrap}
.subtabs .stab,.pc-section-tabs button{white-space:nowrap;flex-shrink:0}
.dim,.hint{color:var(--ink2)}

/* UI remake P1 — shared design tokens and primitives. */
:root{--bg:#0d0e10;--p1:#15171b;--p2:#1b1e23;--p3:#23272e;--gd:#d4b25a;--gn:#6fc6a1;--rd:#d9605a;--bl:#6fa8d6;--line:#2c3139;--ink:#e9e6df;--ink2:#a3a8b0;--ink3:#858b95;--amber:var(--gd);--amber2:#a8893c}
.pn{min-width:0;min-height:0;background:var(--p1);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.tile{min-width:0;background:var(--p2);border:1px solid var(--line);border-radius:9px;padding:10px;color:var(--ink)}
.li{min-width:0;display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid transparent;border-radius:8px;background:var(--p2);color:var(--ink)}
.kv{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}.kv:last-child{border-bottom:0}.kv>:first-child{color:var(--ink2)}
.prog{height:7px;overflow:hidden;border-radius:999px;background:var(--p3)}.prog>i{display:block;height:100%;background:var(--gd)}
.pill{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--p2);color:var(--ink2);font-size:12px}.pill b{color:var(--ink);font-weight:700}
.seg{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--p2)}.seg>*{flex:1;min-width:0;border:0;border-radius:6px;background:transparent;color:var(--ink2);padding:7px 10px}.seg>.on,.seg>[aria-selected="true"]{background:var(--p3);color:var(--gd);font-weight:700}
.cmp{width:100%;border-collapse:collapse;font-size:12px}.cmp th,.cmp td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left}.cmp th{color:var(--ink2);font-weight:500}.cmp td:last-child,.cmp th:last-child{text-align:right}
.partner{border:1px solid var(--line);border-radius:10px;background:linear-gradient(145deg,#17191d,#101113);padding:12px 14px;color:var(--ink);line-height:1.55}.partner small{display:block;margin-bottom:5px;color:var(--ink2)}
.uiico-picture{display:contents}

/* P1 desktop frame; mobile stays on its original layout through 900px. */
@media(min-width:901px){
 html,body{min-width:0;width:100%;height:100%;overflow:hidden} body:has(.layout.hubB){background:var(--bg);overflow:hidden}
 body:has(.layout.hubB) #app{width:100vw;height:100vh;max-width:none;margin:0;padding:0;overflow:hidden}
 body:has(.layout.hubB) .topbar.hud{position:fixed;z-index:42;left:76px;right:0;top:0;height:64px;margin:0;padding:0 22px;border-bottom:1px solid var(--line);background:var(--p1)}
 body:has(.layout.hubB) .layout.hubB{position:fixed;left:76px;right:0;top:64px;bottom:0;height:auto;min-height:0;margin:0;padding:0;overflow:hidden}
 body:has(.layout.hubB) .layout.hubB>.col.main{display:block;width:100%;height:100%;max-width:none;min-height:0;margin:0;padding:14px 20px 18px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 body:has(.layout.hubB) .layout.hubB .mainpanel{min-height:calc(100% - 1px);background:transparent;border:0;border-radius:0;box-shadow:none}
 body:has(.layout.hubB) .layout.hubB .mainhead{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:12px;min-height:62px;margin:0 0 10px;padding:8px 10px;border:0;border-bottom:1px solid var(--line);background:rgba(13,14,16,.96);backdrop-filter:blur(10px)}
 body:has(.layout.hubB) .mainhead-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.layout.hubB .mainhead-copy h3{font-size:21px;line-height:1.2}.layout.hubB .mainhead-copy small{color:var(--ink2);font-size:11.5px}
 body:has(.layout.hubB) .mainhead-summary{margin-left:auto;display:flex;gap:8px;min-width:0}
 body:has(.layout.hubB) .layout.hubB>.col.main>.panel>.panel-b{padding:8px 0 18px}
 body:has(.layout.hubB) .rail.dock.desktop-rail{position:fixed;z-index:60;left:0;right:auto;top:0;bottom:0;width:76px;height:100vh;max-height:none;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:5px;padding:10px 8px;border:0;border-right:1px solid var(--line);border-radius:0;background:#0a0b0c;overflow:visible;backdrop-filter:none}
 body:has(.layout.hubB) .desktop-rail .railbrand{height:24px;margin:0 0 5px;color:var(--gd);font-size:13px;font-weight:900;letter-spacing:.12em}
 body:has(.layout.hubB) .desktop-rail .dock-items{display:flex;flex:1;min-height:0;width:100%;flex-direction:column;align-items:center;gap:4px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
 body:has(.layout.hubB) .desktop-rail .dk{position:relative;flex:none;width:58px;height:52px;margin:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--ink2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 2px;font-size:10px}
 body:has(.layout.hubB) .desktop-rail .dk .uiico{width:24px;height:24px;object-fit:contain;opacity:.72;filter:grayscale(.75)} body:has(.layout.hubB) .desktop-rail .dk .rl{font-style:normal;font-size:10px;line-height:1.2;white-space:nowrap}
 body:has(.layout.hubB) .desktop-rail .dk.on{background:transparent;color:var(--ink);box-shadow:inset 3px 0 0 var(--gd)} body:has(.layout.hubB) .desktop-rail .dk.on .uiico{opacity:1;filter:none}
 body:has(.layout.hubB) .desktop-rail .dk.go{width:56px;height:56px;margin:0 0 8px;border-radius:13px;background:linear-gradient(155deg,#e6c56c,#a8893c);color:#17130a;font-weight:900;box-shadow:0 5px 16px #d4b25a30}
 body:has(.layout.hubB) .desktop-rail .dk.go .uiico{width:23px;height:23px;filter:brightness(.25);opacity:1} body:has(.layout.hubB) .desktop-rail .dk.go .rl{font-size:11px;font-weight:900}
 body:has(.layout.hubB) .desktop-rail .dk.more{flex:none;margin-top:5px;border:1px solid var(--line);background:var(--p1)} body:has(.layout.hubB) .desktop-rail .dock-toggle{display:none}
 body:has(.layout.hubB) .desktop-rail .dockmore{position:absolute;left:calc(100% + 8px);right:auto;bottom:10px;top:auto;max-height:calc(100vh - 20px);overflow:auto;grid-template-columns:repeat(4,minmax(68px,80px));gap:6px;padding:10px;background:var(--p1);border:1px solid var(--gd2);border-radius:12px;box-shadow:0 14px 36px #0009}
 body:has(.layout.hubB) .desktop-rail .dmg{grid-column:1/-1;display:block;min-width:0;padding:5px 0;border:0}.desktop-rail .dmgl{display:block;padding:2px 4px 7px;color:var(--ink2);font-size:11px}
 body:has(.layout.hubB) .desktop-rail .dmtabs{display:grid;grid-template-columns:repeat(4,minmax(68px,80px));gap:5px}.desktop-rail .dmtabs .dk{width:auto;height:66px;border:1px solid var(--line);border-radius:8px;background:var(--p2)}
 body:has(.layout.hubB) .desktop-rail .dmtabs .dk.on{border-color:var(--gd);box-shadow:inset 3px 0 var(--gd)} body:has(.layout.hubB) .desktop-rail .dot{position:absolute;top:5px;right:7px;left:auto}
 body:has(.layout.hubB) .col.chat.drawer{top:64px;bottom:0;max-height:none}
}
@media(min-width:901px) and (max-width:1440px){body:has(.layout.hubB) .layout.hubB>.col.main{padding-left:14px;padding-right:14px}.topbar.hud .hudop img{width:38px;height:38px}.topbar.hud .stat-strip{gap:4px}.topbar.hud .sfield{padding-left:6px;padding-right:6px}}
.tag,.chip{border-radius:6px}
.ui-master-detail{gap:20px}
.ui-master-list{padding:14px}
.ui-selected,.ui-compare{padding:22px}
.ui-list-card{border-radius:10px;padding:14px;background:#1b1c1f;border-color:var(--line);margin-bottom:8px}
.ui-list-card.selected,.ui-list-card.on,.ui-list-card.open{background:#25241b;border-color:var(--amber)}
table.grid{border-spacing:0;background:var(--panel)}
table.grid th{background:#202124;color:var(--ink2);font-size:12px;padding:12px}
table.grid td{padding:12px;border-color:var(--line)}
details{border-color:var(--line);border-radius:9px}
summary{padding:10px 12px;cursor:pointer;color:var(--ink2)}
.overlay{background:#000b;backdrop-filter:blur(8px)}
.modal{background:#17181a;border:1px solid #5c532f;border-radius:20px;box-shadow:0 28px 100px #0009;padding:24px;max-height:calc(100dvh - 48px);overflow:auto}
.dialog-closebar{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px;color:var(--ink)}
.empty{padding:28px 20px;background:#151618;border:1px dashed var(--line2);border-radius:12px;color:var(--ink2)}
.topbar:is(.hud-layout-one,.hv2),.topbar.hv2,.topbar{background:#121315;border:1px solid var(--line);border-radius:16px;margin:0 0 24px;padding:16px;box-shadow:none}
.topbar:is(.hud-layout-one,.hv2) .hudop,.topbar:is(.hud-layout-one,.hv2) .exact-head-vitals,.topbar:is(.hud-layout-one,.hv2) .stat-strip,.topbar:is(.hud-layout-one,.hv2) .sfield{background:transparent;border-color:var(--line)}
#bottomDock .dk .uiico{filter:none;width:22px;height:22px;min-width:22px;object-fit:contain;flex:0 0 22px}
#bottomDock .dockmore .uiico{width:22px;height:22px;object-fit:contain;flex:0 0 22px}
.dockmore .dmtabs{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:6px}
.dockmore .dk{display:flex;align-items:center;gap:8px;min-width:0;min-height:40px;padding:8px;font-size:13px}
.dockmore .dk .rl{font-style:normal;white-space:normal;overflow-wrap:anywhere}
.dockmore .dmbtns{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.dockmore .dmbtns .iconbtn{min-width:0;white-space:normal}
.c-home .ui-home-recommend-list{height:auto;min-height:0}
.c-home .ui-home-recommend .htile{flex-shrink:0;height:auto;min-height:78px;overflow:visible;grid-template-rows:auto auto auto}
.c-home .ui-home-recommend .htile .tt{grid-row:1}
.c-home .ui-home-recommend .htile .tv{grid-row:2;min-width:0;white-space:normal;overflow-wrap:anywhere}
.c-home .ui-home-recommend .htile .ts{grid-row:3;display:block;overflow:visible;white-space:normal;-webkit-line-clamp:unset}
@media(min-width:901px){
 .subtabs .stab,.pc-section-tabs button,.gear-tabs .btn{min-height:30px;padding:5px 10px;font-size:12px}
}
.dock .dk{background:transparent;border:0;border-radius:10px;color:var(--ink2);box-shadow:none}
.dock .dk.on{background:#b7a0441c;color:#d4bd60;border:1px solid #b7a04448}
.dock .dk.go{background:var(--amber);color:#10110d}
.dock .dk:hover{background:#242529}
.dock .dk.go:hover{background:#c8b15a}
.dock .dk .rl{font-style:normal;font-size:14px;line-height:1.3}
.dockmore{background:#191a1d;border:1px solid var(--line2);border-radius:14px;box-shadow:var(--lift2)}
@media(min-width:901px){
 body:has(#bottomDock) #app{margin-left:240px;margin-right:auto;width:calc(100% - 240px);max-width:1680px}
 #bottomDock.dock{position:fixed;inset:0 auto 0 0;width:240px;height:100dvh;max-width:none;transform:none;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:24px 16px;background:#101113;border:0;border-right:1px solid var(--line);gap:8px;z-index:45;overflow:visible}
 #bottomDock::before{content:'BLACKLINE';display:block;padding:6px 12px 24px;font-size:22px;font-weight:800;letter-spacing:.08em;color:#d4bd60}
 #bottomDock .dock-toggle{display:none}
 #bottomDock .dock-items{display:flex;flex-direction:column;gap:5px;flex:1;overflow-y:auto;scrollbar-width:thin;width:100%;padding:0}
 #bottomDock .dk{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:38px;margin:0;padding:7px 10px;flex:none}
 #bottomDock .dk .rl{display:block}
 #bottomDock .more{position:relative;inset:auto;margin-top:auto;flex:none}
 #bottomDock .dots{font-size:24px;width:24px;text-align:center}
 #bottomDock .dot{right:10px;left:auto;top:12px}
 #bottomDock .dockmore{position:absolute;left:248px;right:auto;bottom:16px;width:min(580px,calc(100vw - 280px));max-height:85dvh;overflow:auto}
 .hubB{padding-bottom:0}
 .layout.drawopen{padding-right:0}
 .drawer{z-index:55}
 .topbar:is(.hud-layout-one,.hv2){grid-template-columns:minmax(240px,1fr) minmax(240px,1fr) minmax(280px,1fr);min-height:110px}
}
@media(max-width:900px){
 #app{max-width:100%;padding:12px 12px calc(90px + env(safe-area-inset-bottom))}
 .mainhead{padding:12px 0 16px}.mainhead h3{font-size:22px}
 .panel-b,.ui-selected,.ui-compare{padding:15px}
 .ui-master-detail{gap:12px;grid-template-columns:minmax(0,1fr)}
 .ui-master-detail>*{min-width:0}
 .topbar:is(.hud-layout-one,.hv2),.topbar.hv2,.topbar{position:relative;top:auto;margin-bottom:16px;padding:12px;border-radius:14px}
 #bottomDock.dock{position:fixed;inset:auto 0 0;transform:none;width:100%;max-width:none;display:flex;align-items:stretch;justify-content:space-around;gap:0;padding:8px 6px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:#111214f5;backdrop-filter:blur(12px);z-index:60}
 #bottomDock .dock-toggle{display:none}
 #bottomDock .dock-items{display:flex;flex:4;gap:0;justify-content:space-around;min-width:0}
 #bottomDock .dk{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:54px;width:auto;height:auto;margin:0;padding:7px 4px}
 #bottomDock .dk .rl{display:block;font-size:11px}
 #bottomDock .more{position:relative;inset:auto;flex:1;width:auto}
 #bottomDock .dots{height:24px;font-size:24px;line-height:24px}
 #bottomDock .dockmore{position:fixed;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:auto;max-height:75dvh;overflow:auto}
 .modal{width:calc(100vw - 24px);max-width:640px;padding:18px;border-radius:16px;max-height:calc(100dvh - 24px)}
 .btn{min-height:40px}.btn.xs{min-height:32px}
 table.grid td,table.grid th{padding:10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Replace legacy teal presentation surfaces while preserving artwork. */
.pc-page .panel,.review-rebuild .panel,.exact-workspace .panel{background-color:var(--panel);background-image:none;border:1px solid var(--line);border-radius:16px}
.pc-page .panel-h,.review-rebuild .panel-h{background:transparent;border-bottom:1px solid var(--line)}
.pc-page .ui-home-stat,.pc-page .ui-list-card,.pc-page .ui-preview-stat{background:#1c1d20;border-color:var(--line);border-radius:12px}
.pc-page .ui-home-six{gap:12px;padding:16px}
.pc-page .ui-home-dashboard{gap:20px}
.pc-page .ui-home-status h3,.pc-page .ui-home-recommend h3{font-size:16px}
.pc-page .ui-home-stat b{color:#d4bd60}
.pc-page .hqbub{background:#111214e8;border-color:#b7a04448;border-radius:12px}
.pc-page .ui-home-recommend .htile{background:#1c1d20;border-color:var(--line);border-radius:10px}
.pc-page .ui-home-recommend .htile.hot{border-color:#756628}
.pc-page .ui-home-shortcuts .btn{min-height:48px}
.topbar:is(.hud-layout-one,.hv2) .hudop,.topbar:is(.hud-layout-one,.hv2) .exact-head-vitals,.topbar:is(.hud-layout-one,.hv2) .hud-right .stat-strip,.topbar:is(.hud-layout-one,.hv2) .hud-right .stat-strip .sfield.res,.topbar:is(.hud-layout-one,.hv2) .hud-utilities>.sfield.cr{background:transparent;border:0}
@media(min-width:901px){
 .pc-page .ui-home-dashboard{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)}
 .pc-page .ui-home-hero{min-height:320px}
 .pc-page .ui-home-stat{min-height:100px}
}
@media(max-width:900px){
 .topbar:is(.hud-layout-one,.hv2){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:0}
 .topbar:is(.hud-layout-one,.hv2) .hv-id{grid-column:1;grid-row:1;padding:0;min-height:0;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-id .hv-avatar{width:48px!important;height:48px!important}
 .topbar:is(.hud-layout-one,.hv2) .hv-id .ht>b{font-size:16px}
 .topbar:is(.hud-layout-one,.hv2) .hv-vitals{grid-column:1/-1;grid-row:2;min-height:0;padding:0;display:flex;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .exact-head-vitals{min-height:0;padding:0;width:100%;gap:10px}
 .topbar:is(.hud-layout-one,.hv2) .hrest{min-width:52px;width:52px;min-height:44px;height:44px;padding:5px}
 .topbar:is(.hud-layout-one,.hv2) .hv-res{grid-column:1/-1;grid-row:3;min-height:0;padding:0;border:0;background:transparent;display:flex;gap:14px}
 .topbar:is(.hud-layout-one,.hv2) .hv-res .sfield.res{display:flex;flex-direction:row;gap:5px;min-height:28px;padding:0;flex:1;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-res .sfield.res img{width:20px!important;height:20px!important}
 .topbar:is(.hud-layout-one,.hv2) .hv-res .sfield.res .v{font-size:12px}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy{grid-column:2;grid-row:1;min-height:0;padding:0;gap:3px;align-items:flex-end;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy>.sfield.cr{padding:0;min-height:0;border:0;background:transparent}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy>.sfield.cr .v{font-size:16px}
 .topbar:is(.hud-layout-one,.hv2) .hv-economy .topbtns .btn{min-height:26px;padding:3px 6px;font-size:10px}
}
/* Final header uses hv2 markup, separate from the older hud classes. */
.topbar.hv2{background:#121315;border:1px solid var(--line);border-radius:16px;font-family:var(--f-ui)}
.hv2 .hv-id,.hv2 .hv-vitals,.hv2 .hv-resource,.hv2 .hv-link{background:none;box-shadow:none;border-color:var(--line)}
@media(min-width:901px){
 .topbar.hv2{grid-template-columns:minmax(240px,1.1fr) minmax(260px,1.2fr) minmax(230px,1fr) minmax(140px,.6fr);min-height:110px!important}
 .topbar.hv2 .hv-avatar{width:60px;height:60px;min-width:60px}
 .topbar.hv2 .hv-name{font-size:18px}
 .topbar.hv2 .hv-id,.topbar.hv2 .hv-vitals{padding:10px;border:0}
 .topbar.hv2 .hv-resource{min-height:70px;border:0}
 .topbar.hv2 .hv-resource img{width:28px;height:28px}
 .topbar.hv2 .hv-credit{background:none;border:0}
}
@media(max-width:900px){
 .topbar.hv2{grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important;padding:12px!important;gap:10px!important}
 .topbar.hv2 .hv-id{grid-column:1;grid-row:1;gap:8px;width:auto;min-width:0;padding:0;display:flex;align-items:center}
 .topbar.hv2 .hv-avatar{width:42px!important;height:42px!important;min-width:42px;flex:none}
 .topbar.hv2 .hv-info{gap:3px;min-width:0;flex:1}
 .topbar.hv2 .hv-name{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .topbar.hv2 .hv-meta{font-size:10px;white-space:nowrap}
 .topbar.hv2 .hv-rank{display:none}
 .topbar.hv2 .hv-title{display:none}
 .topbar.hv2 .hv-economy{grid-column:2;grid-row:1;display:flex;flex-direction:column;width:auto;gap:4px;padding:0}
 .topbar.hv2 .hv-credit{min-height:0;padding:0;border:0;background:none}
 .topbar.hv2 .hv-credit .v{font-size:16px}
 .topbar.hv2 .hv-links{display:flex;gap:5px}
 .topbar.hv2 .hv-link{min-height:24px;height:auto;padding:3px 5px;font-size:10px}
 .topbar.hv2 .hv-vitals{grid-column:1/-1;grid-row:2;display:flex;width:100%;min-height:0;padding:0;gap:10px}
 .topbar.hv2 .hv-bars{flex:1;width:auto;gap:7px}
 .topbar.hv2 .hv-meter{padding-left:20px;gap:3px}
 .topbar.hv2 .hv-meter::before{width:14px;height:16px}
 .topbar.hv2 .hv-label{font-size:10px;line-height:14px}
 .topbar.hv2 .hv-rest{width:52px;min-width:52px;min-height:46px;padding:5px;flex:none}
 .topbar.hv2 .hv-bed{width:20px;height:16px}
 .topbar.hv2 .hv-rest-label{font-size:10px}
 .topbar.hv2 .hv-res{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:8px;min-height:0;padding:0}
 .topbar.hv2 .hv-resource{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;padding:4px;min-height:28px;border:0}
 .topbar.hv2 .hv-resource img{width:20px!important;height:20px!important;max-width:20px;max-height:20px}
 .topbar.hv2 .hv-resource .v{font-size:12px;line-height:16px}
}
.pc-page .gear-tabs{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding:0 0 14px;margin-bottom:16px;scrollbar-width:thin}
.pc-page .gear-tabs .btn{flex:none;width:auto;white-space:nowrap;border-radius:8px}
.pc-page .gear-main,.pc-page .gear-operator,.pc-page .gear-summary{background:#141517;border-color:var(--line);border-radius:16px}
.pc-page .gear-columns{gap:20px}
.pc-page .gear-loadout-card{background:#1b1c1f;border-color:var(--line);border-radius:12px}
@media(max-width:900px){.pc-page .gear-columns{gap:12px}.pc-page .gear-tabs{max-width:100%}}
/* Desktop shell: wide rail and content offsets must share one width. */
@media(min-width:901px){
 body:has(.layout.hubB){--desktop-rail-width:240px}
 body:has(.layout.hubB) #app{margin:0;width:100vw;max-width:none}
 body:has(.layout.hubB) .topbar.hud{left:var(--desktop-rail-width);height:110px;min-height:0;max-height:110px;border-radius:0;padding:10px 20px;overflow:hidden}
 body:has(.layout.hubB) .layout.hubB{left:var(--desktop-rail-width);top:110px}
 body:has(.layout.hubB) .rail.dock.desktop-rail{width:var(--desktop-rail-width)}
 body:has(.layout.hubB) .layout.hubB>.col.main{padding:12px 18px;overflow:auto}
}
@media(min-width:901px){
 body:has(.layout.hubB) .topbar.hud{height:110px!important;min-height:110px!important;max-height:110px!important}
 .pc-page.c-home .hqban.ui-home-urgent-banner{display:flex!important}
}
/* Keep the title below the HUD, including its padding and border. */
@media(min-width:901px){
 body:has(.layout.hubB) .topbar.hud{box-sizing:border-box!important}
}
/* HUD variants are rebuilt after the hub renderer; target the shared class. */
@media(min-width:901px){
 body:has(.layout.hubB) .topbar{position:fixed!important;left:240px!important;right:0!important;top:0!important;margin:0!important;width:auto!important;height:110px!important;min-height:110px!important;max-height:110px!important;box-sizing:border-box!important;border-radius:0!important;z-index:42;overflow:hidden}
 .pc-page.c-home .hqban.ui-home-urgent-banner{background-image:linear-gradient(90deg,#0d0e10cc,#0d0e1040),var(--hb)!important;background-repeat:no-repeat!important;background-size:cover!important;box-sizing:border-box}
}
/* Preserve all HUD controls instead of clipping the legacy HUD content. */
@media(min-width:901px){
 body:has(.layout.hubB) .topbar{height:144px!important;min-height:144px!important;max-height:144px!important;overflow:visible}
 body:has(.layout.hubB) .layout.hubB{top:144px}
 .c-bond .blist{max-height:calc(100dvh - 379px)}
 .c-bond .bstage-separated{height:calc(100dvh - 379px)}
 .c-contracts .exact-contract-list,.c-contracts .exact-contract-detail{max-height:calc(100dvh - 464px)}
}
/* The old review footer reserved 90px even when actions are panel-local. */
@media(min-width:901px){
 .c-screen.review-rebuild{padding-bottom:0!important}
}
@media(min-width:901px){.c-screen{padding-bottom:0!important}}
@media(min-width:901px){
 .c-inf .feature-art.full-banner{height:160px;max-height:160px;aspect-ratio:auto;flex:none}
 .c-inf .feature-art.full-banner>img{width:100%;height:100%;object-fit:cover}
}
/* Desktop s01-s25 title bar. All operator actions remain in the status disclosure. */
@media(min-width:901px){
 body:has(.layout.hubB) .topbar.desktop-compact{height:64px!important;min-height:64px!important;max-height:64px!important;display:flex;align-items:center;gap:12px;padding:8px 18px!important;background:var(--p1);border-bottom:1px solid var(--line);overflow:visible}
 body:has(.topbar.desktop-compact) .layout.hubB{top:64px}
 .desktop-tab-title{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.desktop-tab-title .uiico{width:28px;height:28px}.desktop-tab-title b{display:block;font-size:21px;line-height:1.2}.desktop-tab-title small{display:block;font-size:11px;color:var(--ink2);margin-top:3px}
 .desktop-summary{display:flex;gap:8px;flex:none}.desktop-compact .topbtns{display:flex;gap:6px;margin:0}.desktop-compact .iconbtn{min-height:36px;min-width:48px;padding:6px;display:flex;align-items:center;gap:5px}.desktop-compact .iconbtn img,.desktop-compact .iconbtn svg{width:18px;height:18px}.desktop-compact .iconbtn i{font-size:12px}
 .desktop-operator-status{position:relative;flex:none;border:1px solid var(--line);border-radius:8px;background:var(--p2);margin:0}.desktop-operator-status>summary{padding:8px 10px;font-size:12px;cursor:pointer;white-space:nowrap}.desktop-operator-body{position:absolute;right:0;top:calc(100% + 8px);width:480px;max-width:calc(100vw - 270px);padding:14px;background:var(--p1);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #0008;z-index:70}.desktop-operator-body .hudop{width:100%;min-width:0}.desktop-operator-body .stat-strip{margin-top:12px;display:flex;gap:12px;flex-wrap:wrap}.desktop-operator-body .sfield{flex:1}.desktop-operator-body .sfield img{width:28px;height:28px;object-fit:contain}
 body:has(.topbar.desktop-compact) .mainhead-copy,body:has(.topbar.desktop-compact) .mainhead-summary,body:has(.topbar.desktop-compact) .mainhead>.uiico{display:none}
 body:has(.topbar.desktop-compact) .mainhead:not(:has(button)){display:none!important}
 body:has(.topbar.desktop-compact) .mainhead:has(button){min-height:0!important;padding:4px 0!important;margin:0 0 8px!important}
 .desktop-rail .railbrand{display:none!important}
}
@media(min-width:901px){.c-home .ui-home-partner-empty{align-items:center;justify-content:center;text-align:center;padding:24px;gap:12px}.c-home .ui-home-partner-empty>img{flex:none;max-width:110px;max-height:140px;height:140px;object-fit:contain;opacity:.7}.c-home .ui-home-partner-empty h3,.c-home .ui-home-partner-empty p{margin:0}.c-home .ui-home-partner-empty .btn{width:100%;max-width:240px}}
@media(min-width:901px){
 .c-career .feature-art.full-banner{height:160px;max-height:160px;aspect-ratio:auto}
 .c-career .feature-art.full-banner>img{width:100%;height:100%;object-fit:cover}
 .c-front .exact-faction-cards{padding-right:6px}
 .c-career .pc-section{box-sizing:border-box}
}
/* Keep desktop columns at 1280 as well as wide screens. */
@media(min-width:901px){
 .pc-page.c-manual .mgrid{grid-template-columns:minmax(160px,.55fr) minmax(0,2fr) minmax(160px,.55fr)!important;align-items:start;gap:14px}
 .pc-page.c-manual .mnav,.pc-page.c-manual .mbody,.pc-page.c-manual .ui-manual-links{min-width:0;grid-row:1}
}
@media(min-width:901px) and (max-width:1399px){
 .pc-page.c-hideout .ui-hideout-workspace{grid-template-columns:minmax(0,1fr) 230px!important;align-items:start}
 .pc-page.c-hideout .ui-master-detail{grid-template-columns:minmax(170px,.75fr) minmax(0,1.25fr)!important;align-items:start}
 .pc-page.c-goals .ui-goals-layout{grid-template-columns:minmax(0,1fr) 250px!important;align-items:start}
 .pc-page.c-intel .ui-summary-layout{grid-template-columns:minmax(0,1fr) 250px!important;align-items:start}
 .pc-page.c-inf .ui-inf-recruit{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 230px!important;align-items:start}
 .pc-page.c-front .exact-front-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)!important;align-items:start}
}
/* Remove legacy full-row spans only in desktop detail layouts. */
@media(min-width:901px){
 body:has(.topbar.desktop-compact) .mainpanel{margin-bottom:0!important;box-sizing:border-box}
 .pc-page.c-inf .ui-inf-recruit>.ui-compare{grid-column:auto!important;grid-row:1!important}
}
@media(min-width:901px) and (max-width:1399px){
 .pc-page.c-intel .exact-intel-grid{grid-template-columns:minmax(180px,.6fr) minmax(0,1fr) minmax(200px,.7fr)!important;gap:14px;align-items:start}
 .pc-page.c-intel .exact-intel-grid>.exact-intel-operator{grid-column:auto!important;grid-row:1!important}
 .pc-page.c-hire .ui-three{grid-template-columns:minmax(200px,.7fr) minmax(0,1.1fr) minmax(200px,.7fr)!important;gap:12px;align-items:start}
 .pc-page.c-hire .ui-three>.ui-compare{grid-column:auto!important;grid-row:1!important;display:block!important}
}
/* Desktop mockup rail: 76px, native actions and unread marks preserved. */
@media(min-width:901px){
 body:has(.layout.hubB){--desktop-rail-width:76px}
 body:has(.layout.hubB) .topbar{left:76px!important}
 #bottomDock.dock.desktop-rail{width:76px;padding:12px 8px;align-items:center;gap:6px}
 #bottomDock.desktop-rail::before{display:none}
 #bottomDock.desktop-rail .railbrand{font-size:13px;padding:4px 0 10px;letter-spacing:.1em}
 #bottomDock.desktop-rail .dock-items{align-items:center;gap:4px}
 #bottomDock.desktop-rail .dk{flex-direction:column;justify-content:center;gap:3px;width:56px;min-height:52px;padding:6px 3px;border-radius:12px;font-size:10.5px;position:relative}
 #bottomDock.desktop-rail .dk .rl{font-size:10.5px;line-height:1.3}
 #bottomDock.desktop-rail .dk img,#bottomDock.desktop-rail .dk svg{width:24px;height:24px;flex:none}
 #bottomDock.desktop-rail .dk.on:not(.go){background:transparent!important;box-shadow:none!important;border-color:transparent!important;color:var(--gd)}
 #bottomDock.desktop-rail .dk.on:not(.go)::before{content:'';position:absolute;left:-9px;top:9px;bottom:9px;width:3px;background:var(--gd);border-radius:0 3px 3px 0}
 #bottomDock.desktop-rail .dk.go{min-height:56px;margin-bottom:10px;background:linear-gradient(160deg,#e6c56c,#a8893c)!important;color:#16130a!important}
 #bottomDock.desktop-rail .dot{right:3px;top:4px}
 #bottomDock.desktop-rail .dockmore{left:84px;width:min(580px,calc(100vw - 100px))}
}
:root{--p1:#15171b;--p2:#1b1e23;--p3:#23272e;--gd:#d4b25a;--gn:#6fc6a1;--rd:#d9605a;--bl:#6fa8d6}

}
/* DESKTOP-ONLY-END */
