/* 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%}}
