body.hangar-active{margin:0!important;overflow:hidden!important;background:#101714;color:#e7ece3}
body.hangar-active>.masthead,body.hangar-active>footer,body.hangar-active .page-heading,body.hangar-active #player-nav{display:none!important}
body.hangar-active #main,body.hangar-active #portal-shell,body.hangar-active #view{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
body.hangar-active #notice{position:fixed;bottom:28px;left:16px;max-width:calc(100vw - 32px);z-index:150;pointer-events:none}
.hk-shell,.hk-shell *, .hk-dialog,.hk-dialog *{box-sizing:border-box}
.hk-shell{--hk-gold:#dec18a;--hk-line:#465243;--hk-muted:#afbdac;position:fixed;inset:0;z-index:25;display:grid;grid-template-rows:56px minmax(0,1fr) 54px 66px 104px 28px;gap:0;min-width:0;background:#131d18;color:#eef0e6;font:14px/1.4 system-ui,sans-serif}
.hk-shell h1,.hk-shell h2,.hk-shell p,.hk-shell dl,.hk-shell header,.hk-shell footer{padding:0;margin:0;max-width:none;min-height:0;border:0}
.hk-shell h1{font-size:clamp(22px,2.2vw,36px);font-weight:720;line-height:1.12}.hk-shell h2{font-size:16px;font-weight:650;line-height:1.25}
.hk-shell button,.hk-shell a,.hk-dialog button,.hk-dialog a{font:inherit;cursor:pointer;letter-spacing:normal;text-transform:none;text-decoration:none;transition:background .13s,border-color .13s}
.hk-shell button,.hk-dialog button{border:1px solid #56604f;background:#273328;border-radius:4px;color:#edf0e5;padding:7px 12px;min-height:34px;line-height:1.2;white-space:normal;box-shadow:none}
.hk-shell button:hover:not(:disabled),.hk-dialog button:hover:not(:disabled){background:#3b4935;border-color:#9eaa82}.hk-shell :disabled,.hk-dialog :disabled{opacity:.48;cursor:default}.hk-shell button:focus-visible,.hk-shell a:focus-visible,.hk-shell input:focus-visible,.hk-shell select:focus-visible{outline:2px solid var(--hk-gold);outline-offset:2px}
.hk-shell a{color:#dfc58f}.hk-shell input,.hk-shell select,.hk-dialog input{font:inherit;background:#152019;color:#f0f2e8;border:1px solid #64705c;border-radius:3px;min-height:32px;padding:5px 9px;min-width:0;max-width:100%;margin:0;width:auto}
.hk-shell input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#dec18a;flex-shrink:0}.hk-shell input[type=number]{width:72px;text-align:center}
.hk-top{display:flex;align-items:center;gap:20px;padding:0 20px!important;border-bottom:1px solid var(--hk-line)!important;background:#101712}.hk-brand{font-size:23px!important;font-weight:800;white-space:nowrap;color:#f2efe0!important}.hk-nav{display:flex;align-items:center;gap:7px;flex:1;white-space:nowrap}.hk-nav button,.hk-nav a{padding:7px 12px;min-height:32px;font-size:13px}.hk-nav button{background:transparent;border-color:transparent}.hk-nav button.active{background:#3c4530;border-color:#bba776;color:#fff2c7}.hk-wallet{font-size:12px;color:#e3d4af;white-space:nowrap}
.hk-workspace{display:grid;grid-template-columns:minmax(320px,43%) minmax(0,1fr);min-height:0;overflow:hidden}.hk-stage{position:relative;min-width:0;display:flex;flex-direction:column;padding:20px 26px 12px;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#37443580,transparent 70%),linear-gradient(130deg,#1d2923,#111917);border-right:1px solid var(--hk-line)}
.hk-stage:before{content:'';position:absolute;inset:30% -20% -15%;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 64px,#d9e4c908 65px 66px),repeating-linear-gradient(90deg,transparent 0 95px,#d9e4c908 96px 97px);transform:perspective(280px) rotateX(45deg);transform-origin:50% 100%}.hk-stage>*{position:relative}.hk-kicker{color:#cabb91;font-size:11px;text-transform:uppercase;letter-spacing:1.2px;margin-bottom:6px}.hk-role{font-size:12px;color:var(--hk-muted);margin-top:5px!important}.hk-tank-image{display:block;width:100%;min-height:0;flex:1;object-fit:contain;filter:drop-shadow(0 16px 12px #0008);margin:4px 0}.hk-quick-facts{display:flex;justify-content:space-between;gap:12px;padding:4px 0 10px}.hk-quick-facts>div{display:flex;flex-direction:column}.hk-quick-facts strong{font-size:18px}.hk-quick-facts span{color:var(--hk-muted);font-size:11px}.hk-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.hk-slots button{font-size:12px;padding:6px;min-height:38px;background:#253127}
.hk-workshop{min-width:0;min-height:0;display:flex;flex-direction:column;background:#19231c}.hk-tabs{display:flex;flex:none;height:43px;border-bottom:1px solid var(--hk-line);padding:0 12px;gap:2px}.hk-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;flex:1;padding:8px 5px;font-size:13px}.hk-tabs button[aria-selected=true]{border-bottom-color:var(--hk-gold);background:#333f2e;color:#ffe9b9}.hk-panel{padding:12px 20px;min-height:0;flex:1;overflow:hidden;display:flex;flex-direction:column;gap:8px}.hk-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.hk-panel-heading button{font-size:11px;padding:4px 8px;min-height:30px;max-width:180px}.hk-help{font-size:12px;line-height:1.35;color:var(--hk-muted)}
.hk-ammo-table{display:flex;flex-direction:column;gap:0}.hk-ammo-row{display:grid;grid-template-columns:minmax(160px,1fr) 70px 70px 88px;align-items:center;gap:6px;min-height:42px;border-bottom:1px solid #3e4b3c}.hk-ammo-row strong{font-size:13px;font-weight:600;display:block}.hk-ammo-row small{color:var(--hk-muted);font-size:10px;display:block}.hk-ammo-row>span{text-align:center;font-size:14px}.hk-ammo-head{min-height:25px;border-bottom-color:#798467;color:var(--hk-muted);font-size:11px}.hk-ammo-head>span{font-size:11px}.hk-ammo-head>span:first-child{text-align:left}.hk-mounted{color:#e7cd90;font-weight:650}.hk-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:auto;height:28px;flex:none}.hk-pagination button{min-height:25px;padding:3px 10px;font-size:12px}.hk-pagination span{font-size:11px;color:var(--hk-muted)}
.hk-field{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin:0;font-weight:400;color:#d3dccd;font-size:13px}.hk-field>select{flex:1;max-width:66%}.hk-field>span{flex-shrink:0}.hk-mod-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hk-mod{display:flex;align-items:flex-start;gap:9px;border:1px solid #4a5943;padding:10px;background:#253026;min-height:67px}.hk-mod strong{font-size:13px;display:block}.hk-mod small{font-size:11px;display:block;color:var(--hk-muted);margin-top:3px}.hk-store-link{margin-top:auto;font-size:12px}.hk-support-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hk-support{display:grid;grid-template-columns:20px 1fr;gap:2px 7px;padding:9px;border:1px solid #4e5a43;background:#253026;font-size:13px;min-height:72px}.hk-support input{grid-row:1/4}.hk-support small{grid-column:2;font-size:11px;color:var(--hk-muted)}.hk-inline-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;font-size:12px}.hk-stats{display:grid;grid-template-columns:1fr 1.4fr;gap:0;font-size:13px}.hk-stats dt,.hk-stats dd{padding:7px 0;border-bottom:1px solid #374535;margin:0}.hk-stats dt{color:var(--hk-muted)}.hk-stats dd{text-align:right}.hk-warehouse{display:flex;flex-direction:column}.hk-warehouse>div{display:flex;gap:14px;align-items:center;justify-content:space-between;min-height:39px;border-bottom:1px solid #45513e;font-size:12px}
.hk-supplies{display:flex;align-items:center;gap:20px;padding:6px 20px;background:#263124;border-top:1px solid #4b5845;border-bottom:1px solid #4b5845}.hk-supplies>div{flex:1;display:flex;align-items:center;gap:16px}.hk-supplies>div strong{font-size:13px}.hk-supply-summary{font-size:12px;color:#d0d8c3}.hk-refill{min-width:195px;border-color:#b2a77d!important}.hk-supplies .hk-field{flex-direction:row-reverse;font-size:12px;gap:8px}
.hk-battle{display:flex;align-items:center;gap:20px;padding:8px 20px;background:#111b15}.hk-battle .hk-field{gap:9px}.hk-battle .hk-field>select{max-width:none;min-width:175px}.hk-battle-status{font-size:12px;line-height:1.4;color:#bac7b2;flex:1}.hk-shell button.hk-primary,.hk-dialog button.hk-primary{background:#ddbd7b;color:#182016;font-weight:750;border-color:#f0d396;box-shadow:inset 0 1px #fff4;min-height:40px}.hk-shell button.hk-primary:hover:not(:disabled),.hk-dialog button.hk-primary:hover:not(:disabled){background:#ecd199}.hk-battle .hk-primary{width:220px;height:46px;font-size:17px}.hk-party-button{white-space:nowrap!important}
.hk-roster{display:flex;gap:8px;align-items:stretch;padding:8px 20px;border-top:1px solid #45523e;background:#19231b;overflow:hidden}.hk-shell .garage-tank.hk-tank-card{position:relative;width:185px;flex:0 1 185px;min-width:0;min-height:0;display:grid;grid-template-columns:80px 1fr;grid-template-rows:1fr 20px;align-items:center;gap:1px 7px;text-align:left;white-space:normal;border:1px solid #53614a;padding:5px 8px;background:#263126;border-radius:3px;color:#eef0e6}.hk-shell .hk-tank-card img{grid-row:1/3;max-width:80px;width:80px;height:62px;object-fit:contain;background:transparent}.hk-shell .hk-tank-card strong{margin:0;font-size:11px;line-height:1.2}.hk-shell .hk-tank-card small{font-size:10px;margin:0;color:#b8c8ad}.hk-shell .hk-tank-card.active{border:2px solid #dfc080;background:#374330;padding:4px 7px}.hk-roster-arrow{width:26px;min-width:26px;padding:4px!important;font-size:25px!important}.hk-roster-arrow:last-child{margin-left:auto}
.hk-status{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:0 20px!important;background:#0d1510;color:#b0bfa9;font-size:11px}.hk-status>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hk-resources{flex:none}.hk-resources summary{cursor:pointer;color:#d9c794;font-size:11px;white-space:nowrap}.hk-resources[open]>div{position:fixed;z-index:180;bottom:31px;right:20px;width:min(470px,90vw);background:#1b271e;padding:18px;border:1px solid #879369;box-shadow:0 12px 40px #0009}.hk-resources .game-preload{margin:0}.hk-resources progress{width:100%}
.hk-dialog{position:fixed;inset:0;width:min(630px,calc(100vw - 32px));max-height:calc(100dvh - 36px);overflow:auto;background:#1b271f;color:#edf0e6;border:1px solid #b3a277;border-radius:6px;padding:24px;font:14px/1.5 system-ui,sans-serif;box-shadow:0 24px 100px #000a}.hk-dialog::backdrop{background:#060c09c9}.hk-dialog h2{font-size:22px;margin:0 0 18px}.hk-dialog p{margin:10px 0 22px}.hk-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.hk-dialog .hk-field{margin:12px 0}.hk-dialog .hk-field input{flex:1;width:100%}.hk-menu-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.hk-menu-links a{color:#e7d4aa;background:#303c2c;padding:10px;border:1px solid #56634a}.hk-party-members{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.hk-party-members>div{padding:7px;border:1px solid #4d5a44;font-size:12px}.hk-party-members .is-ready{border-color:#bad08c;color:#d9edaf}
body.hangar-active #preflight{position:static;padding:0;margin:0;max-width:none;width:100%;max-height:none;border:0;background:transparent;overflow:visible}body.hangar-active #preflight[hidden]{display:none!important}body.hangar-active #preflight[hidden] .hk-shell{display:none!important}body.hangar-active #preflight>.entry-status{position:fixed;z-index:30;bottom:29px;left:20px;display:none}body.hangar-active #battle-loading{z-index:300}
@media(min-width:1600px) and (min-height:850px){.hk-shell{grid-template-rows:64px minmax(0,1fr) 62px 76px 120px 30px}.hk-panel{padding:24px 32px;gap:16px}.hk-ammo-row{min-height:56px}.hk-ammo-row strong{font-size:15px}.hk-ammo-row small{font-size:12px}.hk-panel h2{font-size:21px}.hk-field{min-height:44px;font-size:15px}.hk-support{min-height:92px;padding:16px}.hk-mod{min-height:86px}.hk-stage{padding:30px 40px 20px}.hk-tabs{height:50px}.hk-tabs button{font-size:15px}.hk-quick-facts strong{font-size:25px}}
@media(max-width:1000px){.hk-top{gap:10px;padding:0 12px!important}.hk-nav{gap:2px}.hk-nav a,.hk-nav button{font-size:11px;padding:6px}.hk-wallet{font-size:10px;max-width:190px;white-space:normal}.hk-workspace{grid-template-columns:34% minmax(0,1fr)}.hk-stage{padding:15px}.hk-slots{grid-template-columns:1fr 1fr}.hk-quick-facts{gap:4px}.hk-quick-facts strong{font-size:14px}.hk-quick-facts span{font-size:9px}.hk-panel{padding:10px}.hk-ammo-row{grid-template-columns:minmax(120px,1fr) 45px 50px 70px}.hk-supplies{gap:10px;padding:6px 12px}.hk-supplies>div{display:block}.hk-supply-summary{display:block;font-size:10px}.hk-battle{gap:12px;padding:8px 12px}.hk-battle .hk-primary{width:180px;font-size:15px}.hk-battle .hk-field>select{min-width:145px}.hk-battle-status{font-size:10px}.hk-refill{min-width:150px;font-size:12px!important}}
@media(max-width:700px){.hk-shell{grid-template-rows:48px minmax(0,1fr) 76px 90px 85px 25px}.hk-brand{font-size:18px!important}.hk-wallet{display:none}.hk-nav{justify-content:flex-end}.hk-nav a{display:none}.hk-workspace{display:flex;flex-direction:column}.hk-stage{height:100px;flex-shrink:0;padding:9px 15px;border-right:0;border-bottom:1px solid #465243}.hk-stage h1{font-size:20px;max-width:65%}.hk-kicker{font-size:9px}.hk-role,.hk-slots,.hk-quick-facts{display:none}.hk-tank-image{position:absolute;right:8px;top:7px;width:30%;height:85px;margin:0}.hk-workshop{flex:1}.hk-tabs{height:36px;padding:0}.hk-tabs button{font-size:11px}.hk-panel{gap:6px}.hk-panel h2{font-size:14px}.hk-panel-heading button{font-size:10px;max-width:120px;padding:2px 5px}.hk-ammo-row{min-height:38px;grid-template-columns:minmax(110px,1fr) 44px 50px 66px;gap:2px}.hk-ammo-row strong{font-size:11px}.hk-ammo-row small{font-size:9px}.hk-shell input[type=number]{width:61px}.hk-supplies{display:grid;grid-template-columns:1fr 165px;gap:3px 8px}.hk-supplies>div{grid-column:1}.hk-supplies .hk-field{grid-row:2;grid-column:1;min-height:24px;justify-content:flex-end;font-size:10px}.hk-supplies .hk-refill{grid-column:2;grid-row:1/3}.hk-battle{flex-wrap:wrap;gap:5px 10px;padding:5px 12px}.hk-battle .hk-field{min-height:32px}.hk-battle .hk-field>span{display:none}.hk-battle .hk-field>select{min-width:150px;max-width:170px;font-size:11px}.hk-battle .hk-primary{height:37px;min-height:37px;width:165px;margin-left:auto;font-size:14px}.hk-battle-status{flex-basis:45%;order:2;font-size:10px}.hk-party-button{min-height:30px!important;font-size:11px!important;margin-left:auto}.hk-battle .hk-primary{order:3}.hk-roster{padding:5px 9px;gap:5px}.hk-shell .hk-tank-card img{width:60px;max-width:60px;height:49px}.hk-shell .garage-tank.hk-tank-card{grid-template-columns:60px 1fr}.hk-status{padding:0 9px!important;font-size:9px}.hk-resources summary{font-size:9px}.hk-mod{padding:6px;min-height:55px}.hk-mod strong{font-size:11px}.hk-mod small{font-size:9px}.hk-field{font-size:11px;min-height:30px}.hk-field>select{font-size:11px}.hk-support{min-height:60px;padding:6px}.hk-support strong{font-size:11px}.hk-support small{font-size:9px}.hk-help{font-size:10px}.hk-stats{font-size:11px}.hk-stats dt,.hk-stats dd{padding:4px 0}.hk-party-members{grid-template-columns:1fr}.hk-dialog{padding:16px}}
/* The portal's global main rule also matches this semantic workspace. */
.hk-shell>main.hk-workspace{margin:0!important;padding:0!important;max-width:none!important;width:100%!important;height:100%!important;min-height:0!important;align-self:stretch;overflow:hidden}
.hk-shell>main.hk-workspace>.hk-stage,.hk-shell>main.hk-workspace>.hk-workshop{height:100%;max-height:100%;min-height:0}

@media(max-width:700px){.hk-shell>main.hk-workspace>.hk-stage{height:100px;max-height:100px}.hk-shell>main.hk-workspace>.hk-workshop{height:auto;flex:1;min-height:0}}

.hk-ammo-row{grid-template-columns:minmax(130px,1fr) 60px 60px 128px;min-height:47px}
.hk-amount{display:flex;flex-direction:column;gap:1px;min-width:0;padding:3px 0}
.hk-stepper{display:grid;grid-template-columns:28px 1fr 28px;align-items:center;gap:2px}
.hk-stepper button{padding:0!important;width:28px;height:26px;min-height:26px;font-size:18px;line-height:1}
.hk-stepper output{text-align:center;font-size:14px;font-weight:650;color:#eed69e}
.hk-amount input[type=range]{display:block;width:100%;height:13px;min-height:13px;padding:0;margin:0;border:0;accent-color:#ddbd7b;cursor:pointer}
.hk-presets{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
@media(max-width:700px){.hk-ammo-row{grid-template-columns:minmax(85px,1fr) 38px 42px 110px;min-height:45px}.hk-panel-heading{flex-wrap:wrap}.hk-panel-heading h2{flex:1}.hk-stepper{grid-template-columns:26px 1fr 26px}.hk-stepper button{width:26px}.hk-panel-heading button{max-width:none}.hk-presets{grid-template-columns:1fr}}

.mouse-quantity{display:flex;align-items:center;gap:12px}.mouse-quantity output{min-width:70px;text-align:center}.mouse-quantity button{min-width:36px;padding:5px 12px}input[data-mouse-quantity]{padding:0;accent-color:#bca26a}

/* A transformed ancestor makes position:fixed use the old compact entry panel.
   The hangar must use the viewport; the compact battle overlays keep their rules. */
body.hangar-active #session-overlays:has(#preflight:not([hidden])){
 position:static;inset:auto;transform:none;width:100%;max-width:none;
 max-height:none;overflow:visible;
}
body.hangar-active #preflight>.queue-controls{display:none}
.hk-shell{grid-template-columns:minmax(0,1fr)}
.hk-shell>*{min-width:0}

.cm-dialog{width:min(960px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:20px}
.cm-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.cm-dialog-header h2{margin:0;font-size:23px}.cm-dialog-header button{flex:none}
.cm-dialog h3{font-size:16px;margin:16px 0 10px}.cm-dialog p{margin:8px 0}.cm-dialog small{display:block;color:#bfc9b7;line-height:1.4}.cm-dialog .hk-help{color:#c8d2bf}
.cm-profile{display:flex;align-items:center;gap:20px;padding-bottom:14px;border-bottom:1px solid #506047}.cm-portrait{object-fit:cover;object-position:50% 20%;width:68px;height:88px;flex:none;border:1px solid #687257;border-radius:3px;background:#273328}.cm-profile .cm-portrait{width:96px;height:128px}.cm-mastery{font-size:23px}.cm-role{font-size:11px;color:#ddc994}.cm-profile .cm-role{font-size:14px}
.cm-training{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 22px;padding:12px 0;border-bottom:1px solid #506047}.cm-training h3{grid-column:1/-1;margin:0}.cm-training .hk-help{grid-column:1}.cm-training button{grid-column:2;grid-row:2/4;align-self:center}.cm-training .cm-requirement{grid-column:1/-1}
.cm-progress{font-size:10px;color:#bfcbae;line-height:1.2}.cm-progress progress{display:block;width:100%;height:4px;accent-color:#d6bd78;margin-top:3px}.cm-training .cm-progress{font-size:12px}.cm-training .cm-progress progress{height:7px}
.cm-skills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cm-skill{display:flex;flex-direction:column;gap:5px;border:1px solid #536046;background:#202e22;padding:11px}.cm-skill strong{font-size:13px}.cm-skill button{margin-top:auto}.cm-skill.learned{border-color:#90a86d;background:#30422a}.cm-skill.available{border-color:#d0b56f}.cm-skill .cm-requirement{font-size:10px;min-height:26px}.cm-requirement{font-size:12px;color:#dfca9a}.cm-error{padding:9px;border:1px solid #c78161;color:#ffdab3}
.cm-profile-actions{display:flex;justify-content:space-between;gap:16px;margin-top:18px}.cm-profile-actions button{max-width:75%}.cm-back{margin-bottom:12px}
.cm-assigned{display:flex;flex-direction:column;gap:4px;min-height:0;flex:1}.cm-member{display:flex;gap:10px;align-items:center;border:1px solid #46553e;background:#243027;padding:6px;min-width:0}.cm-member-body{flex:1;min-width:0}.cm-member-body small{display:block;font-size:10px;line-height:1.25;color:#bac6b1}.hk-shell .cm-name{display:block;min-height:0;background:transparent;border:0;padding:0;text-align:left;font-size:13px;font-weight:650;line-height:1.2}.cm-available{font-size:10px;color:#efd795}.cm-card-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.hk-shell .cm-card-actions button{font-size:10px;padding:4px 6px;min-height:25px}
.cm-assigned .cm-member{flex:1;min-height:0;padding:3px 6px;gap:8px}.cm-assigned .cm-portrait{width:36px;height:48px}.cm-assigned .cm-member-body{display:grid;grid-template-columns:minmax(0,1fr) 148px;grid-template-rows:12px 16px 16px;gap:0 12px;align-items:center}.cm-assigned .cm-role{font-size:9px;line-height:1.1}.cm-assigned .cm-name{font-size:12px;grid-column:1;grid-row:2}.cm-assigned .cm-member-body>small{grid-column:1;grid-row:3;white-space:nowrap}.cm-assigned .cm-progress{grid-column:2;grid-row:1/3;display:none}.cm-assigned .cm-available{grid-column:2;grid-row:1}.cm-assigned .cm-member-body>small.cm-level{display:none}.cm-assigned .cm-card-actions{grid-column:2;grid-row:2/4;margin:0;justify-content:flex-end;gap:3px}.cm-assigned .cm-card-actions button{font-size:10px;min-height:24px;padding:3px 5px}.cm-assigned .cm-card-actions button:first-child{font-size:0}.cm-assigned .cm-card-actions button:first-child:after{content:'Умения';font-size:10px}.cm-assigned .cm-card-actions button:last-child{display:none}
.cm-empty-portrait{width:36px;height:42px;border:1px dashed #98a37d;display:grid;place-items:center;color:#c6d29b;font-size:24px}.cm-assigned .cm-empty .cm-member-body{display:flex;justify-content:space-between;gap:12px}.cm-empty strong{font-size:12px}.cm-empty small{display:none}.cm-empty button{font-size:11px!important}
.cm-barracks-tabs{display:flex;gap:8px}.cm-barracks-tabs .active{border-color:#d0b56f;background:#465238}.cm-filters{display:flex;gap:10px}.cm-filter{display:flex;flex:1;gap:3px;min-width:0;font-size:10px}.cm-filter select{width:100%;font-size:12px}.cm-barracks-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;min-height:0;flex:1}.cm-barracks-list .cm-member{padding:6px;align-items:flex-start}.cm-barracks-list .cm-portrait{width:48px;height:65px}.cm-barracks-list .cm-name{font-size:12px}.cm-barracks-list .cm-progress{margin-top:4px}.cm-barracks-list .cm-role{font-size:9px}.cm-barracks-list .cm-card-actions button{padding:3px 5px;font-size:10px;min-height:23px}
.cm-picker{display:flex;flex-direction:column;gap:8px;max-height:55dvh;overflow:auto;margin:15px 0}.cm-pick-row{display:flex;align-items:center;gap:14px;padding:10px;background:#243128}.cm-pick-row>div{flex:1}.cm-pick-row small{display:block}.cm-pick-row .cm-portrait{width:48px;height:64px}.cm-pick-row button{max-width:150px}
@media(min-width:701px){.cm-dialog[open]:has(.cm-profile){display:grid;grid-template-columns:170px minmax(0,1fr);gap:0 18px}.cm-dialog:has(.cm-profile)>.cm-dialog-header{grid-column:1/-1}.cm-dialog:has(.cm-profile)>.cm-profile{grid-column:1;grid-row:2/5;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:6px 14px 0 0;border-bottom:0;border-right:1px solid #536047;gap:12px}.cm-dialog:has(.cm-profile)>.cm-profile .cm-portrait{width:144px;height:192px}.cm-dialog:has(.cm-profile)>.cm-profile .cm-mastery{font-size:18px}.cm-dialog:has(.cm-profile)>.cm-training{grid-column:2;grid-row:2}.cm-dialog:has(.cm-profile)>h3{grid-column:2;grid-row:3}.cm-dialog:has(.cm-profile)>.cm-skills{grid-column:2;grid-row:4}.cm-dialog:has(.cm-profile)>p,.cm-dialog:has(.cm-profile)>.cm-profile-actions{grid-column:1/-1}.cm-dialog .cm-training .hk-help{font-size:11px}.cm-dialog .cm-training{gap:3px 14px}.cm-dialog .cm-skill{padding:9px;gap:4px}.cm-dialog .cm-skill small{font-size:10px}.cm-dialog .cm-skill .cm-requirement{font-size:9px}.cm-dialog .cm-skill button{min-height:29px}.cm-dialog .cm-skill strong{font-size:12px}.cm-dialog .cm-profile-actions{margin-top:5px}}
@media(max-width:1100px){.cm-assigned .cm-member-body{grid-template-columns:minmax(0,1fr) 125px;gap:0 6px}.cm-assigned .cm-name{font-size:11px}.cm-assigned .cm-member-body>small{font-size:9px}.cm-assigned .cm-card-actions button{font-size:9px}.cm-barracks-list{grid-template-columns:1fr}.cm-barracks-list .cm-portrait{width:32px;height:43px}.cm-barracks-list .cm-member-body{display:grid;grid-template-columns:1fr 130px;gap:1px 6px}.cm-barracks-list .cm-role,.cm-barracks-list .cm-name,.cm-barracks-list .cm-member-body>small{grid-column:1}.cm-barracks-list .cm-progress,.cm-barracks-list .cm-available,.cm-barracks-list .cm-card-actions{grid-column:2}.cm-barracks-list .cm-progress{grid-row:1/3}.cm-barracks-list .cm-card-actions{grid-row:3/5;margin:0}}
@media(max-width:700px){.cm-skills{grid-template-columns:1fr 1fr}.cm-dialog{padding:14px}.cm-dialog-header h2{font-size:18px}.cm-profile .cm-portrait{width:66px;height:88px}.cm-profile{gap:12px}.cm-mastery{font-size:17px}.cm-training{grid-template-columns:1fr}.cm-training button{grid-column:1;grid-row:auto}.cm-assigned .cm-member-body{grid-template-columns:minmax(0,1fr) 118px}.cm-assigned .cm-portrait{width:31px;height:42px}.cm-assigned .cm-name{font-size:11px}.cm-assigned .cm-card-actions button{font-size:9px;padding:3px}.cm-assigned .cm-role{font-size:8px}.cm-assigned .cm-member{gap:5px}.cm-filter select{font-size:11px}.cm-pick-row{gap:8px;padding:6px}.cm-pick-row button{font-size:11px}.cm-pick-row small{font-size:10px}.cm-barracks-list .cm-member-body{display:block}.cm-barracks-list .cm-card-actions{margin-top:5px}.cm-barracks-list .cm-portrait{width:42px;height:57px}.cm-barracks-list{flex:none}.cm-barracks-list .cm-member{min-height:110px}.cm-profile-actions{gap:8px}.cm-profile-actions button{font-size:12px}}

.vm-dialog{width:min(830px,calc(100vw - 28px))}.vm-slots{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-height:0;flex:1}.vm-slot{display:flex;flex-direction:column;gap:6px;border:1px solid #4d5b43;background:#233126;padding:12px;min-height:0}.vm-slot:last-child{grid-column:1/-1}.vm-slot strong{font-size:14px}.vm-slot button{margin-top:auto;align-self:flex-start}.vm-kicker{color:#d4c398;font-size:11px;text-transform:uppercase;letter-spacing:.6px}.vm-slot .hk-help{font-size:11px}.vm-shop-link{align-self:flex-end;font-size:12px!important;min-height:30px!important}
.vm-capability{background:#433626;border:1px solid #a18a5a;color:#efd8ad;font-size:12px;line-height:1.4;padding:8px 10px;margin:5px 0}.vm-offers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.vm-offer{display:flex;flex-direction:column;gap:7px;padding:12px;background:#243127;border:1px solid #55614c;min-width:0}.vm-offer button{margin-top:auto;font-size:12px!important}.vm-offer p{margin:0}.vm-offer strong{font-size:14px}.vm-owned{color:#d3dba4}.vm-shop-body{overflow:auto;min-height:0;flex:1;scrollbar-width:thin}.vm-shop-body>.hk-help{font-size:11px}
.hk-shell .vm-ammo-buy{display:inline-block;min-height:20px;padding:2px 7px;font-size:10px;position:absolute;right:4px;bottom:6px}.hk-ammo-row>div:first-child{position:relative;padding-right:58px}.hk-ammo-row>div:first-child small{font-size:9px}.hk-ammo-row strong{font-size:12px}.hk-ammo-row small{max-width:100%}
.vm-quantity{margin:20px 0}.vm-quantity input{width:100%!important;accent-color:#d8bf7e}.vm-stepper{display:flex;justify-content:center;align-items:center;gap:20px;margin-bottom:12px}.vm-stepper output{min-width:80px;text-align:center;font-size:28px}.vm-stepper button{min-width:44px;font-size:22px}.vm-total{font-weight:650;font-size:17px}.vm-error{border:1px solid #c38b65;color:#ffd2b2;padding:10px}.vm-dialog>.hk-field{justify-content:flex-start;flex-direction:row;margin-top:18px}.vm-dialog>.hk-primary{width:100%;margin-top:14px}
.vm-smoke-steps{display:flex;flex-direction:column;gap:9px;min-height:0}.vm-step{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:4px 10px;align-items:center;background:#233126;border:1px solid #4d5b43;padding:9px 12px}.vm-step-number{grid-row:1/3;border:1px solid #a6976d;border-radius:50%;width:25px;height:25px;text-align:center;line-height:23px;color:#eddaa3}.vm-step strong{font-size:13px}.vm-step p{grid-column:2;font-size:11px}.vm-step button{grid-column:3;grid-row:1/3;max-width:150px;font-size:11px!important}
.hk-slots button{font-size:11px}.hk-tabs button{font-size:12px}.hk-nav{gap:4px}.hk-nav button,.hk-nav a{padding:7px 9px}.hk-panel:has(.vm-smoke-steps){gap:7px}.hk-panel:has(.cm-assigned){gap:6px}.hk-panel:has(.cm-barracks-list){gap:7px}
@media(max-width:1100px){.vm-slot{padding:8px}.vm-slot strong{font-size:12px}.vm-slot .hk-help{font-size:10px}.vm-slot button{font-size:11px!important;padding:5px;min-height:30px}.hk-ammo-row>div:first-child{padding-right:0}.hk-shell .vm-ammo-buy{position:static;margin-top:2px}.hk-ammo-row small{display:none}.hk-ammo-row strong{font-size:11px}.vm-step{grid-template-columns:20px minmax(0,1fr);padding:7px}.vm-step-number{width:20px;height:20px;line-height:18px}.vm-step button{grid-row:3;grid-column:2;font-size:10px!important;padding:4px;min-height:25px}.vm-step p{font-size:10px}.vm-smoke-steps{gap:5px}.vm-offers{grid-template-columns:1fr}.hk-nav button,.hk-nav a{padding:6px;font-size:11px}.hk-wallet{font-size:10px}}
@media(max-width:700px){.vm-dialog{padding:15px}.vm-slots{gap:6px}.vm-slot{gap:4px;padding:7px}.vm-slot .hk-help{font-size:9px}.hk-tabs button{font-size:10px;padding:5px 2px}.hk-nav button{font-size:10px;padding:5px}.hk-top{gap:6px}.hk-brand{font-size:17px!important}.vm-capability{font-size:10px;padding:5px 8px}.vm-step strong{font-size:11px}.vm-step p{font-size:9px}.vm-slot button{font-size:10px!important}.vm-kicker{font-size:9px}.vm-slot strong{font-size:11px}.vm-shop-link{font-size:11px!important}.hk-ammo-row>div:first-child{padding-right:0}.hk-shell .vm-ammo-buy{font-size:9px;min-height:18px;padding:1px 5px}.hk-panel:has(.vm-smoke-steps){overflow:auto}}

.qm-intro{padding:12px 0 8px}.qm-eyebrow{font-size:10px;color:#c5b784;letter-spacing:1.6px}.hk-panel .qm-intro h2{font-size:clamp(22px,2.2vw,32px);margin:8px 0 12px}.qm-intro .hk-help{max-width:520px;font-size:13px;line-height:1.5}.qm-checks{display:flex;flex-direction:column;gap:7px}.hk-shell .qm-check{display:grid;grid-template-columns:115px minmax(0,1fr) 12px;text-align:left;align-items:center;gap:10px;padding:13px;background:#26362a;border-color:#536047}.qm-check>span{color:#b9c8b0;font-size:12px}.qm-check strong{font-size:13px;font-weight:550}.qm-chevron{color:#e5cb8d!important}.qm-custom{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto}.qm-custom h3{flex-basis:100%;font-size:12px;font-weight:500;color:#b8c5b0;margin:0}.hk-shell .qm-custom button{font-size:12px;background:transparent}.hk-battle .hk-primary{width:250px;font-size:15px}.hk-nav a.active{background:#3c4530;border:1px solid #bba776;border-radius:4px}.hk-tabs button{font-size:12px}
@media(max-width:700px){.qm-intro{padding:2px 0}.hk-panel .qm-intro h2{font-size:20px;margin:5px 0}.qm-intro .hk-help{font-size:11px}.hk-shell .qm-check{grid-template-columns:78px minmax(0,1fr) 10px;padding:10px 7px;gap:5px}.qm-check strong,.qm-check>span{font-size:10px}.qm-custom{gap:4px}.hk-shell .qm-custom button{font-size:10px;padding:5px;min-height:29px}.hk-tabs button{font-size:9px;padding:5px 2px}.hk-battle .hk-primary{width:175px;font-size:11px}}

.in-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;vertical-align:middle;isolation:isolate;background:radial-gradient(ellipse at 50% 35%,#80967c2b,transparent 75%),linear-gradient(145deg,#24362c,#111e17);border:1px solid #5b70563d;border-radius:4px;pointer-events:none;overflow:hidden}
.in-icon svg{display:block;width:100%;height:100%;overflow:visible}.in-small{width:56px;height:43px}.in-large{width:88px;height:66px}.in-hero{width:120px;height:96px}.in-empty{opacity:.65;border-style:dashed}.in-code{position:absolute;bottom:1px;right:3px;color:#eed8a3;background:#111c16e8;border-radius:2px;padding:0 3px;font:650 8px/12px system-ui,sans-serif;letter-spacing:.2px;white-space:nowrap}.in-hero .in-code{font-size:11px;line-height:16px;bottom:4px;right:4px}
.hk-ammo-row>div.in-ammo-label{padding-left:67px;min-height:44px;display:flex;justify-content:center;flex-direction:column}.in-ammo-label>.in-icon{position:absolute;left:0;top:50%;transform:translateY(-50%)}.in-ammo-label>strong{line-height:1.2}.hk-shell .in-ammo-label>.vm-ammo-buy{margin-top:2px}.hk-ammo-head>span:first-child{padding-left:67px}
.vm-slot{position:relative;padding-left:108px}.in-slot-art{position:absolute;left:10px;top:20px;width:88px;display:flex;flex-wrap:wrap;gap:4px;align-items:center;justify-content:center}.in-slot-art .in-icon:only-child{width:88px;height:66px}.in-slot-art .in-icon:not(:only-child){width:40px;height:43px}.in-slot-art .in-icon:not(:only-child) svg{transform:scale(1.2)}.in-slot-art .in-icon:not(:only-child) .in-code{display:none}
.vm-offer:has(>.in-icon){display:grid;grid-template-columns:88px minmax(0,1fr);gap:7px 12px;align-content:start;align-items:start}.vm-offer>*{grid-column:1/-1}.vm-offer>.in-icon{grid-column:1;grid-row:1/3;align-self:center}.vm-offer>strong:not(.vm-owned){grid-column:2;grid-row:1;align-self:end;line-height:1.3}.vm-offer>.hk-help:first-of-type{grid-column:2;grid-row:2;align-self:start}.vm-offer>button{align-self:end;margin-top:3px}.vm-offer>p.vm-capability{margin:0}
.in-purchase-hero{display:flex;align-items:center;gap:20px;padding:14px;border:1px solid #516647;background:#233126;margin-top:12px}.in-purchase-hero>.hk-help{font-size:13px;line-height:1.65;margin:0}.in-purchase-hero+.vm-quantity{margin-top:16px}
.hk-warehouse>div:has(.in-icon){justify-content:flex-start;gap:12px;min-height:44px}.hk-warehouse>div>.in-icon{width:50px;height:38px}.hk-warehouse>div>span:not(.in-icon){flex:1}.hk-warehouse>div>strong{margin-left:auto}
.vm-step>.in-icon{grid-column:1;grid-row:1/3;width:46px;height:42px}.vm-step:has(>.in-icon){grid-template-columns:46px minmax(0,1fr) auto}.vm-step .vm-step-number{display:none}
.hk-slots button.in-slot-button{display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 6px}.in-slot-button>.in-icon{width:35px;height:30px;background:transparent;border:0}.in-slot-button>.in-icon .in-code{display:none}
@media(max-width:1100px){.vm-slot{padding-left:81px}.in-slot-art{width:63px;left:8px;top:16px;gap:3px}.in-slot-art .in-icon:only-child{width:63px;height:55px}.in-slot-art .in-icon:not(:only-child){width:30px;height:33px}.in-ammo-label>.in-icon{width:42px;height:39px}.hk-ammo-row>div.in-ammo-label{padding-left:50px;align-items:flex-start}.hk-ammo-head>span:first-child{padding-left:50px}.in-code{font-size:7px;line-height:10px;padding:0 2px}.vm-step:has(>.in-icon){grid-template-columns:40px minmax(0,1fr)}.vm-step>.in-icon{width:40px}.vm-offer:has(>.in-icon){gap:6px 10px}}
@media(max-width:700px){.in-small{width:38px;height:39px}.hk-ammo-row>div.in-ammo-label{padding-left:43px;min-height:48px}.in-ammo-label>.in-icon{width:38px;height:41px}.hk-ammo-head>span:first-child{padding-left:0}.hk-ammo-row strong{font-size:10px}.in-ammo-label>strong{overflow-wrap:anywhere}.vm-slots{grid-template-columns:1fr;gap:5px}.vm-slot{display:grid;grid-template-columns:54px minmax(0,1fr) 95px;grid-template-rows:auto auto auto;gap:1px 7px;padding:7px;align-items:center}.vm-slot:last-child{grid-column:auto}.in-slot-art{position:static;grid-column:1;grid-row:1/4;width:54px;gap:2px}.in-slot-art .in-icon:only-child{width:54px;height:50px}.in-slot-art .in-icon:not(:only-child){width:25px;height:30px}.vm-slot>.vm-kicker{grid-column:2;grid-row:1}.vm-slot>strong{grid-column:2;grid-row:2;font-size:11px}.vm-slot>.hk-help{grid-column:2/4;grid-row:3;font-size:9px;line-height:1.15;margin-top:3px}.vm-slot>button{grid-column:3;grid-row:1/3;margin:0;align-self:center;font-size:10px!important;min-height:30px;width:95px}.vm-offer:has(>.in-icon){grid-template-columns:70px minmax(0,1fr);padding:10px}.vm-offer>.in-icon{width:70px;height:59px}.vm-offer strong{font-size:13px}.in-purchase-hero{gap:14px;padding:10px}.in-purchase-hero>.in-hero{width:82px;height:80px}.in-purchase-hero>.hk-help{font-size:11px}.hk-panel:has(.vm-slots){gap:6px}.hk-warehouse>div{font-size:11px}}

/* Shared generated atlas with native clients. No extra graphics or battle work. */
.in-realistic-art{display:block;height:100%;aspect-ratio:1;max-width:100%;flex:none;background-image:url('/portal/assets/inventory-realistic-20261003o.webp');background-size:400% 400%;background-position:var(--icon-x) var(--icon-y);background-repeat:no-repeat}
.in-icon{background:radial-gradient(ellipse at 50% 45%,#6e827335,transparent 80%),linear-gradient(145deg,#233229,#0e1913);border-color:#68776145}
.in-hero{width:140px;height:114px}.in-hero .in-code{font-size:11px}.in-slot-art .in-icon:not(:only-child) .in-realistic-art{max-width:none}

body.hangar-active #notice{top:auto;right:auto;height:auto;min-height:0;max-height:120px;width:max-content;max-width:min(620px,calc(100vw - 32px));transform:none;margin:0;overflow:auto}
/* Clarity R: stable workspace, explicit inventory actions, compact roster. */
.hk-shell[data-section=store]{grid-template-rows:56px minmax(0,1fr) 26px}
.hk-shell[data-section=store]>.hk-supplies,.hk-shell[data-section=store]>.hk-battle,.hk-shell[data-section=store]>.hk-roster{display:none}
.hk-shell[data-section=store] .hk-stage,.hk-shell[data-section=barracks] .hk-stage{display:none}
.hk-shell[data-section=store] .hk-workspace,.hk-shell[data-section=barracks] .hk-workspace{grid-template-columns:minmax(0,1fr)}
.hk-shell[data-section=store] .hk-workshop,.hk-shell[data-section=barracks] .hk-workshop{width:100%;min-height:0;border:0}
.hk-shell[data-section=store] .hk-panel{display:flex;flex-direction:column;gap:10px;overflow:hidden}
.hk-shell[data-section=barracks] .hk-panel{display:flex;flex-direction:column;gap:8px;overflow:hidden}
.hk-shell[data-section=barracks] .cm-filters{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
.hk-shell[data-section=barracks] .cm-barracks-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-height:0;flex:1}
.hk-shell[data-section=barracks] .cm-member{padding:10px;min-height:0;align-items:start}
.cm-face{border:0;background:none;padding:0;min-width:0;cursor:pointer;align-self:start}
.cm-face img{display:block;object-fit:cover}.cm-face:focus-visible{outline:2px solid #dfc485}
.hk-shell .cm-assigned .cm-card-actions button{font-size:12px;min-height:32px;line-height:1.1;padding:5px 9px}
.hk-shell .cm-assigned .cm-card-actions button:first-child::after{content:none}
.hk-shell .cm-member-body small,.hk-shell .hk-help{color:#d1d9ca}
.hk-shell .hk-support{position:relative;display:grid;grid-template-columns:20px 1fr;gap:3px 6px;padding:9px}
.hk-support>strong{grid-column:2}.hk-support>small,.hk-support-effect,.hk-support>button{grid-column:2}
.hk-support-effect{font-size:12px;line-height:1.3;margin:1px 0}.hk-support>button{font-size:12px;min-height:28px;padding:3px 8px;justify-self:start}
.vm-loading-preview{line-height:1.5;color:#eed899}.vm-reason{color:#eed899;font-size:13px}.vm-offer{gap:8px}.vm-offer>.hk-primary{min-height:36px}
.tr-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(285px,1fr);gap:18px}
.tr-tree{display:flex;min-height:0;flex-direction:column;gap:8px}.tr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;flex:1;min-height:0}
.tr-tank{display:grid;grid-template-columns:70px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:3px 6px;padding:9px;min-height:0;text-align:left;border:1px solid #61705a;background:#243226;color:#eee;overflow:hidden}
.tr-tank.active{border:2px solid #ddc080;background:#394736}.tr-tank small:first-child{grid-column:1/-1}.tr-tank img{width:70px;height:52px;object-fit:contain;grid-row:2/4}.tr-tank strong{font-size:13px;align-self:center}.tr-tank small{font-size:11px;line-height:1.25}
.tr-detail{display:flex;flex-direction:column;min-height:0;border-left:1px solid #66735e;padding-left:18px;gap:6px}
.tr-detail h2{margin:0;font-size:22px}.tr-detail p{margin:0;font-size:13px}.tr-selected{width:100%;height:clamp(65px,16vh,170px);object-fit:contain}
.tr-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.tr-facts div{display:flex;flex-direction:column}.tr-facts strong{font-size:17px}.tr-facts small{font-size:11px}
.tr-actions{margin-top:auto;display:flex;flex-direction:column;gap:6px}.tr-actions button{min-height:36px}.tr-reason{color:#f0d593}
.tr-dialog{width:min(1000px,94vw)}.tr-compare{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.tr-compare td,.tr-compare th{padding:6px 9px;border-bottom:1px solid #586650;text-align:left}.tr-compare td{font-variant-numeric:tabular-nums}.tr-compare th{font-weight:600}
@media(max-width:1100px){.hk-shell[data-section=barracks] .cm-barracks-list{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-tank{grid-template-columns:48px minmax(0,1fr);padding:6px}.tr-tank img{width:48px;height:40px}.tr-tank strong{font-size:12px}.tr-selected{height:90px}.tr-detail h2{font-size:19px}.tr-layout{gap:12px}}
@media(max-height:760px){.hk-shell .hk-support-effect{font-size:11px;line-height:1.15}.hk-shell .hk-support{padding:6px;gap:2px 4px}.tr-selected{height:85px}.tr-compare td,.tr-compare th{padding:4px 8px}.hk-shell[data-section=barracks] .cm-member-body .cm-progress{margin:3px 0}.hk-shell[data-section=barracks] .cm-member-body{gap:3px}}
@media(max-width:700px){.hk-shell[data-section=store]{grid-template-rows:48px minmax(0,1fr) 24px}.tr-layout{grid-template-columns:1fr;grid-template-rows:155px minmax(0,1fr);gap:8px}.tr-grid{grid-template-rows:1fr;grid-template-columns:repeat(3,1fr)}.tr-tank{display:flex;flex-direction:column;padding:5px}.tr-tank img{display:none}.tr-tank strong{font-size:11px}.tr-detail{border:0;padding:0;gap:4px}.tr-selected{display:none}.tr-facts strong{font-size:14px}.tr-detail h2{font-size:17px}.hk-shell[data-section=barracks] .cm-barracks-list{grid-template-columns:1fr}.hk-shell[data-section=barracks] .cm-filters{gap:5px}.hk-shell[data-section=barracks] .cm-filters select{font-size:11px;padding:4px;min-width:0}.hk-shell[data-section=store] .cm-barracks-tabs button{padding:4px;font-size:11px}.tr-dialog .tr-compare{font-size:11px}}

.hk-shell[data-section=barracks] .cm-member-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-content:start}
.hk-shell[data-section=barracks] .cm-member-body>*{grid-column:1;grid-row:auto}
.hk-shell[data-section=barracks] .cm-member-body .cm-card-actions{grid-column:2;grid-row:1/6;align-self:center;margin:0;max-width:106px}
.hk-shell[data-section=barracks] .cm-card-actions button{min-height:32px;padding:5px 8px;font-size:11px}
.hk-shell[data-section=barracks] .cm-member-body .cm-progress{margin-top:1px}

/* S usability: direct inventory actions, progression and one headquarters shell. */
.hk-warehouse-filter{display:flex;align-items:center;gap:8px;margin:6px 0 8px}.hk-warehouse-filter input{width:18px;height:18px}.hk-pack{max-width:100%;font-size:12px}
.ut-warehouse{display:flex;flex-direction:column;gap:5px;margin-top:8px}.ut-stock{display:flex;align-items:center;gap:10px;min-height:53px;border-bottom:1px solid #51634d;padding:4px 0}.ut-stock>div:not(.in-icon){flex:1;min-width:0;display:flex;flex-direction:column}.ut-stock strong{font-size:13px}.ut-stock small{font-size:12px}.ut-stock button{flex:none;min-width:116px;min-height:34px}.ut-stock .in-icon{width:42px;height:42px;flex:none}.ut-stock .hk-help{margin:2px 0}
.vm-ammo-shop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.vm-ammo-offer{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:6px;padding:9px;background:#243226}.vm-ammo-offer .in-icon{grid-row:1/3;width:44px;height:44px}.vm-ammo-offer strong{font-size:13px}.vm-ammo-offer small{grid-column:2;grid-row:2;font-size:12px}.vm-ammo-offer button{grid-column:3;grid-row:1/3;min-height:36px}.vm-ammo-offer .hk-help{grid-column:1/-1;grid-row:auto}
.tr-tank{grid-template-columns:minmax(75px,.7fr) minmax(0,1fr)}.tr-tank img{width:100%;height:100%;max-height:105px;min-height:52px}.tr-path{display:flex;flex-wrap:wrap;gap:5px}.tr-path button{font-size:12px;padding:6px;min-height:32px;flex:1}.tr-detail>progress{width:100%;height:7px;accent-color:#d9bd7c}.tr-selected{height:clamp(60px,12vh,115px)}
body.headquarters-active{overflow:hidden;background:#121d17;color:#edf0e6}body.headquarters-active>.masthead,body.headquarters-active>footer,body.headquarters-active .page-heading .eyebrow,body.headquarters-active #wallet,body.headquarters-active #player-nav{display:none!important}body.headquarters-active #portal-shell{position:fixed;inset:0;display:grid!important;grid-template-rows:56px auto minmax(0,1fr) 58px;padding:0;background:#142018;max-width:none;width:100%;margin:0}body.headquarters-active #hq-nav{grid-row:1;position:relative;padding:0 20px;border-bottom:1px solid #52614c;background:#0e1712;z-index:5;display:flex;align-items:center;gap:20px}body.headquarters-active #hq-nav a{color:#e7ecdc;text-decoration:none}body.headquarters-active #hq-nav .hk-nav a{padding:9px}body.headquarters-active .page-heading{grid-row:2;margin:0;padding:14px 24px 8px}body.headquarters-active #page-title{font-size:24px;margin:0}body.headquarters-active #view{grid-row:3;overflow:auto;min-height:0;padding:8px 24px 16px;align-content:start}body.headquarters-active #hq-return{grid-row:4;border-top:1px solid #52614c;padding:7px 24px}body.headquarters-active .player-card{background:#243226;border-color:#58674e;padding:16px}body.headquarters-active .player-card h2{font-size:19px}body.headquarters-active .player-card p{margin:8px 0}body.headquarters-active #view>.player-card{margin-bottom:12px}body.headquarters-active #notice{z-index:30}.hq-more{position:relative}.hq-more summary{cursor:pointer;padding:9px;list-style:none}.hq-more>div{position:absolute;right:0;top:100%;min-width:200px;display:grid;background:#263626;border:1px solid #768266;padding:8px;box-shadow:0 10px 28px #0008}.hq-more a{padding:9px}.hq-more a:hover{background:#43533a}
@media(max-width:1100px){.tr-tank{grid-template-columns:68px minmax(0,1fr)}.tr-tank img{min-height:50px}.vm-ammo-shop{grid-template-columns:1fr}.hq-wallet{font-size:11px}.hq-more summary{padding:5px}body.headquarters-active #hq-nav{gap:8px;padding:0 12px}body.headquarters-active #hq-nav .hk-nav a{padding:6px}}
@media(max-width:700px){.tr-tank img{display:none}.ut-stock strong{font-size:11px}.ut-stock button{min-width:80px;padding:4px;font-size:11px}.ut-stock .in-icon{display:none}.tr-path button{min-height:27px;font-size:10px}.tr-selected{display:none}body.headquarters-active .hk-wallet{display:none}body.headquarters-active #hq-nav .hk-brand{display:none}body.headquarters-active #hq-nav .hk-nav{display:flex;overflow:visible;gap:2px;font-size:11px}body.headquarters-active #hq-nav .hk-nav a{padding:4px}body.headquarters-active #view{padding:8px 12px}}

.hk-shell .hk-warehouse-filter{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;align-self:flex-start;gap:8px;text-align:left;min-height:24px;margin:5px 0}.hk-shell .hk-warehouse-filter input{display:block;width:18px;height:18px;min-height:0;margin:0;flex:none}.hk-shell .hk-warehouse-filter span{display:inline;margin:0}.hk-shell .hk-pack{min-height:32px;padding:5px 9px}.ut-warehouse{margin-top:4px}.ut-stock .hk-help{line-height:1.2}.hk-shell .hk-panel:has(.ut-warehouse) .hk-pagination{margin-top:8px}

.vm-ammo-effect{font-size:14px;line-height:1.4;color:#d4d9c9;margin:8px 0}.cm-skills .cm-skill small{line-height:1.3}.cm-skills{align-items:stretch}.hk-stats{font-variant-numeric:tabular-nums}.headquarters-active #view form{max-width:100%}
