/* ==========================================================================================
   screens/loadout.css — 干员调配 (Operator loadout, DESIGN §16; js/screens/loadout.js): full-screen overlay with a
   filterable roster of the visible chess (left) and the selected chess's skills, 局内数值 and elite modules (right).
   Official preset sprites (ui/outer: operator_preset, image_skill_select_outline, skill_select_deco, icon_equip_non)
   are used when the local-client art is present; every piece has a CSS fallback.
   Sizes are design px ÷ 100 (theme.css root scale); text that must stay readable on phones uses max(.xxrem, N px).
   ========================================================================================== */

.lo {
  position: fixed; inset: 0; z-index: 55; /* above every screen (1) and the in-match banners (40), below the connection
                                             banner (60), modals / confirm dialogs (80), toasts and tooltips */
  display: flex; flex-direction: column;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) var(--sa-l, 0px);
  background: #050606; /* (fork) a step darker than the app's slate (the user's call of 2026-11-09: black was too dark) */
  color: var(--text-hi);
  animation: lo-in 200ms var(--ease-out) backwards;
  overscroll-behavior: contain;
  /* The list/detail geometry of this screen, shared with the 自选编队 picker's own body (screens/diy.js draws the same
     detail panel): the detail column and the panel's horizontal padding both change at 1100 px, and the two drifted
     apart while those numbers were written in both places (the picker kept a `1.2fr / 1fr` split and .3rem padding, so
     the same `.lo-dhead` — shared CSS, sized in rem against theme.css's fluid root — wrapped differently up there). */
  --lo-detail-w: 7rem;
  --lo-gap-x: .22rem;
  --lo-pad-x: .3rem;
}
@keyframes lo-in { from { opacity: 0; } }
.lo__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 18% 10%, rgba(78, 216, 175, .07), transparent 60%),
    radial-gradient(60% 70% at 100% 100%, rgba(52, 184, 216, .06), transparent 60%),
    linear-gradient(rgba(78, 216, 175, .035) 1px, transparent 1px) 0 0 / .6rem .6rem,
    linear-gradient(90deg, rgba(78, 216, 175, .035) 1px, transparent 1px) 0 0 / .6rem .6rem,
    linear-gradient(180deg, #0a0d0c, #050606);
}
/* every layer but the background stacks above it. :where() keeps this at the specificity of the old `.lo > *` (one
   class), so the rules after it still win where they did, and it never matches .lo__bg: as `.lo > *` (same specificity,
   later rule) it beat the layer's `position: absolute`, which left a 0-px tall flex item that never drew (PR #14). */
.lo > :where(:not(.lo__bg)) { position: relative; }

/* ---- top bar ---------------------------------------------------------------------------------------------------- */
/* The centre (the title, the note) stays centred while both sides fit in equal halves beside it; a wider side keeps its
   own width and shifts the centre instead (0.2.0: the co-op countdown ran the right column into the centre on phones
   and in English). */
.lo-top {
  flex: none; display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); align-items: center; gap: .2rem;
  height: max(1rem, 32px, calc(48px * var(--sp-ui, 1))); padding: 0 .36rem;
  background: linear-gradient(180deg, rgba(8, 10, 9, .95), rgba(10, 13, 12, .6));
  border-bottom: 1px solid var(--line);
}
.lo-top::after {
  content: ''; position: absolute; left: .36rem; right: .36rem; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--mint-700), transparent 26%, transparent 74%, var(--mint-700));
}
.lo-top__left { justify-self: start; display: flex; align-items: center; gap: .14rem; }
.lo-top__center { display: flex; flex-direction: column; align-items: center; gap: .02rem; min-width: 0; }
.lo-top__title { display: flex; align-items: center; gap: .12rem; margin: 0; font-size: max(.32rem, 16px); font-weight: 900; letter-spacing: .14em; line-height: 1.15; }

.lo-top__right { justify-self: end; display: flex; align-items: center; gap: .16rem; min-width: 0; }
.lo-count { font-size: max(.16rem, 11px); color: var(--text-lo); white-space: nowrap; }
.lo-count b { color: var(--mint-400); font-size: max(.22rem, 13px); margin: 0 .02rem 0 .06rem; }
/* co-op briefing: time left before the match locks the loadout (the overlay covers the briefing's own countdown) */
.lo-deadline { --cd-h: max(.44rem, 20px); flex: none; }
/* its caption breaks at its spaces (Loadout / Deadline) rather than widening the column; 调配截止 stays one line */
.lo-deadline .countdown__label { font-size: max(.11rem, 8px); width: min-content; word-break: keep-all; text-align: right; }
/* the save status (保存中… / 同步中… / 已同步 = saved on the server): quiet words, no box — loud only when it failed or
   is locked (the user's call of 2026-11-09) */
.lo-sync { font-size: max(.14rem, 10px); color: var(--text-lo); white-space: nowrap; letter-spacing: .04em; }
.lo-sync.is-ok { color: var(--text-lo); }
.lo-sync.is-busy { color: var(--text-md); }
.lo-sync.is-warn { color: var(--amber); }
.lo-sync.is-bad { color: var(--red-premium); }

.lo-note {
  flex: none; display: flex; align-items: center; gap: .08rem; margin: 0; padding: .07rem .36rem;
  font-size: max(.15rem, 10px); color: var(--text-lo);
  background: linear-gradient(90deg, rgba(78, 216, 175, .08), transparent 70%);
  border-bottom: 1px solid rgba(47, 58, 53, .6);
}
.lo-note .icon { width: max(.16rem, 11px); height: max(.16rem, 11px); color: var(--mint-500); flex: none; }
.lo-note.is-locked { color: var(--amber); background: linear-gradient(90deg, rgba(246, 163, 41, .12), transparent 70%); }
.lo-note.is-locked .icon { color: var(--amber); }

.lo-loading { flex: 1; display: flex; align-items: center; justify-content: center; gap: .14rem; color: var(--text-lo); font-size: max(.18rem, 12px); }
/* the tab's game data did not load (GitHub #173): said in place of the roster */
.lo-missing { flex-direction: column; gap: .1rem; padding: .3rem; text-align: center; color: var(--amber); }
.lo-missing .icon { width: max(.32rem, 22px); height: max(.32rem, 22px); }
.lo-missing p { margin: 0; max-width: 9rem; color: var(--text-lo); font-size: max(.16rem, 11px); line-height: 1.6; text-wrap: balance; }

/* ---- filters ----------------------------------------------------------------------------------------------------------- */
.lo-filters { flex: none; display: flex; flex-direction: column; gap: .08rem; }
.lo-frow { display: flex; align-items: center; gap: .12rem; flex-wrap: wrap; min-width: 0; }
.lo-chips { display: flex; align-items: center; gap: .05rem; flex-wrap: wrap; }
.lo-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: .05rem;
  min-width: max(.46rem, 26px); height: max(.4rem, 24px); padding: 0 .12rem;
  font: inherit; font-size: max(.15rem, 11px); font-weight: 700; color: var(--text-lo);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer;
  clip-path: polygon(.07rem 0, 100% 0, calc(100% - .07rem) 100%, 0 100%);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
.lo-chip:hover { color: var(--text-hi); border-color: var(--line-3); }
.lo-chip.is-on { color: var(--text-on-mint); background: var(--mint-500); border-color: var(--mint-400); }
.lo-chip--tier .num { font-family: var(--font-num); font-size: max(.17rem, 12px); letter-spacing: .04em; }
.lo-chip--t1 { --tc: var(--tier-1); } .lo-chip--t2 { --tc: var(--tier-2); } .lo-chip--t3 { --tc: var(--tier-3); }
.lo-chip--t4 { --tc: var(--tier-4); } .lo-chip--t5 { --tc: var(--tier-5); } .lo-chip--t6 { --tc: var(--tier-6); }
.lo-chip--tier { color: var(--tc); box-shadow: inset 0 -2px 0 var(--tc); }
.lo-chip--tier.is-on { color: #0b0d0c; background: var(--tc); border-color: var(--tc); }
.lo-chip__icon { width: max(.22rem, 14px); height: max(.22rem, 14px); object-fit: contain; }
/* prof.large art is a black glyph on a white square: inverted + screen-blended it becomes a white glyph on any dark
   surface; on the mint "on" chip it is multiplied instead (dark glyph, the square takes the chip colour) */
.lo-profglyph { filter: invert(1); mix-blend-mode: screen; opacity: .85; }
.lo-chip:hover .lo-profglyph { opacity: 1; }
.lo-chip.is-on .lo-profglyph { filter: none; mix-blend-mode: multiply; opacity: 1; }
.lo-chip__lbl { font-size: max(.14rem, 10px); }
.lo-search { flex: 1 1 2.6rem; min-width: 2rem; max-width: 4.2rem; margin-left: auto; }

.lo-select { display: inline-flex; align-items: center; gap: .06rem; height: max(.4rem, 24px); padding-left: .1rem; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
.lo-select__k { font-size: max(.13rem, 10px); color: var(--text-dim); letter-spacing: .06em; }
.lo-select select {
  height: 100%; min-width: 1.6rem; padding: 0 .26rem 0 .06rem; border: 0; outline: none; cursor: pointer;
  font: inherit; font-size: max(.15rem, 11px); color: var(--text-hi);
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%234ed8af' d='M7 9l5 6 5-6z'/></svg>") no-repeat right .04rem center / .2rem .2rem;
  -webkit-appearance: none; appearance: none;
}
.lo-select select option { background: var(--bg-2); color: var(--text-hi); }
.lo-select:focus-within { border-color: var(--mint-700); }

.lo-toggle {
  display: inline-flex; align-items: center; gap: .07rem; height: max(.4rem, 24px); padding: 0 .12rem;
  font: inherit; font-size: max(.15rem, 11px); color: var(--text-lo); background: transparent; border: 1px solid transparent; cursor: pointer;
  touch-action: manipulation;
}
.lo-toggle__box { display: grid; place-items: center; width: max(.2rem, 14px); height: max(.2rem, 14px); border: 1px solid var(--line-3); }
.lo-toggle__box .icon { width: 86%; height: 86%; opacity: 0; color: var(--text-on-mint); }
.lo-toggle.is-on { color: var(--mint-400); }
.lo-toggle.is-on .lo-toggle__box { background: var(--mint-500); border-color: var(--mint-400); }
.lo-toggle.is-on .lo-toggle__box .icon { opacity: 1; }

.lo-empty { padding: .4rem; text-align: center; font-size: max(.16rem, 11px); }

.lo-locknote--standin { color: var(--ice); }

/* a quick choice (PR #301's, by @farridge): a skill / module button of a card's column (screens/loadoutDeck.js QuickSkill /
   QuickModule); the column (.lo-op__side .lo-q) sizes and dims it */
.lo-q {
  position: relative; flex: none; display: grid; place-items: center; padding: 0;
  font: inherit; color: var(--text-lo); background: none; border: 0; cursor: pointer; touch-action: manipulation;
}

.lo-q__type { position: absolute; left: 0; bottom: 0; padding: 0 2px; font-size: max(.11rem, 8px); line-height: 1.3; color: var(--text-hi); background: rgba(0, 0, 0, .7); pointer-events: none; }
.lo-q--mod.is-on .lo-mglyph { border-color: var(--gold-2); box-shadow: 0 0 .08rem rgba(255, 198, 0, .35); }

/* the detail's 潜能 / 练度 section */
.lo-sec--cult { padding: .08rem .1rem .1rem; margin-bottom: .14rem; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-left: 3px solid var(--mint-500); }
.lo-sec--cult .lo-sec__head .lo-badge { margin-left: auto; }
/* (fork) one label column for both rows, as wide as the longer label: English 「Development」 overran a fixed one into
   its buttons; the rows are subgrids of the section, the head and the notes span it */
.lo-sec.lo-sec--cult { display: grid; grid-template-columns: minmax(max(.5rem, 30px), max-content) minmax(0, 1fr); gap: .08rem; }
.lo-sec--cult > * { grid-column: 1 / -1; }
.lo-cult__row { display: grid; grid-template-columns: subgrid; align-items: center; }
/* a short screen's narrow drawer: each label above its buttons, which keep the full width */
@media (max-height: 560px) { .lo-sec.lo-sec--cult { grid-template-columns: minmax(0, 1fr); } .lo-cult__row { grid-template-columns: minmax(0, 1fr); row-gap: .04rem; } }
.lo-cult__k { font-size: max(.13rem, 10px); color: var(--text-dim); letter-spacing: .08em; }
.lo .lo-cult__row .lo-seg { margin-left: 0; flex-wrap: wrap; justify-self: start; }
.lo-seg--pot button { min-width: max(.36rem, 26px); font-family: var(--font-num); }
.lo-seg--tier button { padding: 0 .1rem; }
.lo-cult__eff { margin: .02rem 0 0; font-size: max(.14rem, 10px); line-height: 1.5; color: var(--text-md); }
.lo-cult__eff b { color: var(--mint-400); margin-right: .04rem; }
.lo-cult__note { margin: 0; font-size: max(.12rem, 9px); line-height: 1.5; color: var(--text-dim); }
.lo-sec--cult.is-moot .lo-cult__row, .lo-sec--cult.is-moot .lo-cult__eff { opacity: .55; }
.lo-sec--cult.is-moot .lo-cult__note { color: var(--ice); }

/* ---- skill icon / module glyph ---------------------------------------------------------------------------------------------- */
.lo-sicon { position: relative; flex: none; display: inline-grid; place-items: center; width: .72rem; height: .72rem; background: #151a18; border: 1px solid var(--line-2); }
.lo-sicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lo-sicon--xs { width: max(.2rem, 13px); height: max(.2rem, 13px); border: 0; background: transparent; }
.lo-sicon--xs .lo-sicon__glyph { display: none; }
.lo-sicon--md { width: max(.72rem, 32px, calc(38px * var(--sp-ui, 1))); height: max(.72rem, 32px, calc(38px * var(--sp-ui, 1))); }
.lo-sicon--q { width: 86%; height: 86%; }
.lo-sicon__glyph { font-family: var(--font-num); font-size: max(.2rem, 12px); font-weight: 700; color: var(--text-lo); letter-spacing: .04em; }
.lo-sicon.is-on { border-color: #1ea0ff; }
/* the selected skill's frame (a 30 × 30 sprite, a 3 px ring to its edges) drawn .05rem outside the icon on every side, square:
   theme.css `img { max-width: 100% }` clamped its width to the icon's while its height grew by .1rem, and `.lo-sicon img`
   (more specific) made it `cover` — a tall, left-shifted frame with clipped side lines (GitHub #398, PR #399) */
.lo-sicon .lo-sicon__outline { position: absolute; inset: -.05rem; width: calc(100% + .1rem) !important; height: calc(100% + .1rem) !important; max-width: none; object-fit: fill; pointer-events: none; }
.lo-sicon__ring { position: absolute; inset: -.05rem; border: 2px solid #1ea0ff; pointer-events: none; }

.lo-mglyph { position: relative; flex: none; display: inline-grid; place-items: center; width: max(.56rem, 30px); height: max(.56rem, 30px);
  background: linear-gradient(180deg, #2a322f, #151a18); border: 1px solid var(--line-3); }
.lo-mglyph img { width: 78%; height: 78%; object-fit: contain; }
.lo-mglyph__t { font-family: var(--font-num); font-size: max(.26rem, 15px); font-weight: 700; color: var(--gold-2); line-height: 1; }
.lo-mglyph--none { background: #121615; border-style: dashed; }
.lo-mglyph--q { width: 86%; height: 86%; }
.lo-mglyph__slash { position: absolute; inset: 22%; border-radius: 50%; border: 2px solid var(--text-dim); }
.lo-mglyph__slash::after { content: ''; position: absolute; left: 50%; top: -10%; bottom: -10%; width: 2px; background: var(--text-dim); transform: translateX(-50%) rotate(45deg); }

/* ---- detail panel -------------------------------------------------------------------------------------------------------- */
.lo-detail {
  --bk-c: var(--mint-500);
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(24, 30, 28, .97), rgba(10, 13, 12, .98));
  border: 1px solid var(--line-2); box-shadow: 0 .14rem .4rem rgba(0, 0, 0, .45);
}
.lo-detail--empty { align-items: center; justify-content: center; font-size: max(.16rem, 11px); }
.lo-dhead { position: relative; flex: none; display: grid; grid-template-columns: max(1.3rem, 32px, calc(60px * var(--sp-ui, 1))) minmax(0, 1fr); gap: .16rem; padding: .16rem .18rem .14rem; border-bottom: 1px solid var(--line); }
.lo-dhead__art { position: relative; overflow: hidden; aspect-ratio: 1 / 1.25; background: #1b201e; border: 1px solid var(--line-2); box-shadow: inset 0 -3px 0 var(--tc, var(--tier-1)); }
.lo-dhead__art--t1 { --tc: var(--tier-1); } .lo-dhead__art--t2 { --tc: var(--tier-2); } .lo-dhead__art--t3 { --tc: var(--tier-3); }
.lo-dhead__art--t4 { --tc: var(--tier-4); } .lo-dhead__art--t5 { --tc: var(--tier-5); } .lo-dhead__art--t6 { --tc: var(--tier-6); }
.lo-dhead__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.lo-dhead__art .uthumb { width: 100%; height: 100%; }
.lo-dhead__info { min-width: 0; display: flex; flex-direction: column; gap: .04rem; }
.lo-dhead__chips { display: flex; align-items: center; gap: .08rem; }
.lo-dhead__name { margin: .02rem 0 0; font-size: max(.34rem, 17px); font-weight: 900; letter-spacing: .06em; line-height: 1.1; }
.lo-dhead__en { font-family: var(--font-display); font-size: max(.13rem, 9px); letter-spacing: .14em; color: var(--text-dim); text-transform: uppercase; }
.lo-dhead__class { display: flex; align-items: center; gap: .05rem; font-size: max(.15rem, 10px); color: var(--text-md); }
.lo-dhead__prof { width: max(.2rem, 13px); height: max(.2rem, 13px); object-fit: contain; }
.lo-sep { width: 1px; height: .16rem; background: var(--line-3); margin: 0 .04rem; }
.lo-dhead__bonds { display: flex; flex-wrap: wrap; gap: .05rem; margin-top: .02rem; }
.lo-bond { display: inline-flex; align-items: center; gap: .04rem; padding: .01rem .08rem .01rem .04rem; font-size: max(.13rem, 9px); color: var(--text-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.lo-bond__icon { width: max(.18rem, 12px); height: max(.18rem, 12px); object-fit: contain; }
.lo-bond__dot { width: .1rem; height: .1rem; border-radius: 50%; background: var(--mint-700); }
.lo-dhead__reset { position: absolute; right: .12rem; top: .12rem; }
/* 语音语言 squares (ui/voiceLang.js): the detail header's last row, right under the 恢复默认 side; the 自选 picker's who row */
.vl-pick { display: flex; flex-wrap: wrap; gap: max(.04rem, calc(3px * var(--sp-ui, 1))); }
.vl-pick__sq { display: grid; place-items: center; min-width: max(.34rem, 24px); height: max(.34rem, 24px); padding: 0 .04rem; background: #0a0d0c;
  border: 1px solid var(--line-2); color: var(--text-lo); font-family: var(--font-num); font-size: max(.12rem, 9px); font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.vl-pick__sq:hover { color: var(--text-md); border-color: var(--line-3); }
.vl-pick__sq:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 1px; }
.vl-pick__sq--native { border-style: dashed; }
.vl-pick__sq.is-on { background: var(--mint-500); border-color: var(--mint-500); color: var(--text-on-mint); }
/* (fork) a saved pick this server has no files for: shown, crossed out, not clickable */
.vl-pick__sq--missing { cursor: default; opacity: .55; text-decoration: line-through; }
.vl-pick__sq--missing:hover { color: var(--text-lo); border-color: var(--line-2); }
/* (fork) the 自选 overview's slot rows: smaller squares under the class line */
.vl-pick--compact .vl-pick__sq { min-width: max(.28rem, 22px); height: max(.28rem, 22px); }

.lo-dhead__voice { align-self: flex-end; margin-top: .04rem; }

.sp-coarse .vl-pick__sq { min-width: 30px; height: 30px; }

.lo-detail__body { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: .12rem .18rem .2rem; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.lo-garrisons { margin-bottom: .18rem; }
.lo-garrisons .dgarrison__k { font-size: max(.14rem, 11px); }
.lo-garrisons .dgarrison__type { font-size: max(.12rem, 10px); }
.lo-garrisons .dgarrison__icon { width: max(.18rem, 14px); height: max(.18rem, 14px); }
.lo-garrisons .dgarrison__text { font-size: max(.15rem, 11px); }
.lo-sec { display: flex; flex-direction: column; gap: .08rem; }
.lo-sec + .lo-sec { margin-top: .18rem; }
.lo-sec__head { display: flex; align-items: center; gap: .12rem; min-height: max(.36rem, 22px); }
.lo-sec__head h3 { display: flex; align-items: baseline; gap: .08rem; margin: 0; font-size: max(.2rem, 13px); font-weight: 900; letter-spacing: .1em; }
.lo-sec__head h3::before { content: ''; align-self: center; width: .05rem; height: .2rem; background: var(--mint-500); }
.lo-sec__note { margin-left: auto; font-size: max(.13rem, 9px); color: var(--text-dim); }
.lo-sec__note b { color: var(--text-md); }

.lo-seg { margin-left: auto; display: inline-flex; border: 1px solid var(--line-2); }
.lo-seg button {
  height: max(.32rem, 22px); padding: 0 .12rem; font: inherit; font-size: max(.13rem, 10px); color: var(--text-lo);
  background: transparent; border: 0; cursor: pointer; touch-action: manipulation;
}
.lo-seg button + button { border-left: 1px solid var(--line-2); }
.lo-seg button.is-on { color: var(--text-on-mint); background: var(--mint-500); }
.lo-seg button:disabled { opacity: .4; cursor: default; }

/* skills */
.lo-skills { display: flex; flex-direction: column; gap: .07rem; }
.lo-skill {
  position: relative; display: flex; align-items: flex-start; gap: .14rem; width: 100%; padding: .1rem .12rem .1rem .16rem;
  font: inherit; color: var(--text-md); text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
.lo-skill:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .04); }
.lo-skill.is-on { color: var(--text-hi); background: linear-gradient(90deg, rgba(30, 160, 255, .13), rgba(30, 160, 255, .02) 70%); border-color: rgba(30, 160, 255, .55); }
.lo-skill__deco { position: absolute; left: -1px; top: 50%; transform: translate(-40%, -50%); width: .14rem; height: .17rem; }
.lo-skill__deco img, .lo-skill__deco i { display: block; width: 100%; height: 100%; }
.lo-skill__deco i { background: #1ea0ff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.lo-skill__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
/* (fork) the slot, the name and its badge stay on one line: a long name wraps within itself (the user's call of 2026-11-08) */
.lo-skill__head { display: flex; align-items: center; gap: .08rem; }
.lo-skill__head > .lo-skill__slot, .lo-skill__head > .lo-badge { flex: none; }
.lo-skill__slot { font-family: var(--font-num); font-size: max(.13rem, 9px); font-weight: 700; color: var(--text-dim); padding: 0 .05rem; border: 1px solid var(--line-2); letter-spacing: .06em; }
.lo-skill.is-on .lo-skill__slot { color: #7cc8ff; border-color: rgba(30, 160, 255, .55); }
.lo-skill__name { min-width: 0; font-size: max(.19rem, 12px); font-weight: 700; color: var(--text-hi); overflow-wrap: break-word; }
.lo-skill__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .06rem; }
.lo-skill__desc { display: block; font-size: max(.15rem, 10px); line-height: 1.55; color: var(--text-md); }
.lo-sp { padding: .01rem .07rem; font-size: max(.12rem, 9px); font-weight: 700; color: #0b0d0c; background: #9bd26b; }
.lo-sp--atk { background: #ff9a3c; }
.lo-sp--def { background: #f5c542; }
.lo-sp--passive { background: #9aa4a0; }
.lo-tag { font-size: max(.13rem, 9px); color: var(--text-lo); }
.lo-tag b { color: var(--text-hi); font-family: var(--font-num); margin-left: .02rem; }

.lo-badge { display: inline-flex; align-items: center; gap: .03rem; padding: .01rem .07rem; font-size: max(.12rem, 9px); font-weight: 700; line-height: 1.4; letter-spacing: .04em; white-space: nowrap; }
.lo-badge .icon { width: .13rem; height: .13rem; }
.lo-badge--def { color: var(--gold-2); border: 1px solid rgba(242, 189, 62, .55); }
.lo-badge--on { color: #0b1a26; background: #1ea0ff; }
.lo-badge--changed { color: var(--text-on-mint); background: var(--mint-500); }
.lo-badge--plain { color: var(--text-dim); border: 1px solid var(--line-2); }

/* modules */
.lo-mods { display: flex; flex-wrap: wrap; gap: .08rem; }
.lo-mod {
  position: relative; flex: 1 1 1.9rem; min-width: 1.7rem; max-width: 3.2rem; display: flex; align-items: center; gap: .1rem; padding: .08rem .12rem .08rem .08rem;
  font: inherit; color: var(--text-md); text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast); touch-action: manipulation;
}
.lo-mod:hover { border-color: var(--line-3); }
.lo-mod.is-on { color: var(--text-hi); background: linear-gradient(90deg, rgba(242, 189, 62, .14), rgba(242, 189, 62, .02) 75%); border-color: rgba(242, 189, 62, .7); }
.lo-mod.is-on .lo-mglyph { border-color: var(--gold-2); box-shadow: 0 0 .1rem rgba(255, 198, 0, .35); }
.lo-mod__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .01rem; }
/* (fork) 默认: a small tag on the icon's top edge, so the name has the tile's whole width (the user's call of 2026-11-09:
   beside the name it squeezed "The Decrescendo" into a letter-wrapped column) */
.lo-mod__icon { position: relative; flex: none; display: flex; }
/* a card's 「展开」 panel: 默认 beside the type (RIT-X), small, the name its own line below */
.lo-mod__head { display: flex; align-items: center; gap: .08rem; }
.lo-mod__head > .lo-badge { flex: none; font-size: max(.1rem, 8px); line-height: 1.3; }
.lo-mod__def { position: absolute; left: 50%; top: 0; z-index: 1; transform: translate(-50%, -55%); padding: 0 .04rem;
  font-size: max(.09rem, 8px); line-height: 1.3; letter-spacing: .02em; background: #1a1f1d; }
.lo-mod__type { font-family: var(--font-num); font-size: max(.12rem, 9px); letter-spacing: .1em; color: var(--text-dim); }
/* (fork) a long module name wraps as a skill's does, never cut with "…" (the user's call of 2026-11-08) */
.lo-mod__name { min-width: 0; font-size: max(.16rem, 11px); font-weight: 700; overflow-wrap: break-word; text-wrap: pretty; }

.lo-minfo { margin-top: .04rem; padding: .1rem .12rem; display: flex; flex-direction: column; gap: .07rem; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-left: 3px solid var(--gold-2); }
.lo-minfo--none { border-left-color: var(--line-3); }
.lo-minfo__lead { margin: 0; font-size: max(.15rem, 10px); color: var(--text-lo); }
.lo-minfo__title { display: flex; align-items: center; gap: .08rem; font-size: max(.17rem, 11px); }
.lo-minfo__type { font-family: var(--font-num); font-size: max(.13rem, 9px); color: var(--gold-2); letter-spacing: .1em; }
.lo-minfo__icon { flex: none; width: max(.26rem, 16px); height: max(.26rem, 16px); object-fit: contain; }
.lo-minfo__row { display: grid; grid-template-columns: max(.5rem, 28px) minmax(0, 1fr); gap: .08rem; align-items: baseline; }
.lo-minfo__k { font-size: max(.13rem, 9px); color: var(--text-dim); letter-spacing: .08em; }
.lo-minfo__v { font-size: max(.15rem, 10px); line-height: 1.55; color: var(--text-md); }
.lo-minfo__tname { color: var(--text-hi); margin-right: .06rem; }
.lo-attrs { display: flex; flex-wrap: wrap; gap: .06rem; }
.lo-attr { display: inline-flex; align-items: baseline; gap: .04rem; padding: .01rem .08rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: max(.13rem, 9px); color: var(--text-lo); }
.lo-attr b { font-family: var(--font-num); font-size: max(.15rem, 10px); }
.lo-attr.is-up b { color: var(--mint-400); }
.lo-attr.is-down b { color: var(--red-premium); }

/* 局内数值 (the chosen variant's stats, 攻击范围, 特性 and 天赋 — GitHub issue #64): the detail card's own block
   (ui/detailPanel.js chessStatsBlock: .dstats / .dstat / .drange / .rgrid / .rgrid-all from game-panels.css, drawn there in
   board-sized units) at this screen's reading sizes — a px floor on every text size (1 rem is 40 px on phones), the range box
   dropping under the numbers when the column is too narrow for both */
.lo-sec--stats .dstats-wrap { flex-wrap: wrap; gap: .1rem; }
.lo-sec--stats .dstats-wrap > .dstats { flex: 1 1 max(3.2rem, 32px, calc(190px * var(--sp-ui, 1))); }
.lo-sec--stats .dstat { padding: .05rem .08rem; }
.lo-sec--stats .dstat__k { font-size: max(.13rem, 9px); }
.lo-sec--stats .dstat__v { font-size: max(.2rem, 12px); }
.lo-sec--stats .drange { min-width: max(1.1rem, 32px, calc(56px * var(--sp-ui, 1))); }
.lo-sec--stats .rgrid { --rg: max(.14rem, 7px); } /* (a grid wider than the box keeps its inline, shrunk --rg) */
.lo-sec--stats .rgrid-all { font-size: max(.16rem, 11px); }
.lo-minfo--kit { margin-top: 0; border-left-color: var(--mint-500); }
.lo-stats__cap { margin: 0; font-size: max(.13rem, 9px); line-height: 1.5; color: var(--text-dim); }
.lo-locknote { display: flex; align-items: center; gap: .06rem; margin: .16rem 0 0; font-size: max(.14rem, 10px); color: var(--amber); }
.lo-locknote .icon { width: .16rem; height: .16rem; }

/* ---- 干员持有 (screens/ownership.js): the NORMAL chess by tier, each operator → its stand-in, a 持有 switch -------------- */
.own { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .12rem; padding: .16rem .3rem .2rem; }
.own__bar { flex: none; display: flex; align-items: center; gap: .2rem; }
.own__lead { flex: 1; margin: 0; font-size: max(.15rem, 10px); line-height: 1.5; color: var(--text-md); }
.own__lead b { color: var(--ice); font-weight: 700; }
.own__list { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .18rem; padding: 0 .06rem .2rem 0;
  scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.own-tier__head { display: flex; align-items: center; gap: .08rem; margin: 0 0 .08rem; font-size: max(.17rem, 12px); font-weight: 700; color: var(--text-md); letter-spacing: .06em; }
.own-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(4.4rem, 32px, calc(270px * var(--sp-ui, 1))), 1fr)); gap: .08rem; }
.own-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: .08rem; min-width: 0;
  padding: .07rem .1rem .07rem .07rem; font: inherit; color: var(--text-hi); text-align: left; cursor: pointer; touch-action: manipulation;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-left: 3px solid var(--tc, var(--line-3));
  transition: background var(--t-fast), border-color var(--t-fast);
}
.own-card--t1 { --tc: var(--tier-1); } .own-card--t2 { --tc: var(--tier-2); } .own-card--t3 { --tc: var(--tier-3); }
.own-card--t4 { --tc: var(--tier-4); } .own-card--t5 { --tc: var(--tier-5); } .own-card--t6 { --tc: var(--tier-6); }
.own-card:hover { background: rgba(255, 255, 255, .06); border-color: var(--line-3); }
.own-card__op, .own-card__sub { display: flex; align-items: center; gap: .07rem; min-width: 0; }
.own-card__ava { flex: none; display: grid; place-items: center; width: max(.46rem, 28px); height: max(.46rem, 28px); overflow: hidden; background: #0a0d0c; border: 1px solid var(--line-2); }
.own-card__ava img { width: 100%; height: 100%; object-fit: cover; }
.own-card__ava b { font-size: max(.18rem, 12px); color: var(--text-lo); }
.own-card__txt { display: flex; flex-direction: column; min-width: 0; }
.own-card__name { font-size: max(.16rem, 11px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.own-card__txt small { font-size: max(.12rem, 9px); color: var(--text-lo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.own-card__arrow .icon { width: max(.18rem, 12px); height: max(.18rem, 12px); color: var(--text-dim); }
.own-card__sub { opacity: .55; }
.own-card__state { display: inline-flex; flex-direction: column; align-items: center; gap: .03rem; min-width: max(.5rem, 30px); font-size: max(.12rem, 9px); font-weight: 700; color: var(--mint-400); white-space: nowrap; }
.own-switch { position: relative; display: inline-block; width: max(.36rem, 24px); height: max(.2rem, 13px); border-radius: 1em; background: var(--mint-700); }
.own-switch > i { position: absolute; top: 2px; right: 2px; width: calc(max(.2rem, 13px) - 4px); height: calc(max(.2rem, 13px) - 4px); border-radius: 50%; background: #fff; transition: right var(--t-fast), left var(--t-fast); }
/* 未持有: the operator greys out, the stand-in (who is deployed) lights up */
.own-card.is-off { background: rgba(159, 212, 255, .07); border-color: rgba(159, 212, 255, .35); }
.own-card.is-off .own-card__op { opacity: .5; filter: grayscale(.8); }
.own-card.is-off .own-card__sub { opacity: 1; }
.own-card.is-off .own-card__sub .own-card__ava { border-color: var(--ice); }
.own-card.is-off .own-card__state { color: var(--ice); }
.own-card.is-off .own-switch { background: var(--bg-4); }
.own-card.is-off .own-switch > i { right: auto; left: 2px; background: var(--ice); }
@media (max-width: 760px) {
  .own { padding: .1rem .16rem .16rem; }
  .own__lead { display: none; }
}

.diy-tag { display: inline-flex; align-items: center; height: 1.5em; padding: 0 .4em; font-size: max(calc(.11 * var(--t)), 8px); font-weight: 700; border-radius: 1em; white-space: nowrap; }
.diy-tag--proto { color: var(--ice-900); background: var(--ice); }
.diy-tag--own { color: var(--text-on-mint); background: var(--mint-500); }

/* the picker covers the tab: the roster's own list on the left and its detail on the right (screens/loadoutSections.js
   draws the sections; below 1000 px the detail slides over the list like the roster's) */
.diy-pick { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: .08rem; padding: .12rem var(--lo-pad-x) .14rem; background: none; }
/* (fork) no fill of its own: the picker shows the 干员调配 screen's background (.lo--deck .lo__bg), the card deck's
   (the user's call of 2026-11-09: it looked nothing like it) */

/* (fork) the picker is the card view for 自选 operators: its deck takes the whole width, and a card opens the detail in
   the card view's drawer over the deck's left (.lo-drawer below), the deck making room as in 干员调配 */
.diy-pick__main { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
/* (fork) the picker's operators as the card view's cards (screens/diy.js DiyCard: the .lo-op css below), one sideways deck
   of two rows without tier groups; the card sizes are the card view's own (they live on .lo--deck, and the picker opens
   from the list view too) */
.diy-pick {
  --drawer-w: min(6.4rem, 92vw);
  --opw: max(2.1rem, 32px, calc(100px * var(--sp-ui, 1)));
  --rail: max(.44rem, 22px);
  --side: max(.46rem, 28px);
  --morew: max(4.45rem, 32px, calc(314px * var(--sp-ui, 1)));
}
.diy-deck { flex: 1 1 auto; min-height: 0; padding: .06rem .02rem .04rem; }
/* (fork) a class group's marker: the tier marker's frame with the class glyph and its name down it */
.diy-cmark .diy-cmark__css { --tc: var(--mint-500); gap: .08rem; }
.diy-cmark__glyph { display: grid; place-items: center; width: 76%; aspect-ratio: 1; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22); }
.diy-cmark__glyph img { width: 78%; height: 78%; object-fit: contain; }
.diy-cmark__glyph b { font-size: max(calc(.26 * var(--t)), 16px); color: var(--mint-400); }
.diy-cmark__name { min-height: 0; overflow: hidden; writing-mode: vertical-rl; font-size: max(calc(.16 * var(--t)), 11px); font-weight: 800; letter-spacing: .12em; color: var(--text-md); }
/* its bottom bar: the classes to jump to, then 清空 / 取消 / 确认 */
.diy-pick__foot.lo-bbar { height: auto; min-height: max(.8rem, 32px, calc(46px * var(--sp-ui, 1))); padding: 0; gap: .12rem; background: none; border: 0; }
.diy-cbar { flex: 1 1 auto; min-width: 0; padding-top: 0; }
/* (fork) 「简洁 / 展开」: both ways of showing the cards in view, the current one lit, a little card drawing on each — the
   header's look (the user's calls of 2026-11-08), at the right of the bottom bar of both pages, a little lower there */
.lo-bbar__tools { flex: none; display: flex; align-items: center; margin-left: auto; }
.lo-dswitch { display: inline-flex; align-items: stretch; height: max(.7rem, 32px, calc(40px * var(--sp-ui, 1))); padding: max(.04rem, calc(3px * var(--sp-ui, 1)));
  gap: max(.04rem, calc(3px * var(--sp-ui, 1))); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); }
.lo-dswitch__opt { display: inline-flex; align-items: center; gap: .08rem; padding: 0 max(.12rem, calc(8px * var(--sp-ui, 1))); font: inherit; color: var(--text-md);
  background: none; border: 0; cursor: pointer; text-align: left; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.lo-dswitch__opt .icon { width: max(.26rem, 16px); height: max(.26rem, 16px); flex: none; }
.lo-dswitch__txt { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.lo-dswitch__txt > span { font-size: max(calc(.18 * var(--t)), 12px); font-weight: 900; letter-spacing: .04em; }
.lo-dswitch__txt small { font-family: var(--font-display); font-size: max(calc(.09 * var(--t)), 7px); letter-spacing: .14em; color: var(--text-dim); }
.lo-dswitch__opt:hover:not(:disabled):not(.is-on) { color: var(--text-hi); background: rgba(255, 255, 255, .06); }
.lo-dswitch__opt.is-on { color: #052119; background: var(--mint-400); cursor: default; }
.lo-dswitch__opt.is-on .lo-dswitch__txt small { color: #0b3a2c; }
.lo-dswitch__opt:disabled { opacity: .45; cursor: default; }

.lo-bbar .lo-dswitch { height: max(.6rem, 32px, calc(36px * var(--sp-ui, 1))); }
/* (fork) 干员持有 in the bottom bar, left of 简洁 / 展开: quiet, the bar's own look (the user's call of 2026-11-09) */
.lo-ownbtn { display: inline-flex; align-items: center; gap: max(.06rem, calc(6px * var(--sp-ui, 1))); height: max(.6rem, 32px, calc(36px * var(--sp-ui, 1)));
  margin-right: max(.1rem, calc(8px * var(--sp-ui, 1))); padding: 0 max(.12rem, calc(10px * var(--sp-ui, 1))); font: inherit; font-size: max(calc(.14 * var(--t)), 11px); color: var(--text-md); cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); transition: color var(--t-fast), border-color var(--t-fast); }
.lo-ownbtn:hover { color: var(--text-hi); border-color: var(--line-3); }
.lo-ownbtn .icon { width: max(.18rem, 13px); height: max(.18rem, 13px); color: var(--text-lo); }
.lo-ownbtn__v { font-weight: 700; color: var(--text-hi); }
/* (fork) a short landscape phone (≤ 520 px tall): the bottom bar's 干员持有 and 简洁 / 展开 / 时装 smaller, at one size
   whatever the 文字大小 (干员持有 its icon alone, its words kept for screen readers and in its title), so every tier jump
   stays whole beside them (the user's call of 2026-11-09: at 640×360 特大 two of the six were cut) */
@media (max-height: 520px) {
  .lo-bbar .lo-dswitch { height: 30px; padding: 2px; gap: 2px; }
  .lo-bbar .lo-dswitch__opt { gap: 4px; padding: 0 6px; }
  .lo-bbar .lo-dswitch__opt .icon { width: 14px; height: 14px; }
  .lo-bbar .lo-dswitch__txt > span { font-size: 12px; }
  .lo-bbar .lo-ownbtn { position: relative; gap: 0; height: 30px; margin-right: 6px; padding: 0 8px; }
  .lo-bbar .lo-ownbtn .icon { width: 14px; height: 14px; }
  .lo-bbar .lo-ownbtn__k, .lo-bbar .lo-ownbtn__v { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.diy-cbar__btn { gap: .06rem; }
.diy-cbar__glyph { width: max(.24rem, 15px); height: max(.24rem, 15px); object-fit: contain; }
/* its ~90 cards are drawn whole (no content-visibility skip): skipped cards came back half painted after the 「详情」 slide
   here, a stale copy left where a card had been (measured 2026-11-08); the deck is small enough to draw at once */
.diy-deck .lo-op.has-side, .diy-deck .lo-op__morein { content-visibility: visible; }
/* a panel scrolls (a scroll area: a layer of its own) only under the pointer or with the focus inside it, where a pointer
   can hover; a touch screen keeps every panel scrollable */
@media (hover: hover) {
  .lo-op__morein { overflow: hidden; }
  .lo-op__morein:hover, .lo-op__morein:focus-within { overflow-y: auto; }
}
.diy-card__rail { gap: max(.06rem, calc(4px * var(--sp-ui, 1))); padding-top: max(.04rem, calc(3px * var(--sp-ui, 1))); }
.diy-card__prof { width: 82%; height: auto; aspect-ratio: 1; object-fit: contain; }
.diy-card__kind .diy-tag { writing-mode: vertical-rl; height: auto; padding: .4em 0; width: 1.5em; justify-content: center; letter-spacing: .1em; }
/* taken by another slot: said in a band over the portrait's foot (the ribbon would run the long note down the art) */
.lo-op__ribbon.diy-card__taken { left: 0; right: 0; top: auto; bottom: 0; padding: 2px 4px; writing-mode: horizontal-tb; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1b1203; background: var(--amber); clip-path: none; }
.diy-pick__glyph { display: grid; place-items: center; width: 100%; height: 100%; font-size: max(calc(.3 * var(--t)), 18px); color: var(--text-lo); }
/* a card is a .lo-op (screens/diy.js DiyCard); its selection is the card view's (.lo-op.is-sel), only is-taken is the
   picker's own */
.diy-opt.is-taken { opacity: .45; cursor: not-allowed; }
.diy-opt.is-taken .lo-op__card, .diy-opt.is-taken .lo-op__pick { cursor: not-allowed; }
.diy-pick__detail { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: .12rem .18rem .2rem; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.diy-pick__foot { flex: none; display: flex; justify-content: flex-end; gap: .08rem; }
/* 0.2.0 自选编队: the slots the player filled (the entry button's chip) */
.lo-entry__diy { color: var(--text-on-mint); background: var(--mint-500); }
@media (max-width: 760px) {

  .diy-pick { padding: .08rem var(--lo-pad-x) .1rem; }

}

/* ---- entry button (lobby / room / briefing) --------------------------------------------------------------------------- */
.lo-entry { position: relative; gap: .08rem; }
.lo-entry__icon { width: 1.25em; height: 1.25em; object-fit: contain; flex: none; }
.lo-entry__n {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .3em; margin-left: .02rem;
  font-size: .8em; font-weight: 700; color: var(--text-on-mint); background: var(--mint-500); border-radius: 1em;
}
/* 0.2.0 补位: operators marked 未持有 on the 干员持有 tab */
.lo-entry__own { display: inline-flex; align-items: center; gap: .2em; height: 1.5em; padding: 0 .4em; font-size: .75em; font-weight: 700; color: var(--ice-900); background: var(--ice); border-radius: 1em; white-space: nowrap; }

/* Untimed phases (user playtest #11 / #4 item 3: the official 独立模拟 shows no countdown outside combat — the server
   sends deadline 0 for them, Match.soloUntimed): ui/components.js Countdown now renders nothing without a deadline;
   this rule stays as a safety net for the old "无倒计时" placeholder ("--" digits + COUNTDOWN label). */
.countdown[aria-label="无倒计时"] { display: none; }

/* the app screens behind the overlay do not need to animate */
.sp-loadout-open .app-root > .screen { visibility: hidden; }
/* (fork) and still: the lobby's radar sweep (and any other endless animation under the overlay) kept a new frame coming —
   layering and visibility checks over the deck's images and cards — every frame, idle or scrolling (measured 2026-11-08) */
.sp-loadout-open .app-root > .screen * { animation-play-state: paused; }
@media (max-width: 1100px) {
  .lo { --lo-detail-w: 6.4rem; --lo-gap-x: .16rem; --lo-pad-x: .2rem; }

  .lo-chip__lbl { display: none; }
  /* the co-op briefing's countdown takes the place of the 已调整 / 同步 chips */
  .lo-deadline ~ .lo-sync, .lo-deadline ~ .lo-count { display: none; }
}
/* phones in landscape (up to 932 px wide): the top bar keeps the tabs clear of the right column — no 已调整 / 同步 chips,
   and 返回 / 全部恢复默认 (全部持有, 全部清空; each confirms first) show their icon only, the text staying their name */
@media (max-width: 1000px) {
  .lo-count, .lo-sync { display: none; }
  .lo-top .btn__icon + .btn__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
/* phones and small tablets (up to 1000 px wide; 0.2.2 — 760 px before the roster became one list with quick choices): the
   list takes the whole width and the detail slides over it — a row's quick choice keeps the list, its portrait / name
   opens the detail */
@media (max-width: 760px) {
  .lo-top { padding: 0 .16rem; }
}
@media (max-height: 520px) {
  .lo-note { display: none; }
  .lo-dhead { grid-template-columns: max(1rem, 32px, calc(48px * var(--sp-ui, 1))) minmax(0, 1fr); padding: .1rem .14rem; }
  .lo-dhead__en { display: none; }
}
/* the shared Button / TextField scale with the root (40 px/rem on phones ⇒ 6–7 px text, 14–20 px tall): the overlay's
   own controls (返回, 全部恢复默认, 恢复默认, the search field) keep a readable size and a tappable height (review fix) */
.lo .lo-back { height: max(.5rem, 32px); padding: 0 max(.2rem, calc(10px * var(--sp-ui, 1))) 0 max(.12rem, calc(6px * var(--sp-ui, 1))); font-size: max(calc(.18 * var(--t)), 12px); }
.lo .lo-top__right .btn, .lo .lo-dhead__reset { height: max(.36rem, 28px); padding: 0 max(.16rem, calc(8px * var(--sp-ui, 1))); font-size: max(calc(.15 * var(--t)), 11px); }
.lo .lo-search .field__box { height: max(.56rem, 28px); padding: 0 max(.16rem, calc(6px * var(--sp-ui, 1))); }
.lo .lo-search .field__input { font-size: max(calc(.2 * var(--t)), 12px); }
.lo .lo-search .field__icon { width: max(.22rem, 14px); height: max(.22rem, 14px); }
.sp-coarse .lo-chip, .sp-coarse .lo-toggle, .sp-coarse .lo-select { min-height: 30px; }
.sp-coarse .lo-seg button { min-height: 28px; }
@media (prefers-reduced-motion: reduce) { .lo { animation: none; transition: none; } }

/* 导出 / 导入 (干员调配 presets): the dialog is the shared Modal, rendered NEXT TO `.lo` (a sibling) rather than inside
   it — so components.css `.modal { position: fixed }` and its z-index above the overlay apply as they do everywhere
   else, and `.lo > *` needs no exception for it. Below: the payload textarea + the hidden input behind 选择文件. */
.lo-io__hint { margin: 0 0 max(.1rem, calc(8px * var(--sp-ui, 1))); font-size: max(calc(.18 * var(--t)), 12px); line-height: 1.55; color: var(--text-md); }
.lo-io__hint b { color: var(--mint-400); font-size: max(calc(.22 * var(--t)), 13px); margin: 0 .02rem; }
.lo-io__hint strong { color: var(--gold); }
.lo-io__text {
  box-sizing: border-box; width: 100%; height: max(2.4rem, 32px, calc(160px * var(--sp-ui, 1))); min-height: 120px; resize: vertical;
  padding: max(.1rem, calc(8px * var(--sp-ui, 1))) max(.12rem, calc(10px * var(--sp-ui, 1)));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* 16 px: iOS zooms into a focused field below that (same reason as ui/clipboard.js) */
  font-size: max(calc(.2 * var(--t)), 16px); line-height: 1.45;
  color: var(--text-hi); background: rgba(4, 10, 8, .55);
  border: 1px solid var(--line-2); border-radius: 2px; outline: none;
  /* wrap instead of a horizontal scrollbar: phones are narrow and the payload is meant to be read/copied whole */
  white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: auto;
}
.lo-io__text:focus { border-color: var(--mint-700); }
.lo-io__text::placeholder { color: var(--text-lo); }
.lo-io__file { display: none; }
/* (fork) the one 导出 / 导入 dialog (screens/loadout.js, ui/backupModel.js): the parts as ticks, each with its count (导出)
   or, read from the text, what it holds (导入; a part its own parser refused says why) */
.lo-io__parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(2.4rem, 32px, calc(150px * var(--sp-ui, 1))), 1fr)); gap: max(.06rem, calc(6px * var(--sp-ui, 1))); margin: 0 0 max(.1rem, calc(8px * var(--sp-ui, 1))); }
.lo-io__part { display: flex; flex-wrap: wrap; align-items: center; gap: max(.06rem, calc(6px * var(--sp-ui, 1))); padding: max(.06rem, calc(6px * var(--sp-ui, 1))) max(.1rem, calc(8px * var(--sp-ui, 1))); cursor: pointer;
  font-size: max(calc(.16 * var(--t)), 12px); color: var(--text-hi); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
/* a ticked part: .is-on mirrors its checkbox (no :has(): Firefox ESR 115, Safari < 15.4) */
.lo-io__part.is-on { border-color: var(--mint-700); background: rgba(78, 216, 175, .08); }
.lo-io__part input { margin: 0; accent-color: var(--mint-500); }
.lo-io__part b { margin-left: auto; color: var(--mint-400); }
.lo-io__part.is-empty b { color: var(--text-lo); }
.lo-io__part small { flex-basis: 100%; font-size: max(calc(.13 * var(--t)), 10px); color: var(--text-lo); }
.lo-io__part.is-bad { cursor: default; border-style: dashed; }
.lo-io__part.is-bad small { color: var(--red-premium); }
.lo-io__found { margin-top: max(.1rem, calc(8px * var(--sp-ui, 1))); }
.lo-io__bad { margin: max(.08rem, calc(6px * var(--sp-ui, 1))) 0 0; font-size: max(calc(.15 * var(--t)), 11px); color: var(--red-premium); }

/* ---- 时装 / Outfits (fork, docs/OUTFITS.md; screens/outfits.js) ---------------------------------------------------- */
/* the switch above the detail header: 调配 ⇄ 时装 (top right) */
.lo-dtop { flex: none; display: flex; justify-content: flex-end; padding: .08rem .12rem 0; }
.lo-oswitch { display: inline-flex; border: 1px solid var(--line-2); }
.lo-oswitch button { display: inline-flex; align-items: center; gap: .05rem; min-height: max(.32rem, 22px); padding: 0 .14rem; background: #0a0d0c;
  border: 0; color: var(--text-lo); font-size: max(.14rem, 10px); font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.lo-oswitch button + button { border-left: 1px solid var(--line-2); }
.lo-oswitch button:hover { color: var(--text-md); }
.lo-oswitch button.is-on { color: var(--text-on-mint); background: var(--mint-500); }
.lo-oswitch button:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 1px; }
.sp-coarse .lo-oswitch button { min-height: 30px; }
/* the panel: artwork (most of the width, tall: a click opens it full size) + the sprite, then the cards */
.ofit-stage { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: .1rem; height: max(5.2rem, 32px, calc(320px * var(--sp-ui, 1))); margin-bottom: .16rem; }
.ofit-art, .ofit-sprite { position: relative; display: grid; place-items: center; overflow: hidden; min-width: 0; min-height: 0;
  background: radial-gradient(ellipse at 50% 70%, rgba(78, 216, 175, .08), transparent 70%), #0d1110; border: 1px solid var(--line-2); }
button.ofit-art { padding: 0; color: inherit; font: inherit; cursor: zoom-in; }
button.ofit-art:hover { border-color: var(--line-3); }
button.ofit-art:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 1px; }
.ofit-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ofit-art__zoom { position: absolute; right: .06rem; bottom: .06rem; display: grid; place-items: center; width: max(.3rem, 20px); height: max(.3rem, 20px);
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); color: var(--text-md); font-size: max(.14rem, 11px); }
.ofit-sprite { cursor: pointer; }
.ofit-sprite canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the full-size artwork (ArtViewer) */
.ofit-viewer .modal__body { padding: .08rem; }
.ofit-viewer__art { position: relative; height: min(76vh, 12rem); background: #0d1110; }
/* (fill + contain: a grid item's max-height: 100% resolves against its auto row and never shrank the 1024 px art) */
.ofit-viewer__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
/* the 自选编队 picker's 时装 section (OutfitPickSection): smaller cards in the narrow detail column */
.ofit-list--compact { grid-template-columns: repeat(auto-fill, minmax(max(2rem, 32px, calc(130px * var(--sp-ui, 1))), 1fr)); gap: .06rem; }
.ofit-list--compact .ofit-card__ava { width: max(.42rem, 28px); height: max(.42rem, 28px); }
.diy-pick__outfits .lo-sec__head { flex-wrap: wrap; }
/* the 自选编队 slot's dialog (OutfitDialog): the panel without the detail's scroll box */
.ofit-dialog .lo-detail__body { overflow: visible; padding: 0; }
.ofit-dialog .ofit-stage { height: min(56vh, 5.6rem); }
.ofit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(2.4rem, 32px, calc(150px * var(--sp-ui, 1))), 1fr)); gap: .08rem; }
.ofit-card { position: relative; display: flex; align-items: center; gap: .08rem; min-width: 0; padding: .06rem .08rem; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--text-md); }
.ofit-card:hover, .ofit-card.is-shown { border-color: var(--line-3); }
.ofit-card.is-on { color: var(--text-hi); background: linear-gradient(90deg, rgba(78, 216, 175, .14), rgba(78, 216, 175, .02) 75%); border-color: var(--mint-500); }
.ofit-card:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 1px; }
.ofit-card__ava { flex: none; display: grid; place-items: center; width: max(.5rem, 32px); height: max(.5rem, 32px); overflow: hidden; background: #1b201e; border: 1px solid var(--line); }
.ofit-card__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ofit-card__text { min-width: 0; display: flex; flex-direction: column; gap: .01rem; }
.ofit-card__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: max(.15rem, 11px); }
.ofit-card__series { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-num); font-size: max(.12rem, 9px); letter-spacing: .06em; color: var(--text-dim); }
.ofit-card__on { position: absolute; right: .04rem; top: .04rem; }
.ofit-none { margin: .06rem 0 0; font-size: max(.14rem, 10px); }
.ofit-io { display: flex; justify-content: flex-end; gap: .06rem; margin-top: .1rem; }
@media (max-width: 760px) {
  .ofit-stage { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); height: max(3.6rem, 32px, calc(260px * var(--sp-ui, 1))); }
}

/* ---- 干员皮肤 (docs/SKINS.md, ui/skinPicker.js) -------------------------------------------------------------------
   Five tiles per row, always — `repeat(5, …)`, not `auto-fit`, so a tile is the same size for every operator and the
   operator's appearance does not change with how many skins its plugins happen to write. The 默认 tile is the first of
   the five and every operator has it. The art is a FIXED 1:2 box: the shape of the client's 180×360 portrait, the "big
   icon" an appearance is chosen by (the 立绘 behind the enlarged preview is 1024 px+ for most skins, which is exactly
   why it is not the tile). `object-fit: cover` fills the box from either source, and a skin that ships no art shows the
   OPERATOR's own — dimmed (`.lo-skin--fallback`) so a plugin that replaced only the model is legible, never a slash or
   a placeholder box. Clicking the chosen tile opens the enlarged preview (`.lo-skin-preview`, a Modal).

   Every tile ALSO carries the same appearance's 1:1 `avatar` (ui/skins.js availableSkins.avatar — the skin's own, else
   the operator's; 273/273 of the installed skins ship one). It stays in the DOM but undrawn until the last media query
   of this block: a phone in landscape — the only phone orientation this screen is used in, theme.css covers a portrait
   device with 「请将设备横屏」 — has a detail panel of 193–263 px (measured 740×360 … 932×430), and the 1:2 tile is
   264–379 px tall there, which made 皮肤 the ONE section of that panel no phone could see whole (the 潜能与练度 / 技能 /
   局内数值 / 模组 sections are 135–163 px in the same panel). On that short, narrow panel the tile draws the 1:1 avatar
   — the shape of the old list rows' portraits — five to the row, and the section is 216 px at 844×390: it fits. */
.lo-skins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .1rem; align-items: start; }
.lo-skin {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: .04rem; padding: .06rem;
  font: inherit; color: var(--text-md); text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast); touch-action: manipulation;
}
.lo-skin:hover { border-color: var(--line-3); }
.lo-skin:active { transform: scale(.98); }
.lo-skin:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }
.lo-skin.is-on { color: var(--text-hi); background: linear-gradient(180deg, rgba(78, 216, 175, .14), rgba(78, 216, 175, .02) 75%); border-color: rgba(78, 216, 175, .7); }
.lo-skin__art {
  position: relative; aspect-ratio: 1 / 2; min-height: max(1.5rem, 32px, calc(130px * var(--sp-ui, 1))); overflow: hidden;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
}
.lo-skin__art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* the appearance's 1:1 avatar of the same tile, drawn only where the 1:2 box does not fit (the media query at the end) */
.lo-skin__art > .lo-skin__art--faceimg { display: none; }
.lo-skin__art--none { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 3px, transparent 3px 7px); }
/* the art shown is the operator's own (the skin ships none): the name and the series still say which skin this is */
.lo-skin--fallback .lo-skin__art { opacity: .72; }
.lo-skin__text { min-width: 0; display: flex; flex-direction: column; gap: .01rem; }
.lo-skin__name { font-size: max(.16rem, 11px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-skin__group { font-family: var(--font-num); font-size: max(.12rem, 9px); letter-spacing: .06em; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-skin__note { font-size: max(.12rem, 9px); line-height: 1.3; color: var(--text-dim); overflow-wrap: anywhere; }
/* the enlarged view: the 立绘 (whole, not the cropped tile), as large as the modal allows */
.lo-skin-preview { display: flex; align-items: center; justify-content: center; }
.lo-skin-preview img { display: block; max-width: 100%; max-height: 65dvh; object-fit: contain; }
@media (max-width: 900px) { .lo-skins { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* phones in landscape (a narrow viewport that is also short: the detail panel is the whole width and ~200 px tall): the
   1:2 tile is taller than that panel, so the five-to-a-row 1:1 avatar takes over — `min-height: 0` because the panel,
   not a 130 px floor, decides the size here. A tile with no avatar anywhere keeps its portrait (`.lo-skin__art--face`) */
@media (max-width: 1000px) and (max-height: 520px) {
  .lo-skins { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lo-skin__art { aspect-ratio: 1 / 1; min-height: 0; }
  .lo-skin__art--face > .lo-skin__art--big { display: none; }
  .lo-skin__art--face > .lo-skin__art--faceimg { display: block; }
}

/* ==========================================================================================
   卡片视图 (optional; js/screens/loadout.js DeckView / DeckCard / TierMark / DeckBar): the 干员调配 tab laid out after
   the event's 物资调配处 — tier groups of cards scrolling sideways, a bottom bar of tier jumps, each card's own skill /
   module column (fork), 「详情」 panels beside the cards, and the detail in a drawer over the left of the deck. The
   only view since the fork's 2026-11-08 change (the list view was removed).
   The tier marker is the official shopLevelSprite/shop_level_tag_N; the rest is drawn here [ASSUMED]: the card frame
   and its colours, the CSS tier marker (the sprite's fallback), the bottom bar, the skill / module column and the 「详情」 panel (see the
   loadout.js header for the sources).
   ========================================================================================== */
.lo--deck {
  --drawer-w: min(6.4rem, 92vw);
  --opw: max(2.1rem, 32px, calc(100px * var(--sp-ui, 1)));          /* a card */
  --rail: max(.44rem, 22px);          /* its left rail: tier, levels */
  --side: max(.46rem, 28px);                                        /* (fork) a card's skill / module column */
  --morew: max(4.45rem, 32px, calc(314px * var(--sp-ui, 1)));      /* (fork) a card's 「详情」 panel: wide enough for a skill's SP type, 初始, 消耗, 持续 and 充能 on one line (429 px of 4.45rem at the user's 2319×1358, 2026-11-08) */
}
/* (fork) a step darker than before, the mint glow at the top left kept (the user's call of 2026-11-09: option 2 — black
   was too dark) */
.lo--deck .lo__bg {
  background:
    radial-gradient(60% 80% at 12% 0%, rgba(78, 216, 175, .05), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 1.2rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 1.2rem),
    linear-gradient(180deg, #0e1110, #080a09 70%, #050606);
}

/* ---- top bar ---- */
/* above the deck: while a 转场 runs (a transform), the top-right block is its own stacking context, and its 筛选 / ⋯
   popovers fell behind the tier groups drawn after it (a quick 筛选 right after coming back from 干员持有) */
.lo-top--deck { z-index: 6; }
/* never wider than the centre column (§35.51: centred in it at its own width, it ran under ⓘ and 已同步 at 1280–1440 px in
   English and Japanese) */
.lo-top__note { margin: 0; max-width: min(8.4rem, 100%); font-size: max(calc(.15 * var(--t)), 10px); color: var(--text-lo); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-tbtn { position: relative; display: inline-flex; align-items: center; gap: .06rem; height: max(.4rem, 28px); padding: 0 max(.14rem, calc(8px * var(--sp-ui, 1)));
  font: inherit; font-size: max(calc(.15 * var(--t)), 11px); font-weight: 700; color: var(--text-md); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap; }
.lo-tbtn:hover, .lo-tbtn.is-on { color: var(--text-hi); border-color: var(--mint-700); }
.lo-tbtn .icon { width: max(.18rem, 12px); height: max(.18rem, 12px); }

.lo-popwrap { position: relative; }
.lo-pop { position: absolute; top: calc(100% + .08rem); right: 0; z-index: 20; padding: .14rem; background: linear-gradient(180deg, #1d2321, #121615);
  border: 1px solid var(--line-2); box-shadow: 0 .14rem .4rem rgba(0, 0, 0, .6); animation: lo-in 140ms var(--ease-out) backwards; }
.lo-pop--filter { width: min(9.4rem, calc(100vw - 24px)); display: flex; flex-direction: column; gap: .12rem; }
/* (fork) the 自选编队 picker's 筛选 has no tier row: its search takes the whole first row */
.lo-frow--search .lo-search { flex: 1 1 auto; max-width: none; margin-left: 0; }
.lo-pop__row { display: flex; align-items: center; gap: .12rem; padding-top: .1rem; border-top: 1px solid var(--line); }
.lo-pop__k { font-size: max(calc(.14 * var(--t)), 10px); color: var(--text-dim); }
.lo-pop__row .lo-seg { margin: 0; }
.lo-pop__row .lo-tbtn { margin-left: auto; }
/* (fork) the top bar's right: 导出 / 导入 (one above the other), 搜索 and 恢复默认 (干员持有: 全部持有) in one tray — the skin
   of the bottom bar's 简洁 / 展开 / 时装 switch: a dark well, its buttons tiles inside it, the labels its bold type (the
   user's calls of 2026-11-09: one clean family, nothing tiny) */
.lo-tray { flex: none; display: inline-flex; align-items: stretch; height: max(.7rem, 32px, calc(44px * var(--sp-ui, 1))); padding: max(.04rem, calc(3px * var(--sp-ui, 1)));
  gap: max(.04rem, calc(3px * var(--sp-ui, 1))); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); }
.lo-tray__stack { display: flex; flex-direction: column; gap: max(.03rem, calc(2px * var(--sp-ui, 1))); }
.lo-tray .lo-popwrap { display: flex; }
.lo-tray__btn, .lo-tray .lo-filterbtn { display: inline-flex; align-items: center; gap: .08rem; height: auto; padding: 0 max(.16rem, calc(10px * var(--sp-ui, 1))); font: inherit;
  font-size: max(calc(.18 * var(--t)), 12px); font-weight: 900; letter-spacing: .04em; line-height: 1.1; color: var(--text-md); white-space: nowrap;
  background: rgba(255, 255, 255, .045); border: 0; box-shadow: none; cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.lo-tray__btn .icon, .lo-tray .lo-filterbtn__icon .icon { width: max(.26rem, 16px); height: max(.26rem, 16px); flex: none; color: var(--mint-400); }
.lo-tray__stack .lo-tray__btn { flex: 1 1 0; font-size: max(calc(.15 * var(--t)), 11px); }
.lo-tray__stack .lo-tray__btn .icon { width: max(.2rem, 13px); height: max(.2rem, 13px); }
.lo-tray__btn:hover:not(:disabled), .lo-tray .lo-filterbtn:hover { color: var(--text-hi); background: rgba(255, 255, 255, .1); }
.lo-tray__btn:disabled { opacity: .45; cursor: default; }
/* 搜索: the tray's main tile, white type; mint-edged while a filter is on */
.lo-tray .lo-filterbtn { color: var(--text-hi); }
.lo-tray .lo-filterbtn.is-on { background: rgba(78, 216, 175, .14); box-shadow: inset 0 0 0 1px var(--mint-500); }
.lo-tray .lo-filterbtn__icon { display: contents; }
.lo-tray .lo-filterbtn__txt { padding: 0; }
.lo-tray .lo-filterbtn__txt > span { font-size: inherit; }
/* 恢复默认 warns red on hover: it resets every operator (after a confirm) */
.lo-tray .lo-resetbtn .icon { color: inherit; }
.lo-tray .lo-resetbtn:hover:not(:disabled) { color: var(--red-premium); background: rgba(255, 84, 84, .1); }
/* 干员持有 (and the fork's 筛选): big blocks at the right */
.lo-filterbtn { display: inline-flex; align-items: stretch; height: max(.7rem, 32px, calc(40px * var(--sp-ui, 1))); padding: 0; font: inherit; border: 0; cursor: pointer; text-align: left; }
.lo-filterbtn__txt { display: flex; flex-direction: column; justify-content: center; padding: 0 max(.14rem, calc(8px * var(--sp-ui, 1))); line-height: 1.1; }
.lo-filterbtn__icon { display: grid; place-items: center; width: max(.62rem, 32px, calc(34px * var(--sp-ui, 1))); }
.lo-filterbtn__icon .icon { width: 58%; height: 58%; }
/* (fork) 筛选: a block as tall as 干员持有 (the user's call of 2026-11-08: the small chip was easy to miss), its icon on
   the left; mint-edged while a filter is on, the count in a badge */
/* (fork) 搜索: the bar's main control, in its own look (a solid mint block was too loud: the user's call of 2026-11-09) */
.lo-filterbtn { position: relative; color: var(--text-hi); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-3); }
.lo-filterbtn:hover { background: rgba(255, 255, 255, .1); }
.lo-filterbtn.is-on { box-shadow: inset 0 0 0 1px var(--mint-500); }
.lo-filterbtn__icon { margin: .06rem 0 .06rem .06rem; color: var(--mint-400); background: #0b1d18; }
.lo-filterbtn__txt { padding-right: max(.2rem, calc(12px * var(--sp-ui, 1))); }
.lo-filterbtn__txt > span { font-size: max(calc(.2 * var(--t)), 13px); font-weight: 900; letter-spacing: .04em; }
.lo-filterbtn__n { position: absolute; right: -4px; top: -4px; min-width: max(.24rem, 16px); padding: 0 3px; font-size: max(calc(.12 * var(--t)), 9px); line-height: 1.5;
  text-align: center; color: #04140f; background: var(--mint-500); }

/* ---- the deck ---- */
.lo-deckwrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; } /* (fork) relative: a 自选编队 slot's picker covers it */
.lo-deck { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: .34rem; padding: .24rem .36rem .2rem;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
/* (fork) the deck scrolls on the compositor: Chrome did not promote it on its own (its translucent background), so every
   step of a drag repainted and regrouped the whole page's layers — Layerize 2.3–4.0 s over a drag in 「展开」 against
   0.4 s promoted, its slow frames 12–21 ms against 4 ms at full speed (measured 2026-11-08) */
.lo-deck { will-change: scroll-position; }
/* a mouse drag scrolls it (screens/loadoutDeck.js useDragScroll), so a press on a card never starts a text selection.
   Nothing on the deck changes while it moves: a class there restyles every card under it, 15 600 elements in 「展开」,
   165–187 ms each switch in the user's Vivaldi at 2319×1358 ×1.5 (measured 2026-11-08), where a hover over a card costs
   under a millisecond */
.lo-deck { user-select: none; }
/* the grabbing hand during a drag: a clear sheet over the page (one element, 0.3 ms) */
.lo-grabsheet { position: fixed; inset: 0; z-index: 2147483000; cursor: grabbing; contain: strict; }
.lo-deck--empty { align-items: center; justify-content: center; }
/* (fork) the drawer is a pure overlay over the deck's left: no room made, no scroll (the user's call of 2026-11-09) */
.lo-tgroup { flex: none; display: flex; align-items: stretch; gap: .18rem; }
/* the group's marker: the official sprite (150 × 595 design px: 'NO.', the numeral, the event's vertical line; at its
   design size [ASSUMED], shrunk to fit a short deck, the count below it) or the CSS marker when that art is missing */
.lo-tmark { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.lo-tmark__art { display: block; width: 1.5rem; height: 5.95rem; max-height: calc(100% - max(.3rem, calc(18px * var(--sp-ui, 1)))); object-fit: contain; object-position: 50% 0; }
.lo-tmark__css { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: .04rem; width: max(.86rem, 32px, calc(44px * var(--sp-ui, 1)));
  padding: .12rem 0 max(.34rem, calc(20px * var(--sp-ui, 1))); overflow: hidden; background: linear-gradient(180deg, #2a2f2d, #151918 60%, #101312);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 3px 0 var(--tc), 0 .06rem .2rem rgba(0, 0, 0, .4); }
.lo-tmark__no { font-family: var(--font-display); font-size: max(calc(.1 * var(--t)), 8px); letter-spacing: .12em; color: var(--text-dim); }
.lo-tmark__n { display: grid; place-items: center; width: 76%; aspect-ratio: 1 / 1.3; font-family: var(--font-num); font-size: max(calc(.38 * var(--t)), 20px); font-weight: 900;
  line-height: 1; color: var(--tc); border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .35); }
.lo-tmark__cnt { position: absolute; left: 0; right: 0; bottom: max(.08rem, calc(4px * var(--sp-ui, 1))); text-align: center; font-size: max(calc(.15 * var(--t)), 10px); color: var(--text-lo); }
.lo-tgrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-columns: max-content; gap: .16rem .14rem; min-height: 0; }
/* (fork) the 自选编队 slots' 「自选」 group before tier 1 (screens/loadout.js deckGroups): the CSS marker's frame in mint (no
   official sprite for it), the person glyph and 「自选」 down it; a mint separator after the group, the deck's gap on both
   sides of it (the user's call of 2026-11-15) */
.lo-tmark--custom { --tc: var(--mint-500); }
.lo-tmark--custom .lo-tmark__css { gap: .08rem; }
.lo-tmark__icon { flex: none; width: 76%; height: auto; aspect-ratio: 1; padding: 12%; color: var(--tc); border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .35); }
.lo-tmark__label { min-height: 0; overflow: hidden; writing-mode: vertical-rl; font-size: max(calc(.15 * var(--t)), 11px); font-weight: 800; letter-spacing: .08em; line-height: 1; color: var(--tc); white-space: nowrap; }
.lo-tgroup--custom { padding-right: .34rem; border-right: 1px solid rgba(78, 216, 175, .45); }
/* each tier's pair inside it: a slim strip (the tier's chip, 「N阶」 down it, a fading line in the tier's colour) before
   its cards, and a small dashed divider between the pairs (the user's call of 2026-11-15) */
.lo-csub { flex: none; display: flex; align-items: stretch; gap: .1rem; min-height: 0; }
.lo-csub + .lo-csub { margin-left: .06rem; padding-left: .16rem; border-left: 1px dashed rgba(255, 255, 255, .22); }
.lo-csub__mark { flex: none; display: flex; flex-direction: column; align-items: center; gap: .06rem; width: max(.34rem, 22px); min-height: 0; overflow: hidden; }
.lo-csub__mark::after { content: ""; flex: 1 1 auto; width: 2px; min-height: 0; background: linear-gradient(180deg, var(--tc), transparent); opacity: .55; }
.lo-csub__chip { flex: none; }
.lo-csub__label { flex: none; writing-mode: vertical-rl; font-size: max(calc(.13 * var(--t)), 10px); font-weight: 700; letter-spacing: .06em; line-height: 1; color: var(--tc); white-space: nowrap; }

/* ---- an operator card ---- */
.lo-op { --tc: var(--tier-1); position: relative; display: flex; min-height: 0; }
.lo-op--t2 { --tc: var(--tier-2); } .lo-op--t3 { --tc: var(--tier-3); } .lo-op--t4 { --tc: var(--tier-4); }
.lo-op--t5 { --tc: var(--tier-5); } .lo-op--t6 { --tc: var(--tier-6); }
.lo-op__card { position: relative; width: var(--opw); min-height: 0; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto; column-gap: max(.05rem, calc(3px * var(--sp-ui, 1))); padding: max(.06rem, calc(3px * var(--sp-ui, 1))) max(.06rem, calc(3px * var(--sp-ui, 1))) max(.07rem, calc(4px * var(--sp-ui, 1)));
  background: linear-gradient(180deg, rgba(44, 50, 48, .94), rgba(24, 28, 27, .96)); border: 1px solid transparent;
  box-shadow: 0 .05rem .16rem rgba(0, 0, 0, .45); transition: border-color var(--t-fast), box-shadow var(--t-fast); cursor: pointer; }
/* (fork) no frame around a card (the user's call of 2026-11-09): the border is clear, kept for the selection's mint ring
   and the 自选 slot's amber warning */
.lo-op.is-sel .lo-op__card { border-color: var(--mint-400); box-shadow: 0 0 0 1px var(--mint-400), 0 0 .18rem rgba(89, 244, 202, .3); }
.lo-op__rail { position: relative; z-index: 2; grid-row: 1 / -1; grid-column: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); padding-top: 2px; }
/* The square sprite needs the rail's full height too: width alone leaves an overflowing grid image (#811). */
.lo-op__tier.tier { --tier-h: var(--rail); width: var(--tier-h); height: var(--tier-h); }
.lo-op__tier img { min-width: 0; min-height: 0; }
.lo-op__lv { display: flex; flex-direction: column; align-items: center; gap: max(.05rem, calc(3px * var(--sp-ui, 1))); width: 86%; padding: max(.06rem, calc(3px * var(--sp-ui, 1))) 0;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; }
.lo-op__lvrow, .lo-op__pot { display: flex; flex-direction: column; align-items: center; gap: max(.02rem, calc(1px * var(--sp-ui, 1))); line-height: 1; }
.lo-op__lvrow b, .lo-op__pot b { font-size: max(calc(.15 * var(--t)), 10px); color: var(--text-md); }
.lo-op__lvrow.is-elite b { color: var(--gold-2); }
.lo-op__phase { display: block; flex: none; width: max(.24rem, 14px); height: max(.2rem, 12px); object-fit: contain; opacity: .65;
  font-size: max(calc(.12 * var(--t)), 9px); text-align: center; color: var(--text-md); }
.lo-op__lvrow.is-elite .lo-op__phase { opacity: 1; color: var(--gold-2); }
.lo-op__lvrow.is-elite img.lo-op__phase { filter: brightness(0) saturate(100%) invert(85%) sepia(70%) saturate(655%) hue-rotate(350deg); }
.lo-op__mark { width: max(.12rem, 8px); height: max(.12rem, 8px); margin-top: auto; background: var(--mint-400); transform: rotate(45deg); box-shadow: 0 0 6px rgba(89, 244, 202, .6); }
/* (fork) the portrait is the whole card's background, no frame: the rail, the skill / module column, the name and the
   bonds sit on it over shades from the left, the right and the bottom (the user's calls of 2026-11-08) */
.lo-op__pick { position: absolute; inset: 0; z-index: 0; display: block; padding: 0; overflow: hidden; cursor: pointer; border: 0; }
.lo-op__pick::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 16, 15, .9), rgba(12, 16, 15, .5) 16%, transparent 34%, transparent 64%, rgba(12, 16, 15, .55) 80%, rgba(12, 16, 15, .9)),
    linear-gradient(0deg, rgba(12, 16, 15, .95), rgba(12, 16, 15, .6) 16%, transparent 34%); }
.lo-op__side, .lo-op__meta, .lo-op__bonds { position: relative; z-index: 2; }
/* a portrait (an operator's, the 自选干员 slot's: a cut-out) stands on near-black with a faint glow behind the head, so
   dark hair still parts from it (the user's calls: no pale card 2026-11-08, darker — option C — 2026-11-09) */
.lo-op__pick { background: radial-gradient(ellipse 75% 55% at 50% 30%, #1c2422, #070908 75%, #030404); }
.lo-op__art { position: absolute; inset: 0; display: block; overflow: hidden; }
.lo-op__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; display: block; }
.lo-op__glyph { display: grid; place-items: center; width: 100%; height: 100%; font-size: max(calc(.5 * var(--t)), 22px); font-weight: 900; color: rgba(255, 255, 255, .22); }
/* (fork) the branch icon sits on the rail under the tier (the picker: under the class), above the levels; on a rail too
   short for all three (特大 on a 640×360 phone: the level pill ended 4 px past the card, #811) it is the one that shrinks */
.lo-op__sub { flex: 0 1 auto; min-height: 0; display: block; width: 70%; height: auto; aspect-ratio: 1; object-fit: contain; opacity: .85; }
/* (fork) 潜能: the level pill's third row (screens/loadoutDeck.js PotBadge) — the mode's potential mark (ui/outer
   potential_bg's shape), muted as the promotion icons: the ranks below in white, the current one's blade in the elite's
   gold, the rest dim; solid fills, so crossing strips do not stack lighter */
.lo-op__potstar { display: block; flex: none; width: max(.24rem, 14px); height: max(.2rem, 12px); } /* the promotion icon's box (.lo-op__phase) */
.lo-op__potstar polygon { fill: #4a5351; }
.lo-op__potstar polygon.is-past { fill: #c3cac7; }
/* the elite promotion icon's own yellow (its filter above turns white into rgb(255, 240, 7), measured 2026-11-09) */
.lo-op__potstar polygon.is-on { fill: rgb(255, 240, 7); }
.lo-op__ribbon { position: absolute; z-index: 2; right: 3px; top: 0; padding: 3px 3px 7px; font-size: max(calc(.11 * var(--t)), 8px); font-weight: 800; line-height: 1.1; writing-mode: vertical-rl;
  color: var(--ice-900); background: var(--ice); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%); }
/* (fork) the name at the card's foot, a size up, the card's full width under the portrait and the column (the
   user's call of 2026-11-08: no gap under them, and a long name breaks between words, not in one) */
.lo-op__meta { grid-row: 2; grid-column: 2 / -1; display: flex; flex-direction: column; align-items: flex-end; gap: max(.03rem, calc(2px * var(--sp-ui, 1))); min-width: 0; }
/* (fork) a long name wraps onto a second line, never cut with … (the user's call of 2026-11-08); the portrait gives way */
.lo-op__name { max-width: 100%; font-size: calc(max(calc(.21 * var(--t)), 13px) * var(--nfit, 1)); font-weight: 800; line-height: 1.15; color: var(--text-hi); text-align: right; text-wrap: balance; }
/* (fork) a name breaks only at its spaces — never inside a word, nor at its hyphen, dot or "·" — in at most two lines, and
   shrinks (--nfit, ui/nameFit.js: the official MultilineBestFit's way) until it fits the card's width (the user's call of
   2026-11-09: "Matterhor/n" at 特大 on a 640×360 phone) */
.lo-op__w { white-space: nowrap; }
/* (fork) the bonds stand down the rail's foot, one under another (the user's call of 2026-11-08) */
.lo-op__bonds { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: max(.04rem, calc(3px * var(--sp-ui, 1))); }
.lo-op__bond { flex: none; display: grid; place-items: center; width: max(.3rem, 18px); height: max(.3rem, 18px); border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .22); }
.lo-op__bond img { width: 70%; height: 70%; object-fit: contain; }
.lo-op.is-standin .lo-op__art img { filter: saturate(.5); }
/* (fork) the card's own column at its right: the skills it has at its top, the elite's modules at its bottom — every
   module as its own button where the card is tall enough (a PC, a tablet), one button stepping through them (pips: how
   many, which one is on) on a short screen (a phone in landscape; the media query below). The card grows by the
   column, so the portrait keeps its width. The buttons shrink with a short card (a phone at 特大) rather than overflow
   it, their icons kept square. */
.lo-op.has-side .lo-op__card { flex: none; width: var(--cw); grid-template-columns: var(--rail) minmax(0, 1fr) var(--side); }
/* (fork) an operator card at its own, explicit width (the card, and its 「详情」 panel while unfolded): a card off screen
   is skipped (content-visibility) — 112 cards and their panels are ~19 000 elements, one layout of all of them ~150 ms
   on a PC — so a resize or a tap's redraw lays out only the cards in view. 「详情」 unfolds by this width (the panel
   inside keeps its own, clipped), the slide itself is transforms (screens/loadout.js slideDetails). The clip margin
   keeps the selected card's glow. */
.lo-op.has-side { --cw: calc(var(--opw) + var(--side) + max(.05rem, 3px)); flex: none; width: var(--cw); content-visibility: auto;
  contain-intrinsic-height: auto 100px; }
/* clipped only while it slides (its panel goes back under the card): a clip on every card made the browser regroup the
   page's compositing layers on every frame of a scroll — the slow frames of a drag at a 4× slowed CPU 133–213 ms with it,
   46–67 ms without (measured 2026-11-08, three runs each) */
.lo-op.has-side.is-sliding { overflow: clip; overflow-clip-margin: max(.2rem, calc(6px * var(--sp-ui, 1))); }
/* (fork) 「展开」's width for every card at once (the deck's mode: the scrollbar settles with the press); the panel inside
   is drawn per card (data-open: screens/loadoutDeck.js slideDetails — near the view at once, the rest when idle) */
.lo-deck.is-details .lo-op.has-side { width: calc(var(--cw) + var(--morew)); }
.lo-op__side { grid-row: 1; grid-column: 3; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: max(.08rem, calc(5px * var(--sp-ui, 1))); min-height: 0; cursor: default; }
.lo-op__skills, .lo-op__mlist, .lo-op__mstep { display: flex; flex-direction: column; align-items: center; gap: max(.04rem, calc(3px * var(--sp-ui, 1))); width: 100%; min-height: 0; flex: 0 1 auto; }
.lo-op__mods { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; min-height: 0; flex: 0 1 auto;
  padding-top: max(.06rem, calc(4px * var(--sp-ui, 1))); }
.lo-op__mods::before { content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 1px; background: var(--line-2); }
.lo-op__mstep { display: none; gap: 2px; }
.lo-op__mstep.is-always { display: flex; }
@media (max-height: 560px) {
  .lo-op__mlist { display: none; }
  .lo-op__mstep { display: flex; }
}
/* (fork) a short landscape phone (≤ 520 px: 640×360 … 844×390): the deck is one row of cards at the deck's full height
   (the user's call of 2026-11-09), so a card keeps its whole design — every module as its own button, as on a taller
   screen. Taller screens keep the two rows above. */
@media (max-height: 520px) {
  .lo-tgrid { grid-template-rows: minmax(0, 1fr); }
  .lo-op__mlist { display: flex; }
  .lo-op__mstep:not(.is-always) { display: none; }
}
.lo-op__side .lo-q { flex: 0 1 auto; width: 100%; height: auto; aspect-ratio: 1; min-height: 0; max-height: var(--side); }
.lo-op__side .lo-q:not(.is-on) { opacity: .5; }
.lo-op__side .lo-q:not(.is-on):hover:not(:disabled) { opacity: .9; }
.lo-op__side .lo-q:disabled { cursor: default; opacity: .35; }
/* (fork) the 时装 view's column (screens/loadoutDeck.js OutfitSide): the operator's own look, then its outfits, as portrait
   icons from the top; the worn one ringed in mint; more than fit scroll within the column */
.lo-op__side--ofit { justify-content: flex-start; gap: max(.05rem, calc(4px * var(--sp-ui, 1))); overflow-y: auto; scrollbar-width: none; }
.lo-op__side--ofit::-webkit-scrollbar { display: none; }
.lo-op__side .lo-q.lo-q--ofit { flex: none; width: 100%; max-height: none; overflow: hidden; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.lo-q--ofit .lo-q__ofit, .lo-q--ofit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lo-q--ofit b { font-size: max(calc(.14 * var(--t)), 10px); color: var(--text-md); }
.lo-q--ofit.is-on { box-shadow: inset 0 0 0 2px var(--mint-400), 0 0 .08rem rgba(89, 244, 202, .45); }
.lo-op__side .lo-sicon--q, .lo-op__side .lo-mglyph--q { width: auto; height: 88%; max-width: 88%; aspect-ratio: 1; }
.lo-op__nomod { font-size: max(calc(.14 * var(--t)), 10px); color: var(--text-dim); }
.lo-op__mpips { display: flex; justify-content: center; gap: 2px; }
.lo-op__mpips i { width: max(.05rem, 3px); height: max(.05rem, 3px); background: rgba(255, 255, 255, .2); }
.lo-op__mpips i.is-on { background: var(--gold-2); }
.lo-op.is-standin .lo-op__side { opacity: .55; }
/* (fork) 「详情」: the skills (descriptions at the elite's level) and every module beside the card, the Detail's own
   blocks drawn smaller. Always drawn (no element added on the toggle), but out of layout while folded (display: none):
   laid out with its card, every card scrolling into view laid out its panel's ~350 elements too, and scrolling stuttered
   (measured 2026-11-08 at a 2–4× slowed CPU). Unfolded (each card's data-open, switched by screens/loadoutDeck.js
   slideDetails: near the view at once, the rest when idle), only the panels near the view are laid out (content-visibility on .lo-op__morein). The
   slide glides the cards in view from their old places, each panel out from under its card (transforms: no layout per
   frame); its content keeps its width (no text reflow) and scrolls on its own. */
.lo-op__more { flex: none; display: block; width: var(--morew); min-height: 0; }
/* (fork) the panel under its card, and the card above it, only while they slide: a positioned, stacked panel and card are
   a layer of their own each, and every frame of a scroll walked all of them (a hit test after each scroll step) —
   with them, a drag's frames in 「展开」 were a third slower (measured 2026-11-08) */
.lo-op.is-sliding > .lo-op__more { position: relative; z-index: 0; }
.lo-op:not([data-open]) > .lo-op__more { display: none; }
.lo-op.has-side.is-sliding .lo-op__card { z-index: 1; } /* above its own panel, which slides out from under it (slideDetails) */
/* the cards sliding (slideDetails) are rendered whole while they move, not as each enters the view */
.lo-op.has-side.is-sliding, .lo-op.is-sliding .lo-op__morein { content-visibility: visible; }
/* (fork) and every card once the page has drawn it whole while idle (screens/loadoutDeck.js warmLater): a scroll then
   only shows what is painted, the compositor's work alone */
.lo-op.has-side[data-warm], .lo-op[data-warm] .lo-op__morein { content-visibility: visible; }
/* (fork) only its own up / down stays in it: a sideways swipe on a panel moves the deck (touch) */
.lo-op__morein { box-sizing: border-box; width: var(--morew); height: 100%; content-visibility: auto; padding: max(.06rem, calc(4px * var(--sp-ui, 1))); overflow-y: auto; overscroll-behavior-y: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; cursor: default;
  background: rgba(16, 20, 19, .94); border: 1px solid rgba(255, 255, 255, .08); border-left: 0; }
/* (fork) sized from outside (the width above, the card's height), so its text is laid out on its own: a change
   anywhere in the deck laid out every panel again, 61–88 ms in 「展开」 against 15 ms contained, and each idle batch of
   panels 70–76 ms against 16–22 ms (the user's Vivaldi, 2319×1358 ×1.5, measured 2026-11-08) */
.lo-op__morein { contain: strict; }
.lo-op__more .lo-skills { gap: max(.04rem, calc(3px * var(--sp-ui, 1))); }
/* (fork) 「展开」's modules are brief (the chosen one's stat bonus and 特性 lines, no title or talents: the detail has
   them — the user's call of 2026-11-08), each line whole (never cut with "…"). The skills keep their descriptions */
.lo-op__more .lo-skill { padding: max(.05rem, calc(3px * var(--sp-ui, 1))) max(.06rem, calc(4px * var(--sp-ui, 1))); gap: max(.06rem, calc(4px * var(--sp-ui, 1))); }
.lo-op__more .lo-sicon--md { width: max(.44rem, 28px); height: max(.44rem, 28px); }
.lo-op__more .lo-skill__name { font-size: max(calc(.15 * var(--t)), 11px); }
.lo-op__more .lo-skill__desc { font-size: max(calc(.13 * var(--t)), 10px); line-height: 1.45; }
.lo-op__more .lo-sec { margin-top: max(.08rem, calc(5px * var(--sp-ui, 1))); }
.lo-op__more .lo-sec__head h3 { font-size: max(calc(.15 * var(--t)), 11px); }
/* (fork) 「展开」's modules are a list, one full-width row each like the skills above (two to a row left a third alone
   on a half row: the user's call of 2026-11-08) */
.lo-op__more .lo-mods { flex-direction: column; flex-wrap: nowrap; gap: max(.04rem, calc(3px * var(--sp-ui, 1))); }
.lo-op__more .lo-mod { flex: none; min-width: 0; max-width: none;
  padding: max(.05rem, calc(3px * var(--sp-ui, 1))) max(.06rem, calc(4px * var(--sp-ui, 1))); gap: max(.06rem, calc(4px * var(--sp-ui, 1))); }
.lo-op__more .lo-mglyph { width: max(.44rem, 28px); height: max(.44rem, 28px); }
.lo-op__more .lo-mod__name { font-size: max(calc(.15 * var(--t)), 11px); }
.lo-op__more .lo-minfo { font-size: max(calc(.13 * var(--t)), 10px); }
.lo-op__none { margin: auto 0; font-size: max(calc(.12 * var(--t)), 9px); color: var(--text-dim); letter-spacing: .2em; }
/* 甄选干员 (自选编队) closing tiers 5 / 6 */
/* an empty slot to fill; a filled one is an operator card (screens/diy.js DiyDeckSlot: DeckOpCard) */
.lo-op--diy.is-empty { flex-direction: column; align-items: center; justify-content: center; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); width: var(--opw); padding: .1rem; font: inherit; color: var(--text-hi);
  cursor: pointer; background: linear-gradient(180deg, rgba(150, 160, 156, .2), rgba(80, 88, 85, .14)); border: 1px solid rgba(255, 255, 255, .16); }
.lo-op--diy.is-empty:hover { border-color: var(--tc); background: linear-gradient(180deg, rgba(170, 180, 176, .26), rgba(90, 98, 95, .18)); }
.lo-diy__frame { position: relative; display: grid; place-items: center; width: 74%; aspect-ratio: 1 / 1.25; color: rgba(255, 255, 255, .78);
  border-left: 2px solid rgba(255, 255, 255, .5); border-right: 2px solid rgba(255, 255, 255, .5); }
.lo-diy__glyph { width: 52%; height: 52%; }
.lo-diy__faces { display: flex; flex-direction: column; gap: 4px; width: 70%; }
.lo-diy__face { display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: cover; background: #1a1f1d; border: 1px solid var(--tc); font-weight: 900; }
.lo-diy__label { font-size: max(calc(.16 * var(--t)), 11px); font-weight: 800; letter-spacing: .1em; }
/* (fork) one card per 自选编队 slot (screens/diy.js DiyDeckSlot): an empty slot to fill, or the pick as a card */
.lo-diy__note { max-width: 100%; font-size: max(calc(.11 * var(--t)), 8px); color: var(--text-lo); text-align: center; }
.lo-diy__bad { width: max(.2rem, 14px); height: max(.2rem, 14px); color: var(--amber); }
.lo-op--diy.is-empty { border-style: dashed; }
.lo-op--diy.is-empty[data-slot] { flex: none; width: calc(var(--opw) + var(--side) + max(.05rem, 3px)); } /* as wide as an operator card */
.lo-op--diy.is-empty.is-bad, .lo-op--diy.is-bad .lo-op__card { border-color: var(--amber); }
/* (fork) a filled slot's 更换 (screens/diy.js DiyDeckSlot): at the rail's foot under the bonds, drawn as the rail's own
   chips (the levels' pill, the bond discs) in the game's mint, a ring and icon (players could not find the grey icon it
   was, 2026-11-10; no glow, the user's call); opens the slot's picker */
.lo-diy__change { flex: none; display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-top: max(.04rem, calc(3px * var(--sp-ui, 1))); padding: 0; font: inherit;
  color: var(--mint-400); cursor: pointer; background: rgba(6, 30, 23, .85); border: 1.5px solid var(--mint-500); border-radius: 999px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.lo-diy__change:hover, .lo-diy__change:focus-visible { color: var(--text-on-mint); border-color: var(--mint-400); background: var(--mint-500); }
.lo-diy__change .icon { width: 62%; height: 62%; }
/* its 清空 (✕): a disc in the swap button's style (dark fill, coloured ring and icon), in the danger red (.btn--danger's),
   inside the card at the top of the skill / outfit column (the user's call of 2026-11-10), as big as the swap disc. The
   column steps down by the disc, so it never covers or takes a tap of the column's first button */
.lo-diy--filled { --xd: var(--rail); --xtop: max(.06rem, 3px); }
.lo-diy--filled .lo-op__side { padding-top: calc(var(--xd) + var(--xtop) + 2px); }
.lo-diy__clear { position: absolute; z-index: 3; top: var(--xtop); right: calc(var(--xtop) + (var(--side) - var(--xd)) / 2); display: grid; place-items: center;
  width: var(--xd); aspect-ratio: 1; padding: 0; font: inherit; color: #ec5a4a; cursor: pointer; background: rgba(34, 8, 6, .85); border: 1.5px solid #c83a2c;
  border-radius: 999px; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.lo-diy__clear::before { content: ''; position: absolute; inset: -4px -4px 0; border-radius: 999px; } /* a bigger tap target, not over the column */
.lo-diy__clear:hover, .lo-diy__clear:focus-visible { color: #fff; border-color: #e0574a; background: #a3241a; }
.lo-diy__clear .icon { width: 62%; height: 62%; }
/* its 原型 / 已持有 tag, flat, beside the slot's name ("6阶 自选") above the operator's */
.lo-diy__meta { display: flex; align-items: center; gap: max(.04rem, calc(4px * var(--sp-ui, 1))); }
.lo-op__rail .lo-diy__bad { width: 70%; height: auto; }
.lo-diy--filled .lo-diy__label { font-size: max(calc(.11 * var(--t)), 8px); font-weight: 700; color: var(--text-lo); letter-spacing: .04em; }
.lo-diy__n { font-size: max(calc(.3 * var(--t)), 16px); color: var(--text-lo); }
.lo-diy__n b { color: var(--text-hi); font-size: max(calc(.4 * var(--t)), 20px); }

/* ---- the detail drawer ---- */
.lo-drawer { position: absolute; left: 0; top: 0; bottom: 0; z-index: 4; width: var(--drawer-w); display: flex; flex-direction: column;
  background: #0e1211; border-right: 1px solid var(--line-2); box-shadow: .1rem 0 .4rem rgba(0, 0, 0, .55);
  animation: lo-drawer-slide 320ms cubic-bezier(.16, .84, .3, 1) backwards; }
@keyframes lo-drawer-slide { from { transform: translateX(-.6rem); opacity: 0; } }
.lo-drawer__close { flex: none; display: flex; align-items: center; gap: .06rem; height: max(.42rem, 30px); padding: 0 .16rem; font: inherit;
  font-size: max(calc(.15 * var(--t)), 11px); font-weight: 700; color: var(--text-md); background: #161b19; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.lo-drawer__close:hover { color: var(--mint-400); }
.lo-drawer__close .icon { width: max(.18rem, 12px); height: max(.18rem, 12px); }
.lo-drawer .lo-detail { flex: 1 1 auto; min-height: 0; border: 0; box-shadow: none; }
/* (fork) the drawer on a touch screen: its own controls at least 32 px (the user's call of 2026-11-09: overlapped and hard
   to use on a phone). The shared Button and the voice squares keep their look; only their height grows. */
.sp-coarse .lo-drawer__close { height: max(.42rem, 32px); }
.sp-coarse .lo-drawer .lo-oswitch button { min-height: 32px; }
.sp-coarse .lo-drawer .lo-seg button { min-width: 32px; min-height: 32px; }
.sp-coarse .lo-drawer .vl-pick__sq { min-width: 32px; height: 32px; }
.sp-coarse .lo-drawer .ofit-io .btn { min-height: 32px; }
.sp-coarse .lo .lo-drawer .lo-dhead__reset { height: max(.36rem, 32px); }
/* (fork) a short landscape phone (≤ 520 px tall), same call: half the screen wide (320–400 px) instead of 256 px, and the
   whole detail scrolls as one, head first, so a section gets the drawer's height instead of the ~75–120 px left under a
   fixed head. 调配 / 时装 move up into the 收起 row (the row's fill is painted on the drawer, so 收起 itself can shrink to
   its label), and 恢复默认 goes under the name instead of over it. Screens with room keep the fixed head. */
@media (max-height: 520px) {
  .lo--deck, .diy-pick { --drawer-w: min(400px, max(6.4rem, 50vw)); }
  .lo-drawer { --lo-close-h: 36px;
    background: linear-gradient(var(--line), var(--line)) 0 calc(var(--lo-close-h) - 1px) / 100% 1px no-repeat,
      linear-gradient(#161b19, #161b19) 0 0 / 100% var(--lo-close-h) no-repeat, #0e1211; }
  .lo-drawer__close, .sp-coarse .lo-drawer__close { align-self: flex-start; height: var(--lo-close-h); background: none; border-bottom: 0; }
  .lo-drawer .lo-detail { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    scrollbar-color: var(--line-3) transparent; }
  .lo-drawer .lo-detail__body { flex: none; min-height: auto; overflow: visible; }
  .lo-drawer .lo-dtop { position: absolute; top: 0; right: 0; height: var(--lo-close-h); align-items: center; padding: 0 .1rem; }
  .lo-drawer .lo-dhead__reset { position: static; grid-column: 1 / -1; justify-self: start; }
  .lo-drawer .lo-sec__head { flex-wrap: wrap; row-gap: .04rem; }
  /* 局内数值's labels wrap instead of ending in "…" (「Attack Interval」 at 320 px); an outfit card's 穿戴中 takes its own
     place at the card's right instead of lying over the name, and its series line wraps */
  .lo-drawer .dstat__k { white-space: normal; }
  .lo-drawer .ofit-card__on { position: static; flex: none; align-self: flex-start; margin-left: auto; }
  .lo-drawer .ofit-card__series { white-space: normal; }
}

/* ---- bottom bar ---- */
.lo-bbar { flex: none; display: flex; align-items: center; gap: .3rem; height: max(.8rem, 32px, calc(46px * var(--sp-ui, 1))); padding: 0 .36rem;
  background: linear-gradient(180deg, rgba(10, 12, 11, .7), rgba(6, 8, 7, .96)); border-top: 1px solid var(--line); }
/* the room above the tiers holds their 自选 badge (.lo-bbar__diy, max(-.2rem, calc(-14px * var(--sp-ui, 1))) above a tier: §35.51, its top was cut by
   this scroller's edge at .14rem) */
.lo-bbar__tiers { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .04rem; overflow-x: auto; scrollbar-width: none; padding-top: max(.24rem, calc(17px * var(--sp-ui, 1))); }
.lo-bbar__tier { position: relative; flex: none; display: inline-flex; align-items: center; gap: .05rem; height: max(.42rem, 28px); padding: 0 max(.16rem, calc(8px * var(--sp-ui, 1))); font: inherit;
  font-size: max(calc(.15 * var(--t)), 11px); color: var(--text-lo); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.lo-bbar__tier + .lo-bbar__tier::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.lo-bbar__tier:hover:not(:disabled) { color: var(--text-hi); }
.lo-bbar__tier.is-on { color: var(--text-hi); border-bottom-color: var(--mint-500); }
.lo-bbar__tier:disabled { opacity: .35; cursor: default; }
.lo-bbar__roman { display: grid; place-items: center; min-width: max(.3rem, 18px); height: max(.26rem, 16px); padding: 0 2px; font-size: max(calc(.13 * var(--t)), 9px); font-weight: 800;
  border: 1px solid currentColor; border-radius: 3px; }
.lo-bbar__diy { position: absolute; left: 50%; top: max(-.2rem, calc(-14px * var(--sp-ui, 1))); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 1px; padding: 0 4px;
  font-size: max(calc(.12 * var(--t)), 9px); color: var(--text-md); background: rgba(255, 255, 255, .1); border-radius: 999px; }
.lo-bbar__diy .icon { width: max(.13rem, 9px); height: max(.13rem, 9px); }
/* (fork) 「自选」's glyph in the numeral's box: the box narrow screens keep when the words go */
.lo-bbar__glyph .icon { width: max(.15rem, 10px); height: max(.15rem, 10px); }
/* the match's loadout is locked: said in the bar, which every width and 快速配置 keep on screen */
.lo-bbar__lock { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: .06rem; padding: 0 max(.12rem, calc(6px * var(--sp-ui, 1))); height: max(.4rem, 26px);
  font-size: max(calc(.14 * var(--t)), 10px); font-weight: 700; color: var(--amber); background: rgba(246, 163, 41, .12); border: 1px solid rgba(246, 163, 41, .4); white-space: nowrap; }
.lo-bbar__lock > span { overflow: hidden; text-overflow: ellipsis; }
.lo-bbar__lock .icon { flex: none; width: max(.16rem, 11px); height: max(.16rem, 11px); }

/* ---- ⓘ 卡片视图说明 (the remake's own tips: not the official 调度手册 chapter) ---- */

@media (max-width: 1100px) {
  .lo-top--deck .lo-count, .lo-top--deck .lo-sync { display: none; }
  .lo-top__note { max-width: min(4.6rem, 100%); }
}
@media (max-width: 900px) {
  .lo-ownbtn__k, .lo-dswitch__txt small { display: none; }
  .lo-tray__btn > span { display: none; }
  .lo-top--deck .lo-top__center { display: none; }
  .lo-top--deck { grid-template-columns: max-content minmax(0, 1fr); }
  .lo-bbar__tier > span:not(.lo-bbar__roman):not(.lo-bbar__diy) { display: none; }
}
@media (max-height: 520px) {
  .lo-deck { padding-top: .12rem; padding-bottom: .1rem; gap: .2rem; }
  .lo-tgrid { gap: .1rem; }
  /* (fork) 甄选干员's frame, its count and a filled slot's label keep their full size: the one-row deck (above) gives
     the card the deck's height, where two rows had cut its 0/2 off (§35.51) */
}
@media (prefers-reduced-motion: reduce) { .lo-drawer, .lo-pop { animation: none; } .lo-op__card { transition: none; } }

/* ---- 转场 (PR #643 / PR #811, like the hub's screens) — the card view only (maintainer's decision, 2026-10-21): the
   default list keeps its 200 ms lo-in above, and its ≤1000 px roster / detail toggle (display: none) replays nothing.
   On opening the card view the backdrop, the top bar, the tier groups one after another (from the right) and the bottom
   bar come up; 干员持有 / 自选编队 come up when opened from the deck. Timings and order [ASSUMED] (no official source);
   opacity / transform only. The drawer's slide is with .lo-drawer above. ---- */
.lo--deck { --tr-ease: cubic-bezier(.16, .84, .3, 1); }
@keyframes lo-tr-fade { from { opacity: 0; } }
@keyframes lo-tr-right { from { opacity: 0; transform: translateX(.36rem); } }
@keyframes lo-tr-rise { from { opacity: 0; transform: translateY(.22rem); } }
.lo--deck .lo__bg { animation: lo-tr-fade 340ms ease-out 140ms backwards; }
.lo--deck .lo-top { animation: lo-tr-fade 260ms ease-out 170ms backwards; }
.lo--deck .lo-top__center { animation: lo-tr-right 400ms var(--tr-ease) 200ms backwards; }
.lo--deck .lo-top__right { animation: lo-tr-right 420ms var(--tr-ease) 250ms backwards; }
.lo--deck .lo-note { animation: lo-tr-fade 300ms ease-out 230ms backwards; }
.lo--deck .lo-tgroup { animation: lo-tr-right 440ms var(--tr-ease) backwards; animation-delay: calc(240ms + var(--g, 0) * 70ms); }
.lo--deck .lo-tgroup:nth-child(2) { --g: 1; }
.lo--deck .lo-tgroup:nth-child(3) { --g: 2; }
.lo--deck .lo-tgroup:nth-child(4) { --g: 3; }
.lo--deck .lo-tgroup:nth-child(5) { --g: 4; }
.lo--deck .lo-tgroup:nth-child(6) { --g: 5; }
.lo--deck .lo-tgroup:nth-child(n+7) { --g: 6; }
.lo--deck .lo-bbar { animation: lo-tr-rise 420ms var(--tr-ease) 380ms backwards; }
/* (fork) back from a 自选编队 slot's picker page: the deck returns where it was, without its opening again */
.lo--deck.lo--back .lo-tgroup, .lo--deck.lo--back .lo-bbar { animation: none; }
.lo--deck .own { animation: lo-tr-fade 300ms ease-out 150ms backwards; }
@media (prefers-reduced-motion: reduce) {
  .lo--deck .lo__bg, .lo--deck .lo-top, .lo--deck .lo-top__center, .lo--deck .lo-top__right, .lo--deck .lo-note, .lo--deck .lo-tgroup, .lo--deck .lo-bbar, .lo--deck .own { animation: none; }
}
