/* Generated by scripts/extract-panel-css.mjs from dist/battle.css. Do not edit by hand. */
.inspection-portrait{position:relative;height:145px;margin:0 -16px 10px;overflow:hidden;background:#142329}
.inspection-portrait>svg{position:absolute;width:100%;height:100%;display:block}
.inspection-portrait::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#192b3080,transparent 20%,transparent 80%,#192b3080),linear-gradient(180deg,#192b3010 15%,#192b3070 45%,#192b30 100%)}
.inspection-portrait .inspection-unit-heading{position:absolute;z-index:1;bottom:4px;left:16px;right:16px;text-shadow:0 1px 5px #000}
.inspection-portrait .token-owner{color:#c5d4d8}
.inspection-portrait.portrait-unavailable{height:75px}
@media(max-width:1100px){.inspection-portrait{max-width:480px}}
.portrait-member-badge{position:absolute;top:9px;right:10px;z-index:2;display:grid;place-items:center;min-width:28px;height:28px;padding:0 6px;border:1px solid #9db4bd;border-radius:50%;background:#142329e8;color:#fff;font-size:16px;font-weight:800;box-shadow:0 2px 5px #0005}
.portrait-member-badge.without-portrait{position:static;display:inline-grid;margin-top:6px}
#inspection-panel:has(.inspection-portrait){padding-top:0}
#active-unit-panel .inspection-portrait,#inspection-panel .inspection-portrait{margin-inline:calc(-1 * var(--sidebar-inset));max-width:none;background:var(--unit-surface)}
:is(#active-unit-panel,#inspection-panel,.army-mini-details) .inspection-portrait::after{background:linear-gradient(180deg,transparent 15%,var(--unit-surface) 100%)}
#active-unit-panel .inspection-unit-heading,#inspection-panel .inspection-unit-heading{left:var(--sidebar-inset);right:var(--sidebar-inset)}
/* Compact labels overlay portraits instead of adding header strips. */
.left:has(#active-unit-panel:not([hidden]) .inspection-portrait),.right{padding-top:0}
#active-unit-panel:has(.inspection-portrait)>.eyebrow,#inspection-panel:has(.inspection-portrait)>.eyebrow{position:absolute;top:10px;left:12px;z-index:3;margin:0;padding:5px 8px;border-radius:4px;background:#10191cb8;color:#e0e9e9;font-size:10px;letter-spacing:.13em;line-height:1.4;pointer-events:none}
:is(#active-unit-panel,#inspection-panel,.army-mini-details) .inspection-portrait::after{background:linear-gradient(180deg,#080e1266,transparent 42%),linear-gradient(180deg,transparent 15%,var(--unit-surface) 100%)}
/* Familiar army-card stat bands. */
.unit-quick-stats{display:grid;gap:2px;margin:12px 0 14px;padding:2px;background:#89938a;border:1px solid #69766c;border-radius:2px}
.unit-quick-stats>div{display:flex;align-items:center;justify-content:space-between;min-height:32px;padding:3px 13px;gap:12px;color:#fff}
.unit-quick-stats dt{font-size:17px;font-weight:600;text-transform:uppercase;line-height:1.3;letter-spacing:.025em}
.unit-quick-stats dd{margin:0;min-width:28px;text-align:center;font-size:23px;font-weight:650;line-height:1.1;font-variant-numeric:tabular-nums}
.unit-quick-stats [data-stat="move"]{background:#305b37}
.unit-quick-stats [data-stat="range"]{background:#4b4845}
.unit-quick-stats [data-stat="attack"]{background:#781e30}
.unit-quick-stats [data-stat="defense"]{background:#20577f}
/* Inset unit windows for comparison, retaining card-style quick stats. */
.left:has(#active-unit-panel:not([hidden]) .inspection-portrait),.right{padding-top:26px}
#inspection-panel:not(:has(.inspection-portrait)){padding-top:16px}
@media(max-width:650px){.left:has(#active-unit-panel:not([hidden]) .inspection-portrait){padding-top:20px}}
.unit-ability-bars{display:grid;gap:6px;margin:0 0 14px}
.unit-ability{border:1px solid #4d656c;border-radius:4px;background:#21363b;overflow:hidden}
.unit-ability summary{padding:8px 10px;cursor:pointer;font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1.4;list-style-position:inside}
.unit-ability summary:hover{background:#2c454b}
.unit-ability summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.unit-ability[open] summary{border-bottom:1px solid #4d656c}
#active-unit-content .unit-ability p,#inspection-content .unit-ability p{margin:0;padding:10px;font-size:13px;line-height:1.55;background:#192b30;white-space:pre-line}
/* Card-style stat shield; color belongs to the printed unit, not its player. */
.unit-stat-shield{--shield-light:#c4c2b4;--shield-mid:#85857d;--shield-dark:#4a4d4b;--shield-edge:#656a65;margin:12px auto 16px;padding:3px;max-width:260px;background:linear-gradient(125deg,#c5c9c0,var(--shield-edge) 38%,#343a38 70%,#b4b8ae);clip-path:polygon(50% 0,100% 14%,100% 85%,50% 100%,0 85%,0 14%)}
.unit-stat-shield[data-theme="bronze"]{--shield-light:#d1b982;--shield-mid:#947342;--shield-dark:#4b3c26;--shield-edge:#846338}
.unit-stat-shield[data-theme="violet"]{--shield-light:#b8a7c6;--shield-mid:#756183;--shield-dark:#3f2e4d;--shield-edge:#685274}
.stat-shield-surface{padding:0 10px;background:radial-gradient(ellipse at 30% 20%,var(--shield-light),transparent 65%),linear-gradient(145deg,var(--shield-mid),var(--shield-dark));clip-path:polygon(50% 0,100% 14%,100% 85%,50% 100%,0 85%,0 14%)}
.stat-shield-life{height:73px;display:flex;justify-content:center;align-items:flex-end;position:relative;padding-top:9px}
.stat-shield-life svg{width:64px;height:64px;filter:drop-shadow(0 1px 1px #0006)}
.stat-shield-max-life{position:absolute;left:calc(50% + 28px);bottom:17px;color:#fff;font-size:12px;font-weight:650;text-shadow:0 1px 3px #000}
.unit-stat-shield .unit-quick-stats{margin:0;gap:2px;padding:1px;border-color:#a5a49a;background:#aba99e;border-radius:0}
.unit-stat-shield .unit-quick-stats>div{min-height:28px;padding:3px 7px}
.unit-stat-shield .unit-quick-stats dt{font-size:15px}
.unit-stat-shield .unit-quick-stats dd{font-size:21px}
.stat-shield-points{display:flex;flex-direction:column;align-items:center;height:61px;padding-top:3px;color:#fff;line-height:1.05;text-shadow:0 1px 3px #0009;font-size:12px}
.stat-shield-point-value{font-size:26px;font-weight:650}
/* Extend the artwork downward, then nest the weathered shield into its lower edge. */
:is(#active-unit-panel,#inspection-panel,.army-mini-details) .inspection-portrait{height:205px;margin-bottom:0}
#active-unit-panel .inspection-portrait .inspection-unit-heading,#inspection-panel .inspection-portrait .inspection-unit-heading{bottom:64px}
#active-unit-panel .inspection-portrait.portrait-unavailable,#inspection-panel .inspection-portrait.portrait-unavailable{height:205px}
.unit-stat-shield{position:relative;z-index:1;padding:4px;margin-top:-28px;background:linear-gradient(120deg,#b2b1a3 0%,#555b55 22%,#303530 50%,#999b8b 78%,#3e433c)}
.stat-shield-surface{position:relative;isolation:isolate;background:radial-gradient(ellipse at 36% 22%,var(--shield-light),transparent 56%),linear-gradient(155deg,var(--shield-mid) 24%,var(--shield-dark) 94%)}
.stat-shield-surface::before{content:"";position:absolute;inset:0;z-index:0;background:url('/shield-grain.svg') center/240px 280px;mix-blend-mode:multiply;pointer-events:none;opacity:.9}
.stat-shield-surface>*{position:relative;z-index:1}
.stat-shield-bevel{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
/* Keep names off the artwork and show wounds in the familiar count-up direction. */
#active-unit-panel .inspection-unit-heading,#inspection-panel .inspection-unit-heading{position:static;margin:0 calc(-1 * var(--sidebar-inset));padding:12px 16px 10px;background:#21363b;border-bottom:1px solid #4d656c;text-shadow:none}
.inspection-unit-heading strong{display:block;line-height:1.25}
.inspection-unit-heading .token-owner{display:block;margin-top:4px;font-size:12px;color:#c5d4d8}
.stat-shield-life{height:96px;padding-top:11px;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:7px}
.stat-shield-life svg{width:56px;height:56px;flex-shrink:0}
.stat-shield-wound-label{font-size:10px;line-height:1.15;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:#fff;text-shadow:0 1px 3px #000}
.stat-shield-life .stat-shield-max-life{position:static;font-size:11px;line-height:1.3;margin-top:2px}
.stat-shield-surface::before{opacity:1;background-size:100% 100%}
.stat-shield-surface::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(ellipse at 8% 30%,#261d1644,transparent 28%),radial-gradient(ellipse at 80% 92%,#171b2055,transparent 32%),radial-gradient(ellipse at 70% 10%,#e9debd33,transparent 22%);box-shadow:inset 0 0 14px #17191170}
/* Printed Life stays fixed; physical wound markers accumulate beside it. */
.stat-shield-life{height:88px}
.stat-shield-markers{position:absolute;right:-4px;bottom:7px;display:flex;flex-direction:column;align-items:center;color:#fff;font-size:9px;line-height:1.15;text-shadow:0 1px 3px #000}
.stat-shield-life .stat-shield-markers svg{width:44px;height:55px}
/* Matching tabletop marker molds: Surge on the left, wounds on the right. */
.stat-shield-surge{left:-4px;right:auto;color:#ffe697}
.stat-shield-surge.is-empty{color:#c8bf9e;min-width:44px}
/* Keep the Surge count crisp against the yellow marker face. */
.stat-shield-surge svg text{text-shadow:none;paint-order:stroke fill;stroke:#674a0e;stroke-width:1.4;stroke-linejoin:round}
/* Compact unit headers identify the army through its established banner colors. */
#active-unit-panel .inspection-unit-heading,#inspection-panel .inspection-unit-heading{text-align:center;padding:12px 14px;border-bottom:1px solid #ffffff24}
#active-unit-panel .inspection-unit-heading[data-army="0"],#inspection-panel .inspection-unit-heading[data-army="0"]{background:linear-gradient(110deg,#244f64,#18343f);color:#b9e8fc}
#active-unit-panel .inspection-unit-heading[data-army="1"],#inspection-panel .inspection-unit-heading[data-army="1"]{background:linear-gradient(250deg,#653e39,#3d2a2d);color:#ffd3ca}
/* Clip the shield artwork, leaving wound and Surge markers above its rim. */
.unit-stat-shield{clip-path:none;background:none;isolation:isolate}
.unit-stat-shield::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(120deg,#b2b1a3 0%,#555b55 22%,#303530 50%,#999b8b 78%,#3e433c);clip-path:polygon(50% 0,100% 14%,100% 85%,50% 100%,0 85%,0 14%);pointer-events:none}
.unit-stat-shield>.stat-shield-marker-overlay{position:absolute;top:4px;left:14px;right:14px;z-index:2;pointer-events:none}
#inspection-content .inspection-unit-heading{position:relative;left:auto;right:auto;padding-inline:48px}
#inspection-content .inspection-unit-heading .inspection-pin-controls{position:absolute;right:7px;top:50%;transform:translateY(-50%);padding:0}
/* Optional army layout; the original panels retain their original markup. */
body:not(.army-panel-layout) .dedicated-army{display:none}
.army-panel-layout .army-overview-mode>.dedicated-army,.army-panel-layout .army-overview-mode>#battle-controls{display:block!important}
/* Private order placement stays accessible in the original portrait layout. */
body.network-planning-mode:not(.army-panel-layout) .dedicated-army:not([hidden]){display:block}
.army-mini-unit.bonding-eligible{border-color:var(--accent);box-shadow:0 0 0 1px #c8e89655}
.army-mini-unit.bonding-selected{outline:2px solid var(--accent);outline-offset:2px}
.bonding-eligible .army-mini-caret{padding:10px 4px;cursor:pointer}
/* All card supplies share Vile Injection's physical marker stack. */
.stat-shield-supplies{position:absolute;left:-4px;bottom:7px;display:flex;flex-direction:column;gap:2px;width:44px}
.stat-shield-supplies .stat-shield-markers{position:static;min-width:44px;color:#e4e5dc}
.stat-shield-supplies .stat-shield-markers svg text{paint-order:stroke fill;stroke:#242720;stroke-width:1.2;stroke-linejoin:round;text-shadow:none}
#figure-statuses .support-source-unit>.army-mini-banner{min-height:48px;padding:8px 8px 8px 85px;text-align:center;background:linear-gradient(110deg,#244f64,#18343f);color:#b9e8fc;border:0;border-radius:0}
#figure-statuses .support-source-unit .army-mini-name{font-size:12px;text-align:center}
#figure-statuses .support-source-unit>.army-mini-banner[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--accent);background:linear-gradient(110deg,#315b49,#244336)}
#action-bar #figure-statuses .support-source-unit>.army-mini-banner.injection-toggle-on{box-shadow:inset 0 0 0 2px #edd666,inset 0 4px 8px #0005;background:linear-gradient(110deg,#495132,#35452d)}
