/* ==========================================================================================
   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: var(--bg-0);
  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; after upstream 0.3.3): the detail column and the panel's horizontal padding change at 1100 px. */
  --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, #0f1312, #090b0a);
}
/* 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 tabs stay centred while both sides fit in equal halves beside them; a wider side keeps its own width and shifts
   the tabs instead (0.2.0: three tabs and the co-op countdown ran the right column into the tabs on phones and in
   English), and only when nothing else is left does the tab strip scroll (.lo-tabs). */
.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, 48px); 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__icon { width: max(.3rem, 16px); height: max(.3rem, 16px); object-fit: contain; color: var(--mint-500); }
.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; }
.lo-sync { font-size: max(.14rem, 10px); padding: .03rem .1rem; border: 1px solid var(--line-2); color: var(--text-lo); white-space: nowrap; letter-spacing: .04em; }
.lo-sync.is-ok { color: var(--mint-400); border-color: var(--mint-800); }
.lo-sync.is-busy { color: var(--text-md); }
.lo-sync.is-warn { color: var(--amber); border-color: rgba(246, 163, 41, .45); }
.lo-sync.is-bad { color: var(--red-premium); border-color: rgba(255, 84, 84, .45); }

.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; }

/* ---- body layout -------------------------------------------------------------------------------------------------- */
.lo-body {
  flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--lo-detail-w));
  gap: var(--lo-gap-x); padding: .18rem var(--lo-pad-x) .22rem;
}
.lo-roster { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: .12rem; }
.lo-detail-wrap { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.lo-detail-back { display: none; }

/* ---- 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; }

/* ---- roster: one list, one row per operator (0.2.2) ------------------------------------------------------------------------ */
/* The quick choices of PR #301 (by @farridge) as ONE list instead of three columns of cards (the owner's decision of
   2026-10-08: 「三个竖排有点乱影响观感」): every row has the same four columns — the operator (portrait, name, bonds), the
   skills, the elite's modules, 潜能 / 练度 — aligned under a sticky head row, so the eye runs down a column. Sizes: --q a
   quick button (a skill / module), --art the portrait; a coarse pointer gets 40 px targets. */
.lo-list {
  --q: max(.4rem, 32px); --qg: max(.05rem, 4px); --art: max(.52rem, 40px);
  --cols: minmax(max(2.2rem, 110px), max(3.2rem, 260px)) calc(3 * var(--q) + 2 * var(--qg)) calc(4 * var(--q) + 3 * var(--qg)) max(2.2rem, 160px);
  flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 0 .06rem .2rem 0; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent;
}
.sp-coarse .lo-list { --q: max(.44rem, 40px); }
.lo-list__head, .lo .lo-card { display: grid; grid-template-columns: var(--cols); justify-content: start; align-items: center; column-gap: max(.12rem, 8px); }
/* (the head has the rows' box — the same borders, transparent, and padding — so its columns are the rows' to the pixel) */
.lo-list__head {
  position: sticky; top: 0; z-index: 2; padding: .05rem .1rem .05rem .07rem; border: 1px solid transparent; border-left-width: 3px;
  font-size: max(.12rem, 9px); font-weight: 700; letter-spacing: .12em; color: var(--text-dim);
  background: linear-gradient(180deg, #0d1110 70%, rgba(13, 17, 16, .85)); box-shadow: inset 0 -1px 0 var(--line);
}
.lo-list__h small { margin-left: .05rem; font-weight: 400; letter-spacing: .04em; color: var(--gold-2); opacity: .8; }
.lo-list__rows { display: flex; flex-direction: column; gap: max(.04rem, 3px); padding-top: max(.05rem, 4px); }
.lo-empty { padding: .4rem; text-align: center; font-size: max(.16rem, 11px); }

.lo .lo-card {
  --tc: var(--tier-1);
  position: relative; min-width: 0; padding: max(.05rem, 4px) .1rem max(.05rem, 4px) .07rem;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-left: 3px solid var(--tc);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lo-card--t1 { --tc: var(--tier-1); } .lo-card--t2 { --tc: var(--tier-2); } .lo-card--t3 { --tc: var(--tier-3); }
.lo-card--t4 { --tc: var(--tier-4); } .lo-card--t5 { --tc: var(--tier-5); } .lo-card--t6 { --tc: var(--tier-6); }
.lo .lo-card:hover { background: rgba(255, 255, 255, .045); border-color: var(--line-3); border-left-color: var(--tc); }
.lo .lo-card.is-sel { background: linear-gradient(90deg, rgba(78, 216, 175, .1), rgba(78, 216, 175, .02) 60%); border-color: var(--mint-700); border-left-color: var(--tc); box-shadow: 0 0 0 1px var(--mint-500) inset; }
.lo-card button:focus-visible, .lo-card select:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 1px; }
.lo-card__pick { display: flex; align-items: center; gap: max(.1rem, 6px); min-width: 0; padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.lo-card__art { position: relative; flex: none; width: var(--art); height: var(--art); overflow: hidden; background: #1b201e; border: 1px solid var(--line-2); }
.lo-card__art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lo-card__glyph { display: grid; place-items: center; width: 100%; height: 100%; font-size: max(.24rem, 16px); font-weight: 900; color: var(--text-dim); }
.lo-card__tier { position: absolute; left: 1px; top: 1px; z-index: 1; transform-origin: 0 0; transform: scale(.8); }
.lo-card__id { display: flex; flex-direction: column; gap: max(.03rem, 2px); min-width: 0; }
.lo-card__name { font-size: max(.17rem, 12px); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-card__bonds { display: flex; flex-wrap: wrap; gap: max(.04rem, 3px); min-height: max(.16rem, 12px); }
.lo-card__bond, .lo-card__bonds .lo-bond__dot { width: max(.18rem, 13px); height: max(.18rem, 13px); object-fit: contain; }
.lo-card__flag { position: absolute; right: 0; top: 0; z-index: 1; width: max(.16rem, 10px); height: max(.16rem, 10px); background: linear-gradient(225deg, var(--mint-400) 50%, transparent 50%); pointer-events: none; }
/* 0.2.0 补位: a chess marked 未持有 on the 干员持有 tab — its stand-in fights with a fixed skill and no 潜能 / 练度; the choices
   here apply once it is owned again */
.lo-card__sub { align-self: flex-start; padding: 0 .04rem; font-size: max(.11rem, 8px); font-weight: 700; line-height: 1.4; color: var(--ice-900); background: var(--ice); }
.lo .lo-card.is-standin .lo-card__skills, .lo .lo-card.is-standin .lo-card__mods, .lo .lo-card.is-standin .lo-cult { opacity: .55; }
.lo-locknote--standin { color: var(--ice); }

.lo-card__skills, .lo-card__mods { display: flex; align-items: center; gap: var(--qg); min-width: 0; }
.lo-card__mods { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.lo-q {
  position: relative; flex: none; display: grid; place-items: center; width: var(--q); height: var(--q); padding: 0;
  font: inherit; color: var(--text-lo); background: none; border: 0; cursor: pointer; touch-action: manipulation;
}
.lo-q--empty { border: 1px dashed rgba(255, 255, 255, .07); cursor: default; }
.lo-q:not(.is-on):not(.lo-q--empty) { opacity: .62; }
.lo-q:not(.is-on):not(.lo-q--empty):hover { opacity: 1; }
.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); }

/* 潜能 / 练度 (screens/cultivation.js): two compact selects side by side in the row's last column; at the defaults (潜能 6,
   精英2 Lv.60 — the same on every row) they stay quiet, a changed one is mint */
.lo-cult { display: flex; align-items: center; gap: max(.04rem, 3px); min-width: 0; }
.lo .lo-cult .lo-select { min-height: 0; height: max(.32rem, 22px); padding-left: 0; border-color: transparent; background: rgba(255, 255, 255, .03); }
.lo .lo-cult .lo-select:hover, .lo .lo-cult .lo-select:focus-within { border-color: var(--line-3); }
.lo .lo-cult .lo-select select { width: 100%; min-width: 0; padding: 0 max(.2rem, 14px) 0 max(.06rem, 4px); font-size: max(.14rem, 10px); color: var(--text-lo); }
.lo-cult__pot { flex: 0 0 auto; }
.lo-cult__tier { flex: 1 1 auto; min-width: 0; }
.lo .lo-cult .lo-select.is-off { border-color: var(--mint-700); background: rgba(78, 216, 175, .08); }
.lo .lo-cult .lo-select.is-off select { color: var(--mint-400); font-weight: 700; }
.sp-coarse .lo .lo-cult .lo-select { height: max(.32rem, 28px); }

/* 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; }
/* the label column fits the Korean 잠재능력 / 육성도 on one line (4 characters at .13rem + .08em spacing ≈ .56rem) */
.lo-cult__row { display: grid; grid-template-columns: max(.62rem, 46px) minmax(0, 1fr); align-items: center; gap: .08rem; }
.lo-cult__k { font-size: max(.13rem, 10px); color: var(--text-dim); letter-spacing: .08em; white-space: nowrap; }
.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); letter-spacing: -.06em; }
.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, 38px); height: max(.72rem, 38px); }
.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); letter-spacing: -.06em; 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, 60px) 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; }

.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; }
.lo-skill__head { display: flex; align-items: center; gap: .08rem; flex-wrap: wrap; }
.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 { font-size: max(.19rem, 12px); font-weight: 700; color: var(--text-hi); }
.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); letter-spacing: -.06em; 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 { min-width: 0; display: flex; flex-direction: column; gap: .01rem; }
.lo-mod__type { font-family: var(--font-num); font-size: max(.12rem, 9px); letter-spacing: .1em; color: var(--text-dim); }
.lo-mod__name { font-size: max(.16rem, 11px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-mod__def { position: absolute; right: .04rem; top: .04rem; }

.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); letter-spacing: -.06em; 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, 190px); }
.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, 56px); }
.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; }

/* ---- tabs: 干员调配 / 干员持有 (0.2.0 补位) ---------------------------------------------------------------------------- */
.lo-tabs { display: flex; align-items: stretch; gap: .04rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lo-tab {
  display: inline-flex; align-items: center; gap: .08rem; padding: .02rem .16rem; font: inherit; font-size: max(.24rem, 13px); font-weight: 900;
  letter-spacing: .12em; line-height: 1.2; color: var(--text-lo); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  touch-action: manipulation; white-space: nowrap;
}
.lo-tab .lo-top__icon { width: max(.24rem, 14px); height: max(.24rem, 14px); }
.lo-tab:hover { color: var(--text-hi); }
.lo-tab.is-on { color: var(--text-hi); border-bottom-color: var(--mint-500); }
.lo-tab__n { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .3em; font-size: .62em; font-weight: 700; letter-spacing: 0; color: var(--ice-900); background: var(--ice); border-radius: 1em; }

/* ---- 干员持有 (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, 270px), 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; }
}

/* ---- 自选编队 (screens/diy.js): the twelve DIY slots as the official lineup, the tier picker (operator list + detail) -- */
.diy { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .12rem; padding: .16rem .3rem .2rem; }
/* the lead on one line (its long text is the title — maintainer decision 2026-11-19, so both rows fit a desktop screen) */
.diy .own__lead { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diy__body { 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; }
/* The lineup (DiyLineup; the official auto_chess_deploy_diy_lineup_state panel, research of 2026-11-19): canvas units
   times --lu. Origin = row_5's top left; the whole is 958×547.5 (the tag's −40 / −21.5 overhang to the last slot's right
   and the Ⅵ slots' bottom). --lu is the HUD unit; screens/diy.js DiyPanel sets it in px to the body's room when that
   takes no more than 15 % off (else the body scrolls), and on a phone (the fold below) always — both rows on screen. */
.diy-lineup {
  --lu: var(--ui-u);
  position: relative; flex: none; width: calc(958 * var(--lu)); height: calc(547.5 * var(--lu)); margin: 0 auto;
}
.diy-lineup__in { position: absolute; left: calc(40 * var(--lu)); top: calc(21.5 * var(--lu)); }
.diy-lrow { position: absolute; left: 0; top: 0; width: calc(860 * var(--lu)); height: calc(250 * var(--lu)); --lc: #ffd600; }
.diy-lrow[data-tier="6"] { top: calc(270 * var(--lu)); --lc: #ff7c00; }
/* img_tag_bg: pop_diy_level_tag_bg (white) × the tier's colour, stretched (Simple) */
.diy-lrow__band { position: absolute; left: calc(6 * var(--lu)); top: 0; width: calc(857 * var(--lu)); height: calc(250 * var(--lu)); background: var(--lc);
  -webkit-mask: var(--dl-band, linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .05))) 0 0 / 100% 100% no-repeat;
  mask: var(--dl-band, linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .05))) 0 0 / 100% 100% no-repeat; }
.diy-lrow__tag { position: absolute; left: calc(-40 * var(--lu)); top: calc(-21.5 * var(--lu)); width: calc(146 * var(--lu)); height: calc(277 * var(--lu)); pointer-events: none;
  background: var(--dl-tag, none) 0 0 / 100% 100% no-repeat; }
.diy-lrow__tag.is-plain { display: grid; place-items: center; font: 700 calc(110 * var(--lu)) / 1 var(--font-num); color: var(--lc); font-style: normal; }
/* a slot (slot_list: HorizontalLayoutGroup, spacing 20): 123×266 from (80 + 143·i, −10) */
.diy-slot { position: absolute; top: calc(-10 * var(--lu)); left: calc((80 + 143 * var(--i, 0)) * var(--lu)); width: calc(123 * var(--lu)); height: calc(266 * var(--lu)); }
/* empty_content/img_dark_bg: pop_diy_item_add (138×255 at −7.5, 10.5) */
.diy-slot__fill { all: unset; box-sizing: border-box; position: absolute; left: calc(-7.5 * var(--lu)); top: calc(10.5 * var(--lu)); width: calc(138 * var(--lu)); height: calc(255 * var(--lu));
  display: grid; place-items: center; color: var(--text-lo); cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--dl-add, rgba(255, 255, 255, .03)) 0 0 / 100% 100% no-repeat; }
.diy-lineup:not([style*="--dl-add"]) .diy-slot__fill { border: 1px dashed var(--line-3); }
.diy-slot__fill .icon { width: calc(40 * var(--lu)); height: calc(40 * var(--lu)); }
.diy-slot__fill:focus-visible { outline: 2px solid var(--mint-400); outline-offset: -2px; }
@media (hover: hover) { .diy-slot__fill:hover { filter: brightness(1.2); } }
/* the card (ui/diyCard.js, css/screens/diychoose.css) at the slot's own 123 width (card_view_parent stretches it), so what
   obj_down_info_part anchors right — rarity, name, bonds — sits 8.5 further left than on the 3/3 row's 140 card; the texts
   on their official centres (txt_char_name 102.23×20 at y 206, img_rarity 56×13 at y 187) with their own line box */
.diy-slot .dccard { position: absolute; left: calc(-8.5 * var(--lu)); top: 0; --u: var(--lu); }
.diy-slot .dccard__name { right: calc(18 * var(--lu)); width: calc(102.23 * var(--lu)); top: calc(206 * var(--lu)); line-height: normal; transform: translateY(-50%); }
.diy-slot .dccard__bonds { right: calc(18.5 * var(--lu)); }
.diy-slot .dccard__stars { right: calc(17.4 * var(--lu)); top: calc(187 * var(--lu)); transform: translateY(-50%); line-height: normal; font-size: calc(12 * var(--lu)); letter-spacing: calc(-2.5 * var(--lu)); white-space: nowrap; }
/* a stored pick this version cannot field (sanitizeDiyPicks): a warning corner, its text as the title */
.diy-slot__bad { position: absolute; right: calc(-4 * var(--lu)); top: calc(4 * var(--lu)); z-index: 2; display: grid; place-items: center; width: calc(26 * var(--lu)); height: calc(26 * var(--lu));
  color: var(--amber); background: rgba(0, 0, 0, .75); border-radius: 50%; }
.diy-slot__bad .icon { width: 70%; height: 70%; }
/* the phone fold (DiyFold, look 가 — maintainer decision 2026-11-19): only where the screen is a phone held sideways */
.diy__fold { display: none; }
.diy-fold { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; gap: 3px; width: 100%; height: 100%; padding: 12px 8px 10px 20px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px), linear-gradient(180deg, #2b302f 0%, #1c201f 55%, rgba(20, 24, 23, .2) 100%); }
.diy-fold[aria-expanded="true"] { background: repeating-linear-gradient(90deg, rgba(78, 216, 175, .06) 0 1px, transparent 1px 3px), linear-gradient(180deg, #23332e 0%, #18221f 60%, rgba(20, 24, 23, .2) 100%); }
.diy-fold:focus-visible { outline: 2px solid var(--mint-400); outline-offset: -2px; }
.diy-fold__marks { position: absolute; left: 4px; top: 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--mint-400); font-size: 9px; line-height: 1.25; }
.diy-fold__marks b { font-size: 12px; }
.diy-fold__marks i { font-style: normal; }
.diy-fold__en { position: absolute; left: 3px; bottom: 30px; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 7px / 1 'Novecento Wide', 'Bender', var(--font-num); letter-spacing: .14em; color: rgba(78, 216, 175, .45); white-space: nowrap; }
.diy-fold__frame { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 9px 6px 6px; border: 1px solid rgba(78, 216, 175, .55); border-right-color: transparent; border-bottom-color: transparent; }
.diy-fold__frame::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-right: 1px solid rgba(78, 216, 175, .55); border-bottom: 1px solid rgba(78, 216, 175, .55); }
.diy-fold__no { position: absolute; left: 3px; top: 1px; font: 700 6px / 1 'Bender', var(--font-num); color: rgba(78, 216, 175, .7); }
.diy-fold__k { font-size: 9px; font-weight: 700; color: var(--text-dim); letter-spacing: .04em; }
.diy-fold__v { font-size: 12px; font-weight: 700; color: var(--mint-400); line-height: 1.3; margin-bottom: 3px; overflow-wrap: anywhere; }
.diy-fold__v.is-dim { color: var(--text-lo); font-weight: 400; }
.diy-fold__more { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 5px; border-top: 1px solid rgba(78, 216, 175, .35); font-size: 10px; color: var(--text-hi); }
.diy-fold__more i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--text-lo); }
.diy-fold[aria-expanded="true"] .diy-fold__more i { transform: rotate(180deg); }
@media (max-height: 560px) {
  .diy { display: grid; grid-template-columns: max(1.4rem, 96px) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: max(.1rem, 8px); row-gap: 0; }
  .diy__fold { display: flex; grid-column: 1; grid-row: 1 / -1; align-self: stretch; min-height: 0; }
  .diy > .own__bar, .diy > .diy-presets { display: none; grid-column: 2; z-index: 6; }
  .diy > .diy__body { grid-column: 2; grid-row: 1 / -1; }
  /* opened, the top floats over the lineup's top (like the 关联策略 grid: opening never pushes the slots) */
  .diy.is-fold-open > .own__bar { display: flex; grid-row: 1; padding: 6px 10px 2px; background: rgba(10, 13, 12, .97); border: 1px solid var(--mint-700); border-bottom: 0; }
  .diy.is-fold-open .own__lead { display: block; font-size: 11px; }
  .diy.is-fold-open > .diy-presets { display: flex; grid-row: 2; align-self: start; padding: 4px 10px 8px; background: rgba(10, 13, 12, .97); border: 1px solid var(--mint-700); border-top: 0; box-shadow: 0 8px 18px rgba(0, 0, 0, .7); }
}
/* 阵营预设 bar (screens/diy.js DiyPresetBar, ui/diyPresets.js): 不使用预设 + the eight chat factions; a saved preset filled,
   an empty one dashed, the linked one ringed */
.diy-presets { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .06rem; }
.diy-presets__k { font-size: max(.14rem, 11px); font-weight: 700; color: var(--text-lo); margin-right: .04rem; }
.diy-preset {
  display: inline-flex; align-items: center; gap: .05rem; height: max(.34rem, 26px); padding: 0 .1rem;
  border: 1px dashed var(--line-3); border-radius: .03rem; background: rgba(0, 0, 0, .3);
  color: var(--text-lo); font-size: max(.14rem, 11px); font-weight: 700; white-space: nowrap; opacity: .7;
}
.diy-preset.has-preset { border-style: solid; border-color: var(--fac); color: var(--fac); background: rgba(255, 255, 255, .05); opacity: 1; }
.diy-preset.is-on { opacity: 1; border-style: solid; border-color: var(--fac, var(--mint-400)); box-shadow: inset 0 0 0 1px var(--fac, var(--mint-400)); background: rgba(255, 255, 255, .1); color: var(--fac, var(--mint-400)); }
.diy-preset--none.is-on { color: var(--mint-400); }
.diy-preset .chat__facico { width: max(.2rem, 15px); height: max(.2rem, 15px); }
.diy-presets__del { margin-left: .04rem; }
.diy-presets__hint { flex-basis: 100%; margin: 0; font-size: max(.13rem, 10px); color: var(--text-dim); }
@media (max-width: 760px) {
  .diy-presets__hint, .diy-presets__k { display: none; }
  .diy-preset span { display: none; }
  .diy-preset--none { padding: 0 .08rem; }
}
/* 전략별 선발 프리셋 (screens/diy.js PresetBandLinks): the strategies applying the roster shown (icon + name, × ; the dashed
   推荐 ones by recommendation), and 关联策略 — a grid of every strategy's icon floating over the tab (fixed, placed by the
   script under or above the button), each a toggle: ✓ linked here (dashed: by recommendation), dimmed with the other
   roster's faction icon when another applies it (maintainer decision 2026-10-13) */
/* on the preset chips' line, at its right end (maintainer decision 2026-11-19: a row less above the lineup) */
.diy-links { flex-basis: auto; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .05rem; }
.diy-links__k { font-size: max(.13rem, 10px); font-weight: 700; color: var(--text-lo); margin-right: .04rem; }
.diy-link { display: inline-flex; align-items: center; gap: .05rem; height: max(.3rem, 24px); padding: 0 .02rem 0 .03rem;
  font-size: max(.13rem, 10px); color: var(--text-hi); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.diy-link .bandicon { --bi: max(.24rem, 18px); }
.diy-link.is-rec { color: var(--ice); border-style: dashed; border-color: rgba(159, 212, 255, .45); background: none; }
.diy-link small { font-size: max(.11rem, 9px); color: var(--text-lo); }
.diy-link__x { padding: 0 .06rem; border: 0; background: none; color: var(--text-lo); font-size: max(.16rem, 12px); line-height: 1; }
.diy-link__x:hover { color: var(--text-hi); }
.diy-links__none { font-size: max(.12rem, 10px); color: var(--text-dim); }
.diy-links__add { display: inline-flex; align-items: center; gap: .05rem; height: max(.3rem, 24px); padding: 0 .08rem; font-size: max(.13rem, 10px);
  color: var(--text-lo); background: var(--bg-1); border: 1px solid var(--line-2); }
.diy-links__add .icon { width: max(.14rem, 11px); height: max(.14rem, 11px); color: var(--mint-400); }
.diy-links__add:hover, .diy-links__add[aria-expanded="true"] { border-color: var(--mint-700); color: var(--text-hi); }
.diy-links__caret { width: 0; height: 0; border-left: .05rem solid transparent; border-right: .05rem solid transparent; border-top: .06rem solid var(--text-lo); }
.diy-links__add[aria-expanded="true"] .diy-links__caret { transform: rotate(180deg); }
.diy-links__grid { position: fixed; z-index: 30; visibility: hidden; overflow-y: auto; display: grid; grid-template-columns: repeat(8, max(.62rem, 46px));
  gap: .04rem; padding: .04rem; background: rgba(8, 11, 10, .98); border: 1px solid var(--mint-700); box-shadow: 0 .08rem .24rem rgba(0, 0, 0, .6); }
.diy-band { position: relative; display: flex; flex-direction: column; align-items: center; gap: .02rem; min-width: 0; padding: .03rem 0 .02rem;
  font-size: max(.11rem, 9px); color: var(--text-hi); background: rgba(255, 255, 255, .03); border: 1px solid transparent; }
.diy-band .bandicon { --bi: max(.44rem, 32px); }
.diy-band__name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.diy-band:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-3); }
.diy-band.is-here { border-color: var(--mint-400); box-shadow: inset 0 0 0 1px var(--mint-400); background: rgba(78, 216, 175, .1); }
.diy-band.is-rec { border-style: dashed; box-shadow: none; }
.diy-band__check { position: absolute; left: .02rem; top: .02rem; width: max(.14rem, 11px); height: max(.14rem, 11px); color: var(--mint-400);
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); }
.diy-band.is-other .bandicon { filter: grayscale(.6) brightness(.7); }
.diy-band.is-other .diy-band__name { color: var(--text-lo); }
.diy-band__mark { position: absolute; right: .02rem; top: .02rem; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); }
.diy-band__mark.chat__facico { width: max(.2rem, 15px); height: max(.2rem, 15px); }
.diy-band__mark.is-glyph { width: max(.14rem, 11px); height: max(.14rem, 11px); color: var(--text-hi); }
.diy-links__legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .04rem .14rem; margin: 0; padding: .04rem .04rem .01rem;
  font-size: max(.11rem, 9px); color: var(--text-lo); border-top: 1px solid var(--line-2); }
.diy-links__legend > span { display: inline-flex; align-items: center; gap: .04rem; }
.diy-links__legend .icon { width: max(.12rem, 10px); height: max(.12rem, 10px); color: var(--mint-400); }
.diy-links__dash { display: inline-block; width: max(.16rem, 12px); height: max(.12rem, 9px); border: 1px dashed var(--mint-400); }
/* a narrow window: more columns; a short one (a phone in landscape): the legend goes, the tooltips say it */
@media (max-width: 900px) { .diy-links__grid { grid-template-columns: repeat(10, 46px); } }
@media (max-height: 500px) { .diy-links__legend { display: none; } }
/* 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: var(--bg-1, #0d1110); }
/* the picker's header: one row of controls — the title with its tier, the hint, 已选干员 n/6 and the search box (the
   roster's own `.lo-search`) — with the class filter on a second row. Every width draws it this way: the hint used to
   take a row of its own, which cost the list a whole row on a phone. No close button: the footer's 取消 and Esc close it
   (maintainer decision 2026-11-19). */
.diy-pick__head { flex: none; display: flex; flex-direction: column; gap: .08rem; font-size: max(.16rem, 11px); }
/* The picker's two columns mirror the roster's `.lo-body` through the same shared variables: the list takes whatever is
   left, the detail is `--lo-detail-w`. A `1.2fr / 1fr` split made the detail a SHARE of the window instead — wider than
   干员调配's on a large screen, narrower on a small one — so the shared `.lo-dhead` wrapped differently here. */
.diy-pick__main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--lo-detail-w)); gap: var(--lo-gap-x); }
.diy-pick__col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: .12rem; }
/* the element also carries .lo-list (screens/diy.js): --q / --qg / --art / --cols and the scrolling come from there */
.diy-pick__list { display: grid; grid-template-columns: 1fr; align-content: start; gap: .06rem; }
.diy-pick__glyph { display: grid; place-items: center; width: 100%; height: 100%; font-size: max(.3rem, 18px); color: var(--text-lo); }
/* the head (the official pool_view/panel_title at the HUD unit): 「自选编队 [tier]」 label_title #ff9d04 22 and text_tips
   (#e4e4e4 60 %, 18) — side by side, not the official's two lines: the row has the room (maintainer decision 2026-11-19)
   —, then part_lab 「已选择」 (#e68e06 17) and text_info 「n/6」 (#ae761f 27; Novecentowide-Bold → Lexend Exa 700,
   docs/rules/ui.md 「HUD 숫자 글꼴」), which flashes when a seventh is refused */
.diy-pick__heading { display: flex; align-items: center; gap: calc(12 * var(--ui-u)); flex: none; margin-right: auto; }
.diy-pick__title { display: inline-flex; align-items: center; gap: calc(6 * var(--ui-u)); color: #ff9d04; font-weight: 700; font-size: calc(22 * var(--ui-u)); line-height: calc(30 * var(--ui-u)); white-space: nowrap; }
.diy-pick__tips { color: rgba(228, 228, 228, .6); font-size: calc(18 * var(--ui-u)); line-height: calc(24 * var(--ui-u)); white-space: nowrap; }
.diy-pick__lab { display: inline-block; line-height: normal; padding: 0 calc(8 * var(--ui-u)); border: 1px solid #e68e06; color: #e68e06; font-size: calc(17 * var(--ui-u)); white-space: nowrap; }
.diy-pick__num { min-width: calc(72 * var(--ui-u)); text-align: center; color: #ae761f; font: 700 calc(27 * var(--ui-u)) / 1.25 'Lexend Exa', 'Novecento Wide', var(--font-num); letter-spacing: -.06em; }
.diy-pick__num.is-full { color: #ffb43c; }
.diy-pick__num.is-bump { animation: diy-bump .5s 2; }
@keyframes diy-bump { 50% { transform: scale(1.18); color: #ff5a3c; } }
/* the operator column takes the free width, so the rows span the list (maintainer decision 2026-11-19) */
.diy-pick .lo-list { --cols: minmax(max(2.2rem, 110px), 1fr) calc(3 * var(--q) + 2 * var(--qg)) calc(4 * var(--q) + 3 * var(--qg)) max(2.2rem, 160px); }
.diy-pick { --pick-tc: #ebb85e; }
.diy-pick[data-tier="6"] { --pick-tc: #fb752a; }
/* a row is a .lo-card (screens/loadout.js RosterRow); is-on (in the choice) / is-sel (the detail's) / is-taken are the
   picker's */
.diy-opt.is-on { box-shadow: inset calc(4 * var(--ui-u)) 0 0 var(--pick-tc); background: linear-gradient(90deg, rgba(235, 184, 94, .16), transparent 45%); }
.diy-pick[data-tier="6"] .diy-opt.is-on { background: linear-gradient(90deg, rgba(251, 117, 42, .16), transparent 45%); }
.diy-opt.is-sel { border-color: var(--mint-500); background: rgba(52, 211, 153, .08); }
/* the choice number, left of the skills: the official select_index (Novecentowide-Bold 82 #282828 95 % → Lexend Exa 700)
   with a 2 px #e9e9e9 rim for the dark row (the official card's white portrait gave it that contrast), its digit the skill
   icons' height. A flex box: a grid one would leave the taller line box hanging below (overflowing grid items do not
   centre) */
.diy-opt__idx { flex: none; margin-left: auto; pointer-events: none; display: flex; align-items: center; justify-content: center; height: var(--q); padding: 0 calc(var(--q) * .08); }
.diy-opt__idx > span { font: 700 calc(var(--q) * 1.18) / 1.3 'Lexend Exa', var(--font-num); letter-spacing: -.06em; color: rgba(40, 40, 40, .95);
  text-shadow: 2px 0 0 #e9e9e9, -2px 0 0 #e9e9e9, 0 2px 0 #e9e9e9, 0 -2px 0 #e9e9e9, 1.4px 1.4px 0 #e9e9e9, -1.4px 1.4px 0 #e9e9e9, 1.4px -1.4px 0 #e9e9e9, -1.4px -1.4px 0 #e9e9e9, 0 0 6px rgba(0, 0, 0, .6); }
/* 详情 › at the row's end: narrow screens only (below) */
.diy-opt__det { display: none; }
.diy-opt.is-taken { opacity: .45; cursor: not-allowed; }
.diy-opt.is-taken .lo-q, .diy-opt.is-taken .lo-cult { opacity: .6; }
.diy-opt__sub { display: flex; align-items: center; flex-wrap: wrap; gap: .04rem; min-width: 0; }
.diy-opt__class { display: inline-flex; align-items: center; gap: .03rem; font-size: max(.11rem, 8px); color: var(--text-lo); }
.diy-opt__prof { width: max(.14rem, 10px); height: max(.14rem, 10px); }
.diy-opt__taken { font-size: max(.1rem, 8px); color: var(--amber); }
.diy-opt__nocult { justify-content: center; color: var(--text-dim); }
.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; }
/* the footer's buttons keep a readable size and a tappable height on a phone, like the overlay's own (below) */
.lo .diy-pick__foot .btn { height: max(.5rem, 30px); padding: 0 max(.26rem, 12px); font-size: max(.18rem, 12px); }
.diy-pick__clear.btn { margin-right: auto; }
/* 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 { padding: .1rem .16rem .16rem; }
  .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; }

/* ---- narrow / short viewports ------------------------------------------------------------------------------------------- */
/* tighter tabs below 1200 px: the co-op briefing's countdown, chips and buttons beside three English tabs */
@media (max-width: 1200px) {
  .lo-tab { padding: .02rem .08rem; letter-spacing: .04em; }
}
@media (max-width: 1100px) {
  .lo { --lo-detail-w: 6.4rem; --lo-gap-x: .16rem; --lo-pad-x: .2rem; }
  .lo-body { padding: .12rem var(--lo-pad-x) .16rem; }
  .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-width: 1000px) {
  .lo-body { grid-template-columns: minmax(0, 1fr); }
  .lo-detail-wrap { display: none; }
  .lo-body.is-detail .lo-roster { display: none; }
  .lo-body.is-detail .lo-detail-wrap { display: flex; }
  .lo-detail-back {
    display: inline-flex; align-self: flex-start; align-items: center; gap: .04rem; margin-bottom: .08rem; padding: .04rem .12rem .04rem .04rem;
    font: inherit; font-size: max(.15rem, 11px); color: var(--mint-400); background: transparent; border: 1px solid var(--mint-800); cursor: pointer;
  }
  .lo-detail-back .icon { width: .2rem; height: .2rem; }
  /* the 自选编队 picker's own body (screens/diy.js): the same pattern over `.diy-pick__col` / its `.lo-detail-wrap` */
  .diy-pick__main { grid-template-columns: minmax(0, 1fr); }
  /* …but a tap on a row adds / removes it: 详情 › at the row's end is the way to the detail (maintainer decision
     2026-11-19), a fifth column the row's full height */
  .diy-pick .lo-list { --cols: minmax(max(2.2rem, 110px), 1fr) calc(3 * var(--q) + 2 * var(--qg)) calc(4 * var(--q) + 3 * var(--qg)) max(2.2rem, 160px) 38px; }
  .diy-opt__det { all: unset; box-sizing: border-box; align-self: stretch; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 2px;
    width: 38px; margin: -4px 0; border-left: 1px solid var(--line-2); background: rgba(78, 216, 175, .06); color: var(--mint-400); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .diy-opt__det > span { font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
  .diy-opt__det > i { font-style: normal; font-size: 14px; line-height: 1.4; }
  .diy-opt__det:active { background: rgba(78, 216, 175, .18); }
  .diy-opt__det:focus-visible { outline: 2px solid var(--mint-400); outline-offset: -2px; }
  .diy-pick__main.is-detail .diy-pick__col { display: none; }
  .diy-pick__main.is-detail > .lo-detail-wrap { display: flex; }
}
/* narrow phones: the row's bonds give their line to the name, the columns keep their place */
@media (max-width: 700px) {
  .lo-card__bonds { display: none; }
}
@media (max-height: 520px) {
  .lo-note { display: none; }
  .lo-dhead { grid-template-columns: max(1rem, 48px) 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, 10px) 0 max(.12rem, 6px); font-size: max(.18rem, 12px); }
.lo .lo-top__right .btn, .lo .lo-dhead__reset { height: max(.36rem, 28px); padding: 0 max(.16rem, 8px); font-size: max(.15rem, 11px); }
.lo .lo-search .field__box { height: max(.56rem, 28px); padding: 0 max(.16rem, 6px); }
.lo .lo-search .field__input { font-size: max(.2rem, 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, .lo .lo-card { 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, 8px); font-size: max(.18rem, 12px); line-height: 1.55; color: var(--text-md); }
.lo-io__hint b { color: var(--mint-400); font-size: max(.22rem, 13px); margin: 0 .02rem; }
.lo-io__hint strong { color: var(--gold); }
.lo-io__text {
  box-sizing: border-box; width: 100%; height: max(2.4rem, 160px); min-height: 120px; resize: vertical;
  padding: max(.1rem, 8px) max(.12rem, 10px);
  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(.2rem, 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; }


/* ==========================================================================================
   卡片视图 (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, 快速配置 columns beside
   the cards, and the detail in a drawer over the left of the deck. The list (.lo-body above) stays the default.
   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 快速配置 columns (see the
   loadout.js header for the sources).
   ========================================================================================== */
.lo--deck {
  --drawer-w: min(6.4rem, 92vw);
  --opw: max(2.1rem, 100px);          /* a card */
  --rail: max(.44rem, 22px);          /* its left rail: tier, levels */
  --qw: max(.9rem, 48px);             /* the 快速配置 column (skills / modules) */
  --qcw: max(1.56rem, 104px);         /* the 快速配置 column (潜能 · 练度) */
}
.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, #161918, #0c0e0d 70%, #090b0a);
}

/* ---- 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; }
.lo-info { display: grid; place-items: center; width: max(.5rem, 32px); height: max(.5rem, 32px); padding: 0; color: var(--text-hi);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); cursor: pointer; }
.lo-info:hover { border-color: var(--mint-500); color: var(--mint-400); }
.lo-info .icon { width: 56%; height: 56%; }
.lo-top__note { margin: 0; max-width: 8.4rem; font-size: max(.15rem, 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, 8px);
  font: inherit; font-size: max(.15rem, 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); }
/* the list view's way in: the end of its filter row (the top bar has no room left on a narrow phone in English) */
.lo-viewbtn { margin-left: auto; }
.lo-tbtn__n { min-width: max(.2rem, 14px); padding: 0 3px; font-size: max(.12rem, 9px); text-align: center; color: #04140f; background: var(--mint-500); }
.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; }
.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(.14rem, 10px); color: var(--text-dim); }
.lo-pop__row .lo-seg { margin: 0; }
.lo-pop__row .lo-tbtn { margin-left: auto; }
.lo-pop--menu { display: flex; flex-direction: column; min-width: max(2.4rem, 150px); padding: .06rem; }
.lo-pop--menu button { display: flex; align-items: center; gap: .1rem; height: max(.44rem, 32px); padding: 0 .14rem; font: inherit; font-size: max(.16rem, 12px);
  color: var(--text-md); background: none; border: 0; text-align: left; cursor: pointer; }
.lo-pop--menu button:hover:not(:disabled) { color: var(--text-hi); background: rgba(78, 216, 175, .1); }
.lo-pop--menu button:disabled { opacity: .4; cursor: default; }
.lo-pop--menu button.is-danger:hover:not(:disabled) { color: var(--red-premium); background: rgba(255, 84, 84, .1); }
.lo-pop--menu .icon { width: max(.18rem, 12px); height: max(.18rem, 12px); }
/* 干员持有 and 快速配置: two big blocks at the right */
.lo-assist, .lo-quickbtn { display: inline-flex; align-items: stretch; height: max(.7rem, 40px); padding: 0; font: inherit; border: 0; cursor: pointer; text-align: left; }
.lo-assist__txt, .lo-quickbtn__txt { display: flex; flex-direction: column; justify-content: center; padding: 0 max(.14rem, 8px); line-height: 1.1; }
.lo-assist__icon, .lo-quickbtn__icon { display: grid; place-items: center; width: max(.62rem, 34px); }
.lo-assist__icon .icon, .lo-quickbtn__icon .icon { width: 58%; height: 58%; }
.lo-assist { color: #052119; background: var(--mint-500); }
.lo-assist:hover { background: var(--mint-400); }
.lo-assist__k { font-size: max(.15rem, 11px); font-weight: 700; }
.lo-assist__v { font-size: max(.22rem, 13px); font-weight: 800; }
.lo-assist__icon { margin: .06rem .06rem .06rem 0; color: var(--mint-400); background: #0b1d18; }
.lo-quickbtn { color: #111614; background: #eef1ef; }
.lo-quickbtn:hover:not(:disabled) { background: #fff; }
.lo-quickbtn:disabled { opacity: .45; cursor: default; }
.lo-quickbtn__txt > span { font-size: max(.2rem, 13px); font-weight: 900; letter-spacing: .04em; }
.lo-quickbtn__txt small { font-family: var(--font-display); font-size: max(.09rem, 7px); letter-spacing: .14em; color: #8b938f; }
.lo-quickbtn__icon { margin: .06rem .06rem .06rem 0; color: #eef1ef; background: #1a1f1d; }
.lo-qbar__k { font-size: max(.15rem, 11px); color: var(--text-lo); white-space: nowrap; }
.lo-qseg { display: inline-flex; padding: 3px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); border-radius: 999px; }
.lo-qseg button { height: max(.4rem, 28px); padding: 0 max(.2rem, 12px); font: inherit; font-size: max(.16rem, 12px); font-weight: 800; color: var(--text-md);
  background: none; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.lo-qseg button.is-on { color: #111614; background: #eef1ef; }

/* ---- the deck ---- */
.lo-deckwrap { flex: 1 1 auto; min-height: 0; display: flex; }
.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; }
.lo-deck.is-dragging, .lo-deck.is-dragging .lo-op__card, .lo-deck.is-dragging .lo-op__pick { cursor: grabbing; user-select: none; }
.lo-deck--empty { align-items: center; justify-content: center; }
.lo-deck.has-drawer { padding-left: calc(var(--drawer-w) + .3rem); scroll-padding-left: calc(var(--drawer-w) + .2rem); }
.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, 18px)); 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, 44px);
  padding: .12rem 0 max(.34rem, 20px); 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(.1rem, 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); letter-spacing: -.06em; font-size: max(.38rem, 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, 4px); text-align: center; font-size: max(.15rem, 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; }

/* ---- 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 auto; column-gap: max(.05rem, 3px); padding: max(.06rem, 3px) max(.06rem, 3px) max(.07rem, 4px);
  background: linear-gradient(180deg, rgba(44, 50, 48, .94), rgba(24, 28, 27, .96)); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 .05rem .16rem rgba(0, 0, 0, .45); transition: border-color var(--t-fast), box-shadow var(--t-fast); cursor: pointer; }
.lo-op:hover .lo-op__card { border-color: rgba(255, 255, 255, .22); }
.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 { grid-row: 1 / 3; grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: max(.08rem, 4px); padding-top: 2px; }
.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, 3px); width: 86%; padding: max(.06rem, 3px) 0;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; }
.lo-op__lvrow { display: flex; flex-direction: column; align-items: center; gap: max(.02rem, 1px); line-height: 1; }
.lo-op__lvrow b { font-size: max(.15rem, 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(.12rem, 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); }
.lo-op__pick { grid-row: 1; grid-column: 2; position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, #d7dbd9, #aeb4b1 70%, #8d9390); border: 1px solid rgba(240, 244, 242, .55); }
.lo-op__art { position: absolute; inset: 0 0 max(.42rem, 22px) 0; display: block; overflow: hidden; }
.lo-op__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; display: block; }
.lo-op__glyph { display: grid; place-items: center; width: 100%; height: 100%; font-size: max(.5rem, 22px); font-weight: 900; color: rgba(17, 22, 20, .45); }
.lo-op__sub { position: absolute; left: 2px; top: 2px; width: max(.2rem, 12px); height: max(.2rem, 12px); padding: 2px; object-fit: contain; background: rgba(20, 24, 23, .85); }
.lo-op__ribbon { position: absolute; right: 3px; top: 0; padding: 3px 3px 7px; font-size: max(.11rem, 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%); }
.lo-op__kit { position: absolute; left: 0; right: 0; bottom: 0; height: max(.42rem, 22px); display: flex; align-items: center; gap: 3px; padding: 0 3px;
  background: linear-gradient(180deg, rgba(20, 24, 23, .7), rgba(20, 24, 23, .95)); }
.lo-op__slot { display: grid; place-items: center; width: max(.34rem, 18px); height: max(.34rem, 18px); background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .2); }
.lo-op__slot .lo-sicon, .lo-op__slot .lo-mglyph { width: 100%; height: 100%; border: 0; }
.lo-op__slot .lo-sicon__outline, .lo-op__slot .lo-sicon__ring { display: none; }
.lo-op__slot .lo-mglyph__t { font-size: max(.16rem, 10px); }
.lo-op__meta { grid-row: 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; padding-top: max(.04rem, 2px); }
.lo-op__pot { display: flex; gap: 2px; }
.lo-op__pot i { width: max(.06rem, 4px); height: max(.06rem, 4px); background: rgba(255, 255, 255, .18); transform: rotate(45deg); }
.lo-op__pot i.is-on { background: #c9cfcc; }
.lo-op__name { max-width: 100%; font-size: max(.17rem, 11px); font-weight: 800; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-op__bonds { grid-row: 3; grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 3px; min-height: max(.26rem, 16px); padding-top: 2px; }
.lo-op__bond { display: grid; place-items: center; width: max(.26rem, 16px); height: max(.26rem, 16px); 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); }
/* 快速配置: a column of choices beside the card */
.lo-op__quick { flex: none; width: var(--qw); --q: calc(var(--qw) - max(.12rem, 8px)); --qg: max(.06rem, 4px);
  display: flex; flex-direction: column; align-items: center; gap: var(--qg); padding: max(.06rem, 4px) 0; overflow-y: auto; scrollbar-width: none;
  background: rgba(16, 20, 19, .92); border: 1px solid rgba(255, 255, 255, .08); border-left: 0; animation: lo-q-in 160ms var(--ease-out) backwards; }
@keyframes lo-q-in { from { opacity: 0; transform: translateX(-6px); } }
.lo-op__quick .lo-q:not(.is-on):not(.lo-q--empty) { opacity: .55; }
.lo-op__quick .lo-q.is-on { opacity: 1; }
.lo-op__quick--cult { width: var(--qcw); padding: max(.08rem, 5px); justify-content: center; }
.lo-op__quick--cult .lo-cult { flex-direction: column; align-items: stretch; width: 100%; }
.lo-op__quick--cult .lo-select { width: 100%; }
.lo-op__none { margin: auto 0; font-size: max(.12rem, 9px); color: var(--text-dim); writing-mode: vertical-rl; letter-spacing: .2em; }
/* 甄选干员 (自选编队) closing tiers 5 / 6 */
.lo-op--diy { flex-direction: column; align-items: center; justify-content: center; gap: max(.08rem, 4px); 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: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(.16rem, 11px); font-weight: 800; letter-spacing: .1em; }
.lo-diy__n { font-size: max(.3rem, 16px); color: var(--text-lo); }
.lo-diy__n b { color: var(--text-hi); font-size: max(.4rem, 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(.15rem, 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; }

/* ---- bottom bar ---- */
.lo-bbar { flex: none; display: flex; align-items: center; gap: .3rem; height: max(.8rem, 46px); padding: 0 .36rem;
  background: linear-gradient(180deg, rgba(10, 12, 11, .7), rgba(6, 8, 7, .96)); border-top: 1px solid var(--line); }
.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: .14rem; }
.lo-bbar__tier { position: relative; flex: none; display: inline-flex; align-items: center; gap: .05rem; height: max(.42rem, 28px); padding: 0 max(.16rem, 8px); font: inherit;
  font-size: max(.15rem, 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(.13rem, 9px); font-weight: 800;
  border: 1px solid currentColor; border-radius: 3px; }
.lo-bbar__diy { position: absolute; left: 50%; top: max(-.2rem, -14px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 1px; padding: 0 4px;
  font-size: max(.12rem, 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); }
.lo-confirm { flex: none; display: inline-flex; align-items: center; gap: .1rem; height: max(.6rem, 38px); padding: 0 max(.24rem, 14px); font: inherit;
  font-size: max(.2rem, 13px); font-weight: 900; color: #111614; background: #eef1ef; border: 0; cursor: pointer; }
.lo-confirm .icon { width: max(.26rem, 16px); height: max(.26rem, 16px); padding: 2px; color: #eef1ef; background: #1a1f1d; }
.lo-confirm:hover { background: #fff; }
/* 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, 6px); height: max(.4rem, 26px);
  font-size: max(.14rem, 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) ---- */
.lo-help { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .1rem .2rem; margin: 0; font-size: max(.16rem, 12px); line-height: 1.6; }
.lo-help dt { font-weight: 800; color: var(--mint-400); white-space: nowrap; }
.lo-help dd { margin: 0; color: var(--text-md); }

@media (max-width: 1100px) {
  .lo-top--deck .lo-count, .lo-top--deck .lo-sync { display: none; }
  .lo-top__note { max-width: 4.6rem; }
}
@media (max-width: 900px) {
  .lo-top--deck .lo-tbtn__l, .lo-quickbtn__txt small, .lo-assist__k { 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; }
}
@media (prefers-reduced-motion: reduce) { .lo-drawer, .lo-op__quick, .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; }
.lo--deck .own, .lo--deck .diy { 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, .lo--deck .diy { animation: none; }
}

/* ---- 스킨 고르기 (ui/skinPicker.js; docs/rules/ui.md 「스킨 고르기」, the approved mockups s4 · s5) --------------------------
   A row of small tiles at the top of the detail: the 默认 tile first, then the operator's skins, each an art box over its
   name. The art box carries the appearance's 1:2 portrait (cropped to the head, center top) and its 1:1 avatar; the
   avatar is drawn instead on a phone in landscape (the last media query — upstream's switch: the detail panel there is
   ~200 px tall). Locked (no skin data): the operator's own art greyed under a lock; the box under the row offers the
   download. The chosen tile: a mint border and 「사용」. Clicking the chosen skin opens its 立绘 (`.lo-skin-preview`). */
.lo-skins { display: flex; flex-wrap: wrap; gap: .08rem; align-items: flex-start; }
.lo-skin {
  position: relative; flex: 0 0 max(.96rem, 66px); min-width: 0; display: flex; flex-direction: column; gap: .03rem; padding: 0;
  font: inherit; font-size: max(.12rem, 9px); line-height: 1.25; color: var(--text-lo); text-align: center; cursor: pointer;
  background: none; border: 0; touch-action: manipulation;
}
.lo-skin:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }
.lo-skin__art {
  position: relative; display: block; height: max(1.28rem, 70px); overflow: hidden;
  background: #0b0f0e; border: 1px solid var(--line-2); transition: border-color var(--t-fast);
}
.lo-skin:hover .lo-skin__art { border-color: var(--line-3); }
.lo-skin.is-on { color: var(--mint-400); }
.lo-skin.is-on .lo-skin__art { border-color: var(--mint-400); box-shadow: 0 0 0 1px var(--mint-400); }
.lo-skin__art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* the 1:1 avatar of the same tile, drawn only where the portrait 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); }
/* a skin whose own portrait is missing shows the operator's: dimmed, the name says which skin it is */
.lo-skin--fallback .lo-skin__art img { opacity: .72; }
.lo-skin.is-locked { cursor: default; }
.lo-skin.is-locked .lo-skin__art img { filter: grayscale(.85) brightness(.5); }
.lo-skin__lock {
  position: absolute; left: 50%; top: max(.5rem, 28px); transform: translateX(-50%); width: max(.3rem, 20px); height: max(.3rem, 20px);
  display: grid; place-items: center; background: rgba(0, 0, 0, .72); border: 1px solid var(--line-2); color: var(--amber);
  font-size: max(.15rem, 11px);
}
.lo-skin__on {
  position: absolute; right: 2px; top: 2px; padding: 0 3px; background: var(--mint-500); color: #04110c;
  font-size: max(.1rem, 8px); font-weight: 700; white-space: nowrap;
}
.lo-skin__name { overflow-wrap: anywhere; word-break: keep-all; }
.lo-skincta { display: flex; align-items: center; gap: .12rem; padding: .08rem .1rem; background: rgba(0, 0, 0, .26); border: 1px solid var(--line-2); }
.lo-skincta p { flex: 1; margin: 0; font-size: max(.13rem, 9px); color: var(--text-dim); }
.lo-skincta__btn { flex: none; white-space: nowrap; }
.lo-skincta__pct { flex: none; color: var(--mint-400); }
/* the enlarged view: the 立绘 whole, 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; }
/* phones in landscape (a narrow, short viewport: the detail panel is ~200 px tall): the 1:1 avatar takes the tile */
@media (max-width: 1000px) and (max-height: 520px) {
  .lo-skin__art { height: auto; aspect-ratio: 1 / 1; }
  .lo-skin__art--face > .lo-skin__art--big { display: none; }
  .lo-skin__art--face > .lo-skin__art--faceimg { display: block; }
}
