/* ListaWG · comando · 02-builder-catalogo-fichas.css — estilos deste jogo que ficavam no css/ da home.
   A tag <link> deste arquivo fica no index.html na mesma posição da cascata de antes: não mova. */
/* ===== comando-0281-support ===== */
.cmd-support-trees{margin-top:18px}.cmd-support-note,.cmd-source-note{color:var(--muted);font-size:11px}.cmd-support-tree{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:14px;margin:10px 0}.cmd-support-tree h4{margin:0 0 10px;color:#d6ae25}.cmd-support-stage{margin-top:10px}.cmd-support-stage>strong{display:block;border-bottom:1px solid var(--line);padding:6px 0}.cmd-support-stage>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.cmd-support-stage section{border:1px solid var(--line);border-radius:9px;padding:10px}.cmd-support-stage b,.cmd-support-stage small{display:block}.cmd-support-stage small{color:var(--muted);margin:5px 0}.cmd-support-stage p{font-size:11px;line-height:1.45;margin:5px 0}.cmd-cs-armour,.cmd-source-note{border:1px solid var(--line);border-radius:10px;padding:10px;margin-top:10px}@media(max-width:700px){.cmd-support-stage>div{grid-template-columns:1fr}}

/* ===== comando-0282-support-selection ===== */
.cmd-support-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.cmd-cp-total{min-width:118px;border:1px solid var(--line);border-radius:10px;padding:10px;text-align:center;background:var(--bg)}.cmd-cp-total span,.cmd-cp-total small{display:block;font-size:9px;color:var(--muted)}.cmd-cp-total b{display:block;font-size:24px;color:#d6ae25}.cmd-support-option{padding:0!important;overflow:hidden}.cmd-support-option button{width:100%;height:100%;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;text-align:left;padding:10px;cursor:pointer}.cmd-support-option button>span{display:block;font-weight:800}.cmd-support-option.selected{border-color:#d6ae25!important;box-shadow:inset 0 0 0 1px #d6ae25;background:color-mix(in srgb,#d6ae25 10%,var(--panel))}.cmd-support-option.selected button>span{color:#d6ae25}@media(max-width:700px){.cmd-support-head{flex-direction:column}.cmd-cp-total{width:100%;box-sizing:border-box}}

/* ===== comando-0284-validation ===== */
.cmd-validation{margin-top:12px;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--bg)}.cmd-validation.is-ok{border-color:color-mix(in srgb,#3aa76d 55%,var(--line))}.cmd-validation.is-error{border-color:color-mix(in srgb,#d44 65%,var(--line))}.cmd-validation-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.cmd-validation-head h4{margin:3px 0 7px}.cmd-validation-head>b{font-size:24px}.cmd-validation.is-ok .cmd-validation-head>b{color:#3aa76d}.cmd-validation.is-error .cmd-validation-head>b,.cmd-val-error{color:#d44}.cmd-validation p{margin:5px 0;font-size:11px;line-height:1.45}.cmd-val-warning{color:var(--muted)}.cmd-validation>small{display:block;margin-top:9px;padding-top:8px;border-top:1px solid var(--line);color:var(--muted)}

/* ===== comando-0287-catalog-tools ===== */
.cmd-catalog-tools{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;gap:10px;align-items:center;margin:0 0 10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.cmd-catalog-tools>div:first-child{display:grid;gap:2px}.cmd-catalog-tools small,.cmd-unit-type{display:block;color:var(--muted);font-size:9px}.cmd-catalog-tools input{width:100%;min-height:38px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);padding:8px 10px}.cmd-catalog-filters{display:flex;gap:5px;flex-wrap:wrap}.cmd-catalog-filters button{min-height:34px;padding:6px 9px;font-size:10px}.cmd-catalog-filters button.on{border-color:#d6ae25;box-shadow:inset 0 -2px #d6ae25}.cmd-unit-type{margin-top:3px;font-weight:600}.cmd-catalog-empty{padding:24px!important;text-align:center!important;color:#555}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:820px){.cmd-catalog-tools{grid-template-columns:1fr}.cmd-catalog-filters{display:grid;grid-template-columns:repeat(2,1fr)}.cmd-catalog-filters button{width:100%}}

/* ===== comando-0286-builder-layout ===== */
#comandoModule .comando-shell{width:min(1560px,100%)}
#comandoModule .cmd-resource-bar{position:sticky;top:0;z-index:20;margin:14px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 94%,transparent);backdrop-filter:blur(10px)}
#comandoModule .cmd-resource-bar .comando-totals{grid-template-columns:repeat(7,minmax(86px,1fr))}
#comandoModule .cmd-builder-grid{display:grid;grid-template-columns:minmax(420px,30fr) minmax(330px,45fr) minmax(300px,25fr);gap:12px;align-items:start}
#comandoModule .cmd-builder-pane{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:12px}
#comandoModule .cmd-catalog-pane{padding:0;overflow:hidden}#comandoModule .cmd-catalog-pane .cmd-catalog-tools{padding:12px}
#comandoModule .cmd-catalog-pane .comando-table-wrap{border-left:0;border-right:0;border-radius:0!important}
#comandoModule .cmd-catalog-pane .comando-points{min-width:0}#comandoModule .cmd-catalog-pane .comando-points th:nth-child(3),#comandoModule .cmd-catalog-pane .comando-points td:nth-child(3),#comandoModule .cmd-catalog-pane .comando-points th:nth-child(4),#comandoModule .cmd-catalog-pane .comando-points td:nth-child(4),#comandoModule .cmd-catalog-pane .comando-points th:nth-child(5),#comandoModule .cmd-catalog-pane .comando-points td:nth-child(5),#comandoModule .cmd-catalog-pane .comando-points th:nth-child(8),#comandoModule .cmd-catalog-pane .comando-points td:nth-child(8),#comandoModule .cmd-catalog-pane .comando-points th:nth-child(9),#comandoModule .cmd-catalog-pane .comando-points td:nth-child(9){display:none}
#comandoModule .cmd-catalog-pane .comando-points caption{font-size:15px}#comandoModule .cmd-catalog-pane .comando-points th,#comandoModule .cmd-catalog-pane .comando-points td{padding:8px 6px}
#comandoModule .cmd-force-sheet{appearance:none;border:0;background:transparent;color:inherit;padding:0;font:inherit;font-weight:900;text-align:left;cursor:pointer}#comandoModule .cmd-force-sheet:hover{text-decoration:underline;color:#d6ae25}#comandoModule .comando-army{margin:0;border:0;padding:0;background:transparent}#comandoModule .cmd-force-pane .comando-army-row{grid-template-columns:minmax(0,1fr) auto}#comandoModule .cmd-force-pane .comando-army-row small{grid-column:1/-1}
#comandoModule .cmd-support-pane .cmd-support-trees{margin-top:0}#comandoModule .cmd-support-pane .cmd-support-stage>div{grid-template-columns:1fr}#comandoModule .cmd-support-pane .cmd-support-head{display:block}#comandoModule .cmd-support-pane .cmd-cp-total{margin-top:8px}
#comandoModule .cmd-mobile-tabs{display:none}
@media(min-width:761px){#comandoSheet{background:rgba(0,0,0,.28);place-items:stretch end;padding:0}#comandoSheet .comando-sheet-card{width:min(620px,46vw);max-height:100dvh;height:100dvh;border-radius:16px 0 0 16px;border-top:0;border-bottom:0;border-right:0}}
@media(max-width:1050px) and (min-width:761px){#comandoModule .cmd-builder-grid{grid-template-columns:minmax(360px,1fr) minmax(330px,1fr)}#comandoModule .cmd-support-pane{grid-column:1/-1}#comandoModule .cmd-support-pane .cmd-support-stage>div{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){#comandoModule .cmd-resource-bar{margin:10px 0 8px;padding:8px}#comandoModule .cmd-resource-bar .comando-totals{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none}#comandoModule .cmd-resource-bar .comando-totals>div{min-width:88px;flex:0 0 auto}#comandoModule .cmd-mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;position:sticky;top:82px;z-index:19;background:var(--bg);padding:6px 0}#comandoModule .cmd-mobile-tabs button{min-height:38px;padding:6px;font-size:10px}#comandoModule .cmd-mobile-tabs button.on{border-color:#d6ae25;}#comandoModule .cmd-builder-grid{display:block}#comandoModule .cmd-builder-pane{display:none;border-radius:10px}#comandoModule .cmd-builder-pane.cmd-pane-active{display:block}#comandoModule .cmd-catalog-pane .comando-points th:nth-child(6),#comandoModule .cmd-catalog-pane .comando-points td:nth-child(6),#comandoModule .cmd-catalog-pane .comando-points th:nth-child(7),#comandoModule .cmd-catalog-pane .comando-points td:nth-child(7){display:none}#comandoModule .cmd-catalog-pane .comando-points{min-width:0}#comandoModule .cmd-catalog-pane .comando-points th:first-child,#comandoModule .cmd-catalog-pane .comando-points td:first-child{width:38px}#comandoModule .cmd-support-pane .cmd-support-stage>div{grid-template-columns:1fr}}

/* ===== comando-0287-catalog-layout ===== */
/* Alpha 0.34.20 — COMANDO catalog hierarchy: title > search > filters */
#comandoModule .cmd-catalog-tools{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px 14px 12px;margin:0 0 10px}
#comandoModule .cmd-catalog-tools>div:first-child{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;width:100%}
#comandoModule .cmd-catalog-tools>div:first-child strong{font-size:15px;line-height:1.15}
#comandoModule .cmd-catalog-tools>div:first-child small{flex:0 0 auto;text-align:right}
#comandoModule .cmd-catalog-tools>label{display:block;width:100%;padding:0 4px;box-sizing:border-box}
#comandoModule .cmd-catalog-tools input{display:block;width:100%;box-sizing:border-box}
#comandoModule .cmd-catalog-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%}
#comandoModule .cmd-catalog-filters button{width:100%;min-width:0;min-height:36px}
@media(max-width:760px){#comandoModule .cmd-catalog-tools{padding:12px 10px 10px;gap:9px}#comandoModule .cmd-catalog-tools>label{padding:0 2px}#comandoModule .cmd-catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}}
@media(max-width:390px){#comandoModule .cmd-catalog-tools>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}#comandoModule .cmd-catalog-tools>div:first-child small{text-align:left}}

/* ===== comando-0288-force-organization ===== */
/* Alpha 0.34.20 — COMANDO force organization and readable roster cards */
#comandoModule .cmd-force-group{margin:10px 0 16px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg)}
#comandoModule .cmd-force-group>header{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:color-mix(in srgb,var(--panel) 86%,var(--text) 14%);border-bottom:1px solid var(--line);font-size:10px;font-weight:900;letter-spacing:.08em}
#comandoModule .cmd-force-group>header b{display:grid;place-items:center;min-width:24px;height:24px;border:1px solid var(--line);border-radius:999px;color:#d6ae25;background:var(--panel)}
#comandoModule .cmd-force-group .comando-army-row{padding:10px;margin:0;border-bottom:1px solid var(--line)}
#comandoModule .cmd-force-group .comando-army-row:last-child{border-bottom:0}
#comandoModule .cmd-force-unit{min-width:0}.cmd-force-unit strong,.cmd-force-unit small{display:block}
#comandoModule .cmd-force-unit small{margin-top:3px;color:var(--muted);font-size:9px}
#comandoModule .cmd-force-costs{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
#comandoModule .cmd-force-costs span{border:1px solid var(--line);border-radius:6px;padding:3px 5px;font-size:8px;color:var(--muted);background:var(--panel)}
#comandoModule .cmd-force-costs b{color:var(--text);font-size:9px}
#comandoModule .cmd-force-empty{margin:12px 0;padding:22px 12px;border:1px dashed var(--line);border-radius:10px;text-align:center;color:var(--muted);font-size:11px}
@media(max-width:760px){#comandoModule .cmd-force-group .comando-army-row{grid-template-columns:minmax(0,1fr) auto}#comandoModule .cmd-force-costs{gap:4px}}

/* ===== comando-0289-datasheet-ui ===== */
/* Alpha 0.34.20 — COMANDO readable builder datasheets */
#comandoSheet .comando-sheet-card{background:var(--bg,#0b0e11);color:var(--text,#f4f5f6)}
#comandoSheetBody{clear:both}.cmd-datasheet-v2{padding:0 0 24px;font-family:Arial,sans-serif}.cmd-ds-hero{display:grid;grid-template-columns:116px minmax(0,1fr);min-height:116px;border-bottom:1px solid var(--line,#454b52)}
.cmd-ds-portrait{overflow:hidden;background:#151a20}.cmd-ds-portrait img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top}.cmd-ds-title{padding:18px 20px;align-self:center}.cmd-ds-title>span,.cmd-ds-section-title>span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#d6ae25}.cmd-ds-title h3{margin:4px 0 5px;font-size:25px;line-height:1.05}.cmd-ds-title p{margin:0;color:var(--muted,#aeb5bd);font-size:11px}
.cmd-ds-profile{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line,#454b52)}.cmd-ds-profile>div,.cmd-ds-armour>div{padding:10px 12px;border-right:1px solid var(--line,#454b52);border-bottom:1px solid var(--line,#454b52)}.cmd-ds-profile small,.cmd-ds-armour small,.cmd-ds-weapon small{display:block;font-size:8px;letter-spacing:.08em;color:var(--muted,#aeb5bd)}.cmd-ds-profile b,.cmd-ds-armour b{display:block;margin-top:3px;font-size:17px}
.cmd-ds-block{padding:14px 16px 0}.cmd-ds-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:7px;border-bottom:2px solid #d6ae25}.cmd-ds-section-title small{display:grid;place-items:center;min-width:22px;height:22px;border:1px solid var(--line,#454b52);border-radius:999px;color:var(--muted,#aeb5bd)}.cmd-ds-armour{display:grid;grid-template-columns:repeat(4,1fr);margin-top:10px;border:1px solid var(--line,#454b52);border-radius:8px;overflow:hidden}.cmd-ds-armour>div{border-bottom:0;text-align:center}.cmd-ds-armour>div:last-child{border-right:0}
.cmd-ds-weapon-list,.cmd-ds-rules{display:grid;gap:9px;margin-top:10px}.cmd-ds-weapon{border:1px solid var(--line,#454b52);border-radius:9px;overflow:hidden;background:var(--panel,#111820)}.cmd-ds-weapon>header{display:flex;justify-content:space-between;align-items:start;gap:10px;padding:10px 11px;border-bottom:1px solid var(--line,#454b52)}.cmd-ds-weapon h5,.cmd-ds-rule h5{margin:2px 0 0;font-size:13px}.cmd-ds-weapon>header>span{font-size:8px;color:var(--muted,#aeb5bd);white-space:nowrap}.cmd-ds-weapon>header>span b{font-size:12px;color:var(--text,#fff)}.cmd-ds-ranges{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line,#454b52)}.cmd-ds-ranges>div{padding:8px 10px;border-right:1px solid var(--line,#454b52)}.cmd-ds-ranges>div:last-child{border-right:0}.cmd-ds-ranges b{display:block;margin-top:3px;font-size:11px}.cmd-ds-weapon-stats{display:grid;grid-template-columns:1.25fr .65fr 1.1fr}.cmd-ds-weapon-stats>span{padding:8px 10px;border-right:1px solid var(--line,#454b52)}.cmd-ds-weapon-stats>span:last-child{border-right:0}.cmd-ds-weapon-stats b{display:block;margin-top:3px;font-size:10px}.cmd-ds-trait{padding:9px 10px;border-top:1px solid var(--line,#454b52);background:color-mix(in srgb,var(--panel,#111820) 88%,#d6ae25 12%)}.cmd-ds-trait p{margin:3px 0 0;font-size:10px;line-height:1.4}
.cmd-ds-rule{padding:10px 11px;border:1px solid var(--line,#454b52);border-radius:8px;background:var(--panel,#111820)}.cmd-ds-rule p{margin:5px 0 0;color:var(--muted,#c0c5cb);font-size:10px;line-height:1.45}.cmd-ds-empty{margin:10px 0;color:var(--muted,#aeb5bd);font-size:10px}.cmd-source-note{margin:16px;padding:10px 12px;border:1px solid #d6ae25;border-radius:8px;background:rgba(214,174,37,.08)}.cmd-source-note b{font-size:9px;color:#d6ae25}.cmd-source-note p{margin:5px 0 0;font-size:10px;line-height:1.45}
@media(max-width:760px){#comandoSheet{padding:0;background:var(--bg,#0b0e11)}#comandoSheet .comando-sheet-card{width:100vw;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;overflow:auto}#comandoSheet .cmd-sheet-close{position:sticky;top:8px;margin-right:8px}.cmd-ds-hero{grid-template-columns:88px minmax(0,1fr);min-height:100px}.cmd-ds-title{padding:14px 12px}.cmd-ds-title h3{font-size:20px}.cmd-ds-profile{grid-template-columns:repeat(3,1fr)}.cmd-ds-profile>div{padding:8px}.cmd-ds-profile b{font-size:15px}.cmd-ds-block{padding:12px 10px 0}.cmd-ds-armour{grid-template-columns:repeat(2,1fr)}.cmd-ds-armour>div:nth-child(2){border-right:0}.cmd-ds-armour>div:nth-child(-n/**/+2){border-bottom:1px solid var(--line,#454b52)}.cmd-ds-weapon-stats{grid-template-columns:1fr 1fr}.cmd-ds-weapon-stats>span:nth-child(2){border-right:0}.cmd-ds-weapon-stats>span:last-child{grid-column:1/-1;border-top:1px solid var(--line,#454b52);border-right:0}.cmd-source-note{margin:12px 10px}}

/* ===== comando-02811-stability-support ===== */
/* Alpha 0.34.20 — stable roster identifiers + support summary/polish */
.cmd-force-support-summary{margin-top:14px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel)}.cmd-force-support-summary>header{display:flex;justify-content:space-between;gap:10px;padding:9px 11px;background:color-mix(in srgb,#d6ae25 9%,var(--panel));border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.06em}.cmd-force-support-summary>header b{color:#d6ae25}.cmd-force-support-summary>button{width:100%;display:flex;justify-content:space-between;gap:10px;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:inherit;padding:9px 11px}.cmd-force-support-summary>button:last-child{border-bottom:0}.cmd-force-support-summary>button span{font-weight:800;font-size:11px}.cmd-force-support-summary>button small{color:var(--muted);white-space:nowrap}.cmd-support-stage>strong{display:flex;align-items:center;gap:7px}.cmd-support-stage>strong:before{content:"";width:7px;height:7px;border-radius:50%;background:#d6ae25;box-shadow:0 0 0 3px color-mix(in srgb,#d6ae25 18%,transparent)}.cmd-support-option button:focus-visible{outline:2px solid #d6ae25;outline-offset:-2px}@media(max-width:760px){.cmd-force-support-summary>button{align-items:flex-start}.cmd-force-support-summary>button small{white-space:normal;text-align:right}}

/* ===== comando-02812-review ===== */
#comandoModule .cmd-review-open{width:100%;margin:12px 0 2px;min-height:44px;font-weight:900;border-color:#d6ae25}
.cmd-review-card{width:min(980px,100%)}.cmd-review-head{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px}.cmd-review-head h3{font-size:28px;margin:4px 0}.cmd-review-resource-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:14px 0}.cmd-review-resource-grid>div,.cmd-review-unit,.cmd-review-support article{border:1px solid var(--line);border-radius:10px;padding:10px}.cmd-review-resource-grid span,.cmd-review-unit small,.cmd-review-support small{display:block;color:var(--muted);font-size:10px}.cmd-review-resource-grid b{font-size:20px}.cmd-review-section{margin-top:18px}.cmd-review-section>h4{color:#d6ae25;border-bottom:1px solid var(--line);padding-bottom:7px}.cmd-review-unit{margin:7px 0}.cmd-review-unit header{display:flex;justify-content:space-between;gap:10px}.cmd-review-options{margin-top:6px;font-size:11px}.cmd-review-support{display:grid;gap:7px}.cmd-review-validation{margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:10px}.cmd-review-validation.ok{border-color:#3aa76d}.cmd-review-validation.bad{border-color:#d44}.cmd-review-actions{display:flex;gap:8px;margin-top:14px}.cmd-review-actions button{flex:1}@media(max-width:700px){.cmd-review-resource-grid{grid-template-columns:repeat(2,1fr)}.cmd-review-actions{flex-direction:column}}
@media print{body>*{display:none!important}#comandoReview{display:block!important;position:static!important;background:#fff!important;color:#000!important;padding:0!important}#comandoReview .comando-sheet-card{display:block!important;max-height:none!important;width:100%!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#000!important}#comandoReview .cmd-sheet-close,#comandoReview .cmd-review-actions{display:none!important}#comandoReview .cmd-review-unit,#comandoReview .cmd-review-resource-grid>div,#comandoReview .cmd-review-support article,#comandoReview .cmd-review-validation{border-color:#bbb!important}}

/* ===== comando-02813-mobile-ux ===== */
/* Alpha 0.34.20 — COMANDO mobile-first tabletop builder polish */
@media(max-width:760px){
  #comandoModule .comando-shell{width:100%;padding:10px 10px 92px}
  #comandoModule .comando-head{align-items:flex-start;gap:10px;padding-bottom:10px}
  #comandoModule .comando-head h2{font-size:24px;margin:2px 0}
  #comandoModule .comando-head p{font-size:10px;line-height:1.35}
  #comandoModule .comando-head-actions{max-width:48%;display:flex;overflow-x:auto;gap:5px;padding-bottom:4px;scrollbar-width:none;overscroll-behavior-x:contain}
  #comandoModule .comando-head-actions::-webkit-scrollbar,#comandoModule .cmd-resource-bar .comando-totals::-webkit-scrollbar{display:none}
  #comandoModule .comando-head-actions button{flex:0 0 auto;min-height:34px;padding:6px 8px;font-size:8px}
  #comandoModule .comando-side{margin:10px 0;gap:6px}
  #comandoModule .comando-side button{min-height:44px;padding:8px;font-size:11px}
  #comandoModule .cmd-resource-bar{position:sticky;top:0;z-index:24;border-radius:10px;box-shadow:0 8px 22px rgba(0,0,0,.18)}
  #comandoModule .cmd-resource-bar .comando-totals>div{min-width:76px;padding:7px 8px}
  #comandoModule .cmd-resource-bar .comando-totals span{font-size:8px}
  #comandoModule .cmd-resource-bar .comando-totals b{font-size:17px}
  #comandoModule .cmd-mobile-tabs{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:9300;padding:8px max(10px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right));background:color-mix(in srgb,var(--bg) 94%,transparent);border-top:1px solid var(--line);box-shadow:0 -8px 28px rgba(0,0,0,.22);backdrop-filter:blur(12px)}
  #comandoModule .cmd-mobile-tabs button{min-height:46px;border-radius:9px;font-size:9px;font-weight:900}
  #comandoModule .cmd-mobile-tabs button.on{background:color-mix(in srgb,#d6ae25 14%,var(--panel));color:#d6ae25;box-shadow:inset 0 -3px #d6ae25}
  #comandoModule .cmd-builder-pane{padding:10px}
  #comandoModule .cmd-pane-head{position:sticky;top:72px;z-index:12;background:var(--panel);padding:4px 0 8px}
  #comandoModule .cmd-catalog-tools{position:sticky;top:70px;z-index:13;background:var(--panel);border-bottom:1px solid var(--line)}
  #comandoModule .cmd-catalog-tools input{min-height:42px;font-size:16px}
  #comandoModule .cmd-catalog-filters button{min-height:40px}
  #comandoModule .cmd-force-group .comando-army-row{padding:12px 9px}
  #comandoModule .cmd-army-step{grid-template-columns:40px 34px 40px}
  #comandoModule .cmd-army-step button,#comandoModule .cmd-option-step button{min-height:40px;min-width:40px;font-size:18px}
  #comandoModule .cmd-force-sheet{font-size:13px;line-height:1.25}
  #comandoModule .cmd-force-costs span{padding:5px 6px;font-size:8px}
  #comandoModule .cmd-review-open{min-height:48px}
  #comandoModule .cmd-support-option button{min-height:48px}
  #comandoSheet .comando-sheet-card,#comandoReview .comando-sheet-card{padding:12px 10px calc(22px + env(safe-area-inset-bottom))}
  #comandoSheet .cmd-sheet-close,#comandoReview .cmd-sheet-close{min-width:42px;min-height:42px;border-radius:999px;background:var(--panel);box-shadow:0 3px 14px rgba(0,0,0,.25)}
  #comandoReview{padding:0}
  #comandoReview .cmd-review-card{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}
  .cmd-review-resource-grid{gap:6px}.cmd-review-resource-grid>div{padding:9px}
}
@media(max-width:390px){#comandoModule .comando-head{display:block}#comandoModule .comando-head-actions{max-width:100%;margin-top:8px}#comandoModule .cmd-resource-bar .comando-totals>div{min-width:72px}}

/* ===== comando-02814-saved-rosters ===== */
#comandoSaved .cmd-saved-card{width:min(720px,94vw);max-height:min(82dvh,760px);overflow:auto}.cmd-saved-head h3{margin:4px 0}.cmd-saved-head p{color:var(--muted);font-size:12px}.cmd-saved-list{display:grid;gap:8px;margin-top:14px}.cmd-saved-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--bg)}.cmd-saved-list article b,.cmd-saved-list article small{display:block}.cmd-saved-list article small{color:var(--muted);margin-top:4px}.cmd-saved-list article>div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.cmd-saved-list button{min-height:36px}@media(max-width:560px){#comandoSaved .cmd-saved-card{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.cmd-saved-list article{align-items:stretch;flex-direction:column}.cmd-saved-list article>div:last-child{display:grid;grid-template-columns:repeat(3,1fr)}}

/* ===== comando-02819-standalone-view ===== */
/* COMANDO is a first-class ListaWG view, not a fixed overlay over the portal. */
#comandoModule.comando-module{position:relative!important;inset:auto!important;z-index:auto!important;min-height:calc(100dvh - 72px);overflow:visible!important;background:var(--bg)}
body.comando-active #portal,body.comando-active #home,body.comando-active #builder,body.comando-active #mobileTabs{display:none!important}
body.comando-active{overflow-y:auto!important}
@media(max-width:760px){#comandoModule.comando-module{min-height:100dvh}.comando-shell{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}}

/* Alpha 0.34.20 — BFG builder autosave status */
.builder-autosave-state{display:inline-flex;align-items:center;min-height:30px;padding:0 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.04em;opacity:.78;white-space:nowrap}
.builder-autosave-state[data-state="saving"]{opacity:.55}.builder-autosave-state[data-state="error"]{border-color:#b95b5b;opacity:1}.builder-autosave-state[data-state="restored"]{border-color:#9b843b;opacity:1}
@media(max-width:720px){.builder-autosave-state{width:100%;justify-content:center;order:20}}

