/* CEOBE / COMMAND: one optional complete game layout. Classic and previous layouts remain selectable. */
:root[data-ui-theme=tactical] { --command-plate:#101a23ed;--command-line:#57717b;--command-teal:#e6c38a;--command-amber:#efb75e;--skin-heading:var(--font-cjk);--skin-radius:2px; }
.tactical-backdrop { position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#0b1015; }
.tactical-backdrop > :is(img,video) { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%; }
.tactical-backdrop > img { filter:saturate(.74); }
.tactical-backdrop > video { filter:saturate(.74); }
.tactical-backdrop__shade { position:absolute;inset:0;background:linear-gradient(90deg,#081019b8 0%,#08101945 32%,#08101914 60%,#08101988 100%),linear-gradient(0deg,#070d17f5 0%,transparent 48%,#07101866 100%); }
:root[data-ui-theme=tactical] :is(.title-bg,.title-screen::before) { display:none; }
:root[data-ui-theme=tactical] .title-screen { background:#0b1015; }
:root[data-ui-theme=tactical] .title-main { position:absolute;inset:80px 5vw 90px;width:auto;display:block;margin:0;z-index:2; }
:root[data-ui-theme=tactical] .title-identity { display:flex;position:absolute;left:0;top:13%;flex-direction:column;align-items:flex-start;max-width:440px; }
:root[data-ui-theme=tactical] .title-identity .emblem { display:none; }
:root[data-ui-theme=tactical] .title-en { align-items:flex-start;gap:10px; }
:root[data-ui-theme=tactical] .title-en__a { padding:0;color:#e3eeec;font-size:13px;letter-spacing:.22em; }
:root[data-ui-theme=tactical] .title-en__b { padding:0;color:var(--command-teal);font-size:13px;letter-spacing:.4em; }
:root[data-ui-theme=tactical] .title-cn { margin-top:15px;font-size:20px;font-weight:500;letter-spacing:.16em;color:#e3eeec;text-shadow:0 2px 8px #0009; }
:root[data-ui-theme=tactical] .title-cn em { color:#e3eeec;text-shadow:none; }
:root[data-ui-theme=tactical] .title-edition { display:block;order:0;margin-top:14px;color:#f6f9f6;font-size:clamp(45px,5.5vw,80px);font-weight:850;line-height:1.2;letter-spacing:.08em;text-shadow:0 3px 22px #0008; }
:root[data-ui-theme=tactical] .title-tag { order:1;max-width:31ch;font-size:14px;line-height:1.9;letter-spacing:.05em;color:#d1dfdf;text-shadow:0 1px 4px #000; }
:root[data-ui-theme=tactical] .title-entry { display:block;position:absolute;right:0;bottom:5%;width:390px; }
:root[data-ui-theme=tactical] .title-screen .title-login { width:100%;margin:0;padding:24px;background:#0d1824eb;border:1px solid #647f86;border-top:3px solid var(--command-teal);border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 18px 45px #0006;gap:16px; }
:root[data-ui-theme=tactical] .title-login::before { display:none; }
:root[data-ui-theme=tactical] .title-login .field__label { font-size:14px;color:#e2ece8; }
:root[data-ui-theme=tactical] .title-login .field__label .micro { display:none; }
:root[data-ui-theme=tactical] .title-login .field__box { height:48px;background:#172938;border-color:#647e8b; }
:root[data-ui-theme=tactical] .title-login .field__input { font-size:18px;font-weight:600; }
:root[data-ui-theme=tactical] .title-login .btn--xl { height:auto;min-height:52px;font-size:20px;padding:12px;letter-spacing:.12em; }
:root[data-ui-theme=tactical] .title-screen .title-conn { font-size:12px;gap:6px; }
:root[data-ui-theme=tactical] .title-screen .title-assets { width:100%;margin-top:12px;gap:8px; }
:root[data-ui-theme=tactical] .title-assets__item > .btn { min-height:36px;font-size:12px;padding:8px; }
:root[data-ui-theme=tactical] .title-assets__item > small { font-size:11px;color:#d6e5e5;background:#0c1620bb;padding:4px; }
:root[data-ui-theme=tactical] .title-foot { background:#071019c9;padding:10px 14px;left:28px;right:28px;bottom:18px;gap:12px;font-size:11px;color:#d3dfe1;line-height:1.5; }
:root[data-ui-theme=tactical] .title-foot .micro { font-size:10px;color:#d3dfe1; }
:root[data-ui-theme=tactical] .title-corner { color:#e0edeb;text-shadow:0 1px 4px #000; }
:root[data-ui-theme=tactical] .title-plugins { background:#172732;border-color:#70848c;color:#e2ece8;font-size:11px; }
:root[data-ui-theme=tactical] .btn { min-height:32px;font-size:max(12px,calc(.16 * var(--t)));border-radius:1px;letter-spacing:.03em; }
:root[data-ui-theme=tactical] .btn--primary { background:linear-gradient(115deg,#f2d398,#d4a14f);color:#261b0d;border-color:#e9c889;box-shadow:inset 0 1px #fff0c9;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,0 100%);font-weight:750; }
:root[data-ui-theme=tactical] .btn--primary:disabled { background:#263841;color:#b0c2c7;border-color:#60737b;box-shadow:none;clip-path:none;opacity:.75; }
:root[data-ui-theme=tactical] :is(.btn--secondary,.btn--ghost) { color:#e0ece9;border-color:#5f7881;background:#142530d9; }
:root[data-ui-theme=tactical] :is(.btn,.command-mode,.command-rail__item,.command-intel__action):hover:not(:disabled) { border-color:#f1d498; }
:root[data-ui-theme=tactical] :is(.micro,.topbar .micro) { font-size:max(10px,calc(.12 * var(--t)));opacity:1; }
:root[data-ui-theme=tactical] .command-lobby { display:block;background:#0b1015; }
.command-topbar { position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:82px;padding:16px 34px;background:linear-gradient(#0a141ef2,#0a141eb8);border-bottom:1px solid #5f8e87; }
.command-topbar__left { display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap; }
.command-topbar .btn--square { min-width:38px;height:38px; }
.command-separator { display:block;height:28px;border-left:1px solid #597279;margin:0 6px; }
.command-account { display:flex;align-items:center;gap:10px;padding:6px 10px;max-width:240px;min-width:140px;border:1px solid #5b747e;background:#172a33db;color:#ecf2f0;text-align:left;cursor:pointer; }
.command-account .avatar { --av:36px;flex:none; }
.command-account > span { min-width:0;display:grid;gap:4px; }
.command-account b { font-size:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden; }
.command-account small { font-size:11px;color:#b7ccd0; }
.command-account > .icon { width:18px;height:18px;margin-left:auto; }
.command-stage { position:absolute;z-index:2;inset:110px 38px 204px;display:grid;grid-template-columns:250px minmax(0,1fr) 350px;gap:28px;align-items:start;pointer-events:none; }
.command-rail,.command-intel { display:flex;flex-direction:column;gap:14px;pointer-events:auto; }
.command-stat { display:grid;grid-template-rows:78px auto;padding:0;text-align:left;border:1px solid #687e83;background:#0e1b26e8;cursor:pointer; }
.command-stat__art { display:flex;align-items:center;justify-content:flex-start;padding:18px;background:linear-gradient(130deg,#21403b,#152e3e 55%,#8c6b35);border-bottom:1px solid #688a85; }
.command-stat__art .icon { width:38px;height:38px;color:#c3edda; }
.command-stat > b { display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-size:21px;color:#f2f7f3; }
.command-stat > b .icon { width:23px;height:23px;color:#e1bc7d; }
.command-rail__item { display:flex;align-items:center;gap:14px;min-height:78px;padding:15px;border:1px solid #6a7e87;border-left:4px solid #e1bb79;background:#0e1b26ef;color:#e6f0ed;cursor:pointer;text-align:left; }
.command-rail__item > .icon:first-child { width:30px;height:30px;color:#e4c58f; }
.command-rail__item > .icon:last-child { margin-left:auto;width:17px;height:17px; }
.command-rail__item span { display:grid;gap:6px; }
.command-rail__item b { font-size:18px;line-height:1.3; }
.command-rail__item small { font-size:11px;color:#bed2d3;letter-spacing:.07em; }
.command-brand { grid-column:2;align-self:end;justify-self:start;margin-bottom:30px;pointer-events:none;color:#f4f8f4;text-shadow:0 3px 12px #000; }
.command-brand small { display:block;font-size:11px;letter-spacing:.18em;color:#cce5e0; }
.command-brand h1 { font-size:clamp(32px,3.6vw,54px);line-height:1.35;font-weight:850;letter-spacing:.08em;margin:10px 0; }
.command-brand > span { font-size:13px;color:#d7e7e5; }
.command-intel { grid-column:3; }
.command-recruit { border:1px solid #607781;border-top:3px solid #e2ba78;background:#0d1a26ed; }
.command-recruit > header { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 13px;border-bottom:1px solid #526a76; }
.command-recruit > header > span { display:flex;align-items:center;gap:8px;color:#f1f7f4;font-size:20px;font-weight:750; }
.command-recruit > header i { width:7px;height:7px;border-radius:50%;background:#ecc481;box-shadow:0 0 7px #ecc48155; }
.command-recruit > header button { display:flex;gap:5px;align-items:center;background:transparent;color:#d1e0e1;border:0;font-size:13px;cursor:pointer; }
.command-recruit > header button .icon { width:15px;height:15px; }
.command-recruit__list { max-height:260px;overflow:auto; }
.command-recruit__list > p { padding:22px 16px;font-size:13px;line-height:1.8;color:#c5d8db; }
.command-recruit article { display:flex;gap:10px;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #38515e; }
.command-recruit article > div { min-width:0;display:grid;gap:5px; }
.command-recruit strong { font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f1f5f2; }
.command-recruit strong .icon { width:12px;height:12px;margin-left:7px;color:#e6be72; }
.command-recruit small { color:#d3e1e1;font-size:12px; }
.command-recruit article > div > span { color:#a6c6cc;font-size:11px;line-height:1.4; }
.command-recruit .btn { flex:none;min-height:36px;font-size:13px;padding:8px 14px; }
.command-intel__action { display:flex;align-items:center;gap:12px;min-height:72px;padding:16px;background:linear-gradient(100deg,#e0eae5,#c3d5d4);border:1px solid #f1fbf6;color:#122c33;text-align:left;cursor:pointer; }
.command-intel__action > .icon { width:28px;height:28px; }
.command-intel__action > .icon:last-child { margin-left:auto;width:16px;height:16px; }
.command-intel__action b { font-size:20px; }
.command-intel__action small { display:none; }
:root[data-ui-theme=tactical] .command-intel__loadout .btn { display:flex;justify-content:flex-start;width:100%;min-height:72px;background:linear-gradient(100deg,#e0eae5,#c3d5d4);color:#122c33;border-color:#f1fbf6;padding:16px;font-size:20px;font-weight:750;box-shadow:none; }
.command-bottom { position:absolute;z-index:3;bottom:28px;left:38px;right:38px;display:grid;grid-template-columns:minmax(140px,.8fr) repeat(2,minmax(150px,1fr)) minmax(140px,.8fr) minmax(200px,1.15fr);gap:12px;align-items:stretch; }
.command-bottom__label { display:flex;flex-direction:column;align-self:end;gap:10px;padding:0 8px 10px 0;color:#f0f6f2;text-shadow:0 2px 6px #000; }
.command-bottom__label > span { font-size:10px;letter-spacing:.15em;color:#b6d4d2; }
.command-bottom__label b { font-size:16px; }
.command-bottom__label small { font-size:12px;color:#d2e3e1; }
.command-mode { display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:140px;padding:20px 22px;text-align:left;border:1px solid #657e87;background:#0b1b28ef;color:#ebf2ee;cursor:pointer;position:relative; }
.command-mode > span { display:flex;align-items:center;justify-content:space-between;width:100%;color:#dfc291; }
.command-mode > span .icon { width:24px;height:24px; }
.command-mode small { font-size:10px;letter-spacing:.1em; }
.command-mode b { font-size:26px;line-height:1.4;margin-top:12px;font-weight:800; }
.command-mode em { font-size:12px;color:#c3d9da;font-style:normal;margin-top:5px; }
.command-mode.is-selected { border:2px solid #f0cd8e;background:linear-gradient(125deg,#4c3c27ef,#102832ef);box-shadow:inset 0 -4px #e6bd77; }
.command-mode.is-selected::after { content:'';position:absolute;right:0;bottom:0;width:14px;height:14px;background:#f0cd8e;clip-path:polygon(100% 0,100% 100%,0 100%); }
.command-mode--config b { font-size:20px; }
:root[data-ui-theme=tactical] .command-start { min-height:140px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:27px;padding:18px;text-align:center; }
.command-start .icon { width:26px;height:26px; }
.command-difficulties { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.command-difficulties button { display:grid;grid-template-columns:1fr auto;gap:8px;border:1px solid #5e7b85;background:#1a2b37;padding:18px;text-align:left;color:#e6f3ed;cursor:pointer; }
.command-difficulties small { grid-column:1 / -1;font-size:11px;color:#b5ccd3;letter-spacing:.1em; }
.command-difficulties b { font-size:19px; }
.command-difficulties .icon { width:22px;height:22px; }
.command-difficulties button.is-selected { border-color:#edd1a0;background:#4a3c29; }
.command-test { display:flex;align-items:center;gap:8px;margin-top:20px;font-size:13px;line-height:1.8;color:#e3ebe9; }
.command-config__hint { margin-top:16px;font-size:13px;color:#cadadc;line-height:1.75; }
/* Shared interaction surfaces are crisp, compact and recognizable as game HUD panels. */
:root[data-ui-theme=tactical] :is(.modal__box,.augment-panel,.dpanel,.bpop,.edrawer,.lo-detail,.st-card,.rcard) { border:1px solid #617e88;border-top:3px solid #e1bb79;background:#111e29;box-shadow:0 18px 50px #0006;border-radius:1px; }
:root[data-ui-theme=tactical] .modal__title { font-family:var(--font-cjk);font-weight:750;font-size:24px;letter-spacing:.05em; }
:root[data-ui-theme=tactical] :is(.modal__body,.dpanel,.bpop,.edrawer) { font-size:max(13px,calc(.16 * var(--t)));line-height:1.7;color:#d5e4e5; }
:root[data-ui-theme=tactical] .modal__head { background:#172c38;border-bottom:1px solid #58747d; }
:root[data-ui-theme=tactical] .modal__actions { background:#0c1b27;border-top:1px solid #58747d; }
:root[data-ui-theme=tactical] :is(.field__input,input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea) { color:#f1f7f4;font-size:max(14px,calc(.18 * var(--t))); }
:root[data-ui-theme=tactical] :is(.field__input,input,textarea)::placeholder { color:#abc4cb;opacity:1; }
:root[data-ui-theme=tactical] :is(.settings-dialog__nav,.lo-top,.st-top) { background:#142c38; }
:root[data-ui-theme=tactical] .settings-dialog__nav button { font-size:14px;color:#c4dadd; }
:root[data-ui-theme=tactical] .settings-dialog__nav button.is-current { background:#4a3b29;border-left:3px solid #e2c184;color:#ebfff5; }
:root[data-ui-theme=tactical] .settings-group__head h3 { font-family:var(--font-cjk);font-size:21px;font-weight:750; }
:root[data-ui-theme=tactical] .settings-group__head p { color:#b8cfd4;font-size:13px; }
:root[data-ui-theme=tactical] .set-hint { color:#bad0d5; }
:root[data-ui-theme=tactical] .room-screen { background:linear-gradient(#06131ddb,#08131df2),url('/ui/tactical/ceobe-canonical.webp') center/cover; }
:root[data-ui-theme=tactical] .room-screen .topbar { height:86px;min-height:86px;background:#0c1c28ed;border-bottom:1px solid #5c958c;box-shadow:none;border-radius:0;padding:12px 28px; }
:root[data-ui-theme=tactical] .topbar__title { font-family:var(--font-cjk);font-weight:750;font-size:max(20px,calc(.26 * var(--t))); }
:root[data-ui-theme=tactical] .topbar__center .micro { color:#b8d1d2; }
:root[data-ui-theme=tactical] .room-capacity { min-height:42px;background:#152c38;color:#deece8;border-color:#52717d;font-size:12px; }
:root[data-ui-theme=tactical] .seats { grid-template-rows:minmax(0,460px);gap:20px;padding:20px 40px; }
:root[data-ui-theme=tactical] .seat { padding:14px 16px;border:1px solid #6a818b;background:#14232eee;border-top:3px solid #5d8f87;box-shadow:none;border-radius:0; }
:root[data-ui-theme=tactical] .seat.brackets::before,:root[data-ui-theme=tactical] .seat.brackets::after { display:none; }
:root[data-ui-theme=tactical] .seat__art { background:linear-gradient(150deg,#243b45,#101e2a);border-color:#42616e; }
:root[data-ui-theme=tactical] .seat__name { font-size:max(16px,calc(.22 * var(--t))); }
:root[data-ui-theme=tactical] .seat__state { font-size:14px; }
:root[data-ui-theme=tactical] .seat__content { font-size:12px;color:#d0e2e2; }
:root[data-ui-theme=tactical] .seat__bot-label { font-size:12px; }
:root[data-ui-theme=tactical] .seats--expanded,:root[data-ui-theme=tactical] .seats--dense { grid-template-rows:none;grid-auto-rows:minmax(120px,1fr);padding:12px 28px;gap:10px; }
:root[data-ui-theme=tactical] .seats--dense .seat { padding:8px 10px; }
:root[data-ui-theme=tactical] .seats--dense .seat__state { font-size:12px; }
:root[data-ui-theme=tactical] .room-bar { min-height:110px;background:#0d1e2bf5;border-top:1px solid #6d8d94;border-radius:0; }
:root[data-ui-theme=tactical] .room-bar .btn--xl { min-height:52px;font-size:22px; }
:root[data-ui-theme=tactical] .dpick__opt { background:#203744;color:#dce9e9;font-size:13px;min-height:34px; }
:root[data-ui-theme=tactical] .invite { background:#142d39;border-color:#527381; }
:root[data-ui-theme=tactical] .invite__code span { font-size:30px;color:#f2d99f; }
:root[data-ui-theme=tactical] :is(.brief,.draft) { background:radial-gradient(ellipse at 50% 45%,#24454b,#101d29 70%); }
:root[data-ui-theme=tactical] :is(.brief-boss,.brief-stage,.brief-faction,.brief-bonds,.brief-banned,.brief-reroll,.dband,.dorder,.spcard,.draft-detail) { background:#142834;border-color:#5d7b86;border-radius:0;box-shadow:none; }
:root[data-ui-theme=tactical] :is(.brief-h,.brief-boss__name,.spov__name,.draft-detail h2) { font-size:max(19px,calc(.24 * var(--t)));font-weight:750; }
:root[data-ui-theme=tactical] :is(.spcard__name,.dband__name,.dpanel__name) { font-size:max(16px,calc(.2 * var(--t))); }
:root[data-ui-theme=tactical] :is(.spcard__desc,.dband__desc,.dpanel__desc) { font-size:max(12px,calc(.15 * var(--t)));color:#d2e3e3; }
:root[data-ui-theme=tactical] .gtop__center { background:#0d202cf0;border:1px solid #76b5aa;border-radius:0;box-shadow:0 5px 16px #0005; }
:root[data-ui-theme=tactical] .gtop__meta { background:#0b1a25dd;padding:5px 8px;border-left:2px solid #d9b97d; }
:root[data-ui-theme=tactical] .team__info { background:#0d202ce8;border:1px solid #52717a; }
:root[data-ui-theme=tactical] .team__name { font-size:max(12px,calc(.17 * var(--t))); }
:root[data-ui-theme=tactical] .toolbtn { background:#142c3be8;border-color:#62808c;color:#e4efeb; }
:root[data-ui-theme=tactical] .scard__body { background:linear-gradient(180deg,transparent,#152833 .2rem,#152833);color:#d4e5e5;border-top:0; }
:root[data-ui-theme=tactical] .scard__name { font-size:max(12px,calc(.18 * var(--t)));color:#f0f6f1; }
:root[data-ui-theme=tactical] .scard__skill { color:#d6e6e7; }
:root[data-ui-theme=tactical] .augment-panel { width:min(1120px,96vw);padding:26px; }
:root[data-ui-theme=tactical] .augment-heading { border-left:4px solid #e6bc79;padding-left:18px; }
:root[data-ui-theme=tactical] .augment-heading h2 { font-family:var(--font-cjk);font-size:29px;font-weight:800; }
:root[data-ui-theme=tactical] .augment-card { background:linear-gradient(155deg,#1d3744,#152731);border:1px solid #67818d;border-top:3px solid #aa844f;border-radius:0;box-shadow:none; }
:root[data-ui-theme=tactical] .augment-card h3 { font-family:var(--font-cjk);font-size:23px;font-weight:750; }
:root[data-ui-theme=tactical] .augment-card p { font-size:14px;line-height:1.9;color:#d9e7e7; }
:root[data-ui-theme=tactical] .augment-card.is-selected { background:#4a3c2b;border-color:#f2d596;box-shadow:inset 0 0 0 1px #f2d596; }
:root[data-ui-theme=tactical] .augment-category { color:#ebcf99;font-size:12px; }
:root[data-ui-theme=tactical] .augment-history > button { background:#112835;color:#e1f4ec;font-size:12px;border-color:#b69b6c; }
:root[data-ui-theme=tactical] :is(.lo,.st,.settle) { background:#101d28;color:#ebf3ef; }
:root[data-ui-theme=tactical] :is(.lo__bg,.st__bg,.steam__bg) { background:linear-gradient(115deg,#1a3440,#0b1622); }
:root[data-ui-theme=tactical] .lo-roster { background:#0c1d28; }
:root[data-ui-theme=tactical] :is(.lo-card,.lo-detail,.lo-minfo,.st-card,.st-record,.rcard,.tcard__plate) { background:#172d39;border-color:#5b7d86;box-shadow:none;border-radius:0; }
:root[data-ui-theme=tactical] .lo-list__head { background:#203d49;border-color:#62838c; }
:root[data-ui-theme=tactical] .lo-card__name { font-size:max(14px,calc(.18 * var(--t))); }
:root[data-ui-theme=tactical] .st-card__num { color:#b2f6df;font-family:var(--font-num); }
:root[data-ui-theme=tactical] :is(.sself__title,.steam__title,.result__headline) { font-family:var(--font-cjk);font-weight:800;color:#e9f6ed;text-shadow:none; }
:root[data-ui-theme=tactical] :is(.sbtn--primary,.settle__next) { background:#e6c28a;color:#261b0d;border-color:#f0d9ad;font-weight:750; }
@media(max-width:1100px),(max-height:680px) {
 .command-topbar { min-height:64px;padding:10px 20px;gap:10px; }
 .command-topbar__left { gap:6px; }
 .command-account { min-width:116px;max-width:180px; }
 .command-stage { inset:84px 22px 174px;grid-template-columns:200px minmax(0,1fr) 290px;gap:20px; }
 .command-stat { grid-template-rows:54px auto; }
 .command-stat > b { font-size:18px;padding:10px 12px; }
 .command-rail__item { min-height:65px;padding:12px; }
 .command-rail__item b { font-size:16px; }
 .command-intel__action,:root[data-ui-theme=tactical] .command-intel__loadout .btn { min-height:55px;font-size:17px;padding:12px; }
 .command-recruit > header > span { font-size:17px; }
 .command-bottom { left:22px;right:22px;bottom:18px;gap:8px;grid-template-columns:repeat(2,minmax(135px,1fr)) minmax(115px,.7fr) minmax(180px,1.2fr); }
 .command-bottom__label { display:none; }
 .command-mode,:root[data-ui-theme=tactical] .command-start { min-height:128px; }
 .command-mode { padding:14px 16px; }
 .command-mode b { font-size:22px; }
 :root[data-ui-theme=tactical] .command-start { font-size:23px; }
}
@media(max-width:900px),(max-height:520px) {
 .command-topbar { min-height:54px;padding:6px 12px; }
 .command-topbar .btn { min-height:32px;font-size:11px;padding:6px 8px; }
 .command-topbar .btn--square { min-width:32px;height:32px; }
 .command-account { min-width:0;max-width:150px;padding:4px 6px; }
 .command-account .avatar { --av:28px; }
 .command-account b { font-size:12px; }
 .command-account small { display:none; }
 .command-stage { inset:66px 16px 120px;grid-template-columns:150px minmax(0,1fr) 240px;gap:14px; }
 .command-stat { grid-template-rows:42px auto; }
 .command-stat > b { font-size:15px;padding:9px 10px; }
 .command-stat__art { padding:8px; }
 .command-stat__art .icon { height:25px;width:25px; }
 .command-rail { gap:8px; }
 .command-rail__item { min-height:52px;gap:10px;padding:8px; }
 .command-rail__item > .icon:first-child { width:22px;height:22px; }
 .command-rail__item b { font-size:14px; }
 .command-rail__item small { font-size:10px; }
 .command-brand { margin:0 0 10px; }
 .command-brand small,.command-brand > span { display:none; }
 .command-brand h1 { font-size:27px;white-space:nowrap; }
 .command-recruit > header { padding:8px 10px; }
 .command-recruit > header > span { font-size:14px; }
 .command-recruit__list { max-height:130px; }
 .command-recruit__list > p { padding:12px;font-size:12px; }
 .command-recruit article { padding:8px; }
 .command-recruit strong { font-size:13px; }
 .command-recruit article > div > span { display:none; }
 .command-intel { gap:8px; }
 .command-intel__action,:root[data-ui-theme=tactical] .command-intel__loadout .btn { min-height:42px;padding:9px 12px;font-size:15px; }
 .command-intel__action b { font-size:15px; }
 .command-intel__action > .icon { width:23px;height:23px; }
 .command-bottom { left:16px;right:16px;bottom:12px;gap:6px;grid-template-columns:repeat(2,minmax(110px,1fr)) minmax(100px,.8fr) minmax(150px,1.2fr); }
 .command-mode,:root[data-ui-theme=tactical] .command-start { min-height:90px; }
 .command-mode { padding:10px 12px; }
 .command-mode b { font-size:18px;margin-top:4px; }
 .command-mode em { font-size:10px; }
 .command-mode > span .icon { width:18px;height:18px; }
 .command-mode small { font-size:8px; }
 :root[data-ui-theme=tactical] .command-start { font-size:20px;gap:5px; }
 :root[data-ui-theme=tactical] .title-main { inset:55px 5vw 48px; }
 :root[data-ui-theme=tactical] .title-identity { top:12%;max-width:44%; }
 :root[data-ui-theme=tactical] .title-tag { font-size:12px; }
 :root[data-ui-theme=tactical] .title-cn { font-size:15px; }
 :root[data-ui-theme=tactical] .title-edition { font-size:42px; }
 :root[data-ui-theme=tactical] .title-entry { width:330px;bottom:0; }
 :root[data-ui-theme=tactical] .title-screen .title-login { padding:12px 16px;gap:10px; }
 :root[data-ui-theme=tactical] .title-login .field__box { height:40px; }
 :root[data-ui-theme=tactical] .title-login .btn--xl { min-height:40px;font-size:17px;padding:8px; }
 :root[data-ui-theme=tactical] .title-foot { bottom:5px;left:14px;right:14px;padding:6px 8px;flex-wrap:nowrap; }
 :root[data-ui-theme=tactical] .title-foot > span:not(.title-foot__meta) { display:none; }
 :root[data-ui-theme=tactical] .title-foot__meta { margin-left:auto; }
 :root[data-ui-theme=tactical] .title-assets__item > small { display:none; }
 :root[data-ui-theme=tactical] .room-screen .topbar { min-height:65px;height:65px;padding:8px 14px; }
 :root[data-ui-theme=tactical] .seats { padding:12px 18px;gap:10px; }
 :root[data-ui-theme=tactical] .room-bar { min-height:90px; }
 :root[data-ui-theme=tactical] .room-bar .btn--xl { min-height:40px;font-size:17px; }
 :root[data-ui-theme=tactical] .seat { padding:8px 10px; }
}
@media(max-width:680px) {
 .command-stage { grid-template-columns:130px minmax(0,1fr) 200px;gap:8px; }
 .command-account { display:none; }
 .command-topbar__left { width:100%; }
 .command-topbar__left > .command-separator { display:none; }
 .command-brand { display:none; }
 .command-recruit > header > span { font-size:13px; }
 .command-bottom { grid-template-columns:1fr 1fr .8fr 1.15fr; }
 .command-mode { padding:8px; }
 .command-mode b { font-size:16px; }
 .command-mode em { display:none; }
 :root[data-ui-theme=tactical] .command-start { font-size:18px;padding:10px; }
 :root[data-ui-theme=tactical] .title-identity { display:none; }
 :root[data-ui-theme=tactical] .title-entry { width:min(360px,86vw);right:0;bottom:10px; }
}
@media(prefers-reduced-motion:reduce) { .command-mode,.command-rail__item,.command-intel__action { transition:none; } }

/* Revised composition: a compact operations console leaves Ceobe's face and silhouette open. */
@media(min-width:901px) and (min-height:521px) {
 :root[data-ui-theme=tactical] .title-identity {top:7%;max-width:420px;}
 :root[data-ui-theme=tactical] .title-entry {left:0;right:auto;bottom:0;width:380px;}
 :root[data-ui-theme=tactical] .title-tag {max-width:29ch;}
 .command-stage {inset:114px 38px 215px;grid-template-columns:430px minmax(0,1fr) 310px;grid-template-rows:auto 1fr;gap:26px;}
 .command-brand {grid-column:1;grid-row:1;align-self:start;margin:10px 0 0;padding:14px 0 18px;border-top:2px solid #efb75e;}
 .command-brand h1 {font-size:52px;letter-spacing:.12em;margin:9px 0;}
 .command-brand small {font-size:11px;letter-spacing:.16em;}
 .command-brand > span {font-size:14px;}
 .command-rail {grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-self:start;}
 .command-stat {display:flex;min-height:64px;align-items:center;}
 .command-stat__art {border:0;background:none;padding:12px;}
 .command-stat__art .icon {width:24px;height:24px;color:#efc987;}
 .command-stat > b {font-size:16px;padding:10px 10px 10px 0;gap:10px;}
 .command-stat > b .icon {display:none;}
 .command-rail__item {min-height:64px;padding:10px;gap:9px;border-left-width:1px;}
 .command-rail__item b {font-size:16px;}
 .command-rail > .command-rail__item:nth-of-type(3) {display:none;}
 .command-rail > :last-child:not(.command-rail__item):not(.command-stat) {grid-column:1 / -1;}
 .command-intel {grid-column:3;grid-row:1 / 3;align-self:end;gap:10px;}
 .command-intel__action,:root[data-ui-theme=tactical] .command-intel__loadout .btn {min-height:52px;font-size:17px;padding:12px 16px;}
 .command-intel__action b {font-size:17px;}
 .command-recruit > header > span {font-size:17px;}
 .command-bottom {left:38px;right:auto;bottom:30px;width:min(650px,52vw);padding:16px;gap:10px;background:linear-gradient(130deg,#111f2bf5,#111c27f5);border:1px solid #62777d;border-top:2px solid #efb75e;grid-template-columns:1fr 1fr .85fr;}
 .command-bottom__label {display:flex;grid-column:1 / -1;flex-direction:row;align-items:center;align-self:start;gap:12px;padding:0 0 9px;border-bottom:1px solid #425663;}
 .command-bottom__label b {font-size:14px;}
 .command-bottom__label > span {font-size:10px;color:#efc987;}
 .command-bottom__label small {margin-left:auto;font-size:12px;}
 .command-mode {min-height:92px;padding:11px 12px;background:#182a36;}
 .command-mode b {font-size:21px;margin-top:6px;}
 .command-mode em {font-size:11px;}
 .command-mode--config b {font-size:18px;}
 :root[data-ui-theme=tactical] .command-start {grid-column:1 / -1;min-height:48px;font-size:21px;padding:10px;}
}
@media(min-width:901px) and (max-height:750px) and (min-height:521px) {
 .command-stage {inset:88px 26px 227px;grid-template-columns:360px minmax(0,1fr) 280px;gap:14px;}
 .command-brand {margin:0;padding:8px 0;}
 .command-brand h1 {font-size:40px;margin:6px 0;}
 .command-rail {gap:7px;}
 .command-stat,.command-rail__item {min-height:52px;}
 .command-bottom {left:26px;bottom:16px;width:570px;padding:12px;}
 .command-mode {min-height:70px;}
 .command-mode em {display:none;}
 .command-intel {align-self:start;}
 .command-recruit__list {max-height:180px;}
 :root[data-ui-theme=tactical] .title-edition {font-size:52px;}
 :root[data-ui-theme=tactical] .title-tag {display:none;}
 :root[data-ui-theme=tactical] .title-entry {width:350px;}
}

/* Warm metal controls echo Ceobe's firelight; cool ink remains the quiet supporting surface. */
.command-topbar {z-index:auto;}
:root[data-ui-theme=tactical] {--command-teal:#e6c38a;--command-line:#7e7567;}
:root[data-ui-theme=tactical] .btn {position:relative;transition:background .13s ease,border-color .13s ease,transform .08s ease;}
:root[data-ui-theme=tactical] .btn--primary {background:linear-gradient(125deg,#f1d69f 0%,#d9ac62 60%,#e9c586);border:1px solid #f4dba9;box-shadow:inset 0 1px #fff4d2,inset 0 -3px #a97632;color:#261b0d;}
:root[data-ui-theme=tactical] .btn--primary:hover:not(:disabled) {background:linear-gradient(125deg,#ffe5b4,#e6ba73);border-color:#ffe7b4;}
:root[data-ui-theme=tactical] .btn:active:not(:disabled),.command-mode:active {transform:translateY(1px);}
:root[data-ui-theme=tactical] .btn:focus-visible {outline:2px solid #f4d59b;outline-offset:3px;}
:root[data-ui-theme=tactical] .btn--primary:disabled {background:#30363c;color:#b8b9b5;border-color:#737974;box-shadow:none;}
:root[data-ui-theme=tactical] :is(.btn--secondary,.btn--ghost),.command-rail__item,.command-stat {background:linear-gradient(125deg,#212c37ef,#14202beb);border-color:#8e8779;box-shadow:inset 0 1px #c6bda81a;}
.command-mode {background:linear-gradient(135deg,#222e3a,#14212d);border-color:#8a8274;}
.command-mode.is-selected {border-color:#eccd94;background:linear-gradient(125deg,#4e402d,#292b29);box-shadow:inset 0 -3px #dbb779;}
.command-mode.is-selected::after {background:#e8c789;}
.command-intel__action,:root[data-ui-theme=tactical] .command-intel__loadout .btn {background:linear-gradient(120deg,#24303b,#17242e);border:1px solid #988b75;border-left:3px solid #d7b579;box-shadow:inset 0 1px #e8d4b324;color:#f0e9db;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%);}
.command-intel__action > .icon,:root[data-ui-theme=tactical] .command-intel__loadout .icon {color:#e8c78f;}
:root[data-ui-theme=tactical] .title-entry {isolation:auto;}
@media(max-width:900px),(max-height:520px) {
 .command-stat {display:flex;min-height:46px;align-items:center;}
 .command-stat__art {background:none;border:0;padding:8px;}
 .command-stat > b {padding:8px 8px 8px 0;font-size:14px;}
 .command-stat > b .icon {display:none;}
 .command-rail__item {min-height:46px;}
 .command-rail > .command-rail__item:nth-of-type(3) {display:none;}
 .command-brand {align-self:start;margin-top:122px;}
 .command-mode em {font-size:11px;}
 .command-mode small {font-size:10px;}
 .command-recruit article > div > span {display:block;font-size:11px;}
}

/* Keep footer actions in their own measured rows; never let the AI rule fall below the viewport. */
:root[data-ui-theme=tactical] .room-bar {height:auto;min-height:124px;padding:12px 28px;gap:16px;}
:root[data-ui-theme=tactical] .room-bar__left {gap:14px;}
:root[data-ui-theme=tactical] .room-bar__opts {display:grid;grid-template-columns:auto auto;align-items:center;gap:8px 10px;}
:root[data-ui-theme=tactical] .room-bar__opts > .dpick {grid-column:1 / -1;}
:root[data-ui-theme=tactical] .room-bar__opts > * {min-width:0;}
:root[data-ui-theme=tactical] .room-bar__opts .ailast__opt {height:32px;font-size:12px;white-space:nowrap;}
:root[data-ui-theme=tactical] .room-bar__opts .dpick__opt {height:36px;font-size:13px;padding:0 12px;}
:root[data-ui-theme=tactical] .room-bar .btn__label {white-space:nowrap;}
.command-recruit .btn__label {color:inherit;font-size:13px;white-space:nowrap;font-weight:750;}
.command-recruit .btn {min-width:58px;}
.command-rail__item > span {min-width:0;}
.command-rail__item b {white-space:nowrap;}
@media(max-width:900px),(max-height:520px) {
 .command-rail__item {gap:7px;}
 .command-rail__item > .icon:last-child {display:none;}
 :root[data-ui-theme=tactical] .room-bar {min-height:88px;padding:8px 12px;gap:10px;grid-template-columns:minmax(0,1fr) auto;}
 :root[data-ui-theme=tactical] .room-bar__center {display:none;}
 :root[data-ui-theme=tactical] .room-bar__label {display:none;}
 :root[data-ui-theme=tactical] .room-bar__opts {gap:5px 8px;}
 :root[data-ui-theme=tactical] .room-bar__opts .dpick__opt {height:28px;padding:0 8px;font-size:12px;}
 :root[data-ui-theme=tactical] .room-bar__opts .ailast__opt {height:28px;font-size:11px;}
 :root[data-ui-theme=tactical] .room-bar__right {gap:8px;}
 :root[data-ui-theme=tactical] .room-bar .btn--xl {min-height:44px;min-width:140px;font-size:18px;padding:8px 12px;}
}
@media(max-width:680px) {
 .command-rail__item small {display:none;}
 :root[data-ui-theme=tactical] .room-bar .room-loadout {min-width:36px;width:36px;padding:7px;}
 :root[data-ui-theme=tactical] .room-bar .room-loadout .btn__label {display:none;}
 :root[data-ui-theme=tactical] .room-bar__opts .dpick__opt {font-size:11px;padding:0 6px;letter-spacing:0;}
}

/* Short landscape menus reserve space for real actions; only recruitment content scrolls. */
@media(max-width:900px),(max-height:520px) {
 .command-intel {display:grid;grid-template-rows:36px 36px;align-content:end;height:100%;max-height:100%;min-height:0;gap:6px;}
 .command-intel.has-directory {grid-template-rows:minmax(0,1fr) 36px 36px;align-content:stretch;}
 .command-recruit {display:flex;flex-direction:column;min-height:0;overflow:hidden;}
 .command-recruit > header {flex:none;min-height:32px;padding:7px 9px;gap:4px;}
 .command-recruit > header > span {font-size:13px;white-space:nowrap;}
 .command-recruit__list {flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;}
 .command-recruit article {padding:7px;gap:5px;}
 .command-recruit strong {font-size:12px;}
 .command-recruit small {font-size:11px;}
 .command-recruit .btn {min-width:52px;padding:6px 9px;min-height:32px;}
 .command-intel__action,:root[data-ui-theme=tactical] .command-intel__loadout .btn {min-height:36px;height:36px;padding:6px 10px;font-size:14px;}
 .command-intel__action b {font-size:14px;}
 .command-intel__action > .icon {width:20px;height:20px;}
 .command-intel__loadout {min-height:0;}
 :root[data-ui-theme=tactical] .room-screen .topbar {grid-template-columns:auto minmax(0,1fr) auto;height:80px;min-height:80px;gap:9px;padding:8px 12px;}
 :root[data-ui-theme=tactical] .room-screen .topbar__left {gap:7px;}
 :root[data-ui-theme=tactical] .room-screen .topbar__left .btn {min-width:32px;min-height:32px;padding:6px;}
 :root[data-ui-theme=tactical] .room-screen .topbar__left .btn__label {display:none;}
 :root[data-ui-theme=tactical] .room-screen .topbar__left .btn__icon {margin:0;}
 :root[data-ui-theme=tactical] .room-screen .room-ping .micro {display:none;}
 :root[data-ui-theme=tactical] .room-screen .topbar__center {min-width:0;gap:4px;}
 :root[data-ui-theme=tactical] .room-screen .topbar__title {font-size:15px;letter-spacing:0;gap:6px;flex-wrap:wrap;justify-content:center;}
 :root[data-ui-theme=tactical] .room-screen .topbar__title .dtag {font-size:12px;}
 :root[data-ui-theme=tactical] .room-screen .topbar__center > .micro {display:none;}
 :root[data-ui-theme=tactical] .room-screen .invite {padding:5px 8px;column-gap:10px;row-gap:4px;}
 :root[data-ui-theme=tactical] .room-screen .invite__label {display:none;}
 :root[data-ui-theme=tactical] .room-screen .invite__code span {font-size:24px;}
 :root[data-ui-theme=tactical] .room-screen .invite .btn {min-height:26px;padding:4px 7px;font-size:10px;}
 :root[data-ui-theme=tactical] .room-capacity > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
@media(max-width:900px),(max-height:520px) {
 :root[data-ui-theme=tactical] .room-screen .topbar__left .room-settings .btn__label {display:inline-flex;font-size:0;align-items:center;justify-content:center;}
 :root[data-ui-theme=tactical] .room-screen .topbar__left .room-settings .btn__icon {width:17px;height:17px;font-size:17px;margin:0;}
}

/* A single metal shop rail; content and images keep separate clear zones inside its original footprint. */
:root[data-ui-theme=tactical] .shopbar__row {background:linear-gradient(140deg,#15232bed,#0b151ded);border:1px solid #7e7768;border-top:2px solid #d4b27a;box-shadow:0 -4px 18px #0005;}
:root[data-ui-theme=tactical] .shopbar__row::before {background:linear-gradient(90deg,#e3c693,transparent 35%,transparent 65%,#e3c693);}
:root[data-ui-theme=tactical] .shopbar__cards {align-items:stretch;}
:root[data-ui-theme=tactical] .scard {border-color:#5d7179;box-shadow:inset 0 1px #b8c6c319;}
:root[data-ui-theme=tactical] .scard__body {padding:.12rem .08rem .08rem;background:linear-gradient(180deg,transparent,#152833 .2rem,#152833);}
:root[data-ui-theme=tactical] .scard__skill {border-color:#b3a07d;background:#13212b;top:-.2rem;}
:root[data-ui-theme=tactical] .scard__name {text-shadow:0 1px 3px #0008;line-height:1.25;}
:root[data-ui-theme=tactical] .scard__idesc {color:#d1e0df;}
:root[data-ui-theme=tactical] .shopbar__item {border-left-color:#786b53;}
:root[data-ui-theme=tactical] .lvcard {background:linear-gradient(145deg,#e5c692,#b98b49);color:#281d0f;box-shadow:inset 0 1px #f9e3ba;gap:.12rem;}
:root[data-ui-theme=tactical] .lvcard__frame {border-color:#71532999;}
:root[data-ui-theme=tactical] .lvcard__frame::before,:root[data-ui-theme=tactical] .lvcard__frame::after {border-color:currentColor;}
:root[data-ui-theme=tactical] .lvcard.is-disabled {background:linear-gradient(145deg,#2e3c43,#202d35);color:#becac8;box-shadow:inset 0 1px #6d7a7d;}
:root[data-ui-theme=tactical] .lvcard.is-disabled .lvcard__frame {border-color:#839496;}
:root[data-ui-theme=tactical] .lvcard.is-armed {background:linear-gradient(145deg,#f5dba3,#c69344);color:#281d0f;}
:root[data-ui-theme=tactical] .funds {border-left-color:#786b53;background:linear-gradient(180deg,#23323a70,#10212c80);}
:root[data-ui-theme=tactical] .funds__hex {background:linear-gradient(145deg,#4a3b22,#242319);}
:root[data-ui-theme=tactical] .funds__label {font-size:max(10px,.14rem);color:#c9d8d9;letter-spacing:.05em;}
:root[data-ui-theme=tactical] .funds__collapse {min-height:.3rem;color:#e0e8e4;border-color:#75838a;background:#172833;}
:root[data-ui-theme=tactical] .funds__collapse:focus-visible {outline:2px solid #e9cb96;outline-offset:2px;}
:root[data-ui-theme=tactical] .shopbar.is-frozen .shopbar__row {border-color:#9fd4ff;}
:root[data-ui-theme=tactical] .shopbar.is-frozen .shopbar__row::before {background:linear-gradient(90deg,#b6e2ff,transparent 35%,transparent 65%,#b6e2ff);}

/* Ceobe shop frame: quiet brass, engraved double rails and weapon-cut corners. */
:root[data-ui-theme=tactical] {--shop-engraving:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2096%22%20fill%3D%22none%22%20stroke%3D%22%23bd9e69%22%20stroke-width%3D%221.15%22%3E%3Cpath%20d%3D%22M2%2010%2010%202H94V86L86%2094H2ZM5%2012%2012%205H91V84L84%2091H5%22%2F%3E%3Cpath%20d%3D%22M26%202h20M50%2094h20M2%2030v16M94%2050v16%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E");--shop-engraving-active:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2096%22%20fill%3D%22none%22%20stroke%3D%22%23f5d99b%22%20stroke-width%3D%221.15%22%3E%3Cpath%20d%3D%22M2%2010%2010%202H94V86L86%2094H2ZM5%2012%2012%205H91V84L84%2091H5%22%2F%3E%3Cpath%20d%3D%22M26%202h20M50%2094h20M2%2030v16M94%2050v16%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E");--shop-engraving-ice:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2096%22%20fill%3D%22none%22%20stroke%3D%22%23afdfff%22%20stroke-width%3D%221.15%22%3E%3Cpath%20d%3D%22M2%2010%2010%202H94V86L86%2094H2ZM5%2012%2012%205H91V84L84%2091H5%22%2F%3E%3Cpath%20d%3D%22M26%202h20M50%2094h20M2%2030v16M94%2050v16%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E");}
:root[data-ui-theme=tactical] :is(.shopbar__row,.scard,.lvcard,.funds,.shopbar__tools .toolbtn) {border:1px solid #9b855f;border-image-source:var(--shop-engraving);border-image-slice:18;border-image-width:9px;border-image-repeat:stretch;}
:root[data-ui-theme=tactical] .shopbar__row {border-image-width:11px;background:linear-gradient(140deg,#1d2930f2,#101a22f2);}
:root[data-ui-theme=tactical] .shopbar__row::before {left:18px;right:18px;top:0;}
:root[data-ui-theme=tactical] .scard {background:#101d26;}
:root[data-ui-theme=tactical] .lvcard {clip-path:none;}
:root[data-ui-theme=tactical] .lvcard.is-disabled {border-image-source:var(--shop-engraving);color:#c1cece;}
:root[data-ui-theme=tactical] .funds {background:linear-gradient(135deg,#3c332385,#14242de6);}
:root[data-ui-theme=tactical] .shopbar__tools .toolbtn {border-image-width:7px;}
:root[data-ui-theme=tactical] .scard:not(.scard--sold):hover,:root[data-ui-theme=tactical] .scard.is-armed,:root[data-ui-theme=tactical] .lvcard.is-armed {border-image-source:var(--shop-engraving-active);}
:root[data-ui-theme=tactical] .shopbar.is-frozen .shopbar__row,:root[data-ui-theme=tactical] .scard.is-frozen,:root[data-ui-theme=tactical] .toolbtn--ice.is-on {border-image-source:var(--shop-engraving-ice);}
:root[data-ui-theme=tactical] .scard.is-armed.is-disabled {border-image:none;}
/* Put fine card engraving above the full-bleed art, without intercepting taps. */
:root[data-ui-theme=tactical] .scard {border-image:none;border-color:#75674e;}
:root[data-ui-theme=tactical] .scard::before {content:'';position:absolute;inset:0;z-index:5;pointer-events:none;border:1px solid transparent;border-image-source:var(--shop-engraving);border-image-slice:18;border-image-width:7px;border-image-repeat:stretch;}
:root[data-ui-theme=tactical] .scard:hover::before,:root[data-ui-theme=tactical] .scard.is-armed::before,:root[data-ui-theme=tactical] .scard.is-merge::before {border-image-source:var(--shop-engraving-active);}
:root[data-ui-theme=tactical] .scard.is-frozen::before {border-image-source:var(--shop-engraving-ice);}
:root[data-ui-theme=tactical] .scard.is-armed.is-disabled {border-color:var(--red-premium);}
:root[data-ui-theme=tactical] .scard.is-armed.is-disabled::before {border-image:none;border-color:var(--red-premium);}
:root[data-ui-theme=tactical] .scard--sold::before {opacity:.6;}

/* Briefing badges: readable metal, subdued light, semantic inactive and banned states. */
:root[data-ui-theme=tactical] .brief-bonds {border-color:#6e6b5d;background:#14222c;padding:16px 18px;}
:root[data-ui-theme=tactical] .brief-bonds__row {display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:10px 8px;}
:root[data-ui-theme=tactical] .brief-bonds__row > .tt-anchor {display:flex;width:100%;justify-content:center;}
:root[data-ui-theme=tactical] .brief-bond {min-width:0;width:100%;padding:6px 2px;background:none;}
:root[data-ui-theme=tactical] .brief-bond .bond {--disc:clamp(38px,.66rem,54px);gap:8px;}
:root[data-ui-theme=tactical] .brief-bond .bond__core {background:linear-gradient(145deg,#3b4548,#192831);box-shadow:inset 0 0 0 1px #ba9d6a,inset 0 1px 3px #e9d5a936,0 2px 4px #0005;}
:root[data-ui-theme=tactical] .brief-bond .bond.is-active .bond__core {background:linear-gradient(145deg,#4b4d43,#22313a);box-shadow:inset 0 0 0 1px #d3b57c,inset 0 1px 4px #e9d5a92b,0 2px 4px #0005;}
:root[data-ui-theme=tactical] .brief-bond .bond__ring circle.on {stroke:#dbbb82;filter:none;}
:root[data-ui-theme=tactical] .brief-bond .bond__ring circle.off {stroke:#52616b;}
:root[data-ui-theme=tactical] .brief-bond .bond__icon {filter:brightness(0) invert(.88) sepia(.2) saturate(.8);}
:root[data-ui-theme=tactical] .brief-bond .bond.is-disabled .bond__core {background:#202d36;box-shadow:inset 0 0 0 1px #5c6d76;}
:root[data-ui-theme=tactical] .brief-bond .bond.is-disabled .bond__icon {filter:brightness(0) invert(.6);opacity:.85;}
:root[data-ui-theme=tactical] .brief-bond .bond__name {font-size:max(12px,calc(.15 * var(--t)));font-weight:650;line-height:1.35;color:#e5e7db;text-shadow:none;}
:root[data-ui-theme=tactical] .brief-bond.is-off .bond__name {color:#aebbc0;}
:root[data-ui-theme=tactical] .brief-bond.is-partial .bond__core {box-shadow:inset 0 0 0 1px #d3b57c,0 0 0 2px #be7663;}
:root[data-ui-theme=tactical] .brief-bond__ban {right:2px;top:0;min-width:19px;min-height:18px;justify-content:center;font-size:11px;background:#b84c43;box-shadow:none;border:1px solid #df8b77;}
:root[data-ui-theme=tactical] .brief-legend {font-size:max(11px,calc(.14 * var(--t)));line-height:1.7;color:#bdcdd0;}
:root[data-ui-theme=tactical] .brief-banned__grid .uthumb {--ut:max(.6rem,32px,calc(42px * var(--sp-ui, 1)));}
:root[data-ui-theme=tactical] .shopbar__tools {background:transparent;border:0;box-shadow:none;gap:.06rem .1rem;}
:root[data-ui-theme=tactical] .shopbar__tools .toolbtn {border-image:none;border:1px solid #a88f67;background:linear-gradient(145deg,#24313c,#13222b);color:#eee8db;border-radius:2px;box-shadow:inset 0 1px #dac8a222;}
:root[data-ui-theme=tactical] .shopbar__tools .toolbtn--ice {border-color:#8baeba;}
:root[data-ui-theme=tactical] .shopbar__tools .toolbtn--ice.is-on {background:#b8d8e3;color:#132630;border-color:#d8eff8;box-shadow:none;}
:root[data-ui-theme=tactical] .shopbar__tools .toolbtn--amber:disabled,:root[data-ui-theme=tactical] .shopbar__tools .toolbtn--ice:disabled {background:#253039;color:#a5b3b9;border-color:#63717a;box-shadow:none;}
:root[data-ui-theme=tactical] .shopbar__tools .toolbtn:focus-visible {outline:2px solid #efcf95;outline-offset:2px;}
:root[data-ui-theme=tactical] .stephead__right .speed-control {background:#162833;border:1px solid #756c57;padding:5px 7px;}
@media(max-width:900px),(max-height:520px) {
 :root[data-ui-theme=tactical] .brief-bonds {padding:10px;}
 :root[data-ui-theme=tactical] .brief-bonds__row {grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:8px 4px;}
 :root[data-ui-theme=tactical] .brief-bond .bond__name {font-size:11px;}
}
@media(max-width:900px),(max-height:520px) {
 :root[data-ui-theme=tactical] .draft-order > .brief-h {display:block;white-space:nowrap;font-size:16px;letter-spacing:.03em;}
 :root[data-ui-theme=tactical] .draft-order > .brief-h .micro {display:block;margin-top:5px;font-size:9px;letter-spacing:.03em;}
}

/* Personal settlement: framed report, full roster and compact factual progression. */
:root[data-ui-theme=tactical] .sself .settle__stage {inset:0;left:0;top:0;transform:none;width:100%;height:100%;display:grid;grid-template-columns:minmax(250px,.78fr) minmax(0,1.7fr);grid-template-rows:minmax(0,1fr) auto;gap:20px;padding:32px;}
:root[data-ui-theme=tactical] .sself :is(.srays,.starget,.slogo,.sself__fx,.settle__barbg) {display:none;}
:root[data-ui-theme=tactical] .sself__bg {opacity:.08;pointer-events:none;}
:root[data-ui-theme=tactical] .sself__overview {grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:18px;min-height:0;overflow:auto;padding:26px;border:1px solid #7b745f;border-top:3px solid #d8ba7e;background:linear-gradient(145deg,#23333bed,#12212bec);}
:root[data-ui-theme=tactical] .sself__caption {display:block;font-size:11px;color:#e0c58c;letter-spacing:.08em;}
:root[data-ui-theme=tactical] .sself :is(.sself__band,.sself__mode,.sself__title,.sself__rounds,.sself__medals,.splate) {position:relative;left:auto;top:auto;right:auto;bottom:auto;transform:none;animation:none;margin:0;}
:root[data-ui-theme=tactical] .sself__band {width:76px;height:76px;flex:none;order:1;}
:root[data-ui-theme=tactical] .sself__band :is(.bandicon,.pavatar) {width:76px;height:76px;--bi:76px;--pa:76px;}
:root[data-ui-theme=tactical] .sself__band > i {display:none;}
:root[data-ui-theme=tactical] .sself__mode {display:flex;flex-wrap:wrap;gap:8px;order:0;}
:root[data-ui-theme=tactical] .sself__mode .smode {font-size:13px;}
:root[data-ui-theme=tactical] .sself__mode .smode__name {font-size:14px;}
:root[data-ui-theme=tactical] .sself__title {font-family:var(--font-cjk);font-size:clamp(29px,3.2vw,46px);font-weight:800;line-height:1.2;letter-spacing:.05em;order:2;color:#e7e8dd;text-shadow:none;}
:root[data-ui-theme=tactical] .sself.is-lose .sself__title {color:#e9a38e;}
:root[data-ui-theme=tactical] .sself__rounds,:root[data-ui-theme=tactical] .sself.is-lose .sself__rounds {width:100%;height:auto;display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:18px;padding:14px 0;background:none;border-top:1px solid #68706c;border-bottom:1px solid #68706c;order:3;}
:root[data-ui-theme=tactical] .sself__rounds::before,:root[data-ui-theme=tactical] .sself__rounds::after {display:none;}
:root[data-ui-theme=tactical] .sself__rounds span {font-size:15px;color:#c9d8d8;}
:root[data-ui-theme=tactical] .sself__rounds b,:root[data-ui-theme=tactical] .sself.is-lose .sself__rounds b {font-family:var(--font-num);font-size:50px;line-height:1;color:#ecd19c;text-shadow:none;}
:root[data-ui-theme=tactical] .sself__medals {order:4;gap:12px;}
:root[data-ui-theme=tactical] .sself__medals::after {display:none;}
:root[data-ui-theme=tactical] .smedal {width:58px;height:58px;}
:root[data-ui-theme=tactical] .sself .splate {order:5;margin-top:auto;display:flex;align-items:center;gap:14px;width:100%;height:auto;min-height:82px;padding:12px 0;background:none;}
:root[data-ui-theme=tactical] .sself .splate__ava {position:relative;left:auto;top:auto;width:60px;height:60px;--pa:60px;flex:none;}
:root[data-ui-theme=tactical] .sself .splate__info {position:static;width:auto;flex:1;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:6px 12px;padding:0;}
:root[data-ui-theme=tactical] .sself .splate__name {grid-column:1 / -1;font-size:20px;background:none;padding:0;}
:root[data-ui-theme=tactical] .sself .splate__namebg {display:none;}
:root[data-ui-theme=tactical] .sself :is(.splate__rank,.splate__gain) {height:auto;padding:0;background:none;color:#dce7e4;}
:root[data-ui-theme=tactical] .sself .splate__rank b,:root[data-ui-theme=tactical] .sself .splate__gain b {font-size:23px;line-height:1;}
:root[data-ui-theme=tactical] .sself .splate__gain small {font-size:11px;}
:root[data-ui-theme=tactical] .sself__roster {grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:16px;min-width:0;min-height:0;overflow:auto;padding:16px;border:1px solid #5c727a;background:#14232de0;}
:root[data-ui-theme=tactical] .sself .sops {position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;flex:none;}
:root[data-ui-theme=tactical] .sself .sops__row {display:contents;}
:root[data-ui-theme=tactical] .sself .sop {width:100%;height:clamp(140px,22vh,210px);box-shadow:none;border:1px solid #7b8582;background:#1c303d;animation:none;}
:root[data-ui-theme=tactical] .sself .sop__art {height:calc(100% - 30px);background:#213744;}
:root[data-ui-theme=tactical] .sself .sop__art::after {content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#13232ee8);pointer-events:none;}
:root[data-ui-theme=tactical] .sself .sop__frame {display:none;}
:root[data-ui-theme=tactical] .sself .sop__tier {left:5px;top:5px;font-size:15px;min-width:26px;height:26px;padding:0 4px;border-width:1px;}
:root[data-ui-theme=tactical] .sself .sop__lv {left:5px;top:36px;bottom:auto;width:auto;min-width:28px;height:auto;padding:4px;background:#10212add;gap:3px;border:1px solid #6f7f84;}
:root[data-ui-theme=tactical] .sself .sop__lv b {font-size:12px;}
:root[data-ui-theme=tactical] .sself .sop__lvbg {display:none;}
:root[data-ui-theme=tactical] .sself .sop__name {display:block;position:absolute;left:7px;right:7px;bottom:35px;z-index:2;color:#f2f3e9;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px #000;}
:root[data-ui-theme=tactical] .sself .sop__slots {height:30px;padding:4px;background:#152731;gap:5px;}
:root[data-ui-theme=tactical] .sself .sop__slot {background:#293d48;box-shadow:inset 0 0 0 1px #65777d;}
:root[data-ui-theme=tactical] .sself .sop__empty {inset:0;left:0;top:0;width:100%;height:100%;opacity:.4;}
:root[data-ui-theme=tactical] .sself .sop.is-empty {border:1px dashed #5d727b;background:#142631;}
:root[data-ui-theme=tactical] .sself .sbonds {position:relative;left:auto;top:auto;width:100%;height:100px;min-height:100px;padding:10px 14px;background:#10212c;border:1px solid #6c756b;animation:none;margin-top:auto;}
:root[data-ui-theme=tactical] .sself .sbonds::before,:root[data-ui-theme=tactical] .sself .sbonds::after {display:none;}
:root[data-ui-theme=tactical] .sself .sbonds__mark {width:42px;}
:root[data-ui-theme=tactical] .sself .sbonds__mark .sprite {width:35px;height:auto;}
:root[data-ui-theme=tactical] .sself .sbonds__list {gap:24px;padding-left:6px;}
:root[data-ui-theme=tactical] .sself .sbond {animation:none;gap:5px;}
:root[data-ui-theme=tactical] .sself .sbond__disc {width:46px;height:46px;background:#304249;box-shadow:0 0 0 1px #bca373;}
:root[data-ui-theme=tactical] .sself .sbond:not(.is-on) .sbond__disc {background:#28343b;box-shadow:0 0 0 1px #62757d;}
:root[data-ui-theme=tactical] .sself .sbond__disc .bglyph {width:30px;height:30px;}
:root[data-ui-theme=tactical] .sself .sbond__disc .bglyph img {filter:brightness(0) invert(.87);}
:root[data-ui-theme=tactical] .sself .sbond b {font-size:18px;color:#ecdfc5;}
:root[data-ui-theme=tactical] .sself__footer {grid-column:1 / -1;grid-row:2;display:flex;gap:24px;align-items:center;justify-content:space-between;min-height:80px;padding:16px 22px;border:1px solid #6b746b;border-top:2px solid #c6aa73;background:#14232e;}
:root[data-ui-theme=tactical] .sself .slv {position:static;display:flex;align-items:center;gap:16px;height:auto;min-height:44px;width:auto;min-width:0;flex:1;padding:0;background:none;}
:root[data-ui-theme=tactical] .sself .slv__lv {position:static;display:flex;align-items:baseline;gap:6px;width:auto;}
:root[data-ui-theme=tactical] .sself .slv__lv b {font-size:28px;}
:root[data-ui-theme=tactical] .sself .slv__track {position:static;width:clamp(80px,18vw,260px);}
:root[data-ui-theme=tactical] .sself .slv__gains {position:static;}
:root[data-ui-theme=tactical] .sself .slv__gain {font-size:12px;}
:root[data-ui-theme=tactical] .sself .slv.is-uncounted :is(.slv__lv,.slv__track) {display:none;}
:root[data-ui-theme=tactical] .sself .settle__next {position:relative;inset:auto;width:240px;height:52px;min-height:52px;padding:10px 20px;display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(120deg,#ebd09a,#d0a15a);border:1px solid #f2dba8;color:#281c0c;font-size:22px;box-shadow:inset 0 -3px #a87939;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%);}
:root[data-ui-theme=tactical] .sself .settle__btnbg {display:none;}
:root[data-ui-theme=tactical] .sself .settle__nexticon {position:static;width:20px;height:20px;color:#281c0c;filter:none;}
@media(max-width:1000px),(max-height:600px) {
 :root[data-ui-theme=tactical] .sself .settle__stage {padding:16px;gap:12px;grid-template-columns:minmax(170px,.65fr) minmax(0,1.6fr);}
 :root[data-ui-theme=tactical] .sself__overview {padding:16px;gap:12px;}
 :root[data-ui-theme=tactical] .sself__band,:root[data-ui-theme=tactical] .sself__band :is(.bandicon,.pavatar) {width:52px;height:52px;--bi:52px;--pa:52px;}
 :root[data-ui-theme=tactical] .sself__title {font-size:28px;}
 :root[data-ui-theme=tactical] .sself__rounds,:root[data-ui-theme=tactical] .sself.is-lose .sself__rounds {padding:10px 0;gap:10px;}
 :root[data-ui-theme=tactical] .sself__rounds b,:root[data-ui-theme=tactical] .sself.is-lose .sself__rounds b {font-size:36px;}
 :root[data-ui-theme=tactical] .sself__roster {padding:10px;gap:10px;}
 :root[data-ui-theme=tactical] .sself .sops {gap:8px;}
 :root[data-ui-theme=tactical] .sself .sop {height:130px;}
 :root[data-ui-theme=tactical] .sself .sop__name {font-size:11px;}
 :root[data-ui-theme=tactical] .sself .splate__ava {display:none;}
 :root[data-ui-theme=tactical] .sself .splate__name {font-size:16px;}
 :root[data-ui-theme=tactical] .sself .splate__gain b,:root[data-ui-theme=tactical] .sself .splate__rank b {font-size:18px;}
 :root[data-ui-theme=tactical] .sself__footer {min-height:65px;padding:10px 14px;gap:12px;}
 :root[data-ui-theme=tactical] .sself .settle__next {width:180px;height:44px;min-height:44px;font-size:19px;}
 :root[data-ui-theme=tactical] .sself .slv__gain {font-size:11px;}
}
:root[data-ui-theme=tactical] .sself .splate__info {background:none;}
:root[data-ui-theme=tactical] .sself .splate__rank {border:0;align-items:flex-start;margin:0;}
@media(max-height:520px) {
 :root[data-ui-theme=tactical] .sself__overview {padding:12px;gap:10px;}
 :root[data-ui-theme=tactical] .sself__caption {font-size:9px;letter-spacing:0;white-space:nowrap;}
 :root[data-ui-theme=tactical] .sself__band {display:none;}
 :root[data-ui-theme=tactical] .sself .splate {min-height:46px;padding:4px 0;}
 :root[data-ui-theme=tactical] .sself__roster .sops {flex:1;min-height:0;overflow:auto;align-content:start;grid-auto-rows:128px;}
 :root[data-ui-theme=tactical] .sself .sop {height:128px;}
 :root[data-ui-theme=tactical] .sself .sbonds {height:74px;min-height:74px;flex:none;margin:0;}
 :root[data-ui-theme=tactical] .sself .sbond__disc {width:32px;height:32px;}
 :root[data-ui-theme=tactical] .sself .sbond__disc .bglyph {width:24px;height:24px;}
 :root[data-ui-theme=tactical] .sself .sbond b {font-size:14px;}
 :root[data-ui-theme=tactical] .sself .sbonds__list {gap:14px;}
}
