:root{--iwl-line:rgba(89,190,232,.24);--iwl-text:#eaf8ff;--iwl-muted:#88a8b7;--iwl-surface:rgba(4,24,36,.90);--iwl-surface-2:rgba(7,35,49,.88)}
body.iwl-page{min-height:100vh;background:#06131c;color:var(--iwl-text)}
body.iwl-page #battleBackground{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.82) brightness(.56);z-index:-3}
body.iwl-page .bg-overlay{position:fixed;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(3,14,23,.34),rgba(3,16,25,.68) 48%,rgba(2,11,18,.88)),linear-gradient(90deg,rgba(15,50,87,.18),transparent 46%,rgba(127,38,13,.14));pointer-events:none}
body.iwl-page .command-hub.omnisim-workspace{width:min(100% - 42px,1940px)!important;max-width:none!important;padding-bottom:26px!important}
.iwl-cinematic{margin-top:16px!important}.iwl-cinematic .omnisim-hero-stage{aspect-ratio:17/5;min-height:0!important;border-radius:18px!important;overflow:hidden!important;box-shadow:0 24px 70px rgba(0,0,0,.34)}.iwl-header-scene{width:100%;height:100%;object-fit:cover}
.iwl-explainer{margin:12px 0 18px!important}.iwl-explainer .ttr-explainer-mark{min-width:70px;text-align:center}.iwl-explainer p{max-width:none!important}

/* Top command row: intentionally owned by OmniSIM layout rules. */
.iwl-command-host{margin:0!important}.iwl-command-center{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}.iwl-command-center>.rail-sticky{overflow:visible!important}
.iwl-battle-main{margin:0!important}.iwl-optimizer-column{margin-top:23px!important}.iwl-optimize-card{width:100%!important;text-align:left!important}.iwl-optimize-card .omnisim-optimizer-title{position:relative;z-index:2}
.iwl-formation-summary{position:relative;z-index:2;display:grid!important;gap:8px!important;margin-top:18px!important;align-content:end!important;min-height:236px!important}
.iwl-summary-squad{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 9px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:rgba(3,12,20,.46);backdrop-filter:blur(3px)}
.iwl-summary-squad>span{font-size:.55rem;font-weight:950;letter-spacing:.055em;text-transform:uppercase;color:#a9c4cf}.iwl-summary-heroes{display:flex;align-items:center;gap:4px;min-width:0}.iwl-summary-heroes img,.iwl-summary-empty{width:38px;height:38px;border-radius:8px;object-fit:cover;border:1px solid rgba(255,255,255,.14);background:#071019}.iwl-summary-empty{display:grid;place-items:center;color:#76909a;font-size:.34rem;font-weight:900}.iwl-summary-ratio{white-space:nowrap;color:#fff;font-size:.68rem;font-weight:950}
.iwl-recommend-disclosure{margin-top:8px!important}.iwl-recommend-disclosure>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:38px!important;padding:8px 10px!important;border:1px solid rgba(92,187,224,.20)!important;border-radius:9px!important;background:rgba(4,26,38,.78)!important;color:#dff5ff!important;cursor:pointer!important;list-style:none!important}.iwl-recommend-disclosure>summary::-webkit-details-marker{display:none}.iwl-recommend-disclosure>summary span{font-size:.62rem;font-weight:950}.iwl-recommend-disclosure>summary small{color:#7f9fac;font-size:.47rem}.iwl-side-recommendations{display:grid!important;gap:7px!important;margin-top:7px!important}.iwl-side-recommendations .command-suggestions-empty{min-height:68px;padding:12px;border:1px dashed rgba(111,190,221,.16);border-radius:9px;color:#6f8e9c;font-size:.54rem;line-height:1.5;background:rgba(3,20,30,.46)}
.iwl-simulation-console .omnisim-simulation-hero{background-image:linear-gradient(180deg,rgba(7,35,56,.24),rgba(4,22,36,.58)),url('/static/image/icefire-warhymn-league/hub-preview.png')!important;background-position:50% 46%!important;background-size:cover!important}
.iwl-sim-actions{margin-bottom:8px!important}.iwl-sim-actions .optimizer-gen-compact{min-width:0!important;box-sizing:border-box!important}.iwl-sim-actions .optimizer-gen-compact select{box-sizing:border-box!important;outline-offset:-2px!important}.iwl-secondary-report-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.42fr);gap:10px;margin:0 0 8px}.iwl-secondary-report-actions .battle-report-open{grid-column:auto!important;width:100%!important;min-width:0!important;min-height:46px!important}.iwl-search-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:center;margin:10px 0 0!important;padding:10px 12px!important;border:1px solid rgba(93,196,235,.20);border-radius:9px;background:rgba(4,29,42,.88)}.iwl-search-progress>div{grid-column:1/-1;height:7px;border-radius:999px;background:#0e3140;overflow:hidden}.iwl-search-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#35c3f4,#ff7b49);transition:width .18s ease}.iwl-search-progress span{font-size:.56rem;color:#9db9c5}.iwl-search-progress button{min-height:30px;border:1px solid rgba(255,102,102,.27);border-radius:6px;background:#3b171d;color:#ffd5d5;font-size:.5rem;font-weight:900}
.iwl-mode-strip{margin-top:12px!important}.iwl-mode-toggle{cursor:pointer!important}.iwl-mode-toggle input{appearance:none;width:42px;height:24px;border-radius:999px;border:1px solid rgba(116,200,230,.25);background:#112f3c;position:relative}.iwl-mode-toggle input::after{content:"";position:absolute;width:18px;height:18px;top:2px;left:2px;border-radius:50%;background:#7699a7;transition:.15s}.iwl-mode-toggle input:checked{background:#156f8f;border-color:#55c8ee}.iwl-mode-toggle input:checked::after{left:20px;background:#fff}

/* OmniSIM-style Meta and account recommendation strips. */
.iwl-meta-strip{margin-top:18px!important}.iwl-meta-action{display:grid!important;gap:8px!important}.iwl-meta-action>.rail-meta-btn{width:100%!important;min-height:56px!important}.iwl-meta-action .omnisim-meta-scope{width:100%!important}.iwl-my-recommendations-strip .omnisim-meta-hero.iwl-my-rec-icon{display:grid;place-items:center;border-radius:50%;font-size:2.2rem;color:#fff0b8;background:radial-gradient(circle,#936d24,#35230b 72%);box-shadow:0 0 34px rgba(255,199,79,.18)}.iwl-my-rec-btn{background:linear-gradient(135deg,#7f531c,#ad6e23,#386a86)!important}

/* Editable side panels: reuse OmniSIM's army-panel / hero-card / troop-card language. */
.iwl-army-grid{margin-top:18px!important}.iwl-army-grid>.army-panel{min-width:0!important}.iwl-army-title{display:grid!important;grid-template-columns:1fr auto!important;align-items:end!important;gap:4px 10px!important}.iwl-army-title span{font-size:1.2rem!important}.iwl-army-title small{grid-column:1;color:#7895a3;font-size:.56rem!important}.iwl-army-title strong{grid-column:2;grid-row:1/3;align-self:center;color:#dff7ff;font-size:.7rem!important}
.iwl-side-common{display:grid;gap:10px;margin-top:10px}.iwl-common-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.iwl-common-head h3{margin:0;font-size:.78rem}.iwl-common-head small{color:#7896a4;font-size:.53rem}.iwl-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.iwl-stat-card{padding:9px;border:1px solid rgba(110,190,220,.18);border-radius:8px;background:rgba(5,26,38,.62)}.iwl-stat-card .type{display:block;margin-bottom:6px;color:#81a8b7;font-size:.5rem;font-weight:950;text-transform:uppercase}.iwl-stat-card label{display:grid;grid-template-columns:1fr 68px auto;gap:5px;align-items:center;margin-top:4px;color:#87a4b0;font-size:.48rem}.iwl-stat-card input{width:100%;min-width:0;height:30px;border:1px solid rgba(110,190,220,.20);border-radius:5px;background:#071c27;color:#e7f8ff;padding:0 7px}.iwl-global-unknown{padding:12px;border:1px dashed rgba(108,195,227,.22);border-radius:8px;background:rgba(5,26,38,.52);color:#8eaeba;font-size:.58rem;line-height:1.5}.iwl-opponent-gear-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid rgba(108,195,227,.18);border-radius:8px;background:rgba(5,26,38,.50)}.iwl-opponent-gear-strip b,.iwl-opponent-gear-strip small{display:block}.iwl-opponent-gear-strip b{font-size:.61rem}.iwl-opponent-gear-strip small{margin-top:2px;color:#7896a4;font-size:.48rem}.iwl-opponent-gear-strip button{min-height:32px;border:1px solid rgba(101,198,235,.28);border-radius:6px;background:#0a3346;color:#e1f7ff;font-size:.5rem;font-weight:900}
.iwl-bonus-panel{border:1px solid rgba(104,190,222,.17);border-radius:8px;background:rgba(4,23,34,.52);overflow:hidden}.iwl-bonus-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 11px;list-style:none;cursor:pointer}.iwl-bonus-panel>summary::-webkit-details-marker{display:none}.iwl-bonus-panel>summary b,.iwl-bonus-panel>summary small{display:block}.iwl-bonus-panel>summary b{font-size:.61rem}.iwl-bonus-panel>summary small{margin-top:2px;color:#7795a2;font-size:.47rem}.iwl-bonus-panel>summary strong{font-size:.46rem;color:#75d8f7}.iwl-bonus-body{display:grid;gap:10px;padding:10px;border-top:1px solid rgba(104,190,222,.12)}.iwl-bonus-section-head b,.iwl-bonus-section-head small{display:block}.iwl-bonus-section-head b{font-size:.58rem}.iwl-bonus-section-head small{margin-top:2px;color:#7795a2;font-size:.47rem}.iwl-pet-skill-grid,.iwl-passive-pet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}.iwl-pet-skill-grid label,.iwl-passive-pet-grid label{display:grid;gap:3px;padding:7px;border:1px solid rgba(104,190,222,.12);border-radius:6px;background:rgba(0,0,0,.08);font-size:.48rem}.iwl-pet-skill-grid small{color:#718f9c}.iwl-pet-skill-grid select,.iwl-passive-pet-grid input,.iwl-bonus-body>section>select{height:30px;border:1px solid rgba(104,190,222,.18);border-radius:5px;background:#071c27;color:#e7f8ff;padding:0 7px}.iwl-no-city-note{padding:8px 9px;border-left:3px solid #f2a64a;background:rgba(242,166,74,.07);color:#8eaeba;font-size:.5rem;line-height:1.45}.iwl-no-city-note b{color:#ffd494}
.iwl-squad-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0 9px;padding:4px;border:1px solid rgba(106,192,224,.18);border-radius:10px;background:rgba(4,23,34,.54)}.iwl-squad-tabs button{min-height:38px;border:0;border-radius:7px;background:transparent;color:#7899a7;font-size:.56rem;font-weight:950;cursor:pointer}.iwl-squad-tabs button.active{background:linear-gradient(180deg,#2f9cbc,#207490);color:#fff;box-shadow:0 5px 15px rgba(0,0,0,.18)}
.iwl-squad-editor{display:grid;gap:10px}.iwl-squad-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.iwl-squad-head h3{margin:0;font-size:.84rem}.iwl-squad-head small{color:#7594a1;font-size:.5rem}.iwl-power-editor{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);gap:5px;padding:9px;border:1px solid rgba(106,192,224,.16);border-radius:8px;background:rgba(5,26,38,.56)}.iwl-power-editor label{display:grid;gap:3px;color:#7899a7;font-size:.48rem}.iwl-power-editor input{height:34px;border:1px solid rgba(108,198,232,.22);border-radius:6px;background:#071c27;color:#effaff;padding:0 8px;font-weight:900}.iwl-power-editor button{min-width:52px;border:1px solid rgba(108,198,232,.22);border-radius:6px;background:#0a3042;color:#dff7ff;font-size:.48rem;font-weight:900;cursor:pointer}
/* IWL has exactly nine hero cards per side. Keep them fully paintable like TTR so
   fast scrolling/full-page captures cannot leave off-screen OmniSIM hero cards blank. */
.iwl-page .hero-card{content-visibility:visible;contain-intrinsic-size:auto}

.iwl-hero-grid{display:grid;grid-template-columns:1fr;gap:8px}.iwl-hero-grid .hero-card{position:relative;min-width:0!important}.iwl-hero-grid .hero-picker-v11{display:none!important}.iwl-hero-grid .hero-photo-select{width:100%!important;cursor:pointer!important}.iwl-no-hero-photo{display:grid;place-items:center;width:100%;height:74px;border-radius:9px;background:#05080d;border:1px solid rgba(255,255,255,.09);color:#dfe8ed;font-size:.61rem;font-weight:950;text-align:center}.iwl-no-hero-photo small{display:block;margin-top:2px;color:#768590;font-size:.43rem;font-weight:750}.iwl-hero-clear{position:absolute;right:7px;top:7px;z-index:3;width:24px;height:24px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(2,7,12,.84);color:#fff;cursor:pointer}.iwl-hero-progress-main{grid-column:1/-1!important}.iwl-hero-grid .hero-widget-corner img{width:30px;height:30px;object-fit:contain}.iwl-hero-grid .hero-widget-corner{display:flex!important;align-items:center!important;gap:6px!important}.iwl-hero-grid .hero-widget-corner label{margin-right:auto}.iwl-hero-grid .hero-widget-corner select{width:74px!important}.iwl-hero-grid .snowflake-row{justify-content:center!important}.iwl-hero-grid .snowflake{cursor:pointer!important}.iwl-hero-grid .snowflake.is-disabled{opacity:.34;pointer-events:none}
.iwl-gear-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.iwl-gear-row label{display:grid;gap:4px;padding:7px;border:1px solid rgba(106,192,224,.14);border-radius:7px;background:rgba(5,26,38,.50);font-size:.48rem;color:#7d9aa7}.iwl-gear-row select{height:31px;border:1px solid rgba(106,192,224,.18);border-radius:5px;background:#071c27;color:#e7f7ff}.iwl-formation-shell{padding:10px;border:1px solid rgba(106,192,224,.16);border-radius:9px;background:rgba(5,26,38,.50)}.iwl-formation-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.iwl-formation-mode-toggle{display:flex;gap:4px;padding:3px;border:1px solid rgba(106,192,224,.16);border-radius:7px;background:#071b27}.iwl-formation-mode-toggle button{min-height:30px;padding:0 10px;border:0;border-radius:5px;background:transparent;color:#7f9da9;font-size:.48rem;font-weight:900;cursor:pointer}.iwl-formation-mode-toggle button.active{background:#2386a4;color:#fff}.iwl-army-total-field{display:grid;grid-template-columns:auto 118px;align-items:center;gap:7px;color:#7f9ba7;font-size:.49rem}.iwl-army-total-field input{height:32px;border:1px solid rgba(106,192,224,.18);border-radius:5px;background:#071c27;color:#fff;padding:0 8px;text-align:right}.iwl-ratio-wrap{display:grid;gap:7px}.iwl-ratio-control{margin:5px 0!important}.iwl-ratio-control .troop-type-icon{object-fit:contain!important}.iwl-ratio-total{display:flex;justify-content:flex-end;color:#7d9ba8;font-size:.49rem}.iwl-ratio-total b{margin-left:5px;color:#dff7ff}.iwl-count-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.iwl-count-grid .troop-card{padding:8px!important}.iwl-count-grid .troop-count-field{display:grid;gap:5px}.iwl-count-grid .troop-count-field span{font-size:.5rem;font-weight:950}.iwl-count-grid input{height:34px;border:1px solid rgba(106,192,224,.18);border-radius:6px;background:#071c27;color:#fff;padding:0 8px;text-align:right;font-weight:900}.iwl-report-lock{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border:1px solid rgba(255,190,89,.20);border-radius:7px;background:rgba(255,190,89,.06);color:#c9a96e;font-size:.49rem}.iwl-report-lock button{min-height:29px;border:1px solid rgba(255,190,89,.24);border-radius:5px;background:transparent;color:#ffd48b;font-size:.45rem;font-weight:900}

/* Hero picker uses OmniSIM loadout behavior. */
.iwl-hero-picker-body{padding:12px;max-height:72vh;overflow:auto}.iwl-hero-picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.iwl-hero-choice{display:grid;grid-template-rows:84px auto;gap:5px;padding:7px;border:1px solid rgba(108,194,226,.18);border-radius:9px;background:#071b27;color:#e8f8ff;cursor:pointer}.iwl-hero-choice:hover{border-color:#4dbbe2;transform:translateY(-1px)}.iwl-hero-choice img{width:100%;height:84px;object-fit:cover;border-radius:7px}.iwl-hero-choice b{font-size:.56rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iwl-hero-choice small{font-size:.44rem;color:#7f9ca8}.iwl-hero-choice.none{grid-template-rows:84px auto}.iwl-hero-choice.none .iwl-no-hero-photo{height:84px}

/* Global-meta result window, reused for Meta and My Recommendations. */
.iwl-search-result-list{display:grid;gap:12px}.iwl-search-result-card{position:relative;padding:14px;border:1px solid rgba(112,196,227,.18);border-left:4px solid #53c7f3;border-radius:14px;background:rgba(15,23,42,.68)}.iwl-search-result-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.iwl-search-result-card>header span{font-size:.5rem;font-weight:950;letter-spacing:.07em;color:#96aeb9}.iwl-search-result-card>header b{font-size:.78rem}.iwl-search-squads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}.iwl-search-squad{padding:8px;border:1px solid rgba(112,196,227,.12);border-radius:9px;background:rgba(2,8,15,.30)}.iwl-search-squad h4{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 6px;font-size:.56rem}.iwl-search-squad .heroes{display:flex;gap:4px}.iwl-search-squad .heroes img,.iwl-search-squad .iwl-summary-empty{width:42px;height:42px;border-radius:8px}.iwl-search-squad .ratio{margin-top:6px;font-size:.66rem;font-weight:950}.iwl-search-squad .gear{margin-top:3px;color:#7896a3;font-size:.44rem}.iwl-search-result-card footer{display:flex;justify-content:flex-end;margin-top:10px}.iwl-search-result-card footer button{min-height:34px;padding:0 12px;border:1px solid rgba(93,196,235,.28);border-radius:7px;background:#0b3b50;color:#e9faff;font-size:.49rem;font-weight:950;cursor:pointer}

/* Existing report / gear helper content, restyled into OmniSIM modal shells. */
.loadout-modal.open{display:flex!important;z-index:120000!important}.loadout-modal[aria-hidden="false"]{display:flex!important;z-index:120000!important}.iwl-gear-dialog{width:min(980px,96vw)!important;max-height:calc(100vh - var(--omni-topbar-actual-h,var(--omni-topbar-h,76px)) - 30px)!important;overflow:auto!important}.iwl-import-target{display:grid;gap:10px;padding:13px}.iwl-import-target label{display:grid;gap:5px;color:#7e9ca8;font-size:.54rem;font-weight:900}.iwl-import-target select{height:36px;border:1px solid rgba(108,195,228,.20);border-radius:6px;background:#071c27;color:#e7f8ff}.iwl-import-target p{margin:0;color:#7896a3;font-size:.53rem;line-height:1.45}.iwl-solid-btn{min-height:38px;border:1px solid rgba(86,200,242,.34);border-radius:7px;background:linear-gradient(135deg,#126582,#0a4057);color:#fff;font-weight:950;cursor:pointer}.iwl-modal-actions{display:flex;justify-content:flex-end;gap:7px;padding:10px 12px;border-top:1px solid rgba(108,195,228,.16)}.iwl-modal-actions button{min-height:34px;padding:0 12px;border:1px solid rgba(108,195,228,.18);border-radius:6px;background:#071c27;color:#dff7ff;font-weight:900}.iwl-modal-actions .primary{background:#0d5b78}.iwl-gear-manager-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:10px}.iwl-gear-manager-tabs button{min-height:34px;border:1px solid rgba(108,195,228,.16);border-radius:6px;background:#071c27;color:#7797a4}.iwl-gear-manager-tabs button.active{background:#1e7f9d;color:#fff}.iwl-gear-manager-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px 10px}.iwl-gear-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 10px 12px}.iwl-gear-profile-grid>section{padding:9px;border:1px solid rgba(108,195,228,.14);border-radius:8px;background:rgba(4,24,35,.58)}.iwl-gear-profile-grid h4{margin:0 0 7px;font-size:.58rem}.iwl-gear-piece{display:grid;grid-template-columns:1fr 74px 74px;gap:5px;align-items:center;margin-top:5px}.iwl-gear-piece span{font-size:.46rem;color:#7896a3}.iwl-gear-piece input,.iwl-gear-piece select{height:30px;border:1px solid rgba(108,195,228,.16);border-radius:5px;background:#071c27;color:#fff;min-width:0}
.iwl-sample-report-list{display:grid;gap:10px}.iwl-sample-report{border:1px solid rgba(106,192,224,.17);border-radius:10px;background:rgba(5,24,35,.55);overflow:hidden}.iwl-sample-report summary{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:10px;cursor:pointer;list-style:none}.iwl-sample-report summary::-webkit-details-marker{display:none}.iwl-sample-report summary>span{font-size:.45rem;font-weight:950;color:#70d4f7}.iwl-sample-report summary b,.iwl-sample-report summary small{display:block}.iwl-sample-report summary b{font-size:.59rem}.iwl-sample-report summary small{margin-top:2px;color:#7795a2;font-size:.46rem}.iwl-sample-report summary>strong{font-size:.45rem}.iwl-sample-report-body{padding:10px;border-top:1px solid rgba(106,192,224,.12)}.iwl-report-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.iwl-report-counts span{padding:7px;border-radius:6px;background:rgba(0,0,0,.12)}.iwl-report-counts small,.iwl-report-counts b{display:block}.iwl-report-counts small{font-size:.43rem;color:#7795a2}.iwl-report-counts b{margin-top:2px;font-size:.64rem}.iwl-report-sides{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.iwl-report-sides section{padding:8px;border:1px solid rgba(106,192,224,.12);border-radius:7px}.iwl-report-sides h4{margin:0 0 6px;font-size:.54rem}.iwl-sequence-list{display:grid;gap:8px}.iwl-sequence-step{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px;border:1px solid rgba(106,192,224,.14);border-radius:8px;background:rgba(4,23,34,.55)}.iwl-sequence-step>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#0b4056;color:#dff8ff;font-weight:950}.iwl-sequence-step b,.iwl-sequence-step small{display:block}.iwl-sequence-step b{font-size:.58rem}.iwl-sequence-step small{margin-top:2px;color:#7895a2;font-size:.47rem}.iwl-sequence-step strong{font-size:.56rem}

body.light-theme.iwl-page{--iwl-text:#173f4f;--iwl-muted:#587987}.light-theme .iwl-summary-squad,.light-theme .iwl-side-recommendations .command-suggestions-empty,.light-theme .iwl-stat-card,.light-theme .iwl-formation-shell,.light-theme .iwl-power-editor,.light-theme .iwl-gear-row label,.light-theme .iwl-global-unknown,.light-theme .iwl-bonus-panel,.light-theme .iwl-opponent-gear-strip{background:rgba(244,251,253,.90)!important;border-color:#bfdbe3!important;color:#173f4f!important}.light-theme .iwl-summary-ratio,.light-theme .iwl-army-title strong{color:#173f4f!important}.light-theme .iwl-stat-card input,.light-theme .iwl-pet-skill-grid select,.light-theme .iwl-passive-pet-grid input,.light-theme .iwl-bonus-body>section>select,.light-theme .iwl-gear-row select,.light-theme .iwl-army-total-field input,.light-theme .iwl-count-grid input,.light-theme .iwl-power-editor input,.light-theme .iwl-import-target select{background:#fff!important;color:#214b5a!important;border-color:#c2dce4!important}

@media(max-width:1180px){body.iwl-page .command-hub.omnisim-workspace{width:min(100% - 28px,1100px)!important}.iwl-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.iwl-hero-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.iwl-optimizer-column{margin-top:0!important}.iwl-formation-summary{min-height:190px!important}.iwl-sim-actions{grid-template-columns:116px minmax(0,1fr) 108px!important}.iwl-search-squads{grid-template-columns:1fr}.iwl-meta-strip{grid-template-columns:1fr minmax(260px,330px)!important}.iwl-gear-profile-grid{grid-template-columns:1fr}}
@media(max-width:760px){body.iwl-page .command-hub.omnisim-workspace{width:min(100% - 20px,760px)!important}.iwl-cinematic{margin-top:10px!important}.iwl-explainer{align-items:flex-start!important}.iwl-explainer .ttr-explainer-mark{min-width:58px}.iwl-formation-summary{min-height:175px!important}.iwl-summary-squad{grid-template-columns:auto 1fr}.iwl-summary-ratio{grid-column:1/-1}.iwl-meta-strip{grid-template-columns:1fr!important}.iwl-stats-grid{grid-template-columns:1fr}.iwl-pet-skill-grid,.iwl-passive-pet-grid{grid-template-columns:1fr}.iwl-gear-row,.iwl-count-grid{grid-template-columns:1fr}.iwl-power-editor{grid-template-columns:1fr 1fr}.iwl-power-editor label{grid-column:1/-1}.iwl-hero-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.iwl-report-counts{grid-template-columns:1fr 1fr}.iwl-report-sides{grid-template-columns:1fr}.iwl-army-grid>.army-panel{display:none!important}.iwl-army-grid>.army-panel.mobile-active{display:block!important}.iwl-army-title{grid-template-columns:1fr!important}.iwl-army-title strong{grid-column:1;grid-row:auto}.iwl-search-result-card>header{align-items:flex-start;flex-direction:column}.iwl-sequence-step{grid-template-columns:36px 1fr}.iwl-sequence-step strong{grid-column:2}}
@media(max-width:430px){.iwl-hero-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.iwl-power-editor{grid-template-columns:1fr 1fr}.iwl-power-editor button{min-width:0}.iwl-formation-top{align-items:flex-start;flex-direction:column}.iwl-army-total-field{width:100%;grid-template-columns:1fr 110px}.iwl-gear-manager-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.iwl-report-counts{grid-template-columns:1fr}.iwl-hero-grid .hero-card{padding:8px!important}}

/* Phone parity guard: keep IWL-specific content inside the same narrow OmniSIM rails. */
@media(max-width:760px){
  .iwl-simulation-console,.iwl-sim-actions,.iwl-sim-actions>*{min-width:0!important;max-width:100%!important}
  .iwl-secondary-report-actions{grid-template-columns:1fr 1fr;gap:7px}
  .iwl-secondary-report-actions .battle-report-open{white-space:normal!important;line-height:1.15!important;padding-inline:8px!important}
  .iwl-meta-strip,.iwl-meta-action{min-width:0!important;max-width:100%!important}
  .iwl-meta-action{width:100%!important;justify-self:stretch!important;overflow:hidden!important}
  .iwl-meta-action>.rail-meta-btn,.iwl-meta-action .omnisim-meta-scope{min-width:0!important;max-width:100%!important}
}
@media(max-width:760px){
  .iwl-meta-strip{width:100%!important;max-width:100%!important;box-sizing:border-box!important;grid-template-columns:minmax(0,1fr)!important;overflow:hidden!important}
  .iwl-meta-action{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .iwl-meta-action>*{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
}
/* OmniSIM parity: the scenic Run Battle hero is a fixed command surface, never a
   flex-shrink casualty when IWL adds its sequence/report actions below it. */
.iwl-simulation-console .omnisim-simulation-hero{flex-shrink:0!important}

/* OmniSIM parity at phone widths: preserve the same action row while allowing the
   IWL-specific longer reader/meta copy to wrap inside OmniSIM's narrow rails. */
@media(max-width:620px){
  .iwl-page .omnisim-reader-host{min-width:0!important;overflow:hidden!important}
  body.iwl-page.frozen-battle-page .omnisim-reader-host .battle-utility-btn.reader{
    min-width:0!important;max-width:100%!important;padding:0 7px!important;
    white-space:normal!important;line-height:1.12!important;font-size:.57rem!important;
  }
  .iwl-page .omnisim-reader-host .battle-reader-help{flex:0 0 16px!important;width:16px!important;height:16px!important}
  .iwl-meta-strip .omnisim-meta-copy,.iwl-meta-strip .omnisim-meta-copy-text{min-width:0!important;max-width:100%!important}
  .iwl-meta-strip .omnisim-meta-copy-text b,.iwl-meta-strip .omnisim-meta-copy-text small{white-space:normal!important;overflow-wrap:anywhere!important}
  .iwl-secondary-report-actions{grid-template-columns:1fr 1fr!important}
}

/* ========================================================================== */
/* Owner parity pass — 2026-10-06                                            */
/* OmniSIM/TTR/Labyrinth are the presentation contracts.                     */
/* ========================================================================== */

body.iwl-page{font-size:16px}
.iwl-premium-explainer{
  position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;
  margin:14px 0 12px!important;padding:18px 20px!important;border:1px solid rgba(101,211,246,.32)!important;
  border-radius:16px!important;background:linear-gradient(110deg,rgba(4,30,45,.95),rgba(7,30,49,.92) 60%,rgba(77,31,21,.80))!important;
  box-shadow:0 18px 42px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.04);overflow:hidden
}
.iwl-premium-explainer::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(52,184,246,.08),transparent 44%,rgba(255,116,55,.07))}
.iwl-premium-explainer .ttr-explainer-mark{position:relative;z-index:1;min-width:86px;padding:10px 12px;border:1px solid rgba(104,214,249,.34);border-radius:12px;background:rgba(4,18,29,.68);color:#89e4ff;font-size:.78rem;font-weight:1000;letter-spacing:.14em}
.iwl-premium-explainer>div{position:relative;z-index:1}.iwl-premium-explainer b{font-size:1.02rem!important;color:#f3fbff}.iwl-premium-explainer p{margin:5px 0 0!important;font-size:.88rem!important;line-height:1.56!important;color:#bdd9e7!important}

.iwl-event-timeline{margin:0 0 18px;border:1px solid rgba(104,196,229,.24);border-radius:15px;background:rgba(3,24,37,.90);box-shadow:0 14px 36px rgba(0,0,0,.22);overflow:hidden}
.iwl-event-status{display:flex;align-items:center;gap:10px;padding:11px 15px;border-bottom:1px solid rgba(104,196,229,.13);background:linear-gradient(90deg,rgba(30,124,167,.10),transparent 55%,rgba(208,81,34,.07))}.iwl-event-status-kicker{font-size:.59rem;font-weight:1000;letter-spacing:.12em;color:#70d8f7}.iwl-event-status b{font-size:.82rem}.iwl-event-status small{margin-left:auto;color:#83a6b5;font-size:.66rem}
.iwl-event-stage-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.iwl-event-stage{position:relative;min-height:88px;padding:13px 15px;border-right:1px solid rgba(104,196,229,.13);display:grid;align-content:center;gap:4px}.iwl-event-stage:last-child{border-right:0}.iwl-event-stage .iwl-stage-day{font-size:.54rem;font-weight:1000;letter-spacing:.09em;color:#739aa9}.iwl-event-stage b{font-size:.82rem;color:#e8f8ff}.iwl-event-stage small{font-size:.62rem;line-height:1.35;color:#819fab}.iwl-event-stage.active{z-index:1;background:linear-gradient(110deg,rgba(12,89,139,.23),rgba(16,46,64,.34) 50%,rgba(152,54,21,.21));box-shadow:inset 0 0 0 1px rgba(135,224,255,.32),inset 0 0 30px rgba(37,155,227,.10),inset 0 0 35px rgba(255,100,42,.08)}
.iwl-event-stage.active::before,.iwl-event-stage.active::after{content:"";position:absolute;inset:-2px;pointer-events:none;border-radius:7px;opacity:.85}.iwl-event-stage.active::before{border-top:2px solid #83e8ff;border-left:2px solid rgba(83,210,255,.68);filter:drop-shadow(0 0 7px #2fbde9);animation:iwlIcePulse 1.8s ease-in-out infinite}.iwl-event-stage.active::after{border-bottom:2px solid #ff8c48;border-right:2px solid rgba(255,91,31,.72);filter:drop-shadow(0 0 7px #ff6429);animation:iwlFirePulse 1.45s ease-in-out infinite alternate}@keyframes iwlIcePulse{50%{opacity:.48;filter:drop-shadow(0 0 13px #56d9ff)}}@keyframes iwlFirePulse{to{opacity:.48;filter:drop-shadow(0 0 14px #ff4919)}}

/* Top optimizer cards — fill the available surface like OmniSIM, but with three squads. */
.iwl-optimizer-column{margin-top:0!important}.iwl-optimize-card{min-height:430px!important}.iwl-formation-summary{min-height:295px!important;gap:10px!important;margin-top:16px!important}.iwl-summary-squad{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"head ratio" "heroes heroes";gap:8px 12px!important;padding:11px 12px!important;border-radius:12px!important;background:rgba(3,11,19,.62)!important}.iwl-summary-squad-head{grid-area:head;display:flex!important;align-items:center;gap:8px!important}.iwl-summary-squad-head b{font-size:.72rem!important;color:#c3dce6;letter-spacing:.06em}.iwl-summary-power{display:inline-flex;padding:3px 7px;border:1px solid rgba(255,201,95,.30);border-radius:999px;background:rgba(95,63,13,.34);color:#ffe092;font-size:.57rem;font-weight:950;font-style:normal}.iwl-summary-heroes{grid-area:heroes;gap:7px!important}.iwl-summary-hero{position:relative;display:grid;min-width:0;grid-template-rows:58px auto;gap:3px}.iwl-summary-hero img,.iwl-summary-hero .iwl-summary-empty{width:58px!important;height:58px!important;border-radius:10px!important}.iwl-summary-hero small{max-width:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;color:#e0c77c;font-size:.47rem!important;font-weight:900}.iwl-summary-ratio{grid-area:ratio;font-size:.86rem!important}.iwl-series-label{display:block;padding:6px 9px;border-top:1px solid rgba(255,255,255,.09);color:#a9c3cf;font-size:.61rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.iwl-summary-total-power{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid rgba(255,198,84,.30);border-radius:10px;background:linear-gradient(90deg,rgba(90,57,10,.46),rgba(14,38,49,.58));color:#ffe3a1}.iwl-summary-total-power small{font-size:.52rem;font-weight:900;letter-spacing:.07em}.iwl-summary-total-power b{font-size:.88rem}
.iwl-optimize-card.is-searching{background:#03070a!important;filter:saturate(.4)!important}.iwl-optimize-card.is-searching .omnisim-optimizer-title b{font-size:2.2rem!important;color:#fff!important}.iwl-optimize-card.is-searching .iwl-formation-summary{opacity:.25}.iwl-optimize-card.is-searching .omnisim-optimizer-elapsed{display:block!important;position:absolute;inset:auto 20px 24px 20px;z-index:5;text-align:center;color:#8ce8ff;font-size:1.15rem;font-weight:950;letter-spacing:.06em}

/* OmniSIM toggle strip restored, with Strength Input replacing Presentation. */
.iwl-command-compact-row{margin-top:12px}.iwl-mode-strip{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;margin:0!important;border:1px solid rgba(89,182,215,.19);border-radius:14px;overflow:hidden;background:rgba(4,27,39,.76)}.iwl-mode-strip>.omnisim-toggle-item,.iwl-mode-strip>.rail-joiner-opt{min-width:0!important;min-height:72px!important;border-right:1px solid rgba(89,182,215,.14)!important;border-radius:0!important;margin:0!important;padding:10px!important;background:transparent!important}.iwl-mode-strip>*:last-child{border-right:0!important}.iwl-mode-strip .rail-joiner-copy b{font-size:.72rem!important}.iwl-mode-strip .rail-joiner-copy small{font-size:.55rem!important;line-height:1.25!important}.iwl-strength-input-item{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}.iwl-strength-input-item .iwl-strength-segmented{grid-column:1/-1;width:100%}.iwl-strength-input-item .omnisim-segmented button{font-size:.56rem!important}.iwl-strength-input-item .omnisim-segmented button.active{background:linear-gradient(135deg,#1f8db4,#2568a8)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(139,228,255,.34)!important}.iwl-speed-item .command-speed-bar{grid-column:1/-1;width:100%;margin-top:4px}

/* Quick Army Settings is the same OmniSIM disclosure, minus joiners. */
.iwl-quick-settings{margin:9px 0 0!important}.iwl-quick-settings .omnisim-army-settings-body{grid-template-columns:1fr auto!important}.iwl-quick-settings .omnisim-quick-army-explainer{grid-column:1/-1!important}.iwl-quick-settings .omnisim-army-settings-grid{display:grid!important;grid-template-columns:repeat(2,minmax(115px,1fr))!important;gap:8px!important;border:0!important;padding:0!important}.iwl-quick-settings .omnisim-quick-army-actions{display:flex!important;align-items:end!important;gap:8px!important}.iwl-quick-settings select{min-height:36px!important}

/* Meta strips: inherit OmniSIM exactly; My Recommendations differs only by art/accent. */
.iwl-meta-strip{position:relative;overflow:hidden}.iwl-meta-strip>*{position:relative;z-index:1}.iwl-my-recommendations-strip::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,27,42,.92) 0%,rgba(4,27,42,.73) 45%,rgba(48,24,14,.54) 100%),url('/static/image/icefire-warhymn-league/my-recommendations.png') center/cover no-repeat;opacity:.92}.iwl-my-rec-btn{background:linear-gradient(135deg,#9a541c,#b97024,#285d83)!important}.iwl-meta-action .omnisim-meta-elapsed{font-size:.7rem!important;color:#9de8ff!important}.iwl-meta-action>.rail-meta-btn.is-searching{background:#02070a!important}.iwl-meta-action>.rail-meta-btn.is-searching .meta-button-content{color:#fff!important}.iwl-meta-action>.rail-meta-btn.is-searching .meta-crown{opacity:.25}.iwl-meta-action>.rail-meta-btn.is-searching #iwlMetaButtonLabel,.iwl-meta-action>.rail-meta-btn.is-searching #iwlMyRecButtonLabel{font-size:1.2rem!important}

/* Bottom side heading / total power: noticeable, premium and balanced. */
.iwl-army-title{padding:12px 14px!important}.iwl-army-title span{font-size:1.4rem!important}.iwl-army-title small{font-size:.67rem!important}.iwl-army-title strong{display:grid;gap:2px;min-width:190px;padding:9px 12px;border:1px solid rgba(101,196,231,.22);border-radius:10px;background:rgba(4,27,39,.68);text-align:right!important}.iwl-army-title strong small{font-size:.48rem!important;color:#7395a4;letter-spacing:.08em}.iwl-army-title strong b{font-size:1rem}.iwl-army-title strong.is-global-power{border-color:rgba(255,195,75,.34);background:linear-gradient(135deg,rgba(86,55,11,.62),rgba(7,39,50,.74));color:#ffe2a0!important}

/* Labyrinth stat/troop surface, used literally rather than re-invented. */
.iwl-common-head h3{font-size:1rem!important}.iwl-common-head small{font-size:.66rem!important}.iwl-lab-stat-columns{margin-top:8px}.iwl-lab-stat-columns .lab-troop-column{background:rgba(3,24,38,.62)!important;border-color:rgba(116,190,216,.18)!important}.iwl-lab-stat-columns .lab-troop-column header span{font-size:.65rem!important}.iwl-lab-stat-columns .lab-troop-column header b{font-size:.8rem!important}.iwl-lab-stat-columns .lab-field span{font-size:.6rem!important}.iwl-lab-stat-columns .lab-field input,.iwl-lab-stat-columns .lab-field select{min-height:38px!important;font-size:.82rem!important}.iwl-column-levels{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:8px}

/* Squad tabs become premium segmented formation cards, not generic tabs. */
.iwl-squad-tabs{gap:8px!important;padding:6px!important;border-radius:13px!important}.iwl-squad-tabs button{display:grid;grid-template-columns:1fr auto;grid-template-areas:"title power" "ratio power";gap:2px 8px;min-height:58px!important;padding:9px 11px!important;text-align:left!important;border:1px solid transparent!important}.iwl-squad-tabs button span{grid-area:title;font-size:.72rem;font-weight:1000;color:#d7edf5}.iwl-squad-tabs button small{grid-area:ratio;font-size:.58rem!important;color:#789aa9}.iwl-squad-tabs button b{grid-area:power;align-self:center;color:#ffe3a0;font-size:.67rem}.iwl-squad-tabs button.active{border-color:rgba(120,220,251,.38)!important;background:linear-gradient(135deg,rgba(35,141,177,.92),rgba(30,89,128,.88))!important;box-shadow:0 7px 22px rgba(0,0,0,.24),inset 0 0 24px rgba(107,219,248,.08)!important}.iwl-squad-tabs button.active small{color:#c5e8f3!important}.iwl-squad-kicker{display:block;margin-bottom:2px;color:#6fd6f4;font-size:.55rem;font-weight:1000;letter-spacing:.11em}

/* Hero cards — use OmniSIM portrait proportions and readable gear labels. */
.iwl-hero-grid{gap:12px!important}.iwl-hero-grid .hero-card{padding:13px!important}.iwl-hero-grid .hero-compact-grid{grid-template-columns:150px minmax(0,1fr) 135px!important;gap:16px!important;align-items:center!important}.iwl-hero-portrait-stack{position:relative;display:grid;gap:6px;align-self:start}.iwl-hero-grid .hero-photo-select{width:150px!important;height:150px!important;padding:0!important;overflow:hidden!important;border-radius:14px!important}.iwl-hero-grid .hero-photo-select .hero-portrait{width:150px!important;height:150px!important;object-fit:cover!important;object-position:center!important;border-radius:14px!important}.iwl-hero-grid .hero-photo-name{font-size:.72rem!important}.iwl-portrait-gear{position:absolute;left:7px;right:7px;bottom:7px;z-index:5;padding:4px 5px;border:1px solid rgba(255,210,102,.38);border-radius:6px;background:rgba(28,20,7,.88);color:#ffe18c;font-size:.59rem;font-weight:950;text-align:center;white-space:nowrap}.iwl-portrait-gear.none{border-color:rgba(166,190,200,.25);background:rgba(4,12,18,.84);color:#aec1c9}.iwl-no-hero-photo{height:150px!important;border-radius:14px!important;font-size:.76rem!important}.iwl-no-hero-photo small{font-size:.56rem!important}.iwl-hero-clear{position:static!important;width:150px!important;height:30px!important;border-radius:7px!important;font-size:.58rem!important;font-weight:900!important;background:rgba(20,29,36,.84)!important;color:#cbdde4!important}.iwl-hero-clear span{font-size:.85rem;margin-right:4px}.iwl-hero-progress-main{grid-column:auto!important}.iwl-hero-grid .snowflake-row{justify-content:flex-start!important;gap:7px!important}.iwl-hero-grid .snowflake{transform:none!important}.iwl-hero-grid .hero-widget-corner{justify-content:flex-end!important}.iwl-hero-grid .hero-widget-corner label{font-size:.62rem!important}.iwl-hero-grid .hero-widget-corner select{min-height:38px!important;font-size:.76rem!important}.iwl-hero-grid .star-readout,.iwl-hero-grid .skill-level-readout{font-size:.72rem!important}
.iwl-hero-picker-body .hero-picker-grid{grid-template-columns:repeat(auto-fit,minmax(126px,1fr))!important}.iwl-hero-picker-body .hero-picker-choice img{width:104px!important;height:104px!important}.iwl-none-choice-card{height:104px;display:grid;place-items:center;border-radius:13px;background:#03070b;color:#e4edf1}.iwl-none-choice-card small{display:block;color:#80939d;font-size:.58rem}

/* Premium Global Power controls. */
.iwl-power-editor.premium{grid-template-columns:minmax(220px,.9fr) minmax(190px,.65fr) minmax(260px,1fr)!important;align-items:center!important;padding:13px!important;border-color:rgba(255,198,82,.24)!important;background:linear-gradient(100deg,rgba(75,49,8,.28),rgba(5,29,42,.68))!important}.iwl-power-copy span,.iwl-power-copy b,.iwl-power-copy small{display:block}.iwl-power-copy span{color:#d2ae62;font-size:.59rem;font-weight:1000;text-transform:uppercase;letter-spacing:.07em}.iwl-power-copy b{margin-top:3px;color:#ffe4a0;font-size:1.15rem}.iwl-power-copy small{margin-top:2px;color:#8ea3ac;font-size:.58rem}.iwl-power-manual{display:grid!important;gap:4px!important}.iwl-power-manual span{font-size:.59rem!important}.iwl-power-manual input{height:42px!important;font-size:.92rem!important;text-align:right}.iwl-power-adds{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.iwl-power-adds button{min-height:42px!important;border-color:rgba(255,196,78,.28)!important;background:linear-gradient(180deg,rgba(107,69,11,.58),rgba(43,35,20,.58))!important;color:#ffe2a0!important;font-size:.68rem!important}.iwl-power-adds button:hover{filter:brightness(1.16)}

/* Premium report/swap readers, still OmniSIM modal family. */
.iwl-action-dialog{width:min(760px,95vw)!important;border:1px solid rgba(104,213,249,.35)!important;background:linear-gradient(160deg,#082b3c,#071c2b 55%,#251814)!important;box-shadow:0 30px 90px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.04)!important}.iwl-action-dialog-head{padding:16px 18px!important;background:linear-gradient(90deg,rgba(28,123,161,.15),rgba(120,53,23,.11))!important}.iwl-action-dialog-head h3{margin:2px 0 3px;font-size:1.25rem}.iwl-action-dialog-head p{margin:0;color:#8fadb9;font-size:.68rem}.iwl-dialog-kicker{color:#72dcf8;font-size:.55rem;font-weight:1000;letter-spacing:.12em}.iwl-premium-form{display:grid;gap:13px;padding:16px 18px 18px}.iwl-target-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0;border:0}.iwl-target-choice legend{grid-column:1/-1;margin-bottom:3px;color:#9fbdc9;font-size:.61rem;font-weight:950}.iwl-target-choice label{position:relative;cursor:pointer}.iwl-target-choice input{position:absolute;opacity:0;pointer-events:none}.iwl-target-choice span{display:grid;place-items:center;min-height:44px;padding:7px;border:1px solid rgba(103,193,226,.18);border-radius:8px;background:rgba(4,26,38,.72);color:#9bb7c2;font-size:.67rem;font-weight:900;text-align:center}.iwl-target-choice input:checked+span{border-color:#71d9f7;background:linear-gradient(135deg,#156781,#174761);color:#fff;box-shadow:inset 0 0 20px rgba(113,217,247,.08)}.iwl-import-squad-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.iwl-import-squad-grid label{display:grid;gap:5px;color:#9db8c3;font-size:.62rem;font-weight:900}.iwl-import-squad-grid select,.iwl-swap-picker-grid select{min-height:42px;border:1px solid rgba(104,195,228,.22);border-radius:8px;background:#061c29;color:#edfaff;padding:0 10px;font-size:.72rem}.iwl-import-note{display:grid;gap:3px;padding:10px 12px;border-left:3px solid #5fd7f7;background:rgba(50,154,196,.07);border-radius:5px;color:#8faab5;font-size:.62rem;line-height:1.45}.iwl-import-note b{color:#dff8ff}.iwl-report-upload-btn{min-height:48px!important;font-size:.74rem!important}.iwl-report-upload-btn span{margin-right:6px}.iwl-swap-picker-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:end}.iwl-swap-picker-grid label{display:grid;gap:5px;color:#9db8c3;font-size:.62rem;font-weight:900}.iwl-swap-glyph{display:grid;place-items:center;width:44px;height:42px;border-radius:50%;color:#8be5ff;font-size:1.25rem}.iwl-swap-preview{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}.iwl-swap-preview article{padding:10px;border:1px solid rgba(103,194,226,.16);border-radius:9px;background:rgba(4,26,38,.60)}.iwl-swap-preview article span,.iwl-swap-preview article b,.iwl-swap-preview article small{display:block}.iwl-swap-preview article span{color:#83a6b4;font-size:.55rem;text-transform:uppercase;font-weight:900}.iwl-swap-preview article b{margin-top:3px;font-size:.83rem}.iwl-swap-preview article small{margin-top:3px;color:#7895a0;font-size:.54rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iwl-swap-preview-arrow{color:#79dcfa;font-size:1.2rem}

/* Search telemetry is always readable, and the Cancel action matches OmniSIM. */
.iwl-search-progress{min-height:56px!important}.iwl-search-progress span{font-size:.68rem!important;font-weight:850}.iwl-search-progress button{min-height:34px!important;padding-inline:14px!important;font-size:.62rem!important}.iwl-search-progress>div{height:8px!important}

/* Report modals must use OmniSIM paper colors even when the site is light. */
.iwl-page .battle-report-shell{--paper:#f4e5cf;--paper-ink:#694c37;--paper-line:#cdb69a;background:#f4e5cf!important;color:#694c37!important}.iwl-page .battle-report-scroll{background:#f4e5cf!important;color:#694c37!important}.iwl-page .iwl-sample-report,.iwl-page .iwl-sequence-step{background:#f7ead8!important;border-color:#cdb69a!important;color:#694c37!important}.iwl-page .iwl-sample-report summary,.iwl-page .iwl-sequence-step{font-size:.72rem!important}.iwl-page .iwl-sample-report summary b,.iwl-page .iwl-sequence-step b{font-size:.78rem!important;color:#694c37!important}.iwl-page .iwl-sample-report summary small,.iwl-page .iwl-sequence-step small{font-size:.61rem!important;color:#8e7158!important}.iwl-page .iwl-report-counts span,.iwl-page .iwl-report-sides section{background:#fff6e8!important;border-color:#d1b99d!important}.iwl-page .iwl-report-counts small,.iwl-page .iwl-report-sides h4{color:#80634b!important}.iwl-page .iwl-report-counts b{color:#64442f!important}

/* General readability floor for IWL-specific copy. */
.iwl-page .command-suggestions-empty,.iwl-page .iwl-global-unknown,.iwl-page .iwl-bonus-panel>summary small,.iwl-page .iwl-bonus-section-head small,.iwl-page .iwl-report-lock,.iwl-page .iwl-gear-row label{font-size:.61rem!important}.iwl-page .iwl-bonus-panel>summary b,.iwl-page .iwl-bonus-section-head b,.iwl-page .iwl-gear-row label>span{font-size:.68rem!important}.iwl-page .iwl-gear-row select{min-height:38px!important;font-size:.72rem!important}

@media(max-width:1180px){.iwl-mode-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}.iwl-mode-strip>*:nth-child(3){border-right:0!important}.iwl-event-status{align-items:flex-start;flex-wrap:wrap}.iwl-event-status small{width:100%;margin-left:0}.iwl-hero-grid .hero-compact-grid{grid-template-columns:130px minmax(0,1fr) 118px!important}.iwl-hero-grid .hero-photo-select,.iwl-hero-grid .hero-photo-select .hero-portrait{width:130px!important;height:130px!important}.iwl-hero-clear{width:130px!important}.iwl-no-hero-photo{height:130px!important}}
@media(max-width:760px){.iwl-premium-explainer{grid-template-columns:1fr!important}.iwl-event-stage-track{grid-template-columns:1fr 1fr}.iwl-event-stage:nth-child(2){border-right:0}.iwl-event-stage:nth-child(-n+2){border-bottom:1px solid rgba(104,196,229,.13)}.iwl-mode-strip{grid-template-columns:1fr 1fr!important}.iwl-mode-strip>*:nth-child(odd){border-right:1px solid rgba(89,182,215,.14)!important}.iwl-mode-strip>*:nth-child(even){border-right:0!important}.iwl-power-editor.premium{grid-template-columns:1fr!important}.iwl-power-adds{grid-template-columns:repeat(4,1fr)}.iwl-hero-grid .hero-compact-grid{grid-template-columns:110px minmax(0,1fr)!important}.iwl-hero-grid .hero-photo-select,.iwl-hero-grid .hero-photo-select .hero-portrait{width:110px!important;height:110px!important}.iwl-hero-clear{width:110px!important}.iwl-no-hero-photo{height:110px!important}.iwl-hero-grid .hero-widget-corner{grid-column:1/-1!important}.iwl-target-choice{grid-template-columns:1fr}.iwl-import-squad-grid{grid-template-columns:1fr}.iwl-swap-picker-grid,.iwl-swap-preview{grid-template-columns:1fr}.iwl-swap-glyph,.iwl-swap-preview-arrow{justify-self:center;transform:rotate(90deg)}}
@media(max-width:430px){.iwl-event-stage-track{grid-template-columns:1fr}.iwl-event-stage{border-right:0!important;border-bottom:1px solid rgba(104,196,229,.13)}.iwl-event-stage:last-child{border-bottom:0}.iwl-mode-strip{grid-template-columns:1fr!important}.iwl-mode-strip>*{border-right:0!important;border-bottom:1px solid rgba(89,182,215,.14)!important}.iwl-mode-strip>*:last-child{border-bottom:0!important}.iwl-summary-hero img,.iwl-summary-hero .iwl-summary-empty{width:50px!important;height:50px!important}.iwl-summary-hero{grid-template-rows:50px auto}.iwl-power-adds{grid-template-columns:1fr 1fr}.iwl-hero-grid .hero-compact-grid{grid-template-columns:1fr!important}.iwl-hero-portrait-stack{justify-items:center}.iwl-hero-grid .hero-photo-select,.iwl-hero-grid .hero-photo-select .hero-portrait{width:150px!important;height:150px!important}.iwl-hero-clear{width:150px!important}.iwl-no-hero-photo{height:150px!important}.iwl-hero-progress-main{grid-column:1!important}.iwl-hero-grid .snowflake-row{justify-content:center!important}}

/* 2026-10-06 owner parity correction — reports use the actual OmniSIM paper system. */
.iwl-page .iwl-report-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px;padding:8px;border:1px solid #cdb69a;border-radius:13px;background:#eadac6}
.iwl-page .iwl-report-tabs button{min-height:36px;padding:7px 15px;border:1px solid #bca184;border-radius:9px;background:#fff3df;color:#725943;font-size:.76rem;font-weight:950;cursor:pointer}
.iwl-page .iwl-report-tabs button.active{background:linear-gradient(#a97c58,#8f6548);border-color:#8f6548;color:#fff8ec;box-shadow:0 3px 10px rgba(95,60,35,.24)}
.iwl-page .iwl-report-gear-label{display:inline-flex;align-items:center;min-height:24px;margin-top:4px;padding:3px 8px;border:1px solid #c7a77e;border-radius:999px;background:#efd6ad;color:#684c37;font-size:.56rem;font-weight:950;white-space:nowrap}
.iwl-page .iwl-sequence-report-row .report-center-cell{font-size:.67rem}
.iwl-page .iwl-sequence-number{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#176b8a;color:#fff;font-size:.92rem;font-weight:950;box-shadow:0 0 0 2px #fff3df,0 0 0 4px #b69a79}
.iwl-page .battle-report-scroll .report-section{color:#694c37!important}
.iwl-page .battle-report-scroll .report-section b,.iwl-page .battle-report-scroll .report-section strong{color:inherit}
.iwl-page .battle-report-scroll .report-summary-side.att,.iwl-page .battle-report-scroll .report-summary-side.def{color:#fff!important}
.iwl-page .battle-report-scroll .report-side-head .att,.iwl-page .battle-report-scroll .report-side-head .def{color:#fff!important}
.iwl-page .battle-report-scroll .report-detail-number,.iwl-page .battle-report-scroll .report-center-cell,.iwl-page .battle-report-scroll .report-troop-value{color:#664c38!important}
.iwl-page .battle-report-scroll .report-side-cell b{color:#684c37!important}
.iwl-page .battle-report-scroll .report-side-cell small{color:#806b59!important}
.iwl-page .battle-report-scroll .report-detail-skill-icon{pointer-events:none}
.iwl-page .iwl-search-hero{display:grid;justify-items:center;gap:4px;min-width:68px}
.iwl-page .iwl-search-hero img,.iwl-page .iwl-search-hero .iwl-summary-empty{width:68px;height:68px;border-radius:12px;object-fit:cover}
.iwl-page .iwl-search-hero small{display:block;max-width:82px;padding:2px 6px;border-radius:999px;background:rgba(4,18,28,.86);border:1px solid rgba(127,219,243,.24);color:#d9f5fb;font-size:.55rem;font-weight:900;white-space:nowrap}
@media(max-width:760px){.iwl-page .iwl-report-tabs{position:sticky;top:0;z-index:4;border-radius:8px}.iwl-page .iwl-report-tabs button{flex:1 1 70px}.iwl-page .iwl-sequence-number{width:27px;height:27px;flex-basis:27px;font-size:.72rem}}

/* 2026-10-06 owner parity correction — inherit OmniSIM hero geometry exactly.
   IWL only adds the readable physical Hero Gear label and explicit Remove Hero action. */
.iwl-page .iwl-hero-grid{gap:9px!important}
.iwl-page .iwl-hero-grid .hero-card{margin:7px 0!important;padding:9px!important;border-radius:14px!important}
.iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:90px minmax(0,1fr) 96px!important;gap:9px!important;align-items:center!important}
.iwl-page .iwl-hero-portrait-stack{width:90px;display:grid;justify-items:center;gap:5px;align-self:center}
.iwl-page .iwl-hero-grid .hero-photo-select{width:auto!important;height:auto!important;min-width:0!important;padding:6px!important;border-radius:14px!important;overflow:visible!important}
.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait{width:64px!important;height:64px!important;border-radius:12px!important;object-fit:cover!important;object-position:center!important}
.iwl-page .iwl-no-hero-photo{width:64px!important;height:64px!important;border-radius:12px!important;font-size:.58rem!important;line-height:1.12!important}
.iwl-page .iwl-no-hero-photo small{font-size:.45rem!important}
.iwl-page .iwl-portrait-gear{position:static!important;display:block;width:100%;max-width:82px;margin-top:2px;padding:3px 5px;border-radius:999px;font-size:.55rem!important;line-height:1.15;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iwl-page .iwl-hero-clear{position:static!important;width:90px!important;height:28px!important;padding:0 5px!important;border-radius:7px!important;font-size:.55rem!important;line-height:1!important}
.iwl-page .iwl-hero-clear span{font-size:.75rem!important;margin-right:3px}
.iwl-page .iwl-hero-grid .hero-progress-main{grid-column:auto!important}
.iwl-page .iwl-hero-grid .snowflake-row{justify-content:center!important;gap:7px!important;transform:none!important}
.iwl-page .iwl-hero-grid .snowflake{width:48px!important;height:48px!important;flex:0 0 48px!important}
.iwl-page .iwl-hero-grid .hero-widget-corner{display:flex!important;align-self:end!important;justify-content:initial!important;gap:4px!important}
.iwl-page .iwl-hero-grid .hero-widget-corner label{font-size:.66rem!important}
.iwl-page .iwl-hero-grid .hero-widget-corner select{width:100%!important;min-height:32px!important;padding:7px!important;font-size:.66rem!important}
.iwl-page .iwl-hero-grid .hero-widget-corner img{width:26px!important;height:26px!important;object-fit:contain!important}
.iwl-page .iwl-hero-grid .star-readout,.iwl-page .iwl-hero-grid .skill-level-readout{font-size:.64rem!important}
.iwl-page .iwl-hero-picker-body .hero-picker-grid{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))!important;gap:10px!important}
.iwl-page .iwl-hero-picker-body .hero-picker-choice{padding:8px!important;border-radius:13px!important}
.iwl-page .iwl-hero-picker-body .hero-picker-choice img{width:82px!important;height:82px!important;border-radius:13px!important;object-fit:cover!important;margin:0 auto 6px!important}
.iwl-page .iwl-hero-picker-body .hero-picker-choice b{font-size:.78rem!important}
.iwl-page .iwl-none-choice-card{width:82px!important;height:82px!important;margin:0 auto 6px;border-radius:13px!important;font-size:.68rem!important}
.iwl-page .iwl-none-choice-card small{font-size:.49rem!important}

/* Use the unused vertical room in each optimizer card for the three real squad summaries. */
.iwl-page .iwl-formation-summary{gap:10px!important;min-height:300px!important;margin-top:20px!important}
.iwl-page .iwl-summary-squad{min-height:82px;padding:10px 11px!important;gap:11px!important;border-radius:11px!important}
.iwl-page .iwl-summary-squad-head b{font-size:.68rem!important}
.iwl-page .iwl-summary-hero{grid-template-rows:58px auto;gap:3px;justify-items:center}
.iwl-page .iwl-summary-hero img,.iwl-page .iwl-summary-hero .iwl-summary-empty{width:58px!important;height:58px!important;border-radius:11px!important}
.iwl-page .iwl-summary-hero small{max-width:70px;font-size:.49rem!important;line-height:1.15!important;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iwl-page .iwl-summary-ratio{font-size:.83rem!important}
.iwl-page .iwl-series-label{font-size:.62rem!important;letter-spacing:.08em!important}
.iwl-page .iwl-summary-total-power small{font-size:.49rem!important}.iwl-page .iwl-summary-total-power b{font-size:.84rem!important}

/* Keep explanatory copy readable instead of shrinking it to dashboard typography. */
.iwl-page .iwl-premium-explainer p{font-size:clamp(.83rem,1vw,.98rem)!important;line-height:1.55!important}
.iwl-page .iwl-premium-explainer b{font-size:1rem!important}
.iwl-page .iwl-event-status b{font-size:.88rem!important}.iwl-page .iwl-event-status small{font-size:.68rem!important}
.iwl-page .iwl-event-stage b{font-size:.75rem!important}.iwl-page .iwl-event-stage small{font-size:.58rem!important;line-height:1.4!important}
.iwl-page .iwl-common-head h3{font-size:.88rem!important}.iwl-page .iwl-common-head small{font-size:.62rem!important}
.iwl-page .iwl-squad-tabs button{font-size:.7rem!important}.iwl-page .iwl-squad-tabs button small{font-size:.54rem!important}
.iwl-page .iwl-power-editor.premium label>span,.iwl-page .iwl-power-editor.premium small{font-size:.62rem!important}.iwl-page .iwl-power-editor.premium input{font-size:.88rem!important}

@media(max-width:850px){
 .iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:78px minmax(0,1fr)!important;gap:8px!important}
 .iwl-page .iwl-hero-portrait-stack{width:78px!important}
 .iwl-page .iwl-hero-clear{width:78px!important}
 .iwl-page .iwl-hero-grid .hero-widget-corner{grid-column:1/-1!important;justify-self:end!important;width:118px!important}
 .iwl-page .iwl-hero-grid .snowflake-row{gap:4px!important;transform:scale(.94)!important}
}
@media(max-width:430px){
 .iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:68px minmax(0,1fr)!important;gap:6px!important}
 .iwl-page .iwl-hero-portrait-stack{width:68px!important;justify-items:center!important}
 .iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait{width:54px!important;height:54px!important}
 .iwl-page .iwl-no-hero-photo{width:54px!important;height:54px!important;font-size:.5rem!important}
 .iwl-page .iwl-hero-clear{width:68px!important;font-size:.49rem!important}
 .iwl-page .iwl-portrait-gear{max-width:66px;font-size:.47rem!important;padding-inline:3px}
 .iwl-page .iwl-summary-hero{grid-template-rows:50px auto}.iwl-page .iwl-summary-hero img,.iwl-page .iwl-summary-hero .iwl-summary-empty{width:50px!important;height:50px!important}
}

/* 2026-10-06 IWL owner correction — keep premium Global Power controls inside each
   OmniSIM/Labyrinth army panel at normal desktop widths. */
@media (min-width:761px) and (max-width:1500px){
  .iwl-page .iwl-power-editor.premium{
    grid-template-columns:minmax(0,1fr) minmax(170px,210px)!important;
    gap:10px!important;
    min-width:0!important;
    width:100%!important;
  }
  .iwl-page .iwl-power-editor.premium>.iwl-power-adds{
    grid-column:1/-1!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    min-width:0!important;
  }
  .iwl-page .iwl-power-editor.premium>.iwl-power-copy,
  .iwl-page .iwl-power-editor.premium>.iwl-power-manual,
  .iwl-page .iwl-power-editor.premium>.iwl-power-adds{min-width:0!important}
  .iwl-page .iwl-squad-editor,
  .iwl-page .iwl-hero-grid,
  .iwl-page .iwl-hero-grid .hero-card{min-width:0!important;width:100%!important;max-width:100%!important}
}

/* 2026-10-06 IWL owner correction — keep the Labyrinth snowflake progression beside
   the OmniSIM portrait on phones instead of collapsing it under the portrait column. */
@media (max-width:430px){
  .iwl-page .iwl-hero-grid .hero-compact-grid{
    grid-template-columns:86px minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
  }
  .iwl-page .iwl-hero-portrait-stack{width:86px!important}
  .iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
  .iwl-page .iwl-no-hero-photo{width:72px!important;height:72px!important}
  .iwl-page .iwl-hero-clear{width:86px!important;font-size:.54rem!important}
  .iwl-page .iwl-portrait-gear{max-width:84px!important;font-size:.54rem!important;padding:3px 4px!important}
  .iwl-page .iwl-hero-progress-main{grid-column:2!important;min-width:0!important;width:100%!important}
  .iwl-page .iwl-hero-grid .snowflake-row{justify-content:center!important;gap:3px!important;transform:none!important;max-width:100%!important;overflow:hidden!important}
  .iwl-page .iwl-hero-grid .snowflake{width:42px!important;height:42px!important;flex:0 0 42px!important}
  .iwl-page .iwl-hero-grid .hero-widget-corner{grid-column:1/-1!important;width:130px!important;justify-self:end!important}
}
@media (max-width:430px){
  .iwl-page .iwl-hero-grid .hero-progress-main{grid-column:2!important;grid-row:auto!important;min-width:0!important;width:100%!important}
}

/* 2026-10-06 owner readability / OmniSIM fidelity pass. */
.iwl-page .iwl-premium-explainer{padding:20px 22px!important;gap:20px!important}
.iwl-page .iwl-premium-explainer .ttr-explainer-mark{min-width:96px!important;padding:12px 14px!important;font-size:.86rem!important;text-align:center}
.iwl-page .iwl-premium-explainer p{margin:0!important;font-size:clamp(.92rem,1.08vw,1.04rem)!important;line-height:1.58!important;color:#d0e7f1!important}
.iwl-page .iwl-event-status{padding:13px 16px!important}.iwl-page .iwl-event-status-kicker{font-size:.64rem!important}.iwl-page .iwl-event-status b{font-size:.94rem!important}.iwl-page .iwl-event-status small{font-size:.72rem!important}
.iwl-page .iwl-event-stage{min-height:98px!important;padding:15px 16px!important}.iwl-page .iwl-event-stage .iwl-stage-day{font-size:.59rem!important}.iwl-page .iwl-event-stage b{font-size:.84rem!important}.iwl-page .iwl-event-stage small{font-size:.65rem!important;line-height:1.42!important}
.iwl-page .iwl-mode-strip .rail-joiner-copy b{font-size:.80rem!important}.iwl-page .iwl-mode-strip .rail-joiner-copy small{font-size:.62rem!important;line-height:1.32!important}.iwl-page .iwl-strength-input-item .omnisim-segmented button{font-size:.62rem!important}
.iwl-page .iwl-army-title span{font-size:1.55rem!important}.iwl-page .iwl-army-title small{font-size:.72rem!important}.iwl-page .iwl-army-title strong{min-width:210px!important;padding:11px 14px!important}.iwl-page .iwl-army-title strong small{font-size:.54rem!important}.iwl-page .iwl-army-title strong b{font-size:1.15rem!important}
.iwl-page .iwl-common-head h3{font-size:1.03rem!important}.iwl-page .iwl-common-head small{font-size:.69rem!important;line-height:1.42!important}
.iwl-page .iwl-lab-stat-columns .lab-troop-column header span{font-size:.70rem!important}.iwl-page .iwl-lab-stat-columns .lab-stat-label{font-size:.62rem!important}.iwl-page .iwl-lab-stat-columns input,.iwl-page .iwl-lab-stat-columns select{font-size:.72rem!important}
.iwl-page .iwl-squad-tabs button{min-height:52px!important;font-size:.78rem!important}.iwl-page .iwl-squad-tabs button small{font-size:.60rem!important}.iwl-page .iwl-squad-tabs button b{font-size:.62rem!important}.iwl-page .iwl-squad-tabs button.active{background:linear-gradient(135deg,#25a1c7,#176a93)!important;box-shadow:0 8px 20px rgba(20,131,180,.24),inset 0 0 0 1px rgba(160,235,255,.22)!important}
.iwl-page .iwl-squad-head h3{font-size:1.02rem!important}.iwl-page .iwl-squad-head small{font-size:.65rem!important}.iwl-page .iwl-squad-kicker{font-size:.60rem!important}
.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,.iwl-page .iwl-no-hero-photo{width:72px!important;height:72px!important}.iwl-page .iwl-hero-portrait-stack{width:98px!important}.iwl-page .iwl-hero-clear{width:98px!important;min-height:30px!important;font-size:.59rem!important}.iwl-page .iwl-portrait-gear{max-width:94px!important;font-size:.60rem!important;padding:4px 6px!important}.iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:98px minmax(0,1fr) 104px!important}.iwl-page .iwl-hero-grid .star-readout,.iwl-page .iwl-hero-grid .skill-level-readout{font-size:.70rem!important}.iwl-page .iwl-hero-grid .hero-widget-corner label{font-size:.70rem!important}.iwl-page .iwl-hero-grid .hero-widget-corner select{font-size:.72rem!important}
.iwl-page .iwl-gear-row label>span{font-size:.72rem!important}.iwl-page .iwl-gear-row select{font-size:.74rem!important}
.iwl-page .iwl-formation-mode-toggle button{font-size:.62rem!important}.iwl-page .iwl-army-total-field{font-size:.62rem!important}.iwl-page .iwl-ratio-total{font-size:.61rem!important}
.iwl-page .iwl-summary-squad{min-height:94px!important}.iwl-page .iwl-summary-hero{grid-template-rows:64px auto!important}.iwl-page .iwl-summary-hero img,.iwl-page .iwl-summary-hero .iwl-summary-empty{width:64px!important;height:64px!important}.iwl-page .iwl-summary-hero small{font-size:.54rem!important;max-width:76px!important}.iwl-page .iwl-summary-squad-head b{font-size:.76rem!important}.iwl-page .iwl-summary-ratio{font-size:.92rem!important}.iwl-page .iwl-series-label{font-size:.65rem!important}

@media(max-width:430px){
  .iwl-page .iwl-sim-actions{grid-template-columns:minmax(0,1fr) 96px!important}
  .iwl-page .iwl-sim-actions .omnisim-reader-host{grid-column:1/-1!important;grid-row:2!important}
  .iwl-page .iwl-sim-actions .omnisim-reader-host .battle-utility-btn{width:100%!important;min-height:44px!important;font-size:.62rem!important}
  .iwl-page .iwl-sim-actions .omnisim-swap-host{grid-column:1!important;grid-row:1!important}
  .iwl-page .iwl-sim-actions .simulation-gen-control{grid-column:2!important;grid-row:1!important}
}
/* Phone parity: OmniSIM's desktop toggle labels are nowrap; IWL's longer Strength Input
   label must wrap inside the same control cell rather than widening the document. */
@media(max-width:620px){
  body.iwl-page .omnisim-toggle-strip .rail-joiner-copy,
  body.iwl-page .omnisim-toggle-strip .rail-joiner-copy b{
    min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
  }
}
@media(max-width:620px){
  body.iwl-page .iwl-strength-input-item{
    grid-template-columns:39px minmax(0,1fr) 19px!important;
    column-gap:8px!important;
  }
  body.iwl-page .iwl-strength-input-item .rail-joiner-copy{overflow:hidden!important;width:auto!important}
  body.iwl-page .iwl-strength-input-item .rail-joiner-copy b{overflow:hidden!important;text-overflow:ellipsis!important}
  body.iwl-page .iwl-strength-input-item .iwl-strength-segmented{grid-column:1/-1!important;min-width:0!important}
}

/* 2026-10-06 continuation — authoritative visual parity and responsive containment fixes. */
body.iwl-page.frozen-battle-page .iwl-cinematic.omnisim-cinematic-hero .omnisim-hero-stage{
  height:auto!important;
  min-height:0!important;
  aspect-ratio:17/5!important;
}
body.iwl-page.frozen-battle-page .iwl-cinematic.omnisim-cinematic-hero .iwl-header-scene{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}

/* Two Labyrinth-style stat editors cannot coexist cleanly in half-width columns at 1280.
   Keep 1440 desktop side-by-side, then stack the full editors before their intrinsic grids clip. */
@media (min-width:761px) and (max-width:1360px){
  body.iwl-page .iwl-army-grid{grid-template-columns:minmax(0,1fr)!important}
  body.iwl-page .iwl-army-grid>.army-panel{width:100%!important;max-width:100%!important;overflow:visible!important}
}

/* Exact OmniSIM formation controls: toolbar, preset buttons, allocation pill and stack. */
.iwl-page .iwl-ratio-wrap{display:block!important}
.iwl-page .iwl-ratio-wrap .ratio-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap!important}
.iwl-page .iwl-ratio-wrap .ratio-presets{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
.iwl-page .iwl-ratio-wrap .ratio-preset{min-height:30px!important;padding:4px 8px!important;border-radius:8px!important;font-size:.64rem!important}
.iwl-page .iwl-ratio-wrap .ratio-total-pill{margin-left:auto!important;font-size:.66rem!important}
.iwl-page .iwl-ratio-wrap .formation-stack{display:flex!important;height:13px!important;margin:8px 0 10px!important}
.iwl-page .iwl-ratio-wrap .formation-seg{height:100%!important;transition:width .16s ease!important}
.iwl-page .iwl-ratio-control .troop-type-icon{display:inline-flex!important;width:26px!important;height:26px!important;min-width:26px!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.iwl-page .iwl-ratio-control .troop-type-icon img{width:22px!important;height:22px!important;object-fit:contain!important}
.iwl-page .iwl-ratio-control .ratio-slider{min-width:60px!important}

/* Final responsive hero-card rules must come after the global readability overrides above. */
@media (max-width:850px){
  body.iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:86px minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
  body.iwl-page .iwl-hero-portrait-stack{width:86px!important;justify-items:center!important}
  body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
  body.iwl-page .iwl-no-hero-photo{width:72px!important;height:72px!important}
  body.iwl-page .iwl-hero-clear{width:86px!important}
  body.iwl-page .iwl-portrait-gear{max-width:84px!important}
  body.iwl-page .iwl-hero-progress-main{grid-column:2!important;min-width:0!important;width:100%!important}
  body.iwl-page .iwl-hero-grid .hero-widget-corner{grid-column:1/-1!important;width:132px!important;justify-self:end!important}
  body.iwl-page .iwl-hero-grid .snowflake-row{justify-content:center!important;gap:4px!important;transform:none!important;max-width:100%!important;overflow:hidden!important}
  body.iwl-page .iwl-hero-grid .snowflake{width:42px!important;height:42px!important;flex:0 0 42px!important}
}
@media (max-width:430px){
  body.iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:82px minmax(0,1fr)!important;gap:7px!important}
  body.iwl-page .iwl-hero-portrait-stack{width:82px!important}
  body.iwl-page .iwl-hero-clear{width:82px!important;font-size:.56rem!important}
  body.iwl-page .iwl-portrait-gear{max-width:80px!important;font-size:.56rem!important}
  body.iwl-page .iwl-hero-grid .snowflake-row{gap:2px!important}
  body.iwl-page .iwl-hero-grid .snowflake{width:40px!important;height:40px!important;flex:0 0 40px!important}
  body.iwl-page .iwl-hero-grid .hero-widget-corner{width:140px!important}
  body.iwl-page .iwl-formation-shell{padding:9px!important}
  body.iwl-page .iwl-ratio-wrap .ratio-toolbar{align-items:flex-start!important}
  body.iwl-page .iwl-ratio-wrap .ratio-total-pill{margin-left:0!important}
  body.iwl-page .iwl-ratio-control{grid-template-columns:minmax(92px,1fr) 31px minmax(64px,1.1fr) 46px 31px!important;gap:5px!important}
  body.iwl-page .iwl-ratio-control .ratio-label{font-size:.66rem!important}
  body.iwl-page .iwl-ratio-wrap .ratio-preset{font-size:.58rem!important;padding:4px 6px!important}
}

/* The shared simulator owns #sidePanels with an ID selector, so the IWL responsive
   breakpoint must beat that selector explicitly rather than merely matching it. */
@media (min-width:761px) and (max-width:1360px){
  body.iwl-page #sidePanels.sim-grid.iwl-army-grid{grid-template-columns:minmax(0,1fr)!important}
  body.iwl-page #sidePanels.sim-grid.iwl-army-grid>.att,
  body.iwl-page #sidePanels.sim-grid.iwl-army-grid>.def{grid-column:1!important;grid-row:auto!important}
}

/* 2026-10-06 continuation — IWL uses the complete OmniSIM optimizer-control strip,
   not the shared two-column command+army wrapper. Keep all six owner-approved
   controls full-width and let the same OmniSIM responsive family reflow them. */
body.iwl-page .iwl-command-compact-row{
  display:block!important;
  grid-template-columns:none!important;
  width:100%!important;
  max-width:none!important;
  margin:12px 0 0!important;
}
body.iwl-page .iwl-mode-strip{
  width:100%!important;
  max-width:none!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
body.iwl-page .iwl-mode-strip>*{
  border-right:1px solid rgba(89,182,215,.14)!important;
  border-bottom:0!important;
}
body.iwl-page .iwl-mode-strip>*:last-child{border-right:0!important}
@media(max-width:1280px){
  body.iwl-page .iwl-mode-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.iwl-page .iwl-mode-strip>*{border-right:1px solid rgba(89,182,215,.14)!important;border-bottom:1px solid rgba(89,182,215,.14)!important}
  body.iwl-page .iwl-mode-strip>*:nth-child(3n){border-right:0!important}
  body.iwl-page .iwl-mode-strip>*:nth-last-child(-n+3){border-bottom:0!important}
}
@media(max-width:900px){
  body.iwl-page .iwl-mode-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.iwl-page .iwl-mode-strip>*{border-right:1px solid rgba(89,182,215,.14)!important;border-bottom:1px solid rgba(89,182,215,.14)!important}
  body.iwl-page .iwl-mode-strip>*:nth-child(3n){border-right:1px solid rgba(89,182,215,.14)!important}
  body.iwl-page .iwl-mode-strip>*:nth-child(even){border-right:0!important}
  body.iwl-page .iwl-mode-strip>*:nth-last-child(-n+2){border-bottom:0!important}
}
@media(max-width:620px){
  body.iwl-page .iwl-mode-strip{grid-template-columns:1fr!important}
  body.iwl-page .iwl-mode-strip>*{border-right:0!important;border-bottom:1px solid rgba(89,182,215,.14)!important}
  body.iwl-page .iwl-mode-strip>*:nth-last-child(-n+2){border-bottom:1px solid rgba(89,182,215,.14)!important}
  body.iwl-page .iwl-mode-strip>*:last-child{border-bottom:0!important}
}

/* The league title makes this battle page's desktop top-bar left rail slightly wider.
   Keep the site's segmented/slashed navigation, but use the already-approved compact
   desktop spacing in the narrow 1440-class band so the right utility rail stays in-frame. */
@media(min-width:1421px) and (max-width:1500px){
  body.iwl-page .omni-global-nav{gap:22px!important;column-gap:22px!important}
  body.iwl-page .omni-global-menu + .omni-global-menu{padding-left:22px!important}
  body.iwl-page .omni-global-nav>.omni-global-menu:first-child{padding-left:22px!important}
}

/* Strength Input is the IWL replacement for OmniSIM's Presentation segment. Reuse the
   same presentation-cell composition while keeping IWL semantic IDs/text. */
body.iwl-page .iwl-mode-strip > #iwlStrengthInlineHost.omnisim-inline-presentation-host{
  display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;height:100%!important;
  margin:0!important;padding:0!important;position:relative!important;justify-self:stretch!important;align-self:stretch!important;
  border-left:1px solid rgba(112,196,233,.14)!important;
}
body.iwl-page #iwlStrengthInlineHost > .iwl-strength-input-item.battle-setup-view-switch.omnisim-presentation-inline{
  position:relative!important;inset:auto!important;transform:none!important;display:grid!important;width:100%!important;max-width:none!important;height:100%!important;
  min-width:0!important;min-height:88px!important;margin:0!important;padding:10px 11px!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;grid-template-columns:auto 28px minmax(0,1fr)!important;
  grid-template-areas:'help icon copy' 'segment segment segment'!important;column-gap:7px!important;row-gap:6px!important;align-content:center!important;
}
body.iwl-page #iwlStrengthInlineHost .iwl-strength-icon{display:grid!important;place-items:center!important;font:900 1.15rem/1 var(--omni-ui)!important;color:#d8f4ff!important}
body.iwl-page #iwlStrengthInlineHost .rail-joiner-copy b{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
body.iwl-page #iwlStrengthInlineHost .iwl-strength-segmented{min-width:0!important;width:100%!important}

/* Grid min-content containment: the phone editor must shrink to the panel instead of
   letting the snowflake/formation cards enlarge an implicit auto track. */
body.iwl-page .iwl-squad-editor,
body.iwl-page .iwl-hero-grid{
  grid-template-columns:minmax(0,1fr)!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}
body.iwl-page .iwl-squad-editor > *,
body.iwl-page .iwl-hero-grid > *,
body.iwl-page .iwl-formation-shell{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* 2026-10-06 owner gear + Specials parity correction.
   Hero Gear remains the OmniSIM physical four-piece editor; IWL exposes it at the
   individual hero-slot, squad and side scopes without inventing a second gear UI. */
body.iwl-page .iwl-hero-portrait-stack{
  width:116px!important;
  align-self:start!important;
}
body.iwl-page .iwl-hero-grid .hero-compact-grid{
  grid-template-columns:116px minmax(0,1fr)!important;
  align-items:start!important;
}
body.iwl-page .iwl-hero-gear-actions{
  width:100%;display:grid;grid-template-columns:1fr 30px 30px;gap:5px;margin-top:5px;
}
body.iwl-page .iwl-hero-gear-select{
  grid-column:1/-1;display:grid;gap:3px;min-width:0;text-align:left;
}
body.iwl-page .iwl-hero-gear-select span{
  font-size:.52rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:#84aabb;
}
body.iwl-page .iwl-hero-gear-select select{
  width:100%;min-width:0;min-height:30px;padding:4px 22px 4px 7px;border:1px solid rgba(94,191,226,.27);
  border-radius:8px;background:rgba(2,18,29,.94);color:#dff6ff;font:850 .60rem/1 var(--omni-ui);
}
body.iwl-page .iwl-hero-gear-open{
  min-width:0;min-height:31px;padding:5px 7px;border:1px solid rgba(89,192,226,.34);border-radius:8px;
  background:linear-gradient(135deg,rgba(15,78,105,.92),rgba(8,43,66,.96));color:#e9fbff;
  font:950 .57rem/1 var(--omni-ui);letter-spacing:.02em;cursor:pointer;
}
body.iwl-page .iwl-gear-icon-btn{
  display:grid;place-items:center;width:30px;height:31px;padding:0;border:1px solid rgba(100,198,232,.31);border-radius:8px;
  background:rgba(6,31,45,.94);color:#a8eaff;font:1000 .88rem/1 var(--omni-ui);cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
body.iwl-page .iwl-gear-icon-btn.max{color:#ffda77;border-color:rgba(232,177,55,.37);background:linear-gradient(145deg,rgba(92,62,12,.62),rgba(8,36,48,.94))}
body.iwl-page .iwl-gear-icon-btn.reset{color:#92cfe5}
body.iwl-page .iwl-gear-icon-btn:hover:not(:disabled),body.iwl-page .iwl-hero-gear-open:hover:not(:disabled){filter:brightness(1.16);transform:translateY(-1px)}
body.iwl-page .iwl-gear-icon-btn:disabled,body.iwl-page .iwl-hero-gear-open:disabled{opacity:.35;cursor:not-allowed;transform:none}
body.iwl-page .iwl-squad-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
body.iwl-page .iwl-squad-gear-batch,
body.iwl-page .iwl-side-gear-batch{
  display:flex;align-items:center;gap:7px;min-width:0;padding:7px 8px;border:1px solid rgba(94,190,225,.18);border-radius:10px;
  background:rgba(2,20,31,.58);
}
body.iwl-page .iwl-squad-gear-batch>span,body.iwl-page .iwl-side-gear-batch>div:first-child{display:grid;gap:2px;min-width:0}
body.iwl-page .iwl-squad-gear-batch b,body.iwl-page .iwl-side-gear-batch b{font-size:.60rem;color:#d8edf5}
body.iwl-page .iwl-squad-gear-batch small,body.iwl-page .iwl-side-gear-batch small{font-size:.50rem;line-height:1.25;color:#789aa8}
body.iwl-page .iwl-side-gear-batch{margin:9px 0 10px;padding:9px 10px;justify-content:flex-end}
body.iwl-page .iwl-side-gear-batch>div:first-child{margin-right:auto}

/* Modal shell only supplies IWL framing. The board/pieces/quick rows/mastery menus
   intentionally use simulator.css's exact OmniSIM classes without local replacements. */
body.iwl-page .iwl-gear-dialog{width:min(1040px,96vw)!important;max-height:92vh!important;overflow:auto!important}
body.iwl-page .iwl-gear-physical-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;border:1px solid rgba(91,192,229,.20);border-radius:11px;background:rgba(5,26,39,.78)}
body.iwl-page .iwl-gear-physical-strip>div{display:grid;gap:2px}body.iwl-page .iwl-gear-physical-strip b{font-size:.72rem;color:#e8f8ff}body.iwl-page .iwl-gear-physical-strip small{font-size:.58rem;color:#7fa0ae}
body.iwl-page .iwl-gear-physical-strip select{min-width:150px;min-height:34px;border:1px solid rgba(101,201,235,.28);border-radius:9px;background:#061d2b;color:#e8f8ff;padding:5px 9px;font-weight:850}
body.iwl-page .iwl-gear-modal .hero-gear-board{max-width:100%!important}
body.iwl-page .iwl-gear-modal .v60-panel-head{margin-bottom:10px}

/* IWL Specials is literally the OmniSIM component family, constrained only by the
   mode's eligibility rules: Gareth and stat-changing pet skills. */
body.iwl-page .iwl-specials-editor{margin-top:10px}
body.iwl-page .iwl-specials-editor .v60-panel-head{align-items:flex-start!important;gap:14px!important}
body.iwl-page .iwl-specials-editor .v60-panel-head p{max-width:780px;font-size:.64rem!important;line-height:1.45!important;color:#90afbc!important}
body.iwl-page .iwl-special-scope-note{display:grid;gap:5px;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(86,196,233,.24);border-radius:11px;background:linear-gradient(120deg,rgba(3,37,55,.86),rgba(8,26,38,.78));color:#dff7ff}
body.iwl-page .iwl-special-scope-note b{font-size:.76rem}body.iwl-page .iwl-special-scope-note span{font-size:.68rem;font-weight:850;color:#9de8ff}body.iwl-page .iwl-special-scope-note small{font-size:.61rem;line-height:1.42;color:#8ba7b3}
body.iwl-page .iwl-gareth-only{grid-template-columns:minmax(0,520px)!important}
body.iwl-page .iwl-v60-special-modal{padding-bottom:4px}

@media(max-width:850px){
  body.iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:106px minmax(0,1fr)!important}
  body.iwl-page .iwl-hero-portrait-stack{width:106px!important}
  body.iwl-page .iwl-hero-clear{width:106px!important}
  body.iwl-page .iwl-portrait-gear{max-width:104px!important}
  body.iwl-page .iwl-squad-head{align-items:flex-start!important;gap:9px!important;flex-wrap:wrap!important}
  body.iwl-page .iwl-squad-head-actions{width:100%;justify-content:flex-start}
  body.iwl-page .iwl-side-gear-batch{justify-content:flex-start;flex-wrap:wrap}
  body.iwl-page .iwl-side-gear-batch>div:first-child{width:100%;margin-right:0}
}
@media(max-width:520px){
  body.iwl-page .iwl-hero-grid .hero-compact-grid{grid-template-columns:98px minmax(0,1fr)!important;gap:7px!important}
  body.iwl-page .iwl-hero-portrait-stack{width:98px!important}
  body.iwl-page .iwl-hero-clear{width:98px!important}
  body.iwl-page .iwl-portrait-gear{max-width:96px!important}
  body.iwl-page .iwl-hero-gear-actions{grid-template-columns:minmax(0,1fr) 28px 28px;gap:4px}
  body.iwl-page .iwl-gear-icon-btn{width:28px;height:30px}.iwl-page .iwl-hero-gear-open{min-height:30px;font-size:.54rem}
  body.iwl-page .iwl-squad-gear-batch{width:100%;justify-content:flex-end}body.iwl-page .iwl-squad-gear-batch>span{margin-right:auto}
  body.iwl-page .iwl-specials-editor .v60-panel-head{display:grid!important;grid-template-columns:1fr!important}
  body.iwl-page .iwl-specials-editor .v60-panel-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
  body.iwl-page .iwl-gear-physical-strip select{width:100%;min-width:0}
}

/* 2026-10-06 continuation — exact existing component parity for squad tabs + report ink. */
.iwl-page .battle-report-scroll .report-summary-side.att,
.iwl-page .battle-report-scroll .report-summary-side.def{
  color:var(--paper-ink,#694c37)!important;
}
.iwl-page .iwl-squad-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  padding:0!important;
  border-radius:999px!important;
  overflow:hidden!important;
  background:rgba(3,24,37,.84)!important;
  border:1px solid rgba(115,202,228,.24)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
.iwl-page .iwl-squad-tabs button{
  min-height:54px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#7f9eab!important;
  position:relative!important;
  cursor:pointer!important;
  transition:color .17s ease,background .17s ease,box-shadow .17s ease!important;
  padding:8px 12px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"title power" "ratio power"!important;
  gap:2px 8px!important;
  text-align:left!important;
}
.iwl-page .iwl-squad-tabs button+button{border-left:1px solid rgba(111,193,219,.16)!important}
.iwl-page .iwl-squad-tabs button span{grid-area:title!important;color:inherit!important;font-size:.72rem!important;font-weight:950!important;letter-spacing:.07em!important;text-transform:uppercase!important}
.iwl-page .iwl-squad-tabs button small{grid-area:ratio!important;color:#789aa9!important;font-size:.60rem!important;font-weight:850!important}
.iwl-page .iwl-squad-tabs button b{grid-area:power!important;align-self:center!important;color:#ffe3a0!important;font-size:.62rem!important}
.iwl-page .iwl-squad-tabs button.active{color:#f2fbff!important;background:linear-gradient(180deg,rgba(54,173,212,.28),rgba(19,93,122,.20))!important;box-shadow:inset 0 -3px #77ddf7,0 0 20px rgba(65,183,218,.08)!important}
.iwl-page .army-panel.att .iwl-squad-tabs button.active{background:linear-gradient(180deg,rgba(230,61,82,.31),rgba(119,24,39,.20))!important;box-shadow:inset 0 -3px #ff7285,0 0 20px rgba(231,63,84,.08)!important}
.iwl-page .iwl-squad-tabs button.active small{color:#c5e8f3!important}
.iwl-page .iwl-squad-tabs button:hover:not(.active){color:#d6edf5!important;background:rgba(62,151,181,.08)!important}
@media(max-width:768px){
  .iwl-page .iwl-squad-tabs button{min-height:48px!important;padding:7px 9px!important}
  .iwl-page .iwl-squad-tabs button span{font-size:.64rem!important}
  .iwl-page .iwl-squad-tabs button small{font-size:.54rem!important}
}
@media(max-width:480px){
  .iwl-page .iwl-squad-tabs{border-radius:14px!important}
  .iwl-page .iwl-squad-tabs button{min-height:46px!important;padding:6px 7px!important;gap:1px 4px!important}
  .iwl-page .iwl-squad-tabs button span{font-size:.58rem!important;letter-spacing:.04em!important}
  .iwl-page .iwl-squad-tabs button small{font-size:.50rem!important}
  .iwl-page .iwl-squad-tabs button b{font-size:.52rem!important}
}

/* 2026-10-06 continuation — phone readability + sequence report sizing.
   Keep the shared OmniSIM/Labyrinth component geometry, but never shrink IWL's
   critical control copy into sub-10px text on a real phone viewport. */
.iwl-page #iwlSequenceModal .battle-report-shell{
  height:auto!important;
  max-height:min(92vh,720px)!important;
}
.iwl-page #iwlSequenceModal .battle-report-scroll{
  flex:0 1 auto!important;
  min-height:0!important;
}
@media(max-width:520px){
  .iwl-page .iwl-lab-stat-columns .lab-field span{font-size:.65rem!important}
  .iwl-page .iwl-squad-tabs button span{font-size:.65rem!important;letter-spacing:.035em!important}
  .iwl-page .iwl-squad-tabs button small{font-size:.61rem!important}
  .iwl-page .iwl-squad-tabs button b{font-size:.61rem!important}
  body.iwl-page .iwl-hero-gear-select span{font-size:.63rem!important}
  body.iwl-page .iwl-hero-gear-select select{font-size:.64rem!important;min-height:33px!important}
  body.iwl-page .iwl-hero-gear-open{font-size:.63rem!important;min-height:33px!important}
  body.iwl-page .iwl-side-gear-batch b{font-size:.66rem!important}
  body.iwl-page .iwl-side-gear-batch small{font-size:.61rem!important;line-height:1.35!important}
  body.iwl-page .iwl-squad-gear-batch b{font-size:.66rem!important}
  body.iwl-page .iwl-squad-gear-batch small{font-size:.61rem!important;line-height:1.3!important}
  .iwl-page .iwl-ratio-wrap .ratio-preset{font-size:.63rem!important;padding:5px 6px!important}
  .iwl-page .iwl-specials-editor .v60-panel-head p{font-size:.66rem!important;line-height:1.5!important}
  .iwl-page .iwl-portrait-gear{font-size:.63rem!important}
  .iwl-page .iwl-hero-clear{font-size:.62rem!important}
}
@media(max-width:520px){
  body.iwl-page .iwl-squad-tabs button small,
  body.iwl-page .iwl-squad-tabs button b{font-size:.64rem!important}
  body.iwl-page .iwl-side-gear-batch small,
  body.iwl-page .iwl-squad-gear-batch small{font-size:.64rem!important}
  body.iwl-page .iwl-ratio-wrap .ratio-preset{font-size:.64rem!important;padding:5px 6px!important}
  body.iwl-page .iwl-specials-editor .v60-panel-head p{font-size:.68rem!important}
}
/* IWL Search Speed inherits OmniSIM geometry but shows the same filled-to-thumb rail. */
body.frozen-battle-page .iwl-speed-item input.command-speed-bar{
  background:linear-gradient(90deg,#53c9ff 0%,#7fdfff var(--iwl-speed-pct,0%),rgba(28,69,91,.62) var(--iwl-speed-pct,0%),rgba(13,38,53,.86) 100%)!important;
}

/* ================================================================
   2026-10-07 OWNER ACCEPTANCE REPAIR — authoritative final layer.
   This block deliberately wins over earlier IWL approximations and reuses
   OmniSIM/Labyrinth geometry wherever the owner requested exact parity.
   ================================================================ */

/* Command row: the center console owns only its own height. Opening Quick Army
   Settings must never stretch the optimizer recommendation columns. */
body.iwl-page .iwl-battle-main{align-items:start!important}
body.iwl-page .iwl-simulation-console,
body.iwl-page .iwl-optimizer-column{align-self:start!important;height:auto!important;min-height:0!important}
body.iwl-page .iwl-quick-settings{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
body.iwl-page .iwl-quick-settings>.optimizer-settings-body{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
body.iwl-page .iwl-quick-settings .omnisim-army-settings-grid{min-width:0!important}
body.iwl-page .iwl-quick-settings .omnisim-quick-army-actions{min-width:0!important;flex-wrap:wrap!important}

/* Shared OmniSIM telemetry rail. There is intentionally no private IWL cancel
   button here; cancellation lives on the active command control exactly like OmniSIM. */
body.iwl-page #iwlSearchProgress.iwl-search-progress.omnisim-progress{
  display:block!important;width:100%!important;max-width:none!important;
  margin:16px 0 0!important;padding:0 2px!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body.iwl-page #iwlSearchProgress[hidden]{display:none!important}
body.iwl-page #iwlSearchProgress .optimizer-progress-track{
  display:block!important;width:100%!important;height:4px!important;border-radius:2px!important;
  overflow:hidden!important;background:rgba(24,75,107,.42)!important;
}
body.iwl-page #iwlSearchProgress .optimizer-progress-fill{
  display:block!important;height:100%!important;width:0;border-radius:2px!important;
  background:linear-gradient(90deg,#ff4f64,#58c9ff)!important;transition:width .15s linear!important;
}
body.iwl-page #iwlSearchProgress .command-progress-copy{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin-top:6px!important;color:#7898aa!important;font-size:.64rem!important;font-weight:700!important;
}
body.iwl-page #iwlSearchProgress .command-progress-copy span:last-child{color:#a8cada!important;font-variant-numeric:tabular-nums!important}

/* Exact OmniSIM control-strip surface/spacing. IWL owns six controls, but each
   cell uses the same tint, borders, typography and control geometry. */
body.iwl-page .iwl-command-compact-row{margin-top:28px!important}
body.iwl-page .iwl-mode-strip{
  margin-top:0!important;border:1px solid rgba(57,139,194,.28)!important;border-radius:9px!important;
  background:linear-gradient(180deg,rgba(5,31,51,.83),rgba(4,25,43,.84))!important;
  box-shadow:0 14px 38px rgba(0,8,18,.18)!important;overflow:visible!important;
}
body.iwl-page .iwl-mode-strip>*{background:transparent!important;border-color:rgba(66,145,194,.34)!important}
body.iwl-page .iwl-mode-strip .rail-joiner-copy b{font-size:.82rem!important;line-height:1.08!important}
body.iwl-page .iwl-mode-strip .rail-joiner-copy small{font-size:.62rem!important;font-weight:700!important}

/* Search Speed is the same filled-to-thumb OmniSIM range. JS writes --speed-fill. */
body.iwl-page .iwl-speed-item input.command-speed-bar{
  height:24px!important;padding:0!important;border:0!important;border-radius:0!important;
  background:linear-gradient(90deg,#64d6ff 0%,#84e4ff var(--speed-fill,0%),rgba(8,33,55,.96) var(--speed-fill,0%),rgba(8,33,55,.96) 100%) center/100% 8px no-repeat!important;
  box-shadow:none!important;overflow:visible!important;
}
body.iwl-page .iwl-speed-item input.command-speed-bar::-webkit-slider-runnable-track{height:8px!important;border:1px solid rgba(126,204,242,.44)!important;border-radius:999px!important;background:transparent!important;box-shadow:inset 0 0 5px rgba(0,0,0,.36)!important}
body.iwl-page .iwl-speed-item input.command-speed-bar::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:22px!important;height:22px!important;margin-top:-8px!important;border-radius:50%!important;background:#f8fcff!important;border:4px solid #49c8ff!important;box-shadow:0 0 0 5px rgba(73,200,255,.18),0 4px 13px rgba(0,8,16,.42)!important}
body.iwl-page .iwl-speed-item input.command-speed-bar::-moz-range-track{height:8px!important;border:1px solid rgba(126,204,242,.44)!important;border-radius:999px!important;background:rgba(8,33,55,.96)!important}
body.iwl-page .iwl-speed-item input.command-speed-bar::-moz-range-progress{height:8px!important;border-radius:999px!important;background:linear-gradient(90deg,#64d6ff,#84e4ff)!important}
body.iwl-page .iwl-speed-item input.command-speed-bar::-moz-range-thumb{width:22px!important;height:22px!important;border-radius:50%!important;background:#f8fcff!important;border:4px solid #49c8ff!important;box-shadow:0 0 0 5px rgba(73,200,255,.18),0 4px 13px rgba(0,8,16,.42)!important}

/* Strength Input is Presentation, with only icon/text changed. */
body.iwl-page .iwl-mode-strip>#iwlStrengthInlineHost.omnisim-inline-presentation-host{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;align-self:stretch!important;overflow:visible!important}
body.iwl-page #iwlStrengthInlineHost>.iwl-strength-input-item.omnisim-presentation-inline{
  position:relative!important;display:grid!important;width:100%!important;height:100%!important;min-height:88px!important;
  margin:0!important;padding:10px 11px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  grid-template-columns:auto 28px minmax(0,1fr)!important;grid-template-areas:'help icon copy' 'segment segment segment'!important;
  column-gap:7px!important;row-gap:6px!important;align-content:center!important;overflow:visible!important;
}
body.iwl-page #iwlStrengthInlineHost .omnisim-presentation-help{grid-area:help!important;justify-self:start!important}
body.iwl-page #iwlStrengthInlineHost .iwl-strength-icon{grid-area:icon!important;width:28px!important;height:28px!important}
body.iwl-page #iwlStrengthInlineHost .iwl-strength-icon svg{width:27px!important;height:27px!important}
body.iwl-page #iwlStrengthInlineHost .rail-joiner-copy{grid-area:copy!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;min-width:0!important}
body.iwl-page #iwlStrengthInlineHost .iwl-strength-segmented{grid-area:segment!important;margin:0!important;min-height:34px!important;width:100%!important}
body.iwl-page #iwlStrengthInlineHost .battle-setup-view-btn{min-height:34px!important;padding:0 8px!important;font-size:.66rem!important}

/* Meta and My Recommendations use the same OmniSIM action. My Recommendations
   changes only its accent/background family. */
body.iwl-page .iwl-meta-action{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;align-items:center!important;justify-items:stretch!important}
body.iwl-page .iwl-meta-action>#iwlMetaSearchBtn,
body.iwl-page .iwl-meta-action>#iwlMyRecommendationsBtn{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;
  min-width:300px!important;min-height:66px!important;padding:0 25px!important;border:1px solid rgba(109,220,255,.86)!important;border-radius:8px!important;
  background:linear-gradient(180deg,rgba(42,165,231,.90),rgba(15,105,180,.94))!important;color:#f4fbff!important;
  box-shadow:inset 0 0 26px rgba(172,239,255,.22),0 0 16px rgba(55,196,255,.42),0 0 38px rgba(55,196,255,.15)!important;
  font:700 .95rem var(--omni-ui)!important;overflow:hidden!important;
}
body.iwl-page .iwl-meta-action>#iwlMyRecommendationsBtn{border-color:rgba(255,211,116,.80)!important;background:linear-gradient(180deg,rgba(182,119,35,.94),rgba(104,66,20,.96))!important;box-shadow:inset 0 0 26px rgba(255,228,167,.17),0 0 16px rgba(234,166,65,.34),0 0 38px rgba(234,166,65,.12)!important}
body.iwl-page .iwl-meta-action>#iwlMetaSearchBtn:hover{background:linear-gradient(180deg,rgba(61,189,247,.96),rgba(20,121,197,.98))!important}
body.iwl-page .iwl-meta-action>#iwlMyRecommendationsBtn:hover{background:linear-gradient(180deg,rgba(205,143,51,.97),rgba(122,77,23,.99))!important}
body.iwl-page .iwl-meta-action .meta-button-content{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:auto!important;height:auto!important}
body.iwl-page .iwl-meta-action .meta-crown{font-size:0!important}
body.iwl-page .iwl-meta-action .meta-crown::before{content:'⌕';font-size:1.55rem;line-height:1}
body.iwl-page .iwl-my-recommendations-strip .meta-crown::before{content:'★';font-size:1.20rem}
body.iwl-page .iwl-meta-action .meta-btn-spark{display:none!important}
body.iwl-page .iwl-meta-history-actions{display:flex!important;justify-content:center!important;gap:7px!important;flex-wrap:wrap!important}
body.iwl-page .iwl-meta-history-actions[hidden]{display:none!important}
body.iwl-page .iwl-meta-history-actions .rail-meta-recalculate{min-height:30px!important;padding:4px 11px!important;border:1px solid rgba(78,175,229,.45)!important;border-radius:999px!important;background:rgba(4,31,52,.84)!important;color:#cde8f5!important;font-size:.60rem!important;font-weight:850!important;cursor:pointer!important}

/* Strong, unmistakable event phase: animated ice on upper/left, fire on lower/right,
   moving particle glints and a raised active plate. */
body.iwl-page .iwl-event-stage{overflow:hidden!important;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease!important}
body.iwl-page .iwl-event-stage.active{z-index:3!important;transform:translateY(-3px) scale(1.012)!important;filter:brightness(1.22) saturate(1.18)!important;background:linear-gradient(115deg,rgba(17,126,191,.42),rgba(12,49,72,.54) 48%,rgba(194,68,20,.38))!important;box-shadow:inset 0 0 0 2px rgba(156,235,255,.62),inset 0 0 42px rgba(48,180,255,.19),inset 0 -16px 34px rgba(255,82,24,.16),0 0 24px rgba(67,192,255,.18),0 0 28px rgba(255,94,29,.15)!important}
body.iwl-page .iwl-event-stage.active::before{content:''!important;position:absolute!important;inset:-35% -20%!important;border:0!important;border-radius:0!important;opacity:.95!important;background:radial-gradient(circle at 14% 18%,rgba(194,249,255,.92) 0 2px,transparent 3px),radial-gradient(circle at 33% 11%,rgba(110,231,255,.78) 0 2px,transparent 3px),radial-gradient(circle at 54% 17%,rgba(222,252,255,.82) 0 1.5px,transparent 3px),linear-gradient(110deg,transparent 17%,rgba(112,231,255,.36) 38%,transparent 57%)!important;background-size:76px 54px,96px 64px,82px 58px,180% 100%!important;border-top:3px solid #9af0ff!important;border-left:3px solid rgba(102,223,255,.90)!important;filter:drop-shadow(0 0 9px rgba(73,213,255,.92))!important;animation:iwlIceSweep 2.8s linear infinite!important}
body.iwl-page .iwl-event-stage.active::after{content:''!important;position:absolute!important;inset:-35% -20%!important;border:0!important;border-radius:0!important;opacity:.90!important;background:radial-gradient(circle at 17% 83%,rgba(255,206,88,.95) 0 2px,transparent 3px),radial-gradient(circle at 42% 91%,rgba(255,107,35,.92) 0 2.5px,transparent 4px),radial-gradient(circle at 69% 82%,rgba(255,154,52,.90) 0 2px,transparent 3px),linear-gradient(70deg,transparent 18%,rgba(255,100,26,.40) 40%,transparent 60%)!important;background-size:82px 56px,104px 66px,92px 62px,180% 100%!important;border-bottom:3px solid #ff963f!important;border-right:3px solid rgba(255,91,28,.95)!important;filter:drop-shadow(0 0 10px rgba(255,90,24,.90))!important;animation:iwlFireSweep 2.2s linear infinite reverse!important}
@keyframes iwlIceSweep{0%{background-position:0 0,20px 2px,42px 1px,140% 0}100%{background-position:76px 0,116px 2px,124px 1px,-40% 0}}
@keyframes iwlFireSweep{0%{background-position:0 100%,26px 98%,50px 100%,140% 0}100%{background-position:82px 100%,130px 98%,142px 100%,-40% 0}}

/* Specials and whole-side gear are common configuration and intentionally prominent. */
body.iwl-page .iwl-specials-editor{order:-30!important;margin:8px 0 12px!important;border-radius:12px!important}
body.iwl-page .iwl-specials-editor .v60-panel-head p{max-width:900px!important;font-size:.90rem!important;line-height:1.48!important;color:#b6d2de!important}
body.iwl-page .iwl-specials-editor .v60-panel-head h3{font-size:1.06rem!important}
body.iwl-page .iwl-specials-editor .v60-special-summary span{font-size:.72rem!important}
body.iwl-page .iwl-specials-editor .v60-special-summary b{font-size:.82rem!important}
body.iwl-page .iwl-side-gear-batch{order:-20!important;min-height:88px!important;margin:0 0 13px!important;padding:15px 17px!important;border-radius:12px!important;align-items:center!important}
body.iwl-page .iwl-side-gear-batch>div:first-child{gap:5px!important}
body.iwl-page .iwl-side-gear-batch b{font-size:1.00rem!important;line-height:1.15!important;color:#eaf8ff!important}
body.iwl-page .iwl-side-gear-batch small{font-size:.78rem!important;line-height:1.42!important;color:#9bbbc8!important}
body.iwl-page .iwl-gear-batch-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
body.iwl-page .iwl-gear-max-btn{min-height:36px!important;padding:0 12px!important;border:1px solid rgba(255,206,95,.42)!important;border-radius:8px!important;background:linear-gradient(180deg,rgba(124,86,20,.78),rgba(72,49,13,.82))!important;color:#ffe6a8!important;font-size:.70rem!important;font-weight:950!important;cursor:pointer!important;white-space:nowrap!important}
body.iwl-page .iwl-gear-max-btn.prominent{min-height:42px!important;padding:0 17px!important;font-size:.78rem!important}
body.iwl-page .iwl-gear-icon-btn.reset{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border:1px solid rgba(94,190,225,.34)!important;border-radius:8px!important;background:rgba(5,37,53,.86)!important;color:#9ddff7!important;font-size:1.02rem!important;cursor:pointer!important}
body.iwl-page .iwl-side-gear-batch .iwl-gear-icon-btn.reset{width:42px!important;height:42px!important;min-width:42px!important}

/* Final-stat hierarchy: final values are the primary readout; Base is deliberately
   secondary and appears directly underneath in parentheses. */
body.iwl-page .iwl-stat-flow-note{padding:12px 14px!important;border:1px solid rgba(89,190,232,.20)!important;border-radius:10px!important;background:rgba(4,27,40,.62)!important;display:grid!important;gap:4px!important}
body.iwl-page .iwl-stat-flow-note b{font-size:.88rem!important;color:#e7f8ff!important}
body.iwl-page .iwl-stat-flow-note span{font-size:.72rem!important;line-height:1.45!important;color:#9dbbc8!important}
body.iwl-page .iwl-stat-flow-note small{font-size:.68rem!important;color:#78d8f7!important;font-weight:850!important}
body.iwl-page .iwl-final-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:8px 0 10px!important}
body.iwl-page .iwl-final-stat{min-width:0!important;padding:8px 9px!important;border:1px solid rgba(98,187,219,.16)!important;border-radius:8px!important;background:rgba(3,22,34,.62)!important}
body.iwl-page .iwl-final-stat>span{display:block!important;font-size:.65rem!important;color:#8caab8!important;font-weight:800!important}
body.iwl-page .iwl-final-stat>b{display:block!important;margin-top:2px!important;font-size:1.00rem!important;color:#effaff!important;font-weight:950!important;font-variant-numeric:tabular-nums!important}
body.iwl-page .iwl-final-stat>small{display:block!important;margin-top:2px!important;font-size:.59rem!important;color:#789aa9!important}
body.iwl-page .iwl-base-edit-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:4px!important}
body.iwl-page .iwl-base-edit-head b{font-size:.70rem!important}.iwl-page .iwl-base-edit-head small{font-size:.60rem!important;color:#7796a3!important}

/* Compact three-hero row. No hero card is allowed to become a giant full-width slab. */
body.iwl-page .iwl-hero-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;align-items:start!important;margin-top:11px!important}
body.iwl-page .iwl-hero-grid>.iwl-hero-card{min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:9px!important;border:1px solid rgba(108,193,224,.16)!important;border-radius:11px!important;background:rgba(4,27,39,.66)!important;overflow:visible!important}
body.iwl-page .iwl-hero-card-top{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:9px!important;align-items:start!important}
body.iwl-page .iwl-hero-portrait-stack{width:86px!important;min-width:86px!important;display:grid!important;justify-items:center!important;align-content:start!important;gap:5px!important}
body.iwl-page .iwl-hero-grid .hero-photo-select{position:relative!important;width:82px!important;min-width:82px!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;cursor:pointer!important}
body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
body.iwl-page .iwl-no-hero-photo{display:block!important;width:82px!important;height:82px!important;border-radius:10px!important;object-fit:cover!important}
body.iwl-page .iwl-no-hero-photo{place-content:center!important;font-size:.62rem!important;line-height:1.15!important}
body.iwl-page .iwl-no-hero-photo small{display:block!important;margin-top:4px!important;font-size:.52rem!important}
body.iwl-page .iwl-hero-grid .hero-photo-name{display:block!important;max-width:82px!important;margin-top:4px!important;font-size:.64rem!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.iwl-page .iwl-portrait-gear{display:block!important;max-width:82px!important;margin:4px auto 0!important;padding:4px 6px!important;font-size:.58rem!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.iwl-page .iwl-hero-clear{width:82px!important;min-height:29px!important;padding:0 5px!important;font-size:.56rem!important}
body.iwl-page .iwl-hero-progression{display:grid!important;gap:7px!important;min-width:0!important;align-content:start!important}
body.iwl-page .iwl-hero-meta-line{display:grid!important;grid-template-columns:auto minmax(78px,1fr)!important;grid-template-areas:'stars widget' 'skill widget'!important;gap:3px 8px!important;align-items:center!important;min-width:0!important}
body.iwl-page .iwl-hero-meta-line .star-readout{grid-area:stars!important;font-size:.72rem!important;color:#8bdcff!important;font-weight:950!important}
body.iwl-page .iwl-hero-meta-line .skill-level-readout{grid-area:skill!important;font-size:.68rem!important;color:#d9c8ff!important;font-weight:900!important;white-space:nowrap!important}
body.iwl-page .iwl-widget-inline{grid-area:widget!important;display:grid!important;grid-template-columns:auto 24px minmax(42px,1fr)!important;grid-template-areas:'label label label' 'icon select select'!important;gap:3px 5px!important;align-items:center!important;min-width:0!important}
body.iwl-page .iwl-widget-inline>span{grid-area:label!important;font-size:.58rem!important;color:#92aab6!important;font-weight:850!important;text-transform:uppercase!important}
body.iwl-page .iwl-widget-inline img{grid-area:icon!important;width:24px!important;height:24px!important;object-fit:contain!important}
body.iwl-page .iwl-widget-inline select{grid-area:select!important;width:100%!important;min-width:0!important;min-height:30px!important;padding:3px 5px!important;font-size:.66rem!important}
body.iwl-page .iwl-hero-grid .snowflake-row{display:flex!important;justify-content:flex-start!important;gap:3px!important;min-width:0!important;max-width:100%!important;margin:1px 0!important;padding:0!important;overflow:visible!important;transform:none!important}
body.iwl-page .iwl-hero-grid .snowflake{position:relative!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;flex:0 0 34px!important;overflow:visible!important;transform:scale(.72)!important;transform-origin:center!important;margin:-5px!important}
body.iwl-page .iwl-hero-grid .snowflake:first-child{margin-left:-5px!important}
body.iwl-page .iwl-hero-gear-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:'select select select' 'open max reset'!important;gap:5px!important;align-items:stretch!important;min-width:0!important}
body.iwl-page .iwl-hero-gear-select{grid-area:select!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:6px!important;align-items:center!important;min-width:0!important}
body.iwl-page .iwl-hero-gear-select span{font-size:.60rem!important;color:#8eaebb!important;font-weight:850!important}
body.iwl-page .iwl-hero-gear-select select{min-width:0!important;width:100%!important;min-height:32px!important;font-size:.63rem!important}
body.iwl-page .iwl-hero-gear-open{grid-area:open!important;min-height:34px!important;padding:0 8px!important;font-size:.62rem!important;font-weight:900!important;cursor:pointer!important;pointer-events:auto!important;position:relative!important;z-index:4!important}
body.iwl-page .iwl-hero-gear-actions .iwl-gear-max-btn{grid-area:max!important;min-height:34px!important;padding:0 8px!important;font-size:.61rem!important}
body.iwl-page .iwl-hero-gear-actions .iwl-gear-icon-btn.reset{grid-area:reset!important;width:34px!important;height:34px!important;min-width:34px!important}

/* Squad-level gear tools remain compact and explicit. */
body.iwl-page .iwl-squad-gear-batch{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;padding:8px 9px!important;border:1px solid rgba(94,190,225,.18)!important;border-radius:9px!important;background:rgba(2,20,31,.58)!important}
body.iwl-page .iwl-squad-gear-batch>span{display:grid!important;gap:2px!important;min-width:0!important;margin-right:auto!important}
body.iwl-page .iwl-squad-gear-batch b{font-size:.72rem!important;color:#d8edf5!important}
body.iwl-page .iwl-squad-gear-batch small{font-size:.61rem!important;line-height:1.3!important;color:#829faa!important}

/* Exact OmniSIM ratio shell proportions/fill. Earlier IWL rules must not turn
   the range into an empty oversized trench. */
body.iwl-page .iwl-ratio-control.ratio-control{
  display:grid!important;grid-template-columns:minmax(126px,164px) 38px minmax(140px,1fr) 64px 38px!important;
  gap:8px!important;align-items:center!important;min-height:56px!important;padding:9px 10px!important;box-sizing:border-box!important;
}
body.iwl-page .iwl-ratio-control .ratio-label{display:flex!important;align-items:center!important;gap:8px!important;font-size:.76rem!important;font-weight:900!important}
body.iwl-page .iwl-ratio-control .troop-type-icon{width:34px!important;height:34px!important;min-width:34px!important;border-radius:8px!important}
body.iwl-page .iwl-ratio-control .troop-type-icon img{width:30px!important;height:30px!important}
body.iwl-page .iwl-ratio-control .ratio-step{width:38px!important;height:38px!important;min-width:38px!important;padding:0!important}
body.iwl-page .iwl-ratio-control .ratio-slider-shell{position:relative!important;display:block!important;width:100%!important;height:22px!important;min-width:0!important}
body.iwl-page .iwl-ratio-control .ratio-slider-fill{position:absolute!important;left:0!important;top:50%!important;z-index:1!important;width:var(--fill,0%)!important;height:8px!important;transform:translateY(-50%)!important;border-radius:999px!important;pointer-events:none!important;opacity:1!important}
body.iwl-page .iwl-ratio-control.inf .ratio-slider-fill{background:linear-gradient(90deg,#23d47c,#42efa0)!important;box-shadow:0 0 10px rgba(47,229,139,.55)!important}
body.iwl-page .iwl-ratio-control.lancer .ratio-slider-fill{background:linear-gradient(90deg,#4ebcff,#62d8ff)!important;box-shadow:0 0 10px rgba(78,188,255,.52)!important}
body.iwl-page .iwl-ratio-control.marksman .ratio-slider-fill{background:linear-gradient(90deg,#ff4f6f,#ff7890)!important;box-shadow:0 0 10px rgba(255,79,111,.52)!important}
body.iwl-page .iwl-ratio-control .ratio-slider{position:absolute!important;inset:0!important;z-index:2!important;width:100%!important;height:22px!important;margin:0!important;background:transparent!important}
body.iwl-page .iwl-ratio-control .ratio-value{min-width:64px!important;text-align:center!important;font-size:.75rem!important}
body.iwl-page .iwl-ratio-wrap .formation-stack{height:10px!important;margin:9px 0 8px!important;border-radius:999px!important;overflow:hidden!important}

/* Recommendations: each plan contains three non-overlapping squad cells; each
   squad contains exactly three bounded hero tiles with their own gear labels. */
body.iwl-page .iwl-side-recommendations{min-width:0!important;overflow:hidden!important}
body.iwl-page .iwl-search-result-card{min-width:0!important;overflow:hidden!important;padding:12px!important}
body.iwl-page .iwl-search-result-card>header span{font-size:.62rem!important}
body.iwl-page .iwl-search-result-card>header b{font-size:.84rem!important}
body.iwl-page .iwl-search-squads{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
body.iwl-page .iwl-search-squad{min-width:0!important;overflow:hidden!important;padding:8px!important}
body.iwl-page .iwl-search-squad h4{font-size:.62rem!important}
body.iwl-page .iwl-search-squad .heroes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;min-width:0!important;align-items:start!important}
body.iwl-page .iwl-search-hero{display:grid!important;grid-template-rows:auto auto!important;justify-items:center!important;gap:4px!important;min-width:0!important;overflow:hidden!important}
body.iwl-page .iwl-search-squad .heroes img,
body.iwl-page .iwl-search-squad .iwl-summary-empty{display:block!important;width:100%!important;max-width:72px!important;height:auto!important;aspect-ratio:1/1!important;border-radius:9px!important;object-fit:cover!important}
body.iwl-page .iwl-search-hero small{display:block!important;width:100%!important;min-width:0!important;min-height:20px!important;padding:4px 3px!important;border:1px solid rgba(91,179,210,.24)!important;border-radius:999px!important;background:rgba(3,24,35,.92)!important;color:#d6edf5!important;font-size:.52rem!important;font-weight:900!important;line-height:1.05!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;position:relative!important;z-index:2!important}
body.iwl-page .iwl-search-result-card footer{gap:7px!important;flex-wrap:wrap!important}
body.iwl-page .iwl-search-result-card footer button{min-height:36px!important;font-size:.60rem!important}

/* Global Power card: keep copy, input and quick-adds in separate, non-overlapping
   lanes. At narrower widths it stacks instead of colliding. */
body.iwl-page .iwl-power-editor.premium{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(170px,.72fr) minmax(230px,.95fr)!important;gap:10px!important;align-items:center!important;overflow:hidden!important}
body.iwl-page .iwl-power-copy,body.iwl-page .iwl-power-manual,body.iwl-page .iwl-power-adds{min-width:0!important;max-width:100%!important}
body.iwl-page .iwl-power-copy b{overflow-wrap:anywhere!important}.iwl-page .iwl-power-copy small{font-size:.66rem!important;line-height:1.38!important}
body.iwl-page .iwl-power-adds{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}

/* Product-facing Global Power copy; no hidden/protected-model language should remain visible. */
body.iwl-page .iwl-global-unknown{font-size:.76rem!important;line-height:1.5!important;color:#a8c4cf!important;padding:14px!important}

/* Keep the two side editors away from the control strip like OmniSIM. */
body.iwl-page .iwl-army-grid{margin-top:34px!important}

/* Stronger readable modal scope copy. */
body.iwl-page .iwl-special-scope-note{gap:7px!important;padding:15px 16px!important}
body.iwl-page .iwl-special-scope-note b{font-size:.92rem!important}
body.iwl-page .iwl-special-scope-note span{font-size:.84rem!important}
body.iwl-page .iwl-special-scope-note small{font-size:.76rem!important;line-height:1.48!important}

@media(max-width:1500px){
  body.iwl-page .iwl-hero-card-top{grid-template-columns:78px minmax(0,1fr)!important}
  body.iwl-page .iwl-hero-portrait-stack{width:78px!important;min-width:78px!important}
  body.iwl-page .iwl-hero-grid .hero-photo-select,
  body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
  body.iwl-page .iwl-no-hero-photo{width:76px!important;height:76px!important;min-width:76px!important}
  body.iwl-page .iwl-hero-clear{width:76px!important}
  body.iwl-page .iwl-portrait-gear,body.iwl-page .iwl-hero-grid .hero-photo-name{max-width:76px!important}
  body.iwl-page .iwl-hero-grid .snowflake{transform:scale(.66)!important;margin:-6px!important}
}
@media(max-width:1180px){
  body.iwl-page .iwl-power-editor.premium{grid-template-columns:1fr!important}
  body.iwl-page .iwl-power-adds{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
  body.iwl-page .iwl-hero-grid{grid-template-columns:1fr!important}
  body.iwl-page .iwl-hero-card-top{grid-template-columns:100px minmax(0,1fr)!important}
  body.iwl-page .iwl-hero-portrait-stack{width:100px!important;min-width:100px!important}
  body.iwl-page .iwl-hero-grid .hero-photo-select,
  body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
  body.iwl-page .iwl-no-hero-photo{width:96px!important;height:96px!important;min-width:96px!important}
  body.iwl-page .iwl-hero-clear{width:96px!important}
  body.iwl-page .iwl-portrait-gear,body.iwl-page .iwl-hero-grid .hero-photo-name{max-width:96px!important}
  body.iwl-page .iwl-hero-grid .snowflake{transform:scale(.80)!important;margin:-3px!important}
  body.iwl-page .iwl-ratio-control.ratio-control{grid-template-columns:minmax(105px,140px) 34px minmax(90px,1fr) 56px 34px!important;gap:6px!important}
}
@media(max-width:620px){
  body.iwl-page .iwl-specials-editor .v60-panel-head p{font-size:.78rem!important}
  body.iwl-page .iwl-side-gear-batch{align-items:flex-start!important;flex-direction:column!important}
  body.iwl-page .iwl-side-gear-batch b{font-size:.90rem!important}
  body.iwl-page .iwl-side-gear-batch small{font-size:.72rem!important}
  body.iwl-page .iwl-hero-card-top{grid-template-columns:82px minmax(0,1fr)!important}
  body.iwl-page .iwl-hero-portrait-stack{width:82px!important;min-width:82px!important}
  body.iwl-page .iwl-hero-grid .hero-photo-select,
  body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
  body.iwl-page .iwl-no-hero-photo{width:80px!important;height:80px!important;min-width:80px!important}
  body.iwl-page .iwl-hero-clear{width:80px!important}
  body.iwl-page .iwl-portrait-gear,body.iwl-page .iwl-hero-grid .hero-photo-name{max-width:80px!important}
  body.iwl-page .iwl-hero-grid .snowflake-row{gap:1px!important}
  body.iwl-page .iwl-hero-grid .snowflake{transform:scale(.60)!important;margin:-7px!important}
  body.iwl-page .iwl-hero-meta-line{grid-template-columns:minmax(0,1fr) minmax(70px,.82fr)!important}
  body.iwl-page .iwl-hero-gear-actions{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'select select' 'open open' 'max reset'!important}
  body.iwl-page .iwl-hero-gear-open{width:100%!important}
  body.iwl-page .iwl-ratio-control.ratio-control{grid-template-columns:minmax(94px,1fr) 32px minmax(60px,1.1fr) 50px 32px!important;gap:5px!important;padding:8px!important}
  body.iwl-page .iwl-ratio-control .troop-type-icon{width:28px!important;height:28px!important;min-width:28px!important}
  body.iwl-page .iwl-ratio-control .troop-type-icon img{width:25px!important;height:25px!important}
  body.iwl-page .iwl-ratio-control .ratio-label{gap:5px!important;font-size:.68rem!important}
  body.iwl-page .iwl-ratio-control .ratio-step{width:32px!important;height:34px!important;min-width:32px!important}
  body.iwl-page .iwl-ratio-control .ratio-value{min-width:50px!important;font-size:.67rem!important}
  body.iwl-page .iwl-search-squads{grid-template-columns:1fr!important}
  body.iwl-page .iwl-search-squad .heroes img,body.iwl-page .iwl-search-squad .iwl-summary-empty{max-width:84px!important}
  body.iwl-page .iwl-power-adds{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.iwl-page .iwl-meta-action>#iwlMetaSearchBtn,body.iwl-page .iwl-meta-action>#iwlMyRecommendationsBtn{min-width:0!important;min-height:58px!important}
}
@media(prefers-reduced-motion:reduce){body.iwl-page .iwl-event-stage.active::before,body.iwl-page .iwl-event-stage.active::after{animation:none!important}}

/* 2026-10-07 owner repair: hero cards use the whole card width for progression
   and gear actions so three compact cards fit side-by-side without hidden overflow. */
body.iwl-page .iwl-hero-grid>.iwl-hero-card{display:grid!important;grid-template-rows:auto auto auto!important;gap:7px!important}
body.iwl-page .iwl-hero-card-top{grid-template-columns:78px minmax(0,1fr)!important;gap:8px!important}
body.iwl-page .iwl-hero-portrait-stack{width:78px!important;min-width:78px!important}
body.iwl-page .iwl-hero-grid .hero-photo-select,
body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
body.iwl-page .iwl-no-hero-photo{width:76px!important;height:76px!important;min-width:76px!important}
body.iwl-page .iwl-hero-clear{width:76px!important}
body.iwl-page .iwl-portrait-gear,body.iwl-page .iwl-hero-grid .hero-photo-name{max-width:76px!important}
body.iwl-page .iwl-hero-progression{display:block!important;min-width:0!important}
body.iwl-page .iwl-hero-meta-line{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(78px,1fr)!important;grid-template-areas:'stars widget' 'skill widget'!important;gap:5px 7px!important;min-width:0!important}
body.iwl-page .iwl-hero-card>.snowflake-row{display:flex!important;width:100%!important;justify-content:center!important;gap:3px!important;margin:0!important;padding:1px 0!important;overflow:visible!important}
body.iwl-page .iwl-hero-card>.snowflake-row .snowflake{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;flex:0 0 34px!important;transform:scale(.72)!important;margin:-5px!important}
body.iwl-page .iwl-hero-card>.iwl-hero-gear-actions{width:100%!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:'select select select' 'open max reset'!important}
body.iwl-page .iwl-hero-card .star-readout{font-size:.80rem!important}
body.iwl-page .iwl-hero-card .skill-level-readout{font-size:.74rem!important}
body.iwl-page .iwl-hero-card .iwl-widget-inline>span{font-size:.66rem!important}
body.iwl-page .iwl-hero-card .iwl-widget-inline select{font-size:.72rem!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-select span{font-size:.68rem!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-select select{font-size:.70rem!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-open,
body.iwl-page .iwl-hero-card .iwl-gear-max-btn{font-size:.68rem!important}

/* Copy the current OmniSIM ratio-track dimensions exactly. */
body.iwl-page .iwl-ratio-control .ratio-slider-shell{height:36px!important}
body.iwl-page .iwl-ratio-control .ratio-slider-shell::before{height:12px!important;opacity:1!important;background:rgba(8,21,34,.98)!important}
body.iwl-page .iwl-ratio-control .ratio-slider-fill{height:12px!important;transition:none!important}
body.iwl-page .iwl-ratio-control .ratio-slider{height:36px!important}
body.iwl-page .iwl-ratio-control .ratio-slider::-webkit-slider-runnable-track{height:10px!important}
body.iwl-page .iwl-ratio-control .ratio-slider::-moz-range-track{height:10px!important}
body.iwl-page .iwl-ratio-control .ratio-slider::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:10px!important;height:34px!important;margin-top:-12px!important;border-radius:999px!important;background:#f8fbff!important;border:2px solid rgba(26,42,66,.45)!important;box-shadow:0 1px 5px rgba(0,0,0,.42),0 0 0 2px rgba(255,255,255,.14)!important}
body.iwl-page .iwl-ratio-control .ratio-slider::-moz-range-thumb{width:10px!important;height:34px!important;border-radius:999px!important;background:#f8fbff!important;border:2px solid rgba(26,42,66,.45)!important;box-shadow:0 1px 5px rgba(0,0,0,.42),0 0 0 2px rgba(255,255,255,.14)!important}
body.iwl-page .iwl-ratio-control.inf .ratio-slider-fill{background:linear-gradient(90deg,#2ddf79,#66f59d)!important;box-shadow:0 0 18px rgba(59,239,129,.34)!important}
body.iwl-page .iwl-ratio-control.lancer .ratio-slider-fill{background:linear-gradient(90deg,#4aa4ff,#82c6ff)!important;box-shadow:0 0 18px rgba(85,169,255,.34)!important}
body.iwl-page .iwl-ratio-control.marksman .ratio-slider-fill{background:linear-gradient(90deg,#ff4f63,#ff8794)!important;box-shadow:0 0 18px rgba(255,99,122,.34)!important}

/* Owner explicitly requested these explanatory blocks to be large/readable. */
body.iwl-page .iwl-side-gear-batch b{font-size:1.12rem!important}
body.iwl-page .iwl-side-gear-batch small{font-size:.90rem!important;line-height:1.48!important}
body.iwl-page .iwl-specials-editor .v60-panel-head h3{font-size:1.12rem!important}
body.iwl-page .iwl-specials-editor .v60-panel-head p{font-size:.90rem!important;line-height:1.52!important}
body.iwl-page .iwl-final-stat>span{font-size:.72rem!important}
body.iwl-page .iwl-final-stat>b{font-size:1.10rem!important}
body.iwl-page .iwl-final-stat>small{font-size:.68rem!important}
body.iwl-page .iwl-stat-flow-note span{font-size:.78rem!important}
body.iwl-page .iwl-stat-flow-note small{font-size:.72rem!important}
body.iwl-page .iwl-hero-grid{gap:6px!important}
body.iwl-page .iwl-hero-grid>.iwl-hero-card{padding:7px!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-open,
body.iwl-page .iwl-hero-card .iwl-gear-max-btn{min-width:0!important;padding-left:6px!important;padding-right:6px!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-actions{column-gap:4px!important}
body.iwl-page .iwl-hero-meta-line{grid-template-columns:minmax(0,1fr) 62px!important;column-gap:5px!important}
body.iwl-page .iwl-widget-inline{grid-template-columns:20px minmax(0,1fr)!important;grid-template-areas:'label label' 'icon select'!important;gap:3px 4px!important;width:62px!important;min-width:0!important;justify-self:end!important}
body.iwl-page .iwl-widget-inline img{width:20px!important;height:20px!important}
body.iwl-page .iwl-widget-inline select{min-width:0!important;width:100%!important;padding:2px 3px!important}

/* =========================================================
   2026-10-07 owner UI-repair acceptance — final parity layer
   ========================================================= */
/* Optimizer cancel is the exact OmniSIM card overlay; the clock remains readable. */
body.iwl-page .omnisim-optimizer-action.optimizer-cancel-state{filter:brightness(.48) saturate(.62)!important}
body.iwl-page .omnisim-optimizer-action.optimizer-cancel-state::after{content:'CANCEL'!important;position:absolute!important;inset:0!important;z-index:6!important;display:grid!important;place-items:center!important;background:rgba(3,10,18,.58)!important;color:#f5fbff!important;font:900 clamp(1.7rem,2vw,2.35rem)/1 var(--omni-ui)!important;letter-spacing:.14em!important;text-shadow:0 0 16px rgba(145,230,255,.25)!important;transform:none!important;transition:none!important}
body.iwl-page .omnisim-optimizer-action.optimizer-cancel-state .omnisim-optimizer-title,
body.iwl-page .omnisim-optimizer-action.optimizer-cancel-state .omnisim-optimizer-formation{opacity:.14!important}
body.iwl-page .omnisim-optimizer-action.optimizer-cancel-state .omnisim-optimizer-elapsed{z-index:8!important;opacity:1!important;filter:none!important}

/* One shared OmniSIM telemetry rail below all three command panels. */
body.iwl-page #iwlSearchProgress.iwl-search-progress.omnisim-progress.command-progress{position:relative!important;display:block!important;width:100%!important;max-width:none!important;min-height:28px!important;margin:14px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body.iwl-page #iwlSearchProgress[hidden]{display:none!important}
body.iwl-page #iwlSearchProgress .optimizer-progress-track{position:relative!important;display:block!important;width:100%!important;height:28px!important;margin:0!important;border-radius:999px!important;overflow:hidden!important;border:1px solid rgba(83,180,238,.48)!important;background:rgba(3,20,35,.92)!important;box-shadow:inset 0 0 16px rgba(0,0,0,.34),0 0 20px rgba(62,177,241,.08)!important}
body.iwl-page #iwlSearchProgress .optimizer-progress-fill{display:block!important;height:100%!important;width:0;border-radius:999px!important;background:linear-gradient(90deg,#ff506a 0%,#ff9a6b 34%,#4bc8ff 100%)!important;box-shadow:0 0 18px rgba(75,200,255,.26)!important;transition:width .15s linear!important}
body.iwl-page #iwlSearchProgress .command-progress-copy{position:absolute!important;inset:0!important;z-index:3!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0!important;padding:0 16px!important;pointer-events:none!important}
body.iwl-page #iwlSearchProgress .command-progress-copy span{margin:0!important;color:#f3fbff!important;font-size:.72rem!important;font-weight:850!important;line-height:1!important;text-shadow:0 1px 6px rgba(0,0,0,.55)!important}

/* Copy the exact current OmniSIM luminous ratio track/thumb appearance. */
body.iwl-page .army-panel .ratio-slider-shell::before{height:12px!important;background:#071a2b!important;border-color:rgba(92,171,218,.30)!important;box-shadow:inset 0 0 9px rgba(0,0,0,.55)!important}
body.iwl-page .army-panel .ratio-slider-fill{z-index:2!important;height:12px!important;opacity:1!important;filter:saturate(1.35) brightness(1.22)!important;transition:none!important}
body.iwl-page .army-panel .ratio-control.inf .ratio-slider-fill{background:#43f58a!important;box-shadow:0 0 7px rgba(67,245,138,.96),0 0 18px rgba(67,245,138,.55),inset 0 0 6px rgba(255,255,255,.42)!important}
body.iwl-page .army-panel .ratio-control.lancer .ratio-slider-fill{background:#55aaff!important;box-shadow:0 0 7px rgba(85,170,255,.96),0 0 18px rgba(85,170,255,.55),inset 0 0 6px rgba(255,255,255,.40)!important}
body.iwl-page .army-panel .ratio-control.marksman .ratio-slider-fill{background:#ff5267!important;box-shadow:0 0 7px rgba(255,82,103,.96),0 0 18px rgba(255,82,103,.55),inset 0 0 6px rgba(255,255,255,.40)!important}
body.iwl-page .army-panel .ratio-slider-shell .ratio-slider{z-index:3!important;height:36px!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
body.iwl-page .army-panel .ratio-slider-shell .ratio-slider::-webkit-slider-runnable-track{height:12px!important;background:transparent!important}
body.iwl-page .army-panel .ratio-slider-shell .ratio-slider::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:10px!important;height:34px!important;margin-top:-12px!important;background:#fff!important;border:2px solid rgba(72,101,132,.80)!important;box-shadow:0 0 0 3px rgba(255,255,255,.18),0 2px 7px rgba(0,0,0,.52)!important}
body.iwl-page .army-panel .ratio-slider-shell .ratio-slider::-moz-range-track{height:12px!important;background:transparent!important}
body.iwl-page .army-panel .ratio-slider-shell .ratio-slider::-moz-range-thumb{width:10px!important;height:34px!important;background:#fff!important;border:2px solid rgba(72,101,132,.80)!important;box-shadow:0 0 0 3px rgba(255,255,255,.18),0 2px 7px rgba(0,0,0,.52)!important}

/* Compact three-card row: keep Remove Hero readable and separated from the gear badge. */
body.iwl-page .iwl-hero-card-top{grid-template-columns:94px minmax(0,1fr)!important;gap:9px!important}
body.iwl-page .iwl-hero-portrait-stack{width:94px!important;min-width:94px!important;align-content:start!important;gap:7px!important}
body.iwl-page .iwl-hero-grid .hero-photo-select,
body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,
body.iwl-page .iwl-no-hero-photo{width:90px!important;height:90px!important;min-width:90px!important}
body.iwl-page .iwl-portrait-gear,body.iwl-page .iwl-hero-grid .hero-photo-name{max-width:90px!important}
body.iwl-page .iwl-hero-clear{width:90px!important;min-height:30px!important;padding:5px 4px!important;margin-top:2px!important;font-size:.63rem!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.iwl-page .iwl-hero-card .star-readout{font-size:.86rem!important}
body.iwl-page .iwl-hero-card .skill-level-readout{font-size:.80rem!important}
body.iwl-page .iwl-hero-card .iwl-widget-inline>span{font-size:.72rem!important}
body.iwl-page .iwl-hero-card .iwl-widget-inline select{font-size:.76rem!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-select span{font-size:.72rem!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-select select{font-size:.76rem!important}
body.iwl-page .iwl-hero-card .iwl-hero-gear-open,
body.iwl-page .iwl-hero-card .iwl-gear-max-btn{font-size:.73rem!important;font-weight:900!important}

/* The owner-called-out explanatory copy must be obviously readable. */
body.iwl-page .iwl-side-gear-batch b,body.iwl-page .iwl-specials-editor .v60-panel-head h3{font-size:1.18rem!important}
body.iwl-page .iwl-side-gear-batch small,body.iwl-page .iwl-specials-editor .v60-panel-head p{font-size:.94rem!important;line-height:1.52!important}
body.iwl-page .iwl-global-unknown{font-size:.90rem!important;line-height:1.55!important}

/* Search results are bounded three-squad grids; badges never sit underneath a later row. */
body.iwl-page .iwl-search-result-card{min-width:0!important;overflow:hidden!important}
body.iwl-page .iwl-search-squads{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;min-width:0!important}
body.iwl-page .iwl-search-squad{min-width:0!important;overflow:hidden!important}
body.iwl-page .iwl-search-squad .heroes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;min-width:0!important}
body.iwl-page .iwl-search-hero{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;min-width:0!important;gap:5px!important;align-items:start!important}
body.iwl-page .iwl-search-hero>img,body.iwl-page .iwl-search-hero>.iwl-summary-empty{width:100%!important;max-width:96px!important;aspect-ratio:1/1!important;height:auto!important;object-fit:cover!important;justify-self:center!important}
body.iwl-page .iwl-search-hero>small{position:static!important;display:block!important;max-width:100%!important;min-height:22px!important;margin:0!important;padding:3px 5px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:center!important;z-index:auto!important}

/* Give the control strip the same breathing room OmniSIM keeps before the next surface. */
body.iwl-page .iwl-command-compact-row{margin-top:28px!important;margin-bottom:26px!important}

@media(max-width:760px){
  body.iwl-page .iwl-search-squads{grid-template-columns:1fr!important}
  body.iwl-page .iwl-hero-card-top{grid-template-columns:94px minmax(0,1fr)!important}
  body.iwl-page .iwl-hero-portrait-stack{width:94px!important;min-width:94px!important}
  body.iwl-page .iwl-hero-grid .hero-photo-select,body.iwl-page .iwl-hero-grid .hero-photo-select .hero-portrait,body.iwl-page .iwl-no-hero-photo{width:90px!important;height:90px!important;min-width:90px!important}
  body.iwl-page .iwl-hero-clear{width:90px!important}
}
/* Gear assignment is outside the portrait button so it can never be clipped by the image crop. */
body.iwl-page .iwl-hero-portrait-stack>.iwl-portrait-gear{position:static!important;display:block!important;width:90px!important;max-width:90px!important;margin:0!important;box-sizing:border-box!important;font-size:.66rem!important;line-height:1.1!important}
body.iwl-page .iwl-hero-portrait-stack>.iwl-hero-clear{display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:90px!important;min-width:90px!important;max-width:90px!important;min-height:30px!important;height:30px!important;margin:0!important;font-size:.64rem!important;white-space:nowrap!important;text-overflow:clip!important}

/* =========================================================
   2026-10-07 owner repair continuation — de-clutter/correctness layer
   ========================================================= */
/* Active league phase keeps the animated fire/ice edge treatment but removes the
   owner-rejected floating dot/bubble particles. */
body.iwl-page .iwl-event-stage.active::before{
  inset:-2px!important;
  border-radius:7px!important;
  border-top:3px solid #9af0ff!important;
  border-left:3px solid rgba(102,223,255,.90)!important;
  border-right:0!important;border-bottom:0!important;
  background:linear-gradient(110deg,transparent 12%,rgba(112,231,255,.34) 42%,transparent 66%)!important;
  background-size:180% 100%!important;
  filter:drop-shadow(0 0 9px rgba(73,213,255,.78))!important;
  animation:iwlIceSweep 2.8s linear infinite!important;
}
body.iwl-page .iwl-event-stage.active::after{
  inset:-2px!important;
  border-radius:7px!important;
  border-bottom:3px solid #ff963f!important;
  border-right:3px solid rgba(255,91,28,.95)!important;
  border-left:0!important;border-top:0!important;
  background:linear-gradient(70deg,transparent 16%,rgba(255,100,26,.36) 43%,transparent 67%)!important;
  background-size:180% 100%!important;
  filter:drop-shadow(0 0 10px rgba(255,90,24,.76))!important;
  animation:iwlFireSweep 2.2s linear infinite reverse!important;
}

/* Meta/My Recommendations are self-explanatory at a glance; detailed explanations
   live in the same OmniSIM hover/focus tooltip system used elsewhere. */
body.iwl-page .iwl-meta-help{flex:0 0 auto!important;margin-left:6px!important}
body.iwl-page .omnisim-meta-copy-text small{display:none!important}

/* Quick Army Settings must stay wholly inside the middle simulation panel. */
body.iwl-page .iwl-simulation-console .iwl-quick-settings{
  width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;
  margin:14px auto 0!important;box-sizing:border-box!important;overflow:hidden!important;
}
body.iwl-page .iwl-simulation-console .iwl-quick-settings>summary,
body.iwl-page .iwl-simulation-console .iwl-quick-settings>.optimizer-settings-body{
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
body.iwl-page #iwlQuickMaxStats{font-weight:500!important}

/* One stat surface only: prominent final value, small Base value/edit control.
   The old duplicated Base Stats block is intentionally gone. */
body.iwl-page .iwl-stat-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
body.iwl-page .iwl-stat-heading>div{display:grid!important;gap:2px!important}
body.iwl-page .iwl-stat-heading h3{margin:0!important}
body.iwl-page .iwl-stat-heading small{color:#82a5b4!important;font-size:.65rem!important}
body.iwl-page .iwl-final-stat-grid{margin-bottom:8px!important}
body.iwl-page .iwl-final-stat{display:grid!important;align-content:start!important;min-height:92px!important}
body.iwl-page .iwl-final-stat>b{font-size:1.18rem!important;line-height:1.15!important}
body.iwl-page .iwl-final-stat>small{font-size:.67rem!important;line-height:1.25!important;margin-top:5px!important}
body.iwl-page .iwl-inline-base-stat{
  display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:4px!important;
  margin-top:5px!important;color:#789aa9!important;font-size:.62rem!important;font-weight:700!important;
}
body.iwl-page .iwl-inline-base-stat input{
  min-width:0!important;width:100%!important;height:26px!important;padding:2px 5px!important;border:1px solid rgba(99,183,216,.18)!important;
  border-radius:6px!important;background:rgba(2,17,27,.72)!important;color:#9fbcca!important;font-size:.65rem!important;text-align:right!important;
}
body.iwl-page .iwl-inline-base-stat em{font-style:normal!important}

/* Common-surface copy is readable without becoming another large prose block. */
body.iwl-page .iwl-compact-heading{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
body.iwl-page .iwl-compact-heading>span{display:grid!important;gap:2px!important;min-width:0!important}
body.iwl-page .iwl-side-gear-batch b,body.iwl-page .iwl-specials-editor .v60-panel-head h3{font-size:1.04rem!important;line-height:1.2!important}
body.iwl-page .iwl-side-gear-batch small,body.iwl-page .iwl-specials-editor .v60-panel-head p{font-size:.78rem!important;line-height:1.38!important;margin:0!important;color:#a3c0cb!important}
body.iwl-page .iwl-special-summary-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}

/* Squad headings/prose were intentionally removed. Keep only the scoped gear actions. */
body.iwl-page .iwl-squad-toolbar{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;margin:8px 0 4px!important;min-width:0!important}
body.iwl-page .iwl-squad-gear-batch{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;justify-content:flex-end!important}
body.iwl-page .iwl-squad-gear-batch .iwl-gear-max-btn{min-height:36px!important}

/* Hero progression: Widget text/control cannot clip, and snowflakes are real click
   targets rather than scaled/negative-margin overlaps. */
body.iwl-page .iwl-hero-meta-line{grid-template-columns:minmax(0,1fr) 108px!important;grid-template-areas:'stars widget' 'skill widget'!important;column-gap:8px!important}
body.iwl-page .iwl-widget-inline{
  width:108px!important;max-width:108px!important;grid-template-columns:22px minmax(48px,1fr)!important;
  grid-template-areas:'label label' 'icon select'!important;gap:4px!important;justify-self:end!important;overflow:visible!important;
}
body.iwl-page .iwl-widget-inline>span{display:block!important;visibility:visible!important;white-space:nowrap!important;font-size:.74rem!important;line-height:1.1!important}
body.iwl-page .iwl-widget-inline select{min-width:50px!important;width:100%!important;height:31px!important;overflow:visible!important}
body.iwl-page .iwl-hero-card>.snowflake-row,
body.iwl-page .iwl-hero-grid .snowflake-row{gap:5px!important;margin:3px 0 2px!important;padding:2px 0!important;justify-content:center!important;overflow:visible!important}
body.iwl-page .iwl-hero-card>.snowflake-row .snowflake,
body.iwl-page .iwl-hero-grid .snowflake{
  width:31px!important;min-width:31px!important;max-width:31px!important;height:31px!important;min-height:31px!important;max-height:31px!important;
  flex:0 0 31px!important;transform:none!important;margin:0!important;overflow:visible!important;
}
body.iwl-page .iwl-hero-grid .snowflake:first-child{margin-left:0!important}

/* Recommendation/result cards expand vertically so Hero Gear labels are always
   readable. Nothing is ellipsized behind the next card. */
body.iwl-page .iwl-recommend-disclosure,body.iwl-page .iwl-side-recommendations{max-height:none!important;overflow:visible!important}
body.iwl-page .iwl-search-result-card,body.iwl-page .iwl-search-squad{height:auto!important;max-height:none!important}
body.iwl-page .iwl-search-hero{grid-template-rows:auto minmax(24px,auto)!important;overflow:visible!important}
body.iwl-page .iwl-search-hero>small{
  min-height:24px!important;height:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  line-height:1.15!important;overflow-wrap:normal!important;word-break:normal!important;border-radius:8px!important;
}

/* Optimizer formation cards may grow in Global Power mode; power badges and gear
   labels must never push another squad underneath them. */
body.iwl-page .iwl-optimize-card{height:auto!important;min-height:430px!important;padding-bottom:18px!important;overflow:hidden!important}
body.iwl-page .iwl-formation-summary{min-height:0!important;height:auto!important;align-content:start!important;padding-bottom:2px!important}
body.iwl-page .iwl-summary-squad{height:auto!important;min-height:0!important;overflow:visible!important}
body.iwl-page .iwl-summary-squad-head{min-width:0!important;flex-wrap:wrap!important;align-items:center!important}
body.iwl-page .iwl-summary-power{position:static!important;white-space:normal!important;line-height:1.15!important;max-width:100%!important}
body.iwl-page .iwl-summary-hero small{height:auto!important;min-height:20px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2!important}
body.iwl-page .iwl-summary-total-power{margin-top:0!important;position:static!important}
body.iwl-page .omnisim-optimizer-elapsed[hidden]{display:none!important}

/* Shared telemetry: do not invent an IWL-specific bar. Mirror the current OmniSIM
   command-progress geometry exactly: full-width 34px capsule, gradient fill, and
   stage/percent text over the bar. It is shared by Optimize, Meta and My Recommendations. */
body.iwl-page #iwlSearchProgress.iwl-search-progress.omnisim-progress.command-progress{
  position:relative!important;display:none!important;width:100%!important;max-width:none!important;min-height:34px!important;
  margin:15px 0 0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important;
}
body.iwl-page #battleRail.optimizer-running #iwlSearchProgress,
body.iwl-page #battleRail.meta-running #iwlSearchProgress{display:block!important}
body.iwl-page #iwlSearchProgress[hidden]{display:none!important}
body.iwl-page #iwlSearchProgress .optimizer-progress-track{
  position:relative!important;display:block!important;width:100%!important;height:34px!important;margin:0!important;border-radius:999px!important;overflow:hidden!important;
  border:1px solid rgba(91,198,255,.82)!important;background:#061c2f!important;
  box-shadow:inset 0 0 18px rgba(0,0,0,.46),0 0 18px rgba(54,183,255,.18)!important;
}
body.iwl-page #iwlSearchProgress .optimizer-progress-fill{
  display:block!important;height:100%!important;width:0;border-radius:999px!important;opacity:1!important;
  background:linear-gradient(90deg,#e83f58 0%,#ff7968 34%,#27bdfc 100%)!important;
  box-shadow:inset 0 0 12px rgba(255,255,255,.16),0 0 20px rgba(55,190,255,.32)!important;transition:width .42s linear!important;
}
body.iwl-page #iwlSearchProgress .command-progress-copy{
  position:absolute!important;left:0!important;right:0!important;top:0!important;bottom:auto!important;height:34px!important;min-height:34px!important;box-sizing:border-box!important;
  z-index:3!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
  margin:0!important;padding:0 18px!important;pointer-events:none!important;
}
body.iwl-page #iwlSearchProgress .command-progress-copy span{
  margin:0!important;color:#fff!important;font-size:.76rem!important;font-weight:900!important;line-height:1!important;text-shadow:0 1px 7px rgba(0,0,0,.82)!important;
}
body.iwl-page #iwlSearchProgress .command-progress-copy span:last-child{font-variant-numeric:tabular-nums!important}

/* Keep the compact strip and the next surfaces separated without using hidden filler. */
body.iwl-page .iwl-command-compact-row{margin-top:24px!important;margin-bottom:24px!important}

@media(max-width:1500px){
  body.iwl-page .iwl-hero-meta-line{grid-template-columns:minmax(0,1fr) 98px!important}
  body.iwl-page .iwl-widget-inline{width:98px!important;max-width:98px!important}
  body.iwl-page .iwl-hero-card>.snowflake-row .snowflake,body.iwl-page .iwl-hero-grid .snowflake{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;flex-basis:34px!important}
}
@media(max-width:900px){
  body.iwl-page .iwl-hero-meta-line{grid-template-columns:minmax(0,1fr) 116px!important}
  body.iwl-page .iwl-widget-inline{width:116px!important;max-width:116px!important}
  body.iwl-page .iwl-special-summary-compact{grid-template-columns:1fr 1fr!important}
}
@media(max-width:430px){
  body.iwl-page .iwl-simulation-console .iwl-quick-settings{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important}
  body.iwl-page .iwl-hero-meta-line{grid-template-columns:minmax(0,1fr) 100px!important}
  body.iwl-page .iwl-widget-inline{width:100px!important;max-width:100px!important}
  body.iwl-page .iwl-special-summary-compact{grid-template-columns:1fr!important}
  body.iwl-page .iwl-squad-toolbar{justify-content:stretch!important}
  body.iwl-page .iwl-squad-gear-batch{width:100%!important;justify-content:flex-end!important}
}
/* 1440px three-card fit: retain a clearly separated 34px snowflake click target while keeping
   the six-step row inside each compact hero card without any horizontal clipping. */
@media (min-width:901px) and (max-width:1500px){
  body.iwl-page .iwl-hero-card>.snowflake-row,body.iwl-page .iwl-hero-grid .snowflake-row{gap:8px!important}
}
/* Compact desktop hero cards only have ~100px beside the portrait. Stack the
   progression copy and Widget control in that column so neither can overlap or
   disappear; keep the control fully clickable. */
@media (min-width:901px) and (max-width:1500px){
  body.iwl-page .iwl-hero-meta-line{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:'stars' 'skill' 'widget'!important;
    row-gap:4px!important;column-gap:0!important;align-items:start!important;
  }
  body.iwl-page .iwl-widget-inline{width:100%!important;max-width:100%!important;justify-self:stretch!important}
  body.iwl-page .iwl-hero-meta-line .star-readout,body.iwl-page .iwl-hero-meta-line .skill-level-readout{width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow:visible!important}
}
/* Manual Base mode keeps the edit inside the same Final-stat tile without
   forcing a second stats surface or overflowing narrow troop columns. */
body.iwl-page .iwl-inline-base-stat{
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:'label label' 'field unit'!important;
}
body.iwl-page .iwl-inline-base-stat>span{grid-area:label!important}
body.iwl-page .iwl-inline-base-stat>input{grid-area:field!important;box-sizing:border-box!important}
body.iwl-page .iwl-inline-base-stat>em{grid-area:unit!important}
/* Optimizer summary Hero Gear captions participate in layout (rather than
   painting below a fixed hero row), so Global Power badges can never push them
   behind the following squad. */
body.iwl-page .iwl-summary-heroes{align-items:flex-start!important;overflow:visible!important}
body.iwl-page .iwl-summary-hero{grid-template-rows:58px minmax(20px,auto)!important;height:auto!important;overflow:visible!important}
body.iwl-page .iwl-summary-hero small{display:block!important;position:static!important;box-sizing:border-box!important}
@media(max-width:430px){body.iwl-page .iwl-summary-hero{grid-template-rows:50px minmax(20px,auto)!important}}
/* IWL has three full squad summaries, unlike OmniSIM's single formation. Do not
   let the inherited flex:1 force all three into the fixed remaining card height;
   let the formation block take its intrinsic height and let the card grow. */
body.iwl-page .iwl-optimize-card>.iwl-formation-summary{flex:0 0 auto!important;min-height:0!important;height:auto!important}

/* =========================================================
   2026-10-07 final owner repair: Base-stat hierarchy + side recommendations
   ========================================================= */
/* Manual Base remains editable, but it must read as the small secondary Base value,
   not as a second boxed combat-stat surface. Focus restores a subtle edit affordance. */
body.iwl-page .iwl-inline-base-stat{
  display:flex!important;align-items:center!important;gap:3px!important;min-width:0!important;
  margin-top:5px!important;color:#789aa9!important;font-size:.66rem!important;font-weight:700!important;line-height:1.2!important;
}
body.iwl-page .iwl-inline-base-stat>span{flex:0 0 auto!important;grid-area:auto!important}
body.iwl-page .iwl-inline-base-stat>input{
  flex:0 1 66px!important;grid-area:auto!important;box-sizing:border-box!important;width:66px!important;min-width:0!important;height:20px!important;
  padding:0 2px!important;border:1px solid transparent!important;border-radius:4px!important;background:transparent!important;
  color:#789aa9!important;font-size:.66rem!important;font-weight:700!important;line-height:18px!important;text-align:right!important;
  box-shadow:none!important;outline:none!important;
}
body.iwl-page .iwl-inline-base-stat>input:hover{border-color:rgba(99,183,216,.22)!important;background:rgba(3,24,38,.28)!important}
body.iwl-page .iwl-inline-base-stat>input:focus{border-color:rgba(93,198,255,.58)!important;background:rgba(3,24,38,.72)!important;color:#d9f4ff!important;box-shadow:0 0 0 2px rgba(72,188,245,.09)!important}
body.iwl-page .iwl-inline-base-stat>em{flex:0 0 auto!important;grid-area:auto!important;font-style:normal!important}

/* Recommendations live inside a narrow optimizer side column at common desktop widths.
   Let each plan grow vertically so every Hero Gear caption gets real width instead of
   wrapping into clipped 2-3 character fragments. Explorer/modal cards keep 3 squads across. */
body.iwl-page .iwl-side-recommendations .iwl-search-squads{grid-template-columns:1fr!important;gap:9px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-squad{padding:9px 10px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-squad .heroes{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-hero>img,
body.iwl-page .iwl-side-recommendations .iwl-search-hero>.iwl-summary-empty{max-width:82px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-hero>small{
  min-height:24px!important;padding:4px 6px!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
  font-size:.60rem!important;line-height:1.15!important;
}
@media(max-width:430px){
  body.iwl-page .iwl-side-recommendations .iwl-search-squad .heroes{gap:5px!important}
  body.iwl-page .iwl-side-recommendations .iwl-search-hero>small{font-size:.56rem!important;padding-left:4px!important;padding-right:4px!important}
}

/* Transient profile/action notifications are informational only. They must never
   block the IWL command surface, modal result actions, or report controls. */
body.iwl-page #profileActionToast{pointer-events:none!important}

/* ==============================================================
   2026-10-07 owner repair follow-up: compact rec cards, visible
   quick settings trigger, unified ratio/count rows, and star spacing.
   ============================================================== */
body.iwl-page #omnisimTooltipPortal{font-weight:500!important}
body.iwl-page .iwl-battle-main,
body.iwl-page .iwl-simulation-console,
body.iwl-page #battleRail,
body.iwl-page .battle-command-main{overflow:visible!important}
body.iwl-page .iwl-simulation-console{padding-bottom:18px!important}
body.iwl-page .iwl-simulation-console .iwl-quick-settings{
  position:relative!important;z-index:2!important;overflow:visible!important;
  margin:18px auto 0!important;padding-top:2px!important
}
body.iwl-page .iwl-simulation-console .iwl-quick-settings>summary{
  position:relative!important;z-index:2!important;margin-top:0!important
}
body.iwl-page .iwl-simulation-console .iwl-quick-settings>.optimizer-settings-body{overflow:visible!important}
body.iwl-page .iwl-formation-top{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important}
body.iwl-page .iwl-army-total-field{grid-template-columns:auto 148px!important;align-items:center!important}
body.iwl-page .iwl-army-total-field>span{font-size:.78rem!important;font-weight:950!important;letter-spacing:.04em!important}
body.iwl-page .iwl-army-total-field input{font-size:.92rem!important;font-weight:900!important;height:38px!important}
body.iwl-page .iwl-ratio-control{grid-template-columns:minmax(120px,auto) auto minmax(0,1fr) auto auto 108px!important;gap:8px!important;align-items:center!important}
body.iwl-page .iwl-inline-count{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;min-width:96px!important}
body.iwl-page .iwl-inline-count>span{font-size:.56rem!important;font-weight:900!important;letter-spacing:.05em!important;color:#89a6b2!important;text-transform:uppercase!important}
body.iwl-page .iwl-inline-count>input{height:33px!important;padding:0 8px!important;border:1px solid rgba(93,196,235,.22)!important;border-radius:8px!important;background:rgba(5,21,31,.92)!important;color:#eaf8ff!important;font-size:.74rem!important;font-weight:850!important;text-align:right!important}
body.iwl-page .iwl-hero-card>.snowflake-row,
body.iwl-page .iwl-hero-grid .snowflake-row{gap:8px!important;margin:4px 0 3px!important}
body.iwl-page .iwl-hero-card>.snowflake-row .snowflake,
body.iwl-page .iwl-hero-grid .snowflake{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;flex:0 0 34px!important}
body.iwl-page .iwl-side-recommendations{gap:8px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-result-card{padding:10px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-result-card.compact.clickable{cursor:pointer!important}
body.iwl-page .iwl-side-recommendations .iwl-search-result-card.compact.clickable:hover{border-color:rgba(98,213,245,.44)!important;box-shadow:0 0 0 1px rgba(98,213,245,.18),0 12px 24px rgba(0,0,0,.22)!important;transform:translateY(-1px)!important}
body.iwl-page .iwl-side-recommendations .iwl-search-result-card.compact.clickable:focus-visible{outline:2px solid rgba(98,213,245,.8)!important;outline-offset:2px!important}
body.iwl-page .iwl-result-total-power{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:8px!important;padding:6px 9px!important;border:1px solid rgba(255,198,84,.26)!important;border-radius:9px!important;background:linear-gradient(90deg,rgba(88,57,11,.38),rgba(10,30,42,.52))!important}
body.iwl-page .iwl-result-total-power small{font-size:.50rem!important;font-weight:950!important;letter-spacing:.06em!important;color:#e6d19b!important;text-transform:uppercase!important}
body.iwl-page .iwl-result-total-power b{font-size:.74rem!important;color:#ffe7a7!important}
body.iwl-page .iwl-side-recommendations .iwl-search-squads{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-squad{padding:7px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-squad h4{margin-bottom:5px!important;font-size:.52rem!important}
body.iwl-page .iwl-side-recommendations .iwl-search-squad .heroes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
body.iwl-page .iwl-side-recommendations .iwl-search-hero>img,
body.iwl-page .iwl-side-recommendations .iwl-search-hero>.iwl-summary-empty{width:40px!important;height:40px!important;max-width:none!important}
body.iwl-page .iwl-side-recommendations .iwl-search-hero>small{min-height:20px!important;padding:3px 4px!important;font-size:.52rem!important;white-space:nowrap!important}
@media(max-width:1400px){
  body.iwl-page .iwl-ratio-control{grid-template-columns:minmax(114px,auto) auto minmax(0,1fr) auto auto 96px!important}
}
@media(max-width:760px){
  body.iwl-page .iwl-side-recommendations .iwl-search-squads{grid-template-columns:1fr!important}
  body.iwl-page .iwl-ratio-control{grid-template-columns:minmax(100px,auto) auto minmax(0,1fr) auto auto!important}
  body.iwl-page .iwl-inline-count{grid-column:1/-1!important;min-width:0!important}
  body.iwl-page .iwl-army-total-field{grid-template-columns:auto 132px!important}
}

/* ==============================================================
   2026-10-07 owner verification follow-up #2
   ============================================================== */
/* The middle console must grow around Quick Army Settings; inherited OmniSIM
   max-height otherwise lets the disclosure visibly protrude below the panel. */
body.iwl-page .iwl-simulation-console{
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;padding-bottom:22px!important;
}
body.iwl-page .iwl-simulation-console .iwl-quick-settings{
  width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;
  margin:18px auto 0!important;position:relative!important;z-index:2!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
body.iwl-page .iwl-simulation-console .iwl-quick-settings>summary,
body.iwl-page .iwl-simulation-console .iwl-quick-settings>.optimizer-settings-body{
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}

/* Keep the total three-squad power inside the optimizer footer line so it can
   never be clipped below the card or collide with squad Hero Gear labels. */
body.iwl-page .iwl-series-label{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;min-height:34px!important;padding:7px 10px!important;
}
body.iwl-page .iwl-series-total-power{
  flex:0 0 auto!important;padding:4px 8px!important;border:1px solid rgba(255,198,84,.32)!important;
  border-radius:999px!important;background:rgba(88,57,11,.42)!important;color:#ffe39a!important;
  font-size:.58rem!important;font-weight:950!important;letter-spacing:.02em!important;white-space:nowrap!important;
}

/* Hero progression needs distinct click targets. Use real spacing, no negative
   margins or transforms, and keep the gear action row above any decorative glow. */
body.iwl-page .iwl-hero-card>.snowflake-row,
body.iwl-page .iwl-hero-grid .snowflake-row{
  width:100%!important;box-sizing:border-box!important;display:flex!important;
  justify-content:space-between!important;gap:0!important;margin:5px 0 7px!important;padding:2px 8px!important;
  position:relative!important;z-index:1!important;overflow:visible!important;
}
body.iwl-page .iwl-hero-card>.snowflake-row .snowflake,
body.iwl-page .iwl-hero-grid .snowflake{
  width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;
  flex:0 0 30px!important;transform:none!important;margin:0!important;
}
body.iwl-page .iwl-hero-gear-actions{
  position:relative!important;z-index:5!important;isolation:isolate!important;
}
body.iwl-page .iwl-hero-gear-actions button,
body.iwl-page .iwl-hero-gear-actions select{position:relative!important;z-index:6!important;pointer-events:auto!important}

/* IWL telemetry now uses the exact high-contrast green→blue fill language of
   OmniSIM's optimizer. Text reports both public stage and percent/candidate counts. */
body.iwl-page #iwlSearchProgress .optimizer-progress-track{
  background:#121f33!important;border-color:rgba(91,198,255,.52)!important;
}
body.iwl-page #iwlSearchProgress .optimizer-progress-fill{
  background:linear-gradient(90deg,#22c55e,#38bdf8)!important;
  box-shadow:0 0 16px rgba(56,189,248,.38),inset 0 0 8px rgba(255,255,255,.18)!important;
  transition:width .14s linear!important;
}
body.iwl-page #iwlSearchProgress .command-progress-copy span:first-child{color:#f4fbff!important}
body.iwl-page #iwlSearchProgress .command-progress-copy span:last-child{color:#d5f4ff!important}

@media(max-width:760px){
  body.iwl-page .iwl-simulation-console .iwl-quick-settings{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important}
  body.iwl-page .iwl-series-label{align-items:flex-start!important;flex-direction:column!important}
  body.iwl-page .iwl-hero-card>.snowflake-row,body.iwl-page .iwl-hero-grid .snowflake-row{padding-inline:4px!important}
  body.iwl-page .iwl-hero-card>.snowflake-row .snowflake,body.iwl-page .iwl-hero-grid .snowflake{width:27px!important;min-width:27px!important;max-width:27px!important;height:27px!important;min-height:27px!important;max-height:27px!important;flex-basis:27px!important}
}

/* ==============================================================
   2026-10-07 owner repair follow-up #3 — cache-safe visible state,
   actual telemetry fill, deterministic Hero Gear hit targets.
   ============================================================== */
/* The text overlay inherited a solid background from the older command-progress
   surface. That painted over the progress fill even though the fill had the right
   width. It must be transparent, exactly like the live OmniSIM telemetry overlay. */
body.iwl-page #iwlSearchProgress .command-progress-copy{
  background:transparent!important;background-color:transparent!important;
  box-shadow:none!important;z-index:4!important;
}
body.iwl-page #iwlSearchProgress .optimizer-progress-fill{
  position:relative!important;z-index:2!important;
}
body.iwl-page #iwlSearchProgress .optimizer-progress-track::after{z-index:3!important}

/* In Global Power mode the combined value must be impossible to miss. Put it at
   the top of each optimizer formation, before the three squad cards. */
body.iwl-page .iwl-summary-combined-power{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  width:100%!important;box-sizing:border-box!important;margin:0 0 2px!important;padding:8px 10px!important;
  border:1px solid rgba(255,199,77,.38)!important;border-radius:10px!important;
  background:linear-gradient(90deg,rgba(108,69,10,.58),rgba(30,42,51,.66))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;color:#ffe39a!important;
}
body.iwl-page .iwl-summary-combined-power small{
  font-size:.58rem!important;font-weight:950!important;letter-spacing:.055em!important;text-transform:uppercase!important;color:#e8d49c!important;
}
body.iwl-page .iwl-summary-combined-power b{font-size:.82rem!important;font-weight:1000!important;color:#fff0b6!important;white-space:nowrap!important}

/* Snowflake visuals were larger than their layout boxes, so the petals could overlap
   even when the boxes themselves did not. Give every star a real 36px hit cell, scale
   the petals to fit inside it, distribute the cells, and keep the row itself from
   intercepting clicks on the Hero Gear controls below. */
body.iwl-page .iwl-hero-card>.snowflake-row,
body.iwl-page .iwl-hero-grid .snowflake-row{
  justify-content:space-evenly!important;gap:4px!important;padding:4px 8px 7px!important;pointer-events:none!important;
}
body.iwl-page .iwl-hero-card>.snowflake-row .snowflake,
body.iwl-page .iwl-hero-grid .snowflake{
  width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;flex:0 0 36px!important;
  pointer-events:none!important;
}
body.iwl-page .iwl-hero-card .snowflake-leaf,
body.iwl-page .iwl-hero-grid .snowflake-leaf{
  width:10px!important;min-width:10px!important;max-width:10px!important;height:15px!important;min-height:15px!important;max-height:15px!important;
  margin:-7.5px 0 0 -5px!important;transform-origin:50% 7.5px!important;pointer-events:auto!important;
}
body.iwl-page .iwl-hero-card .snowflake-leaf:nth-child(1),body.iwl-page .iwl-hero-grid .snowflake-leaf:nth-child(1){transform:rotate(0deg) translateY(-10.5px)!important}
body.iwl-page .iwl-hero-card .snowflake-leaf:nth-child(2),body.iwl-page .iwl-hero-grid .snowflake-leaf:nth-child(2){transform:rotate(-60deg) translateY(-10.5px)!important}
body.iwl-page .iwl-hero-card .snowflake-leaf:nth-child(3),body.iwl-page .iwl-hero-grid .snowflake-leaf:nth-child(3){transform:rotate(-120deg) translateY(-10.5px)!important}
body.iwl-page .iwl-hero-card .snowflake-leaf:nth-child(4),body.iwl-page .iwl-hero-grid .snowflake-leaf:nth-child(4){transform:rotate(-180deg) translateY(-10.5px)!important}
body.iwl-page .iwl-hero-card .snowflake-leaf:nth-child(5),body.iwl-page .iwl-hero-grid .snowflake-leaf:nth-child(5){transform:rotate(-240deg) translateY(-10.5px)!important}
body.iwl-page .iwl-hero-card .snowflake-leaf:nth-child(6),body.iwl-page .iwl-hero-grid .snowflake-leaf:nth-child(6){transform:rotate(-300deg) translateY(-10.5px)!important}
body.iwl-page .iwl-hero-gear-actions{z-index:10!important;pointer-events:auto!important}
body.iwl-page .iwl-hero-gear-actions>*{pointer-events:auto!important}

@media(max-width:760px){
  body.iwl-page .iwl-hero-card>.snowflake-row,body.iwl-page .iwl-hero-grid .snowflake-row{gap:2px!important;padding-inline:2px!important}
  body.iwl-page .iwl-hero-card>.snowflake-row .snowflake,body.iwl-page .iwl-hero-grid .snowflake{width:31px!important;min-width:31px!important;max-width:31px!important;height:31px!important;min-height:31px!important;max-height:31px!important;flex-basis:31px!important}
  body.iwl-page .iwl-summary-combined-power{align-items:flex-start!important;flex-direction:column!important}
}

/* ==============================================================
   2026-10-07 saved-profile/max-controls root-cause repair.
   ==============================================================
   The desktop OmniSIM command cards are intentionally fixed to a shared height.
   Global Power adds one extra row, so compact only that mode rather than letting
   Squad 3 be clipped below the card. */
body.iwl-page.iwl-global-power-mode .iwl-optimize-card{
  padding-top:20px!important;padding-bottom:14px!important;
}
body.iwl-page.iwl-global-power-mode .iwl-optimize-card .omnisim-optimizer-title{min-height:40px!important}
body.iwl-page.iwl-global-power-mode .iwl-optimize-card .omnisim-optimizer-title b{font-size:1.42rem!important}
body.iwl-page.iwl-global-power-mode .iwl-formation-summary{margin-top:8px!important;gap:7px!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-combined-power{
  min-height:28px!important;margin:0!important;padding:5px 8px!important;border-radius:8px!important;
}
body.iwl-page.iwl-global-power-mode .iwl-summary-combined-power small{font-size:.53rem!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-combined-power b{font-size:.72rem!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-squad{
  padding:7px 9px!important;gap:5px 8px!important;border-radius:9px!important;
}
body.iwl-page.iwl-global-power-mode .iwl-summary-squad-head{gap:6px!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-squad-head b{font-size:.64rem!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-power{padding:2px 6px!important;font-size:.49rem!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-ratio{font-size:.76rem!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-heroes{gap:6px!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-hero{grid-template-rows:48px auto!important;gap:7px!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-hero img,
body.iwl-page.iwl-global-power-mode .iwl-summary-hero .iwl-summary-empty{width:48px!important;height:48px!important;border-radius:8px!important}
body.iwl-page.iwl-global-power-mode .iwl-summary-hero small{
  margin-top:1px!important;min-height:16px!important;font-size:.44rem!important;line-height:1.05!important;
}
body.iwl-page.iwl-global-power-mode .iwl-series-label{min-height:27px!important;padding:4px 8px!important;font-size:.53rem!important}

/* In both strength modes the Gear Set / No Gear caption should read as a caption,
   not as if it is glued to the portrait. */
body.iwl-page .iwl-summary-hero{row-gap:7px!important}
body.iwl-page .iwl-summary-hero small{margin-top:2px!important}

/* Exact OmniSIM telemetry paint contract. Keep a visible indeterminate sweep while
   the first real percentage is still 0, then animate the real server percentage. */
body.iwl-page #battleRail:is(.optimizer-running,.meta-running) #iwlSearchProgress .optimizer-progress-track{opacity:1!important}
body.iwl-page #iwlSearchProgress .optimizer-progress-fill{
  min-width:0!important;background:linear-gradient(90deg,#e83f58 0%,#ff7968 34%,#27bdfc 100%)!important;
  box-shadow:inset 0 0 12px rgba(255,255,255,.16),0 0 20px rgba(55,190,255,.32)!important;
  transition:width .42s linear!important;will-change:width!important;
}
body.iwl-page #iwlSearchProgress.has-progress .optimizer-progress-fill{min-width:3px!important}
body.iwl-page #iwlSearchProgress .optimizer-progress-fill::after{
  content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 10%,rgba(255,255,255,.28) 46%,transparent 78%);
  transform:translateX(-110%);animation:omniTelemetrySweep 1.55s linear infinite;pointer-events:none;
}

/* ==============================================================
   2026-10-07 owner repair follow-up #6 — tooltip parity, compact
   full-stats summaries, recommendation side accents, My Stats.
   ============================================================== */
/* Meta and My Recommendations info controls occupy the exact same anchored
   position inside the copy column, independent of title length. */
body.iwl-page .iwl-meta-strip .omnisim-meta-copy{
  position:relative!important;min-width:0!important;padding-right:58px!important;
}
body.iwl-page .iwl-meta-strip .iwl-meta-help{
  position:absolute!important;right:14px!important;top:50%!important;transform:translateY(-50%)!important;
  display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  margin:0!important;border-width:1.5px!important;font-size:1rem!important;font-weight:900!important;line-height:1!important;z-index:5!important;
}
/* Full Stats has no combined-power row, but still needs the three complete squad
   captions inside the fixed OmniSIM card. Compact the summary rather than clipping
   Squad 3 at the card edge. */
body.iwl-page:not(.iwl-global-power-mode) .iwl-optimize-card{padding-top:20px!important;padding-bottom:14px!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-optimize-card .omnisim-optimizer-title{min-height:40px!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-optimize-card .omnisim-optimizer-title b{font-size:1.48rem!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-formation-summary{margin-top:9px!important;gap:7px!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-squad{min-height:0!important;padding:7px 9px!important;gap:6px 8px!important;border-radius:9px!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-squad-head b{font-size:.66rem!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-ratio{font-size:.79rem!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-heroes{gap:6px!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-hero{grid-template-rows:52px minmax(18px,auto)!important;row-gap:9px!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-hero img,
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-hero .iwl-summary-empty{width:52px!important;height:52px!important;border-radius:9px!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-summary-hero small{min-height:18px!important;margin-top:1px!important;font-size:.47rem!important;line-height:1.05!important}
body.iwl-page:not(.iwl-global-power-mode) .iwl-series-label{min-height:26px!important;padding:4px 8px!important;font-size:.54rem!important}
/* Recommendation rail belongs to its side. */
body.iwl-page .iwl-optimizer-column.att .iwl-side-recommendations .iwl-search-result-card{border-left-color:#ff5268!important}
body.iwl-page .iwl-optimizer-column.def .iwl-side-recommendations .iwl-search-result-card{border-left-color:#53c7f3!important}
/* My Stats uses the same control geometry/font as Quick Max/Reset with a distinct
   profile accent, not a one-off button style. */
body.iwl-page .iwl-restore-my-stats-btn{
  border-color:rgba(116,218,242,.52)!important;
  background:linear-gradient(180deg,rgba(20,101,126,.95),rgba(10,62,82,.97))!important;
  color:#e9fbff!important;font:inherit!important;font-weight:700!important;
}
body.iwl-page .iwl-restore-my-stats-btn:hover{background:linear-gradient(180deg,rgba(27,123,151,.98),rgba(12,75,96,.99))!important}
/* Keep the disabled sample-report surface hoverable for its help icon. The button
   itself remains disabled until a sample battle exists. */
body.iwl-page #iwlSample:disabled{pointer-events:auto!important}
body.iwl-page #iwlSample .omnisim-report-help{pointer-events:auto!important;cursor:help!important}
@media(max-width:760px){
  body.iwl-page .iwl-meta-strip .omnisim-meta-copy{padding-right:48px!important}
  body.iwl-page .iwl-meta-strip .iwl-meta-help{right:8px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:.9rem!important}
}


/* ==============================================================
   2026-10-08 owner follow-up #7 — per-side My Stats placement and
   locked IWL page background asset.
   ============================================================== */
body.iwl-page .iwl-common-head-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
body.iwl-page .iwl-restore-my-stats-btn{min-height:38px!important;padding:0 14px!important;white-space:nowrap!important}
body.iwl-page .iwl-side-common .iwl-restore-my-stats-btn{margin-right:2px!important}


/* 2026-10-08 owner follow-up #8: side-specific saved-profile restore and visible page scene. */
body.iwl-page{position:relative!important;isolation:isolate!important;background:transparent!important}
body.iwl-page #battleBackground{z-index:-2!important;opacity:1!important;visibility:visible!important}
body.iwl-page .bg-overlay{z-index:-1!important;background:linear-gradient(180deg,rgba(3,14,23,.18),rgba(3,16,25,.48) 48%,rgba(2,11,18,.70)),linear-gradient(90deg,rgba(15,50,87,.10),transparent 46%,rgba(127,38,13,.08))!important}
body.iwl-page .iwl-army-title{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
body.iwl-page .iwl-army-title-copy{display:grid!important;gap:3px!important;min-width:0!important}
body.iwl-page .iwl-army-title-copy>span{font-size:1.2rem!important;font-weight:950!important}
body.iwl-page .iwl-army-title-copy>small{color:#7895a3!important;font-size:.56rem!important}
body.iwl-page .iwl-army-title-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:0!important}
body.iwl-page .iwl-army-title-actions>strong{color:#dff7ff!important;font-size:.7rem!important}
body.iwl-page .iwl-army-title .iwl-restore-my-stats-btn{min-height:38px!important;padding:0 14px!important;margin:0!important;font:inherit!important;font-weight:800!important}
body.iwl-page .iwl-stat-heading-copy{display:grid!important;gap:3px!important}
body.iwl-page .iwl-stat-heading-line{display:flex!important;align-items:center!important;gap:8px!important}
body.iwl-page .iwl-stat-heading-line h3{margin:0!important}
@media(max-width:760px){body.iwl-page .iwl-army-title{grid-template-columns:1fr!important}.iwl-army-title-actions{justify-content:flex-start!important;flex-wrap:wrap!important}}

/* 2026-10-08 owner fix: restore two-column army header and independent centered restore control. */
body.iwl-page .iwl-army-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
body.iwl-page .iwl-army-title-actions{grid-column:2!important;justify-content:flex-end!important}
body.iwl-page .iwl-my-stats-row{display:flex;justify-content:center;align-items:center;margin:13px 0 7px;padding:2px 10px}
body.iwl-page .iwl-my-stats-row .iwl-restore-my-stats-btn{min-height:49px!important;min-width:174px!important;padding:11px 25px!important;border:1px solid rgba(105,224,255,.76)!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(17,106,139,.95),rgba(6,58,85,.98))!important;color:#ebfaff!important;font-size:.96rem!important;font-weight:900!important;letter-spacing:.018em!important;box-shadow:0 0 19px rgba(61,197,245,.30),inset 0 1px 0 rgba(206,251,255,.33)!important;cursor:pointer;transition:box-shadow .18s,transform .18s}
body.iwl-page .iwl-my-stats-row .iwl-restore-my-stats-btn:hover,body.iwl-page .iwl-my-stats-row .iwl-restore-my-stats-btn:focus-visible{transform:translateY(-1px);box-shadow:0 0 27px rgba(75,222,255,.59),inset 0 1px 0 rgba(255,255,255,.5)!important}
@media(max-width:760px){body.iwl-page .iwl-army-title{grid-template-columns:minmax(0,1fr) auto!important}body.iwl-page .iwl-army-title-actions{grid-column:2!important}}

/* OmniSIM skill info buttons must remain clickable inside IWL reports. */
body.iwl-page .battle-report-scroll .report-detail-skill-icon{pointer-events:auto!important;cursor:help!important}
body.iwl-page .battle-report-scroll #iwlReportSpecialBonusDetail[hidden]{display:none!important}
body.iwl-page .battle-report-scroll .report-stat-help{pointer-events:auto!important;cursor:pointer!important}

body.iwl-page .battle-report-scroll .report-detail-row{position:relative}
body.iwl-page .iwl-report-skill-help{position:absolute;z-index:15;top:100%;left:8%;right:8%;padding:11px 14px;border:1px solid #b69a79;border-radius:8px;background:#fff5e7;color:#624a33;font-size:.73rem;box-shadow:0 8px 22px rgba(30,20,10,.28)}

/* Actual OmniSIM report scope is #battleReportModal. The IWL sample reports have
   a separate modal ID, so apply the same protected no-duplicate-border rules here. */
body.iwl-page.frozen-battle-page #iwlReportsModal .att,
body.iwl-page.frozen-battle-page #iwlReportsModal .def{
  border-left:0!important;border-right:0!important;
}
body.iwl-page.frozen-battle-page #iwlReportsModal .report-troop-value.att,
body.iwl-page.frozen-battle-page #iwlReportsModal .report-stat-value.att{
  border-left:3px solid #ef6e70!important;
}
body.iwl-page.frozen-battle-page #iwlReportsModal .report-troop-value.def,
body.iwl-page.frozen-battle-page #iwlReportsModal .report-stat-value.def{
  border-right:3px solid #67a9e9!important;
}

/* My Stats has its own unclipped viewport tooltip on hover and keyboard focus. */
body.iwl-page .omnisim-tooltip-portal.iwl-my-stats-tooltip{
  width:min(390px,calc(100vw - 28px));max-width:min(390px,calc(100vw - 28px));
  padding:14px 17px;border:1px solid rgba(121,226,255,.85);border-radius:12px;
  background:linear-gradient(145deg,rgba(6,48,74,.99),rgba(5,21,39,.99));
  box-shadow:0 16px 38px rgba(0,0,0,.58),0 0 26px rgba(70,206,245,.28);
  color:#ecfaff;font-size:.82rem;line-height:1.53;
}

/* IWL isolated single-encounter / full tournament match chooser. */
body.iwl-page .iwl-match-mode{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin:7px 0 10px}
body.iwl-page .iwl-match-mode button,body.iwl-page .iwl-match-round-nav button{border:1px solid rgba(118,167,206,.36);color:#d4e8fa;background:linear-gradient(180deg,#182b46,#0b182c);border-radius:9px;padding:6px 11px;font-size:.72rem;font-weight:800;cursor:pointer;transition:filter .15s,border-color .15s}
body.iwl-page .iwl-match-mode button:hover,body.iwl-page .iwl-match-round-nav button:hover{filter:brightness(1.2)}
body.iwl-page .iwl-match-mode button.active,body.iwl-page .iwl-match-round-nav button.active{color:#ffedba;border-color:#edc878;background:linear-gradient(180deg,#665124,#282012);box-shadow:inset 0 1px 0 rgba(255,235,175,.18),0 0 10px rgba(220,175,73,.15)}
body.iwl-page .iwl-match-mode button:focus-visible,body.iwl-page .iwl-match-round-nav button:focus-visible{outline:2px solid #f4d58a;outline-offset:2px}
body.iwl-page .iwl-match-round-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:8px 0 13px}
/* Shared OmniSIM initial 50/50 mockup rule must NOT override IWL's live result fill. */
body.iwl-page .omnisim-percent-area #iwlRedBar.battle-compat-width,body.iwl-page .omnisim-percent-area #iwlBlueBar.battle-compat-width{flex:0 0 auto;min-width:0}

/* A third, genuinely distinct plan remains inspectable even if its deep evidence
   is too weak to label it a competitive recommendation. */
.iwl-search-result-card .iwl-low-confidence{font-size:9px;font-weight:700;line-height:1.2;font-style:normal;color:#f7c879;letter-spacing:.035em;white-space:nowrap}
.iwl-recommendation-note{font-size:11px;color:#e7c9a5;line-height:1.35;padding:7px 10px;margin:4px 0;border:1px solid rgba(241,184,101,.25);border-radius:7px}

/* IWL account-grounded qualifier scenarios: readable, explicitly uncertain and inspectable. */
body.iwl-page .iwl-qualifier-global-warning{margin:0 0 14px;padding:12px 14px;border:1px solid rgba(246,202,119,.36);border-radius:10px;background:rgba(73,47,14,.28);font-size:.76rem;line-height:1.5;color:#dce8f2}
body.iwl-page .iwl-qualifier-global-warning b{color:#ffe2a1}
body.iwl-page .iwl-qualifier-forecast{margin-top:14px;padding:13px;border:1px solid rgba(92,190,226,.25);border-radius:12px;background:rgba(9,31,47,.70)}
body.iwl-page .iwl-qualifier-forecast>header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.75rem;color:#e8f7ff}
body.iwl-page .iwl-qualifier-forecast>header span{font-size:.69rem;color:#e2c48d}
body.iwl-page .iwl-qualifier-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:11px 0}
body.iwl-page .iwl-qualifier-metrics>div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:9px 8px;border-radius:9px;background:rgba(43,99,128,.18)}
body.iwl-page .iwl-qualifier-metrics strong{font-size:1rem;color:#ecfaff;overflow-wrap:anywhere}
body.iwl-page .iwl-qualifier-metrics small{font-size:.66rem;line-height:1.25;color:#a6c4d0}
body.iwl-page .iwl-qualifier-warning,body.iwl-page .iwl-qualifier-path p{font-size:.70rem;line-height:1.55;color:#b0c8d4}
body.iwl-page .iwl-qualifier-path>summary{cursor:pointer;padding:10px 4px;color:#bfeefe;font-size:.78rem;font-weight:800}
body.iwl-page .iwl-qualifier-round{margin:7px 0;border:1px solid rgba(125,180,209,.18);border-radius:9px;background:rgba(2,15,30,.38)}
body.iwl-page .iwl-qualifier-round>summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;cursor:pointer;font-size:.72rem}
body.iwl-page .iwl-qualifier-round>summary strong{color:#edfaff}
body.iwl-page .iwl-qualifier-round>summary span{flex:1;color:#a5c3d5}
body.iwl-page .iwl-qualifier-round>summary b{color:#ace4cd}
body.iwl-page .iwl-qualifier-round-detail{padding:0 12px 12px}
body.iwl-page .iwl-qualifier-opponent-squad{display:flex;flex-wrap:wrap;gap:9px;padding:8px 0;border-top:1px solid rgba(255,255,255,.08);font-size:.72rem}
body.iwl-page .iwl-qualifier-opponent-squad strong{min-width:150px;color:#b0e8ff}
body.iwl-page .iwl-qualifier-opponent-squad span{color:#e1ecf3}
@media(max-width:760px){body.iwl-page .iwl-qualifier-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 2026-10-09 My Recommendations: safe inspector modal and unclipped heading. */
body.iwl-page #iwlSearchModal .global-meta-dialog{height:auto!important;max-height:min(92dvh,980px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important}
body.iwl-page #iwlSearchModal .global-meta-modal-head{flex:0 0 auto!important;min-height:0!important;overflow:visible!important;align-items:flex-start!important;position:relative;z-index:1}
body.iwl-page #iwlSearchModal .global-meta-modal-head>div{min-width:0;max-width:calc(100% - 56px);overflow-wrap:anywhere}
body.iwl-page #iwlSearchModal .global-meta-modal-head p{display:block!important;max-height:none!important;overflow:visible!important;white-space:normal!important;font-size:.83rem!important;line-height:1.3!important;margin:4px 0 0!important}
body.iwl-page #iwlSearchModal .global-meta-modal-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important;position:relative;z-index:0}
body.iwl-page #iwlSearchModal .iwl-search-result-card:not([data-apply-plan-card]){cursor:default!important}
body.iwl-page #iwlSearchModal .iwl-qualifier-round{position:relative;z-index:2}
body.iwl-page #iwlSearchModal .iwl-qualifier-round>summary{cursor:pointer;user-select:none;list-style:none;min-height:42px}
body.iwl-page #iwlSearchModal .iwl-qualifier-round>summary::-webkit-details-marker{display:none}
body.iwl-page #iwlSearchModal .iwl-qualifier-round[open]{border-color:rgba(112,203,226,.55)}
body.iwl-page .iwl-opponent-context{font-size:.73rem;color:#9cd5ed;padding:6px 0 9px}
body.iwl-page .iwl-rec-scope{width:100%;min-width:0}
body.iwl-page #iwlMyRecHistoryActions[hidden],body.iwl-page #iwlMetaHistoryActions[hidden]{display:none!important}
@media(max-width:760px){body.iwl-page #iwlSearchModal .global-meta-modal-head h2{font-size:1.2rem!important}body.iwl-page #iwlSearchModal .global-meta-modal-head p{font-size:.75rem!important}}

body.iwl-page #iwlSearchModal .iwl-qualifier-matchups-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 2px 5px;color:#bfeefe;font-size:.8rem}
body.iwl-page #iwlSearchModal .iwl-qualifier-matchups-head span{font-size:.68rem;color:#a5c3d5;overflow-wrap:anywhere}
body.iwl-page #iwlSearchModal .iwl-qualifier-path{margin-top:10px}

/* 2026-10-09: compact, read-only qualifier results and emphasized forecast metrics. */
body.iwl-page #iwlSearchModal .iwl-qualifier-key-metric{background:rgba(128,101,43,.24);border:1px solid rgba(248,206,123,.58);box-shadow:inset 0 0 18px rgba(242,177,59,.08),0 0 0 1px rgba(255,221,145,.08)}
body.iwl-page #iwlSearchModal .iwl-qualifier-key-metric strong{color:#ffe7a9;font-size:1.26rem}
body.iwl-page #iwlSearchModal .iwl-qualifier-key-metric.rank{background:rgba(52,101,141,.31);border-color:rgba(121,210,252,.58)}
body.iwl-page #iwlSearchModal .iwl-qualifier-key-metric.rank strong{color:#b9eeff;font-size:1.04rem}
body.iwl-page #iwlSearchModal .iwl-qualifier-match-tiles{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;margin:5px 0 0;padding:0;list-style:none}
body.iwl-page #iwlSearchModal .iwl-qualifier-match-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:75px;padding:8px 3px;border:1px solid rgba(128,179,208,.35);border-radius:9px;background:rgba(8,27,43,.74);text-align:center;cursor:default;user-select:none}
body.iwl-page #iwlSearchModal .iwl-qualifier-match-tile.win{border-color:rgba(95,224,155,.42)}
body.iwl-page #iwlSearchModal .iwl-qualifier-match-tile.loss{border-color:rgba(250,111,125,.47)}
body.iwl-page #iwlSearchModal .iwl-qualifier-match-number{font-size:.69rem;font-weight:750;color:#e1eff8;white-space:nowrap}
body.iwl-page #iwlSearchModal .iwl-qualifier-match-symbol{font-size:2.1rem;font-weight:900;line-height:1;color:#70ecaa;text-shadow:0 0 9px rgba(55,224,116,.28)}
body.iwl-page #iwlSearchModal .iwl-qualifier-match-tile.loss .iwl-qualifier-match-symbol{color:#ff7e8e;text-shadow:0 0 9px rgba(244,69,78,.34)}
@media(max-width:950px){body.iwl-page #iwlSearchModal .iwl-qualifier-match-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:450px){body.iwl-page #iwlSearchModal .iwl-qualifier-match-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Exact qualifier expectation: a real CSS hover/focus popup, not a browser-native
   title (which some modal/browser combinations suppress). Its metric and card
   allow the popup to overlay adjacent forecast cells without clipping. */
body.iwl-page #iwlSearchModal .iwl-qualifier-expected-hover{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:4px;min-width:0;width:100%;margin:0;padding:9px 8px;font:inherit;text-align:left;
  cursor:help;color:inherit;overflow:visible;isolation:isolate;
}
body.iwl-page #iwlSearchModal .iwl-qualifier-expected-hover:hover,
body.iwl-page #iwlSearchModal .iwl-qualifier-expected-hover:focus-visible{z-index:7;outline:2px solid #ffe7a9;outline-offset:1px}
body.iwl-page #iwlSearchModal .iwl-qualifier-exact-popover{
  position:absolute;z-index:20;top:calc(100% + 6px);left:0;display:block;
  width:max-content;max-width:min(210px,75vw);padding:9px 12px;border:1px solid #ffe1a1;
  border-radius:8px;background:#102b3d;color:#fff4d5;font-size:.82rem;font-weight:800;
  white-space:normal;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.48);
  pointer-events:none;opacity:0;visibility:hidden;transform:translateY(-4px);
  transition:opacity .12s ease,transform .12s ease,visibility .12s ease;
}
body.iwl-page #iwlSearchModal .iwl-qualifier-expected-hover:hover .iwl-qualifier-exact-popover,
body.iwl-page #iwlSearchModal .iwl-qualifier-expected-hover:focus-visible .iwl-qualifier-exact-popover{
  opacity:1;visibility:visible;transform:translateY(0);
}

/* Initial equal score segments; runtime updates their dynamic widths after battle. */
body.iwl-page #iwlRedBar,body.iwl-page #iwlBlueBar{width:50%}
