/* Armored Command battle layout. Appended after the baseline and feature sheets. */
body.armored-ui[data-music=battle]{font-size:15px}
body.armored-ui>header{
 position:relative;z-index:40;min-height:78px;padding:12px clamp(14px,2.5vw,38px);gap:16px;
 background:linear-gradient(#35414f 0,#151f2c 10%,#0d1520 86%,#2a3746);
 border-bottom:1px solid #6b7a8e;box-shadow:inset 0 0 0 3px #090f19,inset 0 -5px #3a4b5d;
}
body.armored-ui .brand{gap:14px}
body.armored-ui .brand-mark{width:44px;height:44px;flex-shrink:0;object-fit:contain;border:0;border-radius:0;box-shadow:none;background:none}
body.armored-ui .brand h1{font:750 clamp(17px,1.75vw,25px)/1.2 CommandDisplay,system-ui;letter-spacing:.06em}
body.armored-ui .brand .eyebrow{color:#aab8c9;font-size:9px;margin-top:5px;letter-spacing:.17em}
.command-status{margin-left:auto;color:var(--command-accent);font:700 12px CommandDisplay,system-ui;letter-spacing:.08em}
.command-identity{margin-left:auto;display:flex;gap:10px;align-items:center}
.command-emblem{width:36px;height:42px;object-fit:contain;filter:drop-shadow(0 0 5px var(--command-glow))}
.faction-name{display:flex;align-items:center;gap:10px;min-width:0}
.faction-emblem{width:36px;height:40px;object-fit:contain;filter:drop-shadow(0 1px 3px #0008)}
.plan-identity{display:flex;align-items:center;gap:14px}
.planner-emblem{width:55px;height:64px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 0 6px var(--command-glow))}
.command-menu{position:relative;margin:0}
.command-menu>summary{list-style:none;display:flex;gap:12px;align-items:center;justify-content:center;padding:10px 17px;border:1px solid #738297;border-radius:3px;background:linear-gradient(#344252,#172230);font:700 13px CommandDisplay,system-ui}
.command-menu>summary::-webkit-details-marker{display:none}
.command-menu>summary::before{content:"☰";font-size:18px}
body.armored-ui .command-menu .top-actions{
 position:absolute;right:0;top:calc(100% + 10px);width:min(440px,calc(100vw - 30px));
 display:grid;grid-template-columns:1fr 1fr;gap:9px;z-index:50;padding:16px;
 border:1px solid #8391a3;border-radius:4px;background:linear-gradient(135deg,#303d4a,#111b29);
 box-shadow:inset 0 0 0 3px #0b1420,inset 0 0 0 4px #526376,0 18px 40px #000b;
}
body.armored-ui .top-actions .nav-link,body.armored-ui .top-actions button{font-size:13px;padding:10px;text-align:center;justify-content:center;line-height:1.25;text-decoration:none}
body.armored-ui .world-bar{padding:9px clamp(16px,2.5vw,38px);background:#0c1420;color:#ced7e4;gap:8px;border-color:#425063}
body.armored-ui .world-bar strong{font:600 12px CommandDisplay,system-ui}
body.armored-ui .world-bar span{font-size:11px}
body.armored-ui #cycleLabel{color:var(--command-accent)}
body.armored-ui .scoreboard{max-width:1800px;margin:auto;padding:12px clamp(16px,2.5vw,38px);gap:30px;background:linear-gradient(#202a37,#111925);border-bottom:0;grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr)}
body.armored-ui .scoreboard>div:not(.round){padding:9px 14px;background:linear-gradient(110deg,#26313d,#101822);border:1px solid #596b7f;box-shadow:inset 0 0 0 2px #080e17;border-radius:3px}
body.armored-ui .score-name{font:700 15px CommandDisplay,system-ui;align-items:center}
body.armored-ui .score-name strong{letter-spacing:.035em}
body.armored-ui .scoreboard .small{font-size:11px}
body.armored-ui .hp-track{height:9px;border:1px solid #5c6778;border-radius:1px;background:#070b12;position:relative}
body.armored-ui .hp-track::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--hp-step,20%) - 3px),#0b111a calc(var(--hp-step,20%) - 3px),#0b111a var(--hp-step,20%));pointer-events:none}
body.armored-ui .round{position:relative;padding:11px 6px;background:linear-gradient(#354150,#101923);border:1px solid #8090a1;box-shadow:inset 0 0 0 3px #0b1320;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px)}
body.armored-ui .round .eyebrow{font:700 16px CommandDisplay,system-ui;letter-spacing:.10em;color:#f4f6fc}
body.armored-ui .round strong{color:var(--command-accent);font-size:12px;margin-top:3px}
body.armored-ui .workspace{padding:0 clamp(10px,1.3vw,24px) 16px}
body.armored-ui .arena{
 position:relative;border:1px solid #7b8b9d;padding:7px;
 background:linear-gradient(135deg,#526170,#141e2a 15%,#202d3d 75%,#4b5d70);
 box-shadow:inset 0 0 0 3px #09121d,inset 0 0 0 4px #66788b,0 8px 20px #0008;
 border-radius:4px;
}
body.armored-ui .arena::after{content:"";position:absolute;inset:2px;pointer-events:none;border:1px solid var(--command-dim);border-radius:2px}
body.armored-ui .toolbar{background:#111d2b;padding:6px 10px;border-bottom:1px solid #3e4e61;gap:6px}
body.armored-ui .toolbar button{font-size:11px;min-height:44px;letter-spacing:.02em}
body.armored-ui .toolbar .check{font-size:11px;margin-left:4px}
body.armored-ui .toolbar button[aria-pressed=true]{border-color:var(--command-accent);color:var(--command-accent)}
body.armored-ui .camera-controls{background:#101923;padding:3px 10px;border-bottom:1px solid #516071;gap:10px}
body.armored-ui .camera-controls label{font-size:11px}
body.armored-ui .camera-controls button{min-height:44px}
body.armored-ui #map{height:clamp(340px,43vh,580px)}
body.armored-ui[data-phase=replay] #map{height:clamp(420px,62vh,740px)}
body.armored-ui .canvas-tag{padding:4px 7px;background:#09101ad9;color:#c9d3e0;border:1px solid #62718388;top:10px;left:10px;font-size:9px}
body.armored-ui #miniMap{height:42px;border:1px solid #728198;background:#080e16}
body.armored-ui .map-readout{background:#0b131f;font-size:11px;color:#b1bdce;padding:7px 10px}
body.armored-ui .controls{border:0;background:none;padding:18px 0 0}
body.armored-ui .plan-head{grid-template-columns:minmax(220px,.8fr) minmax(180px,.65fr) minmax(250px,1fr);gap:18px;margin:0 0 15px;padding:12px 18px;border:1px solid var(--command-dim);background:linear-gradient(100deg,var(--command-tint),#111b28 75%);box-shadow:inset 3px 0 var(--command-accent)}
body.armored-ui .plan-head .eyebrow{color:var(--command-accent);font-size:11px;line-height:1.5}
body.armored-ui .plan-head h2{font:700 21px CommandDisplay,system-ui;letter-spacing:.035em}
body.armored-ui .plan-head label{font-size:12px}
body.armored-ui #targetInfo{color:#dce5f1;font-size:12px;line-height:1.75;overflow-wrap:anywhere}
body.armored-ui .planning-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 200px;gap:16px;align-items:stretch}
body.armored-ui .order-card,body.armored-ui .commit-card,body.armored-ui .support-grid>details,
body.armored-ui .phase-card,body.armored-ui #reportPanel{
 position:relative;border:1px solid #738295;border-radius:4px;padding:18px;
 background:radial-gradient(circle at 8px 8px,#94a0ad 0 1px,#070e17 2px 4px,transparent 5px),
 radial-gradient(circle at calc(100% - 8px) 8px,#94a0ad 0 1px,#070e17 2px 4px,transparent 5px),
 linear-gradient(135deg,#2b3745,#111b28 25%,#111a25 85%,#263440);
 box-shadow:inset 0 0 0 3px #090f18,inset 0 0 0 4px #45566b,0 4px 12px #0005;
}
body.armored-ui .order-card::before{content:"";position:absolute;left:18px;right:18px;top:0;height:2px;background:var(--command-accent);box-shadow:0 0 8px var(--command-glow);pointer-events:none}
body.armored-ui .order-card h3{font:700 13px/1.6 CommandDisplay,system-ui;color:var(--command-accent);letter-spacing:.045em;margin:0}
.command-unit-head{display:flex;gap:16px;align-items:center;min-height:80px;margin-bottom:12px}
.command-unit-head>div{flex:1;min-width:0}
.command-unit-head p{font-size:11px;color:#adbccc;margin-top:4px}
body.armored-ui .command-portrait{flex:0 0 135px;width:135px;height:85px;touch-action:auto;cursor:default;background:radial-gradient(ellipse at bottom,var(--command-tint),#09121f);border:1px solid #617186;box-shadow:inset 0 2px 7px #0007;border-radius:3px}
body.armored-ui .unitlist{gap:7px;margin:10px 0}
body.armored-ui .unitlist button{min-height:62px;padding:7px 4px;font-size:11px}
body.armored-ui .unitlist button img{width:62px;height:22px;object-fit:contain}
body.armored-ui .unitlist button.selected{border-color:var(--command-accent);color:var(--command-accent);background:linear-gradient(var(--command-tint),#14202e);box-shadow:inset 0 -3px var(--command-accent)}
body.armored-ui .unitlist .empty-slot{font-size:10px}
body.armored-ui .planning-grid .fields{margin:12px 0;gap:12px}
body.armored-ui .planning-grid label{font-size:12px}
body.armored-ui #speed,body.armored-ui #angle{font:650 30px CommandDisplay,system-ui;min-height:64px;font-variant-numeric:tabular-nums}
body.armored-ui .planning-grid .statline{font-size:12px;line-height:1.65}
body.armored-ui #unitInfo{font-size:11px;color:#adbccc}
body.armored-ui #muzzleInfo{margin:12px 0;padding:12px 14px;border:1px solid var(--command-dim);border-left:3px solid var(--command-accent);background:#070f1c;box-shadow:inset 0 3px 7px #0006;color:#f4f7fd;font-size:13px;line-height:1.8}
body.armored-ui .command-origin-title{display:block;font:650 10px/1.6 CommandDisplay,system-ui;letter-spacing:.03em;color:var(--command-accent);margin-bottom:6px}
body.armored-ui .command-coordinate{display:inline-block;font-size:16px;font-weight:650;white-space:nowrap;margin-right:12px}
body.armored-ui .help-hint{color:#b7c2d2;line-height:1.6}
body.armored-ui .planning-grid .help-hint{font-size:11px}
body.armored-ui #carrierBadge{display:inline-block;margin-top:5px;font:650 11px system-ui;color:var(--command-accent);border-color:var(--command-dim);background:var(--command-tint)}
body.armored-ui #releaseInfo{padding:12px;background:#0a1421;border:1px solid #495b70}
body.armored-ui .commit-card{justify-content:flex-start;gap:15px}
body.armored-ui .commit-card .small{font-size:12px;line-height:1.6;color:#c4cfde}
body.armored-ui #lockBtn{margin-top:auto;min-height:95px;padding:16px;font:750 17px/1.5 CommandDisplay,system-ui;letter-spacing:.04em;text-transform:uppercase}
body.armored-ui #lockBtn::before{content:"";display:block;width:13px;height:12px;margin:0 auto 12px;border:2px solid currentColor;border-radius:2px;box-shadow:0 -7px 0 -3px var(--command-accent),0 -7px 0 -1px currentColor}
body.armored-ui .support-grid{gap:16px;margin-top:16px}
body.armored-ui .support-grid>details{padding:10px 15px;min-width:0}
body.armored-ui .support-grid>details>summary{font-size:12px;color:#dfe8f5;line-height:1.6}
body.armored-ui .support-grid .badge{font-size:10px}
body.armored-ui .statline,body.armored-ui .formula{border-radius:3px}
body.armored-ui .phase-card{padding:24px;text-align:center}
body.armored-ui .phase-card h2,body.armored-ui #reportPanel h2{font-family:CommandDisplay,system-ui}
body.armored-ui .phase-card .wide{margin:18px auto 0}
body.armored-ui #replayPanel{text-align:left;grid-template-columns:1fr 190px 260px;padding:22px 26px}
body.armored-ui #replayPanel .buttonpair button{min-height:52px;font-family:CommandDisplay,system-ui}
body.armored-ui #reportPanel{max-width:1160px;padding:26px}
body.armored-ui #reportPanel .data-table{font-size:14px}
body.armored-ui #reportPanel :is(.statline,.prediction){font-size:13px;line-height:1.6}
body.armored-ui #reportPanel .wide{min-height:48px}
body.armored-ui .veil{background:#080f1af7;backdrop-filter:blur(20px)}
body.armored-ui .veil-inner{max-width:450px;border:1px solid #7c8c9f;padding:25px;background:linear-gradient(140deg,#2b3847,#111c2b);box-shadow:inset 0 0 0 3px #0a111d,inset 0 0 0 4px #51677e}
body.armored-ui .veil h2{font-family:CommandDisplay,system-ui;font-size:25px}
body.armored-ui .log-details{margin:0 16px 12px;border:1px solid #42536a;border-radius:3px;background:#111b29}
body.armored-ui .school-bar,body.armored-ui .school-panel{background:linear-gradient(120deg,#293341,#111b2a);border-color:#718096}
body.armored-ui .school-panel .eyebrow{color:#dce4f0}
body.armored-ui .school-record{border-color:#8190a5}
@media(max-width:1100px){
 .command-status{font-size:10px}.command-unit-head{gap:10px}
 body.armored-ui .planning-grid{grid-template-columns:1.2fr 1fr}
 body.armored-ui .commit-card{grid-column:1/-1;display:grid;grid-template-columns:1fr 180px 230px;align-items:center}
 body.armored-ui #lockBtn{grid-column:3;grid-row:1/3;min-height:65px;margin:0;font-size:15px}
 body.armored-ui #lockBtn::before{display:none}
 body.armored-ui .commit-card .small{margin:0}
 body.armored-ui .support-grid{grid-template-columns:1fr 1fr}
 body.armored-ui .plan-head{grid-template-columns:1fr 1fr}
 body.armored-ui .plan-head>#targetInfo{grid-column:1/-1}
}
@media(max-width:680px){
 body.armored-ui>header{padding:14px;gap:8px;min-height:85px}
 body.armored-ui .brand{flex:1;gap:9px;min-width:0}
 body.armored-ui .brand-mark{width:34px;height:34px;flex-shrink:0}
 body.armored-ui .brand h1{font-size:14px;letter-spacing:.01em}
 body.armored-ui .brand .eyebrow{font-size:7px;letter-spacing:.05em}
 .command-identity{order:3;flex-basis:100%;margin:0 0 0 37px;gap:8px}
 .command-status{margin:0;font-size:10px}
 .command-emblem{width:20px;height:24px}
 .faction-name{gap:4px;flex-direction:column}
 .faction-emblem{width:26px;height:28px}
 .planner-emblem{width:42px;height:54px}
 .command-menu>summary{padding:8px 11px;font-size:11px}
 body.armored-ui .command-menu .top-actions{width:min(340px,calc(100vw - 28px))}
 body.armored-ui .top-actions .nav-link,body.armored-ui .top-actions button{font-size:12px!important}
 body.armored-ui .world-bar{padding:9px 14px}
 body.armored-ui .world-bar strong{font-size:11px}
 body.armored-ui #saveStatus{font-size:10px}
 body.armored-ui .scoreboard{padding:10px;gap:7px;grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr)}
 body.armored-ui .scoreboard>div:not(.round){padding:8px}
 body.armored-ui .score-name{font-size:10px;gap:4px}
 body.armored-ui .scoreboard .small{font-size:9px}
 body.armored-ui .round .eyebrow{font-size:13px;letter-spacing:.025em}
 body.armored-ui .round strong{font-size:10px}
 body.armored-ui .workspace{padding:0 8px 12px}
 body.armored-ui .arena{padding:5px}
 body.armored-ui .toolbar{padding:5px;gap:5px}
 body.armored-ui .toolbar button{font-size:10px;padding:6px 9px}
 body.armored-ui .toolbar .spacer{display:none}
 body.armored-ui .toolbar .check{font-size:10px}
 body.armored-ui .camera-controls{padding:4px 6px;gap:8px}
 body.armored-ui .camera-controls label{font-size:10px}
 body.armored-ui #map{height:330px}
 body.armored-ui[data-phase=replay] #map{height:400px}
 body.armored-ui .plan-head,body.armored-ui .planning-grid,body.armored-ui .support-grid{grid-template-columns:1fr}
 body.armored-ui .plan-head{padding:15px;gap:12px}
 body.armored-ui .plan-head>#targetInfo{grid-column:auto}
 body.armored-ui .order-card,body.armored-ui .commit-card{padding:16px}
 body.armored-ui .commit-card{display:flex;grid-column:auto}
 body.armored-ui #lockBtn{min-height:66px;width:100%}
 body.armored-ui #replayPanel{display:block;padding:20px}
 body.armored-ui #reportPanel{padding:20px}
 body.armored-ui .command-portrait{width:125px;flex-basis:125px;height:80px}
 body.armored-ui .unitlist button img{width:45px}
 body.armored-ui .unitlist button{font-size:10px}
}
