/* ==========================================================================================
   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): the detail column and the panel's horizontal padding both change at 1100 px, and the two drifted
     apart while those numbers were written in both places (the picker kept a `1.2fr / 1fr` split and .3rem padding, so
     the same `.lo-dhead` — shared CSS, sized in rem against theme.css's fluid root — wrapped differently up there). */
  --lo-detail-w: 7rem;
  --lo-gap-x: .22rem;
  --lo-pad-x: .3rem;
}
@keyframes lo-in { from { opacity: 0; } }
.lo__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 18% 10%, rgba(78, 216, 175, .07), transparent 60%),
    radial-gradient(60% 70% at 100% 100%, rgba(52, 184, 216, .06), transparent 60%),
    linear-gradient(rgba(78, 216, 175, .035) 1px, transparent 1px) 0 0 / .6rem .6rem,
    linear-gradient(90deg, rgba(78, 216, 175, .035) 1px, transparent 1px) 0 0 / .6rem .6rem,
    linear-gradient(180deg, #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, 32px, calc(48px * var(--sp-ui, 1))); padding: 0 .36rem;
  background: linear-gradient(180deg, rgba(8, 10, 9, .95), rgba(10, 13, 12, .6));
  border-bottom: 1px solid var(--line);
}
.lo-top::after {
  content: ''; position: absolute; left: .36rem; right: .36rem; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--mint-700), transparent 26%, transparent 74%, var(--mint-700));
}
.lo-top__left { justify-self: start; display: flex; align-items: center; gap: .14rem; }
.lo-top__center { display: flex; flex-direction: column; align-items: center; gap: .02rem; min-width: 0; }
.lo-top__title { display: flex; align-items: center; gap: .12rem; margin: 0; font-size: max(.32rem, 16px); font-weight: 900; letter-spacing: .14em; line-height: 1.15; }
.lo-top__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: var(--sp-cursor-pointer, 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: var(--sp-cursor-pointer, 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 .combo { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; }
.lo-select .combo__btn {
  min-height: 0; height: 100%; border: 0; background: transparent; color: inherit;
  padding: 0 max(.2rem, calc(14px * var(--sp-ui, 1))) 0 .06rem; font-size: max(.15rem, 11px);
}
.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: var(--sp-cursor-pointer, 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, 32px, calc(40px * var(--sp-ui, 1)));
  --cols: minmax(max(2.2rem, 32px, calc(110px * var(--sp-ui, 1))), max(3.2rem, 32px, calc(260px * var(--sp-ui, 1)))) calc(3 * var(--q) + 2 * var(--qg)) calc(4 * var(--q) + 3 * var(--qg)) max(2.2rem, 32px, calc(160px * var(--sp-ui, 1)));
  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, 32px, calc(40px * var(--sp-ui, 1))); }
.lo-list__head, .lo .lo-card { display: grid; grid-template-columns: var(--cols); justify-content: start; align-items: center; column-gap: max(.12rem, calc(8px * var(--sp-ui, 1))); }
/* (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, calc(3px * var(--sp-ui, 1))); padding-top: max(.05rem, calc(4px * var(--sp-ui, 1))); }
.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, calc(4px * var(--sp-ui, 1))) .1rem max(.05rem, calc(4px * var(--sp-ui, 1))) .07rem;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-left: 3px solid var(--tc);
  /* the whole row picks its operator (RosterRow onRowClick) — the pointer says so, and `touch-action` keeps a tap from
     waiting on the double-tap delay; the row's own controls keep their cursor (`.lo-select select`, `.lo-q`) */
  cursor: var(--sp-cursor-pointer, pointer); touch-action: manipulation;
  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, calc(6px * var(--sp-ui, 1))); min-width: 0; padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: var(--sp-cursor-pointer, 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, calc(2px * var(--sp-ui, 1))); 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, calc(3px * var(--sp-ui, 1))); 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: var(--sp-cursor-pointer, pointer); touch-action: manipulation;
}
.lo-q--empty { border: 1px dashed rgba(255, 255, 255, .07); }
.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, calc(3px * var(--sp-ui, 1))); 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, .lo .lo-cult .lo-select .combo__btn { width: 100%; min-width: 0; padding: 0 max(.2rem, calc(14px * var(--sp-ui, 1))) 0 max(.06rem, calc(4px * var(--sp-ui, 1))); 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, .lo .lo-cult .lo-select.is-off .combo__btn { 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; }
.lo-cult__row { display: grid; grid-template-columns: max(.5rem, 30px) minmax(0, 1fr); align-items: center; gap: .08rem; }
.lo-cult__k { font-size: max(.13rem, 10px); color: var(--text-dim); letter-spacing: .08em; }
.lo .lo-cult__row .lo-seg { margin-left: 0; flex-wrap: wrap; justify-self: start; }
.lo-seg--pot button { min-width: max(.36rem, 26px); font-family: var(--font-num); }
.lo-seg--tier button { padding: 0 .1rem; }
.lo-cult__eff { margin: .02rem 0 0; font-size: max(.14rem, 10px); line-height: 1.5; color: var(--text-md); }
.lo-cult__eff b { color: var(--mint-400); margin-right: .04rem; }
.lo-cult__note { margin: 0; font-size: max(.12rem, 9px); line-height: 1.5; color: var(--text-dim); }
.lo-sec--cult.is-moot .lo-cult__row, .lo-sec--cult.is-moot .lo-cult__eff { opacity: .55; }
.lo-sec--cult.is-moot .lo-cult__note { color: var(--ice); }

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

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

/* ---- detail panel -------------------------------------------------------------------------------------------------------- */
.lo-detail {
  --bk-c: var(--mint-500);
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(24, 30, 28, .97), rgba(10, 13, 12, .98));
  border: 1px solid var(--line-2); box-shadow: 0 .14rem .4rem rgba(0, 0, 0, .45);
}
.lo-detail--empty { align-items: center; justify-content: center; font-size: max(.16rem, 11px); }
.lo-dhead { position: relative; flex: none; display: grid; grid-template-columns: max(1.3rem, 32px, calc(60px * var(--sp-ui, 1))) minmax(0, 1fr); gap: .16rem; padding: .16rem .18rem .14rem; border-bottom: 1px solid var(--line); }
.lo-dhead__art { position: relative; overflow: hidden; aspect-ratio: 1 / 1.25; background: #1b201e; border: 1px solid var(--line-2); box-shadow: inset 0 -3px 0 var(--tc, var(--tier-1)); }
.lo-dhead__art--t1 { --tc: var(--tier-1); } .lo-dhead__art--t2 { --tc: var(--tier-2); } .lo-dhead__art--t3 { --tc: var(--tier-3); }
.lo-dhead__art--t4 { --tc: var(--tier-4); } .lo-dhead__art--t5 { --tc: var(--tier-5); } .lo-dhead__art--t6 { --tc: var(--tier-6); }
.lo-dhead__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.lo-dhead__art .uthumb { width: 100%; height: 100%; }
.lo-dhead__info { min-width: 0; display: flex; flex-direction: column; gap: .04rem; }
.lo-dhead__chips { display: flex; align-items: center; gap: .08rem; }
.lo-dhead__name { margin: .02rem 0 0; font-size: max(.34rem, 17px); font-weight: 900; letter-spacing: .06em; line-height: 1.1; }
.lo-dhead__en { font-family: var(--font-display); font-size: max(.13rem, 9px); letter-spacing: .14em; color: var(--text-dim); text-transform: uppercase; }
.lo-dhead__class { display: flex; align-items: center; gap: .05rem; font-size: max(.15rem, 10px); color: var(--text-md); }
.lo-dhead__prof { width: max(.2rem, 13px); height: max(.2rem, 13px); object-fit: contain; }
.lo-sep { width: 1px; height: .16rem; background: var(--line-3); margin: 0 .04rem; }
.lo-dhead__bonds { display: flex; flex-wrap: wrap; gap: .05rem; margin-top: .02rem; }
.lo-bond { display: inline-flex; align-items: center; gap: .04rem; padding: .01rem .08rem .01rem .04rem; font-size: max(.13rem, 9px); color: var(--text-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.lo-bond__icon { width: max(.18rem, 12px); height: max(.18rem, 12px); object-fit: contain; }
.lo-bond__dot { width: .1rem; height: .1rem; border-radius: 50%; background: var(--mint-700); }
.lo-dhead__reset { position: absolute; right: .12rem; top: .12rem; }

.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: var(--sp-cursor-pointer, 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: var(--sp-cursor-default, 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: var(--sp-cursor-pointer, 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); 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: var(--sp-cursor-pointer, 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); font-size: max(.15rem, 10px); }
.lo-attr.is-up b { color: var(--mint-400); }
.lo-attr.is-down b { color: var(--red-premium); }

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

/* ---- 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: var(--sp-cursor-pointer, 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, 32px, calc(270px * var(--sp-ui, 1))), 1fr)); gap: .08rem; }
.own-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: .08rem; min-width: 0;
  padding: .07rem .1rem .07rem .07rem; font: inherit; color: var(--text-hi); text-align: left; cursor: var(--sp-cursor-pointer, 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): four DIY slots by tier, the slot picker (operator list + skill / module) --------------- */
.diy { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .12rem; padding: .16rem .3rem .2rem; }
.diy .own__bar { flex-wrap: wrap; gap: .1rem .2rem; }
.diy__plug { flex: none; display: flex; align-items: center; }
.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; }
.diy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(5.2rem, 32px, calc(300px * var(--sp-ui, 1))), 1fr)); gap: .1rem; }
.diy-slot {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .1rem; align-items: start; min-width: 0;
  padding: .08rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-left: 3px solid var(--tc, var(--line-3));
}
.diy-slot--t5 { --tc: var(--tier-5); } .diy-slot--t6 { --tc: var(--tier-6); }
.diy-slot.is-empty { display: flex; flex-direction: column; padding: 0; border-style: dashed; border-left-style: solid; }
.diy-slot__fill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; width: 100%; min-height: max(1.3rem, 32px, calc(84px * var(--sp-ui, 1)));
  padding: .1rem; font: inherit; color: var(--text-md); background: none; border: 0; cursor: var(--sp-cursor-pointer, pointer); touch-action: manipulation;
}
.diy-slot__fill:hover { background: rgba(255, 255, 255, .05); color: var(--text-hi); }
.diy-slot__fill b { font-size: max(calc(.16 * var(--t)), 11px); }
.diy-slot__fill small { font-size: max(calc(.12 * var(--t)), 9px); color: var(--text-lo); }
.diy-slot__plus { display: grid; place-items: center; width: max(.4rem, 26px); height: max(.4rem, 26px); border: 1px solid var(--line-3); border-radius: 50%; }
.diy-slot__plus .icon { width: 60%; height: 60%; }
.diy-slot__art { display: grid; place-items: center; width: max(.9rem, 32px, calc(56px * var(--sp-ui, 1))); height: max(1.3rem, 32px, calc(84px * var(--sp-ui, 1))); overflow: hidden; background: #0a0d0c; border: 1px solid var(--line-2); }
.diy-slot__art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.diy-slot__art b { font-size: max(calc(.3 * var(--t)), 18px); color: var(--text-lo); }
.diy-slot__body { display: flex; flex-direction: column; gap: .03rem; min-width: 0; }
.diy-slot__head { display: flex; align-items: center; gap: .05rem; }
.diy-slot__label { font-size: max(calc(.12 * var(--t)), 9px); color: var(--text-lo); letter-spacing: .06em; }
.diy-slot__name { font-size: max(calc(.17 * var(--t)), 12px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diy-slot__class { font-size: max(calc(.12 * var(--t)), 9px); color: var(--text-lo); }
.diy-slot__kit { display: flex; align-items: center; gap: .05rem; min-width: 0; font-size: max(calc(.13 * var(--t)), 9px); color: var(--text-md); }
.diy-slot__kit > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diy-slot__sicon, .diy-slot__micon { flex: none; display: inline-grid; place-items: center; width: max(.24rem, 16px); height: max(.24rem, 16px); object-fit: contain; font-size: .8em; color: var(--text-lo); }
.diy-slot__micon--none { border: 1px solid var(--line-2); }
.diy-slot__acts { display: flex; flex-direction: column; gap: .04rem; }
/* 0.2.2: an owned pick's 潜能 / 练度 (screens/cultivation.js) — a prototype has neither (a dim line instead) */
.diy-slot__cult { display: block; margin-top: .03rem; font-size: max(calc(.12 * var(--t)), 9px); }
.diy-slot__cult .lo-cult { max-width: max(2.6rem, calc(200px * var(--sp-ui, 1))); }
.diy-slot__bad { display: flex; align-items: center; gap: .04rem; margin: .02rem 0 0; font-size: max(calc(.12 * var(--t)), 9px); color: var(--amber); }
.diy-slot.is-bad { border-color: rgba(255, 196, 0, .45); }
.diy-tag { display: inline-flex; align-items: center; height: 1.5em; padding: 0 .4em; font-size: max(calc(.11 * var(--t)), 8px); font-weight: 700; border-radius: 1em; white-space: nowrap; }
.diy-tag--proto { color: var(--ice-900); background: var(--ice); }
.diy-tag--own { color: var(--text-on-mint); background: var(--mint-500); }
.diy-bonds { display: flex; flex-wrap: wrap; gap: .03rem .06rem; }
.diy-bond { display: inline-flex; align-items: center; gap: .03rem; font-size: max(calc(.12 * var(--t)), 9px); color: var(--text-md); }
.diy-bond .bglyph, .diy-bond img { width: max(.16rem, 11px); height: max(.16rem, 11px); }
/* 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 filters, the tier, the hint (it shrinks and ellipsises), the search box
   (the roster's own `.lo-search`) and the close button — 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. */
.diy-pick__head { flex: none; display: flex; flex-direction: column; gap: .08rem; font-size: max(calc(.16 * var(--t)), 11px); }
.diy-pick__label { white-space: nowrap; }
/* the picker's own 干员列表 back button: on a phone it takes the header row once the detail covers the list, so the pane
   loses no row of its own above it (the roster keeps its own `.lo-detail-back` inside `.lo-detail-wrap`) */
.diy-pick__back { align-self: center; margin-bottom: 0; }
.diy-pick:not(.is-detail) .diy-pick__back { display: none; }
/* the picker's own top row on a phone: the 干员列表 back button beside the close button, shown once the detail covers the
   list (the list's filter row goes with `.diy-pick__col`), so the pane starts at this row instead of losing one above it */
.diy-pick__backrow { display: flex; align-items: center; gap: .06rem; }
.diy-pick__note { flex: 1; min-width: 0; font-size: max(calc(.12 * var(--t)), 9px); color: var(--text-lo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the picker's one close button: it rides the filter row, just right of the search box (the detail pane carries none) */
.diy-pick__x { display: grid; place-items: center; width: max(.4rem, 28px); height: max(.4rem, 28px); color: var(--text-md); background: none; border: 1px solid var(--line-2); cursor: var(--sp-cursor-pointer, pointer); }
/* 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(calc(.3 * var(--t)), 18px); color: var(--text-lo); }
/* a row is a .lo-card (screens/loadout.js RosterRow); only is-sel / is-taken and the 原型 / 已持有 tag are the picker's */
.diy-opt.is-sel { border-color: var(--mint-500); background: rgba(52, 211, 153, .08); }
.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(calc(.11 * var(--t)), 8px); color: var(--text-lo); }
.diy-opt__prof { width: max(.14rem, 10px); height: max(.14rem, 10px); }
.diy-opt__taken { font-size: max(calc(.1 * var(--t)), 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; }
/* 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; }
  .diy-slot { grid-template-columns: auto minmax(0, 1fr); }
  .diy-slot__acts { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}

/* ---- 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 screen under the overlay is not drawn: the overlay registers as a full-screen cover (ui/cover.js, §37.413) */

/* ---- 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(calc(.15 * var(--t)), 11px); color: var(--mint-400); background: transparent; border: 1px solid var(--mint-800); cursor: var(--sp-cursor-pointer, 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); }
  .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, 32px, calc(48px * var(--sp-ui, 1))) minmax(0, 1fr); padding: .1rem .14rem; }
  .lo-dhead__en { display: none; }
}
/* the shared Button / TextField scale with the root (40 px/rem on phones ⇒ 6–7 px text, 14–20 px tall): the overlay's
   own controls (返回, 全部恢复默认, 恢复默认, the search field) keep a readable size and a tappable height (review fix) */
.lo .lo-back { height: max(.5rem, 32px); padding: 0 max(.2rem, calc(10px * var(--sp-ui, 1))) 0 max(.12rem, calc(6px * var(--sp-ui, 1))); font-size: max(calc(.18 * var(--t)), 12px); }
.lo .lo-top__right .btn, .lo .lo-dhead__reset { height: max(.36rem, 28px); padding: 0 max(.16rem, calc(8px * var(--sp-ui, 1))); font-size: max(calc(.15 * var(--t)), 11px); }
.lo .lo-search .field__box { height: max(.56rem, 28px); padding: 0 max(.16rem, calc(6px * var(--sp-ui, 1))); }
.lo .lo-search .field__input { font-size: max(calc(.2 * var(--t)), 12px); }
.lo .lo-search .field__icon { width: max(.22rem, 14px); height: max(.22rem, 14px); }
.sp-coarse .lo-chip, .sp-coarse .lo-toggle, .sp-coarse .lo-select { min-height: 30px; }
.sp-coarse .lo-seg button { min-height: 28px; }
@media (prefers-reduced-motion: reduce) { .lo, .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, calc(8px * var(--sp-ui, 1))); font-size: max(calc(.18 * var(--t)), 12px); line-height: 1.55; color: var(--text-md); }
.lo-io__hint b { color: var(--mint-400); font-size: max(calc(.22 * var(--t)), 13px); margin: 0 .02rem; }
.lo-io__hint strong { color: var(--gold); }
.lo-io__text {
  box-sizing: border-box; width: 100%; height: max(2.4rem, 32px, calc(160px * var(--sp-ui, 1))); min-height: 120px; resize: vertical;
  padding: max(.1rem, calc(8px * var(--sp-ui, 1))) max(.12rem, calc(10px * var(--sp-ui, 1)));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* 16 px: iOS zooms into a focused field below that (same reason as ui/clipboard.js) */
  font-size: max(calc(.2 * var(--t)), 16px); line-height: 1.45;
  color: var(--text-hi); background: rgba(4, 10, 8, .55);
  border: 1px solid var(--line-2); border-radius: 2px; outline: none;
  /* wrap instead of a horizontal scrollbar: phones are narrow and the payload is meant to be read/copied whole */
  white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: auto;
}
.lo-io__text:focus { border-color: var(--mint-700); }
.lo-io__text::placeholder { color: var(--text-lo); }
.lo-io__file { display: none; }

/* Per-operator voice, a browser-local preference in roster and DIY details. */
.lo-voice { display: flex; flex-wrap: wrap; align-items: center; gap: .12rem; padding: .14rem 0; font-size: calc(.18 * var(--t)); }
.lo-voice > small { flex-basis: 100%; color: var(--text-dim); font-size: calc(.15 * var(--t)); }
.lo-voice .lo-select { min-width: 1.6rem; max-width: 100%; }
.lo-voice__preview { height: max(.4rem, 24px); padding: 0 .12rem; font: inherit; font-size: max(.15rem, 11px); color: var(--mint-400); background: transparent; border: 1px solid var(--line-2); cursor: var(--sp-cursor-pointer, pointer); }
.lo-voice__preview:hover, .lo-voice__preview:focus-visible { border-color: var(--mint-700); }

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

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

/* ==========================================================================================
   卡片视图 (the default view; js/screens/loadout.js DeckView / DeckCard / TierMark / BondMark / DeckIndex / GroupToggle /
   DeckChips / DeckConfirm): the 干员调配 tab laid out after the official 物资调配处, from the owner's recording of 规程
   (2026-11-30). A card's measures follow --card-h (loadout.js useCardSize: two rows fill the deck); text follows 文字大小
   (var(--t); the official sizes at 1920 px, where 1rem is 100 px). Eyeballed from the recording at 1920 × 1200
   [ASSUMED]: the proportions and the colours of what is drawn here (the card's panel, the bond marker, the index, the two
   blocks, 确认); the official sprites are listed in the loadout.js header. The list (.lo-body above) is the other view.
   ========================================================================================== */
.lo--deck {
  --drawer-w: min(5.6rem, 92vw);         /* the official panel: 532 px of 1920; a little wider for the remake's sections */
  --lo-top-h: max(1.12rem, 32px, calc(52px * var(--sp-ui, 1)));    /* the official bar's height (the drawer starts above it) */
  --idx-w: clamp(76px, 2.17rem, 24vw);     /* the index column: 217 px of 1920 */
  --idx-fold-w: max(.46rem, 32px);
  --deck-gap: max(.14rem, 6px);            /* between the two rows (useCardSize reads it) */
  --qw: max(.9rem, 32px, calc(48px * var(--sp-ui, 1)));             /* the 快速配置 column (modules) */
  --qcw: max(1.56rem, 32px, calc(104px * var(--sp-ui, 1)));         /* the 快速配置 column (潜能 · 练度) */
}
.lo--deck .lo__bg {
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 2.9rem 2.9rem,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 2.9rem 2.9rem,
    radial-gradient(80% 70% at 40% 45%, rgba(40, 40, 40, .6), transparent 70%),
    linear-gradient(180deg, #121212, #0a0a0a 70%, #070707);
}
/* the index stands at the right from top to bottom (the official column): the bar and the deck leave it its width */
.lo--deck.has-idx > .lo-top, .lo--deck.has-idx > .lo-deckwrap { margin-right: var(--idx-w); }
.lo--deck.has-idx-folded > .lo-top, .lo--deck.has-idx-folded > .lo-deckwrap { margin-right: var(--idx-fold-w); }

/* ---- 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; }
/* 干员调配 itself: the official bar — the dark 返回 plate, the two blocks, the toggle at the right; no rule under it */
.lo-top--official { height: var(--lo-top-h); padding-top: max(.04rem, calc(2px * var(--sp-ui, 1))); background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); border-bottom: 0; }
.lo-top--official::after { display: none; }
/* 返回: the official btn_topmenu_back plate alone (its own plate, chevron and shadow: the button itself draws nothing, or
   the plate showed twice — the owner, 2026-11-30); without the art, a dark plate of its own with a chevron */
.lo-back--plate { display: grid; place-items: center; width: max(2.24rem, 32px, calc(64px * var(--sp-ui, 1))); height: max(.98rem, 32px, calc(34px * var(--sp-ui, 1))); padding: 0; color: #e8e8e8; background: none; border: 0;
  cursor: var(--sp-cursor-pointer, pointer); }
.lo-back--plate:hover { filter: brightness(1.18); }
.lo-back__plate { display: block; width: 100%; height: 100%; object-fit: fill; }
.lo-back__fallback { display: grid; place-items: center; width: 100%; height: 100%; background: #2f2f2f; box-shadow: 0 .04rem .14rem rgba(0, 0, 0, .5); }
.lo-back__fallback > .icon { width: 42%; height: 60%; }
.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: var(--sp-cursor-pointer, pointer); }
.lo-info:hover { border-color: var(--mint-500); color: var(--mint-400); }
.lo-info .icon { width: 56%; height: 56%; }
/* never wider than the centre column (§35.51: centred in it at its own width, it ran under ⓘ and 已同步 at 1280–1440 px in
   English and Japanese) */
.lo-top__note { margin: 0; max-width: min(8.4rem, 100%); font-size: max(calc(.15 * var(--t)), 10px); color: var(--text-lo); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-tbtn { position: relative; display: inline-flex; align-items: center; gap: .06rem; height: max(.4rem, 28px); padding: 0 max(.14rem, calc(8px * var(--sp-ui, 1)));
  font: inherit; font-size: max(calc(.15 * var(--t)), 11px); font-weight: 700; color: var(--text-md); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2); cursor: var(--sp-cursor-pointer, 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(calc(.12 * var(--t)), 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(calc(.14 * var(--t)), 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, 32px, calc(150px * var(--sp-ui, 1))); 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(calc(.16 * var(--t)), 12px);
  color: var(--text-md); background: none; border: 0; text-align: left; cursor: var(--sp-cursor-pointer, 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: var(--sp-cursor-default, 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); }
/* 干员持有 / 自选编队: the official 选配助战 (teal, its assist_btn icon, a hatch) and 自选编队 (the orange diy_btn plate,
   its own icon at the right) blocks: the name above, the count big */
.lo-chips2 { display: flex; align-items: stretch; gap: max(.18rem, calc(6px * var(--sp-ui, 1))); margin-left: max(.12rem, calc(4px * var(--sp-ui, 1))); }
.lo-chip2 { position: relative; flex: none; display: inline-flex; align-items: stretch; height: max(.9rem, 32px, calc(44px * var(--sp-ui, 1))); padding: 0;
  font: inherit; text-align: left; border: 0; cursor: var(--sp-cursor-pointer, pointer); box-shadow: 0 .04rem .14rem rgba(0, 0, 0, .5); }
.lo-chip2__txt { display: flex; flex-direction: column; justify-content: center; min-width: max(1.36rem, 32px, calc(56px * var(--sp-ui, 1))); padding: 0 max(.12rem, calc(6px * var(--sp-ui, 1))); line-height: 1.04; }
.lo-chip2__k { font-size: max(calc(.21 * var(--t)), 10px); font-weight: 700; white-space: nowrap; }
.lo-chip2__v { font-size: max(calc(.38 * var(--t)), 15px); font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.lo-chip2__icon { flex: none; display: grid; place-items: center; height: 100%; aspect-ratio: 1; }
.lo-chip2__icon img, .lo-chip2__icon .icon { width: 84%; height: 84%; object-fit: contain; }
.lo-chip2--own { color: #0f3f37; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 7px) right / 46% 100% no-repeat, #31b49e; }
.lo-chip2--own:hover { background-color: #3cc6ae; }
/* 自选编队: the official diy_btn plate (orange, its icon at the right) behind the text; without the art an orange block
   with the icon in its square */
.lo-chip2--diy { padding-right: max(.9rem, 32px, calc(44px * var(--sp-ui, 1))); color: #3c2400; background: #f3a838; }
.lo-chip2--diy:hover { filter: brightness(1.08); }
.lo-chip2__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.lo-chip2--diy .lo-chip2__txt { position: relative; }
.lo-chip2__icon--css { position: absolute; right: 0; top: 0; color: #3c2400; }
/* the match's loadout is locked: said once, after the two blocks (every width and 快速配置 keep it on screen) */
.lo-lockchip { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: .06rem; height: max(.4rem, 26px); padding: 0 max(.12rem, calc(6px * var(--sp-ui, 1)));
  font-size: max(calc(.14 * var(--t)), 10px); font-weight: 700; color: var(--amber); background: rgba(246, 163, 41, .12); border: 1px solid rgba(246, 163, 41, .4); white-space: nowrap; }
.lo-lockchip > span { overflow: hidden; text-overflow: ellipsis; }
.lo-lockchip .icon { flex: none; width: max(.16rem, 11px); height: max(.16rem, 11px); }
/* 快速配置 (the white block) */
.lo-quickbtn { display: inline-flex; align-items: stretch; height: max(.6rem, 32px, calc(40px * var(--sp-ui, 1))); padding: 0; font: inherit; border: 0; cursor: var(--sp-cursor-pointer, pointer); text-align: left;
  color: #111614; background: #eef1ef; }
.lo-quickbtn__txt { display: flex; flex-direction: column; justify-content: center; padding: 0 max(.14rem, calc(8px * var(--sp-ui, 1))); line-height: 1.1; }
.lo-quickbtn__icon { display: grid; place-items: center; width: max(.52rem, 32px, calc(34px * var(--sp-ui, 1))); margin: .05rem .05rem .05rem 0; color: #eef1ef; background: #1a1f1d; }
.lo-quickbtn__icon .icon { width: 58%; height: 58%; }
.lo-quickbtn:hover:not(:disabled) { background: #fff; }
.lo-quickbtn:disabled { opacity: .45; cursor: var(--sp-cursor-default, default); }
.lo-quickbtn__txt > span { font-size: max(calc(.18 * var(--t)), 12px); font-weight: 900; letter-spacing: .04em; }
.lo-quickbtn__txt small { font-family: var(--font-display); font-size: max(calc(.09 * var(--t)), 7px); letter-spacing: .14em; color: #8b938f; }
.lo-qbar__k { font-size: max(calc(.15 * var(--t)), 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, calc(12px * var(--sp-ui, 1))); font: inherit; font-size: max(calc(.16 * var(--t)), 12px); font-weight: 800; color: var(--text-md);
  background: none; border: 0; border-radius: 999px; cursor: var(--sp-cursor-pointer, pointer); white-space: nowrap; }
.lo-qseg button.is-on { color: #111614; background: #eef1ef; }
/* 按盟约 / 按等阶: the official pill (toggle_bg's outline), the lit side white with its icon and name, the other its icon */
.lo-gtog { flex: none; display: inline-flex; align-items: center; gap: max(.06rem, calc(3px * var(--sp-ui, 1))); height: max(.72rem, 32px, calc(40px * var(--sp-ui, 1))); padding: max(.05rem, calc(3px * var(--sp-ui, 1)));
  background: rgba(30, 30, 30, .85); border: 2px solid rgba(160, 160, 160, .5); border-radius: 999px; }
.lo-gtog__side { display: inline-flex; align-items: center; justify-content: center; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); height: 100%; min-width: max(.6rem, 30px); padding: 0 max(.1rem, calc(6px * var(--sp-ui, 1)));
  font: inherit; color: #9a9a9a; background: none; border: 0; border-radius: 999px; cursor: var(--sp-cursor-pointer, pointer); }
.lo-gtog__side:hover:not(.is-on) { color: #d8d8d8; }
.lo-gtog__side.is-on { padding: 0 max(.22rem, calc(10px * var(--sp-ui, 1))) 0 max(.12rem, calc(6px * var(--sp-ui, 1))); color: #1a1a1a; background: #f2f2f2; box-shadow: 0 0 .06rem rgba(255, 255, 255, .35); }
.lo-gtog__icon { flex: none; width: max(.36rem, 18px); height: max(.36rem, 18px); object-fit: contain; }
.lo-gtog__side:not(.is-on) img.lo-gtog__icon { opacity: .75; }
.lo-gtog__side.is-on img.lo-gtog__icon { filter: invert(1); }   /* the lit side's icon dark-on-light, as in the recording */
.lo-gtog__label { font-size: max(calc(.26 * var(--t)), 12px); font-weight: 800; letter-spacing: .04em; white-space: nowrap; }

/* ---- the index (right): 收起, ALL, the tiers or the bonds ---- */
.lo-idx { position: absolute; top: 0; right: 0; bottom: 0; z-index: 7; width: var(--idx-w); display: flex; flex-direction: column;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) 0; background: linear-gradient(90deg, rgba(0, 0, 0, .86), #000 18%); border-left: 1px solid rgba(255, 255, 255, .06); }
.lo-idx__fold { flex: none; display: flex; align-items: center; justify-content: center; gap: max(.06rem, calc(3px * var(--sp-ui, 1))); height: max(1.12rem, 32px, calc(52px * var(--sp-ui, 1)));
  font: inherit; font-size: max(calc(.24 * var(--t)), 11px); font-weight: 700; color: #3fd6c0; background: none; border: 0; cursor: var(--sp-cursor-pointer, pointer); }
.lo-idx__fold .icon { width: max(.2rem, 12px); height: max(.2rem, 12px); }
.lo-idx__item { position: relative; display: flex; align-items: center; gap: max(.12rem, calc(5px * var(--sp-ui, 1))); width: 100%; padding: 0 max(.16rem, calc(6px * var(--sp-ui, 1))) 0 max(.22rem, calc(8px * var(--sp-ui, 1))); font: inherit;
  font-size: max(calc(.26 * var(--t)), 11px); font-weight: 700; color: #eaeaea; background: none; border: 0; text-align: left; cursor: var(--sp-cursor-pointer, pointer); }
.lo-idx__item:disabled { opacity: .3; cursor: var(--sp-cursor-default, default); }
.lo-idx__item:hover:not(:disabled):not(.is-on) { background: rgba(255, 255, 255, .06); }
/* the lit entry: the official teal band with its glow at the right edge */
.lo-idx__item.is-on { color: #4ce3cc; background: linear-gradient(90deg, rgba(36, 120, 110, .16), rgba(40, 200, 180, .3)); box-shadow: inset -3px 0 0 #3fe2c8, 0 0 .14rem rgba(63, 226, 200, .25); }
.lo-idx__all { flex: none; justify-content: center; height: max(1rem, 32px, calc(34px * var(--sp-ui, 1))); padding: 0; font-family: var(--font-display); font-size: max(calc(.26 * var(--t)), 12px); letter-spacing: .06em; }
.lo-idx__list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; padding: max(.1rem, calc(4px * var(--sp-ui, 1))) 0; overflow-y: auto; scrollbar-width: none; }
.lo-idx--bond .lo-idx__list { justify-content: flex-start; }
.lo-idx--tier .lo-idx__item { flex: 1 1 0; max-height: 1.6rem; }
.lo-idx--bond .lo-idx__item { flex: none; min-height: max(.84rem, 30px); }
.lo-idx__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-idx__roman { flex: none; display: grid; place-items: center; min-width: max(.36rem, 18px); height: max(.36rem, 18px); padding: 0 3px; font-family: var(--cjk-faces), sans-serif;
  font-size: max(calc(.22 * var(--t)), 10px); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--tc); border: 2px solid var(--tc); border-radius: 5px; background: #0d0d0d; }
.lo-idx__bond { flex: none; width: max(.48rem, 20px); height: max(.48rem, 20px); object-fit: contain; }
.lo-idx__diy { display: inline-flex; align-items: center; gap: 1px; margin-left: auto; padding: 0 4px; font-size: max(calc(.13 * var(--t)), 9px); color: #f3a838; background: rgba(243, 168, 56, .14); border-radius: 999px; }
.lo-idx__diy .icon { width: max(.13rem, 9px); height: max(.13rem, 9px); }
.lo-idx--folded { flex-direction: column; align-items: center; justify-content: center; gap: max(.06rem, calc(3px * var(--sp-ui, 1))); width: var(--idx-fold-w); padding: 0; font: inherit;
  font-size: max(calc(.18 * var(--t)), 10px); font-weight: 700; color: #3fd6c0; border: 0; border-left: 1px solid rgba(255, 255, 255, .08); cursor: var(--sp-cursor-pointer, pointer); writing-mode: vertical-rl; }
.lo-idx--folded .icon { width: max(.2rem, 12px); height: max(.2rem, 12px); writing-mode: horizontal-tb; }

/* ---- the deck ---- */
.lo-deckwrap { flex: 1 1 auto; min-height: 0; display: flex; }
.lo-deck { --card-h: 3.62rem; --ch: min(var(--card-h), 3.62rem); position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: max(.3rem, calc(12px * var(--sp-ui, 1))); padding: max(.3rem, calc(8px * var(--sp-ui, 1))) max(.36rem, calc(10px * var(--sp-ui, 1))) max(.26rem, calc(8px * var(--sp-ui, 1)));
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #3a3a3a 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: max(.16rem, calc(6px * var(--sp-ui, 1))); }
/* the group's marker: the official sprite (150 × 595 design px: 'NO.', the numeral, the event's vertical line), as tall
   as the two rows, 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: auto; height: calc(var(--ch) * 2 + var(--deck-gap) - max(.3rem, 18px)); max-width: calc(var(--ch) * .5); 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: calc(var(--ch) * .36);
  padding: .12rem 0 max(.34rem, calc(20px * var(--sp-ui, 1))); overflow: hidden; background: linear-gradient(180deg, #2c2c2c, #161616 60%, #101010);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 3px 0 var(--tc), 0 .06rem .2rem rgba(0, 0, 0, .4); }
.lo-tmark__no { font-family: var(--font-display); font-size: max(calc(.1 * var(--t)), 8px); letter-spacing: .12em; color: var(--text-dim); }
.lo-tmark__n { display: grid; place-items: center; width: 76%; aspect-ratio: 1 / 1.3; font-family: var(--font-num); font-size: max(calc(.38 * var(--t)), 20px); font-weight: 900;
  line-height: 1; color: var(--tc); border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .35); }
.lo-tmark__cnt { position: absolute; left: 0; right: 0; bottom: max(.04rem, calc(2px * var(--sp-ui, 1))); text-align: center; font-size: max(calc(.15 * var(--t)), 10px); color: #7a7a7a; }
/* 按盟约: the bond's emblem, big and white, at the top of the dark panel; its name under it */
.lo-bmark__panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: max(.06rem, calc(3px * var(--sp-ui, 1))); width: calc(var(--ch) * .4);
  padding: calc(var(--ch) * .06) 0 max(.34rem, calc(20px * var(--sp-ui, 1)));
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), transparent 30%), linear-gradient(180deg, #2b2b2b, #171717 55%, #0e0e0e);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .45); }
.lo-bmark__icon { width: 86%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 .04rem rgba(255, 255, 255, .35)); }
.lo-bmark__name { max-width: 94%; font-size: max(calc(.2 * var(--t)), 10px); font-weight: 800; color: #e6e6e6; text-align: center; writing-mode: vertical-rl; letter-spacing: .12em; overflow: hidden; }
.lo-tgrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, var(--ch)); grid-auto-columns: max-content; gap: var(--deck-gap) max(.1rem, calc(4px * var(--sp-ui, 1))); min-height: 0; }

/* ---- an operator card (the official 物资调配处's): [rail | portrait + stars, name, bonds | skills] ---- */
.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 { --h: var(--ch); position: relative; isolation: isolate; width: calc(var(--h) * .865); height: var(--h); display: grid;
  grid-template-columns: calc(var(--h) * .16) calc(var(--h) * .345) calc(var(--h) * .25); grid-template-rows: calc(var(--h) * .67) auto minmax(0, 1fr);
  column-gap: calc(var(--h) * .03); padding: 0 calc(var(--h) * .025) 0 0; cursor: var(--sp-cursor-pointer, pointer); }
/* the card's own panel, from the middle of the rail to the right edge (the rail stands half over it) */
.lo-op__card::before { content: ""; position: absolute; left: calc(var(--h) * .085); right: 0; top: calc(var(--h) * .035); bottom: calc(var(--h) * .03); z-index: -1;
  background: linear-gradient(180deg, #2b2b2b, #202020 60%, #1a1a1a); box-shadow: 0 .04rem .14rem rgba(0, 0, 0, .5); transition: background var(--t-fast); }
.lo-op:hover .lo-op__card::before { background: linear-gradient(180deg, #333, #262626 60%, #1e1e1e); }
/* the selected card: the official white frame around the whole card */
.lo-op.is-sel .lo-op__card::after { content: ""; position: absolute; inset: calc(var(--h) * -.01) calc(var(--h) * -.012); pointer-events: none;
  border: max(2px, calc(var(--h) * .007)) solid #f4f4f4; box-shadow: 0 0 .1rem rgba(255, 255, 255, .35), inset 0 0 .1rem rgba(255, 255, 255, .2); }
.lo-op.is-sel .lo-op__card::before { background: linear-gradient(180deg, #3a3a3a, #2c2c2c 60%, #232323); }
.lo-op__rail { grid-row: 1 / 4; grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: calc(var(--h) * .05); padding-top: calc(var(--h) * .055); }
/* The square sprite needs the rail's full height too: width alone leaves an overflowing grid image (#811). */
.lo-op__tier.tier { --tier-h: calc(var(--h) * .157); width: var(--tier-h); height: var(--tier-h); }
.lo-op__tier img { min-width: 0; min-height: 0; }
/* the levels' pill: as tall as the official one, taller when 文字大小 needs it (its two rows never overflow it) */
.lo-op__lv { display: flex; flex-direction: column; align-items: center; justify-content: space-around; gap: max(2px, calc(var(--h) * .02)); width: max(calc(var(--h) * .116), 1.4em);
  min-height: calc(var(--h) * .37); padding: calc(var(--h) * .025) 0; font-size: max(calc(.24 * var(--t)), 9px); background: #121212; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; }
.lo-op__lvrow { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1; }
.lo-op__lvrow b { font-size: max(calc(.24 * var(--t)), 9px); font-weight: 700; color: #e4e4e4; }
.lo-op__lvrow.is-elite b { color: #e4e4e4; }
.lo-op__phase { display: block; flex: none; width: calc(var(--h) * .07); height: calc(var(--h) * .055); object-fit: contain; opacity: .8;
  font-size: max(calc(.12 * var(--t)), 9px); text-align: center; color: #cfcfcf; }
.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__pot { position: relative; display: grid; place-items: center; width: calc(var(--h) * .1); height: calc(var(--h) * .1); }
.lo-op__potimg { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.lo-op__potcss { width: 70%; height: 70%; background: #e8e8e8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.lo-op__potn { position: absolute; right: calc(var(--h) * -.03); bottom: calc(var(--h) * -.02); font-size: max(calc(.15 * var(--t)), 8px); font-weight: 800; color: #f2f2f2; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.lo-op__pick { grid-row: 1; grid-column: 2; position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; cursor: var(--sp-cursor-pointer, pointer);
  background: linear-gradient(180deg, #f4f4f4, #d9d9d9 55%, #9c9c9c); border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.lo-op__art { position: absolute; inset: 0; display: block; overflow: hidden; }
.lo-op__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; display: block; }
.lo-op__glyph { display: grid; place-items: center; width: 100%; height: 100%; font-size: max(calc(.5 * var(--t)), 22px); font-weight: 900; color: rgba(17, 22, 20, .45); }
.lo-op__sub { position: absolute; left: 0; top: 0; width: calc(var(--h) * .075); height: calc(var(--h) * .075); padding: calc(var(--h) * .01); object-fit: contain; background: rgba(40, 40, 40, .88); }
/* 已调整: the official bookmark at the portrait's top right */
.lo-op__mark { position: absolute; right: calc(var(--h) * .012); top: 0; width: calc(var(--h) * .075); height: calc(var(--h) * .1); }
.lo-op__mark img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; }
.lo-op__markcss { display: block; width: 100%; height: 100%; background: #2a83d8; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.lo-op__ribbon { position: absolute; right: calc(var(--h) * .1); top: 0; padding: 3px 3px 7px; font-size: max(calc(.13 * var(--t)), 8px); font-weight: 800; line-height: 1.1; writing-mode: vertical-rl;
  color: var(--ice-900); background: var(--ice); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%); }
/* the equipped skill and module at the portrait's foot */
.lo-op__kit { position: absolute; left: calc(var(--h) * .02); right: calc(var(--h) * .02); bottom: calc(var(--h) * .02); display: flex; gap: calc(var(--h) * .02); }
.lo-op__slot { display: grid; place-items: center; width: calc(var(--h) * .135); height: calc(var(--h) * .135); background: rgba(30, 30, 30, .82); border: 1px solid rgba(255, 255, 255, .25); }
.lo-op__slot:empty { display: none; }
.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(calc(.16 * var(--t)), 10px); }
.lo-op__meta { grid-row: 2; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: calc(var(--h) * .01); min-width: 0; padding-top: calc(var(--h) * .025); }
.lo-op__stars { font-size: max(calc(.12 * var(--t)), 7px); line-height: 1; letter-spacing: -.04em; color: #bdbdbd; white-space: nowrap; }
.lo-op__name { max-width: 110%; font-size: max(calc(.26 * var(--t)), 11px); font-weight: 800; line-height: 1.1; color: #f2f2f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-op__bonds { grid-row: 3; grid-column: 2; display: flex; justify-content: center; align-items: flex-start; gap: calc(var(--h) * .02); padding-top: calc(var(--h) * .018); }
/* the bonds: the official lit discs — teal, the emblem dark — as under the official cards */
.lo-op__bond { display: grid; place-items: center; width: calc(var(--h) * .11); height: calc(var(--h) * .11); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #3cf1cf, #14b89a 70%, #0e8f78); box-shadow: 0 0 calc(var(--h) * .02) rgba(46, 230, 196, .55); }
.lo-op__bond img { width: 68%; height: 68%; object-fit: contain; filter: brightness(0); opacity: .82; }
.lo-op.is-standin .lo-op__art img { filter: saturate(.5); }
/* the skills (up to three) at the right: tap one to equip it — the equipped one in the official outline */
.lo-op__skills { grid-row: 1 / 4; grid-column: 3; display: flex; flex-direction: column; gap: calc(var(--h) * .055); padding-top: calc(var(--h) * .064); }
.lo-op__skills .lo-q { width: calc(var(--h) * .24); height: calc(var(--h) * .24); padding: 0; opacity: 1; }
.lo-op__skills .lo-q .lo-sicon { width: 100%; height: 100%; }
.lo-op__skills .lo-q.is-on::after { content: ""; position: absolute; right: -1px; top: -1px; width: 30%; height: 30%; pointer-events: none;
  background: #1e8fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.lo-op__skills .lo-q.is-on::before { content: ""; position: absolute; right: 3%; top: 4%; z-index: 1; width: 12%; height: 7%; pointer-events: none;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.lo-op__skills .lo-q--empty { display: grid; place-items: center; background: #202020; border: max(2px, calc(var(--h) * .006)) solid #4a4a4a; }
.lo-op__skills .lo-q--empty img { width: 100%; height: 100%; object-fit: contain; opacity: .7; }
/* 快速配置: 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, calc(4px * var(--sp-ui, 1))) 0; overflow-y: auto; scrollbar-width: none;
  background: rgba(18, 18, 18, .94); 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, calc(5px * var(--sp-ui, 1))); 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(calc(.12 * var(--t)), 9px); color: var(--text-dim); writing-mode: vertical-rl; letter-spacing: .2em; }
/* 甄选干员 (自选编队) closing tiers 5 / 6: the official 自选 frame (orange, the operator_diy corner) */
.lo-op--diy { flex-direction: column; align-items: center; justify-content: center; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); width: calc(var(--ch) * .62); height: var(--ch);
  padding: .1rem; font: inherit; color: var(--text-hi); cursor: var(--sp-cursor-pointer, pointer);
  background: linear-gradient(180deg, rgba(248, 128, 0, .16), rgba(120, 60, 0, .1)); border: 2px solid #f39a1e; box-shadow: 0 0 .1rem rgba(243, 154, 30, .35); }
.lo-op--diy:hover { background: linear-gradient(180deg, rgba(248, 128, 0, .24), rgba(120, 60, 0, .14)); }
.lo-diy__corner { position: absolute; right: 0; top: 0; width: 34%; height: auto; pointer-events: none; }
.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: #1a1a1a; border: 1px solid var(--tc); font-weight: 900; }
.lo-diy__label { font-size: max(calc(.16 * var(--t)), 11px); font-weight: 800; letter-spacing: .1em; }
.lo-diy__n { font-size: max(calc(.3 * var(--t)), 16px); color: var(--text-lo); }
.lo-diy__n b { color: var(--text-hi); font-size: max(calc(.4 * var(--t)), 20px); }

/* 规程's saved 自选 picks in the deck (§37.405, the recording 0:50–1:25): the 物资调配处 card, its portrait in the official orange
   frame with the operator_diy corner; a tier's open slots: one official + card with how many are open [ASSUMED: sizes] */
.lo-op--diypick .lo-op__pick { box-shadow: 0 0 calc(var(--h) * .03) rgba(243, 154, 30, .45); }
/* operator_diy (58 × 66): a 3 px rim inside a 2 px margin, the corner (its triangle down to row 40) 42 × 41 px — sliced so that only
   the rim stretches, drawn at the card's scale (the corner ~ .1 of the card's height) */
.lo-op__diyframe { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-style: solid;
  border-width: calc(var(--h) * .1) calc(var(--h) * .1024) calc(var(--h) * .0122) calc(var(--h) * .0122); border-image-slice: 41 42 5 5; border-image-repeat: stretch; }
.lo-op__diyframe--css { border: max(2px, calc(var(--h) * .0075)) solid #f5ab37; }
.lo-op__diyframe--css i { position: absolute; right: 0; top: 0; width: calc(var(--h) * .1); height: calc(var(--h) * .1); background: linear-gradient(225deg, #f5ab37 50%, transparent 50%); }
.lo-op--diyadd { --h: var(--ch); position: relative; flex: none; display: grid; place-items: center; width: calc(var(--ch) * .58); height: var(--ch); padding: 0;
  background: none; border: 0; cursor: var(--sp-cursor-pointer, pointer); }
.lo-op--diyadd:hover { filter: brightness(1.25); }
.lo-diyadd__art { width: 100%; height: 100%; object-fit: contain; }
.lo-diyadd__n { position: absolute; right: 2%; top: 1%; display: inline-flex; align-items: center; gap: 2px; padding: 1px max(.08rem, calc(5px * var(--sp-ui, 1)));
  font-size: max(calc(.2 * var(--t)), 11px); font-weight: 800; color: #3c2400; background: #f3a838; border-radius: 999px; box-shadow: 0 0 .06rem rgba(0, 0, 0, .5); }
.lo-diyadd__n .icon { width: max(.16rem, 10px); height: max(.16rem, 10px); }

/* ---- the detail drawer: the official white panel (loadout.js DeckDetail) over the deck's left, from the top of the
   overlay — it covers the bar's 返回 and blocks as on the official screen, its own plate folds it. The panel is light:
   the shared sections inside (skills, modules, 特性, 潜能与练度, voice, 外观) read its colours from the variables below;
   the few colours of their own are matched after them. Sizes and colours eyeballed from the recording [ASSUMED]. ---- */
.lo-drawer { position: absolute; left: 0; top: calc(-1 * var(--lo-top-h)); bottom: 0; z-index: 8; width: var(--drawer-w); display: flex; flex-direction: column;
  background: #ececec; box-shadow: .1rem 0 .4rem rgba(0, 0, 0, .6); animation: lo-drawer-slide 320ms cubic-bezier(.16, .84, .3, 1) backwards; }
@keyframes lo-drawer-slide { from { transform: translateX(-.6rem); opacity: 0; } }
.lo-ddetail { --text-hi: #141414; --text-md: #2b2b2b; --text-lo: #4f4f4f; --text-dim: #707070; --line: rgba(0, 0, 0, .1); --line-2: rgba(0, 0, 0, .18); --line-3: rgba(0, 0, 0, .3);
  --mint-400: #0d8e78; --mint-500: #11a88e; --mint-700: #0b6b5b; --mint-800: #0a5a4c; --text-on-mint: #fff; --gold-2: #a87400; --amber: #b36200; --ice: #1d6fb8;
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; color: var(--text-hi); background: #e8e8e8; border: 0; box-shadow: none; }
.lo-ddhead { flex: none; display: flex; flex-direction: column; gap: max(.12rem, calc(6px * var(--sp-ui, 1))); padding: max(.16rem, calc(6px * var(--sp-ui, 1))) max(.2rem, calc(8px * var(--sp-ui, 1))) max(.16rem, calc(8px * var(--sp-ui, 1)));
  background: linear-gradient(180deg, #fafafa, #f0f0f0); }
.lo-ddhead__top { display: flex; align-items: center; justify-content: space-between; gap: .1rem; }
/* the official btn_topmenu_back alone (its own plate and shadow; a plate under it showed twice, §37.409); without the art
   the fallback is the dark plate with a chevron */
.lo-ddback { display: grid; place-items: center; width: max(2.34rem, 32px, calc(64px * var(--sp-ui, 1))); height: max(.75rem, 32px); padding: 0; color: #f0f0f0; background: none; border: 0;
  cursor: var(--sp-cursor-pointer, pointer); }
.lo-ddback:hover { filter: brightness(1.2); }
.lo-ddback__plate { display: block; width: 100%; height: 100%; object-fit: fill; }
.lo-ddback__fallback { display: grid; place-items: center; width: 100%; height: 100%; background: #303030; box-shadow: 0 .03rem .1rem rgba(0, 0, 0, .35); }
.lo-ddback__fallback > .icon { width: 30%; height: 56%; }
.lo-ddreset { display: inline-flex; align-items: center; gap: .05rem; height: max(.4rem, 26px); padding: 0 max(.12rem, calc(6px * var(--sp-ui, 1))); font: inherit; font-size: max(calc(.15 * var(--t)), 10px);
  color: #3a3a3a; background: rgba(0, 0, 0, .05); border: 1px solid rgba(0, 0, 0, .18); cursor: var(--sp-cursor-pointer, pointer); }
.lo-ddreset:disabled { opacity: .4; cursor: var(--sp-cursor-default, default); }
.lo-ddreset .icon { width: max(.16rem, 11px); height: max(.16rem, 11px); }
.lo-ddhead__id { display: flex; align-items: flex-end; gap: max(.12rem, calc(6px * var(--sp-ui, 1))); min-width: 0; }
.lo-ddhead__names { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.lo-ddhead__en { font-size: max(calc(.2 * var(--t)), 10px); color: #6a6a6a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-ddhead__name { margin: 0; font-size: max(calc(.42 * var(--t)), 18px); font-weight: 900; line-height: 1.12; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-ddhead__tier { flex: none; display: inline-flex; align-items: center; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); height: max(.6rem, 28px); padding: 0 max(.14rem, calc(8px * var(--sp-ui, 1)));
  font-size: max(calc(.24 * var(--t)), 11px); font-weight: 700; color: #3c3c3c; background: #d5d5d5; }
.lo-ddhead__tier .tier { --tier-h: max(.36rem, 18px); width: var(--tier-h); height: var(--tier-h); }
.lo-ddhead__cls { flex: none; display: inline-flex; }
.lo-ddhead__prof, .lo-ddhead__sub { display: grid; place-items: center; width: max(.6rem, 28px); height: max(.6rem, 28px); }
.lo-ddhead__prof { background: #222; }
.lo-ddhead__sub { background: #cfcfcf; }
.lo-ddhead__prof img { width: 70%; height: 70%; object-fit: contain; filter: none; mix-blend-mode: normal; opacity: 1; }
.lo-ddhead__sub img { width: 66%; height: 66%; object-fit: contain; filter: brightness(0); opacity: .55; }
/* 初始 / 精锐: the official pill, the chosen side dark */
.lo-ddform { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: max(.72rem, 32px, calc(40px * var(--sp-ui, 1))); padding: 4px; background: #d9d9d9; border-radius: 999px; }
.lo-ddform__side { display: flex; align-items: center; justify-content: center; gap: max(.14rem, calc(6px * var(--sp-ui, 1))); min-width: 0; padding: 0 .1rem; font: inherit; color: #2a2a2a;
  background: none; border: 0; border-radius: 999px; cursor: var(--sp-cursor-pointer, pointer); }
.lo-ddform__side:disabled { opacity: .4; cursor: var(--sp-cursor-default, default); }
.lo-ddform__side.is-on { color: #f4f4f4; background: #242424; box-shadow: 0 .03rem .08rem rgba(0, 0, 0, .35); }
.lo-ddform__k { font-size: max(calc(.28 * var(--t)), 12px); font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.lo-ddform__lv { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.lo-ddform__lv small { font-size: max(calc(.13 * var(--t)), 8px); }
.lo-ddform__lv b { font-size: max(calc(.28 * var(--t)), 12px); font-weight: 700; }
.lo-ddform__phase { align-self: center; width: max(.3rem, 14px); height: max(.24rem, 12px); object-fit: contain; }
.lo-ddform__side:not(.is-on) img.lo-ddform__phase { filter: brightness(0); opacity: .65; }
/* 攻击范围 and the stats: the range box at the left, the stats in two columns */
.lo-ddstats .dstats-wrap { display: grid; grid-template-columns: max(1.7rem, 32px, calc(60px * var(--sp-ui, 1))) minmax(0, 1fr); gap: max(.12rem, calc(6px * var(--sp-ui, 1))); }
.lo-ddstats .drange { order: -1; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: max(.06rem, calc(3px * var(--sp-ui, 1))); padding: max(.08rem, calc(4px * var(--sp-ui, 1))); background: #8f8f8f; }
.lo-ddstats .drange .dstat__k { color: #f4f4f4; }
.lo-ddstats .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px max(.12rem, calc(6px * var(--sp-ui, 1))); background: none; border: 0; }
.lo-ddstats .dstat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .06rem; padding: max(.03rem, calc(2px * var(--sp-ui, 1))) max(.06rem, calc(4px * var(--sp-ui, 1))); background: #e2e2e2; }
.lo-ddstats .dstat__k { color: #555; }
.lo-ddstats .dstat__v { color: #161616; }
/* the tabs: dark, the chosen one light */
.lo-ddtabs { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: max(.6rem, 32px, calc(40px * var(--sp-ui, 1))); background: #2b2b2b; }
.lo-ddtab { display: flex; align-items: center; justify-content: safe center; gap: 2px; min-width: 0; padding: 0 2px; font: inherit; font-size: max(calc(.3 * var(--t)), 12px); font-weight: 800;
  color: #ededed; background: #2b2b2b; border: 0; cursor: var(--sp-cursor-pointer, pointer); white-space: nowrap; overflow: hidden; }
.lo-ddtab:hover:not(.is-on) { background: #383838; }
.lo-ddtab.is-on { color: #151515; background: #f4f4f4; }
.lo-ddtab__plus { font-style: normal; opacity: .7; }
.lo-ddbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: max(.14rem, calc(6px * var(--sp-ui, 1))) max(.16rem, calc(8px * var(--sp-ui, 1))) max(.3rem, calc(12px * var(--sp-ui, 1)));
  background: linear-gradient(180deg, #e6e6e6, #eeeeee); scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .3) transparent; }
.lo-ddnote { width: fit-content; max-width: 100%; margin: 0 auto max(.12rem, calc(6px * var(--sp-ui, 1))); padding: max(.04rem, calc(2px * var(--sp-ui, 1))) max(.3rem, calc(12px * var(--sp-ui, 1)));
  font-size: max(calc(.24 * var(--t)), 11px); color: #4c4c4c; text-align: center; background: #d0d0d0; border-radius: 999px; }
.lo-ddempty { margin: .2rem 0; font-size: max(calc(.18 * var(--t)), 11px); color: var(--text-dim); text-align: center; }
/* 卫戍协议: the bonds as on the official tab — the dark emblem disc and the name beside the effect */
.lo-ddbonds { display: flex; flex-direction: column; gap: max(.12rem, calc(6px * var(--sp-ui, 1))); margin: max(.12rem, calc(6px * var(--sp-ui, 1))) 0; }
.lo-ddbonds__h { margin: 0; padding: max(.04rem, calc(2px * var(--sp-ui, 1))) 0; font-size: max(calc(.24 * var(--t)), 12px); font-weight: 800; color: #333; text-align: center; background: #d6d6d6; border-radius: max(.14rem, calc(8px * var(--sp-ui, 1))) max(.14rem, calc(8px * var(--sp-ui, 1))) 0 0; }
.lo-ddbond { display: grid; grid-template-columns: max(1.1rem, 32px, calc(50px * var(--sp-ui, 1))) minmax(0, 1fr); gap: max(.1rem, calc(6px * var(--sp-ui, 1))); align-items: start; }
.lo-ddbond__id { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: max(calc(.2 * var(--t)), 10px); color: #222; text-align: center; }
.lo-ddbond__icon { display: grid; place-items: center; width: max(.84rem, 32px, calc(38px * var(--sp-ui, 1))); height: max(.84rem, 32px, calc(38px * var(--sp-ui, 1))); border-radius: 50%; background: #262626; }
.lo-ddbond__icon img { width: 70%; height: 70%; object-fit: contain; }
.lo-ddbond__desc { font-size: max(calc(.17 * var(--t)), 11px); line-height: 1.6; color: #2c2c2c; }
/* the skills' and the modules' own heads give way to the official banner and the 初始 / 精锐 pill above */
.lo-ddpane > .lo-sec > .lo-sec__head { display: none; }
/* the panel covers the bar's left as on the official screen: the two blocks step aside while it is open (the lock chip
   after them stays where it was, still said once) */
.lo--deck.has-drawer .lo-chips2, .lo--deck.has-drawer .lo-top__left > .lo-info { visibility: hidden; }
/* the shared sections on the light panel */
.lo-ddetail .lo-sec + .lo-sec, .lo-ddetail .lo-sec { margin-top: 0; }
.lo-ddetail .lo-sec__head h3::before { background: var(--mint-500); }
.lo-ddetail .lo-skill, .lo-ddetail .lo-mod { background: rgba(255, 255, 255, .55); border-color: rgba(0, 0, 0, .1); }
.lo-ddetail .lo-skill:hover, .lo-ddetail .lo-mod:hover { background: rgba(255, 255, 255, .8); }
.lo-ddetail .lo-skill.is-on { background: linear-gradient(90deg, rgba(30, 160, 255, .16), rgba(255, 255, 255, .7) 70%); border-color: #1e8fff; box-shadow: inset 0 0 0 1px rgba(30, 143, 255, .5); }
.lo-ddetail .lo-skill.is-on .lo-skill__slot { color: #0c6fd0; border-color: rgba(30, 143, 255, .6); }
.lo-ddetail .lo-mod.is-on { background: linear-gradient(90deg, rgba(242, 189, 62, .22), rgba(255, 255, 255, .7) 75%); }
.lo-ddetail .lo-minfo { background: rgba(255, 255, 255, .6); }
.lo-ddetail .lo-attr { background: rgba(0, 0, 0, .04); }
.lo-ddetail .lo-badge--on { color: #fff; background: #1e8fff; }
.lo-ddetail .dgarrison, .lo-ddetail .lo-garrisons { color: var(--text-hi); }
.lo-ddetail .lo-locknote--standin { color: #1d5f99; }
/* a saved 自选 pick's panel: 「自选调整」 at its foot, the official detail_diy_bg behind the detail_diy_button plate (its icon
   at the right); a gradient and a pill without the art [ASSUMED: sizes] */
.lo-ddfoot { position: relative; flex: none; display: flex; align-items: center; min-height: max(1.4rem, 32px, calc(64px * var(--sp-ui, 1)));
  padding: max(.16rem, calc(6px * var(--sp-ui, 1))) max(.36rem, calc(12px * var(--sp-ui, 1))); overflow: hidden; }
.lo-ddfoot__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%; pointer-events: none; }
.lo-ddfoot__bg--css { display: block; background: linear-gradient(170deg, rgba(232, 232, 232, 0) 20%, rgba(214, 160, 20, .55)); }
.lo-diyadj { position: relative; display: inline-flex; align-items: center; width: min(3.25rem, 86%); height: max(.73rem, 32px, calc(40px * var(--sp-ui, 1)));
  padding: 0 max(.6rem, calc(20px * var(--sp-ui, 1))) 0 max(.36rem, calc(14px * var(--sp-ui, 1))); font: inherit; color: #2a1d00; background: none; border: 0;
  cursor: var(--sp-cursor-pointer, pointer); }
.lo-diyadj:hover { filter: brightness(1.06); }
.lo-diyadj__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.lo-diyadj__plate--css { display: block; background: #f5b318; border-radius: 999px; box-shadow: 0 .03rem .1rem rgba(0, 0, 0, .3); }
.lo-diyadj__l { position: relative; font-size: max(calc(.26 * var(--t)), 12px); font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
/* the official 确认 at the bottom right of the deck (the brushed light plate, the dark check box) */
.lo-confirm { position: absolute; right: max(.3rem, calc(10px * var(--sp-ui, 1))); bottom: max(.3rem, calc(10px * var(--sp-ui, 1))); z-index: 5; display: inline-flex; align-items: center; gap: max(.16rem, calc(8px * var(--sp-ui, 1)));
  height: max(.84rem, 32px, calc(44px * var(--sp-ui, 1))); min-width: max(3.3rem, 32px, calc(120px * var(--sp-ui, 1))); padding: 0 max(.3rem, calc(14px * var(--sp-ui, 1))) 0 max(.16rem, calc(6px * var(--sp-ui, 1))); font: inherit; color: #1a1a1a;
  background: linear-gradient(100deg, #f2f2f2, #d7d7d7 60%, #ececec); border: 0; box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .55); cursor: var(--sp-cursor-pointer, pointer); }
.lo-confirm:hover { background: linear-gradient(100deg, #fff, #e4e4e4 60%, #f6f6f6); }
.lo-confirm__box { display: grid; place-items: center; width: max(.56rem, 26px); height: max(.56rem, 26px); color: #f2f2f2; background: #1e1e1e; border-radius: 4px; }
.lo-confirm__box .icon { width: 66%; height: 66%; }
.lo-confirm__l { flex: 1 1 auto; text-align: center; font-size: max(calc(.34 * var(--t)), 14px); font-weight: 800; letter-spacing: .1em; }
.lo-confirm:disabled { opacity: .5; cursor: var(--sp-cursor-default, default); }

/* ---- the white panel before an operator is touched (loadoutSections.js DeckPanelEmpty; the official 自选编队 screen):
   the faint rook of the official empty art behind 「轻触右侧干员以查看详情」, the tabs inert, NO INFO rows [ASSUMED: sizes] ---- */
.lo-ddhead--empty { gap: 0; padding-bottom: 0; }
.lo-ddhint { position: relative; display: grid; place-items: center; height: max(3.6rem, 32px, calc(150px * var(--sp-ui, 1))); overflow: hidden; }
.lo-ddhint__art { position: absolute; left: 50%; top: 50%; width: min(100%, 4.8rem); height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.lo-ddhint__art--css { width: 1.6rem; height: 1.6rem; color: rgba(0, 0, 0, .08); }
.lo-ddhint__text { position: relative; margin: 0; padding: 0 max(.12rem, calc(6px * var(--sp-ui, 1))); font-size: max(calc(.32 * var(--t)), 13px); font-weight: 700;
  letter-spacing: .04em; color: #6a6a6a; text-align: center; }
.lo-ddtabs .lo-ddtab:disabled { color: #ededed; background: #2b2b2b; cursor: var(--sp-cursor-default, default); }
.lo-ddbody--empty { display: flex; flex-direction: column; justify-content: space-around; gap: max(.2rem, calc(8px * var(--sp-ui, 1))); padding: max(.3rem, calc(10px * var(--sp-ui, 1))) max(.24rem, calc(8px * var(--sp-ui, 1))); }
.lo-ddnoinfo { display: flex; align-items: center; gap: max(.2rem, calc(8px * var(--sp-ui, 1))); }
.lo-ddnoinfo__box { position: relative; flex: none; width: max(1.06rem, 32px, calc(56px * var(--sp-ui, 1))); aspect-ratio: 1; border: 3px solid #bdbdbd; }
.lo-ddnoinfo__box i { position: absolute; left: 50%; top: 50%; width: 46%; height: 2px; background: #bdbdbd; transform: translate(-50%, -50%) rotate(-45deg); }
.lo-ddnoinfo__t { flex: 1 1 auto; text-align: center; font-family: var(--font-display); font-size: max(calc(.24 * var(--t)), 11px); letter-spacing: .04em; color: #b4b4b4; }

/* ---- 自选编队, the official way (§37.405, js/screens/diyDeck.js): 选择自选编队 (the tab), the tier picker over the overlay,
   the cards (the 物资调配处 card's parts without its skill column). Eyeballed from the owner's recording at 1920 × 1200
   [ASSUMED]: every size and colour, the chosen card's gold / orange panel, the prototype corner's teal. ---- */
.diy-ov { --deck-gap: max(.14rem, 6px); gap: max(.08rem, calc(4px * var(--sp-ui, 1))); padding: max(.12rem, calc(4px * var(--sp-ui, 1))) max(.3rem, calc(10px * var(--sp-ui, 1))) max(.16rem, calc(6px * var(--sp-ui, 1))); }
.diy-ov__head { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: max(.04rem, calc(2px * var(--sp-ui, 1))); min-width: 0; }
.diy-ov__title { display: inline-flex; align-items: center; gap: max(.1rem, calc(4px * var(--sp-ui, 1))); margin: 0; font-size: max(calc(.48 * var(--t)), 16px); font-weight: 900;
  letter-spacing: .06em; line-height: 1.2; color: #f6a72a; }
.diy-ov__icon { flex: none; width: max(.6rem, 20px); height: max(.6rem, 20px); object-fit: contain; }
.diy-ov__lead { margin: 0; max-width: 100%; font-size: max(calc(.24 * var(--t)), 11px); color: #e6e6e6; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diy-ov .diy__plug { position: absolute; right: 0; top: 0; }
.diy-ov__rows { --ch: min(calc(var(--card-h, 3.62rem) - max(.14rem, 8px)), 3.62rem); flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: repeat(2, auto);
  align-content: center; gap: var(--deck-gap); }
.diy-ov__row { --glow: rgba(248, 191, 0, .24); --glow-lo: rgba(248, 191, 0, .06); min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center;
  gap: max(.12rem, calc(6px * var(--sp-ui, 1))); padding: max(.06rem, calc(3px * var(--sp-ui, 1))) max(.12rem, calc(6px * var(--sp-ui, 1)));
  background: linear-gradient(90deg, transparent, var(--glow) 14%, var(--glow-lo) 50%, transparent 92%); }
.diy-ov__row.lo-op--t6 { --glow: rgba(248, 128, 0, .26); --glow-lo: rgba(248, 128, 0, .07); }
.diy-ov__tag { flex: none; display: block; height: var(--ch); padding: 0; background: none; border: 0; cursor: var(--sp-cursor-pointer, pointer); }
.diy-ov__tagart { display: block; height: var(--ch); width: auto; object-fit: contain; }
.diy-ov__tagcss { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .04rem; width: calc(var(--ch) * .34); height: 92%; padding-top: .1rem;
  color: var(--tc); background: linear-gradient(180deg, #2c2c2c, #141414); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 3px 0 var(--tc); }
.diy-ov__tagcss small { font-family: var(--font-display); font-size: max(calc(.1 * var(--t)), 8px); color: var(--text-dim); }
.diy-ov__tagcss b { font-family: var(--font-num); font-size: max(calc(.42 * var(--t)), 18px); line-height: 1; }
.diy-ov__slots { min-width: 0; display: flex; align-items: center; gap: max(.1rem, calc(4px * var(--sp-ui, 1))); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
/* an empty slot: the official + card (its ✕ box, NO INFO pill and 自选 mark are in the sprite) */
.diy-ov__cell { flex: none; display: flex; }
.diy-ov__add { position: relative; flex: none; display: grid; place-items: center; width: calc(var(--ch) * .58); height: var(--ch); padding: 0; background: none; border: 0;
  cursor: var(--sp-cursor-pointer, pointer); }
.diy-ov__add:hover { filter: brightness(1.25); }
.diy-ov__addart { width: 100%; height: 100%; object-fit: contain; }
.diy-ov__addcss { display: flex; align-items: flex-start; gap: calc(var(--ch) * .03); width: 100%; height: 100%; padding-top: calc(var(--ch) * .055); }
.diy-ov__addcss .diy-dc__box { --h: var(--ch); flex: none; }
.diy-ov__plus { flex: 1 1 auto; display: grid; place-items: center; height: 66%; color: #d0d0d0; background: #262626; border: 2px solid #5a5a5a; }
.diy-ov__plus .icon { width: 40%; height: 40%; }
.diy-ov__add.is-bad .diy-dc__bad { top: 4%; right: 4%; }

/* the tier picker: the white panel at the left from top to bottom, the banner at the top right, the deck, 清空选择 / 确认 */
.diy-dk { --dk-panel-w: min(5.6rem, 92vw); --deck-gap: max(.14rem, 6px); position: absolute; inset: 0; z-index: 9; display: flex;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) var(--sa-l, 0px); color: var(--text-hi);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 2.9rem 2.9rem,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 2.9rem 2.9rem,
    radial-gradient(80% 70% at 55% 45%, rgba(40, 40, 40, .6), transparent 70%),
    linear-gradient(180deg, #121212, #0a0a0a 70%, #070707);
  animation: lo-in 200ms var(--ease-out) backwards; }
.diy-dk__side { position: relative; z-index: 2; flex: none; width: var(--dk-panel-w); min-height: 0; display: flex; flex-direction: column; background: #ececec;
  box-shadow: .1rem 0 .4rem rgba(0, 0, 0, .6); animation: lo-drawer-slide 320ms cubic-bezier(.16, .84, .3, 1) backwards; }
.diy-dk__main { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.diy-dk__banner { flex: none; align-self: flex-end; max-width: 100%; display: flex; align-items: center; gap: max(.2rem, calc(8px * var(--sp-ui, 1)));
  min-height: max(1rem, 32px, calc(52px * var(--sp-ui, 1))); margin-top: max(.1rem, calc(4px * var(--sp-ui, 1))); padding-left: max(.9rem, calc(28px * var(--sp-ui, 1)));
  background: linear-gradient(90deg, transparent, rgba(56, 34, 4, .72) 16%, rgba(104, 62, 8, .78) 58%, #d48712 88%, #f2a52a); }
.diy-dk__title { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.18; }
.diy-dk__name { display: inline-flex; align-items: center; gap: max(.1rem, calc(4px * var(--sp-ui, 1))); font-size: max(calc(.36 * var(--t)), 15px); letter-spacing: .04em;
  color: #f6a72a; white-space: nowrap; }
.diy-dk__name b { font-weight: 900; }
.diy-dk__tier.tier { --tier-h: max(.42rem, 20px); width: var(--tier-h); height: var(--tier-h); }
.diy-dk__sub { max-width: 100%; font-size: max(calc(.25 * var(--t)), 11px); color: #e8e8e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diy-dk__count { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.diy-dk__countk { padding: 0 max(.12rem, calc(6px * var(--sp-ui, 1))); font-size: max(calc(.22 * var(--t)), 10px); color: #f2f2f2; white-space: nowrap; background: rgba(18, 18, 18, .82);
  border-radius: 999px; }
.diy-dk__countv { font-size: max(calc(.42 * var(--t)), 16px); font-weight: 900; line-height: 1; color: #f6a72a; letter-spacing: .02em; }
.diy-dk__icon { flex: none; width: max(.6rem, 24px); height: max(.6rem, 24px); object-fit: contain; opacity: .28; filter: brightness(0); }
.diy-dk__profwrap { position: relative; flex: none; align-self: stretch; display: flex; }
.diy-dk__prof { display: inline-flex; align-items: center; justify-content: center; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); min-width: max(1.24rem, 32px, calc(64px * var(--sp-ui, 1)));
  margin: max(.12rem, calc(4px * var(--sp-ui, 1))) 0; padding: 0 max(.2rem, calc(8px * var(--sp-ui, 1))); font: inherit; font-size: max(calc(.24 * var(--t)), 11px); color: #cfcfcf;
  white-space: nowrap; background: rgba(26, 26, 26, .94); border: 0; cursor: var(--sp-cursor-pointer, pointer); }
.diy-dk__prof:hover, .diy-dk__prof.is-on { color: #fff; }
.diy-dk__prof.is-on { box-shadow: inset 0 -3px 0 #f6a72a; }
.diy-dk__lines { flex: none; width: max(.2rem, 10px); height: max(.15rem, 8px);
  background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
.diy-dk__pop { width: max-content; max-width: calc(100vw - 24px); }
.diy-dk__pop .lo-chips--prof { flex-wrap: wrap; max-width: min(8rem, calc(100vw - 48px)); }
.diy-dk__deck { min-height: 0; padding-left: max(.36rem, calc(12px * var(--sp-ui, 1))); }
.diy-dk__deck > .lo-empty { margin: auto; }
.diy-dk__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .2rem;
  padding: max(.06rem, calc(4px * var(--sp-ui, 1))) max(.4rem, calc(12px * var(--sp-ui, 1))) max(.3rem, calc(10px * var(--sp-ui, 1))) max(.5rem, calc(14px * var(--sp-ui, 1))); }
.diy-dk__foot .lo-confirm { position: relative; right: auto; bottom: auto; }
/* 清空选择: the official dark button, light rim, the ✕-in-a-box at its left */
.diy-dk__clear { display: inline-flex; align-items: center; gap: max(.14rem, calc(6px * var(--sp-ui, 1))); height: max(.68rem, 32px, calc(40px * var(--sp-ui, 1)));
  min-width: max(2.56rem, 32px, calc(120px * var(--sp-ui, 1))); padding: 0 max(.2rem, calc(10px * var(--sp-ui, 1))); font: inherit; font-size: max(calc(.32 * var(--t)), 13px); font-weight: 700;
  color: #ececec; background: rgba(22, 22, 22, .92); border: 2px solid #8a8a8a; cursor: var(--sp-cursor-pointer, pointer); box-shadow: 0 .04rem .14rem rgba(0, 0, 0, .5); }
.diy-dk__clear:hover:not(:disabled) { border-color: #d0d0d0; }
.diy-dk__clear:disabled { opacity: .45; cursor: var(--sp-cursor-default, default); }
.diy-dk__clearbox { flex: none; display: grid; place-items: center; width: max(.34rem, 18px); height: max(.34rem, 18px); border: 2px solid currentColor; border-radius: 3px; }

/* a card: the rail (the ✕ box or the tier badge, the NO INFO pill or the levels, 潜能), the portrait, stars / name / bonds */
.diy-dc .lo-op__card { width: calc(var(--h) * .58); grid-template-columns: calc(var(--h) * .16) calc(var(--h) * .345); padding-right: calc(var(--h) * .02); }
.diy-dc__box { display: grid; place-items: center; flex: none; width: calc(var(--h) * .157); height: calc(var(--h) * .157); padding: 0; color: #d4d4d4; background: #151515;
  border: max(2px, calc(var(--h) * .006)) solid #a2a2a2; border-radius: 18%; }
button.diy-dc__box { cursor: var(--sp-cursor-pointer, pointer); }
button.diy-dc__box:hover:not(:disabled) { color: #fff; border-color: #e2e2e2; }
button.diy-dc__box:disabled { opacity: .4; cursor: var(--sp-cursor-default, default); }
.diy-dc__box.is-on { background: none; border: 0; border-radius: 0; }
.diy-dc__x { position: relative; display: block; width: 72%; height: 72%; }
.diy-dc__x::before, .diy-dc__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 128%; height: max(1px, 7%); background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg); }
.diy-dc__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.diy-dc__noinfo { display: grid; place-items: center; width: calc(var(--h) * .11); min-height: calc(var(--h) * .37); font-family: var(--font-display); font-size: max(calc(.1 * var(--t)), 7px);
  letter-spacing: .1em; color: #707070; writing-mode: vertical-rl; background: #121212; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; }
.diy-dc__proto { position: absolute; right: 0; top: 0; width: calc(var(--h) * .105); height: calc(var(--h) * .105); pointer-events: none; }
.diy-dc__proto img { display: block; width: 100%; height: 100%; object-fit: contain; filter: hue-rotate(-42deg) saturate(.85); }   /* the sprite is blue, the recording's corner teal */
.diy-dc__protocss { display: grid; place-items: start end; width: 100%; height: 100%; color: #0f2e27; background: linear-gradient(225deg, #22b393 50%, transparent 50%); }
.diy-dc__protocss .icon { width: 48%; height: 48%; }
/* the chosen slot's number over the portrait (the official dark numeral, a light rim) */
.diy-dc__num { position: absolute; left: 0; right: 0; top: 2%; text-align: center; font-family: var(--cjk-faces), sans-serif; font-size: min(calc(var(--h) * .3), calc(1.1 * var(--t)));
  font-weight: 900; line-height: 1; color: #1d1d1d; -webkit-text-stroke: max(2px, calc(var(--h) * .012)) rgba(255, 255, 255, .95); paint-order: stroke fill;
  filter: drop-shadow(0 0 calc(var(--h) * .012) rgba(0, 0, 0, .45)); pointer-events: none; }
.diy-dc__taken { position: absolute; left: 0; right: 0; bottom: calc(var(--h) * .17); padding: 2px 1px; font-size: max(calc(.13 * var(--t)), 9px); font-weight: 700; line-height: 1.2;
  color: var(--amber); text-align: center; background: rgba(0, 0, 0, .74); }
.diy-dc.is-taken .lo-op__art img { filter: grayscale(.85) brightness(.6); }
.diy-dc__bad { position: absolute; right: calc(var(--h) * .01); top: calc(var(--h) * .11); display: grid; place-items: center; width: calc(var(--h) * .08); height: calc(var(--h) * .08);
  color: #1a1206; background: var(--amber); border-radius: 50%; }
.diy-dc__bad .icon { width: 70%; height: 70%; }
/* chosen in the picker: the whole card in its tier's frame (gold for V, orange for VI), the rail inside it */
.diy-dk .diy-dc.is-chosen .lo-op__card::before { left: 0; top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(118, 90, 22, .92), rgba(74, 57, 16, .94) 60%, rgba(52, 40, 12, .95));
  box-shadow: inset 0 0 0 max(2px, calc(var(--h) * .008)) var(--tc), 0 0 .14rem rgba(248, 191, 0, .32); }
.diy-dk .diy-dc.is-chosen.lo-op--t6 .lo-op__card::before { background: linear-gradient(180deg, rgba(124, 66, 14, .92), rgba(80, 42, 10, .94) 60%, rgba(56, 30, 8, .95));
  box-shadow: inset 0 0 0 max(2px, calc(var(--h) * .008)) var(--tc), 0 0 .14rem rgba(248, 128, 0, .32); }
.diy-dk .diy-dc.is-chosen .lo-op__art img { filter: brightness(.86); }

/* ---- ⓘ 卡片视图说明 (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(calc(.16 * var(--t)), 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: min(4.6rem, 100%); }
}
@media (max-width: 900px) {
  .lo-top--deck .lo-tbtn__l, .lo-quickbtn__txt small { display: none; }
  .lo-top--deck .lo-top__center { display: none; }
  .lo-top--deck { grid-template-columns: max-content minmax(0, 1fr); }
  .lo-quickbtn__txt { display: none; }
  .lo-gtog__label { display: none; }
  .lo-gtog__side.is-on { padding: 0 max(.1rem, calc(6px * var(--sp-ui, 1))); }
  .lo-chip2__txt { min-width: 0; }
}
/* the official panel on a short screen (a phone in landscape): a little wider, and it scrolls as a whole — the head
   would otherwise leave the tabs a sliver — with the tabs held at its top [ASSUMED] */
@media (max-height: 520px) {
  .lo--deck { --drawer-w: min(max(5.6rem, 32px, calc(320px * var(--sp-ui, 1))), 92vw); }
  .lo-ddetail { overflow-y: auto; scrollbar-width: thin; }
  .lo-ddfoot { position: sticky; bottom: 0; z-index: 2; min-height: 44px; padding: 4px 8px; background: rgba(236, 236, 236, .92); }
  .lo-diyadj { height: 34px; }
  .lo-ddbody { flex: none; overflow: visible; }
  .lo-ddtabs { position: sticky; top: 0; z-index: 2; }
  .lo-ddhead { gap: 4px; padding: 4px 6px 6px; }
  .lo-ddback { height: 28px; }
  .lo-ddhead__tier, .lo-ddhead__prof, .lo-ddhead__sub { height: 24px; }
  .lo-ddhead__prof, .lo-ddhead__sub { width: 24px; }
}
@media (max-height: 520px) {
  .lo-deck { padding-top: 4px; padding-bottom: 4px; gap: 8px; }
  .lo--deck { --lo-top-h: max(.9rem, 32px, calc(36px * var(--sp-ui, 1))); }
  .lo-chip2 { height: max(.8rem, 32px); }
  .lo-chip2__k { display: none; }
  .lo-idx__fold { height: max(.9rem, 32px, calc(36px * var(--sp-ui, 1))); }
  .lo-idx__all { height: max(.8rem, 28px); }
  /* 甄选干员's frame smaller and its count capped (its size at 中, a pixel more a step above), so its 0/2 stays on the card
     (§35.51: cut 8–16 px on a 640×360 phone, at 特大 also on a 667×375 one) [ASSUMED] the sizes */
  .lo-diy__frame { width: 46%; }
  .lo-diy__n { font-size: min(max(calc(.3 * var(--t)), 16px), max(16px, calc(16px + var(--t-step)))); }
  .lo-diy__n b { font-size: min(max(calc(.4 * var(--t)), 20px), max(20px, calc(20px + var(--t-step)))); }
}
/* the official 自选编队 on a short screen: the panel as wide as the drawer, a slimmer banner and foot, the empty panel's art
   and NO INFO rows smaller [ASSUMED] */
@media (max-height: 520px) {
  .diy-dk { --dk-panel-w: min(max(5.6rem, 32px, calc(320px * var(--sp-ui, 1))), 92vw); }
  .diy-dk__banner { min-height: max(.9rem, 32px, calc(36px * var(--sp-ui, 1))); margin-top: 2px; padding-left: max(.5rem, calc(16px * var(--sp-ui, 1))); gap: max(.12rem, calc(6px * var(--sp-ui, 1))); }
  .diy-dk__count { flex-direction: row; align-items: baseline; gap: 4px; }
  .diy-dk__icon { display: none; }
  .diy-dk__foot { padding: 2px max(.24rem, calc(8px * var(--sp-ui, 1))) 4px; }
  .diy-dk__clear, .diy-dk__foot .lo-confirm { height: 34px; min-width: 0; }
  .diy-ov__head { flex-direction: row; justify-content: center; gap: 8px; }
  .lo-ddhint { height: 88px; }
  .lo-ddbody--empty { gap: 6px; padding: 8px; }
  .lo-ddnoinfo__box { width: 34px; }
}
@media (prefers-reduced-motion: reduce) { .lo-drawer, .lo-op__quick, .lo-pop, .diy-dk, .diy-dk__side { animation: none; } .lo-op__card::before { transition: none; } }

/* ---- 转场 (PR #643 / PR #811, like the hub's screens) — the card view only (maintainer's decision, 2026-10-21): the
   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 groups one after another (from the right) and the index 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-left { from { opacity: 0; transform: translateX(.3rem); } }
.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-idx { animation: lo-tr-left 420ms var(--tr-ease) 300ms 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-idx, .lo--deck .own, .lo--deck .diy { animation: none; }
}
