/* ============================================================
   BLACKLENS — Pre-Grade Studio
   Brand theme: dark #262626 · light #F2F2F2 · red #DC4F4C
   (palette from assets/dark-bg-logo.png / light-bg-logo.png)
   ============================================================ */

/* ROUND 109 · BAHNSCHRIFT CENTRED (operator 2026-10-18: 'all buttons have their text centered vertically'): Windows'
   Bahnschrift reports ascent 0.794 em / descent 0.206 em with a 0.719 em cap height, so every capital sits ~0.07 em ABOVE
   the middle of its line box — 1 to 1.5 px high in every button, pill and chip (measured over 255 buttons). The same family,
   the same file (local), the same total height (ascent + descent 1 em, line gap 0.2 em — no box changes size) with the
   ascent / descent moved so ascent − descent = the cap height: capitals sit on the middle. The weight and width axes are
   declared so the variable font keeps its cuts (350 · semi-condensed 87.5 %). A computer without Bahnschrift (phones)
   skips this face and falls to Barlow as before. */
@font-face { font-family: 'Bahnschrift'; src: local('Bahnschrift'); font-weight: 300 700; font-stretch: 75% 100%;
  ascent-override: 85.95%; descent-override: 14.05%; line-gap-override: 20%; }
/* the semi-condensed cut by name (--rep-font-sc) is a system face of its own in Chrome — the same correction, the same
   width (87.5 %) and weights (measured: widths and stroke ink identical to the system face) */
@font-face { font-family: 'Bahnschrift SemiCondensed'; src: local('Bahnschrift'); font-weight: 300 700; font-stretch: 87.5%;
  ascent-override: 85.95%; descent-override: 14.05%; line-gap-override: 20%; }

/* BLACKLENS brand palette — from assets/dark-bg-logo.png
   dark bg #262626 · light bg #F2F2F2 · red #DC4F4C
   grays #D9D9D9 / #A6A6A6 / #7F7F7F / #8A8A8A · tick #0D0D0D */
:root {
  --bg: #262626;
  --bg2: #1E1E1E;
  --panel: #2C2C2C;
  --card: #383838;
  --line: #454545;
  --text: #F2F2F2;
  --muted: #A6A6A6;
  --muted-2: #8A8A8A;
  --light: #F2F2F2;
  --gray-1: #D9D9D9;
  --gray-2: #A6A6A6;
  --gray-3: #7F7F7F;
  --ink: #0D0D0D;
  --accent: #DC4F4C;
  --accent-dn: #C2403D;
  --neon: #39FF14;
  --neon-red: #FF2D2D;
  --green: #62a862;
  --green-soft: #9fd89f;
  --yellow: #c9a83c;
  --yellow-soft: #efe08a;
  --orange: #cf7c34;
  --red: #DC4F4C;
  --radius: 12px;

  /* ==========================================================
     DIMENSIONAL TOKENS — the redesign's single source of truth.
     Proposed 2026-08-22, tuned for COMFORT AT 1920 (the density
     policy: at 1366 side panels scroll inside themselves, the
     page itself never does).

     Today's app uses 17 font sizes, 13 gaps and 10 radii, all
     bespoke. These replace them. Change a number here and the
     DESIGN page — and, once propagated, the whole app — follows.
     ========================================================== */

  /* type — 6 steps */
  --fs-xs: 11px;         /* captions, table meta */
  --fs-sm: 12.5px;       /* secondary text, field labels */
  --fs-md: 14px;         /* body: the default for anything read */
  --fs-lg: 16px;         /* card titles, panel headings */
  --fs-xl: 20px;         /* section titles, prominent readouts */
  --fs-display: 28px;    /* page titles, the DRO */

  /* spacing — every gap, pad and margin comes from these */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  /* radius — three, not ten */
  --r-sm: 4px;           /* inputs, chips */
  --r-md: 8px;           /* buttons, tiles */
  --r-lg: 14px;          /* cards, panels */

  /* control heights — buttons and inputs align by sharing them */
  --ctl-sm: 26px;
  --ctl-md: 32px;
  --ctl-lg: 40px;

  /* the fixed panel widths (everything else is derived) */
  --panel-narrow: 244px;
  --panel-wide: 300px;
  --hair: 1px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
h1 { font-size: 24px; letter-spacing: .3px; }
h2 { font-size: 20px; }
input, select, textarea {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 10px; font: inherit; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- buttons / chips / badges ---------- */
.btn {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .12s, transform .05s;
}
.btn:hover { background: #424242; }
.btn:active { transform: translateY(1px); }
/* red metallic finish, shared by every accent button */
.btn-accent {
  background: linear-gradient(180deg, #f0817d 0%, #dc4f4c 46%, #b03835 100%);
  border-color: #932c29; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.4);
}
.btn-accent:hover { background: linear-gradient(180deg, #f4918d 0%, #e25a57 46%, #bc3f3c 100%); }
.btn-accent:disabled { background: linear-gradient(180deg, #7a4a49, #5e3736); box-shadow: none; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; }

.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .4px; }
.badge-on { background: #1d3a24; color: #7fe09a; border: 1px solid #2c5c38; }
.badge-off { background: #3a2a2a; color: #d99; border: 1px solid #5c3a3a; }

.chip {
  display: inline-block; min-width: 44px; text-align: center; font-weight: 700;
  border: none; border-radius: 7px; padding: 6px 8px; font: inherit; cursor: pointer; color: #17181a;
}
.chip.sel { outline: 3px solid #fff3; }

.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 16px; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); }

/* ---------- views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- login ---------- */
/* ---------- THE SIGN-IN PAGE (operator 2026-10-04: "more professional, web and
   mobile") — one card, two panels on a computer (the brand + the public doors
   left, the form right), one column on a phone; Bahnschrift ---------- */
#view-login.active { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 28px 18px; font-family: var(--rep-font);
  background: radial-gradient(1200px 620px at 18% -10%, #2b2b2b 0%, #181818 42%, #0f0f0f 100%); }
#view-login button, #view-login input { font-family: inherit; }
.lg-wrap { width: 100%; max-width: 980px; }
.lg-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #161616; border: 1px solid #2c2c2c; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.lg-brand { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 42px 36px 32px; border-right: 1px solid #262626;
  background: linear-gradient(160deg, #202020 0%, #151515 55%, #101010 100%); }
.lg-brand::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 280px at 100% 0%, rgba(220, 79, 76, .16), transparent 70%); pointer-events: none; }
.lg-brandtop { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.brand-mark { width: 56px; height: 56px; }
.brand-word { font-size: 28px; letter-spacing: 3px; margin-top: 12px; color: #fff; line-height: 1; }
.brand-word b { font-weight: 800; }
.brand-tag { font-size: 9.5px; letter-spacing: 4px; color: #c9a83c; margin-top: 7px; }
.lg-lead { position: relative; margin: 0; font-size: 14px; line-height: 1.6; color: #c9c9c9; }
.lg-points { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.lg-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 11px; align-items: center; }
.lg-points i { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; background: #222; border: 1px solid #333; color: #d9c890; font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.lg-points b { font-size: 12px; letter-spacing: 1.8px; color: #fff; }
.lg-points span { font-size: 11.5px; color: #9a9a9a; }
.lg-public { position: relative; margin-top: auto; display: grid; gap: 8px; }
.lg-pub { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #1c1c1c; border: 1px solid #2e2e2e; text-decoration: none; color: #eee; transition: border-color .12s, background .12s; }
.lg-pub:hover { border-color: #c9a83c; background: #202020; text-decoration: none; }
.lg-pub svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: #c9a83c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-pub span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lg-pub b { font-size: 12.5px; letter-spacing: .8px; }
.lg-pub i { font-style: normal; font-size: 11px; color: #9a9a9a; }
.lg-form { padding: 42px 38px 32px; display: flex; flex-direction: column; }
.lg-form h1 { margin: 0; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.lg-sub { margin: 6px 0 22px; font-size: 12.5px; color: #9a9a9a; line-height: 1.5; }
.lg-form form { display: grid; gap: 14px; }
.lg-form label { display: grid; gap: 6px; font-size: 10px; letter-spacing: 1.8px; color: #9a9a9a; font-weight: 700; }
.lg-form input { background: #0f0f0f; border: 1px solid #333; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: #fff; width: 100%; }
.lg-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.lg-passwrap { position: relative; display: block; }
.lg-passwrap input { padding-right: 48px; }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 9px; background: none; border: 0; color: #8a8a8a; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lg-eye:hover { color: #fff; background: #1e1e1e; }
.lg-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-eye .off { display: none; }
.lg-eye.on .off { display: block; }
.lg-eye.on .onn { display: none; }
#view-login .login-forgot { margin: -4px 0 2px; text-align: right; font-size: 12px; }
#view-login .login-forgot.hidden { display: none; }
#view-login .login-link { color: #d9c890; font-weight: 600; text-decoration: none; }
#view-login .login-link:hover { color: #fff; text-decoration: underline; }
.lg-primary { padding: 13px 16px; border-radius: 12px; font-size: 13px; letter-spacing: 2px; font-weight: 700; }
#view-login .login-error { margin: 0; background: #2c1211; border: 1px solid #8a3431; color: #ffb3ae; font-size: 12.5px; padding: 10px 12px; border-radius: 10px; line-height: 1.5; }
#view-login .login-ok { margin: 0; background: #13301b; border: 1px solid #2a7a3e; color: #bfe6c5; font-size: 12.5px; padding: 10px 12px; border-radius: 10px; line-height: 1.5; text-align: left; }
#view-login .login-ok b, #view-login .login-error b { color: #fff; }
.lg-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: #666; font-size: 10.5px; letter-spacing: 2px; }
.lg-or::before, .lg-or::after { content: ''; flex: 1 1 auto; border-top: 1px solid #2a2a2a; }
.lg-secondary { display: block; text-align: center; padding: 12px 14px; border-radius: 12px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #eee; text-decoration: none; font-size: 12.5px; letter-spacing: 1.2px; font-weight: 600; transition: border-color .12s, background .12s; }
.lg-secondary:hover { border-color: #666; background: #222; text-decoration: none; }
.lg-fine { margin: 14px 0 0; font-size: 11px; color: #777; line-height: 1.55; text-align: center; }
.lg-fine.lg-copy { margin-top: 4px; font-size: 10px; color: #8a8a8a; }   /* round 349: the © line under Terms · Privacy */
.login-note { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  #view-login.active { padding: 0; align-items: stretch; background: #0f0f0f; }
  .lg-wrap { max-width: none; }
  .lg-card { display: flex; flex-direction: column; border-radius: 0; border: 0; min-height: 100vh; box-shadow: none; }
  .lg-brand { display: contents; }
  .lg-brandtop { order: 1; align-items: center; text-align: center; padding: 36px 20px 6px; }
  .lg-lead, .lg-points { display: none; }
  .lg-form { order: 2; padding: 18px 20px 8px; }
  .lg-form h1 { font-size: 20px; text-align: center; }
  .lg-sub { text-align: center; }
  .lg-public { order: 3; margin: 0; padding: 14px 20px 34px; }
}
body.mv .lg-public { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* ---------- THE SPLASH (2026-10-21): the 5-second video splash (js/app.js playSplash) ---------- */
#splash {
  position: fixed; inset: 0; z-index: 200; background: #000; cursor: pointer; overflow: hidden;
}
#splash.hidden { display: none; }
#splash video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
#splash.on video { opacity: 1; }
/* a phone taller than 20:9 or a screen wider than 12:5 would crop the lockup's sides / foot: show the whole clip
   (its edges are black, so the bars do not show) */
@media (max-aspect-ratio: 9/20), (min-aspect-ratio: 12/5) { #splash video { object-fit: contain; } }
#splash.fade-out { opacity: 0; transition: opacity .5s ease; pointer-events: none; }

/* ---------- app shell: sidebar + main ---------- */
#app { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100vh; }
#app.no-sb { grid-template-columns: minmax(0, 1fr); }
#main { min-width: 0; }
#sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  z-index: 60;
}
.sb-logo { background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 14px; }
.sb-logo img { width: 40px; height: 40px; display: block; }
.sb-btn {
  background: none; border: none; color: var(--muted-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 62px; padding: 9px 2px; border-radius: 12px;
  font-size: 8.5px; letter-spacing: 1px; font-weight: 700; font-family: inherit;
}
.sb-btn .ico {
  width: 30px; height: 30px; border-radius: 9px; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; transition: background .12s;
}
.sb-btn:hover { color: var(--text); }
.sb-btn:hover .ico { background: var(--card); }
/* the selected mode wears the brand red on the WHOLE button (operator 2026-10-03) */
.sb-btn.on { color: #fff; background: var(--accent); }
.sb-btn.on .ico { background: rgba(0, 0, 0, .28); outline: none; color: #fff; }
.sb-btn.on:hover .ico { background: rgba(0, 0, 0, .4); }
.sb-spacer { flex: 1; }

/* ---------- topbar ---------- */
#topbar {
  display: flex; align-items: center; gap: 18px; padding: 9px 18px;
  background: var(--bg2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-brand { display: flex; flex-direction: column; cursor: pointer; line-height: 1.25; }
.topbar-brand .tb-word { font-size: 15px; letter-spacing: 3px; }
.topbar-brand .tb-word b { font-weight: 800; }
.topbar-brand .tb-tag { font-size: 8.5px; letter-spacing: 3px; color: var(--muted-2); }

.status-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: 1px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status-chip.on { color: #7fe09a; border-color: #2c5c38; }
.status-chip.on i { background: #7fe09a; }
/* step-by-step click-through: numbered chevron trail */
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* Adding the STAGE chip beside SCOPE pushed this row past a 1366 viewport,
   and the horizontal scrollbar it caused dragged a vertical one in with it.
   Below 1500 the chips go compact rather than the row going wide. */
@media (max-width: 1500px) {
  .topbar-right { gap: 7px; }
  .status-chip { font-size: 10px; letter-spacing: .4px; padding: 3px 8px; gap: 5px; }
  .status-chip i { width: 6px; height: 6px; }
  /* the seven-step trail is the widest thing up here; tighten it rather
     than let the row push the whole page into a horizontal scroll */
  /* the track number is already on the slab tag of every studio page, so
     the topbar copy is what gives way when the row runs out of room */
  #btn-signout { padding: 4px 9px; font-size: 11px; }
}

/* ---------- home = the ORDERS page (INSPECT design language, 2026-09-23) ---------- */
#view-home.active { display: block; padding: 8px 14px 10px; overflow: hidden; }   /* the board fills the page; its columns scroll */
#view-home, #view-home button { font-family: var(--jb-font); }

/* ---------- shared page layout ---------- */
/* One gutter for every working page. Full-Card was missing it, which made
   its header wider than Centering's and moved the pre-grade tag between
   steps. Keep new pages in this list so they inherit the same frame. */
#view-fullcard.active, #view-capture.active, #view-inspect.active,
#view-results.active, #view-labreport.active { display: block; padding: 12px clamp(12px, 2vw, 28px) 24px; }
/* fixed height so hint-text swaps never shift the page — all 3 studio
   pages share it so the stage starts at the same Y everywhere */
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- locked studio grid (Full-Card / Centering / Inspect) ----------
   ONE template for all three studio pages, so the live view and every
   section sit at the SAME position when you step between them:
   | sd | rail | stage | functions | sd | calibration | sd | results | sd | guide |
   The widths are variables so the pages share one source of truth. */
:root {
  --sd: 34px;            /* labeled section divider */
  --c-rail: 34px;        /* reserved future tool rail */
  --c-funcs: 292px;      /* operation / function boxes */
  --c-cal: 292px;        /* calibration / microscope / lens — wide enough
                            that the Live View Calibration card never clips */
  --c-results: 292px;    /* per-page results column */
  --c-guide: 96px;       /* grading-guide rail */
}
.cam-stack { display: grid; gap: 8px; }

/* grid tracks set every column's width; drop the flex-era fixed widths so
   each child fills its track instead of fighting it */

.stage-tag {
  position: absolute; top: 6px; left: 6px; z-index: 6; pointer-events: none;
  font-size: 9px; font-weight: 800; letter-spacing: .12em; color: var(--muted);
  background: #000b; padding: 3px 8px; border-radius: 5px;
}
.stage-tag.live { color: #7fe09a; }

/* reserved-slot placeholder: keeps a locked box present before its data exists */

/* AUTO-CENTERING RESULTS: front on top, back below, preliminary lines drawn */

/* ---------- section divider: red rule + vertical caption ---------- */
.sec-div {
  position: relative; align-self: stretch; width: var(--sd);
  display: flex; align-items: center; justify-content: center;
}
.sec-div::before {                       /* the hairline itself */
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 2px;
  transform: translateX(-50%); border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  box-shadow: 0 0 8px rgba(220,79,76,.35);
}
.sec-div::after {                        /* vertical caption, read bottom-up */
  content: attr(data-sec); position: relative; z-index: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 9.5px; font-weight: 800; letter-spacing: .22em; white-space: nowrap;
  color: var(--muted); text-transform: uppercase;
  background: var(--bg); padding: 10px 0; border-radius: 6px;
}
/* all three studio pages share the same header/hint stack now, so the
   stage height formula is the shared .stage.portrait one — no overrides */
#view-capture .card, #view-inspect .card { padding: 11px 12px; }
#view-capture .card-head, #view-inspect .card-head { margin-bottom: 6px; }
#view-capture .card select { font-size: 12.5px; padding: 6px 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.card select, .card input[type=number] { margin-top: 6px; }
.card .row-gap { margin-top: 8px; }

/* ---------- chips rows ---------- */

/* ---------- stage ---------- */
.stage {
  position: relative; background: #000; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16/9; max-height: 62vh; width: 100%;
}
.stage video, .stage canvas, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* portrait measuring screen (camera feed rotated 90° CW in-app) */
.stage.portrait { aspect-ratio: 9/16; height: max(400px, calc(100vh - 300px - var(--slabrow))); max-height: none; width: auto; max-width: 100%; margin: 0 auto; }
.stage video.rot90 {
  inset: auto; top: 50%; left: 50%;
  transform: translate(var(--panx, 0), var(--pany, 0)) translate(-50%, -50%) rotate(90deg) scale(var(--zoom, 1));
  /* width/height (swapped to stage dims) are set by JS · --zoom is the wheel step · --panx/y is the middle-drag pan */
}
/* upside-down camera mount: 90° + 180° = 270° */
.stage video.rot90.flip180 {
  transform: translate(var(--panx, 0), var(--pany, 0)) translate(-50%, -50%) rotate(270deg) scale(var(--zoom, 1));
}
.stage-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 20px; background: repeating-linear-gradient(45deg, #131315, #131315 12px, #17181a 12px, #17181a 24px);
}
/* fixed height + nowrap: the px/mm badge appears after plotting and must
   not grow the legend (that shifted the whole layout) */
.stage-legend { display: flex; gap: 10px; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px; padding: 0; height: 26px; flex: none;
  width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; }
/* the badge reserves room for the longest reading (9999 px = 999.99 mm)
   so its digit count can never move anything */
/* equal-width digits everywhere numbers update live */
/* reticle sits ABOVE the capture so the crosshair stays visible */
/* right-click rubber-band region: inverted preview while dragging */

/* ---- wheel zoom: a CSS scale on the imagery only (loupe/grab/measure
   keep reading the unscaled source) ---- */
.stage > video, .stage > canvas {
  transform: translate(var(--panx, 0), var(--pany, 0)) scale(var(--zoom, 1)); transform-origin: center center;
}
.stage > .grid-ov, .stage > .stage-tag, .stage > .grid-btn, .stage > .stage-empty { transform: none; }

/* ---- reference grid overlay (white 1 px) — toggled on every live view ---- */
.grid-ov {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background-image:
    linear-gradient(to bottom, transparent 19.5px, rgba(255,255,255,.72) 19.5px, rgba(255,255,255,.72) 20.5px, transparent 20.5px),
    linear-gradient(to right,  transparent 19.5px, rgba(255,255,255,.72) 19.5px, rgba(255,255,255,.72) 20.5px, transparent 20.5px);
  background-size: 40px 40px;          /* the tile SIZE is what lets centring bite */
  background-position: center center;  /* first tile centred → a line through the middle */
}
/* card-placement frame canvas — sits above the feed, below the reticle */
/* grid on/off button, bottom-right of every stage */
.grid-btn {
  position: absolute; right: 6px; bottom: 6px; z-index: 7; cursor: pointer;
  width: 28px; height: 28px; border-radius: 7px; font-size: 14px; line-height: 1;
  background: rgba(13,13,13,.92); color: var(--muted-2);
  border: 1px solid var(--line); box-shadow: 0 2px 8px #0008;
  transition: color .12s, border-color .12s, background .12s;
}
.grid-btn.on { color: #fff; border-color: var(--muted-2); background: rgba(13,13,13,.96); }
.grid-btn:hover { color: #fff; border-color: var(--muted); }
/* capture vs post-capture occupy the SAME height so nothing below shifts
   when flipping sides or capturing */
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled:hover { background: var(--card); }
@media (max-width: 1280px) {
  .stage.portrait { height: min(70vh, 640px); }
}

/* fixed loupe below the capture tools — same portrait shape as the stage */

/* pins */
/* letter chips in the stage legend (S = surface · E = edge) */

/* ---------- capture right panel: readings / grading / pre-score ---------- */
/* one uniform, readable size across the L/R · T/B readings strip */
/* ---------- pre-grade tag (A-Slab header strip) ----------
   Its own strip under the topbar, so it reads the same on every step.
   --slabrow is the vertical budget it takes; the stage and the side
   panels subtract it so the page never starts scrolling. */
:root { --slabrow: 0px; }
.slab { min-width: 0; display: flex; align-items: center; gap: 10px; height: 100px; }
/* The tag must occupy the SAME box on every step, so the header is a fixed
   three-column grid — brand | tag | actions — with the outer columns pinned.
   Switching steps then changes the data in the tag, never its geometry. */
:root { --head-brand: 300px; --head-actions: 268px; }
.slab.hidden { display: none; }
/* (the corner vignette + FRONT label were removed — the tag shows the
   card art clean, exactly as captured/served) */

/* card lookup dialog */
/* compound selector: the base .tool-win width rule sits LATER in the sheet
   and ties on specificity, so a bare .slabq-win here silently loses */
/* wide enough for CODE # · TYPE · LANGUAGE · RARITY · CURRENCY · Search */
.tool-win.slabq-win { width: min(1010px, calc(100vw - 48px)); }
/* dialog type: everything reads 2px larger than the app's control scale */
.slabq-win .tool-head b { font-size: 17px; }
.slabq-win .tool-sub { font-size: 13px; }
.slabq-win .slabq-mode-opt { font-size: 12.5px; }
.slabq-win .slabq-fld i { font-size: 10.5px; }
.slabq-win .slabq-fld input, .slabq-win .slabq-fld select { font-size: 15px; }
.slabq-win .slabq-note { font-size: 13.5px; }
.slabq-win .slabq-rc b { font-size: 14.5px; }
.slabq-win .slabq-rc span { font-size: 12.5px; }
.slabq-win .slabq-rp { font-size: 14px; }
.slabq-win .slabq-rp small { font-size: 11px; }
.slabq-win .slabq-manual-head { font-size: 13px; }
.slabq-win .slabq-link { font-size: 13.5px; }
.slabq-win .slabq-name-opt { font-size: 12.5px; }
.slabq-win .tool-body { padding: 15px 17px; }
.slabq-win .tool-head { padding: 14px 17px 10px; }
/* Every field gets min-width:0 — a flex item's default min-width:auto lets a
   long <option> label push the row wider than the dialog, which is where the
   sideways scrolling came from. */
.slabq-frow { display: flex; gap: 9px; margin-bottom: 12px; align-items: stretch; min-width: 0; }
.slabq-fld { flex: 1 1 auto; min-width: 0; overflow: hidden; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 7px; padding: 7px 11px; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
/* the card number is the primary field — room for 20 monospace characters */
/* the entry is the primary control — hold a real width for it */
.slabq-fld.num { flex: 1 1 auto; min-width: 240px; }
.slabq-fld.sel { flex: 0 0 140px; }
.slabq-fld.nat { flex: 0 1 150px; }
.slabq-win .tool-body { overflow-x: hidden; }
.slabq-fld i { display: block; font-style: normal; font-size: 8.5px; letter-spacing: .1em; color: var(--muted-2); font-weight: 800; }
.slabq-fld input, .slabq-fld select {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: Consolas, monospace; font-size: 13px; padding: 2px 0; outline: none;
}
/* native dropdowns paint their own list — without these the options render
   white-on-white and are unreadable */
.slabq-fld select { font-family: inherit; font-size: 12px; color-scheme: dark; cursor: pointer; }
.slabq-fld select option { background: #2E2E2E; color: #F2F2F2; }
.slabq-go { flex: 0 0 auto; padding: 0 16px; font-size: 12.5px; align-self: stretch; }
.slabq-note { font-size: 11.5px; color: var(--yellow-soft); margin: 0 0 8px; line-height: 1.45; }
.slabq-rows { display: grid; gap: 2px; }
.slabq-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 6px; width: 100%;
  background: none; border: none; border-top: 1px solid var(--line); cursor: pointer;
  font-family: inherit; text-align: left; color: var(--muted);
}
.slabq-row:hover { background: var(--bg2); border-radius: 6px; }
.slabq-art { flex: none; width: 32px; height: 45px; border-radius: 3px; background: var(--bg2); overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.slabq-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* no scan available for this printing — tidy placeholder, not a broken icon */
.slabq-art.noimg::after, .slabq-noimg::after { content: '▧'; font-size: 16px; color: var(--muted-2); opacity: .5; }
.slabq-rc { flex: 1 1 auto; min-width: 0; }
.slabq-rc b { display: block; font-size: 12.5px; color: var(--text); }
.slabq-rc span { font-size: 10.5px; color: var(--muted-2); font-family: Consolas, monospace; }
.slabq-rp { flex: none; font-family: Consolas, monospace; font-size: 12px; color: var(--muted-2); text-align: right; }
.slabq-rp small { display: block; font-size: 9px; }
/* sort the results by price — sits over the list, right-aligned above the
   price column it acts on */
.slabq-sortrow { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.slabq-sort {
  background: #2f2f2f; border: 1px solid #3d3d3d; color: var(--muted-2);
  font-size: 11.5px; letter-spacing: .4px; padding: 4px 10px; border-radius: 4px;
  cursor: pointer; white-space: nowrap;
}
.slabq-sort:hover { color: #e8e8e8; border-color: #565656; }
.slabq-sort.on { color: #fff; border-color: var(--accent); }
.slabq-sort[disabled] { opacity: .55; cursor: default; }
/* PSA10 · BGS10 · RAW per row — a figure with no comps is dropped from
   the row entirely, so the column count varies and the grid grows to fit
   whatever is there. Graded headers read white, RAW reads red. */
.slabq-rp.slabq-rp4 { display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(62px, auto); justify-content: end;
  gap: 2px 16px; align-items: end; }
.slabq-rp .p4 { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
/* each grader gets its own header colour; a BGS 10 worth 2x the PSA 10 is
   a Black Label and says so */
.slabq-rp .p4 i { font-style: normal; font-size: 12.5px; letter-spacing: .5px; white-space: nowrap; font-weight: 700; }
.slabq-rp .p4 i.psa { color: #7fc4ff; }        /* light blue */
.slabq-rp .p4 i.bgs { color: #ffdc7a; }        /* light yellow */
.slabq-rp .p4 i.bgsbl { color: #c9a2ff; }      /* light purple — Black Label */
.slabq-rp .p4 i.ars { color: #9be3c2; }        /* light green — ARS 10 (the Japanese grader, Mercari comps) */
.slabq-rp .p4 i.raw { color: #f08a87; }        /* soft red */
.slabq-rp .p4 b { font-size: 13.5px; white-space: nowrap; }
.slabq-rp .p4 b.psa { color: #fff; font-weight: 700; }
.slabq-rp .p4 b.raw { color: #c9c9c9; font-weight: 400; }
.slabq-rp .p4.none { color: var(--muted-2); }
/* CURRENCY label must never wrap — the field grows to fit it instead */
.slabq-fld.cur { flex: 0 0 auto; min-width: 96px; }
/* SET NAME dropdowns (2026-09-26) — the dialog row stays ONE line: the
   fixed selects give a little, the set list takes what is left */
.slabq-fld.set { flex: 1 1 190px; min-width: 150px; max-width: 320px; }
.slabq-win .slabq-fld.num { min-width: 150px; }
.slabq-win .slabq-fld.sel { flex: 0 0 108px; }
.slabq-win .slabq-fld.set { flex: 1 1 170px; min-width: 130px; max-width: 250px; }
.slabq-win .slabq-fld.rar { flex: 1 1 130px; min-width: 110px; max-width: 190px; }
.slabq-win .slabq-fld.cur { min-width: 78px; flex-basis: 78px; }
/* YEAR (2026-09-26) — a narrow select beside SET NAME */
.slabq-fld.yr2 { flex: 0 0 82px !important; min-width: 76px; max-width: 90px; }
/* RARITY carries long names ("Quarter Century Secret Rare") — give it room
   but never let it push the row into a second line */
.slabq-fld.rar { flex: 1 1 190px; min-width: 150px; max-width: 260px; }
/* YEAR is four digits — no more room than that */
.slabq-fld.yr { flex: 0 0 auto; width: 92px; }
.slabq-fld i { white-space: nowrap; }
/* hover preview: the hovered row's card, large, LEFT of the dialog */
.slabq-preview {
  position: fixed; z-index: 1002; width: 250px; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: 0 10px 40px #000c;
}
.slabq-preview img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--bg2); min-height: 120px; }
.slabq-preview .sp-cap { font-size: 11px; font-weight: 700; color: var(--text); text-align: center;
  margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slabq-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; margin-bottom: 12px; }
.slabq-mode-opt { font: inherit; font-size: 10.5px; font-weight: 700; padding: 5px 13px; color: var(--muted-2);
  background: none; border: none; cursor: pointer; white-space: nowrap; }
.slabq-mode-opt.on { background: var(--accent); color: #fff; }
.slabq-manual { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.slabq-manual-head { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: 7px; }
.slabq-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.slabq-link { background: none; border: none; font-family: inherit; font-size: 11.5px; font-weight: 700;
  color: var(--muted-2); cursor: pointer; padding: 0; white-space: nowrap; text-decoration: underline; }
.slabq-link:hover, .slabq-link.on { color: var(--accent); }
.slabq-toggle { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; margin-left: auto; }
.slabq-name-opt { flex: 1 1 0; text-align: center; font-size: 10.5px; font-weight: 700; padding: 6px 12px;
  color: var(--muted-2); background: none; border: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.slabq-name-opt.on { background: var(--accent); color: #fff; }

/* ---------- FULL-CARD CAPTURE (step 1, 30 cm) ---------- */
/* The rig panel is moved between steps; a [hidden] anchor marks its slot.
   It carries the most cards of any column, so cap it to the stage height and
   let it scroll internally — otherwise it drives the whole page into scroll.
   Two ids so it outranks `#view-capture .side-panel { max-height: none }`
   further down the sheet. */
/* the action stack is pinned to the card widget's height, so a step with
   3 buttons and a step with 1 render the SAME header height */

/* microscope card: device row + resolution rows */
.cam-row2 { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 6px; align-items: center; }
.cam-row2 select { min-width: 0; font-size: 11.5px; padding: 5px 6px; }

/* NEAR / FAR profile rows — ONE consistent line each:
   name · height · readout · action · toggle */
/* the value cell now holds two lines (scale + k) — let the row grow to fit */
.btn.tgl { min-width: 40px; }
.btn.tgl.on { background: #1d3a24; border-color: #2c5c38; color: #7fe09a; }
.btn-xs.has { border-color: var(--green-soft); color: var(--green-soft); }

/* collapsible cards: click the header to fold the body away.
   The chevron sits on the LEFT of the title — same on every card. */
.card.collapsible > .card-head { cursor: pointer; user-select: none; }
.card.collapsible > .card-head > b::before {
  content: '\25be'; display: inline-block; color: var(--muted-2); font-size: 12px;
  margin-right: 7px; transition: transform .18s;
}
.card.collapsible.collapsed > .card-head { margin-bottom: 0; }
.card.collapsible.collapsed > .card-head > b::before { transform: rotate(-90deg); }
.card.collapsible.collapsed > :not(.card-head) { display: none; }

/* ---------- compact app-style controls (tools col + rig panel) ---------- */
.cam-stack .card-head b { font-size: 13px; }
.uvc-foot .tiny { font-size: 8.5px; }

/* ---------- rig height (30 cm / 20 cm) ---------- */
/* locked to the step — shown as state, not offered as a choice */

/* per-height record buttons (Set scale / Save profile) */
/* first-run instructions, retired for good once the step is done */

/* ---------- TOOLS rail + mode window ---------- */

.tool-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.tool-modal.hidden { display: none; }
.tool-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.62); }
.tool-win {
  position: relative; width: min(460px, calc(100vw - 32px)); max-height: min(76vh, 640px);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
}
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 15px 9px; border-bottom: 1px solid var(--line); }
.tool-head b { font-size: 15px; }
.tool-sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.tool-x { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.tool-x:hover { color: var(--text); }
.tool-body { padding: 13px 15px; overflow-y: auto; scrollbar-width: thin; }

/* lens correction card */

/* Centering Studio header + flip card */
/* stacked brand lockup */
/* ---------- card widget: fixed-size front/back + edge/zone compass ----------
   Identical box on every step so the header row never changes height. A 3x3
   grid: card centre, 4 edge chips, 4 corner chips (zones variant only). */

/* the centre card — 3:4; front = dark green-grey, back = brown */
/* full-card photo step: the WHOLE card is the shoot target */
/* photo-area emphasis: this step's green boxes glow, the rest recede */

/* edge chips (green) — wide on T/B, tall on L/R */

/* corner chips — square shoot-targets at the card's corners */
/* (4) lens-correction preview shown on the MAIN live view */
/* corrected live feed: sits UNDER the guide canvas (3) and reticle (4) */
/* (3) compact microscope card — one row: device | Start | Stop */
.compact-cam select { padding: 4px 6px; font-size: 11.5px; }
/* the head must never break to a second line in a narrow column — keep the
   badge whole and let the title ellipsize if it truly runs out of room */
.compact-cam .card-head { flex-wrap: nowrap; gap: 6px; align-items: center; }
.compact-cam .card-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-cam #cam-badge { flex: none; white-space: nowrap; }
/* (4) lens correction: tighter sliders + on/off toggle button */
/* (8) 10-CHANCE tab panel */
/* keep all five columns on one row down to iPad Pro width */
@media (max-width: 1460px) {
  /* compact the locked grid — same regions, narrower tracks. The
     calibration column still fits the whole card (rows compact below). */
  :root {
    --sd: 26px; --c-rail: 16px;
    --c-funcs: 238px; --c-cal: 252px; --c-results: 238px; --c-guide: 80px;
  }
  /* the calibration/lens profile rows are the widest content — tighten
     them so they clear the narrower column instead of clipping */

  /* pre-grade tag: below ~1500 the wordmark, the tag and the compass will
     not share a line, so the tag compresses AND takes its own row — the
     stage gives back exactly that row's height so nothing starts scrolling */
  .slab { height: 82px; gap: 8px; }
  /* compact header columns — the tag keeps the same geometry, just narrower */
  :root { --head-brand: 228px; --head-actions: 224px; }

  /* the page wordmark is decorative here — the topbar already carries the
     brand — so it yields width to the tag rather than the other way round */

  /* the identity block is the part that must not be squeezed out: the
     name collapsed to a few pixels when the buttons kept their full size */
  /* 7 nav steps don't fit the topbar with subtitles at this width — keep
     number + title, drop the subs and arrows, and tighten so all 7 fit */
}

/* ===== narrow viewports (iPad Pro Safari etc.) — keep the SAME layout as
   the 1366 Windows reference instead of collapsing the 1fr live-view track.
   Below 1366 the fixed side columns would starve the stage (an ~88 px strip
   on an 11" iPad) AND the 6-step topbar overflows, so the WHOLE workspace
   (topbar + page) pans together as one unit at the 1366 reference width.
   1366+ is untouched → the hard no-scroll requirement at 1366×1024 and
   1920×1080 still holds. ===== */
@media (max-width: 1365px) {
  /* #main (topbar + views) becomes the single horizontal pan container so the
     numbered steps stay aligned with the columns below, exactly like Windows */
  #main { overflow-x: auto; overflow-y: hidden; }
  #topbar, #view-capture.active, #view-inspect.active,
  #view-fullcard.active, #view-setup.active, #view-stage.active { min-width: 1300px; }
  /* and on a short viewport the control columns scroll inside themselves —
     the page still never scrolls */
  #view-stage .stg-col { overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
  /* the old ≤1280 rule sets the stage to 70vh (=584 px on an 834-tall iPad),
     which overflowed vertically; use the height-fitting formula like desktop
     so the page never scrolls vertically on iPad landscape */
  .stage.portrait { height: max(330px, calc(100vh - 300px - var(--slabrow))); }
  /* the studio side panels (esp. the Centering results, which is uncapped on
     desktop) must scroll internally on the shorter iPad viewport rather than
     push the page taller. `.active` out-specifies the desktop max-height:none */
}

/* centering score card (FRONT / BACK, /100 per side) */
/* BLACKLENS Centering panel */

/* ===== Centering Studio 2.0 — fit a fixed window, no scroll ===== */
#view-capture .card-head { margin-bottom: 5px; }
/* compact lens-correction card (the preview was the tallest element) */
/* compact BLACKLENS Centering panel */
/* BACK tile sits on a lighter grey so it reads distinctly from FRONT */
/* was gap:2px — that collapsed the COLUMN gap too, so the value in the
   left column sat against the label in the right one */
/* (hint-line spacing is shared by all three studio pages above) */

/* centering score card (FRONT / BACK, /100 per side) */
/* border widths — both sides side-by-side, always present */
/* one uniform, readable size across the whole border-widths table */
/* each deduction is its own cell, so a value can never crowd the label
   of the column beside it */

/* ---------- capture right panel ---------- */
.ring {
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--ring-color, var(--green)) calc(var(--pct, 0) * 1%), var(--line) 0);
  position: relative;
}
.ring::before { content: ''; position: absolute; inset: 7px; background: var(--panel); border-radius: 50%; }
.ring span { position: relative; font-size: 24px; font-weight: 800; color: var(--green-soft); }
.ring small { position: relative; font-size: 8px; letter-spacing: 1.5px; color: var(--muted); }
.ring.big { width: 96px; height: 96px; }
.ring.big span { font-size: 27px; }
.bar { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; }

/* ---------- inspect: WHOLE CARD xy-panorama ---------- */
/* Full-Card Creation (stitcher) removed — its .wc-* styles went with it. */

/* compact scope connect/disconnect + live-view loupe toggle */

/* UVC camera controls panel (Inspect) */
/* ---------- camera settings: grouped pro layout ---------- */
.uvc-controls { display: grid; gap: 2px; margin-top: 2px; }
.uvc-sec {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line);
}
.uvc-grp { display: contents; }               /* a section's own block — only MAP INSPECT lays it out (round 169) */
.uvc-grp:first-child > .uvc-sec, .uvc-sec:first-child:not(.uvc-grp > *) { margin-top: 2px; padding-top: 0; border-top: none; }
.uvc-sec-t { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 800; }
.uvc-row { display: grid; grid-template-columns: 78px minmax(0,1fr) 52px; gap: 8px; align-items: center; min-height: 20px; }
.uvc-lbl { font-size: 11.5px; color: var(--muted); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uvc-val { font-family: Consolas, monospace; font-size: 11.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.uvc-val.auto { color: var(--muted-2); font-weight: 600; }
.uvc-row input[type=range] { min-width: 0; width: 100%; accent-color: var(--accent); }
.uvc-row input[type=range]:disabled { opacity: .35; }
.uvc-bool { letter-spacing: .5px; }
.uvc-bool.on { background: #1d3a24; border-color: #2c5c38; color: #7fe09a; }
.uvc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
/* mode dropdown: every mode the camera reports (auto/continuous/manual...) */
.uvc-mode { flex: none; width: 104px; min-width: 88px; max-width: 104px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 6px; color: var(--text); font-size: 11px; padding: 4px 5px; color-scheme: dark; cursor: pointer; }
/* the microscope card carries the full panel now — let it breathe but
   never drive the operation column into page scroll */

/* square ×2 live-view loupe at the bottom of the FULL-CARD column */

/* inspect readings rows: ticks + per-section pre-score / pre-grade */

/* ---------- inspect ---------- */
.g100 { display: grid; gap: 8px; }
/* Inspection Status — per-pillar defect ledger (same tick formulas) */

/* ---------- results ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

/* ---------- lab report (RAWLITY-style, BLACKLENS brand) ---------- */
.lab {
  width: min(920px, 100%); margin: 0 auto; aspect-ratio: 1/1; background: #1C1C1C; color: #F2F2F2;
  border: 1px solid #3F3F3F; position: relative; padding: 3.2%; display: grid;
  grid-template-rows: auto 1fr auto; font-size: clamp(8px, 1.05vw, 12px);
  background-image: radial-gradient(circle at 50% 40%, #242424 0%, #1C1C1C 70%);
}
.lab * { box-sizing: border-box; }

/* ---------- guide ---------- */
.wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.wf-step {
  position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 6px;
}
.wf-step .wf-num {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 7px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.wf-step .wf-ico { font-size: 17px; width: 32px; height: 32px; border-radius: 9px; background: var(--card); display: inline-flex; align-items: center; justify-content: center; }
.wf-step b { font-size: 13.5px; }
.wf-step p { font-size: 11.5px; color: var(--muted); margin: 0; }

/* ---------- records / verify / settings ---------- */
#view-records.active, #view-settings.active { display: block; padding: 24px clamp(12px, 3vw, 36px) 40px; }
#view-verify.active { display: block; padding: 40px 16px; }
.mono { font-family: Consolas, monospace; }               /* the ledger columns need room */

/* status pills */

/* filter bar */

/* records: breadcrumb + folder levels */

/* resizable / wrapping columns */
.btn-xs { padding: 3px 7px; font-size: 10.5px; border-radius: 6px; }

/* customer drawer: per-order payment rows */

/* customer-level actions above the order folders */
.job-chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.job-chip b { color: var(--text); font-weight: 600; }
.job-chip .mono { color: var(--accent); margin-left: 4px; }
.job-chip i { font-style: normal; opacity: .7; }

/* order folder footer: payment + courier links */

/* test-mode warning, wherever sending is about to happen */

/* batch drawer: tabbed sections */

/* batch update */
/* batch drawer — same furniture as the Manage drawer, but deliberately
   WITHOUT a scrim: the table behind it must stay clickable so rows can be
   ticked while the panel is open. Sits below Manage so that one can open
   over the top of it. */
/* push the table clear of the drawer instead of hiding half of it */

/* manage drawer */
.verify-miss { text-align: left; }
.set-label { display: grid; gap: 5px; font-size: 10.5px; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; margin-top: 10px; }
.login-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.login-link:hover { text-decoration: underline; }

/* ---------- print ---------- */
/* ================= RealRaw-style report ================= */

/* executive summary dials */

/* centering side card */

/* score breakdown */

/* by-grader cards */

/* assessment */

/* inspection thumbnail count badge */

/* centering-only export report (print only, light layout) */
/* captured edge shots, guides burned in */

/* ===== FULL pre-grade report (print only, light document — modelled on
   the reference export: caption rows, hairline tables, ring dials) ===== */
/* TAG-style card hero: front + back, large, up top */

/* ===== Guide — topic tabs ===== */
.gd-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 8px; }
.gd-tab { display: flex; align-items: flex-start; gap: 10px; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  padding: 10px 12px; cursor: pointer; font: inherit; transition: border-color .12s, color .12s; }
.gd-tab:hover { color: var(--text); border-color: var(--muted-2); }
.gd-tab.on { border-color: var(--accent); color: var(--text); background: var(--bg2); }
.gd-tab b { display: block; font-size: 12.5px; line-height: 1.25; }
.gd-tab i { display: block; font-style: normal; font-size: 9.5px; color: var(--muted-2); letter-spacing: .3px; margin-top: 2px; }
.gd-topic { display: none; }
.gd-topic.on { display: block; animation: gdIn .16s ease-out; }
@keyframes gdIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.gd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
kbd { background: var(--card); border: 1px solid var(--muted-2); border-bottom-width: 2px; border-radius: 5px;
  padding: 1px 6px; font-family: Consolas, monospace; font-size: 11px; color: var(--text); }

.gd-steps { margin: 10px 0 0; padding-left: 19px; font-size: 12.5px; line-height: 1.75; }
.gd-steps li { margin-bottom: 5px; }
.gd-warn { border-color: var(--accent); }
.gd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gd-table th { text-align: left; color: var(--muted); font-size: 10px; letter-spacing: 1px;
  padding: 7px 9px; border-bottom: 1px solid var(--line); }
.gd-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gd-table tr:last-child td { border-bottom: none; }
.gd-table td:first-child { white-space: nowrap; color: var(--text); }

@media (max-width: 1100px) {
  .gd-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
  .gd-tab { width: auto; flex: 1 1 160px; }
  .gd-tab i { display: none; }
}

/* ===== Public card report (#/report) ===== */
.rp-wrap { width: 780px; max-width: 100%; margin: 0 auto; font-family: var(--rep-font); }
#view-labreport, #view-verify .card { font-family: var(--rep-font); }
.rp-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rp-brand .brand-word { font-size: 17px; }
.rp-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ===== Public status tracking (#/track) ===== */
/* vertical rail so long status names never collide on a phone */

/* ===== Customer portal (My Cards) ===== */
/* customer shell: hide every operational entry point */
.customer-mode .sb-btn[data-nav="new"],
.customer-mode .sb-btn[data-nav="setup"],
.customer-mode .sb-btn[data-nav="records"],
.customer-mode .sb-btn[data-nav="home"] { display: none !important; }

/* AGENT shell — the full studio; SETTINGS shows them their account and this
   computer (the admin's columns hide themselves — body[data-role], 2026-10-05) */

/* Settings → Access: granted-agent rows */
.agent-row { justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #3a3a3a; }
.agent-row:last-child { border-bottom: 0; }
.login-ok { background: #16351f; border: 1px solid #2b6640; color: #9ee0b4; font-size: 12.5px;
  padding: 9px 11px; border-radius: 8px; margin-top: 10px; line-height: 1.5; text-align: left; }

/* status timeline */

/* ===== Step 7 — Job Summary ===== */

/* ===== SETUP page — calibration & lens ===== */
/* ---- shared Microscope card: device picker / resolutions / Camera
   Settings appear ONLY on SETUP; the studio pages show just the camera
   ON/OFF + the merged lens-correction & scale toggle ---- */
/* (2026-09-11) the camera stack shows its FULL controls on every page —
   the .setup-only gating and the studio Scale readout block are gone */

/* ===== SETUP — 3 equal columns, no scroll ===== */
/* the operator's CAMERA mockup: live view | calibration + loupe + bench |
   camera cards | the four captured rulers */
/* the live box is the STAGE page's, to the pixel: full column height, 9/16,
   width derived, centred and never stretched by the flex cross-axis */
#view-setup #cam-stack { flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
#view-setup #cap-cam-card, #view-setup #cap-uvc-card { flex: 0 0 auto; }
#view-setup .card.collapsible > .card-head { cursor: pointer; }
/* trim the space around the vertical caption (keep the left position) */
/* the loupe is a panel of its own on this page now, and its resolution is a
   real control in the Camera card — both were hidden when the magnifier was
   briefly replaced by Ctrl+wheel zoom */
/* no slab tag on SETUP → don't reserve the studio header height (that left a
   big empty band under the wordmark) */
/* #setup-video inherits .stage video (+ .rot90.flip180 from sizeVideos) */
/* the loupe floats over the stage's top-right — no layout height cost */

/* the CAMERA cards: plain panels, no wizard chrome */
/* the shared #cam-stack (Camera + Camera Settings) becomes grid items */
#view-setup #cam-stack { display: contents; }
#view-setup #cap-cam-card { grid-area: cam; align-self: start; margin: 0; }
#view-setup #cap-uvc-card { grid-area: uvc; align-self: start; margin: 0; }
/* below ~1500px there is no room for two columns inside the card — the
   wizard stacks over the camera cards instead of squeezing beside them */
@media (max-width: 1500px) {
  /* the live view is width-capped here for the same reason as STAGE: a
     full-height 9/16 box would starve every column beside it */
}

/* axis picker + editable bench-scale rows (the simplified CAMERA card) */

/* Instructions box */
/* calibrated table */
/* full-width green CTA once the bench is fully calibrated */
/* keep every slider + value inside its cell (was overflowing the panel) */
#cap-uvc-card .uvc-row { min-width: 0; }
#cap-uvc-card .uvc-row > * { min-width: 0; }
#cap-uvc-card .uvc-controls select { max-width: 100%; }
/* the microscope's own Scale & Lens readout is redundant on SETUP */
/* NEAR › FAR track */
/* the four-step wizard checklist — done ✓ / current ● / pending */

/* corrected output: before→after per height, stacked, filling the height */
/* report calibration appendix */

@media print {
  body { background: #fff; }
  .no-print, #topbar { display: none !important; }
  /* centering-only export */
  #view-labreport.active { padding: 0; }
  .lab { width: 100%; border: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: 210mm 210mm; margin: 0; }
  /* full pre-grade report — @page is switched to A4 by an injected
     style during the export, so the square lab-report page survives */
  /* Export report = print the redesigned Results page. @page stays
     210mm square (lab report needs it) so pad the results view instead
     of using a page margin, and let cards paginate cleanly. */
}

/* ---------- responsive / iPad landscape ---------- */
@media (max-width: 900px) {
  /* tight header: keep only the numbered circles + arrows */
}
@media (max-width: 700px) {
  #app { grid-template-columns: 52px minmax(0, 1fr); }
  .sb-btn { width: 44px; }
  .sb-btn > span:not(.ico) { display: none; }
  .sb-logo img { width: 32px; height: 32px; }
  .topbar-brand .tb-tag { display: none; }
  #user-chip { display: none; }
}

/* ============================================================
   XY STAGE  —  the motion stage under the camera column.
   Same locked-grid feel as the studio pages: a section divider, the
   top-down map in the wide column, the controls stacked at the right.
   Nothing here scrolls the document.
   ============================================================ */
/* STAGE v4 (operator mockup 2026-09-11): FOUR RESIZABLE COLUMNS on the
   NEW JOB schema — live view | mapping (FCV + camera stack) | operation
   (coordinates · connection · sequence · calibration) | control (jog ·
   move · position · machine · wire log). The three named sec-divs drag
   the column to their LEFT; the control column takes the remainder.
   Column vars live on #view-stage (see the v3/v4 block near EOF). */
.stage-layout { display: grid; column-gap: 6px;
  grid-template-columns: var(--sd) var(--stg-c-live) var(--sd) var(--stg-c-map) var(--sd) var(--stg-c-op) var(--sd) minmax(300px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch; height: calc(100vh - 180px); }
.stage-layout > * { min-height: 0; min-width: 0; }
.stage-layout .sec-div.jb-resizable { cursor: col-resize; }

.stg-livecol, .stg-fcvcol, .stg-opcol { display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
/* width-driven like the NEW JOB live box: the column var sets the width,
   the 9/16 aspect derives the height, capped so it can never outgrow the
   layout (both constraints on WIDTH keeps the aspect true — a height cap
   on an aspect box is the documented black-band letterbox bug) */
.stg-livebar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
/* 2K/4K + GRID grouped right, CENTERING's foot manner (2026-09-13) */
.stg-livebar-right { display: inline-flex; align-items: center; gap: 6px; }
.stg-panelhead { flex: 0 0 auto; display: flex; justify-content: space-between;
  align-items: baseline; padding: 0 2px; font-size: 12.5px; }
.stg-mapbox { flex: 1 1 auto; min-width: 0; min-height: 110px; position: relative; }
.stg-opcol > .card { flex: 0 0 auto; }
#stg-map { position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* Two columns, so nothing scrolls. One column held 1254px of cards in a
   767px box; splitting them is what makes the page fit rather than
   shrinking anything down to unreadable. */
.stg-col { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.stg-col .card { padding: 9px 10px; }
.stg-col .card-head { margin-bottom: 6px; }

.stg-row { display: flex; gap: 5px; align-items: flex-end; flex-wrap: wrap; margin-top: 5px; }
.stg-row:first-child { margin-top: 0; }
/* direct children only: inside a .stg-field (a COLUMN flex box) a basis of
   120px would be read as a 120px-tall select, not a 120px-wide one */
.stg-row > select { flex: 1 1 120px; min-width: 0; }
.stg-field select, .stg-field input { flex: 0 0 auto; }

.stg-field { display: flex; flex-direction: column; gap: 3px; flex: 1 1 70px; min-width: 0; }
.stg-field i { font-style: normal; font-size: 10px; letter-spacing: .5px; color: var(--muted-2); }
.stg-field input, .stg-field select { width: 100%; margin-top: 0; }

/* the readout is the one thing an operator reads from across the bench */
.stg-dro { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stg-dro > div { background: #1f1f1f; border: 1px solid var(--line); border-radius: 4px;
  padding: 5px 8px; display: flex; align-items: baseline; gap: 8px; }
.stg-dro i { font-style: normal; color: var(--muted-2); font-size: 11px; }
.stg-dro b { font-family: Consolas, monospace; font-size: 17px; color: #fff; }

.stg-meta { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 6px 0 0; }
.stg-meta dt { color: var(--muted-2); font-size: 11.5px; }
.stg-meta dd { margin: 0; font-size: 11.5px; font-family: Consolas, monospace; }

.stg-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stg-pad button { padding: 5px 0; font-size: 13px; }

/* State pill: green idle, amber moving, red alarm. Red is never used for
   anything but a real fault, so it can be trusted at a glance. */
#view-stage .pill { font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted-2); }
#view-stage .pill.ok { color: #39FF14; border-color: #2b6b23; }
#view-stage .pill.warn { color: var(--yellow-soft); border-color: #6b5f23; }
#view-stage .pill.bad { color: var(--accent); border-color: #6b2b2b; }

.stg-msg { margin: 8px 0 0; font-size: 11.5px; color: var(--muted-2); min-height: 15px; }
.stg-msg.ok { color: #39FF14; }
.stg-msg.warn { color: var(--yellow-soft); }
.stg-msg.bad { color: var(--accent); }

/* NOT HOMED is a safety banner, not a hint — it stays loud. */
#view-stage .banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 8px; padding: 8px 12px; font-size: 12.5px;
  background: rgba(220,79,76,.12); border: 1px solid var(--accent);
  border-radius: var(--radius); color: #f2d5d4; }

.btn.btn-danger { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn.btn-danger:disabled { opacity: .4; }

/* (v4: the live view is width-driven by --stg-c-live at every size — the
   old ≤1460 340px cap and the ≤1365 alternate template are gone; below
   1366 the #main pan container carries the 1300px reference layout) */

/* ---------- 3 × 3 mosaic panel (Full-Card page) ---------- */

/* ---------- stage auto-capture (Centering · Inspection) ---------- */

/* ---------- STAGE: the commissioning controls, brought in-app ---------- */
/* console + wire log sit under the map, where monospace has room to breathe */
/* Full Card View: ONE seamless composite with invisible hit zones — a
   quadrant outlines only on hover or selection, never as a grid line */
.stg-fcv { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.stg-fcv-stage { flex: 1 1 auto; min-height: 0; display: flex;
  align-items: center; justify-content: center;
  background: #141414; border: 1px solid var(--line); border-radius: var(--radius); }
#stg-fcv-imgbox { position: relative; background: center / cover no-repeat; border-radius: 3px; }
#stg-fcv-cellov { position: absolute; inset: 0; }
.stg-fcv-hit { position: absolute; cursor: pointer; border: 1px solid transparent; border-radius: 2px; }
.stg-fcv-hit:hover { border-color: rgba(255,255,255,.55); }
.stg-fcv-hit.sel { border-color: #39FF14; box-shadow: 0 0 0 1px #39FF14 inset; }
.stg-fcv-bar { flex: 0 0 auto; }

/* the Microscope + Camera Settings stack (replaced the loupe 2026-09-09):
   mountCam inserts #cam-stack BEFORE the anchor (a hidden marker) —
   style the stack itself; it scrolls internally so the column never
   overflows */
.stg-camcol { display: none; }
/* the stack holds ONLY Camera Settings on this page since 2026-09-12
   (the Camera card re-mounts under the Live View) — the FCV preview
   takes the height (operator: larger) */
/* the stack holds Camera Settings on STAGE (the Camera card splits to
   the live column) — the v4.2 share keeps the FCV tall above it */
.stg-fcvcol > #cam-stack { flex: 0 1 38%; min-height: 0; overflow-y: auto;
  scrollbar-width: thin; padding-right: 2px; }
.stg-fcvcol > #cam-stack .card { margin-bottom: 6px; }
/* round 335: Height Calibration under Camera Settings — its own height folded or open, scrolling inside when open so the column fits */
#view-stage .stg-fcvcol > #stg-card-height { flex: 0 1 auto; min-height: 0; max-height: 46%; overflow-y: auto; scrollbar-width: thin; padding: 7px 10px 8px; }
#view-stage .stg-fcvcol > #stg-card-height.collapsed { flex: 0 0 auto; }
#view-stage .stg-fcvcol > #stg-card-height .card-head { margin-bottom: 4px; }
#view-stage .stg-fcvcol > .stg-fcv { min-height: 40%; }   /* round 335: the preview keeps 40% of the column; Camera Settings and an open Height Calibration share the rest, each scrolling inside */
/* the operation column scrolls internally now that Camera Settings
   rides below Capture Sequence (both collapsible) */
#view-stage .stg-opcol { overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
/* compact rows in the narrow columns (the Camera card sits in the live
   column since 2026-09-12, Camera Settings in the operation column
   since 2026-09-13 — the compact rules follow the card, not the stack) */
#view-stage #cam-stack .uvc-row, #view-stage #cap-uvc-card .uvc-row { grid-template-columns: 72px minmax(0,1fr) 48px; }
/* Position card compacted so the Machine card fits the connection column */
#stg-card-pos .stg-dro > div { padding: 3px 7px; }
#stg-card-pos .stg-dro b { font-size: 14px; }
#stg-card-pos .stg-meta dt, #stg-card-pos .stg-meta dd { font-size: 10.5px; }
#stg-card-pos .stg-wpos th, #stg-card-pos .stg-wpos td { padding: 1px 6px; font-size: 10.5px; }
/* the loupe: same image, 2× the preview scale, panned to the cursor */
#stg-loupe { flex: 1 1 auto; min-height: 0; background: #141414 no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius); }
.stg-headtools { display: flex; align-items: center; gap: 8px; }
.stg-pre {
  flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0;
  background: #1b1b1b; border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 8px; font-family: Consolas, monospace; font-size: 10.5px; line-height: 1.5;
  color: var(--muted-2); white-space: pre-wrap; word-break: break-all; scrollbar-width: thin;
}

/* machine vs work, side by side — the one place both are worth seeing */
.stg-wpos { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11.5px; }
.stg-wpos th, .stg-wpos td { text-align: right; padding: 2px 4px; font-weight: 400; }
.stg-wpos thead th { color: var(--muted-2); font-size: 9.5px; letter-spacing: .5px; }
.stg-wpos tbody th { text-align: left; color: var(--muted-2); }
.stg-wpos td { font-family: Consolas, monospace; color: var(--text); }

/* two per row in a 244px column: three would clip "Set origin" */
#stg-seq-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; margin-top: 5px; }

.stg-btns { flex-wrap: wrap; }
.stg-btns .btn { flex: 1 1 calc(50% - 5px); min-width: 0; }

/* FCV processing progress: thin fill bar with a stage label over it */
.stg-prog {
  position: relative; height: 16px; margin-top: 6px;
  background: #1b1b1b; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.stg-prog i {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  background: var(--accent); opacity: .5; transition: width .15s linear;
}
.stg-prog span {
  position: relative; display: block; text-align: center;
  font-size: 10px; line-height: 14px; letter-spacing: .4px; color: #A6A6A6;
}

/* Run + capture cadence: settle → [1s] → photo → [1s] → next, one line */

/* Absolute move: everything on one line — inputs sized for three digits,
   the Go button beside them, never beneath */
#stg-card-move .stg-row { flex-wrap: nowrap; }
#stg-card-move .stg-field { flex: 0 1 auto; }
#stg-card-move .stg-field input { width: 54px; }

/* Jog: compact squares so the card sits at the G-code card's height */
#view-stage .stg-pad { grid-template-columns: repeat(3, 40px); grid-auto-rows: 40px; gap: 4px; }

/* FCV action bar: the two buttons, right-aligned, wrapping before clipping */
.stg-fcv-bar { justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

/* the grid button's look for other stage-corner toggles. NOT .grid-btn:
   bindGrids() binds that class to the shared grid, and auto-align must
   not flip the grid when clicked. */
.stg-fcv-stage { position: relative; }

/* the loupes host the shared grid overlay + button like every live view */
#stg-loupe { position: relative; overflow: hidden; }
#stg-loupe .grid-btn { right: 6px; bottom: 6px; }

/* the 3x3 / 4x3 pattern switch in the Full Card View head */

/* per-resolution bench-scale rows on the CAMERA page */

/* the operator asked for smaller, tidier controls in the side columns */
#view-stage .stg-col .btn { padding: 4px 8px; font-size: 11px; }
#view-stage .stg-pad button { aspect-ratio: 1 / 1; padding: 0; font-size: 14px; }
#view-stage .stg-dro > div { aspect-ratio: 1 / 1; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px; }
#view-stage .stg-dro i { font-size: 10px; }
#view-stage .stg-dro b { font-size: 20px; }
.stg-wirecard { flex: 1 1 auto !important; display: flex; flex-direction: column; min-height: 90px; }
.stg-wirecard .stg-pre { flex: 1 1 auto; min-height: 0; }
#view-stage .card.collapsible.collapsed { flex: 0 0 auto !important; }
.stage-chip { cursor: pointer; }
#view-stage .pill.bad.hidden { display: none; }



/* the Start-the-service block only exists while nothing is answering */
.stg-boot { margin-top: 8px; padding: 8px; border: 1px solid var(--accent);
  border-radius: var(--radius); background: rgba(220,79,76,.10); }
.stg-boot.hidden { display: none; }
.stg-boot .tiny { margin-top: 6px; line-height: 1.45; }

/* ---------- STAGE: live view beside the map ---------- */
/* the portrait rule is height-driven from the viewport everywhere else; here
   the column already has a height, so take it and let the width follow */
/* full column height; the 9/16 aspect then fixes the width, and the grid's
   auto track takes exactly that */
#view-stage .stage.portrait { height: 100%; min-height: 0; margin: 0; }
#view-stage .stage-tag.hidden, #view-stage .stage-empty.hidden { display: none; }



/* ============================================================
   DESIGN page — the live style guide. Deliberately the ONLY
   view allowed to scroll: it is a reference document, not an
   operator screen.
   ============================================================ */
#view-design.active { display: block; padding: var(--sp-3) clamp(var(--sp-3), 2vw, var(--sp-6)) var(--sp-5); }

/* ================= JOB: FULLCARD CAPTURING AND CENTERING ================= */
/* BLACKLENS2 typography: everything on this page is Bahnschrift (DIN),
   condensed for titles/pills, tabular figures for readouts */
:root { --jb-font: Bahnschrift, 'Franklin Gothic Medium', 'Segoe UI', Arial, sans-serif; }
/* every BLACKLENS report is set in Bahnschrift / Bahnschrift SemiCondensed
   (operator 2026-09-27); Barlow (Google Fonts) stands in on devices
   without Bahnschrift (phones scanning the QR), the Japanese / Chinese
   system faces cover card names */
:root {
  --rep-font: Bahnschrift, 'Barlow', 'Yu Gothic UI', 'Meiryo', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
  --rep-font-sc: 'Bahnschrift SemiCondensed', Bahnschrift, 'Barlow Semi Condensed', 'Yu Gothic UI', 'Meiryo', 'Microsoft YaHei', 'Arial Narrow', sans-serif;
}
#view-job, #view-job button, #view-job select, #view-job input {
  font-family: var(--jb-font);
}
#view-job .jb-pill, #view-job .jb-card-name, #view-job .card-head b { font-stretch: semi-condensed; letter-spacing: .5px; }

/* the column vars live on the VIEW so the header grid and the working
   grid share them — a divider drag resizes both rows together */
#view-job { padding: 2px 10px 10px 5px; overflow: auto; --sd: 27px;
  --jb-c-live: 268px; --jb-c-cent: 430px; --jb-c-bw: 252px; }
#view-job [hidden] { display: none !important; }
#view-job .jb-panel { padding: 8px 10px; }
#view-job .jb-panel .card-head { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

/* ---- header: card id · slab widget · pillar tab strip ----
   The header is a GRID on the SAME column template as .jb-grid (operator
   mock 2026-09-09): search box over live+preview, slab over the centering
   window, grade pills over the results column — dragging a divider
   resizes its header cell along with the column below. */
.jb-head { display: grid; gap: 10px; align-items: stretch; margin-top: 2px;
  grid-template-columns: var(--sd) var(--jb-c-live) 302px var(--sd) var(--jb-c-cent) var(--jb-c-bw) var(--sd) minmax(340px, 1fr);
  min-width: 1330px; }
.jb-card-id { grid-column: 1 / 4; display: flex; gap: 12px; align-items: center; background: #171717;
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; min-width: 0; }
.jb-card-thumb { width: 56px; height: 74px; border: 2px dashed var(--accent); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  background: #2b1416; font-size: 18px; flex: 0 0 auto; overflow: hidden; }
.jb-card-thumb.filled { border-style: solid; }
.jb-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jb-card-meta { min-width: 0; }
/* name + id stay ONE line each at a compact size (operator 2026-09-22) so
   the search box reads identically on CENTERING and INSPECTION, whatever
   width its column gives it */
.jb-card-name { font-size: 16px; font-weight: 700; color: #F2F2F2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.jb-card-code { font-size: 12px; color: #A6A6A6; letter-spacing: 1.2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
/* SEARCH CARD over the ORDER pill, at the box's right edge */
.jb-card-actions { margin-left: auto; display: grid; grid-template-columns: auto;
  gap: 5px; position: relative; flex: 0 0 auto; }
.jb-card-actions .btn, .jb-slab-actions .btn { min-width: 104px; padding: 3px 8px; font-size: 9.5px; letter-spacing: 1px; }
/* the ORDER pill: section-divider red, informational only (hover for
   details) — VIEW ORDER is the clickable one */
#jb-cardnum { min-width: 158px; background: var(--accent); border-color: var(--accent);
  color: #fff; cursor: default; }
#jb-cardnum:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* SAVE JOB over VIEW ORDER at the LEFT of the slab section (2026-09-22) */
.jb-slab-actions { display: grid; grid-template-columns: auto auto; gap: 5px; position: relative; flex: 0 0 auto; }
#jb-newjob { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
#jb-newjob:hover { background: #24713a; }
.jb-slab-body { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; align-items: center; justify-content: center; }
/* VIEW ORDER popover: the order's job list, anchored under the buttons */
.jb-orderpop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 6px; padding: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.55); }
.jb-op-head { font-size: 10.5px; letter-spacing: 1.5px; color: #A6A6A6; padding: 2px 6px 7px;
  border-bottom: 1px solid #333; margin-bottom: 4px; font-family: var(--jb-font); }
.jb-op-row { display: flex; gap: 12px; align-items: center; padding: 5px 6px; border-radius: 4px;
  cursor: pointer; font-size: 12px; color: #d9d9d9; white-space: nowrap; }
.jb-op-row:hover { background: #2a2a2a; }
.jb-op-row.cur { cursor: default; }
.jb-op-row b { font-family: var(--jb-font); letter-spacing: 1px; font-weight: 600; }
.jb-op-row span { overflow: hidden; text-overflow: ellipsis; }
.jb-op-note { margin-left: auto; color: #8a8a8a; font-size: 10px; letter-spacing: 1px; }
.jb-op-row.cur .jb-op-note { color: #39FF14; }

.jb-slab { grid-column: 4 / 7; display: flex; gap: 10px; align-items: center;
  background: #171717; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; min-width: 0; }
.jb-pg { height: 64px; }
.jb-slab-scores { font-size: 9.5px; letter-spacing: .8px; color: #A6A6A6; line-height: 1.45;
  min-width: 128px; }
.jb-ss-row { display: flex; }
.jb-ss-row b { color: #F2F2F2; }
.jb-ss-row span { color: #F2F2F2; font-variant-numeric: tabular-nums; margin-left: auto; }
/* round 337: a pillar past zero — the points the BLACKSCORE lost past it */
.jb-ss-row span.neg { color: #ff8a87; }
/* QR + the Job# under it (operator 2026-09-22) — the whole block links to
   the card's online report, which the QR itself encodes */
.jb-qrbox { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; }
.jb-qr { width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 3px;
  background: #171717; }
.jb-qr-id { font-family: var(--jb-font); font-size: 8.5px; letter-spacing: .8px; color: #A6A6A6;
  white-space: nowrap; }
.jb-slablogo { height: 64px; }

.jb-pills { grid-column: 7 / 9; display: flex; gap: 3px; min-width: 0; }
.jb-pill { display: flex; flex-direction: column; justify-content: space-between;
  flex: 1 1 0; min-width: 0; text-align: center; font-size: 11px; letter-spacing: .8px; color: #C9C9C9;
  background: linear-gradient(180deg, #383838, #191919); border: 1px solid #000;
  padding: 8px 2px 6px; text-transform: uppercase; overflow: hidden; }
/* the score reads BIG (operator 2026-09-22); whole grades print bare
   ("10"), halves keep the decimal ("9.5") */
.jb-pill b { line-height: 1; color: #F2F2F2; font-variant-numeric: tabular-nums; }
.jb-pill.on { background: linear-gradient(180deg, #7e2c28, #3a1615); border-color: var(--accent); color: #F2D9D9; }
.jb-pillgap { width: 6px; border-left: 1px solid var(--line); margin: 4px 2px; }
.jb-pill-grade { background: linear-gradient(180deg, #4a4a4a, #222); color: #C9C9C9; }

/* floating toast — occupies no layout space, so nothing shifts */
.jb-msg { position: fixed; left: 92px; bottom: 14px; z-index: 80; margin: 0;
  max-width: 60vw; padding: 7px 14px; font-size: 11.5px; color: #D9D9D9;
  background: rgba(18,18,18,.96); border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.5); display: none; }
.jb-msg.show { display: block; }
.jb-msg.ok { color: #39FF14; border-color: #1d5c2e; }
.jb-msg.warn { color: #E8B44A; border-color: #6b5320; }
.jb-msg.bad { color: #ff8a87; border-color: var(--accent); }
#view-job .stg-prog { margin: 4px 0 0; }

/* ---- the working grid: red section dividers between the zones ---- */
.jb-grid { display: grid; gap: 10px; margin-top: 6px; align-items: start;
  grid-template-columns: var(--sd) var(--jb-c-live) 302px var(--sd) var(--jb-c-cent) var(--jb-c-bw) var(--sd) minmax(340px, 1fr);
  min-width: 1330px; }
.jb-grid .sec-div.jb-resizable { cursor: col-resize; }
.jb-grid .sec-div { min-height: 480px; }
.jb-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jb-headtools { margin-left: auto; display: flex; gap: 4px; }
.jb-shotbtn.on, #jb-guide.on { border-color: var(--accent); color: #fff; background: #5a2321; }
.jb-shotbtn { min-width: 30px; padding-left: 5px !important; padding-right: 5px !important; }
/* six capture patterns need a tighter segment */
/* ≤1460 the FCV column is ~171px — the segment can't share a row with the
   title, so the head wraps (title / modes / hint) instead of crushing */
@media (max-width: 1460px) {
  .jb-headtools { gap: 3px; }
  .jb-shotbtn { min-width: 24px; }
  #stg-fcv .stg-panelhead { flex-wrap: wrap; row-gap: 2px; }
  #stg-fcv .stg-headtools { flex-wrap: wrap; justify-content: flex-end;
    row-gap: 2px; margin-left: auto; }
}

.btn.btn-teal { background: #123f3f; border-color: #19c8c8; color: #aef2f2; }
.btn.btn-blue { background: #16324c; border-color: #2f7fc0; color: #a8d4f5; }

/* footer strip shared by Live View and the centering panel */
.jb-foot { display: flex; align-items: center; gap: 3px; margin-top: 6px;
  border-top: 1px solid var(--line); padding-top: 6px; flex-wrap: nowrap; min-width: 0; }
.jb-tab { font-family: var(--jb-font); font-size: 11px; letter-spacing: 1.5px; padding: 4px 14px;
  background: #1b1b1b; color: #7F7F7F; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.jb-tab.on { background: #5a2321; border-color: var(--accent); color: #fff; }
.jb-foot-note { margin-left: auto; font-size: 9px; letter-spacing: .3px; color: #7F7F7F;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Live View 2K/4K segment: FRONT/BACK-style pills, blue like Load Sequence */
.jb-resseg { margin-left: auto; display: inline-flex; gap: 3px; }
.jb-resseg .jb-tab { padding: 3px 7px !important; font-size: 10.5px !important; letter-spacing: 1px; }
.jb-tab-blue.on { background: #16324c; border-color: #2f7fc0; color: #a8d4f5; }
#jb-grid-live { padding-left: 8px; padding-right: 8px; }
.jb-foot .btn { flex: 0 0 auto; }

.jb-livebox { position: relative; aspect-ratio: 9/16; background: #000;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  height: min(calc((var(--jb-c-live) - 40px) * 16 / 9), max(calc(100vh - 300px), 320px));
  width: auto; margin: 0 auto; }
.jb-livebox video { position: absolute; left: 50%; top: 50%;
  /* --lvx/--lvy/--lvz = the live-view zoom hooks (screen-space pan
     first, so cursor math stays simple); unset anywhere else = 1:1 */
  transform: translate(var(--lvx, 0px), var(--lvy, 0px))
             translate(-50%, -50%) rotate(270deg) scale(var(--lvz, 1));
  object-fit: cover; }
.jb-gridov { position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 12.5%); }

.jb-prevbox { position: relative; width: 100%; aspect-ratio: 4800/6200; background: #101010;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.jb-prevbox img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jb-prevbox.empty { border-style: dashed; border-color: #3a3a3a; }
.jb-prevbox.empty img { display: none; }
.jb-prevbox.empty::after { content: 'NO CAPTURE'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: #4a4a4a; font-size: 12px; letter-spacing: 3px; }
.jb-btnrow { display: flex; gap: 4px; margin-top: 5px; }
/* fine-rotation row: label · nudge · slider · nudge · readout · reset */
.jb-rotrow { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.jb-rot-label { font-family: var(--jb-font); font-size: 10px; letter-spacing: 1.5px;
  color: #A6A6A6; white-space: nowrap; }
.jb-rotrow input[type="range"] { flex: 1 1 0; min-width: 0; height: 18px; margin: 0;
  accent-color: var(--accent); background: transparent; cursor: ew-resize; }
/* mouse adjustments must not leave the global red focus ring behind;
   keyboard focus (focus-visible) keeps it for accessibility */
.jb-rotrow input[type="range"]:focus:not(:focus-visible) { outline: none; }
.jb-rotrow input[type="range"]:disabled { cursor: default; opacity: .35; }
.jb-rot-nudge { flex: 0 0 auto; width: 26px; padding: 3px 0 !important; font-size: 12px; line-height: 1.2; }
.jb-rot-val { font-family: var(--jb-font); font-variant-numeric: tabular-nums;
  font-size: 11px; color: #d8fbfb; min-width: 48px; text-align: right; white-space: nowrap; }
#jb-rot-reset { flex: 0 0 auto; padding: 3px 8px !important; font-size: 10.5px; }
.jb-btnrow .btn { flex: 1 1 0; min-width: 0; padding: 4px 3px; font-size: 10.5px;
  white-space: nowrap; letter-spacing: 0; line-height: 1.3; }
.jb-foot .btn { padding: 4px 10px; font-size: 10.5px; white-space: nowrap; }
#view-job select { width: 100%; height: 27px; padding: 2px 6px; font-size: 11px; }
.jb-seqnote { text-align: right; color: #7F7F7F; margin-top: 2px; }

/* ---- centering operation ---- */
.jb-centbox { position: relative; width: 100%; aspect-ratio: 4800/6200; background: #101010;
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; user-select: none; }
.jb-centbox.empty::after { content: 'no processed image \2014  capture, then Use FRONT / Use BACK';
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #7F7F7F; font-size: 12px; text-align: center; padding: 20px; }
.jb-centwrap { position: absolute; left: 0; top: 0; }
.jb-centwrap img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jb-frame { position: absolute; pointer-events: none; border-radius: 1px; }
.jb-frame-outer { outline: 1.5px solid #19e0e0; box-shadow: 0 0 0 3px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.45); }
.jb-frame-inner { outline: 1.5px solid #ffe14d; box-shadow: 0 0 0 3px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.45); }
/* selected frame (grabbed last): slightly translucent (10% transparency)
   so selection reads without hiding the line — the arrow keys move THIS
   frame 1 px per press */
.jb-frame.sel { opacity: .9; }
/* the SELECTED frame turns neon pink (grips included); deselecting
   restores its own colour — outer cyan, inner yellow */
.jb-frame-outer.sel, .jb-frame-inner.sel { outline-color: #FF10F0; }
.jb-frame-outer.sel .jb-hand::after, .jb-frame-inner.sel .jb-hand::after { background: #FF10F0; }
.jb-hand { position: absolute; pointer-events: auto; }
.jb-hand.h { left: -7px; right: -7px; height: 14px; top: -7px; cursor: ns-resize; }
.jb-hand.h.b { top: auto; bottom: -7px; }
.jb-hand.v { top: -7px; bottom: -7px; width: 14px; left: -7px; cursor: ew-resize; }
.jb-hand.v.r { left: auto; right: -7px; }
/* midpoint grips, visible so the frames read as adjustable instruments */
.jb-hand::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 5px;
  transform: translate(-50%, -50%); border-radius: 2px; background: #F2F2F2;
  box-shadow: 0 0 0 1px rgba(0,0,0,.7); opacity: .85; }
.jb-hand.v::after { width: 5px; height: 18px; }
.jb-frame-outer .jb-hand::after { background: #19e0e0; }
.jb-frame-inner .jb-hand::after { background: #ffe14d; }
.jb-hand:hover::after { background: var(--accent); }
/* corner grips resize both adjacent edges at once; above the edge hands
   so they win the hit-test where the two overlap */
.jb-hand.c { width: 16px; height: 16px; z-index: 2; }
.jb-hand.c.tl { left: -8px; top: -8px; cursor: nwse-resize; }
.jb-hand.c.tr { left: auto; right: -8px; top: -8px; cursor: nesw-resize; }
.jb-hand.c.bl { left: -8px; top: auto; bottom: -8px; cursor: nesw-resize; }
.jb-hand.c.br { left: auto; right: -8px; top: auto; bottom: -8px; cursor: nwse-resize; }
.jb-hand.c::after { width: 9px; height: 9px; border-radius: 2px; }
.jb-dims { position: absolute; padding: 2px 8px; background: rgba(10,10,10,.85);
  border: 1px solid #19e0e0; border-radius: 3px; color: #d8fbfb; font-size: 11px;
  letter-spacing: .5px; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.jb-guide-ov { position: absolute; inset: 0; pointer-events: none; }
.jb-guide-ov i { position: absolute; background: rgba(57, 255, 20, .6); }
.jb-guide-ov i.h { left: 0; right: 0; height: 1px; }
.jb-guide-ov i.v { top: 0; bottom: 0; width: 1px; }

/* ---- border widths panels (mock: FRONT red band header) ---- */
.jb-bwcard { overflow: hidden; }
.jb-bwhead-f, .jb-bwhead-b { margin: -8px -10px 8px; padding: 6px 10px; }
.jb-bwhead-f, .jb-bwhead-b { background: linear-gradient(90deg, #333, #1d1d1d); }
.jb-bwcard.sel .jb-bwhead-f, .jb-bwcard.sel .jb-bwhead-b {
  background: linear-gradient(90deg, #7e2c28, #3a1615); }
.jb-bwcard.sel { border-color: var(--accent); }
.jb-bwhead-f b, .jb-bwhead-b b { letter-spacing: 2px; }
.jb-bwhead-f span, .jb-bwhead-b span { margin-left: auto; font-size: 9.5px; letter-spacing: 1.5px; color: #A6A6A6; }
.jb-bw { font-size: 11px; color: #A6A6A6; display: flex; flex-direction: column; gap: 3px; }
.jb-bw i { font-style: normal; letter-spacing: 1px; font-size: 10px; }
.jb-bw span, .jb-bw b { float: right; color: #F2F2F2; font-family: var(--jb-font); font-variant-numeric: tabular-nums; }
.jb-bw div { overflow: hidden; border-bottom: 1px solid #222; padding-bottom: 2px; }
.jb-bw .btn { margin-top: 6px; align-self: flex-end; }

/* ---- results ---- */
.jb-rescard { overflow: hidden; }
.jb-reshead { margin: -8px -10px 8px; padding: 6px 10px;
  background: linear-gradient(90deg, #2b2b2b, #1a1a1a); display: flex; align-items: center; }
.jb-rescard.sel .jb-reshead { background: linear-gradient(90deg, #7e2c28, #3a1615); }
.jb-rescard.sel { border-color: var(--accent); }
.jb-reshead b { letter-spacing: 2px; }
.jb-bigratio { margin-left: auto; font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #7e2c28, #5a2321); padding: 2px 14px; border-radius: 3px;
  font-family: var(--jb-font); font-variant-numeric: tabular-nums; }
.jb-rc-grade { display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .5px;
  color: #A6A6A6; margin-bottom: 8px; background: #1d1d1d; border: 1px solid #222;
  border-radius: 3px; padding: 5px 8px; }
.jb-rc-grade i { font-style: normal; font-weight: 700; letter-spacing: 2px; color: #D9D9D9; }
.jb-rc-grade b { color: #F2F2F2; font-family: var(--jb-font); font-variant-numeric: tabular-nums; }
.jb-rc-grade .pen { margin-left: auto; color: #fff; background: #5a2321; border: 1px solid var(--accent);
  border-radius: 3px; padding: 2px 12px; font-size: 15px; }
.jb-rc-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; text-align: center;
  font-size: 9px; letter-spacing: .5px; color: #7F7F7F; text-transform: uppercase; }
.jb-rc-row span { background: #1d1d1d; border: 1px solid #222; border-radius: 3px; padding: 4px 2px; }
.jb-rc-row b { display: block; font-size: 15px; color: #F2F2F2; margin-top: 2px; font-variant-numeric: tabular-nums; }
/* the BLACKLENS grade pill wears the section-divider red */
.jb-rc-row span:first-child { background: var(--accent); border-color: var(--accent); color: #f7dedd; }
.jb-rc-row span:first-child b { color: #fff; }

.jb-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jb-res { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jb-res-val { font-size: 17px; font-weight: 700; color: #F2F2F2; font-family: var(--jb-font);
  font-variant-numeric: tabular-nums; min-width: 30px; text-align: center; }
.jb-res-mid { display: flex; align-items: center; gap: 6px; }
.jb-res-imgbox { width: clamp(110px, calc(100% - 70px), 340px); flex: 1 1 auto;
  aspect-ratio: 4800/6200; border: 1px dashed #3a3a3a;
  border-radius: 4px; background: #141414; overflow: hidden; position: relative; }
.jb-res-mid { width: 100%; }
.jb-res { min-width: 0; width: 100%; }
.jb-res-imgbox.filled { border-style: solid; border-color: var(--line); aspect-ratio: auto; }
.jb-res-imgbox img { width: 100%; height: auto; display: none; }
.jb-res-imgbox.filled img { display: block; }
.jb-res-imgbox:not(.filled)::after { content: '\2014'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; color: #4a4a4a; }
.jb-res-cap { display: flex; gap: 12px; margin-top: 4px; font-size: 10.5px; color: #A6A6A6;
  letter-spacing: .5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 1500px) {
  .jb-grid, .jb-head { grid-template-columns: var(--sd) var(--jb-c-live) 268px var(--sd) var(--jb-c-cent) var(--jb-c-bw) var(--sd) minmax(320px, 1fr); }
}
#jb-grid-live.on, #jb-grid-cent.on { border-color: var(--accent); color: #fff; background: #5a2321; }

/* one topbar for the whole app: the new LOGOS mark plus, on the JOB page,
   the page title in place of the studio tag */
/* JOB page title, PDF style: BLACKLENS heavy, FULLCARD semibold, the rest
   light — one Bahnschrift line, semi-condensed, zero margins, left aligned */
.tb-page { font-family: Bahnschrift, 'Franklin Gothic Medium', 'Segoe UI', Arial, sans-serif;
  font-size: 32px; font-weight: 300; font-stretch: semi-condensed;
  letter-spacing: 2px; color: #C9C9C9; text-transform: uppercase; margin-left: 12px; }
.tb-page b { color: #F2F2F2; font-weight: 600; }
#topbar.tb-job .tb-tag { display: none; }
#topbar.tb-job { padding: 12px 16px; min-height: 0; }
#topbar.tb-job .topbar-brand { flex-direction: row; align-items: center; margin: 0; padding: 0; }
#topbar.tb-job .tb-word { font-family: Bahnschrift, 'Franklin Gothic Medium', 'Segoe UI', Arial, sans-serif;
  font-size: 32px; font-weight: 700; font-stretch: semi-condensed; letter-spacing: 2.5px; }

/* Capture Sequence: cadence dropdown rides beside Load Sequence */
#view-job select.jb-cadsel { flex: 1 1 0; width: auto; min-width: 0; }
#jb-connect.on, #ai-connect.on { background: #14321a; border-color: #2e8c46; color: #a9e6b4; }

/* ============ AI INSPECT (view-ai) — FULLCARD AUTO AI INSPECTION ============
   The corners · edges · surface lane on the INSPECT design language.
   Three columns: live view (auto-detection overlay) | operation (record +
   annotated playback) | results (the operator's scoring sheet). The grand
   red sec-divs follow the INSPECT schema — each drags the column to its
   left (leading one fixed), widths persisted (blacklens.ai.cols). */
#view-ai { padding: 2px 10px 10px 5px; overflow: auto; --sd: 27px; --ai-c-op: 470px; }
#view-ai, #view-ai button, #view-ai select, #view-ai input { font-family: var(--jb-font); }
#view-ai .card-head b { font-size: 14.5px; font-stretch: semi-condensed; letter-spacing: .5px; }
#view-ai .btn { font-size: 11.5px; padding-top: 3px; padding-bottom: 3px; }
/* the borrowed job header rides the SAME template as the grid (the
   INSPECT schema, operator 2026-09-12): the search box spans the leading
   divider + live column — a divider drag resizes them TOGETHER — the
   slab spans the operation column, the grade pills the results column */
#view-ai .jb-head {
  min-width: 0; }   /* the job page's 1330px pan floor stays on INSPECT only */
#view-ai .jb-head > * { min-width: 0; }
#view-ai .jb-head .jb-card-id { grid-column: 1 / 3; }
#view-ai .jb-head .jb-slab { grid-column: 3 / 5; }
#view-ai .jb-head .jb-pills { grid-column: 5 / 7; }
/* here the CORNERS / EDGES / SURFACE pills wear the red; centering rests */
#view-ai .jb-pills .jb-pill.on { background: linear-gradient(180deg, #383838, #191919); border-color: #000; color: #C9C9C9; }
#view-ai .jb-pills .jb-pill:nth-child(2), #view-ai .jb-pills .jb-pill:nth-child(3), #view-ai .jb-pills .jb-pill:nth-child(4) {
  background: linear-gradient(180deg, #7e2c28, #3a1615); border-color: var(--accent); color: #F2D9D9; }
.ai-grid { display: grid; column-gap: 10px; margin-top: 6px; align-items: stretch;
  grid-template-columns: var(--sd) var(--ai-c-live) var(--sd) var(--ai-c-op) var(--sd) minmax(360px, 1fr);
  /* fallback — sizeAll() sets the real height from the header's measured
     bottom, so a taller wrapped header never pushes the page into scroll */
  height: calc(100vh - 220px); }
.ai-grid > * { min-height: 0; min-width: 0; }
.ai-grid .sec-div.jb-resizable { cursor: col-resize; }
.ai-col { display: flex; flex-direction: column; gap: 10px; min-height: 0;
  overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.ai-col > .card, #ai-scores > .card { flex: 0 0 auto; padding: 8px 10px; }
.ai-col > .card .card-head, #ai-scores > .card .card-head { margin-bottom: 5px; }
/* the scoring stack + the flow buttons below it (BACK — Centering is
   live; NEXT — Inspection Report lights up when that module ships) */
.ai-scorestack { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.ai-nextrow { flex: 0 0 auto; margin-top: auto; }
/* the rotated live/playback boxes — width-driven, 9/16, overlays share
   the video's exact box + rotation so annotations align 1:1. The live
   window shares its row with a NARROW fixed filter rail (96px) pinned
   to its right — the window takes all the remaining width */
#view-ai .jb-livebox { flex: 0 0 auto; overflow: hidden;
  height: min(calc((var(--ai-c-live) - 240px) * 16 / 9), calc(100vh - 280px)); }
/* zoom/pan wrapper — imagery + annotation canvases move together, the
   grid overlay outside it stays screen-fixed */
.ai-zoomwrap { position: absolute; inset: 0; transform-origin: 50% 50%; }
/* tiny group captions, the design system's field-label voice */
.ai-lbl { display: flex; justify-content: space-between; align-items: center;
  margin-top: 5px; font-size: 9px; letter-spacing: 1.5px; color: var(--muted-2); }
.ai-lbl .btn { font-size: 8.5px !important; padding: 1px 6px; letter-spacing: 1px; }
/* compact adjustment sliders — the EXPERT panel, miniaturised */
.ai-adj { display: flex; flex-direction: column; gap: 2px; }
.ai-adj label { display: grid; grid-template-columns: 56px 1fr 27px;
  align-items: center; gap: 4px; min-height: 15px; }
.ai-adj i { font-style: normal; font-size: 8px; letter-spacing: .6px;
  color: var(--muted-2); white-space: nowrap; overflow: hidden; }
.ai-adj input { width: 100%; min-width: 0; height: 10px; accent-color: var(--accent); }
.ai-adj b { font-family: Consolas, monospace; font-size: 9.5px; font-weight: 400;
  text-align: right; font-variant-numeric: tabular-nums; }
#view-ai .ai-playbox { height: min(calc((var(--ai-c-op) - 44px) * 16 / 9), calc(100vh - 610px)); background: #050505; }
.ai-ov { position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(270deg); pointer-events: none; }
.ai-ov2 { z-index: 2; }
#ai-live-filter { z-index: 1; }
#ai-live-filter[hidden] { display: none; }
/* FREEZE VIEW — accent while the still is held */
#ai-freeze-btn.on { border-color: var(--accent); color: #fff; background: #5a2321; }
/* the UVC SAVE SETTINGS / SAVED toggle (IMAGE section head) */
.uvc-save { font-size: 9px !important; letter-spacing: 1px; padding: 2px 8px; white-space: nowrap; }
.uvc-save.saved { border-color: var(--green); color: var(--green-soft); background: #1d2b1d; }
.ai-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 1px; }
.ai-modes .btn { min-width: 0; padding: 2px 1px; font-size: 9px; letter-spacing: .4px; }
.ai-modes .btn:last-child { grid-column: 1 / -1; }
.ai-modes .btn.on { border-color: var(--accent); color: #fff; background: #5a2321; }
/* the foot wears INSPECT's exact tab sizing; GRID matches #jb-grid-live */
#view-ai .jb-tab { font-size: 12px; padding: 3px 11px; }
#ai-grid { padding-left: 8px; padding-right: 8px; }
/* the playback window and the right rail share a row — playback takes
   the height; the rail stacks the borrowed Jog card (its 40px square
   rules are #view-stage-scoped and stay behind) over the STAGE and
   RECORDING button groups */
#view-ai .stg-pad button { aspect-ratio: 1 / 1; padding: 0; }
/* Step / Reset share a row in the rail's STAGE group */
.ai-btnrow { display: flex; gap: 4px; }
/* Camera + Camera Settings under the Live View Operation card (operator
   2026-09-24): the shared #cam-stack with STAGE/CAM's compaction; the
   live column scrolls past the fold */
#view-ai #cam-stack { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
#view-ai #cam-stack .card { margin: 0; padding: 7px 10px 8px; }
#view-ai #cam-stack .card-head { margin-bottom: 4px; }
#view-ai #cam-stack .uvc-row { grid-template-columns: 72px minmax(0, 1fr) 48px; gap: 6px 8px; min-height: 15px; }
#view-ai #cam-stack .uvc-controls { gap: 0; margin-top: 0; }
#view-ai #cam-stack .uvc-row input[type=range] { height: 14px; }
#view-ai #cam-stack .uvc-mode { padding-top: 1px; padding-bottom: 1px; }
#view-ai #cam-stack .uvc-sec { margin-top: 2px; padding-top: 3px; }
#view-ai #cam-stack .uvc-sec-t { line-height: 1.1; }
#view-ai #cam-stack .uvc-foot { margin-top: 4px; }
/* zoom readout — top-right of every live view and the centering/expert
   window, shown only while zoomed */
.zoom-tag { position: absolute; top: 6px; right: 6px; z-index: 7; pointer-events: none;
  font-family: var(--jb-font); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; color: #EAEAEA; background: rgba(10, 10, 10, .82);
  border: 1px solid #3a3a3a; border-radius: 4px; padding: 2px 7px; }
.zoom-tag[hidden] { display: none; }
.ai-play-tag { position: absolute; left: 6px; top: 6px; z-index: 3; font-size: 9.5px;
  letter-spacing: 1.5px; padding: 2px 7px; border-radius: 3px;
  background: rgba(220, 79, 76, .85); color: #fff; }
.ai-play-tag[hidden] { display: none; }
/* ---- CARD NAVIGATOR (operator 2026-09-13): the idle playback window
   shows the centering-operation card image with the Live View's current
   position boxed on it. .nav on #ai-playbox flips between the two —
   visibility (not display) so sizeBox geometry never moves. ---- */
#ai-nav { position: absolute; inset: 0; z-index: 2; background: #050505; }
#ai-playbox:not(.nav) #ai-nav { display: none; }
#ai-playbox.nav video, #ai-playbox.nav .ai-ov, #ai-playbox.nav .ai-play-tag { visibility: hidden; }
#ai-nav-img { position: absolute; display: none; user-select: none; -webkit-user-drag: none; }
#ai-nav-ov { position: absolute; pointer-events: none; }
.ai-nav-chip { position: absolute; left: 6px; bottom: 6px; z-index: 3; pointer-events: none;
  font-family: var(--jb-font); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; color: #EAEAEA; background: rgba(10, 10, 10, .82);
  border: 1px solid #3a3a3a; border-radius: 4px; padding: 2px 7px; white-space: nowrap;
  max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }
.ai-nav-chip[hidden] { display: none; }
.ai-nav-hint { position: absolute; inset: 10px; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 14px;
  border: 1px dashed #3a3a3a; border-radius: 4px;
  color: var(--muted-2); font-size: 10.5px; letter-spacing: .5px; line-height: 1.7; }
.ai-nav-hint[hidden] { display: none; }
/* ---- defect marking on the Live View (operator 2026-09-13): the drag
   box previews its region in NEGATIVE (backdrop-filter inverts whatever
   the live view composites underneath), release opens MINOR/MAJOR ---- */
#ai-negbox { position: absolute; z-index: 6; pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, .95); outline: 1px solid rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: invert(1); backdrop-filter: invert(1); }
#ai-negbox[hidden] { display: none; }
/* the measured size of the boxed mark — mm via the active resolution's
   calibration (or the derivation from the other one); hover = box + area */
/* ---- CORNERS & EDGES gallery (operator 2026-09-13): the results
   column leads with every corner tile + edge strip of both sides,
   cropped from the stored 4K FR/BR report images ---- */
.ai-gallery { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.ai-gallery:empty { display: none; }
.ai-gal-side { padding: 8px 10px; }
.ai-gal-head { display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 6px; }
.ai-gal-head b { font-size: 12.5px; letter-spacing: 1px; }
.ai-gal-name { font-family: Consolas, monospace; font-size: 10px; color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-gal-empty { border: 1px dashed #3a3a3a; border-radius: 4px; padding: 14px 10px;
  text-align: center; color: var(--muted-2); font-size: 10.5px; line-height: 1.6; }
.ai-gal-corners { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ai-gal-c { position: relative; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; background: #101010; cursor: zoom-in; touch-action: none; }
.ai-gal-c canvas { display: block; width: 100%; aspect-ratio: 1 / 1; }
.ai-gal-edges { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ai-gal-e { position: relative; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; background: #101010; cursor: zoom-in; touch-action: none; }
.ai-gal-e canvas { display: block; width: 100%; }
.ai-gal-e i { position: absolute; left: 5px; top: 4px; font-style: normal;
  font-size: 8.5px; font-weight: 700; letter-spacing: 1.5px; color: #EAEAEA;
  background: rgba(8, 8, 8, .66); border-radius: 3px; padding: 1px 6px; }
/* ---- the scoring sheet ---- */

/* 7) the classic NEW flow steps aside for NEW JOB */
#sidebar .sb-btn[data-nav="new"] { display: none; }
/* 8) the CAMERA page left the side menu (operator 2026-09-12) — the
   camera controls live on STAGE/CAM; the page itself stays routable */
#sidebar .sb-btn[data-nav="setup"] { display: none; }
/* 9) the 16/36/42 shot pills are INDICATORS (operator 2026-09-12): they
   light with the selected sequence, never select or calibrate */
.jb-shotbtn { pointer-events: none; }

/* the capture progress bar lives in the topbar now — slim professional
   track, red gradient fill, stage label riding on it */
#topbar .jb-prog { position: relative; flex: 0 1 420px; height: 20px; margin: 0 16px 0 24px;
  align-self: center; background: #1b1b1b; border: 1px solid #000; border-radius: 10px;
  overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
#topbar .jb-prog i { position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  background: linear-gradient(180deg, #e0625e, #b03330); border-radius: 10px;
  transition: width .2s ease; }
#topbar .jb-prog span { position: relative; display: block; text-align: center;
  font-family: var(--jb-font); font-size: 10.5px; letter-spacing: 2px; line-height: 18px;
  color: #F2F2F2; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  white-space: nowrap; overflow: hidden; }

.jb-dimsline { font-family: var(--jb-font); font-variant-numeric: tabular-nums;
  font-size: 10.5px; letter-spacing: .4px; color: #d8fbfb; text-align: center;
  white-space: nowrap; overflow: hidden; border-color: #19c8c8 !important; }

/* section dividers = long rectangular red boxes, the CENTERING-tile style
   (shared by the JOB, STAGE and AI pages — one design language) */
#view-job .sec-div, #view-stage .sec-div, #view-ai .sec-div, #view-submit .sec-div, #view-home .sec-div {
  background: linear-gradient(180deg, #7e2c28, #3a1615 55%, #2b1210);
  border: 1px solid var(--accent); border-radius: 6px;
  box-shadow: none;
  align-items: flex-end;
}
#view-job .sec-div::before, #view-stage .sec-div::before, #view-ai .sec-div::before, #view-submit .sec-div::before, #view-home .sec-div::before { display: none; }
#view-job .sec-div::after, #view-stage .sec-div::after, #view-ai .sec-div::after, #view-submit .sec-div::after, #view-home .sec-div::after {
  content: attr(data-sec);
  font-family: Bahnschrift, 'Franklin Gothic Medium', 'Segoe UI', Arial, sans-serif;
  font-weight: 400; font-stretch: semi-condensed;
  font-size: 14.5px; letter-spacing: .5em; color: #E8E8E8;
  background: transparent; text-shadow: none;
  padding: 14px 0;
}
#view-job .sec-div.jb-resizable:hover, #view-ai .sec-div.jb-resizable:hover { filter: brightness(1.18); }

/* ---- one size up on every button and header in the working grid,
   9-SHOT-sized type with tighter vertical padding ---- */
/* ---- STAGE module wears the NEW JOB design language (2026-09-09):
   jb type on everything, 14.5px bold card heads, grand red sec-divs
   (shared rule above), compact buttons, blue/green action parity ---- */
#view-stage, #view-stage button, #view-stage select, #view-stage input {
  font-family: var(--jb-font);
}
#view-stage { --sd: 27px; padding: 2px 10px 10px 5px; }
/* the page-head + hint-line are gone (title lives in the topbar) — the
   old 180px budget would leave a dead band under the layout */
#view-stage .stage-layout { height: calc(100vh - 79px); }
/* the NOT-HOMED banner sits above the layout: subtract its height while
   it shows, or the page scrolls exactly the banner's 49px */
#view-stage:has(#stg-nothomed:not(.hidden)) .stage-layout { height: calc(100vh - 128px); }
/* below 1366 the #main pan container adds a horizontal scrollbar — its
   ~13px height must come out of the budget or the page scrolls 13px */
@media (max-width: 1365px) {
  #view-stage .stage-layout { height: calc(100vh - 93px); }
}
#view-stage .card-head b {
  font-stretch: semi-condensed; letter-spacing: .5px; font-size: 14.5px; }
#view-stage .stg-panelhead b {
  font-stretch: semi-condensed; letter-spacing: .5px; font-size: 13.5px; font-weight: 700; }
#view-stage .btn { font-size: 11.5px; padding-top: 3px; padding-bottom: 3px; }   /* the pattern segment keeps its compaction */
#stg-disconnect { background: #14321a; border-color: #2e8c46; color: #a9e6b4; }

/* ---- STAGE v4 (2026-09-11): resizable four-column layout ---- */
/* defaults fit the 1300px pan reference exactly: 276+278+278 + 3 sd +
   6 gaps leaves ~336px for the control column */
#view-stage { --stg-c-live: 276px; --stg-c-map: 278px; --stg-c-op: 278px; }
/* the live box is width-driven by its column, aspect-true, and capped by
   the layout height MINUS the legend + the Camera card + the Scale
   Calibration card riding below it (both caps on WIDTH so 9/16 holds) */
#view-stage .stg-livecol .stage.portrait { flex: 0 1 auto; align-self: center;
  height: auto; max-height: none; aspect-ratio: 9 / 16;
  width: min(100%, calc((100vh - 364px) * 9 / 16)); }
@media (max-width: 1365px) {
  #view-stage .stg-livecol .stage.portrait { width: min(100%, calc((100vh - 378px) * 9 / 16)); }
}
/* the column scrolls internally rather than the page — at every width since round 330 (the Height Calibration card under the Scale
   Calibration, its six jig rows, ran the page 74 px past 1920 × 917; until then only short viewports scrolled the column) */
#view-stage .stg-livecol { overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
#view-stage .stg-livebar .jb-tab { font-size: 10.5px; padding: 3px 7px; }
/* Scale Calibration under the Live View — compressed */
.stg-livecol #stg-card-scale { padding: 8px 10px; }
.stg-livecol #stg-card-scale .card-head { margin-bottom: 4px; }
#stg-scale-cur:empty { display: none; }
/* CONTROL: two stacks (jog · position · machine | connection · absolute
   move) over the full-width wire log (operator 2026-09-11) */
.stg-ctrl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px; align-items: start; flex: 0 0 auto; }
.stg-ctrl-stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stg-ctrl #stg-card-move .stg-row { flex-wrap: nowrap; }
.stg-ctrl #stg-card-move .stg-field { flex: 1 1 0; }
.stg-ctrl #stg-card-move .stg-field input { width: 100%; }
.stg-ctrl #stg-card-move #stg-go { flex: 0 0 auto; }
.stg-ctrl #stg-card-conn .card-head { flex-wrap: wrap; row-gap: 2px; }
#view-stage .stg-pad { justify-content: center; }
/* three per row, one base each */
.stg-calbtns .btn { flex: 1 1 calc(33.3% - 4px); padding-left: 2px; padding-right: 2px; }
#view-stage .stg-calbtns .btn.on {
  border-color: var(--accent); color: #fff; background: #5a2321; }
.jb-cal-badge.stale { color: #3a2b05; background: #E8B44A; }

/* ---- STAGE v4.1 (operator pass 2026-09-11): NEW JOB card templates ---- */
/* Full-Card Preview as a card with 16/36/42 pills + dashed NO CAPTURE */
#view-stage #stg-fcv.card { padding: 8px 10px; display: flex; }
#stg-fcv-imgbox.empty { flex: 1 1 auto; align-self: stretch; position: relative;
  background: #101010; border: 1px dashed #3a3a3a; border-radius: 4px; }
#stg-fcv-imgbox.empty::after { content: 'NO CAPTURE'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #4a4a4a; font-size: 12px; letter-spacing: 3px; }
/* the sequence card wears the NEW JOB rows */
#view-stage .jb-seqnote { font-size: 10.5px; }
#stg-card-seq select.jb-cadsel { flex: 1 1 0; width: auto; min-width: 0; margin-top: 0; }
#stg-card-seq .jb-btnrow .btn { flex: 1 1 auto; min-width: 0; }
#stg-card-seq .jb-btnrow { align-items: flex-end; }
/* background-color LONGHAND on purpose: with the shorthand, this button
   kept .btn-teal's background while taking this rule's border/color —
   observed in the pane, cascade says impossible, longhand sidesteps it */
#view-stage #stg-seq-connect.on { background-color: #14321a; border-color: #2e8c46; color: #a9e6b4; }
/* Camera + Camera Settings compressed on this page (operator: too much
   line spacing; second tightening pass 2026-09-12) — the Camera card
   lives OUTSIDE the stack here, under the Live View, so target both */
#view-stage #cam-stack .card, #view-stage .stg-livecol #cap-cam-card, #view-stage .stg-opcol #cap-uvc-card { padding: 7px 10px 8px; }
#view-stage #cam-stack .card-head, #view-stage .stg-livecol #cap-cam-card .card-head, #view-stage .stg-opcol #cap-uvc-card .card-head { margin-bottom: 4px; }
#view-stage #cam-stack .uvc-controls, #view-stage #cap-uvc-card .uvc-controls { gap: 0; margin-top: 0; }
#view-stage #cam-stack .uvc-row, #view-stage #cap-uvc-card .uvc-row { min-height: 15px; gap: 6px 8px; }
#view-stage #cam-stack .uvc-row input[type=range], #view-stage #cap-uvc-card .uvc-row input[type=range] { height: 14px; }
#view-stage #cam-stack .uvc-mode, #view-stage #cap-uvc-card .uvc-mode { padding-top: 1px; padding-bottom: 1px; }
#view-stage #cam-stack .uvc-sec, #view-stage #cap-uvc-card .uvc-sec { margin-top: 2px; padding-top: 3px; }
#view-stage #cam-stack .uvc-sec-t, #view-stage #cap-uvc-card .uvc-sec-t { line-height: 1.1; }
#view-stage #cam-stack .uvc-foot, #view-stage #cap-uvc-card .uvc-foot { margin-top: 4px; }

#view-job .btn { font-size: 11.5px; padding-top: 3px; padding-bottom: 3px; }
#view-job .jb-btnrow .btn { font-size: 11.5px; }
#view-job .jb-tab { font-size: 12px; padding: 3px 11px; }
#view-job .card-head b { font-size: 14.5px; }
#view-job .jb-bw { font-size: 12px; }
#view-job .jb-bw i { font-size: 11px; }
#view-job .jb-bwhead-f span, #view-job .jb-bwhead-b span { font-size: 10.5px; }
#view-job .jb-rc-grade { font-size: 11.5px; }
#view-job .jb-rc-row { font-size: 10px; }
#view-job .jb-seqnote { font-size: 10.5px; }
#view-job .jb-foot-note { font-size: 10px; }

/* selected side in the results: red bed 5px around the card frame */
.jb-res.sel .jb-res-imgbox {
  box-shadow: 0 0 0 5px #7e2c28, 0 0 14px rgba(220, 79, 76, .45);
  border-color: var(--accent);
}

#jb-load { height: 27px; padding: 0 8px; display: inline-flex; align-items: center;
  justify-content: center; align-self: flex-end; }
#view-job .jb-btnrow { align-items: flex-end; }

/* centering grid overlay + its colour square */
.jb-cgrid { position: absolute; pointer-events: none; }
/* ring hit strokes (zoomed + grid ON): clickable guide pickers */
.jb-cgrid .cg-hit { cursor: pointer; }
#jb-cgrid-color { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line);
  border-radius: 3px; background: #1b1b1b; cursor: pointer; flex: 0 0 auto; }
#jb-grid-cent.on { border-color: var(--accent); color: #fff; background: #5a2321; }

/* EXPERT MODE (was Enlarge Window): the window grows to a viewport-derived
   height replacing the header's score slab; the panel controls MOVE into
   the right column (DOM move in setFocus) together with the Image Mode /
   Image Adjustment deck; the widths column, results thumbnails and the
   unselected side's result card step aside. The topbar STAYS. ESC exits.
   The grid template shrinks by the removed track — hiding a child without
   retracking slides every later column into the wrong slot. */
#view-job.jb-focus #jb-col-widths { display: none; }
#view-job.jb-focus .jb-grid, #view-job.jb-focus .jb-head {
  grid-template-columns: var(--sd) var(--jb-c-live) 302px var(--sd) var(--jb-c-cent) var(--sd) minmax(300px, 1fr);
}
/* focus header: the slab cell is gone (window extends up into it); the
   search box keeps its columns and the grade pills stay over results */
#view-job.jb-focus .jb-pills { grid-column: 6 / 8; }
#view-job.jb-focus .jb-centcard > .card-head { display: none; }
#view-job.jb-focus .jb-centcard { position: relative; z-index: 4; }  /* rises over the emptied header middle */
#view-job.jb-focus .jb-centbody > .jb-centbox { margin: 0 auto; width: auto; }
#view-job.jb-focus .jb-head .jb-slab { display: none; }        /* the window takes the slab's room */
/* the search box renders IDENTICALLY in and out of expert mode (operator
   2026-09-09) — the old focus-only margin-left:12px override is gone */
#view-job.jb-focus #jb-resthumbs { display: none; }            /* no Front/Back results panel here */
#view-job.jb-focus .jb-rescard:not(.sel) { display: none; }    /* only the side being worked on */
#jb-enlarge.on { border-color: var(--accent); color: #fff; background: #5a2321; }

/* expert-only blocks live in the results column, hidden outside the mode */
.jb-exp-only { display: none; }
#view-job.jb-focus .jb-exp-only { display: block; }
/* the action row shows in BOTH modes now (under the Estimated Card size
   line normally, under the enlarged window in expert) — only Apply is
   expert-only */
#jb-exp-actions, #jb-img-actions { display: flex; gap: 6px; }
#view-job:not(.jb-focus) #jb-exp-apply { display: none; }
#jb-exp-controls { display: none; }
#view-job.jb-focus #jb-exp-controls { display: block; background: #202020; border: 1px solid #3a3a3a;
  border-radius: 6px; padding: 6px 8px 8px; }
#jb-exp-controls .jb-btnrow, #jb-exp-controls .jb-rotrow, #jb-exp-controls .jb-foot { margin-top: 5px; }
#jb-exp-controls .jb-rotrow { margin-top: 0; }
.jb-exp-modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: 2px; }
.jb-exp-modes button { font-family: var(--jb-font); font-size: 8.5px; letter-spacing: .4px;
  padding: 6px 2px; background: #1c1c1c; color: #A6A6A6; border: 1px solid #3a3a3a;
  border-radius: 4px; cursor: pointer; white-space: nowrap; }
.jb-exp-modes button:hover { border-color: #666; color: #F2F2F2; }
.jb-exp-modes button.on { border-color: var(--accent); color: #fff; background: #5a2321; }
.jb-exp-subhead { margin-top: 10px; }
.jb-exp-subtools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#jb-exp-reset { margin: 0; padding: 3px 8px; font-size: 10px; }
/* the action row travels under the enlarged window in expert mode */
#view-job.jb-focus .jb-centbody > #jb-exp-actions { margin-top: 8px; }
/* Scale Calibration row under the Live View: button + PASS/FAIL badge */
.jb-cal-badge { font-family: var(--jb-font); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; padding: 4px 12px; border-radius: 3px; flex: 0 0 auto; }
.jb-cal-badge.pass { color: #0d2b12; background: #39FF14; }
.jb-cal-badge.fail { color: #fff; background: var(--accent); }
.jb-cal-note { font-family: var(--jb-font); font-variant-numeric: tabular-nums; font-size: 10px;
  letter-spacing: .5px; color: #d8fbfb; text-align: center; margin-top: 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.jb-exp-sliders label { display: flex; align-items: center; gap: 6px; margin: 3px 0; }   /* 3 px (was 5): TEMPERATURE / TINT made eleven rows (round 115) */
.jb-exp-sliders i { font-style: normal; font-family: var(--jb-font); font-size: 9.5px;
  letter-spacing: 1px; color: #A6A6A6; width: 74px; flex: 0 0 auto; }
.jb-exp-sliders input[type="range"] { flex: 1 1 0; min-width: 0; height: 16px; margin: 0;
  accent-color: var(--accent); background: transparent; }
.jb-exp-sliders input[type="range"]:focus:not(:focus-visible) { outline: none; }
.jb-exp-sliders b { font-family: var(--jb-font); font-variant-numeric: tabular-nums;
  font-size: 10.5px; color: #d8fbfb; width: 40px; text-align: right; flex: 0 0 auto; }
/* the preview column scrolls internally (Full-Card Preview + Capture Sequence); fitPrevCol sets the viewport-bound
   max-height. The scrollbar's room is always kept (round 214): the preview's height follows its width, so a scrollbar that
   came and went shrank it, which took the scrollbar away, which grew it again: the page flickered */
#view-job .jb-prevcol { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
#view-job .jb-prevcol > .card { flex: 0 0 auto; }
/* the UVC card compacts on CENTERING like on STAGE/CAM */
/* the compact Camera Settings row on CENTERING (operator 2026-09-13 —
   the full UVC panel lives on STAGE/CAM; this is ON/OFF + the jump) */
#view-job .jb-prevcol { overflow-x: hidden; }
/* compact since 2026-09-13 (second trim same day) — the IMAGE OUTPUT
   row rides below them and must never cross the divider */
#jb-exp-actions .btn, #jb-img-actions .btn { flex: 1 1 0; padding: 3px 6px; font-size: 11.5px; }
.jb-imgout { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 1px 2px 0; max-width: 100%; min-width: 0; overflow: hidden; }
.jb-imgout span { flex: 0 1 auto; font-size: 9px; letter-spacing: 1.5px; color: var(--muted-2);
  font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-job .jb-imgout select { flex: 0 0 96px; width: 96px; min-width: 0;
  font-size: 11px; padding: 3px 6px; }
/* ESTIMATED MARKET VALUE (operator 2026-10-20; a panel since round 131: 'make this section look better and stand out —
   can't see it'): the BLACK products' gold — the caption whole on two lines, a larger well with the currency inside it,
   the app's own figure as its placeholder; brighter gold, with a soft glow, while a value is typed */
#view-job .jb-emv { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; box-sizing: border-box; max-width: 100%; min-width: 0;
  margin: 2px 0 0; padding: 6px 8px 6px 10px; border: 1px solid #5c5340; border-left: 3px solid #ab9b6f; border-radius: 7px;
  background: linear-gradient(180deg, #1f1b12 0%, #15120c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); cursor: text; }
#view-job .jb-emv .jb-emv-cap { display: block; max-width: 84px; font-size: 10px; line-height: 1.15; letter-spacing: 1.3px; font-weight: 800; color: #d8c89a; white-space: normal; }
#view-job .jb-emv .jb-emv-box { display: flex; align-items: center; gap: 0; min-width: 0; height: 30px; box-sizing: border-box; margin: 0; padding: 0 4px 0 0;
  border: 1px solid #6b5f43; border-radius: 6px; background: #0b0a07; cursor: text; transition: border-color .15s, box-shadow .15s; }
#view-job .jb-emv input { flex: 1 1 auto; width: auto; min-width: 0; height: 100%; box-sizing: border-box; margin: 0; padding: 0 8px; border: 0; background: none; box-shadow: none;
  font-size: 14px; font-weight: 700; color: #F2F2F2; text-align: right; font-variant-numeric: tabular-nums; }
#view-job .jb-emv input::placeholder { color: #8a7f63; font-weight: 600; }
#view-job .jb-emv input:focus { outline: none; box-shadow: none; }
#view-job .jb-emv .jb-emv-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(220, 79, 76, .25); }
#view-job .jb-emv .jb-emv-box b { flex: none; padding: 3px 6px; border-radius: 4px; background: #2b2515; border: 1px solid #5c5340; color: #e7d9a8; font-size: 10px; font-weight: 800; letter-spacing: 1px; line-height: 1; }
#view-job .jb-emv:hover { border-color: #8a7b55; }
#view-job .jb-emv.on { border-color: #ab9b6f; border-left-color: #e2c06b; background: linear-gradient(180deg, #2a2415 0%, #1c180f 100%); box-shadow: 0 0 0 1px rgba(226, 192, 107, .25), 0 4px 14px rgba(226, 192, 107, .12); }
#view-job .jb-emv.on .jb-emv-box { border-color: #ab9b6f; }
#view-job .jb-emv.on .jb-emv-box b { background: #ab9b6f; border-color: #ab9b6f; color: #111111; }
/* THE VERDICT (2026-11-14): ALTERED (neon yellow) · QUESTIONABLE (red) under EST. VALUE — dark with the colour's edge, filled while on */
#view-job .jb-vds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; min-width: 0; }
#view-job .jb-vds .jb-vd { height: 30px; min-width: 0; margin: 0; padding: 0 6px; border-radius: 7px; border: 1px solid #3a3a3a; background: #1c1c1c; color: #bdbdbd;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
#view-job .jb-vds .jb-vd.alt { border-color: #8c9a1d; color: #e9ff4d; }
#view-job .jb-vds .jb-vd.qa { border-color: #8c3331; color: #f08c8a; }
#view-job .jb-vds .jb-vd:hover { background: #242424; }
#view-job .jb-vds .jb-vd.alt.on { background: #e9ff1f; border-color: #f4ff73; color: #141414; box-shadow: 0 0 0 1px rgba(233, 255, 31, .35), 0 0 14px rgba(233, 255, 31, .35); }
#view-job .jb-vds .jb-vd.qa.on { background: #DC4F4C; border-color: #f07a77; color: #ffffff; box-shadow: 0 0 0 1px rgba(220, 79, 76, .35), 0 0 14px rgba(220, 79, 76, .3); }
/* a short window (1366 × 768): the widths column tightens so the extra row costs no page scroll once a card is captured */
@media (max-height: 820px) {
  #view-job #jb-col-widths { gap: 6px; }
  #view-job .jb-bw { gap: 1px; }
  #view-job .jb-bw div { padding-bottom: 1px; }
  #view-job .jb-bw .btn { margin-top: 3px; }
}

/* centering-grid colour swatch + opacity popover */
.jb-cgrid-wrap { position: relative; display: inline-flex; align-items: center; }
.jb-cgrid-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 40;
  background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 6px; padding: 8px 10px 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,.55); display: none; width: 214px; }
.jb-cgrid-pop.show { display: block; }
.jb-cgrid-pop label { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.jb-cgrid-head { font-family: var(--jb-font); font-size: 9.5px; letter-spacing: 1.8px;
  color: #A6A6A6; padding-bottom: 6px; border-bottom: 1px solid #333; margin-bottom: 8px; }
.jb-cgrid-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.jb-cgrid-sw { width: 100%; aspect-ratio: 1 / 1; border: 1px solid #3a3a3a; border-radius: 4px;
  cursor: pointer; padding: 0; }
.jb-cgrid-sw:hover { border-color: #fff; }
#jb-cgrid-hue { -webkit-appearance: none; appearance: none; height: 10px; border-radius: 5px;
  border: 1px solid #3a3a3a;
  background: linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red); }
#jb-cgrid-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 16px;
  border-radius: 3px; background: #F2F2F2; border: 1px solid #111; cursor: pointer; }
.jb-cgrid-chip { width: 18px; height: 14px; border-radius: 3px; border: 1px solid #3a3a3a;
  display: inline-block; }
.jb-cgrid-pop i { font-style: normal; font-family: var(--jb-font); font-size: 9px;
  letter-spacing: 1px; color: #A6A6A6; white-space: nowrap; }
.jb-cgrid-pop input[type="range"] { flex: 1 1 0; min-width: 0; height: 14px; margin: 0;
  accent-color: var(--accent); }
.jb-cgrid-pop b { font-family: var(--jb-font); font-size: 10px; color: #d8fbfb;
  width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== INSPECTION REPORT v2 — the customer document (js/jobreport.js, 2026-09-27)
   The operator's example: white A4 pages (794 × 1123 px = 210 × 297 mm at
   96 dpi) in Bahnschrift, dark grey #404040 FRONT · brand red BACK · gold
   #AB9B6F PRE-GRADE. Pages are fixed-size so screen and print match; the
   print runs from a body-level clone (#jr-print) — #app's sidebar grid
   would squeeze it otherwise. ===== */
.rp-wrap.jr-mode { width: 830px; }
.rp-wrap.jr-mode .rp-actions a { display: none; }
.jr { font-family: var(--rep-font); color: #404040; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.jr * { box-sizing: border-box; }
.jr-page { position: relative; width: 794px; height: 1123px; margin: 0 auto 22px; background: #fff; overflow: hidden;
  padding: 34px 44px 0; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 12px; line-height: 1.35; }
.jr .sc, .jr-l2, .jr-l3, .jr-plist span, .jr-cap2, .jr-pop i, .jr-dim > span, .jr-cline, .jr-cos span,
.jr-dc span, .jr-dlist, .jr-legend, .jr-strip i, .jr-ccl, .jr-sheet, .jr-notes p, .jr-pfoot, .jr-noimg, .jr-dnone, .jr-more {
  font-family: var(--rep-font-sc); font-stretch: semi-condensed; }
/* header */
.jr-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: start; gap: 12px; }
.jr-hl, .jr-hr { min-width: 0; }
.jr-name { font-size: 18px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; line-height: 1.15;
  white-space: normal; overflow-wrap: break-word; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.jr-l2, .jr-l3 { font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; color: #8a8a8a; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-l2 b { color: #404040; font-weight: 700; }
.jr-l3 b { color: #DC4F4C; font-weight: 700; }
.jr-hc { text-align: center; }
.jr-hc img { height: 40px; display: block; margin: 0 auto 5px; }
.jr-word { font-size: 17px; letter-spacing: 3.6px; line-height: 1; margin-left: 3px; }
.jr-word b { font-weight: 700; }
.jr-studio { font-size: 6.5px; letter-spacing: 3.3px; margin-top: 4px; margin-left: 3px; }
.jr-hr { text-align: right; }
.jr-rep { font-size: 18px; font-weight: 700; letter-spacing: .3px; line-height: 1.15; }
.jr-id { font-size: 12.5px; color: #a6a6a6; margin-top: 3px; letter-spacing: .4px; }
.jr-id b { color: #404040; }
.jr-ord { font-size: 12.5px; color: #DC4F4C; margin-top: 3px; letter-spacing: .4px; }
.jr-rule { border: none; border-top: 1px solid #cfcfcf; margin: 12px 0 10px; }
.jr-t { text-align: center; font-size: 23px; font-weight: 400; letter-spacing: .6px; margin: 0 0 12px; text-transform: uppercase; line-height: 1.2; }
.jr-t b { font-weight: 700; color: #404040; }
.jr-t .a { color: #404040; }
.jr-t .b { color: #a6a6a6; }
/* BLACKLENS SUMMARY */
.jr-sum { display: grid; grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr); gap: 0 12px; }
.jr-scol { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.jr-toprow { display: flex; align-items: center; gap: 14px; height: 96px; }
.jr-slab { width: 92px; height: 92px; display: block; flex: none; }
.jr-slab.empty { border: 3px solid #404040; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #a6a6a6; }
.jr-plist { display: grid; gap: 4px; }
.jr-plist div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 122px; }
.jr-plist span { font-size: 11.5px; letter-spacing: .5px; }
.jr-plist i { font-style: normal; min-width: 34px; text-align: center; background: #404040; color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 2px; }
.jr-plist i.red { background: #DC4F4C; }
.jr-plist i.none { background: #e6e6e6; color: #a6a6a6; }
.jr-score { width: 92px; height: 92px; flex: none; border-radius: 8px; background: #DC4F4C; color: #fff; display: flex; align-items: center; justify-content: center; }
.jr-score b { font-size: 35px; font-weight: 700; letter-spacing: -.5px; }
.jr-cap { font-size: 13px; letter-spacing: .6px; margin: 8px 0 10px; text-transform: uppercase; }
.jr-cap b { font-weight: 700; }
.jr-cap em { font-style: normal; }
.jr-cap em.gold { color: #AB9B6F; }
.jr-cap em.red { color: #DC4F4C; }
.jr-finish { width: 214px; height: 284px; border-radius: 6px; overflow: hidden; padding: 6px; }
.jr-finish.front { background: #404040; }
.jr-finish.back { background: #DC4F4C; }
.jr-finish .jr-zoom { width: 100%; height: 100%; border-radius: 3px; }
.jr-finish img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jr-cap2 { font-size: 10px; letter-spacing: 1.5px; color: #a6a6a6; margin-top: 6px; text-align: center; text-transform: uppercase; }
.jr-mid { position: relative; display: flex; flex-direction: column; align-items: center; }
.jr-mid::before { content: ''; position: absolute; left: 50%; top: 22px; bottom: 24px; width: 1.5px; margin-left: -.75px; background: #d9d9d9; }
.jr-mid > * { position: relative; z-index: 1; }
.jr-pill { background: #a6a6a6; color: #fff; font-size: 12px; letter-spacing: .9px; padding: 2px 10px; border-radius: 2px; white-space: nowrap; }
.jr-pop { display: flex; gap: 10px; margin-top: 12px; }
.jr-pop > div { display: flex; flex-direction: column; align-items: center; background: #fff; padding: 0 2px 2px; }
.jr-box { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 30px; padding: 0 6px;
  border: 2px solid #404040; border-radius: 4px; font-size: 16px; font-weight: 700; color: #404040; background: #fff; }
.jr-pop .red .jr-box { border-color: #DC4F4C; color: #DC4F4C; }
.jr-pop i { font-style: normal; font-size: 7.5px; letter-spacing: .6px; color: #a6a6a6; text-align: center; margin-top: 3px; line-height: 1.25; display: block; }
.jr-pop i b { display: block; font-size: 8px; color: #404040; white-space: nowrap; }
.jr-pop .red i b { color: #DC4F4C; }
/* CENTERING – MEASUREMENT */
.jr-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.jr-cside, .jr-dside, .jr-eside, .jr-kside { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.jr-dim { display: grid; grid-template-columns: 54px auto 54px; align-items: center; justify-items: center; gap: 4px 6px; }
.jr-dim .t { grid-column: 2; grid-row: 1; }
.jr-dim .l { grid-column: 1; grid-row: 2; justify-self: end; text-align: right; }
.jr-dim .jr-cbox { grid-column: 2; grid-row: 2; }
.jr-dim .r { grid-column: 3; grid-row: 2; justify-self: start; }
.jr-dim .b { grid-column: 2; grid-row: 3; }
.jr-dim > span { font-size: 9px; letter-spacing: .8px; color: #a6a6a6; line-height: 1.3; }
.jr-dim > span b { font-size: 12px; color: #404040; font-weight: 700; margin: 0 2px; }
.jr-cside.back .jr-dim > span b { color: #DC4F4C; }
.jr-cbox { position: relative; overflow: hidden; border: 1.5px solid #404040; border-radius: 6px; background: #f2f2f2; }
.jr-cside.back .jr-cbox { border-color: #DC4F4C; }
.jr-crop { position: absolute; max-width: none; height: auto; display: block; }
.jr-inner { position: absolute; border: 1.5px dashed #404040; }
.jr-cside.back .jr-inner { border-color: #DC4F4C; }
.jr-flab { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11.5px; letter-spacing: .3px; padding: 1px 7px;
  border-radius: 3px; background: rgba(255,255,255,.86); white-space: nowrap; }
.jr-flab.in { top: 6px; color: #404040; }
.jr-flab.out { bottom: 6px; color: #8a8a8a; }
.jr-cside.back .jr-flab.in { color: #DC4F4C; }
.jr-cside.back .jr-flab.out { color: #d9706d; }
.jr-cline { font-size: 11px; letter-spacing: .6px; color: #8a8a8a; margin-top: 6px; }
.jr-cline b { color: #404040; font-size: 12.5px; }
.jr-cline i { font-style: normal; margin: 0 7px; color: #cfcfcf; }
.jr-cos { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; justify-content: center; }
.jr-cos span { font-size: 9.5px; letter-spacing: .6px; color: #8a8a8a; border: 1px solid #d9d9d9; border-radius: 3px; padding: 1px 6px; }
.jr-cos span b { color: #404040; }
.jr-cos span.bl { background: #404040; border-color: #404040; color: #fff; }
.jr-cos span.bl b { color: #fff; }
.jr-cside.back .jr-cos span.bl { background: #DC4F4C; border-color: #DC4F4C; }
/* DEFECT MAP · CORNERS: the card with callout circles */
.jr-dmap, .jr-kmap { position: relative; flex: none; }
.jr-dcard { position: absolute; overflow: hidden; border-radius: 4px; background: #f2f2f2; }
.jr-dside.front .jr-dcard, .jr-kside.front .jr-dcard { box-shadow: 0 0 0 1.5px #404040; }
.jr-dside.back .jr-dcard, .jr-kside.back .jr-dcard { box-shadow: 0 0 0 1.5px #DC4F4C; }
.jr-dlines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.jr-dlines .ld { stroke: #8a8a8a; stroke-width: 1; stroke-dasharray: 1.4 3; stroke-linecap: round; fill: none; }
.jr-dside.back .jr-dlines .ld, .jr-kside.back .jr-dlines .ld { stroke: #e0807d; }
.jr-dlines .pt { stroke: #fff; stroke-width: 1.2; }
.jr-dlines .pt.major, .jr-dlines .pt.back { fill: #DC4F4C; }
.jr-dlines .pt.minor { fill: #e0b64a; }
.jr-dlines .pt.micro { fill: #8a8a8a; }
.jr-dlines .pt.front { fill: #404040; }
.jr-dc { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #404040; display: flex; align-items: center; justify-content: center; background: #e6e6e6; }
.jr-dside.back .jr-dc { border-color: #DC4F4C; }
.jr-dc.major { background: #f4b8b6; }
.jr-dc.minor { background: #FFF4D0; }
.jr-dc.micro { background: #e6e6e6; }
.jr-dc.pic { border-width: 2.5px; }
.jr-dc.pic.major { border-color: #DC4F4C; }
.jr-dc.pic.minor { border-color: #d9b44a; }
.jr-dc.pic.micro { border-color: #9a9a9a; }
.jr-dc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.jr-dc span { font-size: 7.5px; letter-spacing: .4px; color: #404040; }
.jr-dside.back .jr-dc span { color: #DC4F4C; }
.jr-dc i { position: absolute; right: -4px; top: -4px; min-width: 15px; height: 15px; border-radius: 8px; background: #404040; color: #fff; font-style: normal;
  font-size: 8.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.jr-dside.back .jr-dc i { background: #DC4F4C; }
.jr-dnone { position: absolute; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: 1.6px; color: #a6a6a6; }
.jr-dlist { list-style: none; margin: 4px 0 0; padding: 0; width: 336px; columns: 2; column-gap: 12px; font-size: 9px; letter-spacing: .3px; color: #8a8a8a; }
.jr-dlist li { break-inside: avoid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.55; }
.jr-dlist b { display: inline-block; min-width: 14px; color: #404040; }
.jr-dlist em { font-style: normal; font-weight: 700; margin-right: 4px; }
.jr-dlist em.major { color: #DC4F4C; }
.jr-dlist em.minor { color: #b8912a; }
.jr-dlist em.micro { color: #8a8a8a; }
.jr-more { font-size: 9px; color: #a6a6a6; margin-top: 2px; }
.jr-legend { display: flex; justify-content: center; gap: 22px; margin: 4px 0 0; font-size: 10px; letter-spacing: 1.2px; color: #8a8a8a; }
.jr-legend i { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 6px; border: 1px solid #404040; }
.jr-legend i.major { background: #f4b8b6; border-color: #DC4F4C; }
.jr-legend i.minor { background: #FFF4D0; border-color: #d9b44a; }
.jr-legend i.micro { background: #e6e6e6; border-color: #9a9a9a; }
.jr-cc { position: absolute; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 2.5px solid #404040; background: #e6e6e6;
  display: flex; align-items: center; justify-content: center; }
.jr-cc.back { border-color: #DC4F4C; }
.jr-cc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr-cc img.v1 { transform: scale(2.3); }
.jr-cc img.v1.tl { transform-origin: 17% 17%; }
.jr-cc img.v1.tr { transform-origin: 83% 17%; }
.jr-cc img.v1.bl { transform-origin: 17% 83%; }
.jr-cc img.v1.br { transform-origin: 83% 83%; }
.jr-cc span { font-size: 11px; color: #a6a6a6; }
.jr-ccl { position: absolute; width: 120px; text-align: center; line-height: 1.25; }
.jr-ccl b { display: block; font-size: 11px; letter-spacing: .4px; color: #404040; }
.jr-kside.back .jr-ccl b { color: #DC4F4C; }
.jr-ccl span { display: block; font-size: 10px; color: #8a8a8a; }
.jr-ccl em { display: block; font-style: normal; font-size: 8px; color: #a6a6a6; }
/* EDGES – INSPECTION */
.jr-eside { gap: 5px; }
.jr-strip { position: relative; width: 336px; border-radius: 4px; overflow: hidden; border: 1px solid #d9d9d9; background: #f2f2f2; }
.jr-strip img { display: block; width: 100%; height: auto; }
.jr-strip i { position: absolute; left: 5px; top: 4px; font-style: normal; font-size: 8px; letter-spacing: 1.3px; color: #fff;
  background: rgba(64,64,64,.86); padding: 1px 6px; border-radius: 2px; z-index: 1; }
.jr-eside.back .jr-strip i { background: rgba(220,79,76,.92); }
.jr-zoom { position: relative; overflow: hidden; }
.jr-zoom img { transform-origin: 50% 50%; }
.jr-zoom .zoom-tag { position: absolute; top: 6px; right: 6px; }
/* SCORE SHEET + notes */
.jr-sheet { width: 100%; border-collapse: collapse; font-size: 10px; letter-spacing: .3px; color: #404040; line-height: 1.25; }
.jr-sheet th { text-align: left; font-size: 9px; letter-spacing: 1.2px; color: #fff; background: #404040; padding: 3px 8px; font-weight: 600; }
.jr-sheet th.n { text-align: right; }
.jr-sheet th:nth-child(4), .jr-sheet th:nth-child(5) { background: #DC4F4C; }
.jr-sheet td { padding: 1px 8px; border-bottom: 1px solid #efefef; font-variant-numeric: tabular-nums; }
.jr-sheet .n { text-align: right; }
.jr-sheet tr.grp td { font-weight: 700; letter-spacing: 1px; padding-top: 5px; border-bottom: 1px solid #d9d9d9; }
.jr-sheet tr.grp i { font-style: normal; font-weight: 400; color: #8a8a8a; margin-left: 6px; }
.jr-sheet tr.hit td { color: #DC4F4C; }
.jr-sheet tr.sub td { color: #8a8a8a; font-size: 9.5px; }
.jr-sheet tr.tot td { font-weight: 700; font-size: 12px; border-top: 2px solid #404040; padding-top: 5px; }
.jr-notes { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.jr-notes img { width: 70px; height: 70px; border: 1px solid #e3e3e3; border-radius: 4px; flex: none; }
.jr-notes b { font-size: 11px; letter-spacing: .6px; }
.jr-notes p { margin: 4px 0 0; font-size: 9.5px; color: #8a8a8a; line-height: 1.45; }
.jr-notes p.url { color: #404040; }
/* page footer: issue line + the two bars */
.jr-pfoot { position: absolute; left: 44px; right: 44px; bottom: 44px; display: flex; justify-content: space-between; font-size: 8.5px; letter-spacing: 1.4px; color: #a6a6a6; }
.jr-bars { position: absolute; left: 44px; right: 44px; bottom: 22px; display: flex; gap: 38px; }
.jr-bars span { flex: 1; height: 16px; background: #404040; }
.jr-bars span.red { background: #DC4F4C; }
.jr-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #a6a6a6; font-size: 10px; letter-spacing: 1.5px; background: #f2f2f2; }
.jr-noimg.tall { height: 150px; width: 336px; border: 1px dashed #d9d9d9; border-radius: 4px; }
#jr-print { display: none; }
@media print {
  body.print-jobreport > *:not(#jr-print) { display: none !important; }
  body.print-jobreport #jr-print { display: block; }
  #jr-print .jr-page { margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  #jr-print .jr-page:last-child { break-after: auto; page-break-after: auto; }
  #jr-print .jr-zoom img { transform: none !important; }
  #jr-print .zoom-tag { display: none !important; }
}

/* ===== ORDERS page (the library re-based on orders, 2026-09-23; reformatted
   the same day: the page bar is the INSPECT module's red section box laid
   FLAT, customers are full-width sections and every order is a card in an
   auto-fill grid that spreads across the page - never one squeezed column) ===== */
.ord-bar { display: flex; align-items: center; gap: 18px; padding: 9px 16px; margin-bottom: 14px;
  background: linear-gradient(180deg, #7e2c28, #3a1615 55%, #2b1210);
  border: 1px solid var(--accent); border-radius: 6px; }
.ord-bar-counts { margin-left: auto; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #F2D5D3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ord-bar-actions { flex: 0 0 auto; }
.ord-card { background: #171717; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px 12px;
  display: grid; gap: 8px; align-content: start; min-width: 0; }
.ord-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ord-id { font-weight: 700; letter-spacing: 1px; color: var(--accent); font-size: 14px; white-space: nowrap; }
.ord-type { font-size: 10.5px; color: var(--muted); letter-spacing: .5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ord-status { margin-left: auto; flex: 0 0 auto; font-size: 9.5px; letter-spacing: 1.5px; padding: 2px 8px;
  border-radius: 3px; border: 1px solid var(--line); color: #A6A6A6; background: #1b1b1b; }
.ord-status.complete { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
.ord-cust-line { font-size: 12px; color: #D9D9D9; cursor: pointer; }
.ord-cust-line:hover { color: #fff; text-decoration: underline; }
.ord-cust-line.muted { cursor: default; text-decoration: none; }
.ord-jobs { display: grid; gap: 4px; }
.ord-jobs:empty { display: none; }
/* job row = two lines: Job# + level badge, the card name underneath (a
   one-line row squeezed the name to nothing at 1366) */
.ord-job { display: flex; align-items: center; gap: 10px;
  font-size: 12px; padding: 5px 8px; border-radius: 5px; background: #111; border: 1px solid #262626; }
.ord-job-main { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.ord-job b { font-weight: 600; letter-spacing: .8px; white-space: nowrap; color: #F2F2F2; }
.ord-job-main .ord-lvl { justify-self: start; }
.ord-job-name { grid-column: 1 / 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bdbdbd; font-size: 11.5px; }
.ord-lvl { font-style: normal; font-size: 9px; letter-spacing: 1.2px; padding: 2px 7px; border-radius: 3px;
  background: #2a2a2a; color: #bbb; white-space: nowrap; }
.ord-lvl.cen { background: #3a2a10; color: #f0c060; }
.ord-lvl.ins { background: #1f2f4a; color: #8fc4ff; }
.ord-lvl.rep { background: #1d5c2e; color: #bfe6c5; }
.ord-lvl.none { background: #3d1515; color: #f2a5a3; border: 1px solid #7a2c2b; }   /* round 367: a Job# with no record anywhere */
.ord-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.ord-actions .btn { padding: 4px 12px; font-size: 10.5px; letter-spacing: 1px; border-radius: 4px; }
.ord-foot { justify-content: flex-end; margin-top: 2px; }
/* ---- the ORDERS board (2026-09-26): three dividers — IN PROGRESS ·
   COMPLETED · RETURNED — each a scrolling column; order cards drag across ---- */
.ord-board { --sd: 27px; display: grid; gap: 10px; min-height: 0;
  grid-template-columns: var(--sd) minmax(0, 1fr) var(--sd) minmax(0, 1fr) var(--sd) minmax(0, 1fr); }
.ord-board > * { min-height: 0; min-width: 0; }
#view-home .sec-div.blue { background: linear-gradient(180deg, #2a5f9e, #14304f 55%, #0f2238); border-color: #3b82f6; }
.ord-col { display: flex; flex-direction: column; min-height: 0; background: #141414; border: 1px solid var(--line); border-radius: 6px; }
.ord-col.drop { outline: 2px dashed var(--accent); outline-offset: -2px; background: #1c1414; }
.ord-col-head { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; border-bottom: 1px solid #2a2a2a; }
.ord-col-head b { font-weight: 600; font-stretch: semi-condensed; font-size: 13.5px; letter-spacing: 2px; color: #F2F2F2; }
.ord-col-head span { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.ord-col-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 10px; display: grid; gap: 10px; align-content: start; }
.ord-col-empty { font-size: 10.5px; letter-spacing: 1px; color: var(--muted-2); text-align: center; padding: 24px 10px; border: 1px dashed #444; border-radius: 6px; line-height: 1.6; }
.ord-card[draggable="true"] { cursor: grab; }
.ord-card.dragging { opacity: .45; }
.ord-id[data-act] { cursor: pointer; }
.ord-id[data-act]:hover { text-decoration: underline; }
.ord-status.open { background: #3a2a10; border-color: #6b4a14; color: #f0c060; }
.ord-status.returned { background: #1f2f4a; border-color: #2f6fb3; color: #cfe4ff; }
.ord-cust-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 6px; align-items: center; }
/* the Member# (round 259): the plate's gold */
.ord-in.ord-mem { color: #d8c89a; letter-spacing: .2px; text-overflow: clip; }
.ord-in.ord-mem::placeholder { color: #8f8560; letter-spacing: 1px; }
#ord-detail .ord-in.ord-mem { margin-bottom: 6px; }
/* a narrower window: MEMBER# and the name on one line, the email and NOTIFY under them */
@media (max-width: 1700px) {
  #view-home .ord-cust-row { grid-template-columns: 92px minmax(0, 1fr) auto; }
  #view-home .ord-cust-row > [data-f="customer"] { grid-column: 2 / span 2; }
  #view-home .ord-cust-row > [data-f="email"] { grid-column: 1 / span 2; }
}
.od-moverow .od-sel { flex: 1 1 auto; min-width: 0; }
.od-moverow .od-movebtn { flex: 0 0 auto; }
.ord-in { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--jb-font); font-size: 11.5px; color: #eee;
  background: #111; border: 1px solid #333; border-radius: 4px; padding: 4px 7px; }
.ord-in:focus { outline: none; border-color: var(--accent); }
.ord-notify { background: #16324f; border-color: #2f6fb3; color: #cfe4ff; letter-spacing: 1px; font-size: 10px; font-weight: 700; padding: 4px 10px; }
.ord-notify:hover:not(:disabled) { background: #1f4870; color: #fff; }
.ord-notify:disabled { opacity: .45; cursor: default; }
.ord-notified { font-size: 9.5px; letter-spacing: 1px; color: #8fc4ff; text-transform: uppercase; }
.ord-foot { flex-wrap: wrap; }
.ord-foot .ord-del { color: #ffb3ae; }
/* colour families (operator 2026-09-26): BLACKLENS = the dark grey card with
   the red ORDER#; PSA blue + blue; BGS golden + yellow; ARS red + white */
.ord-card.fam-psa { background: #12263d; border-color: #2f6fb3; }
.ord-card.fam-psa .ord-id { color: #8fc4ff; }
.ord-card.fam-psa .ord-in { background: #0c1a2c; border-color: #2a5486; }
.ord-card.fam-bgs { background: #3a2e0c; border-color: #a8862a; }
.ord-card.fam-bgs .ord-id { color: #ffd54a; }
.ord-card.fam-bgs .ord-in { background: #2a2108; border-color: #7a6220; }
.ord-card.fam-bgs .ord-type, .ord-card.fam-bgs .ord-brief { color: #d9c890; }
.ord-card.fam-ars { background: #7a2622; border-color: #c94a45; }
.ord-card.fam-ars .ord-id { color: #fff; }
.ord-card.fam-ars .ord-type, .ord-card.fam-ars .ord-brief, .ord-card.fam-ars .ord-chev { color: #f5d0ce; }
.ord-card.fam-ars .ord-in { background: #4a1512; border-color: #a13a35; }
.ord-card.fam-ars .ord-status.open { background: #5a1c18; border-color: #e0908a; color: #ffe0de; }
.ord-card.fam-ars .ord-job { background: #3f1310; border-color: #6b221e; }
/* collapsible to ONE line: the chevron on the left, the brief fills the line */
.ord-chev { flex: 0 0 auto; background: none; border: none; color: var(--muted-2); cursor: pointer; font: inherit; font-size: 12px;
  padding: 0 2px 0 0; line-height: 1; transition: transform .18s; }
.ord-chev:hover { color: #fff; }
.ord-card.collapsed .ord-chev { transform: rotate(-90deg); }
.ord-card.collapsed > :not(.ord-head) { display: none; }
.ord-card.collapsed { padding: 7px 12px; gap: 0; }
.ord-brief { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: #bdbdbd; letter-spacing: .3px; }
.ord-card.collapsed .ord-brief { display: inline; flex: 1 1 auto; }
.ord-card.collapsed .ord-type { flex: 0 0 auto; }
.ord-fold { margin-left: auto; background: none; border: 1px solid #333; color: var(--muted); font: inherit; font-size: 8.5px; letter-spacing: 1.2px;
  padding: 2px 7px; border-radius: 3px; cursor: pointer; }
.ord-fold:hover { color: #fff; border-color: #555; }
.ord-fold[hidden] { display: none; }
/* the collapsed line (2026-09-27): customer + jobs + agent, no status / type */
.ord-card.collapsed .ord-status, .ord-card.collapsed .ord-gt { display: none; }
.ord-brief.none { opacity: .6; }
.ord-agent { display: none; flex: 0 1 auto; max-width: 170px; min-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 9.5px; letter-spacing: 1px; color: #9a9a9a; }
.ord-card.collapsed .ord-agent { display: inline; }
.ord-agent .lbl { font-weight: 400; }
/* the collapsed line gives the customer the room: tighter gaps, a smaller ORDER# and date */
.ord-card.collapsed .ord-head { gap: 7px; }
.ord-card.collapsed .ord-id { font-size: 13px; letter-spacing: .6px; }
.ord-card.collapsed .ord-type { font-size: 9.5px; }
/* narrow columns (1366 and below): the collapsed line compacts itself —
   smaller ORDER#, no date (the DATE filter has it), the agent without its label */
.ord-col-body { container-type: inline-size; overflow-x: hidden; }
@container (max-width: 470px) {
  .ord-card.collapsed .ord-head { gap: 6px; }
  .ord-card.collapsed .ord-id { font-size: 12.5px; letter-spacing: .4px; }
  .ord-card.collapsed .ord-type { display: none; }
  .ord-card.collapsed .ord-agent { min-width: 30px; max-width: 110px; }
  .ord-card.collapsed .ord-agent .lbl { display: none; }
  .ord-card.collapsed .ord-agent.none { display: none; }   /* no agent recorded: the customer takes the room */
  .ord-card.collapsed .ord-head-del { padding: 2px 5px; letter-spacing: .4px; }
}
.ord-selbar { margin-left: auto; }
.ord-agentline { font-size: 9.5px; letter-spacing: 1px; color: #9a9a9a; }
.ord-card.fam-ars .ord-agent, .ord-card.fam-ars .ord-agentline { color: #f5d0ce; }
.ord-card.fam-bgs .ord-agent, .ord-card.fam-bgs .ord-agentline { color: #d9c890; }
.ord-card.fam-psa .ord-agent, .ord-card.fam-psa .ord-agentline { color: #9fbfe0; }
/* the bar's search + filters */
.ord-bar { flex-wrap: wrap; row-gap: 6px; }
.ord-filters { display: flex; align-items: center; gap: 8px; flex: 1 1 520px; min-width: 0; }
.ord-f { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: 3px 8px; min-width: 0; }
.ord-f:focus-within { border-color: #ffb3ae; }
.ord-f i { font-style: normal; font-size: 8.5px; letter-spacing: 1.3px; color: #F2D5D3; white-space: nowrap; }
.ord-f input, .ord-f select { background: none; border: none; outline: none; color: #fff; font-family: var(--jb-font); font-size: 11.5px; color-scheme: dark; min-width: 0; padding: 1px 0; }
.ord-f select option { background: #2E2E2E; color: #F2F2F2; }
.ord-f.search { flex: 1 1 240px; max-width: 360px; }
.ord-f.search input { width: 100%; }
.ord-f.month { position: relative; }
.ord-mbtn { background: none; border: none; color: #fff; font-family: var(--jb-font); font-size: 11.5px; letter-spacing: 1px; cursor: pointer; padding: 1px 2px; }
.ord-mbtn:hover { color: #ffd9d7; }
.ord-mbtn.on { color: #ffd54a; }
.ord-month-in { position: absolute; left: 40px; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.ord-f.type select { max-width: 190px; cursor: pointer; }
.ord-fx { background: none; border: none; color: #F2D5D3; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.ord-fx:hover { color: #fff; }
.ord-fx[hidden] { display: none; }
/* the bar works the SELECTION (2026-09-26): tick cards, then move / delete them together */
.ord-selbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ord-selbar .btn { padding: 4px 9px; font-size: 9.5px; letter-spacing: 1px; border-radius: 4px; }
.ord-selbar .btn:disabled { opacity: .4; cursor: default; }
.ord-sel-n { font-size: 10px; letter-spacing: 1.5px; color: #F2D5D3; font-variant-numeric: tabular-nums; margin-right: 4px; }
.ord-pick { flex: 0 0 auto; width: 14px; height: 14px; margin: 0 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.ord-card.picked { outline: 2px solid #ffb3ae; outline-offset: -2px; }
.ord-head-del { display: none; flex: 0 0 auto; letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; background: #4a1512; border: 1px solid #a13a35;
  color: #ffd9d7; cursor: pointer; font: inherit; font-size: 9px; }
.ord-card.collapsed .ord-head-del { display: inline-block; }
.ord-head-del:hover { background: #6b1f1c; color: #fff; }
/* UNDO MERGE (round 183) — a merged order's own line under AGENT, in the orders blue */
.ord-mergeline { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 9.5px; letter-spacing: 1.2px; color: #8fb0d2; }
.ord-mergeline > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-undo { margin-left: auto; flex: 0 0 auto; font: inherit; letter-spacing: 1.2px; padding: 3px 9px; border-radius: 4px;
  background: #1c2b3d; border: 1px solid #3f6b9a; color: #d6e6f7; cursor: pointer; }
.ord-undo:hover { background: #28405c; color: #fff; }
.ord-card.collapsed .ord-mergeline { display: none; }

/* ============ SUBMISSION (view-submit) — CARD GRADING SUBMISSION ZONE (2026-09-26) ============
   Three columns on the INSPECT divider schema: the card expanded | the
   search box over a results list that scrolls and keeps loading | the
   LIST CREATOR (blue divider — the mockup's second colour). */
#view-submit { padding: 2px 10px 10px 5px; overflow: auto; --sd: 27px; --sub-c-prev: 330px; --sub-c-list: 460px; font-family: var(--jb-font); }
#view-submit .sec-div.jb-resizable { cursor: col-resize; }
#view-submit .sec-div.jb-resizable:hover { filter: brightness(1.18); }
#view-submit button, #view-submit select, #view-submit input { font-family: var(--jb-font); }
#view-submit [hidden] { display: none !important; }
#view-submit .card-head b { font-size: 14.5px; font-weight: 700; font-stretch: semi-condensed; letter-spacing: .5px; }
.sub-grid { display: grid; gap: 10px; margin-top: 6px; height: calc(100vh - 86px); min-width: 1300px;
  grid-template-columns: var(--sd) var(--sub-c-prev) minmax(520px, 1fr) var(--sd) var(--sub-c-list); }   /* the vars: the dividers drag them */
.sub-grid > * { min-height: 0; min-width: 0; }
.sub-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sub-col > .card { flex: 0 0 auto; padding: 8px 10px; }
.sub-col > .card .card-head { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
#view-submit .sec-div.blue { background: linear-gradient(180deg, #2a5f9e, #14304f 55%, #0f2238); border-color: #3b82f6; }
/* column 1 — the card, expanded */
.sub-prevcard { flex: 1 1 auto !important; min-height: 0; display: flex; flex-direction: column; }
.sub-prevcard .card-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }   /* never scrolls — sizeGrid() fits the picture */
.sub-prevbox { position: relative; width: 100%; aspect-ratio: 5 / 7; max-height: 50vh; margin: 0 auto 8px;
  background: #171717; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sub-prevbox img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sub-prev-empty { font-size: 10.5px; letter-spacing: 1px; color: var(--muted-2); text-align: center; padding: 18px; border: 1px dashed #444; border-radius: 6px; margin: 16px; }
.sub-attrs { width: 100%; border-collapse: collapse; font-size: 11px; }
.sub-attrs th { text-align: left; font-size: 9.5px; letter-spacing: 2px; color: #E8E8E8; background: #3a3a3a; padding: 3px 8px; font-weight: 700; }
.sub-attrs td { padding: 1px 8px; border-bottom: 1px solid #262626; vertical-align: top; line-height: 1.3; }
.sub-attrs td:first-child { color: var(--muted); text-align: right; width: 40%; letter-spacing: .5px; font-size: 10.5px; white-space: nowrap; }
.sub-attrs td:last-child { color: #F2F2F2; word-break: break-word; }
/* column 2 — the search box */
.sub-modes { display: inline-flex; gap: 3px; }
.sub-modes .jb-tab { font-size: 10px; padding: 3px 10px; }
.sub-hint { letter-spacing: 1px; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slabq-fld.blue { background: #16324f; border-color: #2f6fb3; }
.slabq-fld.blue i { color: #9cc4f0; }
.sub-note { margin: 0 0 2px; }
.sub-note:empty { display: none; }
.sub-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin;
  background: #171717; border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.sub-rows { gap: 4px; }
.sub-rows .slabq-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; width: 100%;
  background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 6px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.sub-rows .slabq-row.sel, .sub-rows .slabq-row:hover { background: #262626; border-color: #3a3a3a; }
.sub-rows .slabq-row.listed { border-color: #2a7a3e; }
.sub-rows .slabq-art { width: 40px; height: 56px; }
.sub-rows .slabq-rc b { font-size: 13px; font-weight: 700; }
.sub-rows .slabq-rc b em { font-style: normal; font-size: 10.5px; font-weight: 600; color: #ffdc7a; margin-left: 6px; letter-spacing: .5px; }
.sub-rows .slabq-rc b em.sub-inlist { font-size: 9px; letter-spacing: 1px; color: #bfe6c5; background: #1f3d2a; border: 1px solid #2a7a3e; border-radius: 3px; padding: 0 5px; }
.sub-rows .slabq-rc span { font-size: 11px; }
.sub-rows .slabq-rp { min-width: 110px; }
.sub-add { flex: 0 0 auto; font-size: 9.5px; letter-spacing: 1px; padding: 5px 10px; border-radius: 4px; font-weight: 700; min-width: 96px; }
.slabq-more { text-align: center; font-size: 10px; letter-spacing: 1.5px; color: var(--muted-2); padding: 10px 0 4px; text-transform: uppercase; cursor: pointer; }
.slabq-more.err { color: #ffb3ae; }
/* column 3 — the list creator */
.sub-subm { display: grid; }
.sub-subm .slabq-fld { flex: none; }
.sub-listcard { flex: 1 1 auto !important; min-height: 0; display: flex; flex-direction: column; }
.sub-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 6px;
  background: #171717; border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.sub-list-empty { font-size: 10.5px; letter-spacing: 1px; color: var(--muted-2); text-align: center; padding: 24px 10px; border: 1px dashed #444; border-radius: 6px; }
.sub-item { display: grid; align-items: start;
  background: #5a2321; border: 1px solid #7e2c28; border-radius: 6px; }
.sub-item-meta { min-width: 0; font-size: 11px; color: #f0d0ce; line-height: 1.35; display: flex; flex-direction: column; }
.sub-item-meta .sub-jobid { color: #ffd9d7; letter-spacing: .5px; font-size: 10.5px; }
.sub-item-line { font-size: 10.5px; color: #f0d0ce; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* editable in place: name · number · set look like text until touched */
.sub-ed { font: inherit; font-family: var(--jb-font); color: #fff; background: transparent; border: 1px solid transparent; border-bottom-color: #7e2c28;
  border-radius: 3px; padding: 1px 4px; min-width: 0; width: 100%; }
.sub-ed:hover { border-color: #9a3b37; }
.sub-ed:focus { outline: none; background: #2a0f0e; border-color: #ffb3ae; }
.sub-ed-name { font-weight: 700; }
.sub-ed-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px; }
.sub-ed-num, .sub-ed-set { font-size: 11px; }
.sub-item.filed { background: #1f3d2a; border-color: #2a7a3e; }
.sub-item.filed .sub-ed { border-bottom-color: #2a7a3e; }
.sub-item.filed .sub-ed:focus { background: #14321a; border-color: #8fe0a4; }
.sub-item.filed .sub-item-meta, .sub-item.filed .sub-item-line, .sub-item.filed .sub-jobid { color: #d6f2dc; }
.sub-mini { font: inherit; font-family: var(--jb-font); font-size: 9px; letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; background: #2a2a2a; border: 1px solid #444; color: #ddd; cursor: pointer; }
.sub-mini:hover { background: #3a3a3a; color: #fff; }
.sub-note-btn.has { background: #5c4a16; border-color: #a8862a; color: #ffe6a8; }
.sub-noteed { grid-column: 1 / -1; }
.sub-notearea { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--jb-font); font-size: 11px; color: #fff; background: #2a0f0e;
  border: 1px solid #9a3b37; border-radius: 4px; padding: 4px 6px; resize: vertical; min-height: 40px; }
.sub-orderbtns { display: flex; gap: 6px; margin-top: 2px; }
.sub-orderbtns .btn { flex: 1 1 0; letter-spacing: 1px; font-size: 10px; font-weight: 700; padding: 5px 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* per item (2026-09-26): rarity select · declared GRADED / RAW values · INSPECTION */
.sub-ed-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; align-items: center; }
.sub-ed-rar { font: inherit; font-family: var(--jb-font); font-size: 10.5px; color: #fff; background: #2a0f0e; border: 1px solid #7e2c28; border-radius: 3px; padding: 1px 4px; max-width: 100%; min-width: 0; }
.sub-item.filed .sub-ed-rar { background: #14321a; border-color: #2a7a3e; }
.sub-insp { background: #1f3d2a; border-color: #2a7a3e; color: #dff5e3; }
.sub-insp:hover { background: #2a5a3a; color: #fff; }
/* ---- SUBMISSION compaction (operator 2026-09-26) ---- */
#view-submit .slabq-fld { padding: 3px 9px; gap: 1px; border-radius: 5px; }
#view-submit .slabq-fld i { font-size: 7.5px; letter-spacing: .08em; }
#view-submit .slabq-fld input, #view-submit .slabq-fld select { font-size: 11.5px; padding: 1px 0; }
#view-submit .slabq-fld select { font-size: 11px; }
.sub-imgbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 10px !important;
  background: #16324f; border-color: #2f6fb3; color: #cfe4ff; }
.sub-imgbtn small { font-size: 7.5px; letter-spacing: 1px; color: #8fc4ff; }
.sub-imgbtn:hover { background: #1f4870; color: #fff; }
.sub-imgbtn:disabled { opacity: .5; cursor: default; }
.sub-searchcard.dropping { outline: 2px dashed #3b82f6; outline-offset: -3px; }
.sub-subm { gap: 4px; }
.sub-hint { margin: -2px 0 5px; }
/* the SORT bar over the results */
.sub-sortbar { display: flex; align-items: center; gap: 5px; margin: 0 0 5px; font-size: 9.5px; letter-spacing: 1.5px; color: var(--muted); }
.sub-sortlbl { font-weight: 700; margin-right: 2px; }
.sub-sortbtn { font: inherit; font-family: var(--jb-font); font-size: 9.5px; letter-spacing: 1.2px; font-weight: 700; padding: 3px 9px; border-radius: 4px;
  background: #262626; border: 1px solid #3a3a3a; color: #ddd; cursor: pointer; }
.sub-sortbtn:hover { background: #333; color: #fff; }
.sub-sortbtn.on { background: #7e2c28; border-color: var(--accent); color: #fff; }
.sub-sortbtn:disabled { opacity: .5; cursor: default; }
.sub-sortnote { margin-left: auto; font-size: 9.5px; letter-spacing: 1px; color: var(--muted-2); }
/* compact list items: values inline, one button row, red REMOVE */
.sub-item { grid-template-columns: 44px minmax(0, 1fr); gap: 7px; padding: 5px 7px; }
.sub-item .slabq-art { width: 44px; height: 62px; }
.sub-item-meta { gap: 3px; }
.sub-ed-name { font-size: 12.5px; }
.sub-ed-row3 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.sub-decl-in { display: inline-flex; align-items: center; gap: 4px; }
.sub-decl-in i { font-style: normal; font-size: 8px; letter-spacing: 1px; color: #ffd9d7; white-space: nowrap; }
.sub-decl-in input { width: 68px; box-sizing: border-box; text-align: right; font: inherit; font-family: var(--jb-font); font-size: 10.5px; color: #fff;
  background: #2a0f0e; border: 1px solid #7e2c28; border-radius: 3px; padding: 1px 4px; font-variant-numeric: tabular-nums; }
.sub-decl-in input.auto { color: #ffe6a8; }
.sub-decl-in input:focus { outline: none; border-color: #ffb3ae; }
.sub-item.filed .sub-decl-in input { background: #14321a; border-color: #2a7a3e; }
.sub-item.filed .sub-decl-in i { color: #bfe6c5; }
.sub-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; }
.sub-item-foot .sub-jobid { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-item-btns { display: flex; gap: 4px; flex: 0 0 auto; }
.sub-item-btns .sub-remove { background: #6b1f1c; border-color: #c94a45; color: #ffe0de; }
.sub-item-btns .sub-remove:hover { background: #8a2a25; color: #fff; }
/* ---- SUBMISSION seventh pass (operator 2026-09-27) ---- */
/* button colours: green = create / add / xlsx, grey = load / clear, blue = save, red = pdf */
.btn.btn-green { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
.btn.btn-green:hover:not(:disabled) { background: #24713a; color: #fff; }
.btn.btn-grey { background: #2e2e2e; border-color: #4a4a4a; color: #e0e0e0; }
.btn.btn-grey:hover:not(:disabled) { background: #3a3a3a; color: #fff; }
.btn.btn-red { background: #7e2c28; border-color: #c94a45; color: #ffe0de; }
.btn.btn-red:hover:not(:disabled) { background: #9a3733; color: #fff; }
/* the search grid: two field rows on the left, SEARCH spanning both on the right */
/* the minimums add up to the 520px column floor (398px beside SEARCH) — no overlap when the grid pans */
.sub-go { align-self: stretch; font-size: 12px !important; letter-spacing: 2px !important; padding: 0 8px !important; }
/* IMAGE (beta) as a head tab */
.sub-modes .sub-imgbtn { display: inline-flex; flex-direction: row; align-items: center; padding: 3px 10px !important; margin-left: 6px;
  background: #16324f; border-color: #2f6fb3; color: #cfe4ff; font-size: 10px; letter-spacing: 1px; }
.sub-modes .sub-imgbtn:hover { background: #1f4870; color: #fff; }
/* the Search Results header, the sort bar right-aligned with the ADD TO LIST column */
.sub-reshead { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; padding: 0 2px; }
.sub-reshead b { font-size: 13.5px; font-weight: 700; font-stretch: semi-condensed; letter-spacing: .5px; color: #F2F2F2; }
.sub-reshead .sub-sortbar { margin: 0 0 0 auto; }
.sub-reshead .sub-sortnote { margin: 0 6px 0 0; }
/* customer + email on one line */
.sub-custrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.sub-custrow .slabq-fld { min-width: 0; }
.sub-remove { letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; background: #2a2a2a; border: 1px solid #444; color: #ddd; cursor: pointer; font: inherit; font-size: 9px; }
.sub-remove:hover { background: #3a3a3a; color: #fff; }
.sub-listfoot { display: flex; gap: 6px; margin-top: 6px; }
.sub-listfoot .btn { flex: 1 1 0; letter-spacing: 1px; font-size: 10px; font-weight: 700; padding: 5px 4px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sub-listfoot .sub-compile { flex: 1.5 1 0; }   /* the long label; the buttons never push the column (no side scroll) */
.sub-listfoot .btn:disabled { opacity: .45; cursor: default; }
.sub-compile { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
.sub-compile:hover { background: #24713a; }
.sub-compile:disabled { opacity: .45; cursor: default; }
@media (max-width: 1365px) { #view-submit.active { min-width: 1300px; } }

/* ---- SUBMISSION print sheet (EXPORT PDF, 2026-09-26): a white A4 landscape
   table of the listed cards WITH their notes; on screen it does not exist ---- */
#sub-print { display: none; }
@media print {
  body.printing-submission > *:not(#sub-print) { display: none !important; }
  body.printing-submission #sub-print { display: block; color: #111; background: #fff; font: 10pt/1.35 var(--rep-font); }
  /* the header WRAPS instead of squeezing (2026-09-27, AGENT joined the
     fields): each field keeps its value on one line, and when the row runs
     out of room the fields move under the brand, right-aligned */
  #sub-print .sp-head { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 6px; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #DC4F4C; padding-bottom: 6px; margin-bottom: 10px; }
  #sub-print .sp-brand { font-size: 20pt; letter-spacing: 3px; }
  #sub-print .sp-brand b { font-weight: 800; }
  #sub-print .sp-brand span { font-size: 11pt; letter-spacing: 2px; color: #444; }
  #sub-print .sp-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 16px; row-gap: 4px; margin-left: auto; font-size: 9.5pt; }
  #sub-print .sp-meta i { display: block; font-style: normal; font-size: 7pt; letter-spacing: 1.5px; color: #777; }
  #sub-print .sp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  #sub-print .sp-table th, #sub-print .sp-table td span, #sub-print .sp-meta, #sub-print .sp-foot { font-family: var(--rep-font-sc); font-stretch: semi-condensed; }
  #sub-print .sp-table th { text-align: left; font-size: 8pt; letter-spacing: 1px; color: #fff; background: #404040; padding: 4px 6px; }
  #sub-print .sp-table td { padding: 4px 6px; border-bottom: 1px solid #ddd; vertical-align: top; font-size: 9pt; }
  #sub-print .sp-table td span { color: #555; font-size: 8pt; }
  #sub-print .sp-art img { width: 34px; height: 47px; object-fit: cover; border-radius: 2px; }
  #sub-print .sp-note { white-space: pre-wrap; font-size: 8.5pt; overflow-wrap: anywhere; }
  #sub-print .sp-table td { overflow-wrap: anywhere; }
  #sub-print tr { break-inside: avoid; }
  #sub-print .sp-foot { margin-top: 10px; font-size: 7.5pt; color: #777; text-align: right; }
}

/* ============================================================
   THE PLAN (operator 2026-09-27): four access levels, the new menu,
   BLACKBOARD and BLACKVAULT — every page in Bahnschrift
   ============================================================ */
/* one font family everywhere (Bahnschrift; Barlow stands in on devices
   without it — phones opening BLACKVAULT from the QR) */
body { font-family: var(--rep-font); }
.status-chip { font-family: var(--rep-font); font-variant-numeric: tabular-nums; }

/* ---- the menu: data-roles decides who sees a button (js/app.js applyMenu) ---- */
#sidebar { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
#sidebar::-webkit-scrollbar { display: none; }
#sidebar [hidden] { display: none !important; }
/* INSPECTION's three sub-steps: a tray under the button, one numbered
   step each — 1 CENTERING · 2 MAP INSPECT · 3 REPORTING */
.sb-subs { display: flex; flex-direction: column; gap: 1px; width: 62px; margin: -3px 0 3px; padding: 3px 0;
  background: #161616; border: 1px solid #2c2c2c; border-radius: 9px; }
.sb-sub { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 3px 0 4px;
  background: none; border: none; border-radius: 7px; cursor: pointer; color: var(--muted-2);
  font-family: inherit; font-size: 7px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.sb-sub i { width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 8.5px; background: #2a2a2a; border: 1px solid #454545; color: #bbb; }
.sb-sub:hover { color: var(--text); background: #222; }
.sb-sub.on { color: #fff; background: #2a1817; }
.sb-sub.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
/* a viewer sees BLACKBOARD locked — it asks them to sign up */
.sb-btn.locked { opacity: .72; }
.sb-btn.locked .ico { position: relative; }
.sb-btn.locked .ico::after { content: '\1F512'; position: absolute; right: -7px; bottom: -5px; font-size: 10px; filter: grayscale(1) brightness(1.6); }
.sb-auth .ico { font-size: 14px; }
/* LOGIN / LOGOUT moved into the menu — the topbar button steps aside */
#btn-signout { display: none !important; }
/* the stage / scope chips mean nothing to a customer or a viewer */
.viewer-mode #stage-chip, .viewer-mode #scope-chip, .customer-mode #stage-chip, .customer-mode #scope-chip { display: none !important; }
@media (max-height: 820px) {
  .sb-btn { padding: 6px 2px; gap: 3px; }
  .sb-btn .ico { width: 26px; height: 26px; }
  .sb-logo { margin-bottom: 8px; }
}
/* the A4 view (a v2/v3 INSPECTION REPORT) links back to its BLACKVAULT carousel */
.rp-wrap:not(.jr-mode) .rp-vault { display: none; }
.rp-wrap.jr-mode .rp-actions a.rp-vault { display: inline-block; }

/* ============ BLACKVAULT (view-vault) ============ */
#view-vault.active { display: flex; flex-direction: column; gap: 8px; padding: 8px 14px 10px; overflow: hidden; min-height: 0; }
#view-vault, #view-vault button, #view-vault input { font-family: var(--rep-font); }
.bv-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 6px; padding: 7px 12px;
  border-radius: 6px; background: linear-gradient(180deg, #5e4b1c, #2f2610 60%, #231c0b); border: 1px solid #c9a83c; }
#view-vault.bv-jobmode .bv-bar { background: linear-gradient(180deg, #7e2c28, #3a1615 55%, #2b1210); border-color: var(--accent); }
.bv-brand { font-size: 17px; letter-spacing: 3px; color: #f4e7c0; white-space: nowrap; }
.bv-brand b { font-weight: 800; color: #fff; }
.bv-brand .bv-sub { margin-left: 12px; font-size: 9px; letter-spacing: 2.2px; color: #d9c890; }
#view-vault.bv-jobmode .bv-brand .bv-sub { color: #F2D5D3; }
.bv-find { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bv-find[hidden], .bv-jobbar[hidden] { display: none; }
.bv-f { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.22); border-radius: 5px; padding: 2px 10px; }
.bv-f:focus-within { border-color: #f4e7c0; }
.bv-f i { font-style: normal; font-size: 8.5px; letter-spacing: 1.4px; color: #e8d9a8; }
.bv-f input { background: none; border: none; outline: none; color: #fff; font-size: 13px; letter-spacing: 1.2px; width: 170px; padding: 4px 0; }
.bv-btn { padding: 5px 12px; font-size: calc(10.5px + var(--bv-up)); letter-spacing: 1.2px; border-radius: 4px; font-weight: 700; }
.bv-btn.red { background: linear-gradient(180deg, #e25a57, #b03835); border-color: #932c29; color: #fff; }
.bv-btn.green { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
.bv-btn.blue { background: #16324f; border-color: #2f6fb3; color: #cfe4ff; }
.bv-btn:disabled { opacity: .42; cursor: default; }
.bv-jobbar { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.bv-jstate { display: flex; align-items: baseline; gap: 8px; margin-right: 6px; font-size: calc(11px + var(--bv-up)); letter-spacing: 1px; color: #F2D5D3; }
.bv-jstate b { font-size: calc(13px + var(--bv-up2)); color: #fff; letter-spacing: 1.2px; }
.bv-jstate em { font-style: normal; font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.4px; padding: 2px 8px; border-radius: 3px; }
.bv-jstate em.pre { background: #4a3a10; color: #f0c060; }
.bv-jstate em.ok { background: #1d5c2e; color: #dff5e3; }
.bv-jstate em.loc { background: #1f2f4a; color: #cfe4ff; }
.bv-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.bv-rec { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
/* the hero line: the card · VERIFIED + Job# · the grade slab · BLACKSCORE */
.bv-hero { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 8px 12px; min-width: 0;
  background: #1b1b1b; border: 1px solid var(--line); border-radius: 6px; }
.bv-thumb { flex: 0 0 auto; border-radius: 3px; overflow: hidden; background: #111; border: 1px solid #333;
  display: flex; align-items: center; justify-content: center; color: #555; }
.bv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bv-idcol { flex: 1 1 auto; min-width: 0; }
.bv-name { font-weight: 700; letter-spacing: .5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.bv-native { color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-meta { color: #A6A6A6; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-meta b { color: #F2F2F2; font-weight: 600; }
.bv-meta i { font-style: normal; color: #555; }
.bv-ver { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bv-ver b { font-size: calc(14.5px + var(--bv-up2)); letter-spacing: 1.2px; color: #fff; }
.bv-ver i { font-style: normal; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.3px; color: var(--muted); }
.bv-seal { font-size: calc(9px + var(--bv-up)); letter-spacing: 1.6px; padding: 2px 8px; border-radius: 3px; font-weight: 700; }
.bv-seal.ok { background: #1d5c2e; color: #dff5e3; border: 1px solid #2a7a3e; }
.bv-seal.loc { background: #1f2f4a; color: #cfe4ff; border: 1px solid #2f6fb3; }
.bv-seal.pre { background: #4a3a10; color: #f0c060; border: 1px solid #6b5320; }
.bv-gradebox { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; border-left: 1px solid #333; }
.bv-slabimg { height: 60px; width: auto; display: block; }
.bv-gradebox b { display: block; font-size: 30px; line-height: 1; color: #fff; font-weight: 700; }
.bv-gradebox i { font-style: normal; font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.5px; color: #d9c890; }
.bv-scorebox { flex: 0 0 auto; background: linear-gradient(180deg, #e25a57, #9e302d); border: 1px solid #c94a45; border-radius: 5px; text-align: center; }
.bv-scorebox b { display: block; color: #fff; }
.bv-scorebox i { font-style: normal; color: #ffe0de; line-height: 1.2; display: block; }
.bv-acts { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.bv-acts:empty { display: none; }
.bv-acts .sm { display: none; }
@media (max-width: 760px) { .bv-acts .sm { display: inline; } }
/* the section tabs + arrows */
.bv-tabs { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.bv-tablist { flex: 1 1 auto; display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bv-tablist::-webkit-scrollbar { display: none; }
.bv-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 8px;
  background: #1b1b1b; border: 1px solid #333; border-radius: 4px; color: #A6A6A6; font-size: calc(12px + var(--bv-up)); letter-spacing: 2.2px; cursor: pointer; white-space: nowrap; }
.bv-tab i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #2c2c2c; font-size: calc(10px + var(--bv-up)); letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; }
.bv-tab:hover { color: #fff; border-color: #555; }
.bv-tab.on { background: linear-gradient(180deg, #7e2c28, #3a1615); border-color: var(--accent); color: #fff; }
.bv-tab.on i { background: var(--accent); color: #fff; }
.bv-arrow { flex: 0 0 auto; width: 36px; height: 33px; border-radius: 4px; background: #1b1b1b; border: 1px solid #333; color: #ddd; cursor: pointer; font-size: calc(12px + var(--bv-up)); }
.bv-arrow:hover:not(:disabled) { border-color: #777; color: #fff; }
.bv-arrow:disabled { opacity: .28; cursor: default; }
.bv-sideseg { display: none; }
.bv-dots { flex: 0 0 auto; display: flex; justify-content: center; gap: 9px; }
.bv-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid #666; background: none; cursor: pointer; }
.bv-dot.on { background: var(--accent); border-color: var(--accent); }
/* the carousel: one slide per section, the track slides sideways */
.bv-stage { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bv-track { display: flex; height: 100%; transition: transform .38s cubic-bezier(.2, .75, .2, 1); will-change: transform; }
.bv-slide { flex: 0 0 100%; height: 100%; min-width: 0; padding: 0 1px; }
.bv-cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; height: 100%; }
.bv-cols3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px) minmax(0, 1fr); gap: 10px; height: 100%; }
.bv-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; gap: 8px; padding: 8px;
  background: #1b1b1b; border: 1px solid var(--line); border-radius: 6px; }
.bv-side.front { border-top: 3px solid #6a6a6a; }
.bv-side.back { border-top: 3px solid var(--accent); }
.bv-phead { flex: 0 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bv-phead b { font-size: calc(12.5px + var(--bv-up)); font-weight: 600; letter-spacing: 2px; color: #F2F2F2; }
.bv-phead span { font-size: calc(10px + var(--bv-up)); color: var(--muted); letter-spacing: 1px; }
/* a zoom cell: the picture fitted inside (container units keep its aspect),
   zoomed / panned by transforming .bv-zin */
.bv-zc { position: relative; overflow: hidden; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center;
  background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 4px; container-type: size; touch-action: none; cursor: zoom-in; }
.bv-zc.zoomed { cursor: grab; }
.bv-zin { position: relative; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; }
.bv-zin[style*="--ar"] { width: min(100cqw, calc(100cqh * var(--ar))); height: min(100cqh, calc(100cqw / var(--ar))); }
.bv-zin img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.bv-grow { flex: 1 1 auto; }
.bv-none { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: calc(11px + var(--bv-up)); letter-spacing: 2px; color: #666; }
.bv-zc.noimg { cursor: default; }
.bv-zc.noimg .bv-none { display: flex; }
.bv-zc.noimg .bv-zin { visibility: hidden; }
.bv-zc.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 2px solid #444; border-top-color: #c9a83c; animation: bv-spin .8s linear infinite; }
@keyframes bv-spin { to { transform: rotate(360deg); } }
.bv-zc .zoom-tag { z-index: 6; }
/* 1 SUMMARY */
.bv-sumcard { overflow-y: auto; scrollbar-width: thin; }
.bv-sumtop { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; }
.bv-slabbig { height: 150px; width: auto; display: block; }
.bv-slabbig.empty { width: 100px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #555; border: 1px dashed #444; border-radius: 6px; }
.bv-sumg b { display: block; font-size: 46px; line-height: 1; color: #fff; font-weight: 700; }
.bv-sumg i { display: block; font-style: normal; font-size: calc(12px + var(--bv-up)); letter-spacing: 2px; color: #d9c890; margin-top: 2px; }
.bv-bs { display: block; margin-top: 10px; font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.2px; color: var(--muted); }
.bv-bs b { display: inline; font-size: calc(21px + var(--bv-up2)); color: #ff8a87; }
.bv-ptable { width: 100%; border-collapse: collapse; font-size: calc(12px + var(--bv-up)); }
.bv-ptable th { font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.5px; color: var(--muted); text-align: left; padding: 4px 6px; border-bottom: 1px solid #3a3a3a; font-weight: 600; }
.bv-ptable td { padding: 5px 6px; border-bottom: 1px solid #242424; color: #ddd; letter-spacing: .6px; }
.bv-ptable td.g { font-size: calc(16px + var(--bv-up2)); font-weight: 700; color: #fff; }
.bv-ptable td.s i { font-style: normal; color: #777; font-size: calc(10px + var(--bv-up)); }
.bv-ptable td.l.red { color: #ff8a87; }
.bv-popgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bv-popgrid div { background: #141414; border: 1px solid #2a2a2a; border-radius: 4px; padding: 6px 4px; text-align: center; }
.bv-popgrid b { display: block; font-size: calc(21px + var(--bv-up2)); color: #fff; line-height: 1.15; }
.bv-popgrid i { display: block; font-style: normal; font-size: calc(8.5px + var(--bv-up)); letter-spacing: 1.2px; color: var(--muted); line-height: 1.3; }
/* 2 CENTERING: the card inside its outer frame, border widths hugging it */
.bv-cent { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; --mmr: 150px; }
.bv-cent .bv-cbox { flex: 1 1 auto; width: 100%; }
.bv-cbox .bv-zin.bv-clip { width: min(calc(100cqw - var(--mmr)), calc(100cqh * var(--ar))); height: min(100cqh, calc((100cqw - var(--mmr)) / var(--ar))); }
.bv-cbox .bv-mm.l, .bv-cbox .bv-mm.r { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; pointer-events: none; transition: opacity .15s; }
.bv-cbox .bv-mm.l { right: calc(50% + min(calc(100cqw - var(--mmr)), calc(100cqh * var(--ar))) / 2 + 10px); text-align: right; }
.bv-cbox .bv-mm.r { left: calc(50% + min(calc(100cqw - var(--mmr)), calc(100cqh * var(--ar))) / 2 + 10px); text-align: left; }
.bv-zc.zoomed .bv-mm { opacity: 0; }
.bv-mm { font-size: calc(10px + var(--bv-up)); letter-spacing: 1.5px; color: var(--muted); text-align: center; line-height: 1.3; }
.bv-mm b { font-size: calc(17px + var(--bv-up2)); color: #fff; letter-spacing: .5px; font-weight: 700; }
.bv-cbox { background: #0d0d0d; }
.bv-zin.bv-clip { overflow: hidden; outline: 2px solid #39c6ff; outline-offset: -2px; }
.bv-zin img.bv-crop { position: absolute; max-width: none; height: auto; object-fit: fill; }
.bv-inner { position: absolute; border: 2px dashed #ffd54a; box-shadow: 0 0 0 1px rgba(0,0,0,.45); pointer-events: none; }
.bv-inner em, .bv-outer { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.2px;
  background: rgba(0,0,0,.7); padding: 1px 7px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.bv-inner em { top: 5px; color: #ffd54a; }
.bv-outer { bottom: 5px; color: #7fdcff; }
.bv-cstats { flex: 0 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; font-size: calc(11px + var(--bv-up)); letter-spacing: 1.5px; color: var(--muted); }
.bv-cstats b { font-size: calc(18px + var(--bv-up2)); color: #fff; letter-spacing: .5px; }
.bv-cos { flex: 0 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.bv-cos span { font-size: calc(10px + var(--bv-up)); letter-spacing: 1.2px; padding: 3px 9px; border-radius: 3px; background: #262626; border: 1px solid #3a3a3a; color: #bbb; }
.bv-cos span b { color: #fff; font-size: calc(12.5px + var(--bv-up)); margin-left: 3px; }
.bv-cos span.bl { background: #3a1615; border-color: var(--accent); color: #F2D9D9; }
/* 3 CORNERS: a square block of four tiles, the readings + sheet beside it */
.bv-cwrap { flex: 1 1 auto; min-height: 0; container-type: size; display: flex; gap: 8px; }
.bv-cgrid { flex: 0 0 auto; width: min(100cqh, calc(100cqw - 214px)); height: min(100cqh, calc(100cqw - 214px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.bv-cside { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; }
.bv-cside .bv-reads { grid-template-columns: minmax(0, 1fr); }
.bv-clab { position: absolute; left: 6px; bottom: 6px; display: flex; flex-direction: column; font-style: normal; font-size: calc(10px + var(--bv-up)); letter-spacing: 1px;
  background: rgba(8,8,8,.75); color: #9fd89f; padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.bv-clab b { color: #eee; }
.bv-reads { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bv-reads span { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 4px 7px; font-size: calc(11.5px + var(--bv-up)); color: #eee;
  background: #141414; border: 1px solid #2a2a2a; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-reads span b { font-size: calc(9px + var(--bv-up)); letter-spacing: 1.5px; color: var(--muted); }
.bv-reads span i { font-style: normal; font-size: calc(9px + var(--bv-up)); color: #9fd89f; }
/* the INSPECTION sheet of the section, per side */
.bv-ded { flex: 0 0 auto; width: 100%; border-collapse: collapse; font-size: calc(11px + var(--bv-up)); }
.bv-ded th { text-align: left; font-size: calc(10px + var(--bv-up)); letter-spacing: 1.5px; color: #F2F2F2; font-weight: 600; padding: 3px 6px; border-bottom: 1px solid #3a3a3a; }
.bv-ded td { padding: 2px 6px; color: #8a8a8a; border-bottom: 1px solid #222; }
.bv-ded tr.hit td { color: #ffd9d7; }
.bv-ded .n { text-align: right; font-variant-numeric: tabular-nums; }
/* 4 EDGES */
.bv-strips { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bv-strip { position: relative; min-height: 0; display: flex; }
.bv-strip > .bv-zc { flex: 1 1 auto; }
.bv-chip { position: absolute; left: 6px; top: 6px; z-index: 5; font-style: normal; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.5px;
  background: rgba(0,0,0,.72); color: #fff; padding: 1px 8px; border-radius: 3px; pointer-events: none; }
/* 5 SURFACE: the defect map + the list */
.bv-surf { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(200px, 1fr); gap: 8px; }
.bv-dcol { min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; touch-action: pan-y; }
.bv-dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.bv-dlist li { display: flex; gap: 9px; align-items: center; padding: 4px 6px 4px 4px; background: #141414; border: 1px solid #2a2a2a; border-radius: 4px; cursor: pointer; }
.bv-dlist li:hover { border-color: #555; }
.bv-dlist li > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; font-size: calc(11px + var(--bv-up)); color: #ccc; }
.bv-dlist li > div b { font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.2px; color: #eee; font-weight: 600; }
.bv-dlist li > div span { flex: 1 1 100%; font-size: calc(10.5px + var(--bv-up)); color: var(--muted); }
.bv-dlist em { font-style: normal; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.2px; padding: 1px 6px; border-radius: 3px; }
.bv-dlist em.major { background: #DC4F4C; color: #fff; }
.bv-dlist em.minor { background: #FFEEB7; color: #3a2a00; }
.bv-dlist em.micro { background: #444; color: #ddd; }
.bv-def { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border: 2px solid #888; background: #0d0d0d; cursor: zoom-in; }
.bv-def img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bv-def.major { border-color: #DC4F4C; }
.bv-def.minor { border-color: #FFD54A; }
.bv-def.micro { border-color: #9a9a9a; }
.bv-def.noimg { cursor: default; }
.bv-def i { position: absolute; right: -4px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%; background: #111; border: 1px solid #666;
  color: #fff; font-style: normal; font-size: calc(10px + var(--bv-up)); display: flex; align-items: center; justify-content: center; }
.bv-nodef { font-size: calc(11px + var(--bv-up)); letter-spacing: 1.5px; color: #777; text-align: center; padding: 22px 8px; border: 1px dashed #3a3a3a; border-radius: 5px; }
.bv-mk { position: absolute; width: 20px; height: 20px; transform: translate(-50%, -50%); border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6); color: #fff; font-size: calc(10px + var(--bv-up)); font-weight: 700; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.bv-mk.major { background: #DC4F4C; }
.bv-mk.minor { background: #c9960f; }
.bv-mk.micro { background: #666; }
.bv-mk.hot { outline: 3px solid #39FF14; outline-offset: 1px; }
/* the landing card */
.bv-landing { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 0; overflow-y: auto; }
.bv-lcard { max-width: 660px; text-align: center; }
.bv-lmark { font-size: 56px; letter-spacing: 9px; color: #f4e7c0; line-height: 1; }
.bv-lmark b { color: #fff; font-weight: 800; }
.bv-lsub { font-size: 12px; letter-spacing: 7px; color: #c9a83c; margin-top: 8px; }
.bv-lcard p { margin: 24px 0 20px; font-size: 14px; line-height: 1.75; color: #cfcfcf; }
.bv-lcard p b { color: #fff; letter-spacing: 1px; }
.bv-lsteps { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 10.5px; letter-spacing: 1.5px; color: #bbb; }
.bv-lsteps i { font-style: normal; display: inline-flex; width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; background: #c9a83c; color: #231c0b;
  align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.bv-recent { margin-top: 28px; }
.bv-recent > b { font-size: 9.5px; letter-spacing: 2px; color: var(--muted); font-weight: 600; }
.bv-recent > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 9px; }
.bv-rchip { background: #1b1b1b; border: 1px solid #3a3a3a; color: #bbb; border-radius: 4px; padding: 5px 11px; font-size: 11px; cursor: pointer; }
.bv-rchip:hover { border-color: #c9a83c; color: #fff; }
.bv-rchip b { color: #fff; margin-right: 7px; letter-spacing: 1px; }
.bv-miss b { font-size: 16px; color: #fff; letter-spacing: .6px; }
.bv-miss p { font-size: 13px; color: #bbb; line-height: 1.7; margin-top: 10px; }
.bv-spin { width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid #333; border-top-color: #c9a83c; animation: bv-spin .8s linear infinite; }
/* the QR scanner + the defect lightbox */
.bv-scanner, .bv-lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.84); }
.bv-scanner[hidden], .bv-lightbox[hidden] { display: none; }
.bv-scanwin { position: relative; width: min(92vw, 520px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bv-scanwin video { width: 100%; border-radius: 8px; background: #000; display: block; }
.bv-scanframe { position: absolute; top: 8%; left: 50%; width: 56%; aspect-ratio: 1; transform: translateX(-50%); border: 3px solid #c9a83c; border-radius: 14px; pointer-events: none; }
.bv-scanhint { font-size: 12.5px; letter-spacing: 1px; color: #eee; text-align: center; }
.bv-lbwin { width: min(92vw, 920px); height: min(86vh, 920px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bv-lbcell { width: 100%; flex: 1 1 auto; }
/* phones: one side at a time (the FRONT / BACK switch), swipe for sections */
@media (max-width: 760px) {
  #view-vault.active { padding: 6px 8px 8px; gap: 6px; }
  .bv-bar { padding: 6px 8px; gap: 8px; }
  .bv-brand { font-size: 15px; }
  .bv-brand .bv-sub { display: none; }
  .bv-find { margin-left: 0; flex: 1 1 100%; }
  .bv-f { flex: 1 1 auto; }
  .bv-f input { width: 100%; }
  .bv-jobbar { margin-left: 0; }
  /* the hero in two rows: the card, then VERIFIED · grade · BLACKSCORE · link */
  .bv-hero { flex-wrap: wrap; gap: 6px 8px; padding: 6px 8px; }
  .bv-idcol { flex: 1 1 calc(100% - 44px); }
  .bv-native { display: none; }
  .bv-ver { flex: 1 1 auto; align-items: flex-start; gap: 2px; }
  .bv-ver b { font-size: calc(12px + var(--bv-up)); }
  .bv-ver i { display: none; }
  .bv-gradebox { border-left: 0; gap: 5px; }
  .bv-slabimg { height: 36px; }
  .bv-gradebox b { font-size: calc(20px + var(--bv-up2)); }
  .bv-gradebox i { font-size: calc(7.5px + var(--bv-up)); letter-spacing: 1px; }
  .bv-acts { flex-direction: row; }
  .bv-acts [data-act="a4"] { display: none; }
  .bv-acts .bv-btn { padding: 4px 7px; font-size: calc(9px + var(--bv-up)); }
  .bv-acts .lg { display: none; }
  /* the summary card fits the phone without scrolling */
  .bv-sumtop { gap: 10px; }
  .bv-popgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .bv-popgrid b { font-size: calc(15px + var(--bv-up2)); }
  .bv-popgrid i { font-size: calc(6.5px + var(--bv-up)); letter-spacing: .6px; }
  .bv-ptable td { padding: 3px 5px; }
  .bv-arrow { display: none; }
  .bv-tab { font-size: calc(10px + var(--bv-up)); letter-spacing: 1px; padding: 6px 3px; }
  .bv-tab i { display: none; }
  .bv-sideseg { display: flex; flex: 0 0 auto; gap: 2px; }
  .bv-sideseg button { background: #1b1b1b; border: 1px solid #333; color: #999; font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1px; padding: 6px 7px; border-radius: 4px; cursor: pointer; }
  .bv-sideseg button.on { background: #3a1615; border-color: var(--accent); color: #fff; }
  .bv-cols2, .bv-cols3 { grid-template-columns: minmax(0, 1fr); }
  .bv-stage[data-side="front"] .bv-side.back, .bv-stage[data-side="back"] .bv-side.front { display: none; }
  .bv-cols3 > .bv-side { display: none !important; }   /* SUMMARY on a phone = the grade breakdown; the pictures are one swipe on */
  .bv-slabbig { height: 84px; }
  .bv-sumg b { font-size: 32px; }
  .bv-surf { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); }
  .bv-cwrap { flex-direction: column; }
  .bv-cgrid { align-self: center; width: min(100cqw, calc(100cqh - 150px)); height: min(100cqw, calc(100cqh - 150px)); }
  .bv-cside .bv-reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bv-cent { --mmr: 96px; }
  .bv-mm b { font-size: calc(14px + var(--bv-up2)); }
  .bv-lmark { font-size: 38px; letter-spacing: 6px; }
}

/* ============ BLACKBOARD (view-board) ============ */
#view-board.active { display: block; padding: 8px 14px 10px; overflow: hidden; }
#view-board, #view-board button, #view-board input, #view-board select { font-family: var(--rep-font); }
.bb-bar { margin-bottom: 8px; background: linear-gradient(180deg, #3d3d3d, #232323 60%, #1a1a1a); border-color: #8a8a8a; }
.bb-bar .ord-f { border-color: rgba(255,255,255,.18); }
.bb-bar .ord-f i { color: #d9d9d9; }
.bb-bar .ord-f:focus-within { border-color: #ffb3ae; }
.bb-bar .bb-counts { color: #d9d9d9; }
.bb-filters { flex: 1 1 640px; flex-wrap: wrap; row-gap: 6px; }
.bb-filters select { max-width: 150px; cursor: pointer; }
.bb-tabs { display: none; }
.bb-grid { --sd: 27px; display: grid; gap: 10px; min-height: 0;
  grid-template-columns: var(--sd) minmax(0, 1fr) var(--sd) minmax(0, 1.08fr) var(--sd) minmax(0, 1.12fr); }
.bb-grid > * { min-height: 0; min-width: 0; }
#view-board .sec-div {
  background: linear-gradient(180deg, #7e2c28, #3a1615 55%, #2b1210); border: 1px solid var(--accent); border-radius: 6px; box-shadow: none; align-items: flex-end; }
#view-board .sec-div::before { display: none; }
#view-board .sec-div::after { content: attr(data-sec); font-family: Bahnschrift, 'Franklin Gothic Medium', 'Segoe UI', Arial, sans-serif;
  font-weight: 400; font-stretch: semi-condensed; font-size: 14.5px; letter-spacing: .5em; color: #E8E8E8; background: transparent; text-shadow: none; padding: 14px 0; }
#view-board .sec-div.gold { background: linear-gradient(180deg, #6b5a26, #3a2f12 55%, #2a220c); border-color: #c9a83c; }
#view-board .sec-div.blue { background: linear-gradient(180deg, #2a5f9e, #14304f 55%, #0f2238); border-color: #3b82f6; }
.bb-col { display: flex; flex-direction: column; min-height: 0; background: #141414; border: 1px solid var(--line); border-radius: 6px; }
.bb-colhead { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; border-bottom: 1px solid #2a2a2a; }
.bb-colhead b { font-weight: 600; font-stretch: semi-condensed; font-size: 13.5px; letter-spacing: 2px; color: #F2F2F2; }
.bb-colhead span { margin-left: auto; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.bb-colbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 10px; }
.bb-empty { font-size: 11px; letter-spacing: .8px; color: var(--muted-2); text-align: center; padding: 26px 14px; border: 1px dashed #444; border-radius: 6px; line-height: 1.7; }
.bb-empty b { display: block; color: #ddd; font-size: 13px; letter-spacing: 1px; margin-bottom: 4px; }
/* the directory: a group per card name · year · language, its exact printings under it */
.bb-all { width: 100%; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding: 8px 11px;
  background: #1b1b1b; border: 1px solid #333; border-radius: 5px; color: #ddd; cursor: pointer; }
.bb-all b { font-size: 11.5px; letter-spacing: 2px; font-weight: 600; }
.bb-all span { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.bb-all:hover, .bb-grphead:hover, .bb-card:hover { background: #222; }
.bb-all.on, .bb-grp.on > .bb-grphead, .bb-card.on { outline: 2px solid var(--accent); outline-offset: -2px; background: #221716; }
.bb-grp { margin-bottom: 8px; background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 6px; overflow: hidden; }
.bb-grphead { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: none; border: none; color: inherit; cursor: pointer; text-align: left; }
.bb-thumb { flex: 0 0 auto; width: 36px; height: 50px; border-radius: 3px; overflow: hidden; background: #0d0d0d; border: 1px solid #333;
  display: flex; align-items: center; justify-content: center; color: #555; }
.bb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-thumb i { font-style: normal; }
.bb-thumb.big { width: 96px; height: 134px; border-radius: 5px; }
.bb-thumb.row { width: 26px; height: 36px; }
.bb-gname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bb-gname b { font-size: 13.5px; font-weight: 600; letter-spacing: .4px; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-gname i { font-style: normal; font-size: 11px; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-gname em { font-style: normal; font-size: 9.5px; letter-spacing: 1.2px; color: var(--muted); }
.bb-gstat { flex: 0 0 auto; min-width: 40px; display: flex; flex-direction: column; align-items: center; }
.bb-gstat b { font-size: 17px; line-height: 1.1; color: #fff; }
.bb-gstat i { font-style: normal; font-size: 8px; letter-spacing: 1.2px; color: var(--muted); }
.bb-gstat.top b { color: #ff8a87; }
.bb-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: #262626; border-top: 1px solid #2a2a2a; }   /* minmax: a long line ellipsises instead of widening the grid (a phone cut off TOP) */
.bb-card { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 56px; background: #161616; border: none; color: inherit; cursor: pointer; text-align: left; }
.bb-cmeta { flex: 1 1 auto; min-width: 0; font-size: 11px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-cstat { flex: 0 0 auto; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.bb-cstat b { margin-left: 2px; font-size: 12px; color: #fff; }
.bb-cstat.top b { color: #ff8a87; }
/* the population report */
.bb-phero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bb-phero.all { flex-direction: column; align-items: flex-start; gap: 5px; }
.bb-bigmark { font-size: 32px; letter-spacing: 7px; color: #cfcfcf; line-height: 1; }
.bb-bigmark b { color: #fff; font-weight: 800; }
.bb-pname { font-size: 20px; font-weight: 700; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.bb-pnative { font-size: 13px; color: #bdbdbd; }
.bb-pmeta { font-size: 11px; color: var(--muted); letter-spacing: .6px; margin-top: 3px; }
.bb-pmeta b { color: #eee; font-weight: 600; }
.bb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.bb-stats div { background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 5px; padding: 8px 4px; text-align: center; }
.bb-stats b { display: block; font-size: 22px; line-height: 1.1; color: #fff; }
.bb-stats i { display: block; margin-top: 3px; font-style: normal; font-size: 8px; letter-spacing: 1.2px; line-height: 1.3; color: var(--muted); }
.bb-stats .gold b { color: #ffd54a; }
.bb-sec { margin: 6px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #333; font-size: 10px; letter-spacing: 2.4px; color: #F2F2F2; }
.bb-dist { display: grid; gap: 5px; margin-bottom: 14px; }
.bb-dbar { display: grid; grid-template-columns: 34px minmax(60px, 96px) minmax(0, 1fr) 30px 38px; align-items: center; gap: 8px; font-size: 11px; }
.bb-dbar .g { font-size: 14px; font-weight: 700; color: #fff; text-align: right; }
.bb-dbar .nm { font-size: 9px; letter-spacing: 1px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-dbar .track { height: 12px; background: #111; border: 1px solid #2a2a2a; border-radius: 2px; overflow: hidden; }
.bb-dbar .track i { display: block; height: 100%; background: linear-gradient(90deg, #7e2c28, #DC4F4C); }
.bb-dbar > b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.bb-dbar > em { font-style: normal; text-align: right; font-size: 10px; color: var(--muted); }
.bb-dbar.zero { opacity: .42; }
.bb-pills { display: grid; gap: 6px; }
.bb-pills div { background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 5px; text-align: center; }
.bb-pills i { display: block; font-style: normal; font-size: 8.5px; letter-spacing: 1.3px; color: var(--muted); }
.bb-pills b { font-size: 19px; color: #fff; }
/* the leaderboard: the first three rows in gold · silver · bronze (round 236: the colour says the rank, no number) */
.bb-row { width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 5px; padding: 7px 10px;
  background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 5px; color: inherit; cursor: pointer; text-align: left; }
.bb-row:hover { border-color: #555; background: #202020; }
.bb-row.gold { border-color: #c9a227; background: linear-gradient(90deg, #4f3d10, #2b230e); }
.bb-row.silver { border-color: #aeb4ba; background: linear-gradient(90deg, #4a4e54, #27292d); }
.bb-row.bronze { border-color: #b5733d; background: linear-gradient(90deg, #4f2f19, #2a1b12); }
.bb-row.gold:hover, .bb-row.silver:hover, .bb-row.bronze:hover { filter: brightness(1.14); }
.bb-rmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bb-rmain b { font-size: 12.5px; letter-spacing: .5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-rmain i { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-rp { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, auto); gap: 0 8px; font-size: 8.5px; letter-spacing: .8px; color: var(--muted); }
.bb-rp i { font-style: normal; white-space: nowrap; }
.bb-rp b { color: #ddd; font-size: 10px; }
.bb-rg { flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; }
.bb-rg b { font-size: 17px; line-height: 1; color: #fff; }
.bb-rg i { font-style: normal; font-size: 7.5px; letter-spacing: .8px; color: #d9c890; white-space: nowrap; }
.bb-rs { flex: 0 0 62px; text-align: right; white-space: nowrap; }
.bb-rs b { font-size: 18px; color: #ff8a87; }
.bb-rs i { font-style: normal; font-size: 9px; color: var(--muted); }
/* phones / narrow windows: one column at a time */
@media (max-width: 900px) {
  #view-board.active { padding: 6px 8px 8px; }
  .bb-tabs { display: flex; gap: 3px; margin-left: auto; }
  .bb-tabs button { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.2); color: #ccc; border-radius: 4px; padding: 4px 8px;
    font-size: 9.5px; letter-spacing: 1.2px; cursor: pointer; }
  .bb-tabs button.on { background: #3a1615; border-color: var(--accent); color: #fff; }
  .bb-grid { grid-template-columns: minmax(0, 1fr); }
  .bb-grid > .sec-div { display: none; }
  .bb-grid[data-pane="dir"] .bb-col:not([data-pane="dir"]),
  .bb-grid[data-pane="pop"] .bb-col:not([data-pane="pop"]),
  .bb-grid[data-pane="lead"] .bb-col:not([data-pane="lead"]) { display: none; }
  .bb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bb-rp { display: none; }
  .bb-filters { flex-basis: 100%; }
}

/* ============ DASHBOARD: the ORDERS ARCHIVE + the ORDER VIEW (operator plan 2026-09-27) ============ */
#view-home [hidden] { display: none !important; }
.ord-board .ord-arch { display: none; }
.ord-board.archive { grid-template-columns: var(--sd) minmax(0, 1fr); }
.ord-board.archive > :not(.ord-arch) { display: none; }
.ord-board.archive > .sec-div.ord-arch { display: flex; }
.ord-board.archive > .ord-col.ord-arch { display: flex; }
.ord-board.archive .ord-col-body { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); align-items: start; }
#view-home .sec-div.gold { background: linear-gradient(180deg, #6b5a26, #3a2f12 55%, #2a220c); border-color: #c9a83c; }
.ord-archbtn { color: #e8d9a8; }
.ord-archtoggle { background: #2f2610; border-color: #c9a83c; color: #f4e7c0; letter-spacing: 1.2px; }
.ord-archtoggle.on { background: #5e4b1c; color: #fff; }
.ord-status.archived { background: #2f2610; border-color: #6b5a26; color: #e8d9a8; }
/* SUB# cards and relations */
.ord-subtag { flex: 0 0 auto; font-size: 8.5px; letter-spacing: 1.2px; padding: 1px 5px; border-radius: 3px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.ord-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 9.5px; letter-spacing: 1px; color: #9a9a9a; }
.ord-rellink { background: #111; border: 1px solid #3a3a3a; color: #ddd; border-radius: 3px; padding: 1px 7px; font: inherit; font-size: 10px; letter-spacing: .6px; cursor: pointer; }
.ord-rellink:hover { border-color: #888; color: #fff; }
.ord-rellink.fam-psa, .od-subtag.fam-psa, .od-subrow.fam-psa { border-color: #2f6fb3; color: #8fc4ff; }
.ord-rellink.fam-bgs, .od-subtag.fam-bgs, .od-subrow.fam-bgs { border-color: #a8862a; color: #ffd54a; }
.ord-rellink.fam-ars, .od-subtag.fam-ars, .od-subrow.fam-ars { border-color: #c94a45; color: #ffd9d7; }
.ord-post { font-style: normal; font-size: 9px; letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; background: #0c1a2c; color: #cfe4ff; border: 1px solid #2f6fb3; white-space: nowrap; }
/* the ORDER VIEW */
.od-bar { flex-wrap: wrap; row-gap: 6px; gap: 12px; margin-bottom: 8px; }
.od-bar.fam-psa { background: linear-gradient(180deg, #1f4870, #12263d 60%, #0c1a2c); border-color: #2f6fb3; }
.od-bar.fam-bgs { background: linear-gradient(180deg, #6b5a26, #3a2e0c 60%, #2a2108); border-color: #a8862a; }
.od-bar.fam-ars { background: linear-gradient(180deg, #9e302d, #7a2622 60%, #4a1512); border-color: #c94a45; }
.od-back { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.3); color: #fff; letter-spacing: 1.2px; }
.od-id { font-size: 18px; letter-spacing: 1.5px; color: #fff; font-weight: 600; }
.od-meta { font-size: 11px; letter-spacing: 1px; color: #E3BDBB; }
.od-bar.fam-psa .od-meta { color: #cfe4ff; }
.od-bar.fam-bgs .od-meta { color: #f4e7c0; }
.od-counts { font-size: 10.5px; letter-spacing: 1.3px; color: #F2D5D3; text-transform: uppercase; }
.od-acts { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.od-acts .btn { padding: 4px 9px; font-size: 9.5px; letter-spacing: 1px; border-radius: 4px; }
.od-edit { background: #16324f; border-color: #2f6fb3; color: #cfe4ff; }
.od-grid { --sd: 27px; display: grid; gap: 10px; min-height: 0; grid-template-columns: var(--sd) minmax(0, 1fr) var(--sd) minmax(300px, 380px); }
.od-grid > * { min-height: 0; min-width: 0; }
.od-col { display: flex; flex-direction: column; min-height: 0; background: #141414; border: 1px solid var(--line); border-radius: 6px; }
.od-colhead { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; border-bottom: 1px solid #2a2a2a; }
.od-colhead b { font-weight: 600; font-stretch: semi-condensed; font-size: 13.5px; letter-spacing: 2px; color: #F2F2F2; }
.od-colhead span { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.od-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 10px; display: grid; gap: 6px; align-content: start; }
.od-job { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 5px; }
.od-job.picked { outline: 2px solid #ffb3ae; outline-offset: -2px; }
.od-pick { flex: 0 0 auto; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.od-art { flex: 0 0 auto; width: 40px; height: 56px; border-radius: 3px; overflow: hidden; background: #0d0d0d; border: 1px solid #333; display: flex; align-items: center; justify-content: center; color: #555; }
.od-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-art i { font-style: normal; }
.od-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.od-l1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.od-l1 b { font-size: 12.5px; letter-spacing: .8px; color: #fff; font-weight: 600; }
.od-l2 { font-size: 12px; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-l3 { font-size: 10px; color: var(--muted); letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-subtag { background: #0f0f0f; border: 1px solid #3a3a3a; border-radius: 3px; padding: 1px 6px; font: inherit; font-size: 9px; letter-spacing: .8px; cursor: pointer; color: #ddd; }
.od-f { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; }
.od-f i { font-style: normal; font-size: 7.5px; letter-spacing: 1.2px; color: var(--muted); }
.od-f select, .od-f input { background: #111; border: 1px solid #3a3a3a; border-radius: 4px; color: #eee; font-family: var(--rep-font); font-size: 11px; padding: 3px 6px; width: auto; }
.od-f.st select { min-width: 132px; }
.od-f.cert input { width: 118px; }
.od-f.st.complete select { border-color: #2a7a3e; color: #bfe6c5; }
.od-f.st.returned select { border-color: #2f6fb3; color: #cfe4ff; }
.od-f.st.open select { border-color: #6b4a14; color: #f0c060; }
.od-verify { flex: 0 0 auto; font-size: 9.5px; letter-spacing: 1px; color: #8fc4ff; text-decoration: none; }
.od-verify:hover { text-decoration: underline; }
.od-jacts { flex: 0 0 auto; display: flex; gap: 5px; }
.od-jacts .btn { padding: 4px 9px; font-size: 9.5px; letter-spacing: 1px; border-radius: 4px; }
.od-vault { background: #2f2610; border-color: #c9a83c; color: #f4e7c0; }
.od-side { min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 8px; }
.od-card { background: #141414; border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.od-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: 2px; color: #F2F2F2; font-weight: 600; }
.od-h b { color: #ffb3ae; letter-spacing: 1px; }
.od-row { display: flex; gap: 6px; align-items: center; }
.od-row > .ord-in, .od-row > select { flex: 1 1 auto; min-width: 0; }
.od-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.od-btns .btn { padding: 4px 9px; font-size: 9.5px; letter-spacing: 1px; border-radius: 4px; }
.od-stbtn.open { border-color: #6b4a14; color: #f0c060; }
.od-stbtn.complete { border-color: #2a7a3e; color: #bfe6c5; }
.od-stbtn.returned { border-color: #2f6fb3; color: #cfe4ff; }
.od-btns .btn:disabled { opacity: .4; cursor: default; }
.od-lbl { font-size: 8.5px; letter-spacing: 1.4px; color: var(--muted); }
.od-note { margin: 0; font-size: 10px; line-height: 1.55; color: #8a8a8a; }
.od-sel { background: #111; border: 1px solid #3a3a3a; border-radius: 4px; color: #eee; font-family: var(--rep-font); font-size: 11px; padding: 4px 6px; }
.od-mksub { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; letter-spacing: 1px; white-space: nowrap; }
.od-mksub:disabled { opacity: .45; }
.od-subrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; align-items: center; text-align: left; background: #0f0f0f; border: 1px solid #3a3a3a; border-radius: 4px; padding: 5px 8px; cursor: pointer; font: inherit; }
.od-subrow b { font-size: 11.5px; letter-spacing: .8px; }
.od-subrow span { grid-column: 1; font-size: 9.5px; color: #9a9a9a; letter-spacing: .5px; }
.od-subrow .ord-status { grid-row: 1 / 3; grid-column: 2; margin: 0; }
@media (max-width: 1365px) {
  .od-grid { grid-template-columns: var(--sd) minmax(0, 1fr) var(--sd) minmax(270px, 320px); }
  .od-job { flex-wrap: wrap; }
}

/* ============ SETTINGS → Access: agent PROFILES (operator plan 2026-09-27) ============ */
.agent-new { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 6px; }
.agent-head, .agent-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 62px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.agent-head { font-size: 9px; letter-spacing: 1.3px; color: var(--muted); padding: 2px 0 4px; border-bottom: 1px solid #3a3a3a; }
.agent-row .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.agent-in { padding: 4px 6px; font-size: 11.5px; border-radius: 4px; }
.agent-acts { display: flex; gap: 4px; }
.agent-cfg { font-style: normal; font-size: 8px; letter-spacing: 1px; padding: 1px 4px; border-radius: 3px; background: #2a2a2a; color: #bbb; margin-left: 4px; }

/* ============ SUBMISSION type sizes (operator 2026-09-27, three screenshots) ============
   measured size + the operator's points, scoped to #view-submit (the INSPECT search dialog
   shares the .slabq-* classes and keeps its own sizes) */
/* 1) SEARCH CARD · the Search Results header · Grading Submission: text +2pt, SEARCH +2pt, other buttons +1pt */
#view-submit .sub-searchcard .card-head b, #view-submit .sub-gradecard .card-head b { font-size: calc(14.5px + 2pt); }
#view-submit .sub-gradecard .card-head span { font-size: calc(11px + 2pt); }
#view-submit #sub-hint { font-size: calc(9.5px + 2pt); }
#view-submit .sub-searchcard .slabq-fld i, #view-submit .sub-gradecard .slabq-fld i { font-size: calc(7.5px + 2pt); }
#view-submit .sub-searchcard .slabq-fld input, #view-submit .sub-gradecard .slabq-fld input { font-size: calc(11.5px + 2pt); }
#view-submit .sub-searchcard .slabq-fld select, #view-submit .sub-gradecard .slabq-fld select { font-size: calc(11px + 2pt); }
#view-submit #sub-searchnote { font-size: calc(11.5px + 2pt); }
#view-submit .sub-go { font-size: calc(12px + 2pt) !important; }
#view-submit .sub-modes .jb-tab { font-size: calc(10px + 1pt); }
#view-submit .sub-reshead b { font-size: calc(13.5px + 2pt); }
#view-submit #sub-rescount { font-size: calc(11px + 2pt); }
#view-submit .sub-sortbar, #view-submit .sub-sortnote { font-size: calc(9.5px + 2pt); }
#view-submit .sub-sortbtn { font-size: calc(9.5px + 1pt); }
#view-submit .sub-orderbtns .btn { font-size: calc(10px + 1pt); }
/* 2) Card Preview: +1pt */
#view-submit .sub-prevcard .card-head b { font-size: calc(14.5px + 1pt); }
#view-submit #sub-prev-cap { font-size: calc(11px + 1pt); }
#view-submit .sub-prev-empty { font-size: calc(10.5px + 1pt); }
#view-submit .sub-attrs th { font-size: calc(9.5px + 1pt); }
#view-submit .sub-attrs td { font-size: calc(11px + 1pt); }
#view-submit .sub-attrs td:first-child { font-size: calc(10.5px + 1pt); }
/* 3) result rows: the name line + set / number / year +2pt, grade labels + prices +1pt; ADD TO LIST unchanged */
#view-submit .sub-rows .slabq-rc b { font-size: calc(13px + 2pt); }
#view-submit .sub-rows .slabq-rc b em { font-size: calc(10.5px + 2pt); }
#view-submit .sub-rows .slabq-rc b em.sub-inlist { font-size: calc(9px + 2pt); }
#view-submit .sub-rows .slabq-rc span { font-size: calc(11px + 2pt); }
#view-submit .sub-rows .slabq-rp { font-size: calc(12px + 1pt); }
#view-submit .sub-rows .slabq-rp small { font-size: calc(9px + 1pt); }
#view-submit .sub-rows .slabq-rp .p4 i { font-size: calc(12.5px + 1pt); }
#view-submit .sub-rows .slabq-rp .p4 b { font-size: calc(13.5px + 1pt); }

/* ============ THE CLOUD + the JOBS ARCHIVE (operator 2026-09-27) ============ */
.cloud-chip { cursor: pointer; }
.cloud-chip.on { color: #7fe09a; border-color: #2c5c38; }
.cloud-chip.on i { background: #7fe09a; }
.cloud-chip.busy { color: #f0c060; border-color: #6b4a14; }
.cloud-chip.busy i { background: #f0c060; animation: cloud-blink 1s ease-in-out infinite; }
.cloud-chip.warn { color: #E8B44A; border-color: #6b5320; }
.cloud-chip.warn i { background: #E8B44A; }
.cloud-chip.bad { color: #ff8a87; border-color: var(--accent); }
.cloud-chip.bad i { background: var(--accent); }
.cloud-chip.off { color: var(--muted-2); }
@keyframes cloud-blink { 50% { opacity: .3; } }
.ord-cloudtag { font-style: normal; font-size: 8.5px; letter-spacing: 1px; padding: 2px 6px; border-radius: 3px; white-space: nowrap;
  background: #0c1a2c; color: #8fc4ff; border: 1px solid #2f6fb3; align-self: center; }
.ord-jobstoggle { background: #0c1a2c; border-color: #2f6fb3; color: #cfe4ff; letter-spacing: 1.2px; }
.ord-jobstoggle:hover { background: #16324f; color: #fff; }
/* the archive: a bar + a grid of job cards that scrolls on its own */
.ja-bar { flex-wrap: wrap; row-gap: 6px; gap: 12px; margin-bottom: 8px; background: linear-gradient(180deg, #1f4870, #12263d 60%, #0c1a2c); border-color: #2f6fb3; }
.ja-title { font-size: 16px; letter-spacing: 2.5px; color: #fff; font-weight: 600; white-space: nowrap; }
.ja-filters { flex: 1 1 520px; flex-wrap: wrap; row-gap: 6px; }
.ja-bar .ord-f { border-color: rgba(255,255,255,.2); }
.ja-bar .ord-f i { color: #cfe4ff; }
.ja-bar .ord-bar-counts { color: #cfe4ff; }
.ja-sync { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; letter-spacing: 1.2px; }
.ja-body { overflow-y: auto; scrollbar-width: thin; min-height: 0; }
.ja-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 10px; align-content: start; padding: 2px; }
.ja-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px; background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 6px; min-width: 0; }
.ja-thumb { flex: 0 0 auto; width: 64px; height: 88px; border-radius: 4px; overflow: hidden; background: #0d0d0d; border: 1px solid #333;
  display: flex; align-items: center; justify-content: center; color: #555; }
.ja-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ja-thumb i { font-style: normal; }
.ja-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ja-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ja-l1 b { font-size: 14px; color: #fff; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-l2 { font-size: 11.5px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-l3 { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-l3 b { color: #F2F2F2; font-weight: 600; letter-spacing: .8px; }
.ja-pics { display: grid; gap: 4px; margin-top: 4px; }
.ja-pic { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 6px; background: #141414; border: 1px solid #262626; border-radius: 4px; }
.ja-side { flex: 0 0 auto; font-size: 9px; letter-spacing: 1.4px; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.ja-side.front { background: #404040; color: #fff; }
.ja-side.back { background: var(--accent); color: #fff; }
.ja-pic em { flex: 1 1 auto; min-width: 0; font-style: normal; font-size: 10px; letter-spacing: .6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-pic em.cloud { color: #8fc4ff; }
.ja-pic em.local { color: #f0c060; }
.ja-pic em.up { color: #7fe09a; }
.ja-pic em.none { color: #777; }
.ja-pic .btn { padding: 2px 8px; font-size: 9.5px; letter-spacing: 1px; border-radius: 3px; }
.ja-acts { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.ja-acts .btn { padding: 4px 10px; font-size: 9.5px; letter-spacing: 1px; border-radius: 4px; white-space: nowrap; }
.ja-vault { background: #2f2610; border-color: #c9a83c; color: #f4e7c0; }
.ja-up { background: #16324f; border-color: #2f6fb3; color: #cfe4ff; }
/* the picture viewer: full screen, zoomable (the BLACKVAULT zoom cell) */
.ja-viewer { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 18px; }
.ja-viewer[hidden] { display: none; }
.ja-vwin { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; }
.ja-vhead { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; color: #eee; }
.ja-vhead b { font-size: 14px; letter-spacing: 1.5px; }
.ja-vhead span { font-size: 12px; color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-vhead .ja-vhint { margin-left: auto; font-size: 10px; letter-spacing: 1px; color: #888; }
.ja-vhead .btn { padding: 4px 12px; font-size: 10px; letter-spacing: 1px; }
.ja-vcell { flex: 1 1 auto; }
@media (max-width: 1365px) {
  .ja-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
}

/* ---- POSTGRADE Excel round trip (operator 2026-09-27, js/postgrade.js):
   the import buttons wear the template's amber, the PREVIEW is a modal ---- */
.ord-pgimport, .od-pgimp { background: #2e210b; border-color: #b8860b; color: #FFC000; }
.ord-pgimport:hover, .od-pgimp:hover { background: #3d2c0e; color: #ffd24d; }
.od-pgexp { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
.od-pgexp:hover { background: #24713a; color: #fff; }
.pg-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; padding: 24px; font-family: var(--rep-font); }
.pg-box { width: min(1180px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: #161616; border: 1px solid #3a3a3a; border-top: 3px solid #FFC000; border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.6); overflow: hidden; }
.pg-head { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px 10px; border-bottom: 1px solid #2a2a2a; }
.pg-head b { flex: 0 0 auto; font-size: 17px; letter-spacing: 2.5px; color: #FFC000; font-weight: 700; }
.pg-file { flex: 1 1 auto; min-width: 0; font-size: 13px; color: #9a9a9a; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-x { flex: 0 0 auto; background: none; border: 0; color: #aaa; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.pg-x:hover { color: #fff; }
.pg-sum { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-bottom: 1px solid #2a2a2a; }
.pg-chip { font-size: 12px; letter-spacing: 1.4px; padding: 4px 10px; border-radius: 4px; border: 1px solid #3a3a3a; color: #ccc; background: #111; }
.pg-chip b { font-size: 14px; margin-left: 4px; color: #fff; }
.pg-chip.new { border-color: #2a7a3e; background: #13301b; color: #bfe6c5; }
.pg-chip.change { border-color: #6b4a14; background: #2e210b; color: #f0c060; }
.pg-chip.skip { border-color: #8a3431; background: #2c1211; color: #ffb3ae; }
.pg-chip.empty { color: #8a8a8a; }
.pg-tablewrap { flex: 1 1 auto; min-height: 120px; overflow: auto; scrollbar-width: thin; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pg-table th { position: sticky; top: 0; z-index: 1; background: #262626; color: #cfcfcf; font-size: 11px; letter-spacing: 1.5px; text-align: left; padding: 7px 10px; font-weight: 600; border-bottom: 1px solid #3a3a3a; white-space: nowrap; }
.pg-table td { padding: 6px 10px; border-bottom: 1px solid #242424; color: #ddd; vertical-align: top; }
.pg-table .pg-job { font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; letter-spacing: .5px; color: #fff; white-space: nowrap; }
.pg-table .pg-name { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-table .pg-g { font-weight: 700; color: #fff; text-align: center; }
.pg-table .pg-res { min-width: 200px; font-size: 12px; letter-spacing: .6px; }
.pg-table .pg-res i { font-style: normal; color: #9a9a9a; margin-left: 6px; }
.pg-table tr.new .pg-res { color: #7fd99a; }
.pg-table tr.change .pg-res { color: #f0c060; }
.pg-table tr.same .pg-res { color: #9a9a9a; }
.pg-table tr.skip .pg-res { color: #ff9b95; }
.pg-table tr.empty td { color: #6f6f6f; }
.pg-empty { padding: 30px; text-align: center; color: #8a8a8a; font-size: 13px; }
.pg-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #2a2a2a; }
.pg-hint { flex: 1 1 auto; font-size: 12px; color: #8a8a8a; line-height: 1.5; }
.pg-foot .btn { font-size: 13px; letter-spacing: 1.2px; padding: 7px 16px; }
.pg-apply:disabled { opacity: .45; cursor: default; }

/* ---- the ORDER VIEW module +2pt (operator 2026-09-27: "make the font on
   the whole module bigger by 2pt") — the DASHBOARD's order / SUB# view
   (#ord-detail): every size is the MEASURED px + 2pt, scoped here so the
   board and the other pages keep theirs ---- */
#ord-detail .od-back, #ord-detail .od-mksub { font-size: calc(13px + 2pt); }
#ord-detail .ord-subtag { font-size: calc(8.5px + 2pt); }
#ord-detail .od-id { font-size: calc(18px + 2pt); }
#ord-detail .od-meta, #ord-detail .od-h, #ord-detail .od-sel { font-size: calc(11px + 2pt); }
#ord-detail .ord-status, #ord-detail .od-verify, #ord-detail .ord-notified, #ord-detail .od-subrow span { font-size: calc(9.5px + 2pt); }
#ord-detail .od-counts, #ord-detail .ord-col-empty { font-size: calc(10.5px + 2pt); }
#ord-detail .od-acts .btn, #ord-detail .od-jacts .btn, #ord-detail .od-btns .btn { font-size: calc(9.5px + 2pt); }
#ord-detail .sec-div::after { font-size: calc(14.5px + 2pt); }
#ord-detail .od-colhead b { font-size: calc(13.5px + 2pt); }
#ord-detail .od-colhead span, #ord-detail .od-l3, #ord-detail .od-note, #ord-detail .ord-notify, #ord-detail .ord-rellink { font-size: calc(10px + 2pt); }
#ord-detail .od-art i { font-size: calc(14px + 2pt); }
#ord-detail .od-l1 b { font-size: calc(12.5px + 2pt); }
#ord-detail .ord-lvl, #ord-detail .od-subtag { font-size: calc(9px + 2pt); }
#ord-detail .od-l2 { font-size: calc(12px + 2pt); }
#ord-detail .od-f i { font-size: calc(7.5px + 2pt); }
#ord-detail .od-f select, #ord-detail .od-f input { font-size: calc(11px + 2pt); }
#ord-detail .ord-cloudtag, #ord-detail .od-lbl { font-size: calc(8.5px + 2pt); }
#ord-detail .ord-in { font-size: calc(11.5px + 2pt); }
#ord-detail .od-subrow b { font-size: calc(11.5px + 2pt); }
/* a job row WRAPS its fields under the card when the list column is narrow
   (1366: a SUB# row — status · grade · cert# · verify · buttons — ran 919 px
   in a 796 px column and the list scrolled sideways, before the +2pt too);
   the card name keeps ≥ 260 px, a wrapped line sits right */
#ord-detail .od-job { flex-wrap: wrap; justify-content: flex-end; min-width: 0; row-gap: 6px; }
#ord-detail .od-main { flex: 1 1 260px; }

/* ---- DASHBOARD bar (operator 2026-09-28): the SELECTION row sits LEFT on
   the bar's second line; ORDERS ARCHIVE · JOBS ARCHIVE · IMPORT POSTGRADE
   keep the right end of that line ---- */
#view-home > .ord-bar .ord-selbar { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; }
#view-home > .ord-bar .ord-selbar #ord-archive-toggle { margin-left: auto; }
.ord-merge { background: #16324f; border-color: #2f6fb3; color: #cfe4ff; }
.ord-merge:hover:not(:disabled) { background: #1f4870; color: #fff; }

/* ---- ONE module-header size across SUBMISSION and the DASHBOARD
   (operator 2026-09-28: "make all the header font the same size in every
   module") = SEARCH CARD's 14.5px + 2pt for every module title; the
   weight, case and letter-spacing keep each page's own look ---- */
#view-submit .card > .card-head > b,
#view-submit .sub-reshead > b,
#view-home .ord-col > .ord-col-head > b,
#ord-detail .od-col > .od-colhead > b,
#ord-detail .od-card > .od-h,
#jobs-archive .ja-bar > .ja-title { font-size: calc(14.5px + 2pt); }

/* ---- BLACKBOARD · PUBLISHED REPORTS (admin, 2026-09-28): every report of
   the picked card, each removable ---- */
.bb-reps { display: flex; flex-direction: column; gap: 5px; }
.bb-rep { display: flex; align-items: center; gap: 8px; background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 5px; padding: 5px 8px; }
.bb-rep-open { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bb-rep-open b { font-size: 12.5px; letter-spacing: .6px; color: #fff; }
.bb-rep-open i { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bb-rep-open:hover b { color: #ffb3ae; }
.bb-rep-del { flex: 0 0 auto; background: #4a1512; border: 1px solid #a13a35; color: #ffd9d7; border-radius: 4px; padding: 4px 10px; font: inherit; font-size: 9.5px; letter-spacing: 1px; cursor: pointer; }
.bb-rep-del:hover { background: #6b1f1c; color: #fff; }

/* ---- BLACKVAULT hero (operator 2026-09-28): the slab picture alone (the
   "10 GEM MINT" text beside it is gone), the BLACKSCORE number larger over
   its one-word label (no "/ 1000"), the card name +4pt and the details
   +2pt with the thumbnail scaled to match ---- */
.bv-name { font-size: calc(20px + 4pt); }
.bv-native { font-size: calc(12px + 2pt + var(--bv-up2)); }
.bv-meta { font-size: calc(11.5px + 2pt + var(--bv-up2)); }
.bv-thumb { width: 54px; height: 75px; }
.bv-gradebox { padding-left: 16px; }
.bv-scorebox { padding: 6px 16px; min-width: 96px; }
.bv-scorebox b { font-size: 34px; line-height: 1; }
.bv-scorebox i { font-size: calc(9.5px + var(--bv-up)); letter-spacing: 2px; margin-top: 3px; }
@media (max-width: 760px) {
  .bv-name { font-size: calc(17px + var(--bv-up2)); }
  .bv-meta { font-size: calc(12.5px + var(--bv-up)); }
  .bv-thumb { width: 38px; height: 53px; }
  .bv-gradebox { padding-left: 0; }
  .bv-scorebox { padding: 3px 8px; min-width: 0; }
  .bv-scorebox b { font-size: calc(21px + var(--bv-up2)); }
  .bv-scorebox i { display: block; font-size: calc(7px + var(--bv-up)); letter-spacing: 1px; margin-top: 1px; }   /* one word now - it fits */
}


/* JOBS ARCHIVE — the RECORD row above FRONT / BACK (2026-10-03: 'how will I know my records are up?') */
.ja-side.rec { background: #262626; color: #cfcfcf; border: 1px solid #3a3a3a; }
.ja-pic em.bad { color: #ff8a80; }
.ja-acts .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---- THE TRASH (2026-10-03; the CSS step of the first patch never ran —
   the window was created unstyled and sat below the page, "nothing
   happened"): the DASHBOARD bar button, the modal on the IMPORT POSTGRADE
   modal's manners (z-index 9000 over the sidebar's 60), the rows, and the
   RESTORE FROM RECOVERED FILES block with its log ---- */
.ord-trashbtn { border-color: #555; color: #bbb; }
.ord-trashbtn.has { border-color: #8a6a1a; color: #f0c060; }
.trash-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; padding: 24px; font-family: var(--rep-font); }
.trash-modal[hidden] { display: none; }
.trash-win { width: min(860px, 100%); max-height: min(88vh, 940px); background: #161616; border: 1px solid #3a3a3a; border-top: 3px solid var(--accent, #DC4F4C); border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; }
.trash-head { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px 10px; border-bottom: 1px solid #2a2a2a; }
.trash-head b { flex: 0 0 auto; font-size: 17px; letter-spacing: 2.5px; color: #fff; font-weight: 700; }
.trash-head span { flex: 1 1 auto; min-width: 0; color: #9a9a9a; font-size: 12.5px; letter-spacing: .5px; }
.trash-list { overflow: auto; padding: 12px 14px; display: grid; gap: 8px; scrollbar-width: thin; }
.trash-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: #202020; border: 1px solid #333; border-radius: 8px; padding: 8px 10px; }
.trash-art { width: 44px; height: 60px; border-radius: 4px; overflow: hidden; background: #0d0d0d; }
.trash-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trash-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trash-main b { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trash-main span { color: #9a9a9a; font-size: 11.5px; letter-spacing: .4px; }
.trash-row .btn { font-size: 11px; letter-spacing: 1.2px; }
.trash-forever { color: #ff8a80; border-color: #6a2a2a; }
.trash-forever:hover { background: #3a1a18; color: #fff; }
.trash-empty { padding: 30px 20px; color: #9a9a9a; text-align: center; font-size: 13px; line-height: 1.5; }
.trash-recover { border-top: 1px solid #2a2a2a; padding: 12px 18px 16px; }
.trash-recover b { font-size: 12px; letter-spacing: 2px; color: #fff; }
.trash-recover p { color: #9a9a9a; font-size: 11.5px; margin: 6px 0 10px; line-height: 1.45; }
.trash-recover input[type=file] { color: #ccc; font-size: 12px; max-width: 70%; }
.trash-log { margin: 10px 0 0; max-height: 240px; overflow: auto; background: #111; border: 1px solid #333; border-radius: 6px; padding: 8px 10px; font-size: 11px; line-height: 1.45; color: #cfcfcf; white-space: pre-wrap; font-family: Consolas, 'Courier New', monospace; }
@media (max-width: 600px) {
  .trash-modal { padding: 10px; }
  .trash-row { grid-template-columns: 44px minmax(0, 1fr); }
  .trash-row .btn { grid-column: 2; justify-self: start; }
  .trash-recover input[type=file] { max-width: 100%; display: block; margin-bottom: 8px; }
}

/* ---- THE MENU, redesigned (operator 2026-10-03: "make the menu tab look
   more professional — always use the Bahnschrift SemiLight SemiCondensed
   font family"): one family of line icons (inline SVG, 1.6 px strokes,
   currentColor) instead of mixed dingbats, the menu type in Bahnschrift
   SemiLight SemiCondensed (the named instance first, then the variable
   font's axes: weight 350 · width 87.5 %), a calmer 64 px button with a
   10 px radius, hairline group dividers, the selected mode still the brand
   red (operator rule, same day), INSPECTION's three steps as a quiet tray
   with numbered discs. Scoped to #sidebar so the earlier .sb-* rules lose. ---- */
:root { --menu-font: 'Bahnschrift SemiLight SemiCondensed', 'Bahnschrift SemiCondensed', Bahnschrift, 'Barlow Semi Condensed', Barlow, 'Segoe UI', system-ui, sans-serif; }
#sidebar { gap: 2px; padding: 12px 0 14px; background: #1b1b1b; border-right: 1px solid #2a2a2a; font-family: var(--menu-font); font-weight: 350; font-stretch: 87.5%; }
#sidebar .sb-logo { margin: 0; padding: 4px; border-radius: 10px; transition: background .12s; }
#sidebar .sb-logo:hover { background: #262626; }
#sidebar .sb-logo img { width: 36px; height: 36px; }
#sidebar .sb-div { flex: 0 0 auto; width: 30px; height: 1px; margin: 7px 0; background: #2f2f2f; }
#sidebar .sb-btn {
  width: 64px; min-height: 58px; padding: 8px 2px 7px; gap: 5px; border-radius: 10px; color: #a0a0a0;
  font-family: var(--menu-font); font-weight: 350; font-stretch: 87.5%; font-size: 10px; letter-spacing: .9px; line-height: 1; text-transform: uppercase;
  transition: background .12s, color .12s;
}
#sidebar .sb-btn .ico { width: 30px; height: 26px; border-radius: 0; background: none !important; font-size: 0; }
#sidebar .sb-btn .ico svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#sidebar .sb-btn:hover { background: #262626; color: #ececec; }
#sidebar .sb-btn.on { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(220, 79, 76, .26); }
#sidebar .sb-btn.on .ico svg { stroke-width: 1.8; }
#sidebar .sb-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
#sidebar .sb-btn.locked { opacity: .62; }
#sidebar .sb-btn.locked .ico::after { right: -8px; bottom: -4px; font-size: 10px; }
/* INSPECTION's three steps */
#sidebar .sb-subs { width: 64px; margin: -1px 0 2px; padding: 5px 0 6px; gap: 1px; background: #151515; border: 1px solid #262626; border-radius: 10px; }
#sidebar .sb-sub {
  padding: 4px 0 5px; gap: 3px; border-radius: 7px; color: #8e8e8e;
  font-family: var(--menu-font); font-weight: 350; font-stretch: 87.5%; font-size: 8px; letter-spacing: .6px; line-height: 1; text-transform: uppercase;
  transition: background .12s, color .12s;
}
#sidebar .sb-sub i { width: 17px; height: 17px; font-size: 9px; font-style: normal; font-weight: 600; background: #1f1f1f; border: 1px solid #3a3a3a; color: #c4c4c4; font-family: var(--menu-font); font-stretch: 87.5%; }
#sidebar .sb-sub:hover { background: #222; color: #ececec; }
#sidebar .sb-sub.on { background: transparent; color: #fff; }
#sidebar .sb-sub.on i { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(220, 79, 76, .18); }
#sidebar .sb-sub:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* short windows: the menu scrolls inside itself (scrollbar hidden above) */
@media (max-height: 780px) {
  #sidebar { gap: 1px; padding: 8px 0 10px; }
  #sidebar .sb-btn { min-height: 52px; padding: 6px 2px 5px; gap: 4px; }
  #sidebar .sb-div { margin: 4px 0; }
}

/* ================= THE PHONE SHELL (body.mv) — operator 2026-10-04 =================
   A phone (or any portrait window under 760 px) gets an app-like frame: no
   sidebar, no topbar, the document scrolls, a fixed bottom tab bar (VAULT ·
   BOARD · INSPECT · PORTFOLIO · ACCOUNT). BLACKVAULT is the first page built
   for it (/mvault/<Job#>): a sticky brand + JOB# bar, a hero card, segmented
   section pills, ONE section at a time flowing vertically, FRONT / BACK under
   it. The desktop vault (/vault/<Job#>) is untouched. Bahnschrift throughout
   (Barlow stands in on phones without it). */
body.mv { background: #0f0f0f; }
body.mv #app { grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
body.mv #sidebar, body.mv #topbar { display: none !important; }
body.mv { overflow-x: hidden; }
body.mv #main { min-width: 0; overflow: visible !important; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }   /* the document scrolls, so the bar and the pills can stick */
body.mv .view.active { min-height: calc(100vh - 76px); }
body.mv #view-login { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
/* the bottom tab bar */
#mv-nav { display: none; }
body.mv #mv-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; align-items: stretch; gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(14, 14, 14, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid #262626; font-family: var(--menu-font); font-weight: 350; font-stretch: 87.5%; }
#mv-nav button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px;
  background: none; border: 0; border-radius: 12px; color: #9a9a9a; font: inherit; font-size: 10px; letter-spacing: .6px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#mv-nav button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#mv-nav button span { white-space: nowrap; }
#mv-nav button.on { color: #fff; }
#mv-nav button.on svg { stroke: var(--accent); stroke-width: 1.9; }
#mv-nav button:active { background: #1d1d1d; }
/* the account sheet */

/* ---- BLACKVAULT on the phone (/mvault/<Job#>) ---- */
body.mv #view-vault.active { display: block; padding: 0 0 10px; overflow: visible; height: auto !important; min-height: 0; }
body.mv .bv-bar { position: sticky; z-index: 30; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 9px; margin: 0; padding: 10px 14px 10px;   /* nowrap: a wrapping column stretches its items to the widest one, past the bar */
  border: 0; border-radius: 0; background: rgba(15, 15, 15, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid #222; }
body.mv #view-vault.bv-jobmode .bv-bar { background: rgba(43, 18, 16, .96); }
body.mv .bv-brand { display: flex; align-items: center; gap: 8px; letter-spacing: 2.2px; color: #fff; min-width: 0; }
body.mv .bv-brand .bv-sub { flex: 1 1 0; min-width: 0; margin-left: 2px; font-size: 0; letter-spacing: 1.7px; color: #c9a83c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mv .bv-brand .bv-sub::after { content: 'VERIFIED VAULT'; font-size: 8px; }   /* the short form fits beside the share button and the mark */
.bv-share, .bv-mark { display: none; }
body.mv .bv-share { display: inline-flex; margin-left: auto; width: 34px; height: 34px; align-items: center; justify-content: center; background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 10px; color: #ddd; cursor: pointer; }
body.mv .bv-share[hidden] { display: none; }
body.mv .bv-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.mv .bv-mark { display: block; width: 30px; height: 30px; margin-left: 8px; }
body.mv .bv-share:not([hidden]) + .bv-mark { margin-left: 8px; }
body.mv .bv-brand:not(:has(.bv-share:not([hidden]))) .bv-mark { margin-left: auto; }
body.mv .bv-find { display: flex; flex: 1 1 auto; margin: 0; gap: 8px; }
body.mv .bv-f { flex: 1 1 0; min-width: 0; background: #1a1a1a; border: 1px solid #333; border-radius: 12px; padding: 5px 12px; }
body.mv .bv-f:focus-within { border-color: #c9a83c; }
body.mv .bv-f i { font-size: 8.5px; color: #c9a83c; }
body.mv .bv-f input { width: 100%; min-width: 0; font-size: 14px; letter-spacing: 1px; }
body.mv .bv-find .bv-btn { flex: 0 0 auto; border-radius: 11px; padding: 10px 12px; font-size: 10px; letter-spacing: 1.2px; white-space: nowrap; }
body.mv .bv-jobbar { flex-wrap: wrap; gap: 6px; }
body.mv .bv-body { display: block; min-height: 0; }
body.mv .bv-rec { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 0; min-height: 0; }
/* the hero card */
body.mv .bv-hero { flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px; border-radius: 16px; border: 1px solid #2a2a2a;
  background: linear-gradient(180deg, #1e1e1e, #151515); }
body.mv .bv-thumb { order: 1; width: 54px; height: 75px; border-radius: 7px; }
body.mv .bv-idcol { order: 2; flex: 1 1 0; min-width: 0; }
body.mv .bv-name { font-size: calc(17px + var(--bv-up2)); line-height: 1.12; white-space: normal; max-height: 2.3em; overflow: hidden; }
body.mv .bv-native { display: none; }
body.mv .bv-meta { white-space: normal; font-size: calc(11.5px + var(--bv-up)); line-height: 1.35; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.mv .bv-gradebox { order: 3; padding-left: 0; border-left: 0; }
body.mv .bv-slabimg { height: 50px; }
body.mv .bv-scorebox { order: 4; padding: 6px 10px; border-radius: 10px; min-width: 62px; }
body.mv .bv-scorebox b { font-size: 24px; }
body.mv .bv-scorebox i { display: block; font-size: calc(7px + var(--bv-up)); letter-spacing: 1px; margin-top: 1px; }
body.mv .bv-ver { order: 5; flex: 1 1 100%; flex-direction: row; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid #242424; }
body.mv .bv-ver b { font-size: calc(12.5px + var(--bv-up)); letter-spacing: 1.2px; }
body.mv .bv-ver i { display: inline; margin-left: auto; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.2px; }
body.mv .bv-acts { display: none; }
/* the section pills (sticky under the bar) · the stage flows · FRONT / BACK under it */
body.mv .bv-tabs { display: contents; }
/* all five sections on ONE line, sized to fit — never a side scroll (operator
   2026-10-04): a boxed rail, each tab as wide as its word plus an equal share
   of what is left; the type shrinks with the phone's width */
body.mv .bv-tablist { order: 1; position: sticky; top: var(--mv-top, 100px); z-index: 25; display: flex; gap: 2px; overflow: hidden;
  margin: 0 -12px; padding: 9px 15px 11px; background: #0f0f0f; }
body.mv .bv-tablist::before { content: ''; position: absolute; left: 12px; right: 12px; top: 6px; bottom: 8px; border-radius: 14px; background: #151515; border: 1px solid #2c2c2c; }
body.mv .bv-tab { position: relative; flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 4px; gap: 0; border: 0; border-radius: 10px; background: none; color: #a6a6a6; overflow: hidden;
  font-family: var(--menu-font); font-stretch: 87.5%; font-weight: 600; font-size: clamp(9.5px, 2.9vw, 11.5px); letter-spacing: .06em; }
body.mv .bv-tab i { display: none; }
body.mv .bv-tab.on { background: var(--accent); color: #fff; }
body.mv .bv-arrow, body.mv .bv-dots { display: none !important; }
body.mv .bv-stage { order: 2; flex: 0 0 auto; overflow: visible; min-height: 0; height: auto; touch-action: pan-y; }
body.mv .bv-track { display: block; height: auto; transform: none !important; transition: none !important; }
body.mv .bv-slide { display: none; flex: none; height: auto; padding: 0; }
body.mv .bv-slide[aria-hidden="false"] { display: block; }
body.mv .bv-sideseg { order: 3; display: flex; flex: 0 0 auto; justify-content: center; gap: 0; margin: 12px auto 6px; padding: 4px; background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 13px; }
body.mv .bv-sideseg button { min-width: 92px; padding: 10px 16px; border: 0; border-radius: 10px; background: none; color: #999; font-size: calc(11px + var(--bv-up)); letter-spacing: 1.8px; font-weight: 700; cursor: pointer; }
body.mv .bv-sideseg button.on { background: var(--accent); color: #fff; }
/* SUMMARY shows FRONT and BACK together, so the switch has nothing to do there (js/vault.js names the section on .bv-rec) */
#view-vault .bv-rec[data-slide="summary"] .bv-sideseg { display: none !important; }
/* the sections: cards that flow (the desktop fits them to the window) */
body.mv .bv-cols2, body.mv .bv-cols3 { display: block; height: auto; }
body.mv .bv-panel { height: auto; min-height: 0; padding: 12px; gap: 10px; border-radius: 16px; }
body.mv .bv-side.front { border-top-width: 3px; }
body.mv .bv-phead b { font-size: calc(11.5px + var(--bv-up)); letter-spacing: 2px; }
body.mv .bv-stage[data-side="front"] .bv-cols2 .bv-side.back, body.mv .bv-stage[data-side="back"] .bv-cols2 .bv-side.front { display: none; }
body.mv .bv-zc { border-radius: 10px; }
/* 1 SUMMARY: the two finishes side by side, then the breakdown */
body.mv .bv-mfin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
body.mv .bv-mfin .bv-side { display: flex !important; }
body.mv .bv-mfin .bv-zc { height: 50vw; max-height: 250px; }
body.mv .bv-sumcard { overflow: visible; }
body.mv .bv-sumtop { display: none; }
body.mv .bv-ptable { font-size: calc(12.5px + var(--bv-up)); }
body.mv .bv-ptable th { padding: 6px 6px; }
body.mv .bv-ptable td { padding: 7px 6px; }
body.mv .bv-ptable td.g { font-size: calc(17px + var(--bv-up2)); }
body.mv .bv-popgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
body.mv .bv-popgrid div { border-radius: 12px; padding: 12px 6px 10px; }
body.mv .bv-popgrid b { font-size: 24px; }
body.mv .bv-popgrid i { font-size: calc(8px + var(--bv-up)); letter-spacing: 1.2px; }
/* 2 CENTERING */
body.mv .bv-cent { --mmr: 112px; gap: 6px; }
body.mv .bv-cent .bv-cbox { flex: none; width: 100%; height: min(68vh, 560px); }   /* render() sizes it to the card */
body.mv .bv-mm b { font-size: calc(14px + var(--bv-up2)); }
body.mv .bv-cstats { gap: 6px 16px; }
body.mv .bv-cstats b { font-size: calc(17px + var(--bv-up2)); }
body.mv .bv-cos span { padding: 6px 10px; border-radius: 8px; font-size: calc(10.5px + var(--bv-up)); }
/* 3 CORNERS */
body.mv .bv-cwrap { flex: none; flex-direction: column; container-type: normal; gap: 10px; }
body.mv .bv-cgrid { width: 100%; height: auto; aspect-ratio: 1; }
body.mv .bv-cgrid .bv-zc { height: auto; aspect-ratio: 1; }
body.mv .bv-cside { overflow: visible; }
body.mv .bv-cside .bv-reads { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
body.mv .bv-reads span { padding: 10px 12px; font-size: calc(17px + var(--bv-up2)); border-radius: 12px; }
body.mv .bv-reads span b { font-size: calc(9px + var(--bv-up)); }
/* 4 EDGES */
body.mv .bv-strips { flex: none; display: flex; flex-direction: column; gap: 8px; }
body.mv .bv-strip { height: 66px; }
body.mv .bv-strip > .bv-zc { height: 66px; }
/* 5 SURFACE */
body.mv .bv-surf { flex: none; display: flex; flex-direction: column; gap: 10px; }
body.mv .bv-surf .bv-map { height: min(64vh, 520px); }
body.mv .bv-dcol { overflow: visible; }
body.mv .bv-dlist li { padding: 8px; border-radius: 10px; }
body.mv .bv-nodef { padding: 24px 8px; border-radius: 12px; }
/* the sheets */
body.mv .bv-ded { font-size: calc(12.5px + var(--bv-up)); }
body.mv .bv-ded th { font-size: calc(11px + var(--bv-up)); padding: 6px; }
body.mv .bv-ded td { padding: 5px 6px; }
/* the landing + messages */
body.mv .bv-landing { padding: 26px 16px 20px; min-height: 0; overflow: visible; }
body.mv .bv-lcard { max-width: none; }
body.mv .bv-lmark { font-size: 40px; letter-spacing: 7px; }
body.mv .bv-lsub { font-size: 10px; letter-spacing: 5px; }
body.mv .bv-lcard p { font-size: 13.5px; margin: 18px 0 16px; }
body.mv .bv-lsteps { flex-direction: column; align-items: center; gap: 10px; }
body.mv .bv-rchip { border-radius: 10px; padding: 8px 12px; }
body.mv #bv-msg.jb-msg { bottom: calc(86px + env(safe-area-inset-bottom)); }
/* the A4 document, BLACKBOARD and BLACKPORT inside the phone frame keep room for the tab bar */
body.mv #view-report, body.mv #view-board.active, body.mv #view-port.active { padding-bottom: 20px; }

/* ================= BLACKPORT v4 — the portfolio, BLACKLENS' own screen (operator 2026-10-04) =================
   Red, grey and black only (white is the ink) — nothing of another
   collector app's look. The phone-shell vocabulary of BLACKVAULT: the
   BLACK|PORT brand row, a boxed OVERVIEW · PERFORMANCE · CARDS switch, the
   FOLDER field over the total, panels with letter-spaced captions. The
   chart is a MEASURED plot: hairline rules with the value on them, date
   ticks, the value a WHITE line, the price paid a GREY step line, the band
   between them light above cost and RED below it. A gain is an up arrow in
   white, a loss a down arrow in red — never colour alone. On a computer
   (≥ 961 px) each pane spreads into two columns. Bahnschrift. */
#view-port { --pf-panel: #171717; --pf-line: #262626; --pf-ctl-line: #2c2c2c; --pf-ink: #f2f2f2; --pf-ink2: #bdbdbd; --pf-ink3: #8f8f8f; --pf-neg: #EB6A66;
  font-family: var(--rep-font); overflow-y: auto; background: #0f0f0f; }
#view-port.active { display: block; }
#view-port button, #view-port input, #view-port select { font-family: inherit; }
.pf-app { max-width: 1180px; margin: 0 auto; padding: 12px 14px 90px; color: var(--pf-ink); }
/* header: the section switch and the currency; a phone also gets the brand row (a computer has the top bar) */
.pf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs cur"; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-brand { display: none; grid-area: brand; font-size: calc(17px * var(--pf-fs, 1)); letter-spacing: 2.4px; color: #fff; white-space: nowrap; }
.pf-brand b { font-weight: 800; }
.pf-brand span { margin-left: 8px; font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: 1.7px; color: var(--pf-ink3); }
.pf-segs { grid-area: tabs; display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: #151515; border: 1px solid var(--pf-ctl-line); min-width: 0; }
.pf-segs button { flex: 1 1 0; min-width: 0; height: 42px; border: 0; border-radius: 10px; background: none; color: #a6a6a6; font-family: var(--menu-font); font-stretch: 87.5%; font-size: calc(12px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 1.6px; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.pf-segs button.on { background: var(--accent); color: #fff; }
.pf-curchip { grid-area: cur; position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); font-size: calc(12px * var(--pf-fs, 1)); color: var(--pf-ink); cursor: pointer; }
.pf-curchip b { font-weight: 600; letter-spacing: 1.2px; }
.pf-curchip select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pf-chev { width: 14px; height: 14px; fill: none; stroke: var(--pf-ink3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
/* panes */
.pf-pane { display: none; }
.pf-pane.on { display: block; }
.pf-col1, .pf-col2 { min-width: 0; }
/* the hero: FOLDER · the total · the change */
.pf-hero { padding: 0 0 12px; }
.pf-herorow { display: flex; gap: 8px; }
.pf-fsel { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); color: var(--pf-ink); cursor: pointer; text-align: left; }
.pf-fsel i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink3); }
.pf-fsel b { flex: 1 1 auto; min-width: 0; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-eye { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); color: var(--pf-ink2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pf-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pf-eye.off { color: #6a6a6a; }
.pf-totalrow { display: flex; margin-top: 8px; }
.pf-total { font-size: calc(33px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: -.3px; color: #fff; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-totalcur { font-style: normal; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); letter-spacing: 1.4px; }
.pf-change { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; min-height: 24px; font-size: calc(12px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.pf-change b { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: #1f1f1f; border: 1px solid #3a3a3a; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 600; color: var(--pf-ink); }
.pf-change em { font-weight: 500; color: var(--pf-ink2); }
.pf-change.down b { color: var(--pf-neg); border-color: #6b2b29; background: #201413; }
.pf-change.down em { color: var(--pf-neg); }
.pf-change.muted { font-size: calc(12.5px * var(--pf-fs, 1)); }
/* the direction marks: an arrow + the sign; red only for a fall */
.pf-tri { width: 8px; height: 8px; flex: 0 0 auto; fill: currentColor; }
.pf-chg { display: inline-flex; align-items: center; gap: 4px; font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 600; color: var(--pf-ink); white-space: nowrap; }
.pf-chg.down { color: var(--pf-neg); }
.pf-chg.flat { color: var(--pf-ink3); font-weight: 500; }
/* the chart card */
.pf-chartcard { background: var(--pf-panel); border: 1px solid var(--pf-line); border-radius: 16px; padding: 12px 12px 10px; margin-bottom: 12px; }
.pf-charthead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 16px; margin-bottom: 6px; }
.pf-charthead b { font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 2px; font-weight: 600; color: var(--pf-ink2); white-space: nowrap; }
.pf-charthead > span { min-width: 0; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .6px; color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-charthead > span.on { color: var(--pf-ink); }
.pf-legend { display: flex; gap: 14px; }
.pf-legend em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; font-weight: 600; color: var(--pf-ink2); }
.pf-legend em::before { content: ''; width: 14px; border-top: 2px solid #f2f2f2; }
.pf-chartbox { position: relative; height: 190px; }
.pf-chartbox svg { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; outline: none; }
.pf-chartbox svg:focus-visible { outline: 1px solid #6a6a6a; outline-offset: 3px; border-radius: 4px; }
.pf-chartbox .gr { stroke: #242424; stroke-width: 1; }
.pf-chartbox .base { stroke: #3a3a3a; stroke-width: 1; }
.pf-chartbox .yl, .pf-chartbox .xl, .pf-chartbox .ml { font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: .3px; fill: #8f8f8f; }
.pf-chartbox .yl, .pf-chartbox .ml { paint-order: stroke; stroke: #171717; stroke-width: 3px; stroke-linejoin: round; }
.pf-chartbox .ml { fill: #bdbdbd; }
.pf-chartbox .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pf-chartbox .paid { fill: none; stroke-linejoin: round; }
.pf-chartbox .gain { stroke: none; }
.pf-chartbox .loss { fill: #DC4F4C; fill-opacity: .26; stroke: none; }
.pf-chartbox .ring { fill: #171717; }
.pf-chartbox .mk { fill: #171717; stroke-width: 1.5; }
.pf-chartbox .xh { stroke: #6a6a6a; stroke-width: 1; }
.pf-chartbox .rv { stroke: #171717; stroke-width: 2; }
.pf-chartbox .rp { stroke: #171717; stroke-width: 2; }
.pf-chartbox .hit { fill: transparent; pointer-events: all; }
.pf-chart-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 28px; color: var(--pf-ink3); font-size: calc(12.5px * var(--pf-fs, 1)); line-height: 1.5; pointer-events: none; }
.pf-chart-note:empty { display: none; }
.pf-periods { display: flex; gap: 2px; padding: 3px; margin-top: 8px; border-radius: 12px; background: #111; border: 1px solid var(--pf-line); }
.pf-periods button { flex: 1 1 0; min-width: 0; height: 38px; border: 0; border-radius: 9px; background: none; color: var(--pf-ink3); font-family: var(--menu-font); font-stretch: 87.5%; font-size: calc(12px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 1.2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pf-periods button.on { background: #2c2c2c; color: #fff; }
.pf-when { color: var(--pf-ink3); font-size: calc(11px * var(--pf-fs, 1)); }
/* quick actions */
.pf-quick { display: grid; gap: 8px; margin-bottom: 12px; }
.pf-qbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); color: var(--pf-ink); font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.pf-qbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pf-qbtn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-qbtn.small { height: 40px; padding: 0 12px; font-size: calc(11px * var(--pf-fs, 1)); }
.pf-qbtn:disabled { opacity: .5; cursor: default; }
/* lists (TOP HOLDINGS · MOVERS · BY FOLDER · BEST · WORST) */
.pf-list { background: var(--pf-panel); border: 1px solid var(--pf-line); border-radius: 16px; padding: 12px 14px 6px; margin-bottom: 12px; }
.pf-lh { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; margin-bottom: 2px; }
.pf-lh b { font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 2px; color: var(--pf-ink2); }
.pf-lh span { font-size: calc(10.5px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.pf-list ul { list-style: none; margin: 0; padding: 0; }
.pf-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #222; cursor: pointer; }
.pf-list li:first-child { border-top: 0; }
.pf-list li.on .pf-ln b::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.pf-rk { flex: 0 0 auto; width: 16px; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: .6px; color: var(--pf-ink3); }
.pf-art { flex: 0 0 auto; width: 30px; height: 42px; border-radius: 4px; overflow: hidden; background: #232323; border: 1px solid #3a3a3a; box-sizing: border-box; }
.pf-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-art:empty { display: none; }
.pf-ln { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-ln b { font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-ln > span { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: .3px; color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-ln > span.pf-bar { display: block; width: 120px; max-width: 100%; height: 3px; margin-top: 2px; border-radius: 2px; background: #2c2c2c; }
.pf-bar i { display: block; height: 3px; border-radius: 2px; background: #bdbdbd; }
.pf-lv { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.pf-lv b { font-size: calc(14px * var(--pf-fs, 1)); font-weight: 600; color: #fff; }
.pf-lv > span:not(.pf-chg):not(.pf-fedit) { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.pf-fedit { display: inline-flex; gap: 4px; }
.pf-fedit button { width: 30px; height: 30px; border-radius: 8px; background: #222; border: 1px solid #333; color: #ccc; cursor: pointer; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-viewall { background: none; border: 0; padding: 4px 0; color: var(--pf-ink); font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 1.4px; cursor: pointer; }
.pf-viewall[hidden] { display: none; }
.pf-empty { cursor: default; }
.pf-empty.big { text-align: center; padding: 26px 12px; border: 1px dashed #3a3a3a; border-radius: 14px; font-size: calc(13px * var(--pf-fs, 1)); line-height: 1.5; }
.pf-tip p { margin: 4px 0 8px; font-size: calc(12.5px * var(--pf-fs, 1)); line-height: 1.55; color: #a6a6a6; }
/* PERFORMANCE */
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pf-stat { box-sizing: border-box; min-width: 0; min-height: 70px; padding: 9px 10px; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.pf-stat i { display: block; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink3); }
.pf-stat b { display: block; margin-top: 4px; font-size: calc(clamp(13px, 4.1vw, 17px) * var(--pf-fs, 1)); line-height: calc(20px * var(--pf-fs, 1)); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stat b.down { color: var(--pf-neg); }
.pf-stat b .pf-tri { width: 9px; height: 9px; margin-right: 5px; vertical-align: 1px; }
.pf-stat span { display: block; margin-top: 2px; font-size: calc(10.5px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* CARDS */
.pf-cardsbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pf-folders { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pf-folders::-webkit-scrollbar { display: none; }
.pf-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); color: #dcdcdc; border-radius: 12px; padding: 0 12px; font-size: calc(12px * var(--pf-fs, 1)); cursor: pointer; white-space: nowrap; }
.pf-chip b { font-weight: 600; } .pf-chip i { font-style: normal; color: var(--pf-ink3); font-size: calc(11px * var(--pf-fs, 1)); }
.pf-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; } .pf-chip.on i { color: #fff; }
.pf-chip.add { border-style: dashed; color: var(--pf-ink2); }
.pf-chipx { margin-left: 2px; padding: 0 3px; opacity: .9; }
/* CARDS — the template (operator 2026-10-05): picture · name · line · value · REMOVE | the fields
   (GRADED BY · GRADE · FOLDER / PAID/EA · currency · QTY · BUY/DATE / REMARKS). A computer shows ONE or
   TWO columns (two need 600 px a card, a narrow window falls back to one); a phone, one line a card. */
.pf-cards { display: grid; gap: 10px; }
.pf-cards.c1 { grid-template-columns: minmax(0, 1fr); }
.pf-cards.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(600px, calc((100% - 10px) / 2))), 1fr)); }
.pf-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); border-radius: 14px; padding: 12px 14px; transition: box-shadow .3s; }
.pf-card.hot { box-shadow: 0 0 0 2px var(--accent); }
.pf-cart { width: 64px; height: 89px; border-radius: 6px; overflow: hidden; background: #232323; border: 1px solid #3a3a3a; box-sizing: border-box; }
.pf-cart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-cinfo { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }          /* one column: REMOVE stays by the card, the fields sit at the far end */
.pf-c1 { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pf-c1 b { font-size: calc(15px * var(--pf-fs, 1)); color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-c1 i { font-style: normal; color: #a6a6a6; font-size: calc(12px * var(--pf-fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-c2 { color: var(--pf-ink3); font-size: calc(12px * var(--pf-fs, 1)); margin-top: 3px; text-overflow: ellipsis; }
.pf-cbot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.pf-si { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1px; color: var(--pf-ink3); border: 1px solid #3a3a3a; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.pf-d { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: #222; font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 700; color: var(--pf-ink); white-space: nowrap; }
.pf-d.down { color: var(--pf-neg); }
.pf-d.none, .pf-d.flat { color: var(--pf-ink3); font-weight: 400; }
.pf-rmbtn { flex: 0 0 auto; height: 26px; padding: 0 12px; border-radius: 7px; background: #262626; border: 1px solid #3a3a3a; color: var(--pf-neg); font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; cursor: pointer; }
.pf-rmbtn:hover { background: #303030; border-color: #555; }
/* a card's own price trend (the phone's editor): its sold history as a small line, the change over it */
.pf-trend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 12px; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.pf-trend svg { flex: 0 0 auto; width: 120px; height: 26px; }
.pf-trend path { fill: none; stroke: #f2f2f2; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pf-trend circle { fill: #f2f2f2; }
.pf-trend.none { font-size: calc(10.5px * var(--pf-fs, 1)); }
/* the fields: labels on grey bars over their boxes, placed by area */
.pf-fg { justify-self: end; width: 344px; display: grid; grid-template-columns: 82px 64px 56px minmax(0, 1fr); column-gap: 6px; row-gap: 2px; align-items: center; }
.pf-fg .a-lg { grid-area: lg; } .pf-fg .a-lgr { grid-area: lgr; } .pf-fg .a-lf { grid-area: lf; }
.pf-fg .a-lp { grid-area: lp; } .pf-fg .a-lc { grid-area: lc; visibility: hidden; } .pf-fg .a-lq { grid-area: lq; } .pf-fg .a-ld { grid-area: ld; }
.pf-fg .a-lb { grid-area: lb; margin-top: 4px; }
.pf-fg .a-bat { grid-area: bat; } .pf-fg .a-rm { grid-area: rm; }
.pf-fg .a-gco { grid-area: gco; } .pf-fg .a-gr { grid-area: gr; } .pf-fg .a-fol { grid-area: fol; }
.pf-fg .a-paid { grid-area: paid; } .pf-fg .a-cur { grid-area: cur; } .pf-fg .a-qty { grid-area: qty; } .pf-fg .a-date { grid-area: date; }
.pf-l { font-style: normal; min-width: 0; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: .8px; line-height: calc(13px * var(--pf-fs, 1)); color: #d9d9d9; background: #262626; border-radius: 3px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-fg select, .pf-fg input, .pf-fv, .pf-date { box-sizing: border-box; width: 100%; min-width: 0; height: 22px; margin: 0; border-radius: 5px; border: 1px solid #3d3d3d; background: #101010; color: #f2f2f2; font: inherit; font-size: calc(11.5px * var(--pf-fs, 1)); padding: 0 6px; color-scheme: dark; }
.pf-fg select { padding: 0 2px 0 4px; cursor: pointer; }
.pf-fg select:disabled { color: #6a6a6a; cursor: default; }
.pf-fg input::placeholder { color: #5a5a5a; }
.pf-fg select:focus, .pf-fg input:focus, .pf-date:focus-within { outline: none; border-color: var(--accent); }
.pf-fg input[type=number] { -moz-appearance: textfield; }
.pf-fg input[type=number]::-webkit-inner-spin-button, .pf-fg input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* the buy date reads 10/Oct/2026; the browser's picker lies on top, see-through */
.pf-date { position: relative; display: flex; align-items: center; cursor: pointer; }
.pf-date span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.pf-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; font-size: calc(16px * var(--pf-fs, 1)); }
.pf-fv { display: flex; align-items: center; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-fv.ph { color: #6a6a6a; }
.pf-fv.alloc { color: #cfcfcf; background: #181818; border-style: dashed; }      /* a share of the batch price */
.pf-fv.a-bat.inb { color: #fff; }
/* BATCH PRICING: the batch's cards together, PAID/BATCH X under the last one */
.pf-btag { flex: 0 0 auto; align-self: center; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; line-height: calc(14px * var(--pf-fs, 1)); color: #d9d9d9; border: 1px solid #4a4a4a; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.pf-btag em { font-style: normal; }
.pf-batchrow { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.pf-bl { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-bl b { font-weight: 700; color: #fff; }
.pf-bl i { font-style: normal; }
.pf-bin { flex: 0 0 auto; display: flex; gap: 6px; }
.pf-bin input, .pf-bin select { box-sizing: border-box; border: 1px solid #4a4a4a; font: inherit; padding: 0 8px; color-scheme: dark; } .pf-bin select { cursor: pointer; }
.pf-bin input:focus, .pf-bin select:focus { outline: none; }
.pf-bin input[type=number] { -moz-appearance: textfield; }
.pf-bin input[type=number]::-webkit-inner-spin-button, .pf-bin input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* one or two columns (a computer) */
.pf-colsw { flex: 0 0 auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #111; border: 1px solid var(--pf-line); }
.pf-colsw button { width: 36px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--pf-ink3); cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.pf-colsw button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pf-colsw button.on { background: #2c2c2c; color: #fff; }
.pf-colsw button:focus-visible { outline: 1px solid #6a6a6a; outline-offset: 1px; }
body.mv .pf-colsw { display: none; }
/* a phone: ONE view — a card is one line, its fields read at a glance; a tap opens the editor */
.pf-cards.ph .pf-card { grid-template-columns: 40px minmax(0, 1fr) clamp(150px, 48%, 196px); gap: 7px; padding: 8px; border-radius: 12px; align-items: stretch; }
.pf-cards.ph .pf-cart { width: 40px; height: 56px; border-radius: 4px; align-self: start; }
.pf-cards.ph .pf-cinfo { justify-content: flex-start; }
.pf-cards.ph .pf-c1 b { font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-cards.ph .pf-c1 i { display: none; }
.pf-cards.ph .pf-c2 { font-size: calc(9.5px * var(--pf-fs, 1)); line-height: 1.25; margin-top: 1px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-cards.ph .pf-cbot { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 4px; margin-top: auto; padding-top: 4px; }
.pf-cards.ph .pf-d { height: 17px; padding: 0 5px; font-size: calc(10px * var(--pf-fs, 1)); gap: 3px; }
.pf-cards.ph .pf-si { display: none; }
.pf-cards.ph .pf-rmbtn { height: 21px; padding: 0 9px; font-size: calc(8.5px * var(--pf-fs, 1)); border-radius: 6px; }
.pf-cards.ph .pf-fg { width: auto; justify-self: stretch; align-self: center; grid-template-columns: 42px 32px 20px minmax(0, 1fr); column-gap: 3px; row-gap: 1px; cursor: pointer; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.pf-cards.ph .pf-fg:focus-visible { outline: 1px solid #6a6a6a; outline-offset: 2px; }
.pf-cards.ph .pf-l { font-size: calc(6.5px * var(--pf-fs, 1)); letter-spacing: .2px; line-height: calc(10px * var(--pf-fs, 1)); padding: 0 3px; border-radius: 2px; }
.pf-cards.ph .pf-fv { height: 17px; font-size: calc(8.5px * var(--pf-fs, 1)); padding: 0 2px; border-radius: 3px; }
.pf-cards.ph .pf-fg .a-lb { margin-top: 2px; }
.pf-cards.ph .pf-btag em { display: none; }
.pf-cards.ph .pf-card.inb { border-left-width: 3px; }
.pf-cards.ph .pf-bin { width: 100%; margin-left: 0; }
.pf-cards.ph .pf-bin input { flex: 1 1 auto; width: auto; min-width: 0; }   /* 16 px: iOS does not zoom */
/* the phone's card editor: the same fields at full size (16 px, so iOS does not zoom) */
.pf-fg.big { width: auto; justify-self: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; row-gap: 4px; }
.pf-fg.big .pf-l { font-size: calc(9.5px * var(--pf-fs, 1)); line-height: calc(18px * var(--pf-fs, 1)); letter-spacing: 1px; padding: 0 8px; border-radius: 4px; margin-top: 6px; }
.pf-fg.big .pf-fv { height: 44px; font-size: calc(16px * var(--pf-fs, 1)); border-radius: 9px; padding: 0 10px; }
.pf-fg.big .a-lc { visibility: visible; }
.pf-fg.big select, .pf-fg.big input, .pf-fg.big .pf-date { height: 44px; font-size: calc(16px * var(--pf-fs, 1)); border-radius: 9px; padding: 0 10px; }
.pf-fg.big .a-lb { margin-top: 10px; }
/* sheets (folder picker · ADD A CARD) */
.pf-sheet { position: fixed; inset: 0; z-index: 88; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .62); }
.pf-sheet[hidden] { display: none; }
.pf-sheetwin { width: min(100%, 640px); max-height: 86vh; display: flex; flex-direction: column; background: #161616; border: 1px solid #2c2c2c; border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 50px rgba(0, 0, 0, .5); overflow: hidden; }
.pf-sheetwin.tall { height: 92vh; max-height: 92vh; }
.pf-sheethead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pf-sheethead b { font-size: calc(13px * var(--pf-fs, 1)); letter-spacing: 2.5px; color: #fff; }
.pf-sheethead span { flex: 1 1 auto; min-width: 0; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-x { margin-left: auto; background: none; border: 0; color: #bdbdbd; font-size: calc(28px * var(--pf-fs, 1)); line-height: 1; cursor: pointer; padding: 0 4px; }
.pf-sheetfoot { margin-top: 10px; display: flex; gap: 8px; }
.pf-folders-list li { cursor: pointer; }
#pf-flist { overflow-y: auto; }
.pf-sform { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pf-sform label { display: flex; flex-direction: column; gap: 2px; letter-spacing: 1.2px; min-width: 0; }
.pf-sform label i { font-style: normal; }
.pf-sform input, .pf-sform select { color: #eee; border: 1px solid #333; border-radius: 9px; padding: 8px 9px; font-size: calc(14px * var(--pf-fs, 1)); min-width: 0; width: 100%; }
.pf-sform label.q, .pf-sform label.set { grid-column: 1 / -1; }
.pf-sform .pf-go { grid-column: 1 / -1; padding: 10px; border-radius: 10px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.5px; }
.pf-snote { margin: 8px 2px 6px; }
.pf-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: 6px; align-content: start; }
.pf-row { display: grid; background: #1e1e1e; border: 1px solid #2c2c2c; border-radius: 10px; }
.pf-row.inport { border-color: #6a6a6a; }
.pf-rart { grid-area: art; width: 40px; height: 56px; border-radius: 4px; overflow: hidden; background: #232323; }
.pf-rart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-rc { grid-area: name; min-width: 0; display: flex; flex-direction: column; }
.pf-rc b { font-size: calc(13px * var(--pf-fs, 1)); color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-rc b em { font-style: normal; font-weight: 500; color: var(--pf-ink2); font-size: calc(11px * var(--pf-fs, 1)); margin-left: 4px; }
.pf-rc b em.inport { color: #f2f2f2; border: 1px solid #6a6a6a; border-radius: 3px; padding: 0 5px; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: .6px; }
.pf-rc span { color: var(--pf-ink3); font-size: calc(11px * var(--pf-fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-rp { grid-area: price; font-size: calc(11px * var(--pf-fs, 1)); color: #cfcfcf; }
/* the shared price cells keep the SUBMISSION search box's colours here too (operator 2026-10-08):
   PSA light blue · BGS light yellow · Black Label light purple · ARS light green · RAW soft red */
/* the NAME / CARD# box with its TRANSLATE button (BY NAME in a non-English language): English → the printed name */
.pf-sform label.q .pf-qwrap { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.pf-sform label.q .pf-qwrap input { flex: 1 1 auto; }
.pf-xl { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); color: #e4e4e4; border-radius: 9px; padding: 0 11px; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pf-xl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf-xl:hover { border-color: #6a6a6a; color: #fff; }
.pf-xl[hidden] { display: none; }
.pf-xl:disabled { opacity: .55; cursor: default; }
.pf-xl.busy { color: var(--pf-ink3); }
.pf-xl.busy svg { animation: pf-xl-spin 1.1s linear infinite; }
@keyframes pf-xl-spin { to { transform: rotate(360deg); } }
.pf-row .btn.pf-add { border-radius: 9px; padding: 8px 12px; }
.pf-more { display: flex; justify-content: center; margin-top: 8px; }
body.pf-noscroll { overflow: hidden; }
.pf-msg { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #262626; color: #eee; border: 1px solid #444; border-radius: 12px; padding: 9px 14px; font-size: calc(12.5px * var(--pf-fs, 1)); z-index: 95; max-width: 90vw; }
.pf-msg.ok { border-color: #6a6a6a; } .pf-msg.warn { border-color: #a6a6a6; } .pf-msg.bad { border-color: var(--accent); }
@media (max-width: 600px) {
  #app:has(#view-port.active) #tb-pagetitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--pf-fs, 1)); letter-spacing: 1px; }
}
/* a computer: two columns per pane, the sheets centred */
@media (min-width: 961px) {
  .pf-app { padding: 18px 24px 60px; }
  .pf-head { grid-template-columns: minmax(0, 520px) minmax(0, 1fr) auto; grid-template-areas: "tabs . cur"; margin-bottom: 18px; }
  .pf-pane.on[data-pane="overview"], .pf-pane.on[data-pane="performance"] { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: start; }
  .pf-total { font-size: calc(40px * var(--pf-fs, 1)); }
  .pf-chartbox { height: 280px; }
  .pf-periods { max-width: 460px; }
  .pf-quick { justify-content: start; }
  .pf-qbtn { padding: 0 18px; }
  .pf-stat b { font-size: calc(19px * var(--pf-fs, 1)); }
  .pf-app.wide { max-width: 1520px; }                 /* CARDS: two columns of cards want the room */
  .pf-sheet { align-items: center; }
  .pf-sheetwin { border-radius: 18px; max-height: 88vh; }
  .pf-sheetwin.tall { height: 88vh; }
  .pf-sform { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-sform label.q { grid-column: span 2; }
  .pf-sform label.set { grid-column: span 3; }
  .pf-sform .pf-go { grid-column: span 1; align-self: end; }
}

/* the account sheet's USERNAME line (the mobile app, 2026-10-05) */
.mv-uname { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #2c2c2c; border-radius: 10px; background: #161616; display: flex; flex-direction: column; gap: 2px; }
.mv-uname span { font-size: 9px; letter-spacing: 2px; color: #8f8f8f; }
.mv-uname b { font-size: 15px; color: #fff; font-weight: 600; }
.mv-uname i { font-style: normal; font-size: 11px; color: #8f8f8f; word-break: break-all; }

/* THE FRONT DOOR (operator 2026-10-05): Sign in and Continue as Guest side by side */
.lg-btnrow { display: flex; gap: 10px; align-items: stretch; }
.lg-btnrow .lg-primary { flex: 1 1 0; width: auto; min-width: 0; margin: 0; }
.lg-guest { flex: 1 1 0; min-width: 0; padding: 13px 10px; border-radius: 12px; border: 1px solid #c9a83c; background: #1b1b1b; color: #f2e9c8; font: inherit; font-size: 13px; letter-spacing: 1px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: border-color .12s, background .12s; }
.lg-guest:hover { background: #241f10; border-color: #e0c25a; color: #fff; }
.lg-guest:focus-visible { outline: 2px solid #e0c25a; outline-offset: 2px; }
@media (max-width: 420px) { .lg-btnrow .lg-primary, .lg-guest { letter-spacing: .6px; font-size: 12.5px; padding-left: 8px; padding-right: 8px; } }

/* the browser-zoom notice (2026-10-05) — computers only, see app.js zoomHint() */
.zoom-hint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 100000; width: max-content; max-width: min(760px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: #261f0a; border: 1px solid #c9a83c; color: #f2e9c8; font-size: 12.5px; line-height: 1.45; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); }
.zoom-hint[hidden] { display: none; }
.zoom-hint b { color: #fff; }
.zoom-hint kbd { font: inherit; font-weight: 700; padding: 0 5px; border: 1px solid #c9a83c; border-radius: 4px; background: #17130a; color: #fff; }
.zoom-hint button { flex: 0 0 auto; background: none; border: 0; color: #c9a83c; font-size: 15px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.zoom-hint button:hover { color: #fff; background: rgba(201, 168, 60, .15); }

/* ================= BLACKVAULT: the Job# search in the MIDDLE + BACK (operator 2026-10-05) =================
   'the Job# entry bar in the middle, the SCAN QR button in the middle below the bar — the same on the phone';
   a card carries BACK to where it was opened from (js/vault.js paintBar / goBack) */
.bv-landing .bv-find { display: flex; align-items: stretch; gap: 0; margin: 26px auto 0; width: min(560px, 100%); }
.bv-landing .bv-f { flex: 1 1 auto; min-width: 0; height: 52px; box-sizing: border-box; padding: 0 16px; gap: 10px; background: #141414; border: 1px solid #5a4b22; border-right: 0; border-radius: 12px 0 0 12px; }
.bv-landing .bv-f i { font-size: 10px; letter-spacing: 1.8px; color: #c9a83c; }
.bv-landing .bv-f input { flex: 1 1 auto; width: auto; min-width: 0; padding: 0; font-size: 18px; letter-spacing: 1.6px; }
.bv-landing .bv-f input::placeholder { color: #5f5f5f; }
.bv-landing .bv-f:focus-within { border-color: #c9a83c; box-shadow: 0 0 0 3px rgba(201, 168, 60, .16); }
.bv-landing .bv-open { flex: 0 0 auto; height: 52px; padding: 0 28px; border-radius: 0 12px 12px 0; font-size: 13px; letter-spacing: 2px; }
.bv-landing .bv-scanbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; height: 46px; padding: 0 28px; border-radius: 12px;
  font-size: 12px; letter-spacing: 2px; background: #1b1b1b; border: 1px solid #3a3a3a; color: #eee; }
.bv-landing .bv-scanbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bv-landing .bv-scanbtn:hover { border-color: #c9a83c; color: #fff; }
.bv-landing .bv-lcard p { margin-bottom: 0; }
.bv-landing .bv-lsteps { margin-top: 26px; }
.bv-back { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; height: 30px; padding: 0 12px 0 8px; vertical-align: middle; border-radius: 8px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-family: var(--rep-font); font-size: 10px; letter-spacing: 1.6px; cursor: pointer; }
.bv-back[hidden], .bv-newq[hidden] { display: none; }
.bv-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bv-back:hover { background: rgba(0, 0, 0, .55); border-color: #e8d9a8; }
.bv-newq { margin-left: auto; }
body.mv .bv-back { width: 34px; height: 34px; padding: 0; margin: 0 4px 0 0; justify-content: center; border-radius: 10px; background: #1b1b1b; border-color: #2c2c2c; }
body.mv .bv-back span, body.mv .bv-newq { display: none; }
body.mv .bv-landing .bv-find { margin: 22px 0 0; width: 100%; gap: 0; }
body.mv .bv-landing .bv-f { height: 50px; padding: 0 14px; border-radius: 12px 0 0 12px; border-right: 0; }
body.mv .bv-landing .bv-f input { font-size: 16px; }                     /* 16px keeps iOS from zooming the page on focus */
body.mv .bv-landing .bv-open { height: 50px; padding: 0 20px; border-radius: 0 12px 12px 0; font-size: 12px; }
body.mv .bv-landing .bv-scanbtn { display: flex; width: 100%; margin-top: 12px; height: 48px; }

/* ================= BLACKBOARD on one pane: BACK + the picked card's REPORTS (operator 2026-10-05) ================= */
.bb-back, .bb-ponly { display: none; }
.bb-preps { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.bb-prep { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 6px;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bb-prep:hover { border-color: #555; background: #202020; }
@media (max-width: 900px) {
  .bb-ponly { display: block; }
  .bb-tabs:has(.bb-back:not([hidden])) { flex: 1 1 100%; }
  .bb-tabs .bb-back { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; }
  .bb-tabs .bb-back[hidden] { display: none; }
  .bb-back svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
}

/* ================= the phone's ACCOUNT sheet: MY SUBMISSIONS ================= */

/* ================= MY SUBMISSIONS (operator 2026-10-05, js/request.js) =================
   The mock-up's screens: the phone app fills the width above the tab bar, a computer gets the same journey
   as a centred column. Red / grey / black; the studio's unfilled values are dashed [BRACKETS]. */
#view-request { font-family: var(--rep-font); color: #f2f2f2; background: #0f0f0f; padding: 18px 16px 48px; box-sizing: border-box; }
#view-request.active { min-height: 100%; }
.rq-app { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.rq-app svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rq-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rq-back { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #171717; border: 1px solid #2c2c2c; color: #dcdcdc; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rq-back:hover { border-color: #555; color: #fff; }
.rq-back svg { width: 18px; height: 18px; }
.rq-ttl { min-width: 0; display: flex; flex-direction: column; }
.rq-ttl b { font-size: 17px; line-height: 21px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-ttl span { font-size: 11.5px; color: #8f8f8f; }
.rq-h1 { margin: 4px 0 0; font-size: 19px; line-height: 24px; font-weight: 700; }
.rq-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; background: var(--accent); border: 0; color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; cursor: pointer; }
.rq-cta svg { width: 18px; height: 18px; }
.rq-cta:hover, .rq-next:hover:not(:disabled) { background: #e45d5a; }
.rq-segs { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: #151515; border: 1px solid #2c2c2c; }
.rq-segs button { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 10px; border: 0; background: none;
  color: #a6a6a6; font-family: var(--menu-font); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; white-space: nowrap; cursor: pointer; }
.rq-segs button span { font-weight: 500; }
.rq-segs button.on { background: var(--accent); color: #fff; }
.rq-list { display: flex; flex-direction: column; gap: 10px; }
.rq-pcard, .rq-pn, .rq-jc { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: #171717; border: 1px solid #262626; }
.rq-pc1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rq-pc1 > div { min-width: 0; }
.rq-pc1 b { font-size: 14.5px; letter-spacing: 1px; }
.rq-cap { display: block; font-size: 8.5px; letter-spacing: 1.8px; color: #8f8f8f; }
.rq-pc2 { font-size: 12px; line-height: 15px; color: #bdbdbd; }
.rq-st { flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 9px; letter-spacing: 1.4px; font-weight: 700; white-space: nowrap; box-sizing: border-box; }
.rq-st.wait { background: #2a1716; border: 1px solid var(--accent); color: #f2f2f2; }
.rq-st.red { background: var(--accent); color: #fff; }
.rq-st.white { background: #f2f2f2; color: #141414; }
.rq-st.grey { background: #2a2a2a; border: 1px solid #3a3a3a; color: #cfcfcf; }
.rq-rail { position: relative; display: grid; row-gap: 5px; justify-items: center; }
.rq-rail .t { position: absolute; top: 7px; height: 2px; background: #2c2c2c; }
.rq-rail .f { position: absolute; top: 7px; height: 2px; background: #bdbdbd; }
.rq-dot { position: relative; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: #171717; border: 2px solid #3a3a3a; color: #111; }
.rq-dot.done { background: #f2f2f2; border: 0; }
.rq-dot.done svg { width: 10px; height: 10px; stroke-width: 3.4; }
.rq-dot.now { background: var(--accent); border: 0; box-shadow: 0 0 0 4px rgba(220, 79, 76, .24); }
.rq-lb { font-size: 8px; line-height: 10px; letter-spacing: .8px; color: #8f8f8f; white-space: nowrap; }
.rq-lb.on { color: #f2f2f2; }
.rq-lb.now { color: #f2f2f2; font-weight: 700; }
.rq-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; background: #1b1b1b; border: 1px solid #3a3a3a; color: #f2f2f2;
  font: inherit; font-size: 11px; letter-spacing: 1.6px; font-weight: 700; cursor: pointer; }
.rq-ghost:hover { border-color: #6a6a6a; }
.rq-ghost svg { width: 17px; height: 17px; }
.rq-thumbs { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.rq-tnames { flex: 1 1 auto; min-width: 0; font-size: 12px; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-tcount { flex: 0 0 auto; font-size: 11px; letter-spacing: .6px; color: #f2f2f2; font-weight: 600; }
.rq-art { flex: 0 0 auto; width: 32px; height: 44px; box-sizing: border-box; border-radius: 4px; background: #232323; border: 1px solid #3a3a3a; overflow: hidden; }
.rq-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-art.sm { width: 28px; height: 39px; }
.rq-art.xs { width: 24px; height: 33px; border-radius: 3px; }
.rq-art.md { width: 40px; height: 56px; }
.rq-art.lg { width: 44px; height: 61px; border-radius: 5px; }
.rq-note { margin: 0 2px; font-size: 11.5px; line-height: 1.5; color: #8f8f8f; }
.rq-note.c { text-align: center; }
.rq-note.warn { margin: 4px 0 8px; padding: 9px 12px; border: 1px solid #5c5340; border-radius: 9px; background: #1d1a12; color: #e8dcae; font-size: 12px; }   /* the no-guarantee line above I ACCEPT (2026-10-25) */
.rq-empty { padding: 26px 14px; border-radius: 16px; background: #141414; border: 1px dashed #2c2c2c; color: #9a9a9a; font-size: 12.5px; line-height: 1.55; text-align: center; }
.rq-empty b { display: block; margin-bottom: 4px; color: #f2f2f2; font-size: 13.5px; }
.rq-empty .bv-spin { margin: 0 auto 10px; }
.rq-err { padding: 10px 12px; border-radius: 12px; background: #2a1716; border: 1px solid var(--accent); color: #f2d5d3; font-size: 12px; line-height: 1.45; }
.rq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rq-stp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rq-stp i { display: block; height: 3px; border-radius: 2px; background: #2c2c2c; }
.rq-stp span { font-size: 9px; line-height: 12px; letter-spacing: 1.3px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-stp.done i { background: #bdbdbd; }
.rq-stp.done span { color: #bdbdbd; }
.rq-stp.now i { background: var(--accent); }
.rq-stp.now span { color: #f2f2f2; font-weight: 700; }
.rq-opt { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: #171717; border: 1px solid #2c2c2c; cursor: pointer; }
.rq-opt.on { background: #1c1514; border-color: var(--accent); }
.rq-opt input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.rq-opt.sm { align-items: center; min-height: 54px; box-sizing: border-box; padding: 0 14px; border-radius: 14px; }
.rq-optb { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rq-opt.sm .rq-optb { gap: 2px; padding: 8px 0; }
.rq-optt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rq-optt b { font-size: 14.5px; letter-spacing: .4px; }
.rq-opt.sm b { font-size: 13.5px; font-weight: 600; }
.rq-opt.sm em { font-style: normal; font-size: 11px; color: #8f8f8f; }
.rq-optx { font-size: 12.5px; line-height: 1.45; color: #bdbdbd; }
.rq-code { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; border: 1px solid #6a6a6a; font-size: 9px; letter-spacing: 1.4px; font-weight: 600; color: #dcdcdc; }
.rq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-ph { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 7px; border: 1px dashed #6a6a6a; font-size: 10.5px; letter-spacing: .8px; color: #bdbdbd; white-space: nowrap; box-sizing: border-box; }
.rq-val { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 7px; background: #232323; font-size: 11.5px; color: #f2f2f2; box-sizing: border-box; }
.rq-co { height: 30px; padding: 0 12px; border-radius: 8px; background: #111; border: 1px solid #4a4a4a; color: #dcdcdc; font: inherit; font-size: 11px; letter-spacing: 1.4px; font-weight: 700; cursor: pointer; }
.rq-co.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rq-foot { position: sticky; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 12px 0 4px; background: linear-gradient(180deg, rgba(15, 15, 15, 0), #0f0f0f 26%); }
.rq-next { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; background: var(--accent); border: 0; color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; cursor: pointer; }
.rq-next svg { width: 17px; height: 17px; }
.rq-next:disabled { opacity: .45; cursor: default; }
.rq-next.sm { height: 44px; border-radius: 12px; }
.rq-sum { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #171717; border: 1px solid #262626; }
.rq-sum span { font-size: 12.5px; color: #bdbdbd; }
.rq-sum span b { color: #f2f2f2; }
.rq-sum span:last-child { font-size: 10px; letter-spacing: 1.4px; color: #8f8f8f; }
.rq-sum span:last-child b { font-size: 14px; letter-spacing: 0; margin-left: 4px; }
.rq-picks { display: flex; flex-direction: column; gap: 8px; }
.rq-pick { display: flex; align-items: center; gap: 10px; min-height: 64px; box-sizing: border-box; padding: 8px 12px; border-radius: 14px; background: #171717; border: 1px solid #262626; cursor: pointer; }
.rq-pick.on { border-color: #6a6a6a; }
.rq-pick.off { opacity: .62; cursor: default; }
.rq-box { flex: 0 0 auto; width: 20px; height: 20px; box-sizing: border-box; border-radius: 5px; border: 2px solid #5a5a5a; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.rq-box.on { background: var(--accent); border-color: var(--accent); }
.rq-box svg { width: 13px; height: 13px; stroke-width: 3.2; }
.rq-ln { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rq-ln b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-ln span { font-size: 11px; letter-spacing: .3px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-dv { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rq-dv i { font-style: normal; font-size: 8px; letter-spacing: 1.3px; color: #8f8f8f; }
.rq-dv b { font-size: 13.5px; font-weight: 600; }
.rq-dv b.sm { font-size: 11px; letter-spacing: .6px; }
.rq-decl { width: 92px; height: 32px; box-sizing: border-box; padding: 0 8px; border-radius: 8px; background: #111; border: 1px solid #333; color: #f2f2f2;
  font: inherit; font-size: 14px; font-weight: 600; text-align: right; }
.rq-decl:disabled { color: #8f8f8f; background: transparent; border-color: transparent; }
.rq-rm { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; background: #111; border: 1px solid #333; color: #bdbdbd; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rq-rm svg { width: 14px; height: 14px; }
.rq-cap2 { margin: 6px 2px 0; font-size: 9.5px; line-height: 12px; letter-spacing: 2px; font-weight: 600; color: #bdbdbd; }
.rq-cap3 { display: block; font-size: 9.5px; letter-spacing: 2px; font-weight: 600; color: #bdbdbd; }
.rq-fl { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rq-fl span { font-size: 8.5px; letter-spacing: 1.2px; color: #8f8f8f; }
.rq-fl input, .rq-fl select, .rq-fl textarea { min-height: 44px; border-radius: 10px; background: #111; border: 1px solid #333; color: #eee; padding: 0 10px;
  font: inherit; font-size: 15px; width: 100%; box-sizing: border-box; color-scheme: dark; }
.rq-fl textarea { padding: 10px; resize: vertical; }
.rq-fl input:focus, .rq-fl select:focus, .rq-fl textarea:focus, .rq-decl:focus { outline: none; border-color: #6a6a6a; }
.rq-fl.full, .rq-grid2 .full { grid-column: 1 / -1; }
.rq-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rq-find { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-items: end; }
.rq-find .rq-next { grid-column: 1 / -1; }
.rq-found { display: flex; flex-direction: column; gap: 6px; }
.rq-frow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #171717; border: 1px solid #262626; }
.rq-add { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--accent); border: 0; color: #fff; font: inherit; font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rq-pn { gap: 6px; padding: 10px 14px; }
.rq-ph2 { display: flex; align-items: center; justify-content: space-between; min-height: 18px; gap: 8px; }
.rq-ph2 b { font-size: 9.5px; letter-spacing: 2px; font-weight: 600; color: #bdbdbd; }
.rq-ph2 button { background: none; border: 0; padding: 4px 0; color: #f2f2f2; font: inherit; font-size: 10px; letter-spacing: 1.4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rq-pv { font-size: 14px; line-height: 18px; font-weight: 600; }
.rq-pv span { font-size: 10px; letter-spacing: 1.4px; color: #8f8f8f; font-weight: 500; }
.rq-pt { font-size: 13px; line-height: 19px; color: #dcdcdc; }
.rq-pt.dim { font-size: 12px; color: #a6a6a6; }
.rq-cr { display: flex; align-items: center; gap: 10px; min-height: 40px; border-top: 1px solid #222; }
.rq-cr.first { border-top: 0; }
.rq-cr span { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-cr b { flex: 0 0 auto; font-size: 13px; font-weight: 600; }
.rq-tot { display: flex; align-items: center; justify-content: space-between; min-height: 30px; border-top: 1px solid #3a3a3a; }
.rq-tot span { font-size: 9.5px; letter-spacing: 1.6px; color: #8f8f8f; }
.rq-tot b { font-size: 15px; }
.rq-fee { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #dcdcdc; }
.rq-terms { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; font-size: 12.5px; color: #dcdcdc; flex-wrap: wrap; cursor: pointer; }
.rq-terms input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.rq-terms a { color: #f2f2f2; letter-spacing: 1px; }
.rq-terms.box { min-height: 52px; padding: 0 14px; border-radius: 14px; background: #171717; border: 1px solid #262626; }
.rq-pass { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 18px; background: #f2f2f2; color: #141414; }
.rq-pass-h { display: flex; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: 2.2px; font-weight: 700; }
.rq-pass-h i { display: block; width: 7px; height: 7px; background: var(--accent); }
.rq-qr { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.rq-qr svg { width: 100%; height: 100%; display: block; }
.rq-qrfail { font-size: 12px; color: #3a3a3a; }
.rq-pass-id { font-size: 21px; line-height: 24px; letter-spacing: 1.6px; font-weight: 700; }
.rq-pass-t { font-size: 12.5px; line-height: 17px; color: #3a3a3a; text-align: center; }
.rq-nx { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: #dcdcdc; }
.rq-nx i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #2c2c2c; color: #f2f2f2; font-style: normal; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rq-studio { flex-direction: row; flex-wrap: wrap; align-items: center; }
.rq-studio .rq-cap3 { flex: 1 1 100%; }
.rq-jc1 { display: flex; align-items: center; gap: 12px; }
.rq-jcm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rq-jcm b { font-size: 14.5px; line-height: 18px; font-weight: 700; }
.rq-jcm span { font-size: 11.5px; line-height: 15px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-jcm em { margin-top: 4px; font-style: normal; font-size: 12px; line-height: 15px; color: #bdbdbd; }
.rq-jcm em.on { color: #f2f2f2; font-weight: 600; }
.rq-jc1 .rq-st { align-self: flex-start; }
.rq-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; background: #1b1b1b; border: 1px solid #3a3a3a; color: #f2f2f2;
  font: inherit; font-size: 11px; letter-spacing: 1.6px; font-weight: 700; cursor: pointer; }
.rq-btn.red { background: var(--accent); border-color: var(--accent); color: #fff; }
.rq-lg { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; color: #dcdcdc; }
.rq-lg i { flex: 0 0 auto; min-width: 82px; font-style: normal; color: #8f8f8f; }
.rq-tcard { flex-direction: row; align-items: center; gap: 12px; }
.rq-tls { gap: 0; padding: 14px; }
.rq-tl { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.rq-tl:last-child { padding-bottom: 0; }
.rq-tl::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: #bdbdbd; }
.rq-tl.now::before, .rq-tl.todo::before { background: #2c2c2c; }
.rq-tl:last-child::before { display: none; }
.rq-tdot { flex: 0 0 auto; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: #f2f2f2; margin-top: 1px; }
.rq-tl.now .rq-tdot { background: var(--accent); box-shadow: 0 0 0 4px rgba(220, 79, 76, .24); }
.rq-tl.todo .rq-tdot { background: #171717; border: 2px solid #3a3a3a; }
.rq-tl > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rq-tl b { font-size: 13.5px; }
.rq-tl span { font-size: 11.5px; color: #8f8f8f; }
.rq-tl.todo b { color: #8f8f8f; font-weight: 500; }
body.mv #view-request { padding: 12px 16px 16px; }
body.mv .rq-foot { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { body:not(.mv) .rq-app { padding-top: 6px; } }

/* the studio's CHECK IN dialog (SUBMISSION) */
.rq-ci { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .62); font-family: var(--rep-font); }
.rq-ci[hidden] { display: none; }
.rq-ciwin { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 60px); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: #1e1e1e; border: 1px solid #3a3a3a; box-shadow: 0 18px 60px rgba(0, 0, 0, .6); }
.rq-cihead { display: flex; align-items: baseline; gap: 12px; }
.rq-cihead b { font-size: 15px; letter-spacing: 1.6px; color: #fff; }
.rq-cihead span { flex: 1 1 auto; font-size: 11px; color: #9a9a9a; }
.rq-ciform { display: flex; align-items: flex-end; gap: 8px; }
.rq-ciform .rq-fl { flex: 1 1 auto; }
.rq-ciform .btn { height: 44px; padding: 0 22px; }
.rq-cilist { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.rq-cirow { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 8px; background: #171717; border: 1px solid #2c2c2c; color: #f2f2f2; font: inherit; text-align: left; cursor: pointer; }
.rq-cirow:hover { border-color: var(--accent); }
.rq-cirow b { font-size: 13.5px; letter-spacing: 1px; }
.rq-cirow span { font-size: 11.5px; color: #a6a6a6; }

/* ================= BLACKVAULT SURFACE: the DEFECT MARKS switch (operator 2026-10-05) ================= */
.bv-phead:has(.bv-mksw) { align-items: center; }
.bv-mksw { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 11px; border-radius: 999px;
  background: #141414; border: 1px solid #3a3a3a; color: #a6a6a6; font-family: var(--rep-font); cursor: pointer; transition: border-color .18s, color .18s; }
.bv-mksw:hover { border-color: #6a6a6a; color: #f2f2f2; }
.bv-mksw:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 2px; }
.bv-mksw .bv-mkl { font-size: calc(9px + var(--bv-up)); letter-spacing: 1.6px; font-weight: 600; color: inherit; }   /* beats .bv-phead span */
.bv-mkl em, .bv-tsurf { font-style: normal; }
.bv-mkt { position: relative; flex: 0 0 auto; width: 30px; height: 16px; border-radius: 999px; background: #3a3a3a; transition: background .18s; }
.bv-mkt::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #8a8a8a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform .18s, background .18s; }
.bv-mksw .bv-mks { min-width: 22px; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.4px; font-weight: 700; text-align: left; color: inherit; }
.bv-mksw.on { color: #f2f2f2; border-color: rgba(220, 79, 76, .65); }
.bv-mksw.on .bv-mkt { background: var(--accent); }
.bv-mksw.on .bv-mkt::after { transform: translateX(14px); background: #fff; }
.bv-mk { transition: opacity .18s, visibility .18s; }
.bv-rec.marks-off .bv-mk { opacity: 0; visibility: hidden; }
body.mv .bv-mksw { height: 28px; padding: 0 9px; gap: 6px; }
body.mv .bv-mksw .bv-mkl { font-size: calc(8.5px + var(--bv-up)); letter-spacing: 1.2px; }
body.mv .bv-mkl em, body.mv .bv-tsurf { display: none; }   /* a phone: FRONT · DEFECT MAP + MARKS keep the head on one line */

/* ================= the phone's red SUBMISSION tab in the middle (operator 2026-10-05) ================= */
#mv-nav button.mv-submit { color: #f2f2f2; }
#mv-nav .mv-subi { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: -25px; border-radius: 16px;   /* 48 - 25 = the 23 px of the other icons: the labels line up */
  background: var(--accent); box-shadow: 0 0 0 4px #0e0e0e, 0 8px 22px rgba(220, 79, 76, .45); transition: transform .15s, box-shadow .15s; }
#mv-nav button.mv-submit .mv-subi svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.9; }
#mv-nav button.mv-submit span { font-weight: 600; }
#mv-nav button.mv-submit.on .mv-subi { box-shadow: 0 0 0 4px #0e0e0e, 0 0 0 6px rgba(220, 79, 76, .45), 0 8px 22px rgba(220, 79, 76, .55); }
#mv-nav button.mv-submit:active { background: none; }
#mv-nav button.mv-submit:active .mv-subi { transform: scale(.94); }

/* ================= BLACKBOARD: GEM RATE beside the pillar averages + a name's cards (operator 2026-10-05) ================= */
.bb-pills { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bb-pills div { padding: 6px 3px; }
.bb-pills i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the population column measures itself: a narrow one (a 1024 px window,
   a phone) tightens the labels, then lays the boxes 3 + 2 */
.bb-col[data-pane="pop"] > .bb-colbody { container-type: inline-size; }
@container (max-width: 338px) {
  .bb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 348px) {
  .bb-pills { gap: 4px; }
  .bb-pills div { padding: 6px 2px; }
  .bb-pills i { font-size: 8px; letter-spacing: .5px; }
  .bb-pills b { font-size: 17px; }
}
@container (max-width: 280px) {
  .bb-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bb-pills .gem { background: #1d1a10; border-color: #6b5a26; }
.bb-pills .gem b { color: #ffd54a; }
.bb-pcards { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.bb-pcard { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 6px;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bb-pcard:hover { border-color: #555; background: #202020; }
.bb-pfig { flex: 0 0 auto; min-width: 46px; display: flex; flex-direction: column; align-items: center; }
.bb-pfig b { font-size: 16px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.bb-pfig i { font-style: normal; font-size: 7.5px; letter-spacing: 1px; color: var(--muted); white-space: nowrap; }
.bb-pfig.gold b { color: #ffd54a; }
.bb-pfig.top b { color: #ff8a87; }
@media (max-width: 900px) {
  .bb-pfig { min-width: 40px; }
}

/* ================= BLACKPORT: a positive gain is GREEN (operator 2026-10-05 — the green of the 'Start Grading' button;
   the arrow and the sign still tell the direction, the colour repeats it) ================= */
#view-port { --pf-pos: #7ED4A6; }
.pf-chg.up, .pf-d.up, .pf-stat b.up, #pf-gainpct.up, .pf-change.up em { color: var(--pf-pos); }
.pf-change.up b { color: var(--pf-pos); border-color: #2c5a43; background: #12201a; }
.pf-chartbox .gain { fill: var(--pf-pos); fill-opacity: .14; }
#pf-gainpct.down { color: var(--pf-neg); }

/* ================= THE PHONE'S TOP HEADER (operator 2026-10-05): fixed — it never scrolls — the BLACKLENS word
   and the mark on every page, like the tab bar at the bottom; the vault's brand row and BLACKPORT's gave way to it ================= */
#mv-top { display: none; }
body.mv { --mvh: calc(52px + env(safe-area-inset-top)); }
html:has(body.mv) { scroll-padding-top: calc(60px + env(safe-area-inset-top)); }
body.mv #mv-top { position: fixed; top: 0; left: 0; right: 0; z-index: 85; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-sizing: border-box; height: var(--mvh); padding: env(safe-area-inset-top) 16px 0; background: rgba(14, 14, 14, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid #262626; }
#mv-top .mv-word { min-width: 0; padding: 6px 0; background: none; border: 0; color: #fff; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
#mv-top .mv-mark { flex: 0 0 auto; width: 30px; height: 30px; cursor: pointer; }
body.mv #main { padding-top: var(--mvh); }
/* the vault's bar keeps its buttons (BACK · JOB# SEARCH · share) under the header — its brand and mark are the header's now */
body.mv .bv-bar { top: var(--mvh); }
body.mv .bv-brand { font-size: 0; }
body.mv .bv-brand > b, body.mv .bv-brand .bv-sub, body.mv .bv-brand .bv-mark { display: none; }
body.mv .bv-brand .bv-back { font-size: 11px; }
body.mv .bv-bar:not(:has(.bv-back:not([hidden]), .bv-share:not([hidden]), .bv-newq:not([hidden]), .bv-jobbar:not([hidden]), .bv-find)) { display: none; }
/* BLACKPORT: the tabs and the currency on one line under the header */
body.mv .pf-brand { display: none; }
body.mv .pf-head { grid-template-areas: "tabs cur"; }
body.mv .pf-segs button { letter-spacing: 1px; padding-left: 2px; padding-right: 2px; }      /* the tabs share their line with the currency */

/* the account's @username and CHANGE (operator 2026-10-05) — the phone's ACCOUNT tab and a computer's name chip */
.mv-uname { position: relative; }
.mv-unchange { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 12px; border-radius: 8px; background: #222; border: 1px solid #3a3a3a; color: #eee; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; cursor: pointer; }
.mv-unchange:hover { border-color: #666; }
.mv-unform { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mv-at { font-style: normal; font-size: 16px; color: #9a9a9a; }
.mv-unform input { flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 10px; border-radius: 9px; border: 1px solid #3a3a3a; background: #0f0f0f; color: #fff; font: inherit; font-size: 16px; }
.mv-unform input:focus { outline: none; border-color: var(--accent); }
.mv-unform button { flex: 0 0 auto; height: 40px; padding: 0 12px; border-radius: 9px; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; cursor: pointer; }
.mv-unsave { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.mv-unsave:disabled { opacity: .6; cursor: default; }
.mv-uncancel { background: #222; border: 1px solid #3a3a3a; color: #ddd; }
.mv-unmsg { display: block; margin-top: 6px; font-style: normal; font-size: 11px; color: #8f8f8f; word-break: normal; }
.mv-unmsg.bad { color: #ff8a87; }
#user-chip.clickable { cursor: pointer; }
#user-chip.clickable:hover { filter: brightness(1.15); }

/* the customer emails: the pass says where the confirmation went; SETTINGS says whether sending is set up */
.rq-mailed { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: #bdbdbd; }
.rq-mailed svg { width: 15px; height: 15px; fill: none; stroke: #7ED4A6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#set-mail-state.ok { color: #7ED4A6; }
#set-mail-state.warn { color: #E8B44A; }

/* ================= SETTINGS + GUIDE (operator 2026-10-05: 'remake the 2 sections in the PC version to match the
   layouts used in the other modes; a mobile version — the mock-up's ACCOUNT screen — and its options on the PC too') =================
   The DASHBOARD / BLACKBOARD manner: the red page bar, grand section boxes, columns that scroll inside a page that
   does not (js/settings.js fit() sizes the grids). SETTINGS = YOUR ACCOUNT (everyone signed in, js/settings.js) ·
   THIS COMPUTER & THE STUDIO (staff) · ACCESS & CUSTOMER EMAILS (admin) — body[data-role] hides what a role does not
   get. A phone shows YOUR ACCOUNT alone: the ACCOUNT tab. */
#view-settings.active, #view-admin.active, #view-guide.active { display: block; padding: 8px 14px 10px; overflow: hidden; }
#view-settings, #view-settings button, #view-settings input, #view-settings select, #view-settings textarea,
#view-admin, #view-admin button, #view-admin input, #view-admin select, #view-admin textarea,
#dir-pop, #dir-pop button, #dir-pop input, #dir-pop select,
#view-guide, #view-guide button, #view-guide input { font-family: var(--jb-font); }
#view-settings [hidden], #view-admin [hidden], #view-guide [hidden] { display: none !important; }
/* the page bar */
.st-bar { margin-bottom: 8px; gap: 16px; flex-wrap: nowrap; }
.st-bartitle { display: flex; align-items: baseline; gap: 14px; min-width: 0; white-space: nowrap; }
.st-bartitle b { font-weight: 600; font-stretch: semi-condensed; font-size: 14.5px; letter-spacing: .5em; color: #fff; }
.st-bartitle span { font-size: 10.5px; letter-spacing: 1px; color: #E3BDBB; overflow: hidden; text-overflow: ellipsis; }
.st-barnote { flex: 1 1 0; min-width: 0; font-size: 10.5px; letter-spacing: .4px; color: #E3BDBB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
/* the grids — the columns per role */
.st-grid, .gd-grid { --sd: 27px; display: grid; gap: 10px; min-height: 0; height: calc(100vh - 100px); }
.st-grid > *, .gd-grid > * { min-height: 0; min-width: 0; }
.st-grid { grid-template-columns: var(--sd) minmax(340px, min(420px, 27vw)) var(--sd) minmax(0, 1fr) var(--sd) minmax(0, 1.3fr); }   /* the account gives way first on a 1366 screen */
body[data-role="agent"] .st-grid { grid-template-columns: var(--sd) minmax(340px, 460px) var(--sd) minmax(0, 1fr); }
body[data-role="customer"] .st-grid { grid-template-columns: var(--sd) minmax(0, 600px); justify-content: center; }
body:not([data-role="admin"]) #view-settings .st-admin { display: none !important; }
body:not([data-role="admin"]):not([data-role="agent"]) #view-settings .st-staff { display: none !important; }
/* ROUND 185 (operator 2026-10-28): SETTINGS · STUDIO keeps three cards — the account column gives an AGENT their region and
   prices; ADMIN = PRICES · REGIONS (the wide column) | SCORING · EMAILS; a region admin (PH ADMIN) gets the prices alone */
body:not([data-role="agent"]) #set-myprice-card { display: none !important; }
#set-myprice-card { margin-top: 12px; }
#view-admin .ad-grid { grid-template-columns: var(--sd) minmax(0, 1.55fr) var(--sd) minmax(0, 1fr); }
body[data-role="agent"] #view-admin .ad-grid { grid-template-columns: var(--sd) minmax(0, 1fr); }
body:not([data-role="admin"]) #view-admin .ad-only { display: none !important; }
.gd-grid { grid-template-columns: var(--sd) minmax(250px, 300px) var(--sd) minmax(0, 1fr); }
/* grand section boxes (red · gold · blue) */
:is(#view-settings, #view-admin) .sec-div, #view-guide .sec-div { background: linear-gradient(180deg, #7e2c28, #3a1615 55%, #2b1210); border: 1px solid var(--accent); border-radius: 6px; box-shadow: none; align-items: flex-end; }
:is(#view-settings, #view-admin) .sec-div::before, #view-guide .sec-div::before { display: none; }
:is(#view-settings, #view-admin) .sec-div::after, #view-guide .sec-div::after { content: attr(data-sec); font-family: Bahnschrift, 'Franklin Gothic Medium', 'Segoe UI', Arial, sans-serif;
  font-weight: 400; font-stretch: semi-condensed; font-size: 14.5px; letter-spacing: .5em; color: #E8E8E8; background: transparent; text-shadow: none; padding: 14px 0; }
:is(#view-settings, #view-admin) .sec-div.gold, #view-guide .sec-div.gold { background: linear-gradient(180deg, #6b5a26, #3a2f12 55%, #2a220c); border-color: #c9a83c; }
:is(#view-settings, #view-admin) .sec-div.blue { background: linear-gradient(180deg, #2a5f9e, #14304f 55%, #0f2238); border-color: #3b82f6; }
/* the columns */
.st-col { display: flex; flex-direction: column; min-height: 0; background: #141414; border: 1px solid var(--line); border-radius: 6px; }
.st-colhead { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; border-bottom: 1px solid #2a2a2a; }
.st-colhead b { flex: 0 1 auto; min-width: 0; font-weight: 600; font-stretch: semi-condensed; font-size: calc(14.5px + 2pt); letter-spacing: 2px; color: #F2F2F2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-colhead span { margin-left: auto; flex: 1 1 0; min-width: 0; text-align: right; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* the subtitle gives way, never the title */
.st-colbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding: 10px; }
/* the cards of the studio and admin columns */
.st-card { background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 6px; padding: 10px 12px 12px; margin-bottom: 10px; }
.st-card:last-child { margin-bottom: 0; }
.st-cardhead { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid #2c2c2c; }
.st-cardhead b { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; color: #fff; text-transform: uppercase; white-space: nowrap; }
.st-cardhead span { margin-left: auto; min-width: 0; font-size: 9.5px; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-help { margin: 8px 0 0; font-size: 11.5px; line-height: 1.55; color: #a9a9a9; }
.st-help b { color: #e6e6e6; }
.st-state { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: #d0d0d0; }
.st-state.ok { color: #7ED4A6; }
.st-state.warn { color: #E8B44A; }
.st-btn { margin-top: 10px; }
:is(#view-settings, #view-admin) .set-label { margin-top: 8px; font-size: 9.5px; letter-spacing: 1.4px; }
:is(#view-settings, #view-admin) .set-label input, :is(#view-settings, #view-admin) .set-label select { font-size: 12.5px; padding: 6px 8px; }
:is(#view-settings, #view-admin) .row-gap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin-top: 10px; font-size: 11px; color: #bdbdbd; }
.st-keys span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; line-height: 1.5; }
.st-keys .wide { grid-column: 1 / -1; }
.st-keys kbd { font-family: var(--jb-font); font-size: 9.5px; letter-spacing: .5px; padding: 1px 5px; border-radius: 3px; border: 1px solid #4a4a4a; border-bottom-width: 2px; background: #242424; color: #eee; }
.st-keys i { font-style: normal; font-size: 9.5px; letter-spacing: 1px; color: #ff8a87; }
/* Access: an agent per line, two lines in a narrow column */
.st-agents { container-type: inline-size; margin-top: 10px; }
@container (max-width: 560px) {
  .st-agents .agent-head { display: none; }
  .st-agents .agent-row { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); grid-template-areas: "em em ac" "nm rg co"; padding: 7px 0; row-gap: 5px; }
  .st-agents .agent-row > .mono { grid-area: em; }
  .st-agents .agent-row > [data-f="name"] { grid-area: nm; }
  .st-agents .agent-row > [data-f="region"] { grid-area: rg; }
  .st-agents .agent-row > [data-f="companies"] { grid-area: co; }
  .st-agents .agent-row > .agent-acts { grid-area: ac; justify-content: flex-end; }
}

/* ---- YOUR ACCOUNT (js/settings.js) — the mock-up's ACCOUNT screen, the same on a computer ---- */
.st-acc { max-width: 520px; margin: 0 auto; font-family: var(--rep-font); }
.st-acc button, .st-acc input, .st-acc select { font-family: var(--rep-font); }
.st-prof { display: flex; align-items: center; gap: 14px; padding: 14px; background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 14px; }
.st-av { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.st-pw { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-pn { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pe { font-size: 12.5px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pr { font-style: normal; font-size: 9.5px; letter-spacing: 2px; color: #d9c890; }
.st-pen { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: #222; border: 1px solid #3a3a3a; color: #ddd; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.st-pen svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-pen:hover { border-color: #666; }
.st-nameform { margin-top: 10px; padding: 12px 14px; background: #161616; border: 1px solid #2c2c2c; border-radius: 12px; }
.st-nameform label { display: flex; flex-direction: column; gap: 6px; }
.st-nameform label span { font-size: 9px; letter-spacing: 2px; color: #8f8f8f; }
.st-nameform input { height: 40px; box-sizing: border-box; padding: 0 10px; border-radius: 9px; border: 1px solid #3a3a3a; background: #0f0f0f; color: #fff; font-size: 16px; }
.st-nameform input:focus { outline: none; border-color: var(--accent); }
.st-formbtns { display: flex; gap: 6px; margin-top: 8px; }
.st-formbtns button { flex: 1 1 0; height: 40px; border-radius: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; cursor: pointer; }
.st-acc .mv-uname { margin-top: 10px; border-radius: 14px; background: #1b1b1b; padding: 12px 14px; }
.st-sec { margin: 18px 4px 7px; font-size: 10px; letter-spacing: 2.4px; color: #8f8f8f; }
.st-list { background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 14px; overflow: hidden; }
.st-li { width: 100%; min-height: 54px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 14px;
  background: none; border: 0; border-top: 1px solid #262626; border-radius: 0; color: #eee; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-list > .st-li:first-child { border-top: 0; }
.st-li:hover { background: #202020; }
.st-li.st-static, .st-li.st-selrow { cursor: default; }
.st-li.st-static:hover, .st-li.st-selrow:hover { background: none; }
.st-li:disabled { opacity: .55; cursor: default; }
.st-ic { flex: 0 0 auto; width: 22px; height: 22px; display: flex; }
.st-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-lt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-lt b { font-size: 14px; font-weight: 600; color: #f2f2f2; }
.st-lt em { font-style: normal; font-size: 11.5px; line-height: 1.35; color: #8f8f8f; }
.st-val { flex: 0 0 auto; font-size: 13px; color: #a9a9a9; white-space: nowrap; }
.st-chev { flex: 0 0 auto; width: 16px; height: 16px; display: flex; transition: transform .15s; }
.st-chev svg { width: 16px; height: 16px; fill: none; stroke: #7a7a7a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-li[aria-expanded="true"] .st-chev { transform: rotate(90deg); }
.st-val select { -webkit-appearance: none; appearance: none; width: auto; height: 34px; padding: 0 30px 0 12px; border-radius: 9px; border: 1px solid #3a3a3a; color: #fff; font-size: 14px; cursor: pointer;
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23aaaaaa' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 13px; }
.st-val select:focus { outline: none; border-color: var(--accent); }
.st-val select option { background: #1b1b1b; color: #f2f2f2; }
/* the switches: red when on, grey when off */
.st-sw { flex: 0 0 auto; position: relative; width: 44px; height: 26px; border-radius: 13px; background: #3a3a3a; transition: background .15s; }
.st-sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f2f2f2; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform .15s; }
.st-sw.on { background: var(--accent); }
.st-sw.on i { transform: translateX(18px); }
/* ABOUT: the panels a row opens */
.st-more { padding: 2px 16px 14px 48px; border-top: 1px solid #262626; font-size: 12.5px; line-height: 1.6; color: #c4c4c4; }
.st-more p { margin: 8px 0 0; }
.st-more b { color: #fff; }
.st-more a { color: #ff8a87; }
.st-more .st-fine { font-size: 11px; color: #8f8f8f; }
.st-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0 2px; }
.st-pillars span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; border-radius: 8px; background: #141414; border: 1px solid #2c2c2c; font-size: 8.5px; letter-spacing: 1.1px; color: #9a9a9a; }
.st-pillars b { font-size: 17px; letter-spacing: 0; color: #fff; }
.st-out { display: block; width: 100%; margin: 18px 0 0; padding: 14px; border-radius: 14px; background: #1b1b1b; border: 1px solid #2c2c2c; color: #ff6b67; font-size: 13px; font-weight: 700; letter-spacing: 2px; cursor: pointer; }
.st-out:hover { background: #221716; border-color: #5a2a28; }
.st-note { margin: 12px 4px 0; font-size: 12px; line-height: 1.5; color: #9a9a9a; text-align: center; }
.st-empty { padding: 26px 14px; border: 1px dashed #444; border-radius: 10px; font-size: 12px; line-height: 1.7; color: var(--muted-2); text-align: center; }
.st-empty b { display: block; margin-bottom: 4px; font-size: 13px; color: #ddd; }

/* ---- GUIDE: topics on the left, the reading column on the right ---- */
.gd-bar .gd-search { flex: 0 1 360px; }
.gd-bar .gd-search input { width: 100%; }
.gd-bar .ord-bar-counts { min-width: 80px; text-align: right; }
#view-guide .gd-tabs { display: flex; flex-direction: column; gap: 6px; position: static; }
#view-guide .gd-tab { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 9px 10px; background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 6px; color: #cfcfcf; text-align: left; cursor: pointer; }
#view-guide .gd-tab:hover { background: #222; border-color: #444; }
#view-guide .gd-tab.on { outline: 2px solid var(--accent); outline-offset: -2px; border-color: transparent; background: #221716; color: #fff; }
#view-guide .gd-tab > span:last-child { min-width: 0; }
#view-guide .gd-tab b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .4px; }
#view-guide .gd-tab i { display: block; margin-top: 2px; font-style: normal; font-size: 10px; letter-spacing: .3px; color: #8f8f8f; }
.gd-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 7px; background: #262626; color: #bdbdbd; font-size: 12px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
#view-guide .gd-tab.on .gd-num { background: var(--accent); color: #fff; }
.gd-body { padding: 12px; }
#view-guide .gd-topic { display: none; }
#view-guide .gd-topic.on { display: flex; flex-direction: column; gap: 10px; animation: gdIn .16s ease-out; }
#view-guide .gd-topic .st-card { margin-bottom: 0; }
#view-guide .gd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 10px; align-items: start; }
#view-guide .gd-warn { border-color: #7e2c28; background: linear-gradient(180deg, #221716, #1b1b1b 45%); }
.gd-items { display: grid; gap: 7px; margin-top: 8px; }
.gd-item { padding: 8px 10px; background: #141414; border: 1px solid #262626; border-left: 2px solid var(--accent); border-radius: 5px; }
.gd-item b { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.3px; color: #fff; text-transform: uppercase; }
.gd-item p { margin: 3px 0 0; font-size: 12px; line-height: 1.55; color: #bdbdbd; }
#view-guide .gd-steps { list-style: none; counter-reset: gds; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
#view-guide .gd-steps > li { counter-increment: gds; position: relative; min-height: 20px; margin: 0; padding-left: 30px; font-size: 12.5px; line-height: 1.55; color: #cfcfcf; }
#view-guide .gd-steps > li::before { content: counter(gds); position: absolute; left: 0; top: 0; width: 20px; height: 20px; box-sizing: border-box; border-radius: 6px;
  background: #2b1210; border: 1px solid var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
#view-guide .gd-steps b { color: #fff; }
#view-guide .wf-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; margin-top: 8px; }
#view-guide .wf-step { background: #141414; border-color: #2a2a2a; border-radius: 6px; padding: 12px 11px 11px; }
#view-guide .wf-step .wf-ico { width: 32px; height: 32px; border-radius: 8px; background: #221716; border: 1px solid #4a2523; }
#view-guide .wf-step .wf-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#view-guide .wf-step .wf-num { border-radius: 6px; }
#view-guide .wf-step b { font-size: 12.5px; letter-spacing: 1.2px; color: #fff; }
#view-guide .wf-step p { font-size: 11.5px; line-height: 1.5; color: #a9a9a9; }
#view-guide .gd-table { margin-top: 6px; font-size: 12px; }
#view-guide .gd-table td { padding: 7px 8px; border-bottom: 1px solid #262626; line-height: 1.5; color: #c4c4c4; }
#view-guide .gd-table td:first-child { font-weight: 600; color: #fff; white-space: nowrap; }
#view-guide .gd-scale { margin-top: 10px; }
#view-guide .gd-scale td:nth-child(odd) { width: 44px; font-weight: 700; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
#view-guide .gd-scale td:nth-child(even) { font-size: 11px; letter-spacing: .8px; color: #d9c890; }
#view-guide .gd-foot { margin-top: 10px; }

/* ---- the phone: YOUR ACCOUNT alone (the ACCOUNT tab), the GUIDE in one column ---- */
body.mv #view-settings.active { display: block; padding: 14px 16px 18px; overflow: visible; }
body.mv #view-settings .st-bar, body.mv #view-settings .sec-div, body.mv #view-settings .st-staff, body.mv #view-settings .st-admin { display: none !important; }
body.mv #view-settings .st-grid { display: block; height: auto !important; }
body.mv #view-settings .st-col { background: none; border: 0; }
body.mv #view-settings .st-colhead { padding: 0 4px 12px; border: 0; }
body.mv #view-settings .st-colhead b { font-size: 18px; letter-spacing: 3px; }
body.mv #view-settings .st-colbody { overflow: visible; padding: 0; }
body.mv .st-val select { font-size: 16px; }                                  /* 16 px: iOS does not zoom into the field */
body.mv #st-msg { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; text-align: center; }
body.mv #view-guide.active { display: block; padding: 12px 14px 18px; overflow: visible; }
body.mv #view-guide .gd-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
body.mv #view-guide .st-bartitle { flex-wrap: wrap; white-space: normal; gap: 4px 12px; }
body.mv #view-guide .gd-bar .gd-search { flex: 0 0 auto; }
body.mv #view-guide .gd-bar .gd-search input { font-size: 16px; }
body.mv #view-guide .gd-bar .ord-bar-counts { display: none; }
body.mv #view-guide .gd-grid { display: block; height: auto !important; }
body.mv #view-guide .sec-div { display: none; }
body.mv #view-guide .st-col { background: none; border: 0; }
body.mv #view-guide .gd-topics .st-colhead { display: none; }
body.mv #view-guide .st-colbody { overflow: visible; padding: 0; }
body.mv #view-guide .gd-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
body.mv #view-guide .gd-tab { padding: 7px 8px; gap: 8px; }
body.mv #view-guide .gd-tab b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mv #view-guide .gd-tab i { display: none; }
body.mv #view-guide .gd-num { width: 24px; height: 24px; font-size: 11px; }
body.mv #view-guide .gd-main .st-colhead { flex-wrap: wrap; padding: 16px 2px 8px; border: 0; }
body.mv #view-guide .gd-main .st-colhead b { white-space: normal; font-size: 17px; }
body.mv #view-guide .gd-main .st-colhead span { margin-left: 0; flex-basis: 100%; white-space: normal; text-align: left; }
body.mv #view-guide .gd-two { grid-template-columns: minmax(0, 1fr); }
body.mv #view-guide .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mv #view-guide .st-keys { grid-template-columns: minmax(0, 1fr); }
body.mv #view-guide .gd-table td:first-child { white-space: normal; }
body.mv #view-guide .st-cardhead { flex-wrap: wrap; }
body.mv #view-guide .st-cardhead span { margin-left: 0; text-align: left; white-space: normal; }

/* ===== BLACKPORT CARDS: EDIT · SELECT · the calendar · the three-line card line (operator 2026-10-05) ===== */
/* the card's line wraps to three lines at most — the card keeps its height (the fields set it) */
.pf-c2 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; }
/* EDIT · SELECT */
.pf-modes { flex: 0 0 auto; display: inline-flex; gap: 6px; }
.pf-tog { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 10px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); color: var(--pf-ink2);
  font-size: calc(11px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.pf-tog .pf-sw { position: relative; flex: 0 0 auto; width: 26px; height: 14px; border-radius: 7px; background: #333; transition: background .15s; }
.pf-tog .pf-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #9a9a9a; transition: transform .15s, background .15s; }
.pf-tog.on { color: #fff; border-color: #5a2a29; }
.pf-tog.on .pf-sw { background: var(--accent); }
.pf-tog.on .pf-sw::after { transform: translateX(12px); background: #fff; }
.pf-tog:focus-visible { outline: 1px solid #6a6a6a; outline-offset: 1px; }
.pf-tog.nudge { animation: pf-nudge 1.2s ease; }
@keyframes pf-nudge { 0%, 100% { box-shadow: none; } 15%, 55% { box-shadow: 0 0 0 2px var(--accent); } 35%, 75% { box-shadow: none; } }
/* EDIT off: the fields only read (a computer) and REMOVE keeps its place, unseen */
.pf-cards:not(.editing) .pf-rmbtn { visibility: hidden; pointer-events: none; }
.pf-cards:not(.ph) .pf-fg.ro { cursor: default; }
.pf-cards:not(.ph) .pf-fg.ro .pf-fv { background: #141414; border-color: #2e2e2e; }
/* BUY/DATE: a button that reads like the other fields and opens the calendar */
.pf-dbtn { text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-dbtn.ph { color: #6a6a6a; }
.pf-dbtn:hover { border-color: #5a5a5a; }
.pf-dbtn:focus-visible { outline: none; border-color: var(--accent); }
/* SELECT: a tap picks the card */
.pf-cart { position: relative; }
.pf-pick { display: none; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .6); border: 1.5px solid #d9d9d9; box-sizing: border-box; align-items: center; justify-content: center; pointer-events: none; }
.pf-pick svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pf-cards.selecting .pf-pick { display: flex; }
.pf-cards.selecting .pf-card { cursor: pointer; }
.pf-cards.selecting .pf-card.picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pf-card.picked .pf-pick { background: var(--accent); border-color: var(--accent); }
.pf-card.picked .pf-pick svg { opacity: 1; }
.pf-cards.ph .pf-pick { left: 2px; top: 2px; width: 17px; height: 17px; }
/* the selection bar: what is picked and what to do to all of it */
.pf-selbar { position: sticky; top: calc(var(--mvh, 0px) + 6px); z-index: 6; margin: -2px 0 12px; padding: 10px 12px; border-radius: 14px; background: #121212; border: 1px solid #3a3a3a; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.pf-selbar[hidden] { display: none; }
.pf-selhead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.pf-selhead b { font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: #fff; margin-right: 4px; }
.pf-selhint { flex: 1 1 auto; min-width: 0; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sbtn { height: 30px; padding: 0 11px; border-radius: 8px; background: #222; border: 1px solid #3a3a3a; color: var(--pf-ink); font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.1px; cursor: pointer; white-space: nowrap; }
.pf-sbtn:hover:not(:disabled) { background: #2c2c2c; border-color: #555; }
.pf-sbtn:disabled { opacity: .45; cursor: default; }
.pf-sbtn.done { margin-left: auto; background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-sbtn.act { background: #2a2a2a; }
.pf-sbtn.danger { color: var(--pf-neg); }
.pf-selacts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #262626; }
.pf-sa { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-sa > i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: .9px; color: var(--pf-ink3); white-space: nowrap; }
.pf-sain { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pf-sain input, .pf-sain select { box-sizing: border-box; height: 30px; min-width: 0; border-radius: 8px; border: 1px solid #3d3d3d; background: #0d0d0d; color: #f2f2f2; font: inherit; font-size: calc(12px * var(--pf-fs, 1)); padding: 0 8px; color-scheme: dark; }
.pf-sain input { width: 120px; }
.pf-sain select { max-width: 170px; padding: 0 4px; }
.pf-sain input:focus, .pf-sain select:focus { outline: none; border-color: var(--accent); }
.pf-sain input[type=number] { -moz-appearance: textfield; }
.pf-sain input[type=number]::-webkit-inner-spin-button, .pf-sain input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 760px) {
  .pf-cardsbar { flex-wrap: wrap; }
  .pf-folders { flex: 1 1 100%; }
  .pf-modes { flex: 1 1 auto; }
  .pf-tog { flex: 1 1 0; justify-content: center; }
  .pf-selacts { gap: 8px; }
  .pf-sa, .pf-sa.wide { flex: 1 1 100%; }
  .pf-sain input { flex: 1 1 auto; width: auto; }
  .pf-sain select { flex: 1 1 auto; max-width: none; }
  .pf-sain input, .pf-sain select, .pf-sbtn { height: 38px; font-size: calc(16px * var(--pf-fs, 1)); }      /* 16 px: iOS does not zoom */
  .pf-sbtn { font-size: calc(11px * var(--pf-fs, 1)); }
  .pf-sain .pf-sbtn { flex: 0 0 auto; }
  .pf-sain [data-sa="date"], .pf-sain [data-sa="single"], .pf-sain [data-sa="remove"] { flex: 1 1 auto; }
}
/* the calendar (on <body>, above the sheets) */
.pf-cal { position: fixed; z-index: 120; width: 286px; box-sizing: border-box; padding: 10px; border-radius: 14px; background: #161616; border: 1px solid #3a3a3a; box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  color: #f2f2f2; font-family: var(--rep-font); }
.pf-calh { display: grid; grid-template-columns: 32px minmax(0, 1fr) 76px 32px; gap: 6px; align-items: center; }
.pf-calh select { height: 32px; min-width: 0; border-radius: 8px; border: 1px solid #3d3d3d; background: #0d0d0d; color: #f2f2f2; font: inherit; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: .8px; padding: 0 4px; color-scheme: dark; cursor: pointer; }
.pf-calnav { width: 32px; height: 32px; border-radius: 8px; background: #222; border: 1px solid #3a3a3a; color: #f2f2f2; font-size: calc(20px * var(--pf-fs, 1)); line-height: 1; cursor: pointer; padding: 0 0 2px; }
.pf-calnav:disabled { opacity: .3; cursor: default; }
.pf-calw { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 10px 0 4px; }
.pf-calw i { font-style: normal; text-align: center; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1px; color: #8f8f8f; }
.pf-calg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.pf-calg button { height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; color: #e6e6e6; font: inherit; font-size: calc(13px * var(--pf-fs, 1)); cursor: pointer; padding: 0; }
.pf-calg button:hover:not(:disabled) { background: #262626; }
.pf-calg button.out { color: #5f5f5f; }
.pf-calg button.today { border-color: #8a8a8a; }
.pf-calg button.sel { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pf-calg button:disabled { color: #3c3c3c; cursor: default; }
.pf-calg button:focus-visible, .pf-calh select:focus-visible, .pf-calnav:focus-visible, .pf-calbtn:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 1px; }
.pf-calf { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #2a2a2a; }
.pf-calbtn { flex: 1 1 auto; height: 34px; border-radius: 9px; background: #222; border: 1px solid #3a3a3a; color: #f2f2f2; font: inherit; font-size: calc(11px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; cursor: pointer; white-space: nowrap; }
.pf-calbtn.today { flex: 2 1 auto; background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-calbtn:hover { filter: brightness(1.1); }

/* the value line never wraps (a wrapped REMOVE grew the card): the chips give way */
/* a phone: the selection bar scrolls with the page (sticky, it would cover the cards) */
body.mv .pf-selbar { position: static; box-shadow: none; }
@media (max-width: 760px) { .pf-selbar { position: static; box-shadow: none; } }

/* ===== BLACKPORT round 2 (operator 2026-10-05): the search's CARD PREVIEW · GROUP · a computer's card uses its room ===== */
/* ADD A CARD: the preview beside the search (a computer), above it once a row is tapped (a phone) */
.pf-searchwin .pf-sbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pf-smain { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pf-sprev { display: none; }
.pf-sprev.on { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 10px; align-items: start;
  margin-bottom: 8px; padding: 8px 10px; border: 1px solid #2c2c2c; border-radius: 12px; background: #121212; max-height: 46vh; overflow: auto; }
.pf-sprevhead { grid-area: head; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pf-sprevhead b { font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 2px; color: var(--pf-ink2); white-space: nowrap; }
.pf-sprevhead span { flex: 1 1 auto; min-width: 0; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sprevhead .pf-sprevx { font-size: calc(24px * var(--pf-fs, 1)); }
.pf-sprevbox { grid-area: box; position: relative; width: 100%; aspect-ratio: 5 / 7; box-sizing: border-box; background: #181818; border: 1px solid #2c2c2c; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.pf-sprevbox img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pf-sprevbox img[hidden] { display: none; }
.pf-sprev-empty { color: #6a6a6a; font-size: calc(12px * var(--pf-fs, 1)); line-height: 1.45; text-align: center; padding: 12px; }
.pf-sprev-empty[hidden] { display: none; }
.pf-sattrs { grid-area: tbl; width: 100%; border-collapse: collapse; font-size: calc(11.5px * var(--pf-fs, 1)); }
.pf-sattrs th { text-align: left; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: #e8e8e8; background: #2e2e2e; padding: 3px 8px; font-weight: 700; }
.pf-sattrs td { padding: 3px 8px; border-bottom: 1px solid #242424; vertical-align: top; line-height: 1.32; }
.pf-sattrs td:first-child { color: #8f8f8f; text-align: right; width: 36%; white-space: nowrap; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .4px; }
.pf-sattrs td:last-child { color: #f2f2f2; overflow-wrap: anywhere; }
.pf-mut { color: #6a6a6a; }
.pf-row { cursor: pointer; }
.pf-row.pin { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (min-width: 961px) {
  .pf-sheetwin.pf-searchwin { width: min(1260px, 96vw); }
  .pf-searchwin .pf-sbody { display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); gap: 18px; }
  .pf-sprev, .pf-sprev.on { display: flex; flex-direction: column; gap: 8px; min-height: 0; max-height: none; overflow-y: auto; padding: 0 4px 0 0; border: 0; background: none; margin: 0; }
  .pf-sprevx { display: none; }
  .pf-sprevbox { width: min(100%, calc(44vh * 5 / 7)); margin: 0 auto; flex: 0 0 auto; }
  .pf-sattrs { font-size: calc(12px * var(--pf-fs, 1)); }
}

/* GROUP: one entry for the copies of a printing — a card with another behind it */
.pf-card.pf-grp { box-shadow: 5px 5px 0 -1px #121212, 5px 5px 0 0 #2e2e2e; margin: 0 5px 5px 0; }
.pf-cards.selecting .pf-card.pf-grp.picked { box-shadow: inset 0 0 0 1px var(--accent), 5px 5px 0 -1px #121212, 5px 5px 0 0 var(--accent); }
.pf-gcount { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: calc(11px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: .5px; color: #fff; background: rgba(0, 0, 0, .72); border: 1px solid #5a5a5a; border-radius: 5px; padding: 1px 5px; }
.pf-gtag { border-color: #6a6a6a; color: #f2f2f2; }
.pf-gbtn { flex: 0 0 auto; height: 26px; padding: 0 11px; border-radius: 7px; background: #262626; border: 1px solid #4a4a4a; color: var(--pf-ink); font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; cursor: pointer; white-space: nowrap; }
.pf-gbtn:hover { background: #303030; border-color: #666; }
.pf-grp.open .pf-gbtn { border-color: var(--accent); }
.pf-fg.pf-gfg { grid-template-areas: "l1 l2 l3 l3" "v1 v2 v3 v3" "l4 l5 l6 l6" "v4 v5 v6 v6" "l7 l7 l8 l8" "v7 v7 v8 v8"; cursor: pointer; }
.pf-gfg .g-l1 { grid-area: l1; } .pf-gfg .g-l2 { grid-area: l2; } .pf-gfg .g-l3 { grid-area: l3; } .pf-gfg .g-l4 { grid-area: l4; }
.pf-gfg .g-l5 { grid-area: l5; } .pf-gfg .g-l6 { grid-area: l6; } .pf-gfg .g-l7 { grid-area: l7; margin-top: 4px; } .pf-gfg .g-l8 { grid-area: l8; margin-top: 4px; }
.pf-gfg .g-v1 { grid-area: v1; } .pf-gfg .g-v2 { grid-area: v2; } .pf-gfg .g-v3 { grid-area: v3; } .pf-gfg .g-v4 { grid-area: v4; }
.pf-gfg .g-v5 { grid-area: v5; } .pf-gfg .g-v6 { grid-area: v6; } .pf-gfg .g-v7 { grid-area: v7; } .pf-gfg .g-v8 { grid-area: v8; }
.pf-gfg .g-v1 { font-weight: 700; }
.pf-cards:not(.ph) .pf-fg.ro.pf-gfg .pf-fv { background: #141414; }
.pf-gfg:focus-visible { outline: 1px solid #6a6a6a; outline-offset: 2px; }
/* the copies, opened under their group */
.pf-grpcopies { grid-column: 1 / -1; display: grid; gap: 10px; margin: -2px 0 6px 14px; padding-left: 12px; border-left: 2px solid #3a3a3a; }
.pf-cards.c2 .pf-grpcopies { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(560px, calc((100% - 10px) / 2))), 1fr)); }
.pf-cards.ph .pf-grpcopies { gap: 6px; margin-left: 6px; padding-left: 8px; }

/* a computer's card uses its room (operator 2026-10-05: 'optimise the spacing
   on each card — font sizes, rows — using up the space given'): the fields
   grow with the card, the type and the picture with them; the card keeps its
   height (the three field rows still set it) */
.pf-cards.c1 .pf-card, .pf-cards.c2 .pf-card { container: pfcard / inline-size; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; }
.pf-cards.c1 .pf-cart, .pf-cards.c2 .pf-cart { width: 80px; height: 112px; border-radius: 7px; }
.pf-cards.c1 .pf-fg, .pf-cards.c2 .pf-fg { width: clamp(344px, 50cqw, 540px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.6fr); column-gap: 7px; }
.pf-cards.c1 .pf-fg { width: clamp(400px, 54cqw, 720px); }
.pf-cards.c1 .pf-cinfo { max-width: none; }
.pf-cards.c1 .pf-l, .pf-cards.c2 .pf-l { font-size: calc(clamp(9px, 1.32cqw, 10px) * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); }
.pf-cards.c1 .pf-fg select, .pf-cards.c1 .pf-fg input, .pf-cards.c1 .pf-fv, .pf-cards.c1 .pf-date,
.pf-cards.c2 .pf-fg select, .pf-cards.c2 .pf-fg input, .pf-cards.c2 .pf-fv, .pf-cards.c2 .pf-date { height: 23px; font-size: calc(clamp(12px, 1.85cqw, 13.5px) * var(--pf-fs, 1)); }
.pf-cards.c1 .pf-c1 b, .pf-cards.c2 .pf-c1 b { font-size: calc(clamp(16px, 2.35cqw, 17px) * var(--pf-fs, 1)); line-height: 1.2; }
.pf-cards.c1 .pf-c1 i, .pf-cards.c2 .pf-c1 i { font-size: calc(clamp(12px, 1.6cqw, 13.5px) * var(--pf-fs, 1)); }
.pf-cards.c1 .pf-c2, .pf-cards.c2 .pf-c2 { font-size: calc(clamp(12.5px, 1.8cqw, 13px) * var(--pf-fs, 1)); margin-top: 3px; }
.pf-cards.c1 .pf-d, .pf-cards.c2 .pf-d { font-size: calc(clamp(12px, 1.75cqw, 13px) * var(--pf-fs, 1)); height: 22px; }
.pf-cards.c1 .pf-cbot, .pf-cards.c2 .pf-cbot { margin-top: auto; padding-top: 6px; }
.pf-cards.c1 .pf-cinfo, .pf-cards.c2 .pf-cinfo { justify-content: flex-start; padding: 1px 0; }
.pf-cards.c1 .pf-rmbtn, .pf-cards.c2 .pf-rmbtn, .pf-cards.c1 .pf-gbtn, .pf-cards.c2 .pf-gbtn { height: 27px; font-size: calc(clamp(9.5px, 1.3cqw, 10.5px) * var(--pf-fs, 1)); }
/* a phone's ADD A CARD scrolls as a whole: the form, the tapped card's preview and the rows */
@media (max-width: 960px) {
  .pf-searchwin .pf-sbody { overflow-y: auto; overscroll-behavior: contain; }
  .pf-searchwin .pf-smain { flex: 0 0 auto; min-height: auto; }
  .pf-searchwin .pf-rows { flex: 0 0 auto; overflow: visible; }
  .pf-searchwin .pf-sprev.on { flex: 0 0 auto; max-height: none; overflow: visible; }
}

/* ===== BL.peek — the full-card preview of a card in a list (2026-10-05): a computer hovers, a phone swipes up ===== */
.peek-pop { position: fixed; z-index: 92; width: 296px; box-sizing: border-box; padding: 10px 10px 8px; border-radius: 14px; background: #141414; border: 1px solid #3a3a3a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65); color: #f2f2f2; font-family: var(--rep-font); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
  max-height: calc(100vh - 16px); overflow: hidden; }
.peek-pop[hidden] { display: none; }
.peek-pop.on { opacity: 1; transform: none; }
.peek-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; min-width: 0; }
.peek-head b { font-size: 10px; letter-spacing: 2px; color: #bdbdbd; white-space: nowrap; }
.peek-head span { flex: 1 1 auto; min-width: 0; font-size: 11px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-box { width: 100%; aspect-ratio: 5 / 7; /* full size: cardpeek.js place() shrinks it only for a window shorter than the preview */ margin: 0 auto; box-sizing: border-box; border-radius: 10px; background: #1b1b1b; border: 1px solid #2c2c2c;
  overflow: hidden; display: flex; align-items: center; justify-content: center; }
.peek-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.peek-none { font-style: normal; color: #6a6a6a; font-size: 12px; }
.peek-title { margin: 8px 2px 6px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-attrs { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.peek-attrs th { text-align: left; font-size: 8.5px; letter-spacing: 1.6px; color: #e8e8e8; background: #2e2e2e; padding: 3px 7px; font-weight: 700; }
.peek-attrs td { padding: 2px 7px; border-bottom: 1px solid #232323; vertical-align: top; line-height: 1.3; }
.peek-attrs td:first-child { color: #8f8f8f; text-align: right; width: 38%; white-space: nowrap; font-size: 10.5px; }
.peek-attrs td:last-child { color: #f2f2f2; overflow-wrap: anywhere; }
/* a phone: the sheet */
.peek-sheet { position: fixed; inset: 0; z-index: 96; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); transition: background .22s; }
.peek-sheet[hidden] { display: none; }
.peek-sheet.on { background: rgba(0, 0, 0, .62); }
.peek-win { position: relative; width: min(100%, 520px); max-height: 90vh; box-sizing: border-box; display: flex; flex-direction: column; background: #151515; border: 1px solid #2c2c2c;
  border-radius: 20px 20px 0 0; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); color: #f2f2f2; font-family: var(--rep-font); }
.peek-sheet.on .peek-win { transform: none; }
.peek-grab { flex: 0 0 auto; display: flex; justify-content: center; padding: 10px 0 8px; touch-action: none; }
.peek-grab i { width: 44px; height: 5px; border-radius: 3px; background: #4a4a4a; }
.peek-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.peek-body .peek-box { width: min(76%, 300px, calc((90vh - 300px) * .714)); }
.peek-body .peek-title { font-size: 16px; text-align: center; }
.peek-body .peek-attrs { font-size: 13px; }
.peek-body .peek-attrs td:first-child { font-size: 12px; }
.peek-x { position: absolute; right: 8px; top: 2px; background: none; border: 0; color: #bdbdbd; font-size: 28px; line-height: 1; padding: 4px 8px; cursor: pointer; }
body.peek-noscroll { overflow: hidden; }
/* the finger has rested on a card: it lifts a little, ready for the swipe */
.peek-armed { transform: scale(.985); box-shadow: 0 0 0 2px var(--accent) !important; transition: transform .1s, box-shadow .1s; }
body.mv .pf-card, body.mv #pf-top li, body.mv #pf-movers li, body.mv #pf-best li, body.mv #pf-worst li, body.mv .bb-row, body.mv .bb-prep, body.mv .bb-card, body.mv .bb-pcard {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }


/* ===== THE A4 REPORT AS A PDF FILE (js/jobreport.js sharePdf, operator 2026-10-06:
   'allow the .pdf to be shared to other apps outside the browser — LINE / Messenger') =====
   The pages are laid out off-screen (#jr-pdfhost; printRecord's #jr-offscreen
   too), drawn page by page, then the SHARE sheet offers the system share
   sheet and SAVE PDF. A phone gets it as a bottom sheet. */
#jr-pdfhost, #jr-offscreen { position: fixed; left: -12000px; top: 0; width: 830px; pointer-events: none; }
.rp-wrap:not(.jr-mode) #rp-share { display: none; }
.jrs { position: fixed; inset: 0; z-index: 9500; background: rgba(0, 0, 0, .62); display: flex; align-items: center; justify-content: center;
  padding: 18px; font-family: var(--rep-font); }
.jrs[hidden] { display: none; }
.jrs-box { width: min(440px, 100%); background: #1c1c1c; border: 1px solid #333; border-radius: 14px; padding: 16px 18px 18px; color: #eee;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.jrs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.jrs-head b { font-size: 15px; letter-spacing: 1.6px; font-weight: 700; }
.jrs-x { width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #a6a6a6; font-size: 16px; cursor: pointer; }
.jrs-x:hover { background: #2a2a2a; color: #fff; }
.jrs-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #141414; border: 1px solid #2c2c2c; border-radius: 10px; }
.jrs-ico { flex: none; width: 36px; height: 46px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
  border-radius: 4px 12px 4px 4px; background: #DC4F4C; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; }
.jrs-fn { min-width: 0; }
.jrs-fn b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jrs-fn i { display: block; margin-top: 3px; font-style: normal; font-size: 12px; letter-spacing: .4px; color: #9a9a9a; }
.jrs-prog { height: 4px; margin: 14px 0 9px; background: #2a2a2a; border-radius: 2px; overflow: hidden; }
.jrs-prog i { display: block; width: 0; height: 100%; background: #DC4F4C; transition: width .25s; }
.jrs.ready .jrs-prog i { background: #7ED4A6; }
.jrs-msg { min-height: 19px; margin: 0; font-size: 13.5px; line-height: 1.45; color: #d6d6d6; }
.jrs-acts { display: flex; gap: 10px; margin-top: 14px; }
.jrs-btn { flex: 1 1 0; height: 48px; padding: 0 10px; border: 1px solid #3a3a3a; border-radius: 10px; background: #262626; color: #eee; cursor: pointer;
  font: 600 13.5px/1 var(--rep-font); letter-spacing: 1.4px; }
.jrs-btn:hover:not(:disabled) { background: #303030; }
.jrs-btn.red { background: #DC4F4C; border-color: #DC4F4C; color: #fff; }
.jrs-btn.red:hover:not(:disabled) { background: #e2605d; }
.jrs-btn:disabled { opacity: .42; cursor: default; }
.jrs-btn[hidden] { display: none; }
.jrs-note { margin: 11px 0 0; font-size: 12.5px; line-height: 1.5; color: #9a9a9a; }
.jrs-note:empty { display: none; }
@media (max-width: 760px) {
  .jrs { align-items: flex-end; padding: 0; }
  .jrs-box { width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
  .jrs-msg { font-size: 14.5px; }
  .jrs-btn { height: 52px; font-size: 15px; }
}
body.mv .jrs { align-items: flex-end; padding: 0; }
body.mv .jrs-box { width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
/* the A4 view on a phone: the header above already says BLACKLENS, printing
   is the computer's — SHARE PDF and BLACKVAULT fill the row */
body.mv .rp-wrap.jr-mode .rp-brand { margin: 10px 12px 12px; }
body.mv .rp-wrap.jr-mode .rp-brand .brand-mark, body.mv .rp-wrap.jr-mode .rp-brand .brand-word, body.mv .rp-wrap.jr-mode #rp-print { display: none; }
body.mv .rp-wrap.jr-mode .rp-actions { flex: 1 1 auto; margin-left: 0; gap: 10px; }
body.mv .rp-wrap.jr-mode .rp-actions > #rp-share, body.mv .rp-wrap.jr-mode .rp-actions > a.rp-vault { flex: 1 1 0; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-size: 14px; letter-spacing: 1px; }

/* ===== BLACKPORT round 3 (operator 2026-10-06) =====
   BATCH: each batch under one entry (never on together with GROUP) — a computer and a phone.
   A PHONE's CARDS: 'the text is too small and the menus too crowded — a compact menu with
   larger text per item instead of a pop-up; most people rely on batch entry/edit'. A card
   reads in large type with its details as chips; a tap opens its fields under it (one card
   at a time); SELECT docks its bar at the bottom, one change at a time. */
/* the BATCH entry: the batch's first cards as a small stack */
.pf-cart.stack { background: #1b1b1b; }
.pf-cart.stack img { position: absolute; width: 74%; height: 74%; object-fit: cover; border-radius: 4px; border: 1px solid #0f0f0f; box-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.pf-cart.stack img.s0 { left: 4%; top: 4%; }
.pf-cart.stack img.s1 { left: 13%; top: 13%; }
.pf-cart.stack img.s2 { left: 22%; top: 22%; }
.pf-cart.stack img:only-of-type { left: 0; top: 0; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.pf-bgrp .pf-c1 b { letter-spacing: 1.2px; }

/* ---- a phone: the toolbar — folder chips, the four switches as one row of large pills, ADD A CARD ---- */
.pf-app.ph .pf-cardsbar { flex-wrap: wrap; }
.pf-app.ph .pf-folders { flex: 1 1 100%; gap: 7px; }
.pf-app.ph .pf-chip { height: 44px; padding: 0 15px; border-radius: 12px; }
.pf-app.ph .pf-modes { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pf-app.ph .pf-tog { justify-content: center; padding: 0 2px; gap: 0; border-radius: 12px; }
.pf-app.ph .pf-tog .pf-sw { display: none; }
.pf-app.ph .pf-tog.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-app.ph #pf-addbtn2 { font-size: calc(14.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; }

/* ---- a phone's card: picture · name · its line · value + gain, then the chips (and remarks) ---- */
.pf-cards.ph { gap: 10px; }
.pf-cards.ph .pf-card.pm { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "art info" "sum sum"; gap: 10px 12px; padding: 12px; border-radius: 14px; align-items: start; }
.pf-cards.ph .pf-card.pm.open { grid-template-areas: "art info" "sum sum" "ed ed"; border-color: #5a5a5a; }
.pf-cards.ph .pf-card.pf-grp.pm, .pf-cards.ph .pf-card.pf-grp.pm.open { grid-template-areas: "art info" "sum sum" "more more"; }
.pf-cards.ph .pm .pf-cart { grid-area: art; width: 58px; height: 81px; border-radius: 6px; align-self: start; }
.pf-cards.ph .pm .pf-cinfo { grid-area: info; min-width: 0; justify-content: flex-start; gap: 3px; }
.pf-cards.ph .pm .pf-c1 { align-items: center; }
.pf-cards.ph .pm .pf-c1 b { font-size: calc(17px * var(--pf-fs, 1)); line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.pf-cards.ph .pm .pf-c1 i { display: none; }
.pf-cards.ph .pf-card.pm:not(.pf-grp) .pf-c1 .pf-btag { display: none; }        /* the chips say BATCH */
.pf-cards.ph .pm .pf-btag { font-size: calc(11.5px * var(--pf-fs, 1)); line-height: calc(20px * var(--pf-fs, 1)); padding: 0 7px; border-radius: 6px; }
.pf-cards.ph .pm .pf-c2 { font-size: calc(13.5px * var(--pf-fs, 1)); line-height: 1.35; color: #a9a9a9; margin-top: 0; -webkit-line-clamp: 2; line-clamp: 2; }
.pf-cards.ph .pm .pf-cbot { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 0; }
.pf-cards.ph .pm .pf-d { height: 26px; padding: 0 9px; font-size: calc(13.5px * var(--pf-fs, 1)); gap: 5px; border-radius: 7px; }
.pf-cards.ph .pm .pf-d .pf-tri { width: 10px; height: 10px; }
.pf-cards.ph .pm .pf-rmbtn, .pf-cards.ph .pm .pf-gbtn { display: none; }
.pf-cards.ph .pm .pf-pick { left: 3px; top: 3px; width: 24px; height: 24px; }
.pf-cards.ph .pm .pf-pick svg { width: 15px; height: 15px; }
.pf-cards.ph .pm .pf-gcount { font-size: calc(12.5px * var(--pf-fs, 1)); padding: 1px 6px; }
.pm-sum { grid-area: sum; min-width: 0; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; background: #222; border: 1px solid #343434; color: #ececec; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: .3px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.pm-chip.g { background: #2b2b2b; border-color: #444; color: #fff; }
.pm-chip.k { font-weight: 700; }
.pm-chip.p { color: #fff; }
.pm-chip.none { background: transparent; border-style: dashed; color: #8f8f8f; font-weight: 500; }
.pm-chip.b { border-color: #6a6a6a; color: #fff; letter-spacing: .8px; }
.pm-chip.f { color: #c4c4c4; font-weight: 500; }
.pm-note { margin-top: 8px; font-size: calc(14px * var(--pf-fs, 1)); line-height: 1.4; color: #c4c4c4; overflow-wrap: anywhere; }
.pm-more { grid-area: more; height: 46px; border-radius: 11px; border: 1px solid #444; background: #1f1f1f; color: #f2f2f2; font: inherit; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.pf-grp.pm.open .pm-more { border-color: var(--accent); }
.pf-cards.ph .pf-card.pm.picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* ---- the open card's fields, under it: two columns of full-size controls ---- */
.pm-ed { grid-area: ed; min-width: 0; margin-top: 2px; padding-top: 12px; border-top: 1px solid #2e2e2e; }
.pm-ed .pf-trend { font-size: calc(13px * var(--pf-fs, 1)); gap: 6px 10px; }
.pm-ed .pf-trend .pf-chg { font-size: calc(13px * var(--pf-fs, 1)); }
.pm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 10px; }
.pm-grid .a-gco { grid-area: gco; } .pm-grid .a-gr { grid-area: gr; } .pm-grid .a-paid { grid-area: paid; } .pm-grid .a-cur { grid-area: cur; }
.pm-grid .a-qty { grid-area: qty; } .pm-grid .a-fol { grid-area: fol; } .pm-grid .a-date { grid-area: date; } .pm-grid .a-bat { grid-area: bat; } .pm-grid .a-rm { grid-area: rm; }
.pm-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-f > i { font-style: normal; font-size: calc(12px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; color: #a0a0a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-f select, .pm-f input, .pm-f .pm-date { box-sizing: border-box; width: 100%; min-width: 0; height: 50px; margin: 0; border-radius: 11px; border: 1px solid #424242; background: #0d0d0d; color: #f4f4f4;
  font: inherit; font-size: calc(17px * var(--pf-fs, 1)); padding: 0 12px; color-scheme: dark; }
.pm-f select { padding: 0 8px; }
.pm-f input::placeholder { color: #5f5f5f; }
.pm-f select:focus, .pm-f input:focus, .pm-f .pm-date:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pm-f input[type=number] { -moz-appearance: textfield; }
.pm-f input[type=number]::-webkit-inner-spin-button, .pm-f input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pm-step { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 6px; }
.pm-step button { height: 50px; border-radius: 11px; border: 1px solid #424242; background: #232323; color: #fff; font: inherit; font-size: calc(24px * var(--pf-fs, 1)); line-height: 1; cursor: pointer; padding: 0; }
.pm-step input { text-align: center; padding: 0 2px; }
.pm-rowc { display: flex; gap: 8px; min-width: 0; }
.pm-rowc .pm-date { flex: 1 1 auto; display: flex; align-items: center; text-align: left; cursor: pointer; }
.pm-rowc .pm-date.ph { color: #6a6a6a; }
.pm-today { flex: 0 0 auto; height: 50px; padding: 0 16px; border-radius: 11px; border: 1px solid #424242; background: #232323; color: #fff; font: inherit; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; cursor: pointer; }
.pm-ro { display: flex; align-items: center; height: 50px; box-sizing: border-box; padding: 0 12px; border-radius: 11px; border: 1px dashed #4a4a4a; background: #141414; font-size: calc(17px * var(--pf-fs, 1)); font-weight: 600; color: #e0e0e0; }
.pm-hint { margin: 0; font-style: normal; font-size: calc(13px * var(--pf-fs, 1)); line-height: 1.4; color: #9a9a9a; }
.pm-ed.ro .pm-hint { margin-bottom: 2px; }
.pm-edfoot { display: flex; gap: 8px; margin-top: 14px; }
.pm-btn { flex: 1 1 0; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid #3c3c3c; background: #232323; color: #f2f2f2; font: inherit; font-size: calc(14.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.1px; cursor: pointer; white-space: nowrap; }
.pm-btn.red { background: var(--accent); border-color: var(--accent); color: #fff; }
.pm-btn.danger { flex: 0 0 auto; padding: 0 14px; color: var(--pf-neg); }
body.mv .pf-card .pm-ed input { -webkit-user-select: text; user-select: text; }

/* a batch's PAID/BATCH on a phone: large type, a full-size entry */
.pf-cards.ph .pf-batchrow { border-radius: 14px; }
.pf-cards.ph .pf-bl b { font-size: calc(15px * var(--pf-fs, 1)); letter-spacing: 1.2px; }
.pf-cards.ph .pf-bl i { line-height: 1.4; }
.pf-cards.ph .pf-bin select { width: 96px; }

/* ---- SELECT on a phone: the bar docks at the bottom (the tab bar steps aside while picking) ---- */
body.mv.pf-selecting:has(#view-port.active) #mv-nav { display: none; }
.pf-app.ph .pf-selbar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 86; margin: 0; padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0; border: 1px solid #3a3a3a; border-bottom: 0; background: #141414; box-shadow: 0 -14px 36px rgba(0, 0, 0, .62); }
.pf-app.selph { padding-bottom: 250px; }
/* a phone: the messages come down from the top — the fields and the bars below stay readable */
.pf-app.ph .pf-msg { top: calc(var(--mvh, 0px) + 10px); bottom: auto; }
.pf-app.ph .pf-selhead { flex-wrap: nowrap; gap: 6px; }
.pf-app.ph .pf-selhead b { flex: 1 1 auto; min-width: 0; margin: 0; font-size: calc(15px * var(--pf-fs, 1)); letter-spacing: 1.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-app.ph .pf-selhead .pf-sbtn { height: 40px; padding: 0 12px; font-size: calc(13px * var(--pf-fs, 1)); letter-spacing: .8px; border-radius: 10px; }
.pf-app.ph .pf-selhead .pf-sbtn.done { margin-left: 0; }
.pm-stabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: 10px; padding: 3px; border-radius: 12px; background: #0b0b0b; border: 1px solid #2c2c2c; }
.pm-stabs button { height: 40px; min-width: 0; border: 0; border-radius: 9px; background: none; color: #a6a6a6; font: inherit; font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pm-stabs button.on { background: #303030; color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.pm-sp { display: flex; gap: 8px; margin-top: 10px; min-width: 0; }
.pm-sp[hidden] { display: none; }
.pm-sp input, .pm-sp select { box-sizing: border-box; flex: 1 1 0; min-width: 0; height: 50px; border-radius: 11px; border: 1px solid #424242; background: #0b0b0b; color: #f4f4f4;
  font: inherit; font-size: calc(17px * var(--pf-fs, 1)); padding: 0 12px; color-scheme: dark; }
.pm-sp select { padding: 0 8px; }
.pm-sp #pf-sa-cur { flex: 0 0 86px; }
.pm-sp input:focus, .pm-sp select:focus { outline: none; border-color: var(--accent); }
.pm-sp input[type=number] { -moz-appearance: textfield; }
.pm-sp input[type=number]::-webkit-inner-spin-button, .pm-sp input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pm-sp .pf-sbtn { flex: 0 0 auto; height: 50px; padding: 0 16px; font-size: calc(14px * var(--pf-fs, 1)); letter-spacing: 1px; border-radius: 11px; }
.pm-sp .pf-sbtn.go { background: var(--accent); border-color: var(--accent); color: #fff; }
.pm-sp [data-sa="date"], .pm-sp [data-sa="single"], .pm-sp [data-sa="remove"] { flex: 1 1 0; }
.pm-sphint { margin: 8px 2px 0; min-height: 18px; font-size: calc(13px * var(--pf-fs, 1)); line-height: 1.4; color: #9a9a9a; }

/* the calendar on a phone: larger days and buttons */
@media (max-width: 760px) {
  .pf-cal { width: min(344px, calc(100vw - 16px)); padding: 12px; }
  .pf-calh { grid-template-columns: 40px minmax(0, 1fr) 84px 40px; }
  .pf-calh select { height: 40px; font-size: calc(15px * var(--pf-fs, 1)); }
  .pf-calnav { width: 40px; height: 40px; font-size: calc(24px * var(--pf-fs, 1)); }
  .pf-calw i { font-size: calc(11px * var(--pf-fs, 1)); }
  .pf-calg button { height: 42px; font-size: calc(16px * var(--pf-fs, 1)); }
  .pf-calbtn { height: 46px; font-size: calc(13.5px * var(--pf-fs, 1)); }
}
body.mv .pf-cal { width: min(344px, calc(100vw - 16px)); padding: 12px; }
body.mv .pf-calh { grid-template-columns: 40px minmax(0, 1fr) 84px 40px; }
body.mv .pf-calh select { height: 40px; font-size: calc(15px * var(--pf-fs, 1)); }
body.mv .pf-calnav { width: 40px; height: 40px; font-size: calc(24px * var(--pf-fs, 1)); }
body.mv .pf-calw i { font-size: calc(11px * var(--pf-fs, 1)); }
body.mv .pf-calg button { height: 42px; font-size: calc(16px * var(--pf-fs, 1)); }
body.mv .pf-calbtn { height: 46px; font-size: calc(13.5px * var(--pf-fs, 1)); }

/* ===== BACK TO TOP (js/totop.js, operator 2026-10-06: 'on every Portfolio, Board, Vault, reports … page,
   PC and mobile') — bottom-right; above the phone's tab bar (and SELECT's bar); gone while a sheet is open ===== */
.to-top { position: fixed; right: 20px; bottom: 22px; z-index: 84; width: 50px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 0; border-radius: 14px; border: 1px solid #3c3c3c; background: rgba(24, 24, 24, .92); color: #f2f2f2; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  font-family: var(--rep-font); -webkit-tap-highlight-color: transparent; animation: to-top-in .2s ease-out; }
.to-top[hidden] { display: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top span { font-size: 8.5px; font-weight: 700; letter-spacing: 1.4px; line-height: 1; }
.to-top:hover { background: #2a2a2a; border-color: #5a5a5a; }
.to-top:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 2px; }
@keyframes to-top-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .to-top { animation: none; } }
body.mv .to-top { right: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
body.mv.pf-selecting:has(#view-port.active) .to-top { bottom: calc(244px + env(safe-area-inset-bottom)); }
body.pf-noscroll .to-top, body.peek-noscroll .to-top, body.print-jobreport .to-top { display: none; }
body:has(.pf-cards.ph .pf-card.pm.open) .to-top { display: none; }      /* typing into a card: its controls stay clear */
@media print { .to-top { display: none !important; } }

/* ===== BLACKPORT round 4 (operator 2026-10-06): the header stays while the cards scroll ·
   VALUE / PAID / change on every card · SELECT shows only picture, name, line and price —
   four to a row on a computer, two on a phone · a wider PAID FOR THESE field ===== */
/* the page scrolls as a whole: the view used to carry overflow-y: auto without a height — a box
   that never scrolls, so nothing inside it could stick. clip keeps the sides tidy and is no scroller */
#view-port { overflow: visible; overflow-x: clip; }
/* a computer under 1366 px: the studio pages' pan box would hold the header in place too — BLACKPORT pans nothing */
@media (max-width: 1365px) {
  #app:has(#view-port.active) #main { overflow: visible; overflow-x: clip; }
  #app:has(#view-port.active) #topbar { min-width: 0; }
}
/* the header: the tabs, and on CARDS the folders, the switches and SELECT's bar */
.pf-hdr { position: sticky; top: var(--pf-stick, 0px); z-index: 30; margin: 0 -14px; padding: 6px 14px 0; background: #0f0f0f; transition: box-shadow .15s; }
.pf-hdr.stuck { box-shadow: 0 1px 0 #262626, 0 14px 22px -16px rgba(0, 0, 0, .95); }
body.mv .pf-hdr { top: var(--mvh, 0px); }
@media (min-width: 961px) { .pf-hdr { margin: 0 -24px; padding: 6px 24px 0; } }
.pf-hdr .pf-head { margin-bottom: 12px; }
.pf-cardstop { display: none; }
.pf-app.oncards .pf-cardstop { display: block; }
.pf-hdr .pf-selbar { position: static; box-shadow: none; margin: 0 0 12px; }
.pf-cards .pf-card { scroll-margin-top: calc(var(--pf-stick, 0px) + var(--pf-toph, 0px) + 10px); }
/* PAID FOR THESE: a field the total fits in (it was squeezed to a few letters) */
.pf-app:not(.ph) #pf-sa-total { flex: 0 0 220px; width: 220px; height: 34px; font-size: calc(14px * var(--pf-fs, 1)); }
.pf-app:not(.ph) #pf-sa-cur { flex: 0 0 86px; width: 86px; height: 34px; }
.pf-app:not(.ph) .pf-sa.wide [data-sa="batch"] { height: 34px; }

/* the price: VALUE over PAID, the change beside PAID */
.pf-price { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pf-pr { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.pf-pr > i { flex: 0 0 38px; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; color: var(--pf-ink3); }
.pf-pr > b { min-width: 0; }
.pf-pr.v > b { font-size: calc(20px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.08; }
.pf-pr.p > b { font-size: calc(14.5px * var(--pf-fs, 1)); font-weight: 600; line-height: 1.15; }
.pf-pr > b.none { font-weight: 500; }
.pf-pr .pf-d { flex: 0 0 auto; height: 20px; }
.pf-pr .pf-si { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf-cards .pf-cbot { align-items: flex-end; }
.pf-cards.c1 .pf-pr.v > b, .pf-cards.c2 .pf-pr.v > b { font-size: calc(clamp(19px, 2.8cqw, 22px) * var(--pf-fs, 1)); }
.pf-cards.c1 .pf-pr.p > b, .pf-cards.c2 .pf-pr.p > b { font-size: calc(clamp(14px, 2cqw, 15px) * var(--pf-fs, 1)); }
.pf-cards.c1 .pf-pr > i, .pf-cards.c2 .pf-pr > i { font-size: calc(clamp(9.5px, 1.3cqw, 10px) * var(--pf-fs, 1)); }
/* ✕ REMOVE rides on the picture while EDIT is on (the price line takes the room it had) */
.pf-xbtn { display: none; position: absolute; right: 3px; top: 3px; z-index: 2; width: 24px; height: 24px; align-items: center; justify-content: center; padding: 0; border-radius: 50%;
  border: 1px solid #6a2a28; background: rgba(15, 15, 15, .82); color: var(--pf-neg); font-size: calc(12px * var(--pf-fs, 1)); font-weight: 700; line-height: 1; cursor: pointer; }
.pf-xbtn:hover { background: #2a1210; border-color: var(--pf-neg); }
.pf-cards.editing:not(.ph) .pf-xbtn { display: flex; }

/* SELECT on a computer: the cards only — four to a row */
.pf-cards.c4 { grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 30px) / 4)), 1fr)); }
.pf-cards.c4 .pf-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 12px; align-items: stretch; }
.pf-cards.c4 .pf-cart { width: 64px; height: 90px; }
.pf-cards.c4 .pf-cinfo { justify-content: flex-start; max-width: none; }
.pf-cards.c4 .pf-c1 b { font-size: calc(15px * var(--pf-fs, 1)); }
.pf-cards.c4 .pf-c1 i { display: none; }
.pf-cards.c4 .pf-c2 { font-size: calc(12px * var(--pf-fs, 1)); -webkit-line-clamp: 2; line-clamp: 2; }
.pf-cards.c4 .pf-cbot { margin-top: auto; padding-top: 6px; flex-wrap: nowrap; }
.pf-cards.c4 .pf-pr.v > b { font-size: calc(18px * var(--pf-fs, 1)); }
.pf-cards.c4 .pf-pr.p > b { font-size: calc(13.5px * var(--pf-fs, 1)); }
.pf-cards.c4 .pf-gbtn { display: none; }
.pf-cards.c4 .pf-grpcopies { grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 30px) / 4)), 1fr)); }

/* a phone: the price line in large type (the chips no longer repeat PAID) */
.pf-cards.ph .pm .pf-pr.v > b { font-size: calc(22px * var(--pf-fs, 1)); }
.pf-cards.ph .pm .pf-pr.p > b { font-size: calc(16px * var(--pf-fs, 1)); }
.pf-cards.ph .pm .pf-pr > i { font-size: calc(10.5px * var(--pf-fs, 1)); }
.pf-cards.ph .pm .pf-pr .pf-d { height: 24px; font-size: calc(13.5px * var(--pf-fs, 1)); }
/* a phone, SELECT: two to a row — picture, name, line, price */
.pf-cards.ph.selecting { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-cards.ph.selecting .pf-card.pm, .pf-cards.ph.selecting .pf-card.pf-grp.pm { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "info"; gap: 8px; padding: 10px; }
.pf-cards.ph.selecting .pm .pf-cart { width: 84px; height: 118px; justify-self: center; }
.pf-cards.ph.selecting .pm-sum, .pf-cards.ph.selecting .pm-more, .pf-cards.ph.selecting .pm-ed { display: none; }
.pf-cards.ph.selecting .pm .pf-c1 b { font-size: calc(15px * var(--pf-fs, 1)); }
.pf-cards.ph.selecting .pm .pf-c2 { font-size: calc(12.5px * var(--pf-fs, 1)); -webkit-line-clamp: 2; line-clamp: 2; }
.pf-cards.ph.selecting .pm .pf-pr { gap: 6px; }
.pf-cards.ph.selecting .pm .pf-pr > i { flex-basis: 34px; font-size: calc(9px * var(--pf-fs, 1)); }
.pf-cards.ph.selecting .pm .pf-pr.v > b { font-size: calc(18px * var(--pf-fs, 1)); }
.pf-cards.ph.selecting .pm .pf-pr.p > b { font-size: calc(14px * var(--pf-fs, 1)); }
.pf-cards.ph.selecting .pm .pf-pr .pf-d { height: 21px; padding: 0 6px; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-cards.ph.selecting .pf-grpcopies { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; padding-left: 0; border-left: 0; }
/* a phone's header: compact enough to keep — folders, then the four switches with ADD (+) beside them */
.pf-app.ph .pf-hdr { padding-top: 6px; }
.pf-app.ph .pf-hdr .pf-head { margin-bottom: 8px; }
.pf-app.ph .pf-cardsbar { display: grid; gap: 8px; margin-bottom: 8px; }
.pf-app.ph .pf-modes { grid-column: 1; }
.pf-app.ph #pf-addbtn2 { grid-column: 2; flex: none; width: 46px; height: 46px; padding: 0; border-radius: 12px; }
.pf-app.ph #pf-addbtn2 span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-app.ph #pf-addbtn2 svg { width: 22px; height: 22px; }
/* a computer's card keeps 145 px with the two-row price: the change chip is no taller than the PAID figure */
.pf-price { gap: 1px; }
.pf-cards.c1 .pf-pr .pf-d, .pf-cards.c2 .pf-pr .pf-d { height: 18px; font-size: calc(11.5px * var(--pf-fs, 1)); padding: 0 6px; }
/* a short portfolio still fills the window with its own dark ground (the grey page showed under it) */
body:not(.mv) #view-port.active { min-height: calc(100vh - var(--pf-stick, 0px)); }


/* ===== CUSTOMER REQUESTS — the DASHBOARD's mailbox (js/inbox.js, operator 2026-10-07: 'a MAILBOX-like
   button named CUSTOMER REQUEST at the left of the search box, the full height of the red bar') =====
   The bar keeps its two lines (filters · the selection row) inside .ord-bar-main; the mailbox stands
   beside them, as tall as the bar, with the count of NEW requests on it. */
#view-home > .ord-bar { flex-wrap: nowrap; align-items: stretch; gap: 14px; padding: 7px 14px 7px 7px; }
#view-home > .ord-bar .ord-bar-main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; row-gap: 6px; }
.ord-inbox { flex: 0 0 auto; align-self: stretch; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 112px; min-height: 60px; padding: 6px 6px; box-sizing: border-box; border-radius: 6px; border: 1px solid #ffd9d7; background: #f2f2f2; color: #2b1210;
  font-family: var(--menu-font); font-weight: 600; font-stretch: 87.5%; font-size: 9.5px; letter-spacing: 1.3px; line-height: 1.15; text-align: center; cursor: pointer;
  box-shadow: inset 0 -2px 0 #c9c9c9, 0 4px 14px rgba(0, 0, 0, .35); transition: background .12s, transform .12s; }
.ord-inbox svg { width: 26px; height: 26px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ord-inbox:hover { background: #fff; transform: translateY(-1px); }
.ord-inbox:active { transform: none; }
.ord-inbox:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ord-inbox-n { position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: var(--accent); color: #fff; border: 2px solid #3a1615;
  font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.ord-inbox-n[hidden] { display: none; }
.ord-inbox.has { border-color: #fff; box-shadow: inset 0 -2px 0 #c9c9c9, 0 0 0 3px rgba(255, 255, 255, .18), 0 4px 14px rgba(0, 0, 0, .35); }
.ord-inbox.has svg { color: var(--accent); }
/* a checked-in request on the board: NEW until its inspection starts */
.ord-newtag { flex: 0 0 auto; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; padding: 2px 7px; border-radius: 3px; background: #f2f2f2; color: #2b1210; box-shadow: 0 0 0 1px #fff; }
.ord-card.collapsed .ord-newtag { display: inline-block; }
/* the mailbox page */
.rqi-bar { background: linear-gradient(180deg, #4a4a4a, #262626 60%, #171717); border-color: #8a8a8a; }
.rqi-bar .ord-f { border-color: rgba(255, 255, 255, .22); }
.rqi-bar .ord-f i, .rqi-bar .ord-bar-counts { color: #d9d9d9; }
.rqi-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.rqi-tab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .3); color: #d9d9d9;
  font-family: var(--jb-font); font-size: 10px; letter-spacing: 1.2px; cursor: pointer; }
.rqi-tab span { min-width: 16px; padding: 0 4px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 9.5px; text-align: center; font-variant-numeric: tabular-nums; }
.rqi-tab:hover { color: #fff; border-color: #fff; }
.rqi-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rqi-tab.on span { background: rgba(0, 0, 0, .28); }
.rqi-tab.has:not(.on) { border-color: var(--accent); color: #fff; }
.rqi-tab.has:not(.on) span { background: var(--accent); }
.rqi-body { display: grid; grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); gap: 12px; min-height: 0; }
.rqi-list { overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 8px; padding: 2px; min-height: 0; }
.rqi-detail { overflow-y: auto; scrollbar-width: thin; min-height: 0; padding: 14px 16px; border-radius: 8px; background: #141414; border: 1px solid #262626; font-family: var(--rep-font); }
.rqi-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: #1b1b1b; border: 1px solid #2e2e2e; cursor: pointer; }
.rqi-card:hover { border-color: #6a6a6a; }
.rqi-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rqi-card.new { border-left: 3px solid var(--accent); }
.rqi-c1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rqi-c1 b { font-size: 14px; letter-spacing: 1px; color: #fff; }
.rqi-who { font-size: 12.5px; color: #f2f2f2; }
.rqi-who i { color: #7f7f7f; }
.rqi-c2 { font-size: 11.5px; color: #a6a6a6; }
.rqi-c2 b.rqi-oid, .rqi-kv b.rqi-oid { color: #ffd54a; letter-spacing: .8px; }
.rqi-usd { font-style: normal; color: #7f7f7f; font-size: .9em; margin-left: 4px; }
.rqi-thumbs { display: flex; align-items: center; gap: 5px; min-height: 30px; }
.rqi-art { flex: 0 0 auto; width: 22px; height: 30px; border-radius: 3px; background: #232323; border: 1px solid #3a3a3a; overflow: hidden; }
.rqi-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rqi-more { font-size: 10.5px; color: #8a8a8a; }
.rqi-st { font-style: normal; font-size: 9.5px; letter-spacing: 1.5px; padding: 2px 8px; border-radius: 3px; white-space: nowrap; border: 1px solid transparent; }
.rqi-st.new { background: var(--accent); border-color: var(--accent); color: #fff; }
.rqi-st.rec { background: #3a2a10; border-color: #6b4a14; color: #f0c060; }
.rqi-st.ins { background: #1f2f4a; border-color: #2f6fb3; color: #8fc4ff; }
.rqi-st.rep { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
.rqi-st.ret { background: #2a2a2a; border-color: #4a4a4a; color: #d9d9d9; }
.rqi-st.can { background: #1e1e1e; border-color: #3a3a3a; color: #8a8a8a; }
.rqi-none { padding: 40px 20px; text-align: center; color: #9a9a9a; font-size: 13px; line-height: 1.6; }
.rqi-none b { display: block; margin-bottom: 6px; color: #f2f2f2; font-size: 15px; }
.rqi-dh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rqi-dh b { font-size: 20px; letter-spacing: 1.5px; color: #fff; }
.rqi-dates { margin-left: auto; font-size: 11px; color: #9a9a9a; }
.rqi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rqi-box { padding: 10px 12px; border-radius: 6px; background: #1b1b1b; border: 1px solid #2e2e2e; }
.rqi-big { display: block; margin: 4px 0 8px; font-size: 15px; color: #fff; }
.rqi-kv { display: flex; gap: 10px; padding: 4px 0; border-top: 1px solid #262626; font-size: 12px; color: #e8e8e8; }
.rqi-kv span { flex: 0 0 64px; font-size: 9.5px; letter-spacing: 1.4px; color: #8f8f8f; padding-top: 2px; }
.rqi-kv a { color: #8fc4ff; text-decoration: none; }
.rqi-kv a:hover { text-decoration: underline; }
.rqi-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 12px; }
.rqi-table th { text-align: left; padding: 5px 8px; font-size: 9px; letter-spacing: 1.5px; color: #8f8f8f; border-bottom: 1px solid #333; font-weight: 600; }
.rqi-table td { padding: 7px 8px; border-bottom: 1px solid #222; vertical-align: middle; color: #e8e8e8; }
.rqi-table td.rqi-n { color: #7f7f7f; width: 24px; }
.rqi-table td.rqi-cc { display: flex; align-items: center; gap: 10px; }
.rqi-table td.rqi-cc .rqi-art { width: 30px; height: 42px; }
.rqi-table td.rqi-cc b { display: block; font-size: 13px; color: #fff; }
.rqi-table td.rqi-cc b i { font-style: normal; color: #a6a6a6; font-weight: 400; font-size: 11.5px; }
.rqi-table td.rqi-cc span { display: block; font-size: 11px; color: #9a9a9a; }
.rqi-table td.rqi-money { white-space: nowrap; }
.rqi-table td.rqi-job b { font-family: var(--jb-font); letter-spacing: .8px; color: #fff; }
.rqi-table td.rqi-job b.rqi-proj { color: #ffd54a; }
.rqi-table td.rqi-job em { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 1px; color: #8f8f8f; }
.rqi-stage { font-style: normal; font-size: 9px; letter-spacing: 1.3px; padding: 2px 7px; border-radius: 3px; background: #2a2a2a; color: #d9d9d9; white-space: nowrap; }
.rqi-stage.requested { background: #2a1a19; color: #f2a9a6; }
.rqi-stage.received { background: #3a2a10; color: #f0c060; }
.rqi-stage.centering, .rqi-stage.map { background: #1f2f4a; color: #8fc4ff; }
.rqi-stage.reported, .rqi-stage.ready { background: #1d5c2e; color: #bfe6c5; }
.rqi-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.rqi-go { padding: 9px 16px; font-size: 11.5px; letter-spacing: 1.5px; font-weight: 700; }
.rqi-cancel { margin-left: auto; color: #f2a9a6; }
.rqi-log { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #c4c4c4; }
.rqi-log span { display: inline-block; min-width: 110px; color: #7f7f7f; font-variant-numeric: tabular-nums; }
@media (max-width: 1365px) { .rqi-body { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); } }

/* ===== THE BLACK PRODUCTS IN THE MENU (operator 2026-10-07: 'make the Black Products (BlackBoard, Vault, Port)
   buttons have different visuals and colors — the only modes a customer can access, apart from settings / guides') =====
   A gold-edged black tile with a gold icon and label; the selected one fills gold with black ink
   (the studio's modes stay the grey buttons with the red selection). */
#sidebar .sb-btn[data-nav="board"], #sidebar .sb-btn[data-nav="vault"], #sidebar .sb-btn[data-nav="port"] {
  background: #0e0e0e; border: 1px solid #5c5340; color: #d8c89a; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(171, 155, 111, .12); }
#sidebar .sb-btn[data-nav="board"] .ico, #sidebar .sb-btn[data-nav="vault"] .ico, #sidebar .sb-btn[data-nav="port"] .ico { color: #c9b98b; }
#sidebar .sb-btn[data-nav="board"]:hover, #sidebar .sb-btn[data-nav="vault"]:hover, #sidebar .sb-btn[data-nav="port"]:hover { background: #1a1710; border-color: #ab9b6f; color: #f1e6c8; }
#sidebar .sb-btn[data-nav="board"]:hover .ico, #sidebar .sb-btn[data-nav="vault"]:hover .ico, #sidebar .sb-btn[data-nav="port"]:hover .ico { color: #ffd54a; }
#sidebar .sb-btn[data-nav="board"].on, #sidebar .sb-btn[data-nav="vault"].on, #sidebar .sb-btn[data-nav="port"].on {
  background: #ab9b6f; border-color: #d8c89a; color: #141414; box-shadow: 0 6px 16px rgba(171, 155, 111, .3); }
#sidebar .sb-btn[data-nav="board"].on .ico, #sidebar .sb-btn[data-nav="vault"].on .ico, #sidebar .sb-btn[data-nav="port"].on .ico { color: #141414; background: rgba(255, 255, 255, .22) !important; border-radius: 6px; }
#sidebar .sb-btn[data-nav="board"].locked, #sidebar .sb-btn[data-nav="vault"].locked, #sidebar .sb-btn[data-nav="port"].locked { opacity: .7; }

/* ===== HOW TO USE BLACKLENS — the guided swipe-through (js/tour.js, operator 2026-10-07) =====
   A phone: a full-height sheet; a computer: a phone-shaped dialog in the middle. */
.tour { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 18px; box-sizing: border-box; background: rgba(0, 0, 0, 0); transition: background .2s; font-family: var(--rep-font); }
.tour[hidden] { display: none; }
.tour.on { background: rgba(0, 0, 0, .74); }
.tour-win { width: min(100%, 400px); height: min(100%, 740px); display: flex; flex-direction: column; box-sizing: border-box; background: #151515; border: 1px solid #333; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  color: #f2f2f2; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s, transform .2s; overflow: hidden; }
.tour.on .tour-win { opacity: 1; transform: none; }
.tour-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.tour-head b { font-size: 10.5px; letter-spacing: 2.4px; color: #bdbdbd; }
.tour-n { font-size: 11px; color: #7f7f7f; font-variant-numeric: tabular-nums; }
.tour-skip { margin-left: auto; background: none; border: 1px solid #3a3a3a; border-radius: 14px; color: #bdbdbd; font-family: inherit; font-size: 10.5px; letter-spacing: 1.6px; padding: 5px 12px; cursor: pointer; }
.tour-skip:hover { color: #fff; border-color: #fff; }
.tour-track { flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.tour-slide, .tour-art { touch-action: pan-y; }   /* the slide is a scroller of its own — a sideways swipe stays ours */
.tour-track:active { cursor: grabbing; }
.tour-slides { display: flex; height: 100%; transition: transform .28s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.tour-slide { flex: 0 0 100%; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 4px 22px 10px; overflow-y: auto; scrollbar-width: thin; }
.tour-art { flex: 0 0 auto; height: min(60%, 425px); max-width: 100%; aspect-ratio: 100 / 170; border-radius: 22px; border: 2px solid #3a3a3a; background: #0f0f0f; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.tour-art svg { width: 100%; height: 100%; display: block; }
.tour-slide h2 { margin: 16px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: .3px; color: #fff; text-align: center; line-height: 1.2; }
.tour-slide p { margin: 0; font-size: 14px; line-height: 1.55; color: #c9c9c9; text-align: center; }
.tour-slide p b { color: #fff; }
.tour-foot { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #262626; }
.tour-nav { min-width: 84px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #3a3a3a; background: #1e1e1e; color: #f2f2f2; font-family: var(--menu-font); font-stretch: 87.5%; font-weight: 600; font-size: 12px; letter-spacing: 1.6px; cursor: pointer; }
.tour-nav:disabled { opacity: .35; cursor: default; }
.tour-nav.next { margin-left: auto; background: var(--accent); border-color: var(--accent); color: #fff; }
.tour-nav.next.done { background: #1d5c2e; border-color: #2a7a3e; }
.tour-dots { display: flex; gap: 6px; margin: 0 auto; }
.tour-dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: #3a3a3a; cursor: pointer; transition: width .18s, background .18s; }
.tour-dots button.on { width: 22px; background: var(--accent); }
body.tour-open { overflow: hidden; }
body.mv .tour { padding: 0; align-items: flex-end; }
body.mv .tour-win { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
body.mv .tour-art { height: min(48%, 425px); }
body.mv .tour-slide p { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .tour-slides { transition: none; } .tour-win { transition: none; } }


/* ===== BLACKPORT round 6 (operator 2026-10-07): the TCG filter · batch names and types · PERFORMANCE's tiles,
   BY PURCHASE TYPE and GRADED THROUGH BLACKLENS · the CERT# field ===== */
/* the filter chips under the folders */
.pf-games { flex: 0 1 auto; max-width: 46%; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-left: 8px; border-left: 1px solid var(--pf-line); }   /* beside the folders on a computer (they keep their room), a row of its own on a phone */
.pf-games::-webkit-scrollbar { display: none; }
.pf-games[hidden] { display: none; }
.pf-glbl { flex: 0 0 auto; font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1.8px; color: var(--pf-ink3); padding: 0 4px 0 2px; }
.pf-chip.sm { height: 30px; padding: 0 10px; border-radius: 9px; font-size: calc(11.5px * var(--pf-fs, 1)); }
.pf-chip.sm i { font-size: calc(10px * var(--pf-fs, 1)); }
.pf-chip.warn.on { background: #3a2a10; border-color: #f0c060; color: #ffe29a; }
.pf-chip.warn.on i { color: #ffe29a; }
.pf-chip.warn .pf-chipx { margin-left: 2px; font-size: calc(11px * var(--pf-fs, 1)); }
.pf-app.ph .pf-games { grid-column: 1 / -1; max-width: none; padding-left: 0; border-left: 0; }
/* a batch's name, typed on its entry while EDIT is on; its type as a tag and as the TYPE cell's own select */
.pf-bname { box-sizing: border-box; min-width: 0; width: clamp(140px, 40%, 240px); height: 24px; border-radius: 6px; border: 1px solid #4a4a4a; background: #101010; color: #fff; font: inherit; font-size: calc(15px * var(--pf-fs, 1)); font-weight: 700; padding: 0 7px; }
.pf-bname:focus { outline: none; border-color: var(--accent); }
.pf-bname::placeholder { color: #6a6a6a; font-weight: 600; }
.pf-ktag { border-color: #a8862a; color: #ffd54a; }
.pf-gfg select.a-bkind { cursor: pointer; color: #ffd54a; font-weight: 600; }
.pf-gfg select.a-bkind:focus { outline: none; border-color: var(--accent); }
.pf-bin select.pf-bkind { color: #ffd54a; font-weight: 600; }
.pm-chip.k { background: #2f2610; border-color: #6b5a26; color: #ffd54a; }
/* the CERT# field shares the last row with BATCH and REMARKS */
.pf-fg .a-lcert { grid-area: lcert; margin-top: 4px; } .pf-fg .a-cert { grid-area: cert; }
.pf-fg input.a-cert:disabled { background: #141414; border-style: dashed; color: #6a6a6a; }
/* PERFORMANCE's tiles: PAID and VALUE in large type; PAID is a button to the cards without a price; the gain with its two bars */
.pf-stats2 { align-items: stretch; }
.pf-stats2 .pf-stat { display: flex; flex-direction: column; min-height: 96px; }
.pf-stats2 .pf-stat > b { font-size: calc(clamp(22px, 2.2vw, 30px) * var(--pf-fs, 1)); line-height: 1.1; margin-top: 6px; }
.pf-stats2 .pf-stat > span { margin-top: auto; padding-top: 6px; white-space: normal; line-height: 1.3; }
.pf-statbtn { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.pf-statbtn:hover { border-color: #6a6a6a; background: #1f1f1f; }
.pf-statbtn.has { border-color: #a8862a; }
.pf-statbtn.has > span { color: #ffd54a; }
.pf-statbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf-gainrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pf-gainrow > b { font-size: calc(clamp(18px, 1.8vw, 24px) * var(--pf-fs, 1)); line-height: 1.1; margin: 0; }
.pf-gainrow .pf-chg { margin: 0; }
.pf-cmp { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.pf-cmprow { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.pf-cmprow i { font-style: normal; font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: 1.4px; color: var(--pf-ink3); }
.pf-cmprow em { font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); color: #d9d9d9; font-variant-numeric: tabular-nums; }
.pf-cmpbar { display: block; height: 6px; border-radius: 3px; background: #262626; overflow: hidden; }
.pf-cmpbar b { display: block; height: 100%; width: 0; border-radius: 3px; background: #fff; transition: width .3s; }
.pf-cmpbar b.up { background: var(--pf-pos); } .pf-cmpbar b.down { background: var(--pf-neg); }
.pf-app.ph .pf-stats2 .pf-stat > b { font-size: calc(22px * var(--pf-fs, 1)); }
.pf-app.ph .pf-stats2 { grid-template-columns: 1fr 1fr; }
.pf-app.ph .pf-stats2 .pf-gainstat { grid-column: 1 / -1; }
/* BY PURCHASE TYPE */
.pf-kinds { display: flex; flex-direction: column; }
.pf-kindhead, .pf-kindrow { display: grid; gap: 10px; align-items: center; }
.pf-kindhead { padding: 2px 0 6px; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink3); border-bottom: 1px solid var(--pf-line); }
.pf-kindhead span:not(:first-child), .pf-kindrow .m, .pf-kindrow .g { text-align: right; }
.pf-kindrow { padding: 9px 0; border-bottom: 1px solid var(--pf-line); }
.pf-kindrow:last-child { border-bottom: 0; }
.pf-kindrow .k b { display: block; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; letter-spacing: .6px; }
.pf-kindrow .k i { display: block; font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); color: var(--pf-ink3); margin-top: 2px; }
.pf-kindrow .m { font-size: calc(13px * var(--pf-fs, 1)); color: #e8e8e8; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-kindrow .g { font-size: calc(13px * var(--pf-fs, 1)); font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-kindrow .g em { display: block; font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 600; margin-top: 1px; }
.pf-kindrow .g.up { color: var(--pf-pos); } .pf-kindrow .g.down { color: var(--pf-neg); } .pf-kindrow .g.flat { color: var(--pf-ink3); font-weight: 500; }
.pf-kindrow .g .pf-tri { width: 9px; height: 9px; margin-right: 4px; vertical-align: 0; }
.pf-kindrow.best .k b::after { content: " ★"; color: #ffd54a; }
.pf-app.ph .pf-kindhead, .pf-app.ph .pf-kindrow { gap: 6px; }
.pf-app.ph .pf-kindrow .m, .pf-app.ph .pf-kindrow .g { font-size: calc(12px * var(--pf-fs, 1)); }
/* GRADED THROUGH BLACKLENS */
.pf-gradedul { list-style: none; margin: 0; padding: 0; }
.pf-gradedul li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--pf-line); }
.pf-gradedul li:last-child { border-bottom: 0; }
.pf-gradedul .pf-ln span a { color: #8fc4ff; text-decoration: none; }
.pf-gradedul .pf-ln span a:hover { text-decoration: underline; }
.pf-ba b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-gradedsum { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--pf-line); font-size: calc(12px * var(--pf-fs, 1)); color: #e8e8e8; }
.pf-empty { padding: 10px 2px; font-size: calc(12px * var(--pf-fs, 1)); line-height: 1.5; color: var(--pf-ink3); }

/* ===== BLACKVAULT: the grading company's result on the SUMMARY (operator 2026-10-07, online only) ===== */
.bv-graded { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #121a14; border: 1px solid #2a4a34; }
.bv-gradedh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bv-gradedh b { font-size: calc(10px + var(--bv-up)); letter-spacing: 2px; color: #bfe6c5; }
.bv-gradedh span { font-size: calc(9.5px + var(--bv-up)); color: var(--muted); }
.bv-gradedrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bv-gg { font-size: 26px; line-height: 1; font-weight: 700; color: #fff; }
.bv-gcert { font-size: calc(11px + var(--bv-up)); color: #d9d9d9; }
.bv-gcert a { color: #8fc4ff; text-decoration: none; }
.bv-gcert a:hover { text-decoration: underline; }
.bv-gradedrow i { font-style: normal; font-size: calc(10px + var(--bv-up)); letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; background: #1b1b1b; border: 1px solid #333; color: #d9d9d9; }
.bv-gradedrow i.same { color: #bfe6c5; border-color: #2a7a3e; }
.bv-gradedrow i.up { color: #8fc4ff; border-color: #2f6fb3; }
.bv-gradedrow i.down { color: #f2a9a6; border-color: #7a2622; }

/* ===== BLACKBOARD: PRE-GRADE vs GRADED (operator 2026-10-07) ===== */
.bb-gstats { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; margin-bottom: 10px; }
.bb-gstats div { background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 5px; padding: 8px 6px; text-align: center; min-width: 0; }
.bb-gstats b { display: block; font-size: 18px; line-height: 1.1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-gstats i { display: block; margin-top: 3px; font-style: normal; font-size: 8px; letter-spacing: 1.2px; color: var(--muted); }
.bb-glist { display: flex; flex-direction: column; gap: 4px; }
.bb-grow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 52px 22px 56px; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 5px; background: #1b1b1b; border: 1px solid #2e2e2e; color: #f2f2f2; font: inherit; text-align: left; cursor: pointer; }
.bb-grow:hover { border-color: #6a6a6a; }
.bb-grow .bb-rmain b { display: block; font-size: 11.5px; letter-spacing: .6px; color: #fff; }
.bb-grow .bb-rmain i { display: block; font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-gpre, .bb-ggot { text-align: center; }
.bb-gpre b, .bb-ggot b { display: block; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.1; }
.bb-gpre i, .bb-ggot i { display: block; font-style: normal; font-size: 7.5px; letter-spacing: 1px; color: var(--muted); margin-top: 2px; }
.bb-ggot b { color: #ffd54a; }
.bb-garr { text-align: center; font-size: 13px; color: #8a8a8a; }
.bb-garr.same { color: #bfe6c5; } .bb-garr.up { color: #8fc4ff; } .bb-garr.down { color: #f2a9a6; }


/* ===== BLACKBOARD for customers (operator 2026-10-07): the filters are TOGGLES, not dropdowns ===== */
.bb-chipgroups { flex: 1 1 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bb-chips { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.bb-chips[hidden] { display: none; }
.bb-chips > i { flex: 0 0 auto; font-style: normal; font-size: 8.5px; letter-spacing: 1.3px; color: #d9d9d9; margin-right: 2px; }
.bb-chipset { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.bb-chip { height: 24px; padding: 0 9px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .3); color: #d9d9d9;
  font-family: var(--jb-font); font-size: 10.5px; letter-spacing: .8px; cursor: pointer; white-space: nowrap; }
.bb-chip:hover { color: #fff; border-color: #fff; }
.bb-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bb-chip:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 900px) {
  .bb-chipgroups { gap: 6px 10px; }
  .bb-chips { width: 100%; }
  .bb-chipset { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
  .bb-chipset::-webkit-scrollbar { display: none; }
  .bb-chip { height: 30px; padding: 0 11px; font-size: 12px; }
}

/* ===== ADD A CARD (operator 2026-10-07): CARD TYPE · LANGUAGE · FIND BY as chips; the entry under the preview ===== */
.pf-sform label.chipped { display: none; }
.pf-stogs { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-bottom: 2px; }
.pf-stog { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pf-stog > i { flex: 0 0 74px; font-style: normal; letter-spacing: 1.2px; }
.pf-stogset { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.pf-stogset .pf-chip.sm { padding: 0 10px; }
@media (min-width: 961px) {
  .pf-searchwin .pf-sform { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 118px; align-items: end; }
  .pf-searchwin .pf-sform label.q { grid-column: 1 / -1; }
  .pf-searchwin .pf-sform label.set { grid-column: 1 / 2; }
  .pf-searchwin .pf-sform .pf-go { grid-column: 4 / 5; align-self: end; }
}
/* the entry: GRADED BY chips, the grade / condition, PAID / EA + currency, ADD */
.pf-sentry { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: #161616; border: 1px solid #2c2c2c; }
.pf-sentry .pf-stog > i { flex-basis: 64px; }
.pf-serow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 72px; gap: 6px; }
.pf-serow label { display: flex; flex-direction: column; gap: 2px; letter-spacing: 1.2px; min-width: 0; }
.pf-serow label i { font-style: normal; }
.pf-serow select, .pf-serow input { box-sizing: border-box; width: 100%; height: 34px; background: #111; color: #eee; border: 1px solid #333; border-radius: 8px; padding: 0 8px; font: inherit; font-size: calc(13px * var(--pf-fs, 1)); color-scheme: dark; }
.pf-serow select:focus, .pf-serow input:focus { outline: none; border-color: var(--accent); }
.pf-serow input[type=number] { -moz-appearance: textfield; }
.pf-serow input[type=number]::-webkit-inner-spin-button, .pf-serow input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pf-sadd { width: 100%; padding: 10px; border-radius: 10px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.5px; }
.pf-sprev.on { grid-template-areas: "head head" "box tbl" "ent ent"; }
.pf-sentryhost { grid-area: ent; }
.pf-sentryhost:empty { display: none; }
/* the phone's swipe-up sheet carries the same entry under the details */
.peek-body .pf-sentry { margin: 10px 0 4px; }
.peek-body .pf-stogset .pf-chip.sm { height: 36px; padding: 0 12px; font-size: calc(13px * var(--pf-fs, 1)); }
.peek-body .pf-serow select, .peek-body .pf-serow input { height: 44px; font-size: calc(16px * var(--pf-fs, 1)); }
.peek-body .pf-sadd { padding: 13px; font-size: calc(13px * var(--pf-fs, 1)); }
.pf-gsep { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--pf-line); }
/* a computer's preview column: the entry sits right under the picture (always in view), the details scroll below it */
@media (min-width: 961px) {
  .pf-searchwin .pf-sprev .pf-sprevhead { order: -1; }
  .pf-searchwin .pf-sprev .pf-sprevbox { order: 0; width: min(100%, calc(34vh * 5 / 7)); }
  .pf-searchwin .pf-sprev .pf-sentryhost { order: 1; flex: 0 0 auto; }
  .pf-searchwin .pf-sprev .pf-sattrs { order: 2; }
}


/* ===== BLACKPORT round 8 (operator 2026-10-07): the CARDS header on two lines · VALUE green, PAID white · DETAILS and
   OPEN ALL / CLOSE ALL · an open batch holds under the header · PERFORMANCE's folder chips, purchase types in or out,
   its own window · the OVERVIEW's change at the right, TOP CARD BY TCG · GRADED as a purchase type ===== */
/* the header: line 1 the filters (folders · TCG · SHOW), line 2 the switches, the columns and ADD A CARD */
.pf-app:not(.ph) .pf-cardsbar { flex-direction: column; align-items: stretch; gap: 8px; }
.pf-filt, .pf-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pf-tools #pf-addbtn2 { margin-left: auto; }
.pf-app.ph .pf-filt, .pf-app.ph .pf-tools { display: contents; }
.pf-app.ph #pf-details, .pf-app.ph .pf-openall { display: none; }
.pf-openall { height: 40px; border-radius: 12px; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.1px; color: var(--pf-ink); }
.pf-openall[hidden] { display: none; }
/* VALUE reads green, PAID white (operator 2026-10-07) */
.pf-pr.v > b { color: var(--pf-pos); }
.pf-pr.p > b { color: #fff; }
.pf-pr > b.none { color: #6a6a6a; }
#pf-value { color: var(--pf-pos); }
/* DETAILS off: the compact tiles keep their SHOW / HIDE buttons */
/* an open batch or group on a computer: its entry holds under the header while its cards scroll — HIDE CARDS stays at hand */
.pf-bwrap { grid-column: 1 / -1; display: block; }
.pf-bwrap > .pf-card { position: sticky; top: calc(var(--pf-stick, 0px) + var(--pf-toph, 0px) + 8px); z-index: 3; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .9); }
.pf-bwrap > .pf-grpcopies { margin-top: 8px; }
/* the OVERVIEW's change sits under the value, at the right (operator 2026-10-07) */
.pf-change { justify-content: flex-end; text-align: right; }
/* TOP CARD BY TCG: the card type (with its count and value) as a kicker over its most valuable card */
.pf-gl { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* PERFORMANCE: the folder chips over the tiles; its own period pills under the chart */
.pf-folders2 { margin-bottom: 10px; }
.pf-folders2[hidden] { display: none; }
#pf-periods2 { margin-top: 8px; }
.pf-when { margin-top: 6px; }
/* BY PURCHASE TYPE: the tick in front of each type counts it in or leaves it out */
.pf-kindhead, .pf-kindrow { grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.pf-kon { width: 22px; height: 22px; padding: 0; border-radius: 6px; border: 1px solid #5a5a5a; background: #141414; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pf-kon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-kon[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.pf-kon[aria-pressed="false"] svg { opacity: 0; }
.pf-kon:hover { border-color: #fff; }
.pf-kon:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pf-kindrow.off .k, .pf-kindrow.off .m, .pf-kindrow.off .g { opacity: .38; }
.pf-app.ph .pf-kindhead, .pf-app.ph .pf-kindrow { grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.pf-app.ph .pf-kon { width: 28px; height: 28px; }
/* DETAILS off: a batch or group tile shows its SHOW / HIDE button as a full-width bar under the price (beside it, the PAID figure was cut) */
.pf-cards.c4.nodet .pf-grp .pf-cbot { flex-wrap: wrap; }
.pf-cards.c4.nodet .pf-gbtn { display: block; flex: 1 1 100%; width: 100%; margin-top: 6px; text-align: center; }

/* ===== BLACKPORT round 9 (operator 2026-10-07): the OVERVIEW change on the value's own line, at the right, in larger type (no "since …") ===== */
.pf-totalrow .pf-change { flex: 0 1 auto; min-width: 0; margin: 0 0 0 auto; min-height: 0; flex-wrap: nowrap; justify-content: flex-end; text-align: right; font-size: calc(13px * var(--pf-fs, 1)); }
.pf-totalrow .pf-change b { height: 30px; padding: 0 11px; border-radius: 9px; font-size: calc(15.5px * var(--pf-fs, 1)); gap: 7px; }
.pf-totalrow .pf-change em { font-size: calc(14px * var(--pf-fs, 1)); }
.pf-totalrow .pf-change b .pf-tri { width: 9px; height: 9px; }
@media (min-width: 961px) { .pf-totalrow .pf-change b { height: 34px; font-size: calc(17px * var(--pf-fs, 1)); padding: 0 13px; } .pf-totalrow .pf-change em { font-size: calc(15px * var(--pf-fs, 1)); } }

/* ===== the six-stage request rail · GRADES READY and the pick-up / EMS choice · the return address (operator 2026-10-07 evening) ===== */
.rq-rail { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.rq-rail .t { left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); }
.rq-rail .f { left: calc(50% / var(--n, 5)); }
.rq-rail .rq-lb { font-size: 7.5px; letter-spacing: .5px; }
.rq-choose { border: 1px solid #5a2a29; }
.rq-choose .rq-opts { display: grid; gap: 8px; margin: 6px 0 2px; }
.rq-choose .rq-fl { margin-top: 8px; }
.rq-choose .rq-foot { margin-top: 8px; display: flex; gap: 8px; }
.rq-choose .rq-foot .rq-next { flex: 1 1 auto; }
.rq-choose .rq-foot .rq-ghost { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
.ord-return { margin-top: 4px; color: #ffd54a; }
.st-addrform textarea { box-sizing: border-box; width: 100%; min-height: 72px; padding: 8px 10px; border-radius: 9px; border: 1px solid #3a3a3a; background: #0f0f0f; color: #fff; font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.st-addrform textarea:focus { outline: none; border-color: var(--accent); }

/* ===== BLACKPORT CARDS (operator 2026-10-08): ADD A BATCH · columns 1 / 2 / 3 (DETAILS off: 2 / 4 / 6) · the read-only fields in one pair
   of rows · the red PAID · BATCH strip with the batch's VALUE · the TCG filter always on · SORT in the search · larger captions ===== */
/* ADD A BATCH beside ADD A CARD: dark with the brand's red edge */
.pf-qbtn.batch { border-color: #6a2a28; color: #fff; }
.pf-qbtn.batch:hover { border-color: var(--accent); background: #1d1414; }
.pf-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-app.ph .pf-quick .pf-qbtn { font-size: calc(10.5px * var(--pf-fs, 1)); padding: 0 6px; gap: 4px; letter-spacing: .8px; }
@media (min-width: 761px) { .pf-quick { grid-template-columns: repeat(3, auto); justify-content: start; } }
/* a phone's CARDS header: the folders, the switches, then + (a card) and the batch icon */
.pf-app.ph .pf-cardsbar { grid-template-columns: minmax(0, 1fr) 46px 46px; }
.pf-app.ph #pf-addbatch2 { grid-column: 3; flex: none; width: 46px; height: 46px; padding: 0; border-radius: 12px; }
.pf-app.ph #pf-addbatch2 span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-app.ph #pf-addbatch2 svg { width: 22px; height: 22px; }

/* the batch bar over the search */
.pf-sbatch { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: #2a1312; border: 1px solid var(--accent); }
.pf-sbatch[hidden] { display: none; }
.pf-sbhead { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pf-sbhead b { flex: 0 0 auto; font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: 2px; color: #fff; }
.pf-sbhead span { flex: 1 1 auto; min-width: 0; font-size: calc(12px * var(--pf-fs, 1)); color: #f3d6d4; }
.pf-sbatch .pf-stog > i { color: #f3d6d4; font-size: calc(9.5px * var(--pf-fs, 1)); }
.pf-sbatch .pf-chip.sm { background: #1d0d0c; border-color: #6a2a28; color: #f2f2f2; }
.pf-sbatch .pf-chip.sm.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-sbrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 86px; gap: 6px; }
.pf-sbrow label { display: flex; flex-direction: column; gap: 2px; font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; color: #f3d6d4; min-width: 0; }
.pf-sbrow label i { font-style: normal; }
.pf-sbrow input, .pf-sbrow select { box-sizing: border-box; width: 100%; min-width: 0; height: 38px; background: #140808; color: #fff; border: 1px solid #7a2d2a; border-radius: 9px; padding: 0 9px; font: inherit; font-size: calc(14px * var(--pf-fs, 1)); color-scheme: dark; }
.pf-sbrow input::placeholder { color: #8d6a68; }
.pf-sbrow input:focus, .pf-sbrow select:focus { outline: none; border-color: #fff; }
.pf-sbrow input[type=number] { -moz-appearance: textfield; }
.pf-sbrow input[type=number]::-webkit-inner-spin-button, .pf-sbrow input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pf-serow label.pf-sero b { display: flex; align-items: center; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px dashed #4a4a4a; background: #141414; color: #bdbdbd; font-weight: 400; font-size: calc(11.5px * var(--pf-fs, 1)); letter-spacing: 0; }
.pf-serow:has(.pf-sero) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }

/* SORT beside the note (the SUBMISSION box's) */
.pf-snoterow { display: flex; align-items: center; gap: 8px; margin: 8px 2px 6px; min-width: 0; }
.pf-snoterow .pf-snote { margin: 0; flex: 1 1 auto; min-width: 0; }
.pf-ssort { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.pf-ssort i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink3); margin-right: 2px; }
.pf-ssort button { height: 26px; padding: 0 9px; border-radius: 7px; background: #111; border: 1px solid #333; color: #cfcfcf; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: 1px; font-weight: 600; cursor: pointer; }
.pf-ssort button:hover { border-color: #6a6a6a; color: #fff; }
.pf-ssort button.on { background: #5a2321; border-color: var(--accent); color: #fff; }

/* the search form's captions and boxes read better (operator 2026-10-08: 'is the text too small? do the entry boxes stand out?') */
.pf-sform label { font-size: calc(9.5px * var(--pf-fs, 1)); color: #a9a9a9; }
.pf-stog > i { font-size: calc(9.5px * var(--pf-fs, 1)); color: #a9a9a9; }
.pf-serow label { font-size: calc(9.5px * var(--pf-fs, 1)); color: #a9a9a9; }
.pf-sform input, .pf-sform select { background: #0e0e0e; border-color: #3d3d3d; }
.pf-sform input:focus, .pf-sform select:focus { outline: none; border-color: var(--accent); }
.pf-stogset .pf-chip.sm { height: 30px; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-snote { font-size: calc(12px * var(--pf-fs, 1)); color: #a9a9a9; }

/* the PAID · BATCH strip: red, larger (operator 2026-10-08), the batch's value and gain beside the price */
.pf-batchrow { background: #4a1715; border: 1px solid var(--accent); border-radius: 12px; padding: 12px 16px; gap: 10px 18px; }
.pf-bl b { font-size: calc(15px * var(--pf-fs, 1)); letter-spacing: 1.6px; }
.pf-bl i { font-size: calc(12.5px * var(--pf-fs, 1)); color: #f3d6d4; }
.pf-bval { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pf-bval i { font-style: normal; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: 1.4px; color: #f3d6d4; font-weight: 700; }
.pf-bval b { font-size: calc(20px * var(--pf-fs, 1)); font-weight: 700; color: #fff; line-height: 1; }
.pf-bval .pf-d { background: rgba(0, 0, 0, .35); height: 22px; font-size: calc(12.5px * var(--pf-fs, 1)); color: #fff; }
.pf-bval .pf-d.down { color: #ffb3b0; }
.pf-bin { margin-left: 0; }
.pf-bin input, .pf-bin select { height: 38px; font-size: calc(15px * var(--pf-fs, 1)); border-color: #7a2d2a; background: #1a0c0b; color: #fff; border-radius: 9px; }
.pf-bin input { width: 170px; } .pf-bin select { width: 92px; } .pf-bin select.pf-bkind { width: 112px; }
.pf-bin input:disabled, .pf-bin select:disabled { opacity: .85; }
.pf-bin input:focus, .pf-bin select:focus { border-color: #fff; }
.pf-cards.ph .pf-batchrow { padding: 12px; gap: 8px 10px; }
.pf-cards.ph .pf-bval { margin-left: 0; width: 100%; } .pf-cards.ph .pf-bval b { font-size: calc(22px * var(--pf-fs, 1)); } .pf-cards.ph .pf-bl i { font-size: calc(13px * var(--pf-fs, 1)); }
.pf-cards.ph .pf-bin input, .pf-cards.ph .pf-bin select { height: 50px; font-size: calc(17px * var(--pf-fs, 1)); border-radius: 11px; }

/* the fields read only (EDIT off, a computer): one pair of rows — the labels over the values */
.pf-cards.lined .pf-fg.line { row-gap: 2px; }
.pf-cards.lined .pf-fg.line .a-lc { visibility: visible; }
.pf-cards.lined .pf-fg.line .a-lb, .pf-cards.lined .pf-fg.line .a-lcert { margin-top: 3px; }
.pf-cards.c2.lined .pf-card { padding: 9px 14px; }
.pf-cards.c2.lined .pf-cart { width: 64px; height: 90px; }
/* ONE column: everything on one pair of rows, the card half as tall */
.pf-cards.c1.lined .pf-fg.line { width: clamp(600px, 64cqw, 1060px); }
.pf-cards.c1.lined .pf-fg.line .a-lb, .pf-cards.c1.lined .pf-fg.line .a-lcert { margin-top: 0; }
.pf-cards.c1.lined .pf-card { padding: 8px 14px; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
.pf-cards.c1.lined .pf-cart { width: 56px; height: 78px; }
.pf-cards.c1.lined .pf-c2 { -webkit-line-clamp: 1; line-clamp: 1; margin-top: 1px; }
.pf-cards.c1.lined .pf-cbot { padding-top: 2px; }
.pf-cards.c1.lined .pf-price { flex-direction: row; align-items: baseline; gap: 14px; }
.pf-cards.c1.lined .pf-pr.v > b { font-size: calc(20px * var(--pf-fs, 1)); }
.pf-cards.c1.lined .pf-pr.p > b { font-size: calc(14px * var(--pf-fs, 1)); }
.pf-cards.c1.lined .pf-grp .pf-fg.pf-gfg { width: clamp(520px, 56cqw, 900px); grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-areas: "l1 l2 l3 l4 l5 l6 l7 l8" "v1 v2 v3 v4 v5 v6 v7 v8"; }
.pf-cards.c1.lined .pf-gfg .g-l7, .pf-cards.c1.lined .pf-gfg .g-l8 { margin-top: 0; }
.pf-cards.c1.lined .pf-grpcopies { gap: 6px; }
.pf-cards.c1.lined, .pf-cards.c2.lined { gap: 6px; }
.pf-cards.lined .pf-l { font-size: calc(clamp(9.5px, 1.3cqw, 10.5px) * var(--pf-fs, 1)); line-height: calc(14px * var(--pf-fs, 1)); }

/* THREE columns (DETAILS on, EDIT off): picture and name on top, the fields under them */
.pf-cards.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(350px, calc((100% - 20px) / 3))), 1fr)); }
.pf-cards.c3 .pf-card { container: pfcard / inline-size; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "art info" "fg fg"; gap: 8px 12px; padding: 10px 12px; align-items: start; }
.pf-cards.c3 .pf-cart { grid-area: art; width: 64px; height: 90px; border-radius: 6px; }
.pf-cards.c3 .pf-cinfo { grid-area: info; max-width: none; justify-content: flex-start; align-self: stretch; }
.pf-cards.c3 .pf-fg { grid-area: fg; width: auto; justify-self: stretch; }
.pf-cards.c3 .pf-c1 b { font-size: calc(15px * var(--pf-fs, 1)); }
.pf-cards.c3 .pf-c1 i { display: none; }
.pf-cards.c3 .pf-c2 { font-size: calc(12px * var(--pf-fs, 1)); -webkit-line-clamp: 2; line-clamp: 2; }
.pf-cards.c3 .pf-cbot { margin-top: auto; padding-top: 4px; }
.pf-cards.c3 .pf-pr.v > b { font-size: calc(19px * var(--pf-fs, 1)); }
.pf-cards.c3 .pf-pr.p > b { font-size: calc(14px * var(--pf-fs, 1)); }
.pf-cards.c3 .pf-l { font-size: calc(9.5px * var(--pf-fs, 1)); line-height: calc(13px * var(--pf-fs, 1)); }
.pf-cards.c3 .pf-fg select, .pf-cards.c3 .pf-fg input, .pf-cards.c3 .pf-fv, .pf-cards.c3 .pf-date { height: 23px; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-cards.c3 .pf-grpcopies { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(350px, calc((100% - 20px) / 3))), 1fr)); }
.pf-cards.c3 .pf-fg.pf-gfg { width: auto; }
.pf-cards.c3 .pf-grp .pf-cbot { flex-wrap: wrap; }

/* DETAILS off: two · four · six tiles a row */
.pf-cards.c4.n2 { grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 10px) / 2)), 1fr)); }
.pf-cards.c4.n2 .pf-grpcopies { grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 10px) / 2)), 1fr)); }
.pf-cards.c4.n6 { grid-template-columns: repeat(auto-fill, minmax(max(168px, calc((100% - 50px) / 6)), 1fr)); gap: 8px; }
.pf-cards.c4.n6 .pf-grpcopies { grid-template-columns: repeat(auto-fill, minmax(max(168px, calc((100% - 50px) / 6)), 1fr)); gap: 8px; }
.pf-cards.c4.n6 .pf-card { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 8px 10px; }
.pf-cards.c4.n6 .pf-cart { width: 48px; height: 67px; }
.pf-cards.c4.n6 .pf-c1 b { font-size: calc(13px * var(--pf-fs, 1)); }
.pf-cards.c4.n6 .pf-c2 { font-size: calc(10.5px * var(--pf-fs, 1)); -webkit-line-clamp: 2; line-clamp: 2; }
.pf-cards.c4.n6 .pf-btag { font-size: calc(7.5px * var(--pf-fs, 1)); padding: 0 4px; }
.pf-cards.c4.n6 .pf-pr { gap: 5px; }
.pf-cards.c4.n6 .pf-pr > i { flex-basis: 30px; font-size: calc(8.5px * var(--pf-fs, 1)); }
.pf-cards.c4.n6 .pf-pr.v > b { font-size: calc(15px * var(--pf-fs, 1)); }
.pf-cards.c4.n6 .pf-pr.p > b { font-size: calc(12px * var(--pf-fs, 1)); }
.pf-cards.c4.n6 .pf-pr .pf-d { height: 18px; font-size: calc(10.5px * var(--pf-fs, 1)); padding: 0 5px; }
.pf-cards.c4.n6.nodet .pf-gbtn { font-size: calc(8.5px * var(--pf-fs, 1)); height: 24px; padding: 0 6px; }

/* the TCG filter row keeps its room beside the folders */
.pf-app:not(.ph) .pf-games { max-width: 66%; }

/* SUBMISSION's search box = the ADD A CARD box (operator 2026-10-08): the same toggles, the same form, TRANSLATE */
#view-submit .sub-searchcard { --pf-panel: #171717; --pf-line: #262626; --pf-ctl-line: #2c2c2c; --pf-ink: #f2f2f2; --pf-ink2: #bdbdbd; --pf-ink3: #8f8f8f; }
.sub-sform { margin: 4px 0 6px; }
.sub-sform .pf-stog > i { flex: 0 0 74px; }
.sub-sform .pf-go { height: 38px; padding: 0 12px; border-radius: 10px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.5px; }
.sub-sform input, .sub-sform select { height: 38px; }
.sub-searchcard .card-head { display: flex; align-items: center; gap: 10px; }
.sub-searchcard .card-head .sub-modes { margin-left: auto; }
@media (min-width: 961px) {
  .sub-sform { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 118px; align-items: end; }
  .sub-sform label.q { grid-column: 1 / 4; }
  .sub-sform label.cur { grid-column: 4 / 5; }
  .sub-sform label.set { grid-column: 1 / 2; }
  .sub-sform .pf-go { grid-column: 4 / 5; align-self: end; }
}
/* a phone: the batch bar's name on its own line, the price and currency under it; + (a card) and the batch icon side by side */
@media (max-width: 760px) {
  .pf-sbrow { grid-template-columns: minmax(0, 1fr) 86px; }
  .pf-sbrow label:first-child { grid-column: 1 / -1; }
}
.pf-app.ph #pf-addbtn2 { order: 1; }
.pf-app.ph #pf-addbatch2 { order: 2; }

/* BATCH ITEMS READ RED in every view (operator 2026-10-08): the cards of a batch and the batch entries, their labels and boxes tinted */
.pf-card.inb, .pf-card.pf-bgrp { background: #2a1312; border-color: #5a2a29; border-left: 3px solid var(--accent); }
.pf-cards .pf-card.inb .pf-l, .pf-cards .pf-bgrp .pf-l { background: #3a1a19; color: #f3d6d4; }
.pf-cards .pf-card.inb .pf-fv, .pf-cards .pf-bgrp .pf-fv, .pf-cards .pf-card.inb .pf-fg select, .pf-cards .pf-card.inb .pf-fg input, .pf-cards .pf-card.inb .pf-date { background: #170b0a; border-color: #4a2524; }
.pf-cards .pf-card.inb .pf-fg select:focus, .pf-cards .pf-card.inb .pf-fg input:focus { border-color: var(--accent); }
.pf-cards .pf-card.inb .pf-btag, .pf-cards .pf-bgrp .pf-gtag { border-color: #7a3a38; color: #fff; }
/* the plain view: a batch's cards in ONE box — darker red, the caption with the batch's VALUE · PAID · gain */
.pf-bgroup { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; gap: inherit; padding: 8px; border-radius: 16px; background: #1c0e0d; border: 1px solid #4a2524; }
.pf-bgcap { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 2px 6px 0; min-width: 0; }
.pf-bgcap b { flex: 0 0 auto; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: #fff; }
.pf-bgcap i { flex: 1 1 auto; font-style: normal; font-size: calc(11.5px * var(--pf-fs, 1)); color: #f3d6d4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-bgcap .pf-bval { margin-left: auto; flex: 0 0 auto; }
.pf-bgcap .pf-bval b { font-size: calc(16px * var(--pf-fs, 1)); } .pf-bgcap .pf-bval b.p { font-size: calc(14px * var(--pf-fs, 1)); color: #f3d6d4; }
.pf-bgroup > .pf-batchrow { margin-bottom: 0; }
.pf-cards.c1.lined .pf-bgroup, .pf-cards.c2.lined .pf-bgroup { gap: 6px; }
/* an OPEN batch entry's cards (BATCH view) sit in the same tint */
.pf-grpcopies[data-of^="b:"] { background: #1c0e0d; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; padding: 8px 8px 8px 12px; }
.pf-cards.ph .pf-grpcopies[data-of^="b:"] { padding: 8px; }
/* a phone: the box, the caption wrapping, the cards' chips */
.pf-cards.ph .pf-bgroup { padding: 8px; gap: 8px; border-radius: 16px; }
.pf-cards.ph .pf-bgcap { flex-wrap: wrap; gap: 4px 10px; padding: 4px 6px 0; }
.pf-cards.ph .pf-bgcap b { font-size: calc(14px * var(--pf-fs, 1)); } .pf-cards.ph .pf-bgcap i { white-space: normal; font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-cards.ph .pf-bgcap .pf-bval { margin-left: 0; } .pf-cards.ph .pf-bgcap .pf-bval b { font-size: calc(18px * var(--pf-fs, 1)); }
.pf-cards.ph .pf-card.pm.inb .pm-chip.b { background: #4a1715; border-color: var(--accent); color: #fff; }
/* a phone's batch box: one column that never widens for its content; the caption on two lines; the PAID strip wraps */
.pf-cards.ph .pf-bgroup { grid-template-columns: minmax(0, 1fr); }
.pf-cards.ph .pf-bgroup > * { min-width: 0; }
.pf-cards.ph .pf-bgcap i { flex: 1 1 auto; flex-basis: auto; }
.pf-cards.ph .pf-bgcap .pf-bval { flex-basis: 100%; }
.pf-cards.ph .pf-batchrow { min-width: 0; }
.pf-cards.ph .pf-bl { flex: 1 1 100%; }

/* THE SEARCH FORM, WIDE (operator 2026-10-08: 'move the pill rows to the right of the fields — saves vertical space'):
   the fields in two rows on the left (NAME · TRANSLATE · CURRENCY / SET NAME · YEAR · RARITY · SEARCH), the three pill
   rows CARD TYPE · LANGUAGE · FIND BY stacked in a column on the right. The form's container decides (≥ 820 px); a
   narrower window or a phone keeps the pills over the fields. */
.pf-smain, .sub-searchcard { container-type: inline-size; }
@container (min-width: 820px) {
  .pf-searchwin .pf-sform, .sub-sform { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) 104px minmax(300px, 46%); grid-auto-rows: auto; align-items: end; column-gap: 8px; }
  .pf-searchwin .pf-sform .pf-stogs, .sub-sform .pf-stogs { grid-column: 5; grid-row: 1 / 3; align-self: start; margin: 0 0 0 6px; padding: 2px 0 0 14px; border-left: 1px solid var(--pf-line); gap: 7px; }
  .pf-searchwin .pf-sform .pf-stog > i, .sub-sform .pf-stog > i { flex-basis: 72px; }
  .pf-searchwin .pf-sform label.q { grid-column: 1 / 5; grid-row: 1; }
  .sub-sform label.q { grid-column: 1 / 4; grid-row: 1; }
  .sub-sform label.cur { grid-column: 4; grid-row: 1; }
  .pf-searchwin .pf-sform label.set, .sub-sform label.set { grid-column: 1; }
  .pf-searchwin .pf-sform label.year, .sub-sform label.year { grid-column: 2; }
  .pf-searchwin .pf-sform label.rar, .sub-sform label.rar { grid-column: 3; }
  .pf-searchwin .pf-sform .pf-go, .sub-sform .pf-go { grid-column: 4; align-self: end; }
  .pf-searchwin .pf-sform input, .pf-searchwin .pf-sform select, .sub-sform input, .sub-sform select { height: 36px; padding: 0 9px; font-size: calc(13.5px * var(--pf-fs, 1)); }
  .pf-searchwin .pf-sform .pf-go, .sub-sform .pf-go { height: 36px; padding: 0 10px; }
  .pf-searchwin .pf-sform .pf-xl, .sub-sform .pf-xl { padding: 0 9px; font-size: calc(10px * var(--pf-fs, 1)); }
}
/* the pill column, wide: tighter chips so CARD TYPE's seven fit in fewer rows */
@container (min-width: 820px) {
  .pf-searchwin .pf-sform .pf-stogset .pf-chip.sm, .sub-sform .pf-stogset .pf-chip.sm { height: 28px; padding: 0 8px; font-size: calc(11.5px * var(--pf-fs, 1)); }
  .pf-searchwin .pf-sform .pf-stogset, .sub-sform .pf-stogset { gap: 4px; }
}

/* ALTERNATING ROWS (operator 2026-10-08): the singles between two greys, the batch items and boxes between two reds — every view */
.pf-cards .pf-card.alt { background: #1e1e1e; }
.pf-cards .pf-card.inb.alt, .pf-cards .pf-card.pf-bgrp.alt { background: #361917; }
.pf-bgroup.alt { background: #241110; }
.pf-cards .pf-card.alt:not(.inb):not(.pf-bgrp) .pf-fv { background: #191919; }

/* THE CHARTS (operator 2026-10-08): the VALUE line green, the PAID line red, the % chips upright, 0 always on the plot */
.pf-chartbox .line { stroke: var(--pf-pos); }
.pf-chartbox .dot, .pf-chartbox .rv { fill: var(--pf-pos); }
.pf-chartbox .paid { stroke: var(--accent); stroke-width: 2; }
.pf-chartbox .rp { fill: var(--accent); }
.pf-chartbox .mk { stroke: var(--pf-pos); }
.pf-legend em::before { border-top-color: var(--pf-pos); }
.pf-legend em.p::before { border-top-color: var(--accent); }
.pf-chg, .pf-change em, #pf-gainpct, .pf-d, .pf-chg em { font-style: normal; }
#pf-folders3 { margin-bottom: 10px; }

/* THE HERO (operator 2026-10-08): the value with PAID under it in small grey; the P/L at the right, large but under the value,
   its % beneath in smaller type; the window's change moved beside the chart's caption */
.pf-totalrow { align-items: flex-start; justify-content: space-between; gap: 12px; }
.pf-tl { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.pf-tv { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pf-paidline { font-size: calc(12.5px * var(--pf-fs, 1)); color: var(--pf-ink3); letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 15px; }
.pf-pl { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; text-align: right; padding-top: 3px; }
.pf-pl b { display: inline-flex; align-items: center; gap: 6px; font-size: calc(24px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.1; color: var(--pf-ink); white-space: nowrap; letter-spacing: -.2px; }
.pf-pl em { font-style: normal; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 600; color: var(--pf-ink2); white-space: nowrap; }
.pf-pl.up b, .pf-pl.up em { color: var(--pf-pos); }
.pf-pl.down b, .pf-pl.down em { color: var(--pf-neg); }
.pf-pl.flat b { color: var(--pf-ink3); font-weight: 500; } .pf-pl.flat em { color: var(--pf-ink3); font-weight: 500; }
.pf-pl b .pf-tri { width: 11px; height: 11px; }
@media (min-width: 961px) { .pf-pl b { font-size: calc(29px * var(--pf-fs, 1)); } .pf-pl em { font-size: calc(13.5px * var(--pf-fs, 1)); } .pf-paidline { font-size: calc(13.5px * var(--pf-fs, 1)); } }
.pf-charthead .pf-change { margin: 0; min-height: 0; flex: 0 0 auto; justify-content: flex-end; }
.pf-charthead .pf-change.muted { font-size: calc(11px * var(--pf-fs, 1)); }

/* a VALUE under the price paid reads RED (operator 2026-10-08) — the cards, the batch entries, the batch box captions */
.pf-pr.v > b.down, .pf-cards .pf-pr.v > b.down { color: var(--pf-neg); }
.pf-bval b.down { color: #ffb3b0; }

/* THE CHARTS, round 7 (operator 2026-10-08): a red hatch under the PAID line; the gain tile's PAID bar red; the window's change
   as a quiet label beside the chart caption */
.pf-chartbox .hatch { stroke: var(--accent); stroke-width: .5; }
.pf-chartbox .under { stroke: none; opacity: .85; }
.pf-cmpbar b.p { background: var(--accent); }
.pf-charthead .pf-change { gap: 7px; }
.pf-charthead .pf-change:not(.muted)::before { content: 'CHANGE'; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.8px; color: var(--pf-ink3); font-weight: 600; }
.pf-charthead .pf-change b { height: auto; padding: 0; background: none !important; border: 0 !important; font-size: calc(13px * var(--pf-fs, 1)); font-weight: 700; gap: 5px; border-radius: 0; }
.pf-charthead .pf-change em { font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--pf-ink2); }
.pf-charthead .pf-change.up em { color: var(--pf-pos); background: rgba(126, 212, 166, .12); }
.pf-charthead .pf-change.down em { color: var(--pf-neg); background: rgba(235, 106, 102, .14); }
.pf-charthead .pf-change b .pf-tri { width: 9px; height: 9px; }

/* THE FULL-CARD PREVIEW: VALUE green (red under cost), PAID grey, the gain coloured — the portfolio's colours */
.peek-attrs .pk-v { font-weight: 700; color: #7ED4A6; } .peek-attrs .pk-v.down { color: #EB6A66; }
.peek-attrs .pk-p { font-weight: 600; color: #bdbdbd; }
.peek-attrs .pk-g { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.peek-attrs .pk-g.up { color: #7ED4A6; } .peek-attrs .pk-g.down { color: #EB6A66; } .peek-attrs .pk-g.flat { color: #8f8f8f; }
.peek-attrs .pk-g .pf-tri { width: 8px; height: 8px; }

/* A PHONE'S COLUMNS (operator 2026-10-08): the switch shows beside the folders; ONE = the standard card, TWO / THREE = tiles
   (picture, name, value / paid), never more than a quarter smaller than the standard card; the open card spans the row */
.pf-app.ph .pf-colsw { display: inline-flex; }
.pf-cards.ph.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-cards.ph.tiles.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "info"; gap: 8px; padding: 10px; }
.pf-cards.ph.tiles .pf-card.pf-grp.pm:not(.open) { grid-template-areas: "art" "info" "more"; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-cart { width: 84px; height: 118px; justify-self: center; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pm-sum, .pf-cards.ph.tiles .pf-card.pm:not(.open) .pm-ed { display: none; }
.pf-cards.ph.tiles .pf-card.pm:not(.pf-grp):not(.open) .pm-more { display: none; }
.pf-cards.ph.tiles .pf-grp.pm:not(.open) .pm-more { grid-area: more; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-c2 { -webkit-line-clamp: 2; line-clamp: 2; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-pr { gap: 6px; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-pr > i { flex-basis: 34px; font-size: calc(9px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-pr.v > b { font-size: calc(18px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-pr.p > b { font-size: calc(14px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-pr .pf-d { height: 21px; padding: 0 6px; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) { padding: 8px; gap: 6px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-cart { width: 64px; height: 90px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr { flex-wrap: wrap; gap: 2px 5px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr > i { flex-basis: 100%; font-size: calc(8px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr.v > b { font-size: calc(16.5px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr.p > b { font-size: calc(12px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr .pf-d { height: 18px; padding: 0 5px; font-size: calc(10.5px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-grp.pm:not(.open) .pm-more { padding: 0 6px; }
.pf-cards.ph.tiles .pf-card.pm.open { grid-column: 1 / -1; }
.pf-cards.ph.tiles .pf-bgroup, .pf-cards.ph.tiles .pf-grpcopies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-cards.ph.tiles.n3 .pf-bgroup, .pf-cards.ph.tiles.n3 .pf-grpcopies { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pf-cards.ph.tiles .pf-grpcopies { grid-column: 1 / -1; margin-left: 0; padding: 8px; }
.pf-cards.ph.tiles .pf-batchrow, .pf-cards.ph.tiles .pf-bgcap { grid-column: 1 / -1; }
/* the phone's menu pills: a tenth smaller type, the same tall targets (operator 2026-10-08: 'easier to select') */
.pf-app.ph .pf-tog { font-size: calc(12px * var(--pf-fs, 1)); height: 48px; letter-spacing: .5px; }
.pf-app.ph .pf-chip { font-size: calc(11px * var(--pf-fs, 1)); }
.pf-app.ph .pf-chip.sm { font-size: calc(11.5px * var(--pf-fs, 1)); height: 38px; }
.pf-app.ph .pf-chip i { font-size: calc(10px * var(--pf-fs, 1)); }

/* TOP CARD BY TCG as tiles (operator 2026-10-08): three a row, the TCG line · the name · its line · the value with its change · the FULL card */
#pf-bygame { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf-list li.pf-tg { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 10px; border: 1px solid var(--pf-line); border-radius: 12px; background: #141414; min-width: 0; }
.pf-list li.pf-tg:first-child { border-top: 1px solid var(--pf-line); }
.pf-tg .pf-gl { margin-bottom: 2px; }
.pf-tgn { font-size: calc(14px * var(--pf-fs, 1)); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tgs { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: .3px; color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tgv { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
.pf-tgv b { font-size: calc(18px * var(--pf-fs, 1)); font-weight: 700; color: #fff; white-space: nowrap; }
.pf-tgart { display: block; width: 100%; aspect-ratio: 5 / 7; margin-top: 8px; border-radius: 9px; overflow: hidden; background: #1c1c1c; border: 1px solid #2a2a2a; box-sizing: border-box; }
.pf-tgart img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pf-tgart:empty { display: none; }
.pf-app.ph #pf-bygame { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-app.ph .pf-list li.pf-tg { padding: 8px; }
.pf-app.ph .pf-tgart { aspect-ratio: auto; height: 150px; }
.pf-app.ph .pf-tgv b { font-size: calc(16px * var(--pf-fs, 1)); }

/* THE PERFORMANCE CHART'S AREAS (operator 2026-10-08): PAID / COST written in the red hatch, GAIN in the green band, LOSS in a
   light-grey −45° hatch; and the OVERVIEW / PERFORMANCE lists in larger type */
.pf-chartbox .hatchl { stroke: #bdbdbd; stroke-width: .5; }
.pf-chartbox .lossh { stroke: none; opacity: .9; }
.pf-chartbox .lbl { font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 2.2px; stroke-linejoin: round; pointer-events: none; }
#pf-top li, #pf-movers li, #pf-best li, #pf-worst li, #pf-byfolder li { padding: 11px 0; gap: 12px; }
#pf-top .pf-ln b, #pf-movers .pf-ln b, #pf-best .pf-ln b, #pf-worst .pf-ln b, #pf-byfolder .pf-ln b { font-size: calc(15.5px * var(--pf-fs, 1)); }
#pf-top .pf-ln > span, #pf-movers .pf-ln > span, #pf-best .pf-ln > span, #pf-worst .pf-ln > span, #pf-byfolder .pf-ln > span { font-size: calc(12.5px * var(--pf-fs, 1)); }
#pf-top .pf-lv b, #pf-movers .pf-lv b, #pf-best .pf-lv b, #pf-worst .pf-lv b, #pf-byfolder .pf-lv b { font-size: calc(16.5px * var(--pf-fs, 1)); }
#pf-top .pf-lv > span:not(.pf-chg), #pf-movers .pf-lv > span:not(.pf-chg), #pf-best .pf-lv > span:not(.pf-chg), #pf-worst .pf-lv > span:not(.pf-chg) { font-size: calc(12.5px * var(--pf-fs, 1)); }
#pf-top .pf-chg, #pf-movers .pf-chg, #pf-best .pf-chg, #pf-worst .pf-chg, #pf-byfolder .pf-chg { font-size: calc(13px * var(--pf-fs, 1)); }
#pf-top .pf-art, #pf-movers .pf-art, #pf-best .pf-art, #pf-worst .pf-art { width: 38px; height: 53px; border-radius: 5px; }
#pf-top .pf-rk { font-size: calc(11px * var(--pf-fs, 1)); }


/* ESTIMATED ACTUAL VALUE (operator 2026-10-08): the input beside VALUE while EDIT is on; the EST tag on a value that is the owner's */
.pf-estin { display: flex; flex-direction: column; gap: 2px; margin-left: auto; width: 112px; flex: 0 0 auto; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1px; color: var(--pf-ink3); }
.pf-estin i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-estin input { box-sizing: border-box; width: 100%; height: 24px; border-radius: 6px; border: 1px dashed #4a4a4a; background: #101010; color: #f2f2f2; font: inherit; font-size: calc(12px * var(--pf-fs, 1)); padding: 0 7px; -moz-appearance: textfield; }
.pf-estin input::-webkit-inner-spin-button, .pf-estin input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pf-estin input:focus { outline: none; border-color: var(--accent); border-style: solid; }
.pf-estin input::placeholder { color: #5a5a5a; }
.pf-si.est { color: #ffd54a; border: 1px solid #6a5a24; border-radius: 3px; padding: 0 4px; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1px; font-weight: 700; }
.pf-cards.c1.lined .pf-cbot { gap: 10px; }
.pf-cards.c1.lined .pf-estin { width: 104px; }
.pf-cards.c3 .pf-cbot { flex-wrap: wrap; }

/* THE CARDS INSIDE A BATCH ARE GREY AGAIN (operator 2026-10-08: 'red = the batch, grey = the singles'): the box and the batch entry
   carry the red; a card keeps a grey left edge and its batch tag */
.pf-card.inb { background: var(--pf-panel); border-color: var(--pf-line); border-left: 3px solid #4a4a4a; }
.pf-cards .pf-card.inb .pf-l { background: #262626; color: #d9d9d9; }
.pf-cards .pf-card.inb .pf-fv, .pf-cards .pf-card.inb .pf-fg select, .pf-cards .pf-card.inb .pf-fg input, .pf-cards .pf-card.inb .pf-date { background: #101010; border-color: #3d3d3d; }
.pf-cards:not(.ph) .pf-card.inb .pf-fg.ro .pf-fv { background: #141414; border-color: #2e2e2e; }
.pf-cards .pf-card.inb .pf-fv.alloc { background: #181818; border-style: dashed; }
.pf-cards .pf-card.inb.alt { background: #1e1e1e; }
.pf-cards .pf-card.inb .pf-btag { border-color: #7a3a38; color: #fff; }
.pf-bgroup > .pf-card.inb { border-left-color: #4a4a4a; }

/* ROUND 10 (operator 2026-10-08) ------------------------------------------------------------------------------ */
/* 1. the batch tag under the thumbnail: the picture and the tag in a column, in every view */
.pf-artcol { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
.pf-artcol .pf-btag { align-self: stretch; max-width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; font-size: calc(8px * var(--pf-fs, 1)); line-height: calc(15px * var(--pf-fs, 1)); padding: 0 4px; }
.pf-cards.c3 .pf-artcol, .pf-cards.ph .pm .pf-artcol { grid-area: art; }
.pf-cards.ph .pf-card.pm:not(.pf-grp) .pf-artcol .pf-btag { display: none; }       /* the chips say BATCH on a phone */
.pf-cards.ph.selecting .pm .pf-artcol, .pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-artcol { align-items: center; }
.pf-cards.c1.lined .pf-artcol .pf-btag { font-size: calc(7.5px * var(--pf-fs, 1)); line-height: calc(14px * var(--pf-fs, 1)); }
/* 2 · 3 · 5. the price block never truncates — the row wraps instead (the SHOW button or the EST box drop a line) */
.pf-cards:not(.ph) .pf-cbot { flex-wrap: wrap; }
.pf-cards.c1.lined .pf-cbot { flex-wrap: nowrap; }
.pf-pr > b { overflow: visible; text-overflow: clip; }
.pf-cards.c2.lined .pf-estin { width: 96px; }
.pf-cards.c2 .pf-grp .pf-gbtn { flex: 0 0 auto; }
/* 4. three columns: an OPEN batch or group entry spans the row, so its details sit at the right like the wide views */
.pf-cards.c3 .pf-bwrap > .pf-card { grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "art info fg"; align-items: center; }
.pf-cards.c3 .pf-bwrap > .pf-card .pf-cart { width: 80px; height: 112px; }
.pf-cards.c3 .pf-bwrap > .pf-card .pf-fg { grid-area: fg; width: clamp(360px, 46cqw, 760px); justify-self: end; }
.pf-cards.c3 .pf-bwrap > .pf-card .pf-cinfo { grid-area: info; }
.pf-cards.c3 .pf-bwrap > .pf-card .pf-cart, .pf-cards.c3 .pf-bwrap > .pf-card .pf-artcol { grid-area: art; }
/* 6. the GAIN word in white on its pill */
/* 7. the phone's open card: a trend block, smaller buttons */
.pm-ed .pf-trend { display: block; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #141414; border: 1px solid #262626; }
.pm-ed .pf-trend.none { font-size: calc(12px * var(--pf-fs, 1)); color: var(--pf-ink3); line-height: 1.4; }
.pf-trendhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.pf-trendhead b { flex: 0 0 auto; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: 1.8px; color: var(--pf-ink2); font-weight: 700; }
.pf-trendhead span { flex: 1 1 auto; min-width: 0; font-size: calc(11.5px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-trendhead .pf-chg { flex: 0 0 auto; font-size: calc(14px * var(--pf-fs, 1)); }
.pf-trendhead .pf-chg .pf-tri { width: 9px; height: 9px; }
.pm-ed .pf-trend svg { display: block; width: 100%; height: 56px; }
.pm-ed .pf-trend path { stroke: #f2f2f2; stroke-width: 2; }
.pm-ed .pf-trend circle { fill: #f2f2f2; }
.pm-ed .pf-trend.up path { stroke: var(--pf-pos); } .pm-ed .pf-trend.up circle { fill: var(--pf-pos); }
.pm-ed .pf-trend.down path { stroke: var(--pf-neg); } .pm-ed .pf-trend.down circle { fill: var(--pf-neg); }
.pm-ed.ro .pm-edfoot { margin-top: 6px; }
.pm-ed.ro .pm-btn { height: 40px; font-size: calc(12.5px * var(--pf-fs, 1)); letter-spacing: .8px; border-radius: 10px; }
/* 8. the phone's column switch floats at the bottom left, above the tab bar (the TOP button's twin) */
.pf-app.ph .pf-colsw { position: fixed; left: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 84; grid-row: auto; grid-column: auto; justify-self: auto; align-self: auto;
  padding: 4px; gap: 2px; border-radius: 14px; background: rgba(24, 24, 24, .94); border: 1px solid #3c3c3c; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.pf-app.ph .pf-colsw button { width: 38px; height: 38px; border-radius: 10px; }
.pf-app.ph .pf-colsw button svg { width: 19px; height: 19px; }
.pf-app.ph .pf-folders { grid-column: 1 / -1; grid-row: auto; }
/* 9 · 10. the phone's tiles: the name on its own line and never broken letter by letter, the tags under it, the SHOW word short */
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-c1 { flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-c1 b { flex: 1 1 100%; white-space: normal; overflow-wrap: normal; word-break: normal; -webkit-line-clamp: 2; line-clamp: 2; font-size: calc(14px * var(--pf-fs, 1)); line-height: 1.2; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-btag { font-size: calc(8.5px * var(--pf-fs, 1)); line-height: calc(16px * var(--pf-fs, 1)); padding: 0 5px; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-c2 { font-size: calc(11.5px * var(--pf-fs, 1)); line-height: 1.3; }
.pf-cards.ph.tiles .pf-grp.pm:not(.open) .pm-more { height: 36px; font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: .6px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-cbot { gap: 2px 6px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-c1 b { font-size: calc(12px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-btag { font-size: calc(7.5px * var(--pf-fs, 1)); line-height: calc(14px * var(--pf-fs, 1)); padding: 0 4px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-c2 { font-size: calc(10px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-grp.pm:not(.open) .pm-more { height: 32px; font-size: calc(10px * var(--pf-fs, 1)); }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-gcount { font-size: calc(10px * var(--pf-fs, 1)); padding: 0 4px; }
/* FIND BY UNDER THE ENTRY BOX (operator 2026-10-08): on the wide form the pill group dissolves into the grid — CARD TYPE and
   LANGUAGE keep the right column, FIND BY sits under NAME / CODE # as a small row, SET NAME · YEAR · RARITY · SEARCH follow */
@container (min-width: 820px) {
  .pf-searchwin .pf-sform .pf-stogs, .sub-sform .pf-stogs { display: contents; }
  .pf-searchwin .pf-sform .pf-stog, .sub-sform .pf-stog { grid-column: 5; align-self: start; margin: 0 0 0 6px; padding: 2px 0 0 14px; border-left: 1px solid var(--pf-line); }
  .pf-searchwin .pf-sform .pf-stog:has([data-chips$="-mode"]), .sub-sform .pf-stog:has([data-chips$="-mode"]) { grid-column: 1 / 5; grid-row: 2; margin: -2px 0 0; padding: 0; border-left: 0; gap: 8px; }
  .pf-searchwin .pf-sform .pf-stog:has([data-chips$="-mode"]) > i, .sub-sform .pf-stog:has([data-chips$="-mode"]) > i { flex-basis: auto; font-size: calc(8.5px * var(--pf-fs, 1)); }
  .pf-searchwin .pf-sform .pf-stog:has([data-chips$="-mode"]) .pf-chip.sm, .sub-sform .pf-stog:has([data-chips$="-mode"]) .pf-chip.sm { height: 24px; padding: 0 9px; font-size: calc(10.5px * var(--pf-fs, 1)); border-radius: 7px; }
  .pf-searchwin .pf-sform label.set, .sub-sform label.set { grid-row: 3; }
  .pf-searchwin .pf-sform label.year, .sub-sform label.year { grid-row: 3; }
  .pf-searchwin .pf-sform label.rar, .sub-sform label.rar { grid-row: 3; }
  .pf-searchwin .pf-sform .pf-go, .sub-sform .pf-go { grid-row: 3; }
  .pf-searchwin .pf-sform, .sub-sform { row-gap: 5px; }
}

/* ROUND 12 (operator 2026-10-08) ------------------------------------------------------------------------------ */
/* 1. the window's figures follow the timeframe: the change under the hero's P/L; the tiles' window lines */
.pf-pl .pf-change { margin: 5px 0 0; min-height: 0; flex-wrap: nowrap; justify-content: flex-end; font-size: calc(11px * var(--pf-fs, 1)); gap: 6px; }
.pf-pl .pf-change i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink3); font-weight: 600; }
.pf-pl .pf-change b { height: auto; padding: 0; background: none !important; border: 0 !important; font-size: calc(13px * var(--pf-fs, 1)); font-weight: 700; gap: 4px; }
.pf-pl .pf-change em { font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--pf-ink2); }
.pf-pl .pf-change.up em { color: var(--pf-pos); background: rgba(126, 212, 166, .12); }
.pf-pl .pf-change.down em { color: var(--pf-neg); background: rgba(235, 106, 102, .14); }
.pf-pl .pf-change b .pf-tri { width: 9px; height: 9px; }
.pf-pl .pf-change.muted { font-size: calc(11px * var(--pf-fs, 1)); }
/* 2. the EST. VALUE box right under PAID, inside the price block */
.pf-price .pf-estin { flex-direction: row; align-items: center; gap: 6px; width: auto; margin: 3px 0 0; }
.pf-price .pf-estin i { flex: 0 0 auto; font-size: calc(8.5px * var(--pf-fs, 1)); }
.pf-price .pf-estin input { width: 96px; height: 22px; font-size: calc(11.5px * var(--pf-fs, 1)); }
.pf-cards.c1.lined .pf-price .pf-estin { margin: 0; }
/* 3 · 4. the field grid in twelve equal columns: BUY/DATE · BATCH · CERT# · REMARKS a quarter each, the batch pill under BUY/DATE */
.pf-cards.lined .pf-fg.line { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 5px; }
.pf-cards.lined .pf-fg.line .a-tag { grid-area: tag; justify-self: start; align-self: start; margin-top: 1px; max-width: 100%; }
.pf-cards.c2.lined .pf-fg.line { width: clamp(360px, 54cqw, 620px); }
.pf-cards.c1.lined .pf-fg.line .a-tag { display: none; }
.pf-cards.c2 .pf-artcol .pf-btag, .pf-cards.c3 .pf-artcol .pf-btag { display: none; }

/* MY SUBMISSIONS · FIND ANOTHER CARD = the ADD A CARD box (operator 2026-10-08): the toggles, TRANSLATE, SET NAME · YEAR · RARITY,
   SORT, the price cells and the full-card preview on the customer's request flow */
#view-request { --pf-panel: #171717; --pf-line: #262626; --pf-ctl-line: #2c2c2c; --pf-ink: #f2f2f2; --pf-ink2: #bdbdbd; --pf-ink3: #8f8f8f; --pf-pos: #7ED4A6; --pf-neg: #EB6A66; }
.rq-sform { margin-bottom: 2px; }
.rq-sform input, .rq-sform select { min-height: 0; height: 40px; font-size: 14px; }
.rq-sform .pf-go { height: 44px; border-radius: 12px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.5px; }
.rq-sform .pf-stog > i { flex-basis: 74px; }
.rq-sform .pf-chip.sm { height: 34px; font-size: calc(12px * var(--pf-fs, 1)); }
.rq-frow { cursor: pointer; }
.rq-frow .rq-ln b em { font-style: normal; font-weight: 500; color: var(--pf-ink2); font-size: 11px; margin-left: 4px; }
.rq-frow .slabq-rp { flex: 0 0 auto; min-width: 54px; text-align: right; }
.rq-frow .slabq-rp.slabq-rp4 { display: grid; grid-auto-flow: column; gap: 8px; }
.rq-frow .slabq-rp .p4 i { font-size: 10.5px; } .rq-frow .slabq-rp .p4 b { font-size: 12px; }
#view-request .pf-snoterow { margin: 6px 2px; }
body.mv #view-request .pf-ssort { display: inline-flex; }

/* MAP INSPECT: the right-click menu on a defect dot (operator 2026-10-08) */
.ai-dotpop { position: fixed; z-index: 300; display: flex; flex-direction: column; gap: 4px; min-width: 210px; padding: 8px; border-radius: 10px; background: #1a1a1a; border: 1px solid #4a4a4a; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); font-family: var(--rep-font, inherit); }
.ai-dotpop b { font-size: 10px; letter-spacing: 1.4px; color: #bdbdbd; padding: 2px 4px 4px; }
.ai-dotpop button { height: 32px; border-radius: 8px; border: 1px solid #3c3c3c; background: #262626; color: #f2f2f2; font: inherit; font-size: 10.5px; letter-spacing: 1px; font-weight: 700; cursor: pointer; text-align: left; padding: 0 10px; }
.ai-dotpop button:hover { background: #303030; border-color: #666; }
.ai-dotpop button.danger { color: #EB6A66; }
/* the wide form's rows keep their own heights (operator 2026-10-08: 'the rows are not aligning — too much blank space'):
   CARD TYPE (two lines of chips) spans the NAME and FIND BY rows, LANGUAGE takes the SET NAME row */
@container (min-width: 820px) {
  .pf-searchwin .pf-sform .pf-stog:has([data-chips$="-game"]), .sub-sform .pf-stog:has([data-chips$="-game"]) { grid-row: 1 / 3; }
  .pf-searchwin .pf-sform .pf-stog:has([data-chips$="-lang"]), .sub-sform .pf-stog:has([data-chips$="-lang"]) { grid-row: 3; align-self: start; }
  .pf-searchwin .pf-sform .pf-stog:has([data-chips$="-mode"]), .sub-sform .pf-stog:has([data-chips$="-mode"]) { align-self: start; margin-top: -1px; }
  .pf-searchwin .pf-sform label.q, .sub-sform label.q, .sub-sform label.cur { align-self: start; }
}
/* the chart words: plain white text, no pill (operator 2026-10-12: 'take out the box around the text; GAIN the same colour
   as PAID / COST') — classes w-gain / w-loss / w-paid, so the bands' .gain / .loss / .paid rules never reach them */
.pf-chartbox text.lbl { fill: #fff; fill-opacity: 1; stroke: none; font-weight: 800; letter-spacing: 2.4px; }
/* the search result rows on ONE line (operator 2026-10-08): picture · name and its line · the price cells · ADD, all centred — shorter rows */
.pf-row { grid-template-columns: 40px minmax(0, 1fr) auto auto; grid-template-areas: "art name price add"; align-items: center; gap: 0 10px; padding: 7px 10px; }
.pf-row .pf-rp { grid-area: price; justify-self: end; align-self: center; text-align: right; }
.pf-row .pf-rp.slabq-rp4 { display: grid; grid-auto-flow: column; gap: 10px; align-items: center; }
.pf-row .btn.pf-add { grid-area: add; align-self: center; }
.pf-row .pf-rc { align-self: center; }

/* ---- INSPECTION · the OPERATION rail remade (operator 2026-10-09: 'a button to enter the type of the
   map defect, buttons to deal with the defects, a more professional look, the numpad-5 home button out').
   The rail beside the card navigator is a stack of quiet group boxes — JOYSTICK (the shared STAGE/CAM
   card restyled; its centre reads the STEP) · DEFECT TYPE · STAGE · RECORDING — and the DEFECT MARKS
   panel sits under the navigator at the column's width. ---- */
.stg-pad-c { display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: #1b1b1b; border: 1px solid #353535; color: var(--muted-2); font-family: Consolas, monospace;
  font-size: 9.5px; letter-spacing: .3px; font-variant-numeric: tabular-nums; user-select: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.ai-grp { display: flex; flex-direction: column; gap: 4px; padding: 6px 7px 7px;
  background: #232323; border: 1px solid #353535; border-radius: 8px; }
.ai-grp-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 13px;
  font-size: 9px; letter-spacing: 1.6px; color: var(--muted-2); }
.ai-grp-h b { font-weight: 700; color: #d2d2d2; white-space: nowrap; }
.ai-grp-h span { font-family: Consolas, monospace; font-size: 9px; letter-spacing: .3px; color: var(--muted-2);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ai-grp-h span.on { color: var(--green-soft); }
.ai-grp-note { font-size: 9px; line-height: 1.4; color: var(--muted-2); letter-spacing: .2px; }
.ai-grp-note:empty { display: none; }
#view-ai #ai-connect.on { background: #1d5c2e; border-color: #2a7a3e; color: #dff5e3; }
/* the DEFECT TYPE palette — the armed type lit red (the IMAGE MODE manner) */
.ai-types { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#view-ai .ai-types .btn { height: 22px; font-size: 9.5px; letter-spacing: .8px; padding: 0 2px; }
#view-ai .ai-types .btn.on { background: #5a2321; border-color: var(--accent); color: #fff; }
/* the borrowed JOYSTICK card wears the group box here */
#view-ai #stg-card-jog { flex: 0 0 auto; width: 100%; margin: 0; background: #232323; border: 1px solid #353535;
  border-radius: 8px; }
#view-ai #stg-card-jog > .card-head { align-items: center; }
#view-ai #stg-card-jog > .card-head > b { font-size: 9px; letter-spacing: 1.6px; color: #d2d2d2; font-stretch: normal; }
#view-ai #stg-card-jog > .card-head > b::before { font-size: 10px; margin-right: 5px; }
#view-ai #stg-card-jog .card-head .tiny { font-size: 9px; letter-spacing: .3px; color: var(--muted-2); font-family: Consolas, monospace; }
#view-ai .stg-pad { grid-template-columns: repeat(3, 36px); grid-auto-rows: 36px; gap: 4px; justify-content: center; }
#view-ai .stg-pad button { border-radius: 7px; font-size: 14px; }
#view-ai #stg-card-jog .stg-row { gap: 6px; }
#view-ai #stg-card-jog .stg-field i { font-size: 8.5px; letter-spacing: 1px; }
#view-ai #stg-card-jog .stg-field select { height: 24px; font-size: 10.5px; }
/* DEFECT MARKS — under the navigator, the column's width; the head folds it */
.ai-marks { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; padding: 6px 7px 7px;
  background: #232323; border: 1px solid #353535; border-radius: 8px; }
.ai-marks.collapsed > :not(.ai-marks-h) { display: none; }
.ai-mlist { height: 92px; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 3px;
  padding-right: 2px; }
.ai-mnone { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px 14px; border: 1px dashed #3a3a3a; border-radius: 6px; color: var(--muted-2); font-size: 10px;
  letter-spacing: .4px; line-height: 1.6; }
.ai-mrow { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 7px 0 3px;
  border: 1px solid #333; border-radius: 6px; background: #1b1b1b; cursor: pointer; font-size: 10.5px;
  white-space: nowrap; overflow: hidden; }
.ai-mrow:hover { border-color: #5a5a5a; }
.ai-mrow.sel { border-color: var(--accent); background: #2b1b1a; }
.ai-mthumb { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 4px; background: #111; border: 1px solid #444;
  overflow: hidden; }
.ai-mthumb.major { border-color: #DC4F4C; }
.ai-mthumb.minor { border-color: #E8C547; }
.ai-mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-mrow .n { font-family: Consolas, monospace; font-size: 10.5px; color: #eee; min-width: 16px; }
.ai-mrow .sev { font-style: normal; font-size: 8.5px; letter-spacing: 1.2px; font-weight: 700; padding: 1px 5px;
  border-radius: 3px; }
.ai-mrow .sev.major { background: #DC4F4C; color: #fff; }
.ai-mrow .sev.minor { background: #E8C547; color: #3a2a00; }
.ai-mrow .ty { font-weight: 700; letter-spacing: .8px; font-size: 10px; color: #f2f2f2; }
.ai-mrow .zn { font-size: 9px; letter-spacing: 1px; color: var(--muted-2); }
.ai-mrow .ms { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: Consolas, monospace;
  font-size: 10px; color: #bdbdbd; }
.ai-mrow .pos { font-family: Consolas, monospace; font-size: 9px; color: var(--muted-2); }
.ai-mtools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ai-mtools2 { display: flex; justify-content: space-between; gap: 4px; }
#view-ai .ai-marks .btn, #view-ai .ai-marks select { height: 24px; padding: 0 4px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; border-radius: 6px; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
#view-ai .ai-marks select { text-transform: none; font-weight: 600; }
#view-ai .ai-marks .btn.danger:not(:disabled) { color: #ff8a86; border-color: #6b2f2d; }
#view-ai .ai-marks .btn.danger:not(:disabled):hover { background: #4a1f1d; }
#view-ai .ai-mtools2 .btn { width: auto; flex: 0 1 48%; }
/* the drag menu carries the type too */

/* ---- INSPECTION slab buttons (operator 2026-10-09): VIEW ORDER lists this ORDER#'s jobs with their level and
   opens one (the workspace job saved first); OPEN JOB — blue, where COMPLETE ORDER was — opens any job of any
   order through a DASHBOARD-style window; COMPLETE ORDER ends the REPORTING bar now ---- */
.jb-orderpop { min-width: 420px; }
.jb-op-row .ord-lvl { flex: 0 0 auto; }
.jb-op-row.none { opacity: .55; cursor: default; }
.jb-op-foot { font-size: 9.5px; letter-spacing: .6px; color: #7f7f7f; padding: 6px 6px 1px; border-top: 1px solid #333; margin-top: 4px; }
.jb-slab-actions #jb-openjob { font-weight: 700; }
/* the OPEN JOB window — the TRASH modal's manners, wider; the search in the head */
#jb-jobpick .trash-win { width: min(1040px, 100%); border-top-color: #2f7fc0; }
#jb-jobpick .trash-head { align-items: center; flex-wrap: wrap; row-gap: 6px; }
#jb-jobpick .trash-head b { color: #a8d4f5; }
.jp-q { flex: 0 0 250px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid #3d3d3d; background: #0e0e0e;
  color: #f2f2f2; font: inherit; font-size: 12px; }
.jp-q:focus { outline: none; border-color: #2f7fc0; }
.jp-count { flex: 0 0 auto; font-style: normal; font-size: 10px; letter-spacing: 1.2px; color: #9a9a9a; min-width: 56px; text-align: right; }
.jp-body { overflow: auto; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.jp-grp { display: flex; flex-direction: column; gap: 7px; }
.jp-grp-h { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 5px; border-bottom: 1px solid #2a2a2a; }
.jp-grp-h b { font-size: 10.5px; letter-spacing: 2px; color: #d2d2d2; }
.jp-grp-h span { font-size: 10px; letter-spacing: 1px; color: #8a8a8a; }
.jp-order { background: #1c1c1c; border: 1px solid #333; border-radius: 8px; padding: 7px 9px 9px; display: flex; flex-direction: column; gap: 6px; }
.jp-oh { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 11.5px; color: #b5b5b5; }
.jp-oh b { flex: 0 0 auto; font-size: 12.5px; letter-spacing: 1px; color: var(--accent); }
.jp-oh b.fam-psa { color: #8fc4ff; }
.jp-oh b.fam-bgs { color: #ffd54a; }
.jp-oh b.fam-ars { color: #ffb3b0; }
.jp-oh span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jp-oh i.st { flex: 0 0 auto; font-style: normal; font-size: 9px; letter-spacing: 1.4px; padding: 2px 7px; border-radius: 3px; background: #2a2a2a; color: #ddd; }
.jp-oh i.st.open { background: #3a2a10; color: #f0c060; }
.jp-oh i.st.complete { background: #1d5c2e; color: #bfe6c5; }
.jp-oh i.st.returned { background: #1f2f4a; color: #8fc4ff; }
.jp-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 5px; }
.jp-job { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 9px 0 4px; min-width: 0; background: #242424;
  border: 1px solid #383838; border-radius: 6px; color: #eee; font: inherit; cursor: pointer; text-align: left; }
.jp-job:hover { border-color: #6a6a6a; background: #2c2c2c; }
.jp-job.cur { border-color: #39FF14; cursor: default; }
.jp-art { flex: 0 0 auto; width: 28px; height: 39px; border-radius: 3px; background: #0d0d0d; overflow: hidden; }
.jp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jp-job > b { flex: 0 0 auto; font-size: 11.5px; letter-spacing: 1px; font-weight: 600; }
.jp-job .ord-lvl { flex: 0 0 auto; }
.jp-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.jp-job em { flex: 0 0 auto; font-style: normal; font-size: 9px; letter-spacing: 1.2px; color: #9a9a9a; }
.jp-job.cur em { color: #39FF14; }
.jp-empty { padding: 28px 14px; text-align: center; color: #9a9a9a; font-size: 12.5px; letter-spacing: .4px; }

/* ==== MAP INSPECT v2 (operator wireframe 2026-10-09; computers, staff only) ====
   1st divider: FULL CARD DEFECT MAP + three DEDUCTION boxes | DEFECT MARKS
   2nd divider: IMAGE MODE | LIVE VIEW | JOYSTICK · DEFECT TYPE ; CAMERA / IMAGE ADJUSTMENT | DEFECT LOUPE
   3rd divider: EDGES · CORNERS · SURFACE scores, the grade by company, the corner & edge tiles */
#view-ai .jb-head { grid-template-columns: var(--sd) var(--ai-c-map) var(--sd) var(--ai-c-live) var(--sd) minmax(300px, 1fr); }
#view-ai .ai-grid.ai-v2 { grid-template-columns: var(--sd) var(--ai-c-map) var(--sd) var(--ai-c-live) var(--sd) minmax(300px, 1fr); }
#view-ai .ai-v2 > .ai-col { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; padding-right: 0; }
#view-ai .ai-v2 > .ai-c3 { overflow-y: auto; padding-right: 3px; }
/* the bars over the columns: the wireframe's red-boxed controls */
.ai-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 6px;
  background: #1b1b1b; border: 1px solid #2e2e2e; border-radius: 8px; }
.ai-bar-t { flex: 1 1 auto; text-align: center; font-size: 10.5px; letter-spacing: 1.3px; color: #d6d6d6; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ai-bar .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ai-seg { display: inline-flex; gap: 3px; flex: 0 0 auto; }
#view-ai .ai-bar .jb-tab { font-size: 10.5px; padding: 3px 9px; }
/* switches: SCOPE · STAGE · DEFECTS */
.ai-sw { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 999px;
  border: 1px solid #3c3c3c; background: #141414; color: #bdbdbd; font: inherit; font-size: 9.5px; letter-spacing: 1.4px;
  font-weight: 700; cursor: pointer; }
.ai-sw i { position: relative; width: 28px; height: 15px; border-radius: 999px; background: #3a3a3a; }
.ai-sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #8a8a8a; transition: transform .15s; }
.ai-sw em { font-style: normal; min-width: 26px; text-align: left; }
.ai-sw.on { color: #f2f2f2; border-color: rgba(220, 79, 76, .65); }
.ai-sw.on i { background: var(--accent); }
.ai-sw.on i::after { transform: translateX(13px); background: #fff; }
#ai-connect.ai-sw.on { border-color: #2a7a3e; }
#ai-connect.ai-sw.on i { background: #2a7a3e; }

/* ---- 1st divider ---- */
.ai-c1body { flex: 1 1 auto; min-height: 0; display: grid; gap: 8px; }
.ai-mapcol { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
#view-ai .ai-v2 .ai-mapcard { flex: 1 1 auto; min-height: 0; padding: 6px; margin: 0; display: flex; }
#view-ai .ai-v2 .ai-playbox { flex: 1 1 auto; width: 100%; height: auto; min-height: 160px; background: #050505; }
/* DEFECT MARKS */
#view-ai .ai-v2 .ai-marks { min-height: 0; margin: 0; padding: 6px 7px 7px; display: flex; flex-direction: column; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-cardh { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ai-cardh b { font-size: 10.5px; letter-spacing: 1.6px; color: #e6e6e6; white-space: nowrap; }
.ai-cardh span { font-size: 9px; letter-spacing: .5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#view-ai .ai-v2 .ai-mlist { flex: 1 1 auto; height: auto; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
#view-ai .ai-v2 .ai-mrow { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: auto; min-height: 44px; padding: 3px 6px 3px 3px;
  border: 1px solid #333; border-left-width: 3px; border-radius: 6px; background: #1b1b1b; cursor: pointer; white-space: normal; overflow: hidden; }
#view-ai .ai-v2 .ai-mrow.major { border-left-color: #DC4F4C; }
#view-ai .ai-v2 .ai-mrow.minor { border-left-color: #E8C547; }
#view-ai .ai-v2 .ai-mrow.micro { border-left-color: #8a8a8a; }
#view-ai .ai-v2 .ai-mrow.sel { border-color: var(--accent); background: #2b1b1a; }
#view-ai .ai-v2 .ai-mrow.legacy { opacity: .8; }
#view-ai .ai-v2 .ai-mthumb { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 3px; border: 1.5px solid #000; outline: 1px solid #444; background: #0b0b0b; overflow: hidden; }
#view-ai .ai-v2 .ai-mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-mtxt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-mtxt .l1 { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; font-size: 10px; }
.ai-mtxt .l1 .n { font-family: Consolas, monospace; font-size: 11px; color: #fff; min-width: 14px; }
.ai-mtxt .l1 .sev { font-style: normal; font-size: 8.5px; letter-spacing: 1px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.ai-mtxt .l1 .sev.major { background: #DC4F4C; color: #fff; }
.ai-mtxt .l1 .sev.minor { background: #E8C547; color: #2b2200; }
.ai-mtxt .l1 .sev.micro { background: #5a5a5a; color: #fff; }
.ai-mtxt .l1 .zn { font-size: 9px; letter-spacing: 1px; color: #d6d6d6; }
.ai-mtxt .l1 .zn.none { color: #ffb3b0; }
.ai-mtxt .l1 .ty { font-size: 9px; letter-spacing: .6px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
/* the DEFECT TYPE pill and its pop-up menu (2026-10-25) */
.ai-mtxt .l1 .zn { flex: 0 3 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* the zone gives way before the type pill */
.ai-mtxt .l1 button.ty { flex: 0 1 auto; min-width: 54px; display: inline-flex; align-items: center; gap: 3px; height: 15px; padding: 0 4px 0 6px;
  border: 1px solid #3a3a3a; border-radius: 4px; background: #1d1d1d; color: #d6d6d6; font: inherit; font-size: 9px; letter-spacing: .6px; cursor: pointer; }
.ai-mtxt .l1 button.ty span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-mtxt .l1 button.ty i { flex: none; font-style: normal; font-size: 8px; color: #9a9a9a; }
.ai-mtxt .l1 button.ty:hover, .ai-mtxt .l1 button.ty.open { border-color: var(--accent); color: #fff; }
.ai-typemenu { position: fixed; z-index: 9200; width: 300px; box-sizing: border-box; padding: 8px; border-radius: 10px; border: 1px solid #444; background: #161616;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .65); font-family: var(--rep-font, Bahnschrift, sans-serif); }
.ai-typemenu .hd { display: flex; align-items: center; gap: 8px; margin: 0 0 7px 2px; }
.ai-typemenu .hd b { font-size: 10px; letter-spacing: 1.4px; color: #eee; }
.ai-typemenu .hd i { font-style: normal; font-size: 9.5px; letter-spacing: 1px; color: #9a9a9a; }
.ai-typemenu .hd .x { margin-left: auto; width: 24px; height: 24px; border-radius: 6px; border: 1px solid #3c3c3c; background: #222; color: #ddd; font-size: 14px; line-height: 1; cursor: pointer; }
.ai-typemenu .gr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ai-typemenu .gr button { height: 26px; padding: 0 8px; border-radius: 6px; border: 1px solid #333; background: #1f1f1f; color: #e6e6e6;
  font: 700 10px/1 var(--rep-font, Bahnschrift, sans-serif); letter-spacing: .8px; text-align: left; cursor: pointer; }
.ai-typemenu .gr button:hover { border-color: #8a8a8a; }
.ai-typemenu .gr button.on { border-color: var(--accent); background: #2b1b1a; color: #fff; }
.ai-mtxt .l2 { font-size: 9.5px; color: #a9a9a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#view-ai .ai-v2 .ai-mtools { display: flex; flex-direction: column; gap: 4px; }
.ai-mtrow { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#view-ai .ai-v2 .ai-mtools label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#view-ai .ai-v2 .ai-mtools label i { font-style: normal; font-size: 8px; letter-spacing: 1.2px; color: var(--muted-2); }
#view-ai .ai-v2 .ai-mtools select { width: 100%; min-width: 0; height: 24px; font-size: 10px; border-radius: 5px; padding: 0 4px; }
#view-ai .ai-v2 .ai-mtools .btn { height: 24px; padding: 0 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; border-radius: 5px; }
#view-ai .ai-v2 .ai-mtools .btn.danger:not(:disabled) { color: #ff8a86; border-color: #6b2f2d; }
#view-ai .ai-v2 .ai-mtools .wide { width: 100%; }

/* ---- 2nd divider ---- */
.ai-c2body { flex: 1 1 auto; min-height: 0; display: grid; gap: 8px;
  grid-template-columns: 94px minmax(0, 1fr) minmax(214px, .8fr); grid-template-rows: minmax(0, 1fr) 204px;
  grid-template-areas: "modes live pick" "adj adj loupe"; }
.ai-modecol { grid-area: modes; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
#view-ai .ai-v2 .ai-modecol .ai-modes { display: flex; flex-direction: column; gap: 3px; }
#view-ai .ai-v2 .ai-modecol .btn { width: 100%; height: 24px; padding: 0 2px; font-size: 9px; letter-spacing: .5px; border-radius: 5px; }
#view-ai .ai-v2 .ai-modecol .ai-lbl { margin-top: 2px; font-size: 8.5px; }
.ai-livecol { grid-area: live; min-height: 0; min-width: 0; display: flex; align-items: flex-start; justify-content: center; }
#view-ai .ai-v2 #ai-livebox { flex: 0 0 auto; height: auto; overflow: hidden; }
.ai-rcol { grid-area: pick; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
/* the joystick without its STEP dropdown here (the tap still steps STAGE/CAM's value) */
#view-ai #stg-card-jog .stg-field:has(#stg-step) { display: none; }
/* DEFECT TYPE — waits for a box */
.ai-pick { flex: 0 0 auto; }
.ai-pickstate { font-size: 10px; line-height: 1.45; color: #a9a9a9; background: #141414; border: 1px dashed #3a3a3a; border-radius: 5px;
  padding: 5px 6px; min-height: 40px; }
.ai-pickstate b { color: #fff; }
.ai-pickstate .warn { color: #ffb3b0; }
.ai-pick.armed { border-color: var(--accent); }
.ai-pick.armed .ai-pickstate { border-style: solid; border-color: #5a2321; color: #e6e6e6; }
.ai-sevs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ai-sevs .sev { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; height: 40px; padding: 0 2px; border-radius: 6px;
  font: inherit; cursor: pointer; border: 1px solid #3a3a3a; min-width: 0; }
.ai-sevs .sev b { font-size: 10.5px; letter-spacing: 1.4px; }
.ai-sevs .sev i { font-style: normal; font-size: 8.5px; letter-spacing: .2px; font-variant-numeric: tabular-nums; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ai-sevs .sev.major { background: #5a2321; border-color: var(--accent); color: #fff; }
.ai-sevs .sev.minor { background: #4a3f14; border-color: #E8C547; color: #F5E9B8; }
.ai-sevs .sev.micro { background: #2b2b2b; border-color: #8a8a8a; color: #e6e6e6; }
.ai-sevs .sev:not(:disabled):hover { filter: brightness(1.2); }
.ai-sevs .sev:disabled { opacity: .38; cursor: default; }
.ai-pickx { margin-left: 4px; width: 20px; height: 18px; border-radius: 4px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #bdbdbd; font: inherit; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.ai-pickx:disabled { opacity: .35; cursor: default; }
.ai-pickx:not(:disabled):hover { color: #fff; border-color: var(--accent); }
#view-ai .ai-v2 .ai-pick .ai-grp-h span { margin-left: auto; }
#view-ai .ai-v2 .ai-pick .ai-pickstate { min-height: 38px; }
.ai-c1body { grid-template-columns: minmax(0, 1.2fr) minmax(190px, 1fr); }
#view-ai .ai-v2 .ai-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
#view-ai .ai-v2 .ai-types .btn { height: 22px; font-size: 8.5px; letter-spacing: .3px; padding: 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* CAMERA / IMAGE ADJUSTMENT — three tabs */
#view-ai .ai-v2 .ai-adjpanel { grid-area: adj; margin: 0; padding: 6px 8px 8px; display: flex; flex-direction: column; min-height: 0; }
.ai-tabs { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.ai-tabs button { height: 24px; padding: 0 10px; border-radius: 5px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #a9a9a9; font: inherit;
  font-size: 9.5px; letter-spacing: 1.2px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ai-tabs button.on { background: #5a2321; border-color: var(--accent); color: #fff; }
.ai-tabs .tiny { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ai-tabbody { flex: 1 1 auto; min-height: 0; margin-top: 6px; overflow-y: auto; scrollbar-width: thin; }
.ai-tabbody[hidden] { display: none; }
#view-ai .ai-v2 .ai-tabbody .ai-adj { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; }
#view-ai .ai-v2 .ai-adjreset { margin-top: 6px; height: 22px; padding: 0 10px; font-size: 9px; letter-spacing: 1px; }
#view-ai .ai-v2 .ai-tabbody #cam-stack { gap: 6px; }
/* DEFECT LOUPE */
#view-ai .ai-v2 .ai-loupe { grid-area: loupe; min-height: 0; }
.ai-loupebox { position: relative; flex: 1 1 auto; min-height: 60px; background: #050505; border: 1px solid #2e2e2e; border-radius: 6px; overflow: hidden; }
#ai-loupe-cv { position: absolute; inset: 0; display: block; }
#ai-loupe-cv[hidden] { display: none; }
.ai-loupe-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 10px; letter-spacing: 1px; }
.ai-loupe-empty[hidden] { display: none; }

/* ---- 3rd divider ---- */

/* ==== the A4 + BLACKVAULT: square defect loupes (operator 2026-10-09: 'squared, not round'), the v2 sheet ==== */
.jr-legend i { border-radius: 2px; }
.jr-sheet.v2 { font-size: 9px; }
.jr-sheet.v2 th { font-size: 8px; letter-spacing: .8px; padding: 3px 5px; line-height: 1.25; }
.jr-sheet.v2 th i { font-style: normal; font-weight: 400; opacity: .85; }
.jr-sheet.v2 th:nth-child(n) { background: #404040; }
.jr-sheet.v2 th:nth-child(n+6) { background: #DC4F4C; }
.jr-sheet.v2 td { padding: 3px 5px; white-space: nowrap; }
.jr-sheet.v2 td i { font-style: normal; color: #DC4F4C; }
.jr-sheet.v2 tr.grp td { padding-top: 4px; }
.jr-sheet.v2 tr.grp.hit td:first-child { color: #DC4F4C; }
.jr-cotab { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 9.5px; color: #404040; font-variant-numeric: tabular-nums; }
.jr-cotab th { font-size: 8.5px; letter-spacing: 1.2px; color: #fff; background: #404040; padding: 3px 6px; font-weight: 600; text-align: center; }
.jr-cotab th.bl { background: #DC4F4C; }
.jr-cotab td { padding: 2px 6px; text-align: center; border-bottom: 1px solid #efefef; }
.jr-cotab td:first-child { text-align: left; font-size: 8.5px; letter-spacing: 1px; color: #7f7f7f; }
.jr-cotab td.bl { background: #fbeceb; font-weight: 700; }
.jr-cotab tr.gr td { font-weight: 700; font-size: 11px; }
/* a top tier the total reaches, beside the 10 — possible, not the grade (2026-10-25, V4·A) */
.jr-cotop { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 3px; background: #e9dcae; color: #4a3b10; font-size: 8.5px; font-weight: 700; line-height: 1.5; vertical-align: 1px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.jr-cokey { margin: 4px 0 0; font-size: 8.5px; color: #6b6b6b; }
.jr-cokey .jr-cotop { margin: 0 2px 0 0; }
.jr-wline { margin: 6px 0 0; font-size: 8.5px; line-height: 1.45; color: #7f7f7f; }
.bv-mk { border-radius: 3px; }
.bv-ded tr.foot td { border-top: 1px solid #333; color: #e6e6e6; font-size: calc(10px + var(--bv-up)); letter-spacing: .5px; }
.bv-costrip { display: grid; gap: 4px; margin: 6px 0 2px; }
.bv-costrip span { display: flex; flex-direction: column; align-items: center; padding: 3px 2px; border: 1px solid #2e2e2e; border-radius: 5px; background: #141414; min-width: 0; }
.bv-costrip span.bl { border-color: #6b2f2d; background: #2b1b1a; }
.bv-costrip i { font-style: normal; font-size: calc(8px + var(--bv-up)); letter-spacing: 1px; color: #8a8a8a; white-space: nowrap; }
.bv-costrip b { font-size: calc(14px + var(--bv-up2)); color: #fff; line-height: 1.2; }
.bv-costrip em { font-style: normal; font-size: calc(8.5px + var(--bv-up)); color: #8a8a8a; font-variant-numeric: tabular-nums; }

/* ==== SETTINGS → Inspection scoring (admin) ==== */
.st-wgrid { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 5px 6px; align-items: center; margin-top: 10px; }
.st-wgrid i { font-style: normal; font-size: 9px; letter-spacing: 1.4px; color: var(--muted); text-align: center; font-weight: 700; }
.st-wgrid b { font-size: 9.5px; letter-spacing: 1.2px; color: #d6d6d6; white-space: nowrap; }
:is(#view-settings, #view-admin) .st-wgrid input { width: 100%; min-width: 0; font-size: 12.5px; padding: 5px 6px; text-align: center; font-variant-numeric: tabular-nums; }
.st-cardhead.st-sub { margin-top: 14px; }
.st-rescore { margin-top: 6px; max-height: 300px; overflow: auto; }
#set-rescore-note { color: #E8B44A; }
#set-w-eg { color: #d6d6d6; }
.st-rstable { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.st-rstable th { text-align: left; font-size: 9px; letter-spacing: 1.2px; color: var(--muted); padding: 3px 5px; border-bottom: 1px solid #333; }
.st-rstable td { padding: 3px 5px; border-bottom: 1px solid #262626; color: #cfcfcf; white-space: nowrap; }
.st-rstable td:nth-child(2) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.st-rstable tr.chg td { color: #fff; }
.st-rstable tr.chg td:nth-child(3) b { color: #E8C547; }
.st-rstable tr.bad td { color: #ff8a86; }

/* BLACKVAULT / JOB REPORTING surface map (scoring v2, 2026-10-10): square loupes with a black outline, the number below */
.bv-mk.sq { width: clamp(15px, calc(var(--sq, 0) * 2.4%), 43px);   /* a third smaller than scoring v2's 22–64 (operator 2026-10-11) */ height: auto; aspect-ratio: 1; border-radius: 2px; border: 2px solid #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 2px 6px rgba(0, 0, 0, .45); background: #0b0b0b; display: block; padding: 0; }
.bv-mk.sq.major, .bv-mk.sq.minor, .bv-mk.sq.micro { background: #0b0b0b; }
.bv-mk.sq .bv-mkl { display: block; width: 100%; height: 100%; overflow: hidden; }
.bv-mk.sq .bv-mkl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bv-mk.sq i { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); min-width: 15px; height: 14px; padding: 0 3px; border-radius: 3px;
  font-style: normal; font-size: calc(9.5px + var(--bv-up)); line-height: 14px; font-weight: 700; text-align: center; color: #fff; background: #111; border: 1px solid #000; }
.bv-mk.sq.major i { background: #DC4F4C; }
.bv-mk.sq.minor i { background: #E8C547; color: #2b2200; }
.bv-mk.sq.micro i { background: #5a5a5a; }
.bv-mk.sq.hot { outline: 2px solid #39FF14; outline-offset: 2px; }
.bv-def, .bv-def img { border-radius: 3px; }

/* A4 DEFECT MAP (scoring v2, 2026-10-10): square loupes with a black outline, the number in a pill below,
   small black-outlined squares on the card */
.jr-dc.sq { border: 2px solid #000; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px #fff; }
.jr-dc.sq.pic, .jr-dside.back .jr-dc.sq { border-color: #000; }
.jr-dc.sq img { border-radius: 1px; }
.jr-dc.sq span { color: #404040; }
.jr-dc.sq i { right: auto; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); height: 13px; min-width: 15px; border-radius: 3px; font-size: 8px; background: #404040; }
.jr-dc.sq.major i, .jr-dside.back .jr-dc.sq.major i { background: #DC4F4C; }
.jr-dc.sq.minor i, .jr-dside.back .jr-dc.sq.minor i { background: #e0b64a; color: #2b2200; }
.jr-dc.sq.micro i, .jr-dside.back .jr-dc.sq.micro i { background: #8a8a8a; }
.jr-dlines .pt.sq { fill: #fff; stroke: #000; stroke-width: 1.6; }
.jr-dlines .pt.sq.major { fill: #f4b8b6; }
.jr-dlines .pt.sq.minor { fill: #FFF4D0; }
.jr-dlines .pt.sq.micro { fill: #e6e6e6; }
.jr-dlist li.off { color: #a6a6a6; }

/* ==== MAP INSPECT round 15 (operator 2026-10-10) ====
   1st divider: the map + DEFECT MARKS over IMAGE ADJUSTMENT (it took the deduction boxes' place);
   2nd divider: the live view on the GPU, no detector, no zone picker; 3rd divider: DEFECT SUMMARY + the
   pillar cards on the CENTERING card's template + GRADE */
#view-ai .ai-v2 .ai-mapcol { grid-area: map; }
#view-ai .ai-v2 .ai-marks { grid-area: marks; }
.ai-livestat { position: absolute; left: 6px; bottom: 6px; z-index: 4; pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums;
  letter-spacing: .6px; color: #9be3c2; font-size: 9.5px; font-weight: 700; background: rgba(0,0,0,.62); padding: 2px 7px; border-radius: 3px; }
.ai-livestat:empty { display: none; }
#view-ai .ai-v2 .ai-bar-t { letter-spacing: 1px; }
#view-ai .ai-v2 .ai-bar .ai-sw { padding: 0 7px; gap: 5px; }

/* 3rd divider — the CENTERING card's template */
#view-ai .ai-c3 .jb-rescard { margin: 0; }
#view-ai .ai-c3 .jb-reshead b { font-size: 13.5px; letter-spacing: 2px; }
#view-ai .ai-c3 .jb-bigratio { font-size: 17px; padding: 1px 12px; }
#view-ai .ai-c3 .jb-bigratio i { font-style: normal; font-size: 11px; color: #f2b8b6; font-weight: 600; }
#view-ai .ai-c3 .jb-rc { padding: 0; }
#view-ai .ai-c3 .jb-rc-grade { margin-bottom: 6px; gap: 10px; font-size: 10px; flex-wrap: wrap; }
#view-ai .ai-c3 .jb-rc-grade .pen { font-size: 14px; padding: 1px 10px; }
#view-ai .ai-c3 .jb-rc-row { font-size: 8.5px; }
.ai-corow { margin-top: 6px; }
/* the FRONT / BACK breakdown — the boxes that sat under the map */
/* DEFECT SUMMARY */
/* GRADE */
/* BLACKVAULT: BLACKLENS apart from BGS — six chips */
.bv-costrip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bv-costrip span.bl i { color: #f2b8b6; }
#ai-gallery[hidden] { display: none !important; }   /* built off-screen for the published report (round 15) */

/* ==== MAP INSPECT round 17 (operator 2026-10-11) ====
   header pills: bigger subgrades, GRADE bigger still;
   1st divider: the map | DEFECT LOUPE over DEFECT MARKS, the IMAGE ADJUSTMENT · CAMERA · MACRO & RECORDING tabs under both;
   2nd divider: IMAGE MODE | the LIVE VIEW (as big as the column allows) | JOYSTICK (half width) over DEFECT TYPE + SEVERITY;
   3rd divider: EDGES · CORNERS · SURFACE with FRONT | BACK side by side + GRADE — nothing scrolls */
.jb-pill b { font-size: 38px; margin-top: 4px; }
.jb-pill.jb-pill-grade b { font-size: 50px; }

/* ---- 1st divider ---- */
#view-ai .ai-v2 .ai-c1body { grid-template-columns: minmax(0, 1.2fr) minmax(190px, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "map side" "tabs tabs"; }
.ai-sidecol { grid-area: side; display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
#view-ai .ai-v2 .ai-sidecol .ai-loupe { flex: 0 0 auto; margin: 0; }
#view-ai .ai-v2 .ai-sidecol .ai-loupebox { flex: 0 0 auto; width: 100%; height: 160px; min-height: 0; }   /* sizeAll sets the height */
/* default widths: the live column as wide as a full-height 9:16 view needs, the map column the rest beside a ~470 px results column */
#view-ai { --ai-c-live: clamp(480px, calc((100vh - 217px) * .5625 + 212px), 900px);
  --ai-c-map: clamp(360px, calc(100vw - 222px - var(--ai-c-live) - clamp(320px, 22vw, 470px)), 800px); }
/* DEFECT MARKS' tools in two rows: SEVERITY · ZONE · TYPE, then UNDO LAST · DELETE · CLEAR SIDE — the list keeps its room */
#view-ai .ai-v2 .ai-sidecol .ai-mtools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
#view-ai .ai-v2 .ai-sidecol .ai-mtools .ai-mtrow { display: contents; }
#view-ai .ai-v2 .ai-sidecol .ai-mtools .wide { width: auto; }
#view-ai .ai-v2 .ai-tabpanel { grid-area: tabs; margin: 0; padding: 6px 8px 8px; height: 172px; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ai-adjtools { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ai-adjtools[hidden] { display: none; }
#ai-adj-mode { font-size: 9.5px; letter-spacing: 1.2px; color: #ff9d99; font-weight: 700; white-space: nowrap; }
#view-ai .ai-tabpanel .ai-adjreset { margin: 0; height: 20px; padding: 0 10px; font-size: 9px; letter-spacing: 1px; }
#view-ai .ai-v2 .ai-adjbody .ai-adj { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; }
#view-ai .ai-v2 .ai-adjbody .ai-adj label { grid-template-columns: 62px minmax(0, 1fr) 30px; min-height: 17px; }
#view-ai .ai-v2 .ai-adjbody .ai-adj i { font-size: 8.5px; }

/* ---- 2nd divider ---- */
#view-ai .ai-v2 .ai-c2body { grid-template-columns: 88px minmax(0, 1fr) 108px; grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "modes live pick"; gap: 8px; }
#view-ai .ai-v2 .ai-rcol { grid-area: pick; gap: 8px; overflow-y: auto; overflow-x: hidden; }
/* the joystick at half its width, without its note */
#view-ai #stg-card-jog { padding: 6px 5px 7px; }
#view-ai #stg-card-jog > .card-head { margin-bottom: 5px; }
#view-ai #stg-card-jog > .card-head .tiny { display: none; }
#view-ai #stg-card-jog .stg-pad { grid-template-columns: repeat(3, 30px); grid-auto-rows: 30px; gap: 3px; justify-content: center; }
#view-ai #stg-card-jog .stg-pad button { font-size: 12px; border-radius: 6px; }
#view-ai #stg-card-jog .stg-pad-c { font-size: 8px; }
#view-ai #stg-card-jog .stg-row { margin-top: 7px; }
#view-ai #stg-card-jog .stg-field { width: 100%; min-width: 0; }
/* DEFECT TYPE + SEVERITY — vertical, the IMAGE MODE column's buttons */
#view-ai .ai-v2 .ai-pick { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; min-width: 0; }
#view-ai .ai-v2 .ai-pick .ai-lbl { margin-top: 2px; font-size: 8.5px; }
#view-ai .ai-v2 .ai-pick .ai-types { display: flex; flex-direction: column; gap: 3px; }
#view-ai .ai-v2 .ai-pick .ai-types .btn { width: 100%; height: 24px; padding: 0 2px; font-size: 9px; letter-spacing: .5px; border-radius: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-ai .ai-v2 .ai-pick .ai-sevs { display: flex; flex-direction: column; gap: 4px; }
#view-ai .ai-v2 .ai-pick .ai-sevs .sev { width: 100%; height: 38px; }
/* short windows: the right column tightens before it would scroll */
@media (max-height: 860px) {
  #view-ai #stg-card-jog .stg-pad { grid-template-columns: repeat(3, 28px); grid-auto-rows: 28px; }
  #view-ai .ai-v2 .ai-pick .ai-types .btn { height: 21px; }
  #view-ai .ai-v2 .ai-pick .ai-sevs .sev { height: 32px; }
  #view-ai .ai-v2 .ai-pick .ai-sevs .sev i { font-size: 8px; }
}
/* the box waiting for its type and severity — its state over the top of the live view */
.ai-pickov { position: absolute; left: 6px; right: 6px; top: 6px; z-index: 6; display: flex; align-items: flex-start; gap: 6px;
  padding: 5px 6px 6px 8px; background: rgba(12, 12, 12, .9); border: 1px solid var(--accent); border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.ai-pickov[hidden] { display: none; }
#view-ai .ai-pickov .ai-pickstate { flex: 1 1 auto; min-width: 0; min-height: 0; padding: 0; border: 0; background: none;
  font-size: 10px; line-height: 1.45; color: #e6e6e6; }
#view-ai .ai-pickov .ai-pickx { flex: 0 0 auto; margin: 0; }

/* ---- 3rd divider: four cards that fit the column, the spare room shared between them ---- */
#view-ai .ai-v2 > .ai-c3 { overflow: hidden; container: aic3 / size; }
#view-ai .ai-c3 #ai-scores { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#view-ai .ai-c3 .ai-nextrow { flex: 0 0 auto; }
#view-ai .ai-c3 .jb-rescard { padding: 7px 9px 8px; }
#view-ai .ai-c3 .jb-reshead { margin: -7px -9px 7px; padding: 5px 9px; gap: 8px; }
#view-ai .ai-c3 .ai-pcard .jb-bigratio { margin-left: 0; }
.ai-fb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#view-ai .ai-c3 .ai-corow { margin-top: 6px; }
#view-ai .ai-c3 .jb-rc-row span { padding: 3px 1px; font-size: 8px; letter-spacing: .4px; white-space: nowrap; overflow: hidden; }
#view-ai .ai-c3 .jb-rc-row b { font-size: 14px; margin-top: 1px; }
/* a narrow column (smaller windows): tighter type so FRONT | BACK keep side by side */
@container aic3 (max-width: 380px) {
  .ai-fb { gap: 4px; }
  #view-ai .ai-c3 .jb-rc-row span { font-size: 7px; letter-spacing: 0; }
  #view-ai .ai-c3 .jb-reshead b { font-size: 12.5px; letter-spacing: 1.4px; }
  #view-ai .ai-c3 .ai-nextrow .btn { min-width: 0; padding-left: 6px; padding-right: 6px; letter-spacing: .3px; font-size: 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* short columns tighten, then shed the explanation line */
@container aic3 (max-height: 820px) {
  #view-ai .ai-c3 .jb-rescard { padding: 5px 8px 6px; }
  #view-ai .ai-c3 .jb-reshead { margin: -5px -8px 5px; padding: 4px 8px; }
  #view-ai .ai-c3 .jb-bigratio { font-size: 15px; }
  #view-ai .ai-c3 .ai-corow { margin-top: 4px; }
  #view-ai .ai-c3 .jb-rc-row b { font-size: 12.5px; }
}
@container aic3 (max-height: 700px) {
  #view-ai .ai-c3 .jb-rc-row span { padding: 2px 1px; }
  #view-ai .ai-c3 .jb-rc-row b { font-size: 12px; margin-top: 0; }
}

/* ==== MAP INSPECT: the IMAGE MODE column folds to a rail at the left (operator 2026-10-11) ==== */
#view-ai .ai-modecol .ai-lbl:first-child { align-items: center; }
.ai-fold { flex: 0 0 auto; width: 20px; height: 18px; padding: 0; border-radius: 4px; border: 1px solid #3a3a3a; background: #1b1b1b;
  color: #bdbdbd; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.ai-fold:hover { color: #fff; border-color: var(--accent); }
.ai-modes-rail { display: none; }
#view-ai .ai-v2 .ai-c2body.modes-folded { grid-template-columns: 24px minmax(0, 1fr) 108px; }
#view-ai .ai-v2 .ai-c2body.modes-folded .ai-modecol { overflow: hidden; }
#view-ai .ai-v2 .ai-c2body.modes-folded .ai-modecol > :not(.ai-modes-rail) { display: none; }
#view-ai .ai-v2 .ai-c2body.modes-folded .ai-modes-rail { display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 24px; height: 100%; min-height: 0; padding: 8px 0; border-radius: 6px; border: 1px solid #3a3a3a; background: #1b1b1b;
  color: #bdbdbd; font: inherit; cursor: pointer; }
.ai-modes-rail:hover { color: #fff; border-color: var(--accent); }
.ai-modes-rail b { font-size: 15px; line-height: 1; }
.ai-modes-rail span { writing-mode: vertical-rl; font-size: 9px; letter-spacing: 1.6px; font-weight: 700; white-space: nowrap; }

/* ==== MAP INSPECT round 18 (operator 2026-10-11) ====
   DEFECT MARKS without dropdowns · the tab panel folds · no GRADE card, tighter pillar cards */
/* the tab panel: folded = the tab row only; the row never overflows its column */
#view-ai .ai-v2 .ai-tabpanel { container: aitabs / inline-size; }
#view-ai .ai-v2 .ai-tabpanel.folded { height: auto; }
#view-ai .ai-v2 .ai-tabpanel.folded .ai-tabbody { display: none; }
#view-ai .ai-v2 .ai-tabpanel.folded .ai-adjtools { display: none; }
#view-ai .ai-tabs { min-width: 0; overflow: hidden; }
#view-ai .ai-tabs .ai-tabsfold { flex: 0 0 auto; width: 22px; height: 24px; font-size: 11px; }
#view-ai .ai-tabs button[data-aitab] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@container aitabs (max-width: 560px) { #ai-adj-mode { display: none; } }
@container aitabs (max-width: 480px) {
  #view-ai .ai-tabs button[data-aitab] { padding: 0 7px; letter-spacing: .5px; font-size: 9px; }
  #view-ai .ai-tabpanel .ai-adjreset { padding: 0 7px; }
}
/* DEFECT MARKS: one row of tools */
#view-ai .ai-v2 .ai-sidecol .ai-mtools { margin-top: 2px; }
/* the score column: three cards from the top, nothing stretched between them */

/* ==== MAP INSPECT round 19 (operator 2026-10-11) ====
   1st divider: the DEFECT LOUPE under the FULL CARD DEFECT MAP, DEFECT MARKS the whole column beside them;
   3rd divider: EDGES · CORNERS · SURFACE fill the column — type that grows with it (cqh, capped by cqw), MAJOR · MINOR ·
   MICRO rows with the area their marks cover, each side's DEFECT AREA, the points left as a stand-out red score */
#view-ai .ai-v2 .ai-mapcol .ai-loupe { flex: 0 0 auto; margin: 0; }
#view-ai .ai-v2 .ai-mapcol .ai-loupebox { flex: 0 0 auto; width: 100%; height: 160px; min-height: 0; }   /* sizeAll sets the height */
#view-ai .ai-v2 .ai-sidecol .ai-marks { flex: 1 1 auto; min-height: 0; }

/* ==== MAP INSPECT round 21 (operator 2026-10-11: 'the EDGES / CORNERS / SURFACE scoring in the CENTERING card's
   style — identical, the same schema') ====
   The pillar card is the CENTERING result card: its classes and the sizes measured on it at 1920×917 — head 14.5 px
   semi-condensed on the grey bar, the score in the 19 px red pill, each side an 11.5 px strip with its name bold, values
   white and the grade in the 15 px red-edged box, then the 10 / 15 px company row with BLACKLENS red. The three cards
   share the column; the spare height goes to the strips' lines. */
#view-ai .ai-c3 #ai-scores { justify-content: flex-start; gap: 10px; }
#view-ai .ai-c3 .jb-rescard.ai-pcard { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 8px 10px; }
#view-ai .ai-c3 .ai-pcard .jb-reshead { flex: 0 0 auto; margin: -8px -10px 6px; padding: 6px 10px; gap: 8px; min-height: 0; border: 0;
  background: linear-gradient(90deg, #2b2b2b, #1a1a1a); }
#view-ai .ai-c3 .ai-pcard .jb-reshead > b { font-size: 14.5px; font-weight: 700; letter-spacing: .5px; font-stretch: 87.5%; color: #f2f2f2; }
#view-ai .ai-c3 .ai-pcard .jb-reshead .jb-bigratio { margin-left: auto; padding: 2px 14px; border-radius: 3px; font-size: 19px; font-weight: 700; line-height: 1.45;
  color: #fff; background: linear-gradient(90deg, #7e2c28, #5a2321); white-space: nowrap; }
#view-ai .ai-c3 .ai-pcard > .card-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 0; }
#view-ai .ai-c3 .ai-pcard .ai-fb { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip { margin: 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; padding: 5px 8px;
  font-size: 11.5px; letter-spacing: .5px; line-height: 1.45; color: #a6a6a6; background: #1d1d1d; border: 1px solid #222; border-radius: 3px; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip > div { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip > .l2, #view-ai .ai-c3 .ai-pcard .ai-sstrip > .l3 { flex: 1 1 auto; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip i { font-style: normal; font-weight: 700; letter-spacing: 2px; color: #d9d9d9; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip b { color: #f2f2f2; font-weight: 700; font-variant-numeric: tabular-nums; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip em { font-style: normal; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .p em, #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 span em { color: #7f7f7f; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .pen { margin-left: auto; padding: 2px 12px; border-radius: 3px; font-size: 15px; line-height: 1.45;
  color: #fff; background: #5a2321; border: 1px solid var(--accent); }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span:not(.hit) b { color: #7f7f7f; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 { justify-content: space-between; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .d { margin-left: auto; }
#view-ai .ai-c3 .ai-pcard .jb-rc-row { flex: 0 0 auto; margin: 0; gap: 2px; font-size: 10px; letter-spacing: .5px; color: #7f7f7f; }
#view-ai .ai-c3 .ai-pcard .jb-rc-row span { padding: 4px 2px; font-size: 10px; letter-spacing: .5px; line-height: 1.45; white-space: nowrap; overflow: hidden; }
#view-ai .ai-c3 .ai-pcard .jb-rc-row b { font-size: 15px; margin-top: 2px; line-height: 1.45; }
#view-ai .ai-c3 .ai-nextrow { margin-top: 10px; }
/* a narrower column: MAJ · MIN · MIC, tighter strips */
@container aic3 (max-width: 400px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 em { display: none; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip > div { gap: 8px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip { padding: 5px 6px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .pen { padding: 2px 8px; }
}
@container aic3 (max-width: 330px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip i { letter-spacing: 1px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .p em, #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 span em { display: none; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip > div { gap: 6px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .pen { padding: 1px 6px; font-size: 13.5px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row span { font-size: 7px; letter-spacing: 0; }
}
/* a short column (1366 × 768): the same schema, tighter spacing */
@container aic3 (max-height: 700px) {
  #view-ai .ai-c3 #ai-scores { gap: 6px; }
  #view-ai .ai-c3 .jb-rescard.ai-pcard { padding: 6px 8px; }
  #view-ai .ai-c3 .ai-pcard .jb-reshead { margin: -6px -8px 5px; padding: 4px 8px; }
  #view-ai .ai-c3 .ai-pcard .jb-reshead .jb-bigratio { font-size: 16px; padding: 1px 12px; }
  #view-ai .ai-c3 .ai-pcard > .card-body { gap: 5px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip { gap: 1px; padding: 3px 6px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .pen { font-size: 13.5px; padding-top: 0; padding-bottom: 0; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row span { padding: 2px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row b { font-size: 13px; margin-top: 0; }
  #view-ai .ai-c3 .ai-nextrow { margin-top: 6px; }
}

/* the live chip when the camera falls short of the fixed frame rate (operator 2026-10-11) */
.ai-livestat.slow { color: #ffd0ce; background: rgba(74, 31, 29, .92); border-color: #8a3a37; }

/* FRAME RATE TEST in Camera Settings (operator 2026-10-11) */
.uvc-foot #btn-uvc-ratetest { margin-left: 6px; margin-right: auto; }
.uvc-ratetest { margin-top: 8px; padding: 7px 8px 8px; background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 6px; font-size: 10.5px; color: #bdbdbd; }
.uvc-ratetest[hidden] { display: none; }
.uvc-ratetest .rt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 5px; }
.uvc-ratetest .rt-head b { font-size: 10px; letter-spacing: 1.4px; color: #e6e6e6; }
.uvc-ratetest .rt-head span { font-size: 9px; color: #8a8a8a; }
.uvc-ratetest .rt-tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.uvc-ratetest .rt-tab th { text-align: left; font-size: 8.5px; letter-spacing: .8px; color: #8a8a8a; font-weight: 700; padding: 0 4px 3px 0; }
.uvc-ratetest .rt-tab td { padding: 2px 4px 2px 0; border-top: 1px solid #262626; white-space: nowrap; }
.uvc-ratetest .rt-tab b.ok { color: #9be3c2; }
.uvc-ratetest .rt-tab b.lo { color: #ffb3b0; }
.uvc-ratetest .rt-note { margin: 6px 0 0; line-height: 1.45; }
.uvc-ratetest .rt-busy { margin: 0; color: #e6e6e6; }
.uvc-foot:has(#btn-uvc-ratetest) { flex-wrap: wrap; gap: 4px 0; }
.uvc-foot:has(#btn-uvc-ratetest) .tiny { white-space: nowrap; }

/* the shutter longer than one frame (operator 2026-10-11: the whole range is selectable) - amber, the row title says the cost */
.uvc-val.long { color: var(--yellow-soft, #f2c94c); }

/* HOLD 30 FPS (operator 2026-10-11): the switch in the Camera Settings foot + the guard's last word */
.uvc-foot #btn-uvc-hold { margin-left: 6px; }
.uvc-foot #btn-uvc-hold.on { color: #9be3c2; border-color: #2f6b4f; background: rgba(47, 107, 79, .18); }
.uvc-holdnote { margin: 6px 0 0; padding: 6px 8px; font-size: 10.5px; line-height: 1.45; color: #cfcfcf; background: #1b1b1b; border: 1px solid #2c2c2c; border-left: 2px solid #2f6b4f; border-radius: 6px; }
.uvc-holdnote[hidden] { display: none; }

/* the window's change keeps ITS OWN sign colour inside the P/L block (operator 2026-10-11: a +฿18,144 over 7 days read red under a negative P/L) - green up, red down, grey flat */
#pf-pl .pf-change.up b { color: var(--pf-pos); }
#pf-pl .pf-change.down b { color: var(--pf-neg); }
#pf-pl .pf-change.flat b { color: var(--pf-ink3); }
#pf-pl .pf-change.up em { color: var(--pf-pos); }
#pf-pl .pf-change.down em { color: var(--pf-neg); }
/* BEST / WORST: the amount beside the % follows its sign too */
#view-port .pf-lv > span.pf-amt.up { color: var(--pf-pos); }
#view-port .pf-lv > span.pf-amt.down { color: var(--pf-neg); }

/* ONE CALIBRATION PER RESOLUTION (operator 2026-10-11): 1080p · 2K · 4K Calibration, PASS / FAIL under each button */
.stg-calbtns { display: flex; gap: 6px; align-items: flex-start; }
.stg-calcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.stg-calcol .btn { width: 100%; white-space: normal; line-height: 1.15; min-height: 30px; padding-left: 3px; padding-right: 3px; }
.stg-calbtns .stg-calcol .btn.on { box-shadow: 0 0 0 1px #8fc4ff inset; }
.stg-calst { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; font-variant-numeric: tabular-nums; }
.stg-calst b { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; padding: 1px 8px; border-radius: 4px; color: #8a8a8a; background: #232323; }
.stg-calst.pass b { color: #0d2b12; background: #39FF14; }
.stg-calst.fail b { color: #fff; background: var(--accent); }
.stg-calst.stored b { color: #d9d9d9; background: #333; }
.stg-calst i { font-style: normal; font-size: 9.5px; color: #a6a6a6; white-space: nowrap; }

/* CENTERING Live View foot with the 1080p toggle (operator 2026-10-11): FRONT BACK · 1080p 2K 4K · GRID in one line - tighter pills, a second line only as a fallback */
#view-job .jb-foot:has(#jb-live-f) { gap: 3px; flex-wrap: wrap; row-gap: 4px; }
#view-job .jb-foot:has(#jb-live-f) > .jb-tab { padding: 4px 6px; letter-spacing: 1px; }
#view-job .jb-foot:has(#jb-live-f) .jb-resseg { gap: 2px; }
#view-job .jb-foot:has(#jb-live-f) .jb-resseg .jb-tab { padding: 3px 4px !important; letter-spacing: .5px; }
#view-job .jb-foot:has(#jb-live-f) #jb-grid-live { padding-left: 5px; padding-right: 5px; }
/* STAGE/CAM live bar: the px/mm text gives way (ellipsis, full text in its title) so 1080p 2K 4K GRID always fit */
#view-stage .stg-livebar #stg-pxmm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-stage .stg-livebar .stg-livebar-right { flex: 0 0 auto; }
#view-stage .stg-livebar .jb-resseg { gap: 2px; }
#view-stage .stg-livebar .jb-resseg .jb-tab { padding: 3px 5px !important; letter-spacing: .5px; }

/* a graded figure modelled or taken from the sibling grader's comps (2026-10-11) */
#view-port .pf-si.near { color: #a8d4f5; border-color: #2f7fc0; background: rgba(22, 50, 76, .55); }
#view-port .pm-chip.near { color: #a8d4f5; border-color: #2f7fc0; }

/* ================= BLACKBOARD FROM THE VAULT (operator 2026-10-11: 'BLACKBOARD is part of BLACKVAULT') =================
   the landing's gold door beside SCAN QR opens the whole board; a card's SUMMARY opens it on that card's population */
.bv-landing .bv-scanbtn { vertical-align: top; }
.bv-landing .bv-boardbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 0 0 10px; height: 46px; padding: 0 22px; border-radius: 12px;
  font-size: 12px; letter-spacing: 2px; background: #15120a; border: 1px solid #5c5340; color: #d8c89a; vertical-align: top; }
.bv-landing .bv-boardbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bv-landing .bv-boardbtn i { font-style: normal; font-size: 8.5px; letter-spacing: 1.4px; color: #8f8363; margin-left: 2px; }
.bv-landing .bv-boardbtn:hover { border-color: #c9a83c; color: #fff; }
.bv-landing .bv-boardbtn:hover i { color: #c9a83c; }
.bv-boardlink { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; margin-top: 6px; height: 34px; min-height: 34px; border-radius: 4px;
  border: 1px solid #5c5340; background: #15120a; color: #d8c89a; font-family: var(--rep-font); font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.6px; font-weight: 600; cursor: pointer; }
.bv-boardlink svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bv-boardlink:hover { border-color: #c9a83c; color: #fff; }
body.mv .bv-landing .bv-boardbtn { display: flex; width: 100%; margin: 10px 0 0; height: 48px; }
body.mv .bv-boardlink { height: 44px; margin-top: 8px; border-radius: 12px; font-size: calc(11px + var(--bv-up)); }

/* ================= BLACKPORT TILES (operator 2026-10-11): the grade on every picture · the change top right ·
   VALUE / PAID bottom right · the 180-day curve on the 1-column compact tiles ================= */
/* the grade pill straddles the bottom edge of the thumbnail: it follows the picture in its art column (a flex column
   with a 4 px gap) — margin-top −11 lifts it 7 px over the picture, margin-bottom −8 gives the height back, so the
   column (and the card) keeps its size; positioned + z-index so it paints over the (positioned) picture */
/* (operator 2026-10-12: 'increase the font size of the RAW / grade pills') every size ~2 px up, in the condensed
   Bahnschrift cut (the variable axis — Chrome ignores the named instance) so RAW GEM MT still fits under a small
   picture; height + margin-top + margin-bottom + the 4 px gap = 0 in every view, so no card grows */
.pf-gbadge { position: relative; z-index: 1; align-self: center; display: inline-flex; align-items: stretch; margin: -13px 0 -9px; height: 18px; max-width: calc(100% + 18px);
  box-sizing: border-box; border-radius: 4px; overflow: hidden; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9.5px * var(--pf-fs, 1)); line-height: calc(16px * var(--pf-fs, 1)); letter-spacing: .5px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .65); border: 1px solid #0a0a0a; }
.pf-gbadge b, .pf-gbadge i { display: block; font-style: normal; font-weight: 800; padding: 0 5px; }
.pf-gbadge.gr b { background: #0e0e0e; color: #fff; }
.pf-gbadge.gr i { background: #f2f2f2; color: #111; }
.pf-gbadge.raw b { background: #3a3a3a; color: #f2f2f2; }
.pf-gbadge.raw i { background: #1c1c1c; color: #d9d9d9; }
.pf-gbadge.mix b { background: #2b2b2b; color: #bdbdbd; }
.pf-gbadge + .pf-btag { margin-top: 6px; }                     /* the batch tag under it keeps clear */
.pf-artcol { position: relative; }
/* the count of a GROUP / BATCH entry moves to the top right: the bottom belongs to the grade */
.pf-cards .pf-gcount { top: 3px; bottom: auto; }
.pf-cards.c4.n6 .pf-gbadge, .pf-cards.c1.lined .pf-gbadge { margin: -12px 0 -8px; height: 16px; line-height: calc(14px * var(--pf-fs, 1)); font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: .3px; max-width: calc(100% + 20px); }
.pf-cards.c4.n6 .pf-gbadge b, .pf-cards.c4.n6 .pf-gbadge i, .pf-cards.c1.lined .pf-gbadge b, .pf-cards.c1.lined .pf-gbadge i { padding: 0 4px; }
.pf-cards.ph .pm .pf-gbadge { margin: -14px 0 -10px; height: 20px; line-height: calc(18px * var(--pf-fs, 1)); font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .5px; max-width: calc(100% + 20px); }
.pf-cards.ph .pm .pf-gbadge b, .pf-cards.ph .pm .pf-gbadge i { padding: 0 5px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-gbadge { margin: -12px 0 -9px; height: 17px; line-height: calc(15px * var(--pf-fs, 1)); font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: .3px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-gbadge b, .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-gbadge i { padding: 0 4px; }
/* the change at the top right of the card's text, VALUE / PAID at its bottom right — the compact tiles (DETAILS off,
   SELECT) and every phone card; the detailed rows keep the chip beside PAID */
.pf-cards.c4 .pf-cinfo, .pf-cards.ph .pm .pf-cinfo { position: relative; }
.pf-cards.c4 .pf-pr .pf-d, .pf-cards.ph .pm .pf-pr .pf-d { position: absolute; top: 0; right: 0; margin: 0; }
.pf-cards.c4 .pf-card:has(.pf-pr .pf-d) .pf-c1 { padding-right: 70px; }
.pf-cards.c4.n6 .pf-card:has(.pf-pr .pf-d) .pf-c1 { padding-right: 54px; }
.pf-cards.ph .pf-card.pm:has(.pf-pr .pf-d) .pf-c1 { padding-right: 76px; }
.pf-cards.ph.tiles .pf-card.pm:not(.open):has(.pf-pr .pf-d) .pf-c1 { padding-right: 60px; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open):has(.pf-pr .pf-d) .pf-c1 { padding-right: 0; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open):has(.pf-pr .pf-d) .pf-cinfo { padding-top: 22px; }   /* a third of a phone: the chip takes its own line at the top right */
.pf-cards.c4 .pf-cbot, .pf-cards.ph .pm .pf-cbot { justify-content: flex-end; }
.pf-cards.ph .pm .pf-cinfo { align-self: stretch; }
.pf-cards.ph .pm .pf-cbot { margin-top: auto; }
.pf-cards.c4 .pf-price, .pf-cards.ph .pm .pf-price { flex: 0 1 auto; margin-left: auto; }
.pf-cards.c4 .pf-pr, .pf-cards.ph .pm .pf-pr { justify-content: flex-end; }
.pf-cards.c4 .pf-pr > i, .pf-cards.ph .pm .pf-pr > i { flex-basis: auto; margin-right: auto; padding-right: 12px; }
.pf-cards.c4 .pf-pr > b, .pf-cards.ph .pm .pf-pr > b { text-align: right; }
/* the 6-month curve (2026-10-11, revised 2026-10-12): on a computer's compact tile art · name and line · the curve ·
   the change (top) and VALUE / PAID (bottom), on one row; on a phone's standard card, full width under the name.
   A price at every month's tip, the area under the line a fading green (rose) or red (fell) so it never takes the focus */
.pf-cards.c4.n2.spark .pf-card { container: pfspark / inline-size; }
.pf-cards.c4.n2.spark .pf-cinfo { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(220px, 1.6fr) auto; grid-template-rows: auto 1fr;
  grid-template-areas: "c1 sp bot" "c2 sp bot"; column-gap: 24px; row-gap: 3px; align-content: stretch; }
.pf-cards.c4.n2.spark .pf-c1 { grid-area: c1; padding-right: 0 !important; }
.pf-cards.c4.n2.spark .pf-c2 { grid-area: c2; align-self: start; margin-top: 0; }
.pf-cards.c4.n2.spark .pf-spark { grid-area: sp; align-self: center; min-width: 0; }
.pf-cards.c4.n2.spark .pf-cbot { grid-area: bot; align-self: end; margin-top: 0; padding-top: 0; }
@container pfspark (max-width: 560px) {
  .pf-cards.c4.n2.spark .pf-cinfo { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; grid-template-areas: "c1 c1" "c2 c2" "sp bot"; column-gap: 14px; }
  .pf-cards.c4.n2.spark .pf-c1 { padding-right: 70px !important; }
  .pf-cards.c4.n2.spark .pf-spark { align-self: end; margin-top: 6px; }
}
.pf-spark { min-width: 0; }
.pf-sparkhead { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1px; color: var(--pf-ink3); white-space: nowrap; }
.pf-sparkhead b { flex: 0 0 auto; font-weight: 700; color: #bdbdbd; letter-spacing: 1.4px; }
.pf-sparkhead > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; letter-spacing: .5px; }
.pf-sparkhead .pf-chg { flex: 0 0 auto; margin-left: auto; font-size: calc(11px * var(--pf-fs, 1)); }
.pf-sparkhead .pf-tri { width: 8px; height: 8px; }
.pf-sparkplot { position: relative; height: 46px; margin-top: 3px; }
.pf-sparkplot > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.pf-spark svg .ar { stroke: none; }
.pf-spark svg .g0 { stop-color: #bdbdbd; stop-opacity: .14; }
.pf-spark svg .g1 { stop-color: #bdbdbd; stop-opacity: 0; }
.pf-spark.up svg .g0 { stop-color: var(--pf-pos); stop-opacity: .26; }
.pf-spark.up svg .g1 { stop-color: var(--pf-pos); }
.pf-spark.down svg .g0 { stop-color: var(--pf-neg); stop-opacity: .24; }
.pf-spark.down svg .g1 { stop-color: var(--pf-neg); }
.pf-spark svg .ln { fill: none; stroke: #bdbdbd; stroke-opacity: .85; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pf-spark svg .dt { fill: none; stroke: #bdbdbd; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pf-spark svg .dt.last { stroke-width: 7.5; }
.pf-spark.up svg .ln, .pf-spark.up svg .dt { stroke: var(--pf-pos); }
.pf-spark.down svg .ln, .pf-spark.down svg .dt { stroke: var(--pf-neg); }
/* the price at each month's tip — muted, this month's in the curve's colour */
.pf-sv { position: absolute; transform: translate(-50%, calc(-100% - 4px)); font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); line-height: 1; font-weight: 600; letter-spacing: .2px;
  color: #9a9a9a; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.pf-sv.last { color: #e6e6e6; font-weight: 700; }
.pf-spark.up .pf-sv.last { color: var(--pf-pos); }
.pf-spark.down .pf-sv.last { color: var(--pf-neg); }
.pf-sparkm { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 3px; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: .9px; color: #8a8a8a; text-align: center; }
.pf-sparkm i { font-style: normal; }
.pf-sparkm i.none { color: #4a4a4a; }
.pf-spark.none .pf-sparkhead > span { color: #7a7a7a; white-space: normal; line-height: 1.35; }
/* a phone: the six months span the card under the picture and the name, in the phone's larger type */
.pf-cards.ph.spark .pf-card.pm { grid-template-areas: "art info" "sp sp" "sum sum"; }
.pf-cards.ph.spark .pf-card.pm.open { grid-template-areas: "art info" "sp sp" "sum sum" "ed ed"; }
.pf-cards.ph .pf-card.pm > .pf-spark { grid-area: sp; padding: 9px 2px 0; border-top: 1px solid #262626; }
.pf-cards.ph .pf-card.pm > .pf-spark .pf-sparkhead { font-size: calc(10.5px * var(--pf-fs, 1)); }
.pf-cards.ph .pf-card.pm > .pf-spark .pf-sparkhead b { letter-spacing: 1.6px; }
.pf-cards.ph .pf-card.pm > .pf-spark .pf-sparkhead .pf-chg { font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-cards.ph .pf-card.pm > .pf-spark .pf-sparkplot { height: 58px; margin-top: 6px; }
.pf-cards.ph .pf-card.pm > .pf-spark .pf-sv { font-size: calc(11px * var(--pf-fs, 1)); }
.pf-cards.ph .pf-card.pm > .pf-spark .pf-sparkm { font-size: calc(10px * var(--pf-fs, 1)); margin-top: 5px; }
.pf-cards.ph .pf-card.pm > .pf-spark.none .pf-sparkhead > span { font-size: calc(11.5px * var(--pf-fs, 1)); }

/* ================= PRE-CERT# AND BL (operator 2026-10-11): REMARKS gives its place to the BLACKLENS Job# and the
   BLACKLENS pre-grade on the fields' second row — BUY/DATE · BATCH · CERT# · PRE-CERT# · BL ================= */
.pf-fg { grid-template-areas: "lg lgr lf lf" "gco gr fol fol" "lp lc lq ld" "paid cur qty date" "lb lcert lcert lpre" "bat cert cert pre" "lbl . . ." "bl . . ."; }
.pf-fg .a-lpre { grid-area: lpre; margin-top: 4px; } .pf-fg .a-pre { grid-area: pre; }
.pf-fg .a-lbl { grid-area: lbl; margin-top: 4px; } .pf-fg .a-bl { grid-area: bl; }
.pf-fg.big { grid-template-areas: "lg lgr" "gco gr" "lf lf" "fol fol" "lb lb" "bat bat" "lp lc" "paid cur" "lq ld" "qty date" "lpre lbl" "pre bl"; }
.pf-cards.lined .pf-fg.line { grid-template-areas: "lg lg lgr lgr lf lf lf lp lp lc lc lq" "gco gco gr gr fol fol fol paid paid cur cur qty" "ld ld ld lb lb lcert lcert lpre lpre lpre lbl lbl" "date date date bat bat cert cert pre pre pre bl bl" "tag tag tag . . . . . . . . ."; }
.pf-cards.lined .pf-fg.line:not(:has(.a-tag)) { grid-template-areas: "lg lg lgr lgr lf lf lf lp lp lc lc lq" "gco gco gr gr fol fol fol paid paid cur cur qty" "ld ld ld lb lb lcert lcert lpre lpre lpre lbl lbl" "date date date bat bat cert cert pre pre pre bl bl"; }
.pf-cards.lined .pf-fg.line .a-lpre, .pf-cards.lined .pf-fg.line .a-lbl { margin-top: 3px; }
.pf-cards.c1.lined .pf-fg.line { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .55fr) minmax(0, .45fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .55fr);
  grid-template-areas: "lg lgr lf lp lc lq ld lb lcert lpre lbl" "gco gr fol paid cur qty date bat cert pre bl"; }
.pf-cards.c1.lined .pf-fg.line .a-lpre, .pf-cards.c1.lined .pf-fg.line .a-lbl { margin-top: 0; }
/* a Job# from MY SUBMISSIONS and a grade from the published report are the studio's: read-only, edged gold */
.pf-fv.a-pre.auto, .pf-fv.a-bl.auto { border-color: #5c5340; color: #e7d9a8; }
.pf-fg .pf-fv.a-bl.auto, .pf-fg select.a-bl { font-weight: 700; }
.pf-fg input.a-pre { text-transform: uppercase; letter-spacing: .3px; }
.pm-grid { grid-template-areas: "gco gr" "paid cur" "qty fol" "date date" "bat bat" "pre bl" "rm rm"; }
.pm-grid.inb { grid-template-areas: "gco gr" "paid paid" "qty fol" "date date" "bat bat" "pre bl" "rm rm"; }
.pm-grid .a-pre { grid-area: pre; } .pm-grid .a-bl { grid-area: bl; }
.pm-chip.bl { background: #2a2414; border-color: #5c5340; color: #e7d9a8; }

/* the phone's header in the PC title's type (operator 2026-10-11): BLACKLENS bold, semi-condensed — Bahnschrift on
   a computer, Barlow Semi Condensed (loaded with the page) on a phone */
#mv-top .mv-word { font-family: var(--rep-font-sc); font-size: 22px; font-weight: 700; font-stretch: semi-condensed; letter-spacing: 1.8px; line-height: 1; }
#mv-top .mv-word b { font-weight: 700; }

/* ================= BLACKMARKT v1 (operator 2026-10-11): the collector marketplace — a CLOSED BETA (js/markt.js) =================
   BLACKPORT's language throughout: the panels, the boxed switch, the chips, the sheets, the two-part grade pill on every
   picture; gold for what belongs to the seller (the store, the listing, the payment details), red for the step to take,
   green for a gain. */
#view-markt, #mk-sheet, #mk-toast { --pf-panel: #171717; --pf-line: #262626; --pf-ctl-line: #2c2c2c; --pf-ink: #f2f2f2; --pf-ink2: #bdbdbd; --pf-ink3: #8f8f8f;
  --pf-neg: #EB6A66; --pf-pos: #7ED4A6; font-family: var(--rep-font); }
#view-markt { background: #0f0f0f; overflow: visible; overflow-x: clip; }
#view-markt.active { display: block; }
body:not(.mv) #view-markt.active { min-height: calc(100vh - var(--pf-stick, 0px)); }
body.mv #view-markt.active { padding-bottom: 20px; }
#view-markt button, #view-markt input, #view-markt select, #mk-sheet button, #mk-sheet input, #mk-sheet select, #mk-sheet textarea { font-family: inherit; }
@media (max-width: 1365px) {
  #app:has(#view-markt.active) #main { overflow: visible; overflow-x: clip; }
  #app:has(#view-markt.active) #topbar { min-width: 0; }
}
.mk-app { max-width: 1400px; }
.mk-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs beta"; }
@media (min-width: 961px) { .mk-head { grid-template-columns: minmax(0, 640px) minmax(0, 1fr) auto; grid-template-areas: "tabs . beta"; } }
.mk-beta { grid-area: beta; align-self: center; height: 28px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; font-size: calc(10px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 2px;
  color: #141414; background: #ab9b6f; border: 1px solid #d8c89a; }
.pf-segs button .mk-n { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-left: 6px; padding: 0 4px; box-sizing: border-box; border-radius: 8px;
  background: #ffd54a; color: #141414; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 0; vertical-align: 1px; }
.pf-segs button .mk-n:empty { display: none; }
.pf-segs button.on .mk-n { background: #fff; color: var(--accent); }
.mk-bar { padding-bottom: 2px; }
.mk-bar[hidden] { display: none; }
.mk-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-ctl-line); }
.mk-search:focus-within { border-color: #6a6a6a; }
.mk-search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--pf-ink3); stroke-width: 1.8; stroke-linecap: round; }
.mk-search input { flex: 1 1 auto; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: #fff; font-size: calc(14px * var(--pf-fs, 1)); }
body.mv .mk-search input { font-size: calc(16px * var(--pf-fs, 1)); }                                  /* iOS never zooms */
.mk-chiprows { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 12px; }
.mk-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.mk-chips > i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink3); margin-right: 2px; }
.mk-pane { display: none; }
.mk-pane.on { display: block; }
/* BROWSE: the listings as tiles — the card full size with its grade pill, the name, the price, the seller and the rating */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.mk-grid.small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.mk-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); border-radius: 16px;
  color: var(--pf-ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .12s, background .12s, transform .12s; }
.mk-tile:hover { border-color: #5a5a5a; background: #1b1b1b; }
.mk-tile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mk-tile.mine { border-color: #5c5340; }
.mk-app .pf-artcol, #mk-sheet .pf-artcol { align-items: center; }
.mk-art { align-self: stretch; }
.mk-art .pf-cart, .mk-bigart .pf-cart, .mk-pcard .pf-cart { width: 100%; height: auto; aspect-ratio: 5 / 7; border-radius: 9px; }
.mk-art .pf-gbadge, .mk-bigart .pf-gbadge, .mk-part .pf-gbadge { margin: -13px 0 -9px; height: 19px; line-height: calc(17px * var(--pf-fs, 1)); font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 1.1px; }
.mk-art .pf-gbadge b, .mk-art .pf-gbadge i, .mk-bigart .pf-gbadge b, .mk-bigart .pf-gbadge i, .mk-part .pf-gbadge b, .mk-part .pf-gbadge i { padding: 0 7px; }
.mk-tinfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mk-tname { font-size: calc(14.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-tline { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tbl { align-self: flex-start; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; font-weight: 800; color: #e7d9a8; background: #2a2414; border: 1px solid #5c5340; border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.mk-tprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.mk-tprice b { font-size: calc(19px * var(--pf-fs, 1)); font-weight: 700; color: #fff; }
.mk-tprice em, .mk-lprice em { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.1px; font-weight: 800; color: var(--pf-pos); border: 1px solid #2c5a43; background: #12201a; border-radius: 5px; padding: 2px 5px; }
.mk-tseller { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink2); }
.mk-at { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-star { color: #ffd54a; font-weight: 700; white-space: nowrap; }
.mk-sn { color: var(--pf-ink3); }
.mk-new { font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.1px; font-weight: 700; color: var(--pf-ink3); border: 1px solid #3a3a3a; border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.mk-you { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.1px; font-weight: 800; color: #e7d9a8; }
.mk-av { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #262626; border: 1px solid #3a3a3a; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: calc(14px * var(--pf-fs, 1)); color: #fff; box-sizing: border-box; }
.mk-av.big { width: 52px; height: 52px; font-size: calc(22px * var(--pf-fs, 1)); }
.mk-arts { flex: 0 0 auto; display: inline-flex; gap: 3px; }
.mk-arts .pf-art { width: 26px; height: 36px; }
.mk-okchip, .mk-kyc { font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.1px; font-weight: 800; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.mk-okchip { color: var(--pf-pos); border: 1px solid #2c5a43; background: #12201a; }
.mk-kyc { color: var(--pf-ink3); border: 1px dashed #3a3a3a; font-weight: 700; }
.mk-colllist .pf-ln > span { white-space: normal; }
/* the sheet — one, body-level: BLACKMARKT and BLACKPORT's STORE both open it */
#mk-sheet { z-index: 96; }
.mk-win { width: min(100%, 780px); }
.mk-shead { flex: 0 0 auto; }
.mk-sbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 8px 0; color: var(--pf-ink); }
.mk-toast { z-index: 99; }
.mk-toast.hidden, #mk-msg.hidden { display: none; }
/* a listing */
.mk-lgrid { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 18px; align-items: start; }
.mk-linfo { min-width: 0; }
.mk-linfo h3 { margin: 0; font-size: calc(21px * var(--pf-fs, 1)); line-height: 1.2; color: #fff; }
.mk-native { display: block; margin-top: 2px; font-size: calc(13px * var(--pf-fs, 1)); color: var(--pf-ink2); }
.mk-lline { display: block; margin-top: 5px; font-size: calc(12px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.mk-lprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0; }
.mk-lprice b { font-size: calc(30px * var(--pf-fs, 1)); font-weight: 700; color: #fff; line-height: 1.1; }
.mk-lprice span { flex-basis: 100%; font-size: calc(11.5px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.mk-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0 0 12px; font-size: calc(12.5px * var(--pf-fs, 1)); }
.mk-dl dt { font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.5px; color: var(--pf-ink3); padding-top: 3px; white-space: nowrap; }
.mk-dl dd { margin: 0; color: #e8e8e8; overflow-wrap: anywhere; }
.mk-link { color: #8fc4ff; text-decoration: none; }
.mk-link:hover { text-decoration: underline; }
.mk-note { margin: 0 0 12px; font-size: calc(12.5px * var(--pf-fs, 1)); line-height: 1.5; color: var(--pf-ink2); font-style: italic; }
.mk-buy { display: flex; flex-direction: column; gap: 10px; }
.mk-buynow { width: 100%; height: 50px; font-size: calc(13px * var(--pf-fs, 1)); }
.mk-offerf { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--pf-line); border-radius: 14px; background: #121212; }
.mk-offerf > .pf-qbtn { align-self: flex-start; }
.mk-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.mk-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 0 1 170px; }
.mk-f.grow { flex: 1 1 200px; }
.mk-f.wide { flex: 1 1 100%; width: 100%; }
.mk-f > i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.5px; color: var(--pf-ink3); }
.mk-f input, .mk-f select, .mk-f textarea { box-sizing: border-box; width: 100%; height: 42px; padding: 0 11px; border-radius: 10px; border: 1px solid #3d3d3d; background: #0e0e0e; color: #fff; font-size: calc(14px * var(--pf-fs, 1)); }
.mk-f textarea { height: auto; padding: 9px 11px; line-height: 1.45; resize: vertical; }
.mk-f input:focus, .mk-f select:focus, .mk-f textarea:focus { outline: none; border-color: var(--accent); }
body.mv .mk-f input, body.mv .mk-f select, body.mv .mk-f textarea { font-size: calc(16px * var(--pf-fs, 1)); }
.mk-fine { margin: 0; font-size: calc(11px * var(--pf-fs, 1)); line-height: 1.5; color: var(--pf-ink3); }
.mk-mine { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #5c5340; border-radius: 14px; background: #17140d; }
.mk-mine > b { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: 1.8px; color: #e7d9a8; }
.mk-mine > span { font-size: calc(12px * var(--pf-fs, 1)); line-height: 1.45; color: var(--pf-ink2); }
.mk-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pf-qbtn.danger { color: var(--pf-neg); border-color: #5a2a28; }
.pf-qbtn.danger:hover { border-color: var(--pf-neg); }
.mk-seller { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px; border: 1px solid var(--pf-line); border-radius: 14px; background: var(--pf-panel); }
.mk-seller .pf-ln { flex: 1 1 150px; }
.mk-seller .pf-ln > span { display: flex; align-items: center; gap: 5px; }
.mk-sec { margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid #222; margin-bottom: 10px; }
/* a collector */
.mk-chead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.mk-chead > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.mk-pcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: calc(10.5px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.mk-pcard .mk-part { align-self: stretch; margin-bottom: 4px; }
.mk-pcard .mk-part .pf-cart { width: 100%; height: auto; aspect-ratio: 5 / 7; border-radius: 7px; }
.mk-pcard > b { font-size: calc(12px * var(--pf-fs, 1)); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-pcard > span:not(.pf-artcol) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-pcard .mk-tbl { align-self: flex-start; }
.mk-rates { list-style: none; margin: 0; padding: 0; }
.mk-rates li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid #222; }
.mk-rates li:first-child { border-top: 0; }
.mk-rates b { color: #ffd54a; font-size: calc(14px * var(--pf-fs, 1)); letter-spacing: 1px; }
.mk-rates b i { font-style: normal; color: #3a3a3a; }
.mk-rates span { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink2); }
.mk-rates p { margin: 0; font-size: calc(12.5px * var(--pf-fs, 1)); color: #eee; }
.mk-rates em { font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); color: var(--pf-ink3); }
/* offers and deals in lists */
.mk-sart { flex: 0 0 auto; }
.mk-sart .pf-cart { width: 40px; height: 56px; border-radius: 5px; }
.mk-sart .pf-gbadge { margin: -9px 0 -6px; height: 13px; line-height: calc(11px * var(--pf-fs, 1)); font-size: calc(6.5px * var(--pf-fs, 1)); letter-spacing: .6px; }
.mk-sart .pf-gbadge b, .mk-sart .pf-gbadge i { padding: 0 4px; }
.pf-list li.mk-orow { flex-wrap: wrap; cursor: default; }
.mk-orow .pf-ln > span { white-space: normal; }
.mk-ost { color: #e7d9a8 !important; font-size: calc(10px * var(--pf-fs, 1)) !important; font-weight: 700; letter-spacing: 1px; }
.mk-orow.declined .mk-ost, .mk-orow.withdrawn .mk-ost, .mk-orow.expired .mk-ost { color: var(--pf-ink3) !important; }
.mk-onote { font-style: italic; }
.mk-oamt b { font-size: calc(16px * var(--pf-fs, 1)); }
.mk-obtns { flex: 1 1 100%; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mk-obtns:empty { display: none; }
.mk-counter { display: inline-flex; gap: 4px; }
.mk-counter input { box-sizing: border-box; width: 104px; height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid #3d3d3d; background: #0e0e0e; color: #fff; font-size: calc(13px * var(--pf-fs, 1)); }
body.mv .mk-counter input { height: 36px; font-size: calc(16px * var(--pf-fs, 1)); }
.mk-role { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; font-weight: 800; }
.mk-role.seller { color: #e7d9a8; }
.mk-role.buyer { color: #8fc4ff; }
.mk-next { color: #fff !important; font-weight: 700; font-size: calc(10px * var(--pf-fs, 1)) !important; letter-spacing: 1px; }
.mk-next.off { color: var(--pf-ink3) !important; }
.mk-mrail { display: inline-flex; gap: 3px; }
.mk-mrail i { width: 13px; height: 4px; border-radius: 2px; background: #333; }
.mk-mrail i.on { background: var(--accent); }
.mk-mrail.off i.on { background: #555; }
/* a deal: the five steps, the card, what to do now */
.mk-rail { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); margin: 6px 0 16px; }
.mk-rail::before { content: ''; position: absolute; left: 10%; right: 10%; top: 8px; height: 2px; background: #2c2c2c; }
.mk-rail span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; text-align: center; }
.mk-rail i { position: relative; z-index: 1; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: #1c1c1c; border: 2px solid #3a3a3a; }
.mk-rail span.done i { background: var(--accent); border-color: var(--accent); }
.mk-rail span.now i { background: #0f0f0f; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(220, 79, 76, .25); }
.mk-rail b { font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1.2px; color: var(--pf-ink3); }
.mk-rail span.done b, .mk-rail span.now b { color: #fff; }
.mk-rail em { min-height: 12px; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.mk-rail.off i, .mk-rail.off b { opacity: .45; }
.mk-dcard { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--pf-line); border-radius: 14px; background: var(--pf-panel); }
.mk-dcard .pf-ln > span { white-space: normal; }
.mk-step { display: flex; flex-direction: column; gap: 10px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--pf-line); border-radius: 14px; background: #131313; }
.mk-step > b { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: 1.8px; color: #fff; }
.mk-step p { margin: 0; font-size: calc(12.5px * var(--pf-fs, 1)); line-height: 1.5; color: var(--pf-ink2); }
.mk-step > .pf-qbtn { align-self: flex-start; }
.mk-sub { margin-top: 4px; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--pf-ink2); }
.mk-hochips { margin: 0; }
.mk-pay { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.mk-qr { flex: 0 0 auto; width: 172px; height: 172px; box-sizing: border-box; padding: 6px; border-radius: 10px; background: #fff; }
.mk-qr svg { display: block; width: 100%; height: 100%; }
.mk-pay .mk-dl { flex: 1 1 180px; margin: 0; }
.mk-addr { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.mk-addr > .pf-qbtn { flex: 0 0 auto; }
.mk-addrro { margin: 0; padding: 10px 12px; border-left: 3px solid #5c5340; border-radius: 0 8px 8px 0; background: #17140d; color: #f2f2f2 !important; font-size: calc(13px * var(--pf-fs, 1)); line-height: 1.5; }
.mk-track { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #0e0e0e; border: 1px solid #2c2c2c; }
.mk-track span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-track i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.4px; color: var(--pf-ink3); }
.mk-track b { font-size: calc(14px * var(--pf-fs, 1)); letter-spacing: .6px; color: #fff; overflow-wrap: anywhere; }
a.pf-chip { text-decoration: none; }
.mk-stars { display: flex; gap: 6px; }
.mk-stars button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #3a3a3a; background: #161616; color: #4a4a4a; font-size: calc(24px * var(--pf-fs, 1)); line-height: 1; cursor: pointer; }
.mk-stars button.on { color: #ffd54a; border-color: #6b5a26; background: #241e0d; }
.mk-log { list-style: none; margin: 0 0 12px; padding: 0; }
.mk-log li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid #222; font-size: calc(12px * var(--pf-fs, 1)); color: var(--pf-ink2); }
.mk-log li:first-child { border-top: 0; }
.mk-log em { flex: 0 0 auto; width: 132px; font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.mk-dfoot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* setting up to sell */
.mk-setup > p { margin: 0 0 10px; font-size: calc(12.5px * var(--pf-fs, 1)); line-height: 1.5; color: var(--pf-ink2); }
.mk-checks { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.mk-checks span { font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1.2px; font-weight: 700; color: var(--pf-ink2); border: 1px solid #3a3a3a; border-radius: 6px; padding: 4px 8px; }
.mk-checks span.ok { color: var(--pf-pos); border-color: #2c5a43; }
.mk-setup .mk-f, .mk-setup .mk-row { margin-bottom: 8px; }
.mk-agree { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 8px; font-size: calc(12px * var(--pf-fs, 1)); line-height: 1.5; color: var(--pf-ink2); cursor: pointer; }
.mk-agree input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
/* list for sale */
.mk-lfrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #222; }
.mk-lfrow:first-child { border-top: 0; }
.mk-lfrow .pf-ln > span { white-space: normal; }
.mk-lfprice { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.mk-lfprice .mk-f { flex: 0 0 auto; width: 160px; }
.mk-quick { display: flex; gap: 4px; }
.mk-lfopts { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 10px; border-top: 1px solid #262626; }
.mk-lform > .mk-fine { margin-bottom: 10px; }
/* BLACKPORT → STORE */
.mk-store { display: flex; flex-direction: column; gap: 12px; }
.mk-sellerbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 16px; background: #17140d; border: 1px solid #5c5340; }
.mk-sellerbar.ok { background: var(--pf-panel); border-color: var(--pf-line); }
.mk-sellerbar .pf-ln { flex: 1 1 220px; }
.mk-sellerbar .pf-ln > span { white-space: normal; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-sstats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.mk-sstats .pf-stat > b { font-size: calc(clamp(17px, 1.7vw, 23px) * var(--pf-fs, 1)); line-height: 1.15; margin-top: 6px; }
.mk-sstats .pf-stat > b.up { color: var(--pf-pos); }
.mk-sstats .pf-stat > span { white-space: normal; line-height: 1.3; margin-top: 4px; }
.mk-sacts { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-store .pf-list { margin-bottom: 0; }
.mk-lrow .mk-ost { color: #e7d9a8 !important; }
/* phones */
.pf-app.ph .mk-sstats, body.mv .mk-sstats { grid-template-columns: 1fr 1fr; }
.pf-app.ph .mk-sstats .pf-stat:last-child, body.mv .mk-sstats .pf-stat:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .mk-lgrid { grid-template-columns: minmax(0, 1fr); }
  .mk-lpic { max-width: 240px; margin: 0 auto; width: 100%; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk-tile { padding: 10px; border-radius: 14px; gap: 8px; }
  .mk-tname { font-size: calc(13.5px * var(--pf-fs, 1)); }
  .mk-tprice b { font-size: calc(17px * var(--pf-fs, 1)); }
  .mk-lfrow { grid-template-columns: auto minmax(0, 1fr); }
  .mk-lfprice { grid-column: 1 / -1; align-items: stretch; }
  .mk-lfprice .mk-f { width: 100%; }
  .mk-log em { width: 96px; }
  .mk-qr { width: 200px; height: 200px; margin: 0 auto; }
  .mk-pay { flex-direction: column; align-items: stretch; }
  .mk-sstats { grid-template-columns: 1fr 1fr; }
  .mk-sstats .pf-stat:last-child { grid-column: 1 / -1; }
}

/* ---- BLACKPORT's own BLACKMARKT pieces ---- */
/* four tabs (STORE for the beta): tighter on a phone */
#pf-tabs.t4 button { letter-spacing: 1px; }
body.mv #pf-tabs.t4 button, .pf-app.ph #pf-tabs.t4 button { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: .4px; }
@media (min-width: 961px) { .pf-head:has(#pf-tabs.t4) { grid-template-columns: minmax(0, 640px) minmax(0, 1fr) auto; } }
.pf-storehost { min-height: 200px; }
/* OVERVIEW: BLACKSALES under the value — what the cards sold through BLACKMARKT brought, their realized gain */
.pf-salesbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; width: 100%; margin-top: 10px; padding: 9px 12px; box-sizing: border-box; border-radius: 12px;
  background: #17140d; border: 1px solid #5c5340; color: var(--pf-ink); font: inherit; text-align: left; cursor: pointer; }
.pf-salesbar[hidden] { display: none; }
.pf-salesbar:hover { border-color: #ab9b6f; background: #1d190f; }
.pf-salesbar > i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.8px; color: #e7d9a8; }
.pf-salesbar > b { font-size: calc(18px * var(--pf-fs, 1)); font-weight: 700; color: #fff; }
.pf-salesbar > span:not(.pf-salesgo) { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.pf-salesbar .pf-chg { font-size: calc(11.5px * var(--pf-fs, 1)); }
.pf-salesgo { margin-left: auto; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.4px; color: #e7d9a8; white-space: nowrap; }
/* the quick row with SOLD ITEMS: four on a computer, two by two on a phone */
@media (max-width: 760px) { .pf-quick.q4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-app.ph .pf-quick.q4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#pf-soldbtn { border-color: #5c5340; color: #e7d9a8; }
#pf-soldbtn:hover { border-color: #ab9b6f; }
#pf-soldbtn[hidden], .pf-qbtn[hidden] { display: none; }
/* TOP SALES: BY VALUE · BY QUANTITY */
.pf-tsw { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: #111; border: 1px solid var(--pf-line); }
.pf-tsw button { height: 26px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: var(--pf-ink3); font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.1px; cursor: pointer; white-space: nowrap; }
.pf-tsw button.on { background: #2c2c2c; color: #fff; }
.pf-app.ph .pf-tsw button { height: 32px; font-size: calc(11px * var(--pf-fs, 1)); }
#pf-topsalesbox[hidden], #pf-bestsalesbox[hidden] { display: none; }
/* PERFORMANCE: REALIZED GAIN beside the unrealized — four tiles */
@media (min-width: 761px) { .pf-stats2.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-realstat[hidden] { display: none; }
.pf-realstat { border-color: #5c5340; }
.pf-realstat > i { color: #e7d9a8; }
#pf-real.up { color: var(--pf-pos); } #pf-real.down { color: var(--pf-neg); }
.pf-realsold { display: flex !important; align-items: baseline; gap: 8px; margin-top: auto !important; padding-top: 8px; }
.pf-realsold i { font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: 1.4px; color: var(--pf-ink3); }
.pf-realsold b { margin: 0 !important; font-size: calc(14px * var(--pf-fs, 1)) !important; line-height: 1.2 !important; color: #fff; }
.pf-realstat > span:last-child { margin-top: 4px !important; padding-top: 0 !important; }
.pf-app.ph .pf-stats2.s4 .pf-realstat { grid-column: 1 / -1; }
/* a card's picture: SELL (on hover — a phone sells from the card's open panel), LISTED, RESERVED */
.pf-mkt { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 17px; padding: 0; border: 0; border-radius: 0; font: inherit; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 800;
  letter-spacing: 1.4px; line-height: calc(17px * var(--pf-fs, 1)); text-align: center; cursor: pointer; }
.pf-mkt.listed { background: rgba(171, 155, 111, .94); color: #141414; }
.pf-mkt.reserved { background: rgba(220, 79, 76, .94); color: #fff; }
.pf-mkt.sell { display: none; background: rgba(10, 10, 10, .82); color: #e7d9a8; border-bottom: 1px solid #5c5340; }
.pf-mkt.sell:hover { background: #ab9b6f; color: #141414; }
.pf-card:hover .pf-mkt.sell, .pf-card:focus-within .pf-mkt.sell { display: block; }
.pf-cards.editing .pf-mkt, .pf-cards.selecting .pf-mkt.sell, .pf-cards.ph .pf-mkt.sell { display: none !important; }
.pf-cards.ph .pf-mkt { height: 15px; line-height: calc(15px * var(--pf-fs, 1)); font-size: calc(7.5px * var(--pf-fs, 1)); letter-spacing: 1px; }
.pm-btn.gold { background: #2a2414; border-color: #ab9b6f; color: #f1e6c8; }
.pf-sbtn.gold { background: #2a2414; border-color: #ab9b6f; color: #f1e6c8; }
.pf-sbtn.gold:hover:not(:disabled) { background: #ab9b6f; color: #141414; }
.pm-chip.mk { background: #2a2414; border-color: #5c5340; color: #e7d9a8; }
.pm-stabs:has(> :nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pm-stabs:has(> :nth-child(6)) button { font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 0; }
.pm-stabs button[data-stab="sell"] { color: #e7d9a8; }
.pm-stabs button[data-stab="sell"].on { box-shadow: inset 0 -2px 0 #ab9b6f; }
/* SOLD ITEMS */
.pf-soldwin { width: min(100%, 820px); }
.pf-soldbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pf-soldlist { list-style: none; margin: 0; padding: 0; }
.pf-soldlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid #222; }
.pf-soldlist li:first-child { border-top: 0; }
.pf-soldlist li.hot { background: #17140d; border-radius: 12px; }
.pf-soldlist .pf-cart { width: 48px; height: 67px; border-radius: 5px; }
.pf-soldlist .pf-gbadge { margin: -10px 0 -7px; height: 13px; line-height: calc(11px * var(--pf-fs, 1)); font-size: calc(6.5px * var(--pf-fs, 1)); letter-spacing: .6px; }
.pf-soldlist .pf-gbadge b, .pf-soldlist .pf-gbadge i { padding: 0 4px; }
.pf-soldlist .pf-ln > span { white-space: normal; }
.pf-soldwho { color: #e7d9a8 !important; font-size: calc(10px * var(--pf-fs, 1)) !important; letter-spacing: .8px; font-weight: 700; }
.pf-soldfig { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
.pf-soldfig .pf-pr { justify-content: flex-end; }
.pf-soldfig .pf-pr.v > b { font-size: calc(17px * var(--pf-fs, 1)); color: #fff; }
.pf-soldfig .pf-pr.p > b { font-size: calc(13px * var(--pf-fs, 1)); }
.pf-soldfig .pf-amt { font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.pf-soldfig .pf-amt.up { color: var(--pf-pos); } .pf-soldfig .pf-amt.down { color: var(--pf-neg); } .pf-soldfig .pf-amt.flat { color: var(--pf-ink2); }
@media (max-width: 760px) {
  .pf-soldlist li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pf-soldlist li > .pf-soldacts { grid-column: 2 / -1; justify-self: end; flex-direction: row; }
}
/* the menu: BLACKMARKT is a gold black product too */
#sidebar .sb-btn[data-nav="markt"] { background: #0e0e0e; border: 1px solid #5c5340; color: #d8c89a; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(171, 155, 111, .12); }
#sidebar .sb-btn[data-nav="markt"] .ico { color: #c9b98b; }
#sidebar .sb-btn[data-nav="markt"]:hover { background: #1a1710; border-color: #ab9b6f; color: #f1e6c8; }
#sidebar .sb-btn[data-nav="markt"]:hover .ico { color: #ffd54a; }
#sidebar .sb-btn[data-nav="markt"].on { background: #ab9b6f; border-color: #d8c89a; color: #141414; box-shadow: 0 6px 16px rgba(171, 155, 111, .3); }
#sidebar .sb-btn[data-nav="markt"].on .ico { color: #141414; background: rgba(255, 255, 255, .22) !important; border-radius: 6px; }
#sidebar .sb-btn[data-nav="markt"][hidden] { display: none; }
/* the phone's tab bar: STORE in BOARD's place for the beta (BLACKBOARD opens from BLACKVAULT) */
#mv-nav button.mv-store { display: none; }
body.markt-beta #mv-nav button.mv-store { display: flex; }
body.markt-beta #mv-nav button[data-mv="board"] { display: none; }
/* BLACKMARKT v1 — after the first review (2026-10-11) */
/* the quick row with SOLD ITEMS: one line where it fits, the buttons share it */
@media (min-width: 761px) {
  .pf-quick.q4 { flex-wrap: wrap; }
  .pf-quick.q4 .pf-qbtn { flex: 1 1 auto; }
}
/* a field in a column of the sheet keeps its own height (a flex basis is a height there) */
.mk-lfopts .mk-f, .mk-step > .mk-f, .mk-offerf > .mk-f { flex: none; }
.mk-lfopts .mk-f:not(.wide) { width: 170px; max-width: 100%; }
/* a phone: BLACKMARKT's four tabs take the whole line (the top bar of a computer says BETA) */
@media (max-width: 760px) {
  .mk-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs"; }
  .mk-beta { display: none; }
  .mk-head .pf-segs button { flex: 1 1 auto; padding: 0 6px; letter-spacing: .6px; font-size: calc(11.5px * var(--pf-fs, 1)); }
}
body.mv .mk-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs"; }
body.mv .mk-beta { display: none; }
body.mv .mk-head .pf-segs button { flex: 1 1 auto; padding: 0 6px; letter-spacing: .6px; font-size: calc(11.5px * var(--pf-fs, 1)); }
/* BLACKPORT's four tabs on a phone: each as wide as its word needs */
body.mv #pf-tabs.t4 button, .pf-app.ph #pf-tabs.t4 button { flex: 1 1 auto; padding: 0 5px; }
/* the phone's hero: the value keeps its room — the P/L column wraps its change line */
@media (max-width: 760px) { .pf-pl .pf-change { flex-wrap: wrap; row-gap: 2px; } }
body.mv .pf-pl .pf-change { flex-wrap: wrap; row-gap: 2px; }
/* the quick row with SOLD ITEMS on a computer: two by two, like the phone (one line overflowed the column) */
@media (min-width: 761px) {
  .pf-quick.q4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-quick.q4 .pf-qbtn { padding: 0 12px; letter-spacing: 1.2px; }
}
/* the phone's hero: the P/L column only as wide as its own figures — the window's words wrap */
@media (max-width: 760px) { .pf-pl { flex: 0 0 auto; width: min-content; max-width: 56%; } }
body.mv .pf-pl { flex: 0 0 auto; width: min-content; max-width: 56%; }
.pf-pl .pf-change i { white-space: normal; text-align: right; }
/* the payment details: rows packed at the top (a column flex basis had stretched them on a phone) */
.mk-dl { align-content: start; }
@media (max-width: 760px) { .mk-pay .mk-dl { flex: none; } }
body.mv .mk-pay .mk-dl { flex: none; }
/* the shipping form: the carrier picker as wide as its names (it cut "Thailand Post · EMS" on a phone) */
.mk-f:has(> #mk-car) { flex: 1 1 230px; }
/* the seller's email check: informative during the beta, never a stop (2026-10-12) */
.mk-checks { align-items: center; }
.mk-checks span.soft { color: #d8c89a; border-color: #5c5340; }
.mk-checks .pf-chip.sm { height: 26px; }
.mk-setup .mk-note { margin: 2px 0 12px; font-size: calc(12px * var(--pf-fs, 1)); font-style: normal; color: var(--pf-ink3); }
/* a card without a price record: the empty chart keeps the tile's shape, with a faint base line (2026-10-12) */
.pf-sparkplot.empty::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: 6px; border-top: 1px dashed #2c2c2c; }
.pf-spark.none .pf-sparkhead b { color: #6a6a6a; }
/* BLACKVAULT's summary card on a shorter computer window (1366×768, 1280×720 …): never scrolls (operator 2026-10-12:
   'don't forget the no scrolling') — a smaller slab, tighter pillar rows, the four population figures on one row */
@media (min-width: 761px) and (max-height: 860px) {
  body:not(.mv) .bv-slabbig { height: 100px; }
  body:not(.mv) .bv-sumg b { font-size: 34px; }
  body:not(.mv) .bv-bs { margin-top: 6px; }
  body:not(.mv) .bv-bs b { font-size: calc(18px + var(--bv-up2)); }
  body:not(.mv) .bv-ptable th { padding: 3px 6px; }
  body:not(.mv) .bv-ptable td { padding: 3px 6px; }
  body:not(.mv) .bv-ptable td.g { font-size: calc(15px + var(--bv-up2)); }
  body:not(.mv) .bv-costrip { margin: 4px 0 2px; }
  body:not(.mv) .bv-popgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  body:not(.mv) .bv-popgrid div { padding: 5px 2px; }
  body:not(.mv) .bv-popgrid b { font-size: calc(17px + var(--bv-up2)); }
  body:not(.mv) .bv-popgrid i { font-size: calc(7px + var(--bv-up)); letter-spacing: .7px; }
  body:not(.mv) .bv-boardlink { height: 30px; min-height: 30px; margin-top: 4px; }
}
/* the gold tabs' room on a window just above the compact one (the operator's 1920 × 917, 2026-10-25) */
@media (min-width: 761px) and (min-height: 861px) and (max-height: 940px) {
  body:not(.mv) #bv-body .bv-sum2:has(.bv-s2-cos.tops) { gap: 8px; }
}
@media (min-width: 761px) and (max-height: 740px) {
  body:not(.mv) .bv-slabbig { height: 82px; }
  body:not(.mv) .bv-sumg b { font-size: 28px; }
  body:not(.mv) .bv-ptable td { padding: 2px 6px; }
  body:not(.mv) .bv-boardlink { height: 26px; min-height: 26px; }
}

/* ---------- NO SCROLLING ON A LAPTOP (refactor 2026-10-12) ----------
   1366×768 and 1536×864 (a 1920 screen at 125 % Windows scaling): STAGE/CAM's
   CONTROL column scrolls inside itself at every width (it already did under
   1366 px), and CENTERING's window follows the window's HEIGHT as well as its
   column — the page itself never scrolls. 1920 is unchanged. */
#view-stage .stg-ctrl { overflow-y: auto; scrollbar-width: thin; }
#view-job:not(.jb-focus) .jb-centbox { width: min(100%, calc((100vh - 346px) * 4800 / 6200)); margin: 0 auto; }
/* a 1366 laptop cut a few labels ("Undo la…", "MACRO & RECORDI…", "Connect Sta…") — condensed there */
@media (max-width: 1500px) {
  #view-ai.view .btn[data-mk="undo"], #view-ai.view .btn[data-mk="clear"], #view-ai.view [data-aitab] { font-stretch: 87.5%; letter-spacing: .2px; }
  #view-job.view #jb-connect { font-size: 10.5px; font-stretch: 87.5%; }
}

/* ---------- BLACKMARKT: WHAT WAITS ON YOU (2026-10-12) ----------
   an offer to answer, a counter to answer, a deal step that is yours — a red count on
   BLACKMARKT's tabs, the menu's BLACKMARKT tile, the phone's STORE tab and BLACKPORT's
   STORE tab; your own listing's tile names its offers */
.pf-segs button .mk-n.hot { background: var(--accent); color: #fff; }
.pf-segs button.on .mk-n.hot { background: #fff; color: var(--accent); }
#sidebar .sb-btn[data-nav="markt"] { position: relative; }
#sidebar .sb-btn .sb-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border: 2px solid #141414;
  font-family: var(--rep-font); font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0; line-height: 1; pointer-events: none; }
#mv-nav button.mv-store { position: relative; }
#mv-nav button .mv-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border: 2px solid #0e0e0e;
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: 0; line-height: 1; pointer-events: none; }
.mk-tseller { flex-wrap: wrap; row-gap: 4px; }
.mk-ofr { font-style: normal; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: calc(9px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: .8px; white-space: nowrap; }
.mk-tile.mine:has(.mk-ofr) { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(220, 79, 76, .35); }
.mk-recv.hot { border-color: var(--accent); }
.mk-recv.hot > .pf-lh > b { color: #fff; }
.mk-lofs { margin-top: 12px; }
.mk-orow.waits .mk-ost { color: #fff !important; }

/* ---------- BLACKMARKT · THE TRANSFER SLIP (operator 2026-10-12: 'add the receipt instead of verifying the time') ---------- */
.mk-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.mk-slip { position: relative; }
.mk-slip.busy { opacity: .6; pointer-events: none; }
.mk-slip.over { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(220, 79, 76, .22); }
.mk-slipdrop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 118px; padding: 16px 14px; box-sizing: border-box;
  border: 1.5px dashed #4a4a4a; border-radius: 12px; background: #0e0e0e; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.mk-slipdrop:hover, .mk-slip.over .mk-slipdrop { border-color: var(--accent); background: #170d0d; }
.mk-slipdrop:has(.mk-file:focus-visible), .mk-slippick:has(.mk-file:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mk-slipdrop svg { width: 28px; height: 28px; color: var(--accent); }
.mk-slipdrop b { font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: #fff; }
.mk-slipdrop span { font-size: calc(11.5px * var(--pf-fs, 1)); line-height: 1.45; color: var(--pf-ink3); max-width: 340px; }
.mk-slippick { position: relative; cursor: pointer; }
.mk-slipview { display: flex; gap: 14px; align-items: flex-start; }
.mk-slipthumb { flex: 0 0 auto; width: 96px; height: 150px; padding: 0; border: 1px solid #3d3d3d; border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; }
.mk-slipthumb:hover, .mk-slipthumb:focus-visible { border-color: var(--accent); outline: none; }
.mk-slipthumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mk-slipinfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mk-slipinfo > b { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: #fff; }
.mk-slipinfo > span { font-size: calc(12px * var(--pf-fs, 1)); line-height: 1.45; color: var(--pf-ink2); overflow-wrap: anywhere; }
.mk-slipinfo > .mk-btns { margin-top: 6px; }
.mk-step > .mk-paidbtn { align-self: flex-start; }
.mk-step > .mk-paidbtn:disabled { opacity: .45; cursor: not-allowed; }
.mk-slipbig { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
  background: rgba(0, 0, 0, .86); }
.mk-slipbig[hidden] { display: none; }
.mk-slipbig-in { max-width: 100%; max-height: 100%; display: flex; }
.mk-slipbig-in img { display: block; max-width: min(94vw, 720px); max-height: calc(100vh - 48px); object-fit: contain; border-radius: 8px; background: #fff; cursor: zoom-in; }
.mk-slipbig.full { align-items: flex-start; overflow: auto; }
.mk-slipbig.full .mk-slipbig-in { max-height: none; margin: 0 auto; }
.mk-slipbig.full .mk-slipbig-in img { max-width: none; max-height: none; cursor: zoom-out; }
.mk-slipbig > .pf-x { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 22px; background: #1c1c1c; color: #fff; border: 1px solid #3d3d3d; font-size: calc(24px * var(--pf-fs, 1)); }
@media (max-width: 760px) { .mk-slipthumb { width: 84px; height: 132px; } .mk-slipbig { padding: 12px; } }

/* ---------- BLACKPORT round 15 (operator 2026-10-12, the CARDS screenshots) ---------- */
/* 1 column · EDIT · BATCH · DETAILS: a card's two field rows sit at the TOP of the card, level with its name
   (they were centred, and the EST. VALUE box under the price reached in under GRADED BY) */
.pf-cards.c1.lined.editing.vbatch .pf-card:not(.pf-grp) > .pf-fg.line { align-self: start; }
/* the tiles (1 · 2 · 3 columns): a batch's count + type and a group's COPIES sit under the picture, the name keeps its line */
.pf-cards.c4 .pf-grp .pf-artcol .pf-btag { flex: 0 0 auto; font-size: calc(8px * var(--pf-fs, 1)); line-height: calc(15px * var(--pf-fs, 1)); letter-spacing: .6px; padding: 0 3px; }
.pf-cards.c4.n6 .pf-grp .pf-artcol .pf-btag { font-size: calc(7.5px * var(--pf-fs, 1)); letter-spacing: .3px; padding: 0 2px; }
/* SHOW / HIDE CARDS: smaller in every view, so the price beside it keeps its room */
.pf-gbtn { height: 22px; padding: 0 8px; border-radius: 6px; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: .8px; }
.pf-cards.c1 .pf-gbtn, .pf-cards.c2 .pf-gbtn { height: 22px; font-size: calc(8.5px * var(--pf-fs, 1)); }
.pf-cards.c4.nodet .pf-gbtn { margin-top: 4px; }
.pf-cards.c4.n6.nodet .pf-gbtn { height: 20px; font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: .5px; padding: 0 4px; }

/* SOLD ITEMS · the price paid of a sold card (operator 2026-10-12: 'edit the price paid to see the realized gain / loss') */
.pf-soldacts { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pf-soldacts .pf-chip { justify-content: center; }
.pf-spaid.add { border-color: #a8862a; color: #ffd54a; }
.pf-spaid[aria-expanded="true"] { border-color: var(--accent); color: #fff; }
.pf-soldedit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; padding: 10px 12px; border: 1px solid #3a3a3a; border-radius: 10px; background: #111; }
.pf-soldedit label { display: flex; flex-direction: column; gap: 4px; }
.pf-soldedit label i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.4px; color: var(--pf-ink3); }
.pf-soldedit input, .pf-soldedit select { box-sizing: border-box; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid #3d3d3d; background: #0e0e0e; color: #fff; font-size: calc(14px * var(--pf-fs, 1)); font-family: inherit; }
.pf-soldedit input { width: 160px; }
.pf-soldedit select { width: 88px; }
.pf-soldedit input:focus, .pf-soldedit select:focus { outline: none; border-color: var(--accent); }
.pf-soldedit .pf-qbtn { height: 36px; padding: 0 16px; }
.pf-soldedit .pf-chip { height: 36px; }
.pf-soldnote { flex: 1 1 100%; font-size: calc(11px * var(--pf-fs, 1)); line-height: 1.45; color: var(--pf-ink3); }
body.mv .pf-soldedit input, body.mv .pf-soldedit select { height: 44px; font-size: calc(16px * var(--pf-fs, 1)); }   /* iOS never zooms a 16 px field */
body.mv .pf-soldedit input { width: 100%; }
body.mv .pf-soldedit label:not(.cur) { flex: 1 1 140px; }

/* ---- MAP INSPECT · the severity pills and the DEFECT AREA line (operator 2026-10-12: 'the same colour pills for
   MAJOR / MINOR / MICRO with their number of marks; a more professional area of defect section; no scrolling') ---- */
#view-ai .ai-c3 .ai-pcard .ai-sstrip > .l2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; height: 22px; box-sizing: border-box;
  padding: 0 7px; border: 1px solid; border-radius: 4px; overflow: hidden; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv i { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; letter-spacing: 1.2px; font-weight: 700; color: inherit; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv i em { display: none; }   /* MAJ · MIN · MIC — the full word is the button's and the tooltip's */
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv b { font-size: 13px; line-height: 1; color: inherit; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv.major { background: #5a2321; border-color: var(--accent); color: #fff; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv.minor { background: #4a3f14; border-color: #E8C547; color: #F5E9B8; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv.micro { background: #2b2b2b; border-color: #8a8a8a; color: #e6e6e6; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv:not(.hit) { opacity: .38; }           /* none of that severity: the colour stays, quieter */
/* the DEFECT AREA block: the caption over the area and its share of the card, the points chip on the right of both */
#view-ai .ai-c3 .ai-pcard .ai-sstrip > .l3 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "k k d" "v s d"; align-items: baseline;
  column-gap: 7px; row-gap: 0; padding-top: 4px; border-top: 1px solid #2c2c2c; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k { grid-area: k; line-height: 1.5; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v { grid-area: v; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s { grid-area: s; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d { grid-area: d; align-self: center; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k { flex: 0 0 auto; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: #8a8a8a; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k em { color: inherit; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v { flex: 0 0 auto; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v b { font-size: 13px; color: #f2f2f2; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3:not(.hit) .v b { color: #7f7f7f; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v em { margin-left: 2px; font-size: 9.5px; color: #8a8a8a; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10px; color: #8a8a8a; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s em { color: inherit; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d { flex: 0 0 auto; margin-left: auto; padding: 1px 7px; border: 1px solid #2c2c2c; border-radius: 3px; background: #161616;
  font-size: 12px; line-height: 1.35; color: #7f7f7f; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d.hit { color: #ffb3ae; border-color: #7a3a38; background: #2a1312; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d em { font-size: 8.5px; letter-spacing: 1px; color: inherit; opacity: .8; }
/* a narrower column (1600 px windows): tighter strips, the company row's labels smaller — nothing cut */
@container aic3 (max-width: 460px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s em { display: none; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip > div:not(.l2):not(.l3) { gap: 7px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip i { letter-spacing: 1px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .pen { padding: 1px 8px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row span { font-size: 8.5px; letter-spacing: 0; }
}
@container aic3 (max-width: 400px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k em { display: none; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv { padding: 0 5px; }
}
@container aic3 (max-width: 330px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s, #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d em { display: none; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv { padding: 0 4px; gap: 2px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv i { font-size: 8.5px; letter-spacing: .2px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv b { font-size: 12px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip > .l2 { gap: 3px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row span { font-size: 7px; letter-spacing: 0; }   /* after the 460 px tier */
}
/* a short column (1366 × 768): the DEFECT AREA block on one line, lower pills */
@container aic3 (max-height: 700px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv { height: 19px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip > .l3 { display: flex; align-items: center; gap: 7px; padding-top: 2px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k em { display: none; }
}

/* DASHBOARD · the order view: a job's STATUS dropdown on one line with INSPECTION / VAULT (operator 2026-10-12) — both
   28 px tall, the buttons dropped by the caption's height (13 px + the 1 px gap) so they sit level with the dropdown */
#ord-detail .od-f i { line-height: 13px; }
#ord-detail .od-f select, #ord-detail .od-f input { box-sizing: border-box; height: 28px; padding-top: 0; padding-bottom: 0; }
#ord-detail .od-jacts { padding-top: 14px; align-items: center; }
#ord-detail .od-jacts .btn { box-sizing: border-box; height: 28px; display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
#ord-detail .od-job > .od-verify { margin-top: 14px; }

/* BLACKPORT round 24 (operator 2026-10-12): TWO columns with DETAILS on — the card's NAME runs over the whole card and the
   fields sit just under it, beside the line and the price, so a long name reads in full (it was cut at the fields' edge).
   .pf-cinfo steps aside (display: contents) so its name, line and price are placed on the card's own grid. */
.pf-cards.c2.lined .pf-card { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "art name name" "art line fg" "art bot fg"; row-gap: 0; align-items: start; }
.pf-cards.c2.lined .pf-card > .pf-artcol { grid-area: art; align-self: center; }
.pf-cards.c2.lined .pf-card > .pf-cinfo { display: contents; }
.pf-cards.c2.lined .pf-card .pf-c1 { grid-area: name; min-width: 0; }
.pf-cards.c2.lined .pf-card .pf-c2 { grid-area: line; min-width: 0; }
.pf-cards.c2.lined .pf-card .pf-cbot { grid-area: bot; align-self: end; min-width: 0; }
.pf-cards.c2.lined .pf-card > .pf-fg { grid-area: fg; align-self: start; margin-top: 6px; }

/* ==================== ROUND 25 (operator 2026-10-12) ====================
   'Revise the mobile UX/UI to match the current PC version (the pills, space optimisation); every CARDS feature on the
   phone; buttons up to 20% smaller, the type as it is; the batches tighter' · 'rework the STORE on PC and mobile' ·
   'sell as a batch or several copies; a cover image per listing' · 'monthly statements of the sales, like a bank's' */

/* ---- 1. BLACKPORT's CARDS toolbar on a phone = the computer's: the filters on ONE sliding line, the FIVE switches
   (DETAILS joins), then the columns · OPEN ALL · ADD A BATCH · ADD A CARD on one line (the floating columns button
   is gone) ---- */
.pf-shortl { display: none; font-style: normal; }
#view-port .pf-app.ph .pf-cardsbar { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; margin-bottom: 8px; grid-template-columns: none; }
#view-port .pf-app.ph .pf-filt { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#view-port .pf-app.ph .pf-filt::-webkit-scrollbar { display: none; }
#view-port .pf-app.ph .pf-folders, #view-port .pf-app.ph .pf-games { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; overflow: visible; max-width: none; grid-column: auto; grid-row: auto; margin: 0; }
#view-port .pf-app.ph .pf-games[hidden] { display: none; }
#view-port .pf-app.ph .pf-games { padding-left: 8px; border-left: 1px solid #2c2c2c; }
#view-port .pf-app.ph .pf-chip { height: 34px; padding: 0 11px; border-radius: 10px; }
#view-port .pf-app.ph .pf-chip.sm { height: 30px; padding: 0 10px; border-radius: 9px; }
#view-port .pf-app.ph .pf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
#view-port .pf-app.ph .pf-tog { min-width: 0; }
#view-port .pf-app.ph .pf-modes { flex: 1 1 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; grid-column: auto; }
#view-port .pf-app.ph .pf-tog { height: 38px; padding: 0 2px; font-size: calc(11.5px * var(--pf-fs, 1)); letter-spacing: .4px; border-radius: 10px; }
#view-port .pf-app.ph #pf-details { display: inline-flex; }
#view-port .pf-app.ph .pf-openall:not([hidden]) { display: inline-flex; height: 34px; padding: 0 10px; font-size: calc(11px * var(--pf-fs, 1)); order: 1; }
#view-port .pf-app.ph .pf-colsw { position: static; display: inline-flex; order: 0; left: auto; bottom: auto; z-index: auto; margin: 0; padding: 2px; gap: 2px; box-shadow: none; grid-row: auto; grid-column: auto; }
#view-port .pf-app.ph .pf-colsw button { width: 32px; height: 30px; border-radius: 8px; }
#view-port .pf-app.ph .pf-colsw button svg { width: 17px; height: 17px; }
#view-port .pf-app.ph #pf-addbatch2, #view-port .pf-app.ph #pf-addbtn2 { order: 2; grid-column: auto; flex: 0 0 auto; width: auto; height: 36px; padding: 0 12px; gap: 5px; border-radius: 10px; font-size: calc(11.5px * var(--pf-fs, 1)); letter-spacing: 1px; }
#view-port .pf-app.ph #pf-addbatch2 { margin-left: auto; }
#view-port .pf-app.ph #pf-addbatch2 svg, #view-port .pf-app.ph #pf-addbtn2 svg { width: 17px; height: 17px; }
#view-port .pf-app.ph #pf-addbatch2 > span, #view-port .pf-app.ph #pf-addbtn2 > span { display: none; }
#view-port .pf-app.ph .pf-shortl { display: inline; }

/* ---- 2. a phone's cards: the grid places what is there (no empty rows), controls ~20% lower, the batch entry with its
   count and type under the picture and SHOW / SELL as small pills ---- */
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm { grid-template-areas: none; grid-template-columns: 58px minmax(0, 1fr); gap: 8px 12px; padding: 11px 12px; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm > .pf-artcol { grid-area: 1 / 1; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm > .pf-cinfo { grid-area: 1 / 2; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm > :not(.pf-artcol):not(.pf-cinfo) { grid-area: auto / 1 / auto / -1; }
#view-port .pf-cards.ph .pm-chip { height: 26px; padding: 0 9px; border-radius: 8px; }
#view-port .pf-cards.ph .pm-note { margin-top: 4px; }
#view-port .pf-cards.ph .pm-gfoot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
#view-port .pf-cards.ph .pm-more { grid-area: auto; height: 30px; padding: 0 12px; border-radius: 9px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: .8px; }
#view-port .pf-cards.ph.tiles .pm-gfoot { justify-content: stretch; }
#view-port .pf-cards.ph.tiles .pm-gfoot .pm-more { flex: 1 1 auto; }
.pm-mini { height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid #5c5340; background: #2a2414; color: #f1e6c8; font: inherit; font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1px; cursor: pointer; white-space: nowrap; }
.pm-mini:active { background: #ab9b6f; color: #141414; }
#view-port .pf-cards.ph .pm .pf-artcol { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
#view-port .pf-cards.ph .pf-grp.pm .pf-artcol .pf-btag { font-size: calc(9px * var(--pf-fs, 1)); line-height: calc(15px * var(--pf-fs, 1)); height: 15px; padding: 0 3px; border-radius: 4px; letter-spacing: .4px; text-align: center; max-width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
#view-port .pf-cards.ph .pf-grp.pm .pf-gbadge + .pf-btag { margin-top: 5px; }
#view-port .pf-cards.ph .pf-grp.pm .pf-c1 b { -webkit-line-clamp: 2; }
#view-port .pf-cards.ph .pm-btn { height: 40px; font-size: calc(13.5px * var(--pf-fs, 1)); border-radius: 10px; }
#view-port .pf-cards.ph .pm-f select, #view-port .pf-cards.ph .pm-f input, #view-port .pf-cards.ph .pm-f .pm-date { height: 42px; border-radius: 10px; }
#view-port .pf-cards.ph .pm-step button { height: 42px; }
#view-port .pf-cards.ph .pm-today { height: 42px; }
#view-port .pf-cards.ph .pf-bin input, #view-port .pf-cards.ph .pf-bin select { height: 42px; border-radius: 10px; }
#view-port .pf-cards.ph .pf-bin .pf-bname { flex: 1 1 100%; width: 100%; height: 42px; font-size: calc(16px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph .pf-bgcap { padding: 8px 10px; }
#view-port .pf-cards.ph .pf-bgroup { gap: 6px; padding: 6px; }
#view-port .pf-cards.ph .pf-grpcopies { gap: 6px; }
#view-port .pf-cards.ph.pmnodet .pf-card.pm .pf-spark { margin-top: 2px; }

/* ---- 3. BLACKPORT → STORE, reworked: four figures, the ways to list, four panes ---- */
.mk-store { gap: 12px; }
.mk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mk-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); color: var(--pf-ink); font: inherit; text-align: left; cursor: pointer; }
.mk-kpi:hover { border-color: #4a4a4a; background: #1b1b1b; }
.mk-kpi > i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.6px; color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mk-kpi > b { font-size: calc(clamp(18px, 1.8vw, 24px) * var(--pf-fs, 1)); font-weight: 700; color: #fff; line-height: 1.15; }
.mk-kpi > span { font-size: calc(11.5px * var(--pf-fs, 1)); color: var(--pf-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mk-kpi .pf-chg { height: auto; padding: 0; background: none; border: 0; font-size: calc(11.5px * var(--pf-fs, 1)); }
.mk-kpi.hot { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(220, 79, 76, .4); }
.mk-kpi.hot > b { color: #ff8f8b; }
.mk-sacts .pf-qbtn.batch { border-color: #7a2d2a; background: #1c0e0d; }
.mk-stabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #111; border: 1px solid var(--pf-line); }
.mk-stabs button { flex: 1 1 0; min-width: 0; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; background: transparent; color: var(--pf-ink2); font: inherit; font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; cursor: pointer; white-space: nowrap; }
.mk-stabs button:hover { color: #fff; }
.mk-stabs button.on { background: var(--accent); color: #fff; }
.mk-stabs .mk-n { font-style: normal; min-width: 18px; height: 18px; line-height: calc(18px * var(--pf-fs, 1)); padding: 0 5px; border-radius: 9px; background: #2a2a2a; color: #ddd; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: 0; box-sizing: border-box; text-align: center; }
.mk-stabs .mk-n.hot { background: var(--accent); color: #fff; }
.mk-stabs button.on .mk-n { background: rgba(0, 0, 0, .28); color: #fff; }
.mk-stabs button.on .mk-n.hot { background: #fff; color: var(--accent); }
.mk-spane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-lfilt .pf-chip i { font-style: normal; opacity: .7; margin-left: 2px; }
.mk-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mk-scard { position: relative; }
.mk-scard.sold, .mk-scard.withdrawn { opacity: .8; }
.mk-sst { position: absolute; top: 18px; left: 18px; z-index: 4; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.2px; padding: 3px 7px; border-radius: 5px; background: rgba(171, 155, 111, .96); color: #141414; }
.mk-sst.reserved { background: rgba(220, 79, 76, .96); color: #fff; }
.mk-sst.sold { background: #2c5a43; color: #fff; }
.mk-sst.withdrawn { background: #3a3a3a; color: #d0d0d0; }
.mk-dlist.done { opacity: .88; }
.mk-stmt { min-height: 160px; }
/* the batch's art: a mosaic of its first four pictures, its count under it */
.mk-mosc { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.mk-mos { display: grid; gap: 2px; padding: 2px; background: #0d0d0d; overflow: hidden; box-sizing: border-box; }
.mk-mos.m1 { grid-template-columns: 1fr; }
.mk-mos.m2 { grid-template-columns: 1fr 1fr; }
.mk-mos.m3, .mk-mos.m4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mk-mos img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 3px; }
.mk-mos.m2 img { object-fit: contain; }
.mk-mos.m3 img:first-child { grid-row: 1 / 3; object-fit: contain; }
.mk-nc { position: relative; z-index: 3; margin: -9px 0 0 5px; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1px; line-height: calc(15px * var(--pf-fs, 1)); padding: 0 6px; border-radius: 5px; background: #0d0d0d; color: #fff; border: 1px solid #4a4a4a; white-space: nowrap; }
.mk-sart.mk-mosc .mk-nc { font-size: calc(6.5px * var(--pf-fs, 1)); line-height: calc(11px * var(--pf-fs, 1)); padding: 0 3px; margin: -7px 0 0 2px; }
/* the cover over the art */
.mk-cvr { position: relative; display: block; align-self: stretch; }
.mk-cvr > .mk-cvimg { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: contain; background: #0b0b0b; border-radius: 9px; }
.mk-tile .mk-cvr.has .pf-gbadge, .mk-tile .mk-cvr.has .mk-nc { visibility: hidden; }
/* SELL A BATCH */
.mk-bpick { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-bpick button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); color: var(--pf-ink); font: inherit; text-align: left; cursor: pointer; }
.mk-bpick button:hover:not(:disabled) { border-color: #7a2d2a; background: #1c0e0d; }
.mk-bpick button:disabled { opacity: .5; cursor: default; }
.mk-bpick .pf-ln { flex: 1 1 auto; min-width: 0; }
/* the listing form: SEPARATE LISTINGS or ONE BATCH, the batch's title and price, the cover */
.mk-lfmode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mk-lfmode button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--pf-ctl-line); background: var(--pf-panel); color: var(--pf-ink2); font: inherit; text-align: left; cursor: pointer; }
.mk-lfmode button b { font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.3px; color: #fff; }
.mk-lfmode button span { font-size: calc(11.5px * var(--pf-fs, 1)); }
.mk-lfmode button.on { border-color: var(--accent); background: #2a1312; box-shadow: inset 0 0 0 1px var(--accent); }
.mk-lfbatch { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px; margin-bottom: 8px; border-radius: 12px; background: #1c0e0d; border: 1px solid #4a1715; }
.mk-lfbatch .mk-f.wide { flex: 1 1 100%; }
.mk-lfbatch .mk-f:not(.wide) { flex: 0 0 200px; }
.mk-lfbatch .mk-fine { flex: 1 1 100%; margin: 0; }
.mk-lfrow.inb { padding: 8px 0; }
.mk-lfrow .mk-cp { width: 120px; }
.mk-lfcover { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid #262626; }
.mk-lfcover .mk-fine { margin: 0; }
.mk-cvbox { display: flex; align-items: center; justify-content: center; min-height: 140px; max-height: 440px; overflow: hidden; border-radius: 12px; background: #0b0b0b; border: 1px dashed #3a3a3a; }
.mk-cvbox img { display: block; max-width: 100%; max-height: 440px; object-fit: contain; }
.mk-cvwait { padding: 30px; text-align: center; color: var(--pf-ink3); font-size: calc(12px * var(--pf-fs, 1)); }
.mk-cvup { position: relative; cursor: pointer; }
.mk-cvup:has(.mk-file:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a batch listing's cards (the listing, the deal) */
.mk-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.mk-items > li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.mk-items .pf-ln { min-width: 0; }
.mk-q { font-style: normal; color: var(--accent); font-weight: 800; }
.mk-lgrid.batch .mk-lpic .mk-mos { width: 100%; aspect-ratio: 5 / 7; border-radius: 9px; }
.mk-lgrid.batch .mk-lpic .mk-mosc { align-items: stretch; }
.mk-tile.batch .mk-mosc { align-items: stretch; }
.mk-tile.batch .mk-mosc .mk-mos { width: 100%; aspect-ratio: 5 / 7; border-radius: 9px; }
.mk-sart.mk-mosc .mk-mos { width: 40px; height: 56px; border-radius: 5px; }
.pf-chip.danger { color: var(--pf-neg); border-color: #5a2321; }
.pf-chip.danger:hover { background: #2a1312; }

/* ---- 4. SALES STATEMENTS: a bar a month, the month's statement, its sales day by day ---- */
.st-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stm-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 96px; padding: 10px 10px 6px; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); box-sizing: border-box; }
.stm-bar { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: var(--pf-ink3); font: inherit; cursor: pointer; }
.stm-bar > span { position: relative; flex: 1 1 auto; border-radius: 5px; background: rgba(255, 255, 255, .03); }
.stm-bar > span > i { position: absolute; left: 20%; right: 20%; bottom: 0; border-radius: 3px 3px 0 0; background: var(--pf-pos); }
.stm-bar.down > span > i { background: var(--pf-neg); }
.stm-bar.none > span > i { display: none; }
.stm-bars.mid .stm-bar > span::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #333; }
.stm-bars.mid .stm-bar.up > span > i { bottom: 50%; }
.stm-bars.mid .stm-bar.down > span > i { top: 50%; bottom: auto; border-radius: 0 0 3px 3px; }
.stm-bar > em { font-style: normal; font-size: 8.5px; letter-spacing: .8px; text-align: center; white-space: nowrap; overflow: hidden; }
.stm-bar.on > span { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px #5a5a5a; }
.stm-bar.on > em { color: #fff; font-weight: 700; }
.st-sum { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.st-mhead { display: flex; align-items: center; gap: 10px; }
.st-nav { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--pf-ctl-line); background: #1b1b1b; color: #fff; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.st-nav:disabled { opacity: .3; cursor: default; }
.st-mname { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.st-mname b { font-size: 17px; letter-spacing: 1.6px; color: #fff; }
.st-state { font-size: 9px; font-weight: 800; letter-spacing: 1.2px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.st-state.open { background: #12201a; color: var(--pf-pos); border: 1px solid #2c5a43; }
.st-state.arch { background: #222; color: #bdbdbd; border: 1px solid #3a3a3a; }
.st-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-figs > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: #121212; }
.st-figs i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--pf-ink3); }
.st-figs b { font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; color: var(--pf-pos); line-height: 1.2; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.st-figs b.p { color: #fff; }
.st-figs b.up { color: var(--pf-pos); }
.st-figs b.down { color: var(--pf-neg); }
.st-figs b.flat { color: #bdbdbd; }
.st-figs b .pf-tri { width: 11px; height: 11px; }
.st-figs em { font-style: normal; font-size: 11px; color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-figs em .pf-chg { height: auto; padding: 0 4px; font-size: calc(10.5px * var(--pf-fs, 1)); }
.st-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-fine { font-size: 11px; color: var(--pf-ink3); }
.st-day { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; }
.st-day b { font-size: 10.5px; letter-spacing: 1.5px; color: var(--pf-ink2); }
.st-day span { font-size: 12px; font-weight: 700; color: var(--pf-pos); }
.st-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.st-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "art ln amt act" "ed ed ed ed"; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.st-list > li.hot, .st-list > li.editing { border-color: var(--accent); }
.st-list > li > .pf-artcol { grid-area: art; display: flex; flex-direction: column; align-items: center; }
.st-list > li .pf-cart { width: 40px; height: 56px; border-radius: 5px; }
.st-list > li .pf-gbadge { margin: -9px 0 -6px; height: 13px; line-height: calc(11px * var(--pf-fs, 1)); font-size: calc(6.5px * var(--pf-fs, 1)); letter-spacing: .6px; }
.st-list > li .pf-gbadge b, .st-list > li .pf-gbadge i { padding: 0 4px; }
.st-list .pf-ln { grid-area: ln; min-width: 0; }
.st-who { font-size: 11px; color: var(--pf-ink3); }
.st-amts { grid-area: amt; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.st-in { font-size: 16px; color: var(--pf-pos); }
.st-amts > span { font-size: 11.5px; color: var(--pf-ink2); }
.st-amts .pf-amt { font-size: calc(11.5px * var(--pf-fs, 1)); }
.st-acts2 { grid-area: act; display: flex; gap: 6px; align-items: center; }
.st-lock { font-size: 12px; opacity: .55; }
.st-list .st-edit { grid-area: ed; margin-top: 6px; }
.st-edit label.day input { width: 150px; }
.st-ebtns { display: inline-flex; gap: 6px; align-items: center; }
.st-edit .pf-soldnote { flex: 1 1 100%; }
#pf-soldbody { padding: 12px 14px 16px; }

/* ---- 5. the phone ---- */
.pf-app.ph .mk-kpis, body.mv .mk-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-app.ph .mk-kpi { padding: 10px 12px; }
.pf-app.ph .mk-sacts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pf-app.ph .mk-sacts .pf-qbtn { height: 38px; padding: 0 6px; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .6px; gap: 4px; min-width: 0; }
.pf-app.ph .mk-sacts .pf-qbtn svg { width: 15px; height: 15px; }
.pf-app.ph .mk-stabs button { height: 34px; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .5px; gap: 3px; }
.pf-app.ph .mk-stabs .mk-n { min-width: 16px; height: 16px; line-height: calc(16px * var(--pf-fs, 1)); font-size: calc(9.5px * var(--pf-fs, 1)); padding: 0 4px; }
.pf-app.ph .mk-sgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-app.ph .mk-scard { padding: 8px; gap: 8px; border-radius: 12px; }
.pf-app.ph .mk-scard .mk-tname { font-size: calc(13.5px * var(--pf-fs, 1)); }
.pf-app.ph .mk-scard .mk-tprice b { font-size: calc(16px * var(--pf-fs, 1)); }
.pf-app.ph .mk-sst { top: 13px; left: 13px; }
.pf-app.ph .mk-sellerbar { padding: 10px 12px; }
@media (max-width: 760px) {
  .mk-lfbatch .mk-f:not(.wide) { flex: 1 1 100%; }
  .mk-lfrow .mk-cp { width: 100%; }
  .mk-items { grid-template-columns: 1fr; }
  .stm-bars { height: 84px; padding: 8px 6px 4px; gap: 3px; }
  .st-figs { grid-template-columns: 1fr 1fr; }
  .st-figs > span.st-real { grid-column: 1 / -1; }
  .st-list > li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art ln amt" "act act act" "ed ed ed"; padding: 10px; }
  .st-acts2 { justify-content: flex-end; }
  .st-edit label, .st-edit label input, .st-edit label select { width: 100%; }
  .st-edit label { flex: 1 1 calc(50% - 5px); }
  .st-edit label.day { flex: 1 1 100%; }
  .st-edit input, .st-edit select { height: 42px; font-size: 16px; }
  #pf-soldbody { padding: 10px; }
}
/* round 25 follow-ups: the tools line fits one row with OPEN ALL; the batch strip wraps on a phone; SHOW / HIDE on tiles */
#view-port .pf-app.ph .pf-openall:not([hidden]) { padding: 0 8px; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .6px; }
#view-port .pf-app.ph .pf-colsw button { width: 29px; }
#view-port .pf-app.ph #pf-addbatch2, #view-port .pf-app.ph #pf-addbtn2 { padding: 0 9px; gap: 4px; font-size: calc(11px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph .pm-more { white-space: nowrap; }
#view-port .pf-cards.ph.tiles .pm-gfoot, #view-port .pf-cards.ph.selecting .pm-gfoot { grid-area: more; display: flex; }
#view-port .pf-cards.ph .pf-bin { display: flex; flex-wrap: wrap; gap: 6px; }
#view-port .pf-cards.ph .pf-bin select.pf-bkind, #view-port .pf-cards.ph .pf-bin input[data-bk="total"] { flex: 1 1 30%; min-width: 0; width: auto; }
#view-port .pf-cards.ph .pf-bin select[data-bk="cur"] { flex: 0 0 84px; width: 84px; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open):has(.pf-pr .pf-d) .pf-cinfo { padding-top: 28px; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr .pf-d { top: 7px; }
/* round 25: SELECT on a phone — two to a row inside a batch's box and an open entry too (they kept one column); the docked
   bar's controls a fifth lower */
#view-port .pf-cards.ph.selecting .pf-bgroup, #view-port .pf-cards.ph.selecting .pf-grpcopies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#view-port .pf-cards.ph.selecting .pf-bgroup > .pf-bgcap, #view-port .pf-cards.ph.selecting .pf-bgroup > .pf-batchrow { grid-column: 1 / -1; }
.pf-app.ph .pf-selhead .pf-sbtn { height: 34px; }
.pm-stabs button { height: 34px; }
.pm-sp input, .pm-sp select { height: 42px; }
.pm-sp .pf-sbtn, .pm-sp button { height: 42px; }
.pf-app.selph { padding-bottom: 220px; }

/* ==== round 26 (operator 2026-10-13): SELECT's bar floats at the bottom of the screen; its buttons red (LIST FOR SALE
   stays gold); SELECT ALL / DESELECT ALL; the column switch's pick outlined red — computer and phone ==== */
#view-port .pf-app:not(.ph) .pf-selbar { position: sticky; top: auto; bottom: 14px; z-index: 30; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px;
  background: rgba(18, 18, 18, .97); border: 1px solid #4a4a4a; box-shadow: 0 -12px 34px rgba(0, 0, 0, .65), 0 8px 24px rgba(0, 0, 0, .5); }
#view-port .pf-selbar .pf-sbtn:not(.gold) { background: var(--accent); border-color: var(--accent); color: #fff; }
#view-port .pf-selbar .pf-sbtn:not(.gold):hover:not(:disabled) { background: #e8625f; border-color: #e8625f; color: #fff; }
#view-port .pf-selbar .pf-sbtn:not(.gold):disabled { background: #3a1716; border-color: #5a2321; color: #b98f8d; opacity: 1; }
#view-port .pf-selbar .pf-sbtn.danger:not(:disabled) { background: #b5302d; border-color: #b5302d; }
#view-port .pf-selbar .pf-sbtn.gold:disabled { opacity: .5; }
#view-port .pf-colsw button.on { background: #2a1312; color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
#view-port .pf-colsw button.on svg { stroke: #ff8f8b; }
/* a phone: the count on its own line, SELECT ALL · DESELECT ALL · DONE side by side under it */
#view-port .pf-app.ph .pf-selhead { flex-wrap: wrap; gap: 6px; }
#view-port .pf-app.ph .pf-selhead b { flex: 1 1 100%; }
#view-port .pf-app.ph .pf-selhead .pf-sbtn { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: .6px; }
.pf-app.selph { padding-bottom: 260px; }

/* ==== round 27 (operator 2026-10-13): the grade pill a size larger in every view (height and margins grow together, so
   no card grows); 2 columns + DETAILS: the picture's column = the picture (64 px — the pill sat off-centre in 80 px);
   3 columns + DETAILS: the fields a little lower, clear of the pill ==== */
.pf-gbadge { margin: -14px 0 -10px; height: 20px; line-height: calc(18px * var(--pf-fs, 1)); font-size: calc(11px * var(--pf-fs, 1)); max-width: calc(100% + 24px); }
.pf-cards.c4.n6 .pf-gbadge, .pf-cards.c1.lined .pf-gbadge { margin: -13px 0 -9px; height: 18px; line-height: calc(16px * var(--pf-fs, 1)); font-size: calc(10px * var(--pf-fs, 1)); max-width: calc(100% + 26px); }
.pf-cards.ph .pm .pf-gbadge { margin: -15px 0 -11px; height: 22px; line-height: calc(20px * var(--pf-fs, 1)); font-size: calc(11.5px * var(--pf-fs, 1)); letter-spacing: .3px; max-width: calc(100% + 32px); }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-gbadge { margin: -13px 0 -10px; height: 19px; line-height: calc(17px * var(--pf-fs, 1)); font-size: calc(10.5px * var(--pf-fs, 1)); }
.pf-cards.c2.lined .pf-card { grid-template-columns: 64px minmax(0, 1fr) auto; }
.pf-cards.c2.lined .pf-card > .pf-artcol { align-items: center; }
.pf-cards.c3 .pf-card > .pf-fg { margin-top: 8px; }

/* ==== round 28 (operator 2026-10-13): 'the boxes and buttons are mostly black, the same as the page — make them easy to
   tell apart, in the BLACKLENS palette' — every BUTTON is a raised grey a step above the page with a lit edge, every BOX
   (a field you type in or read) a lighter well with a visible edge; red stays the action and the pick; the page, the
   panels and the cards keep their blacks. Computer and phone; BLACKPORT, its STORE, BLACKMARKT and its sheets. ==== */
:is(#view-port, #view-markt, #mk-sheet, #view-request) {
  --pf-btn: #2a2a2a; --pf-btn-hi: #353535; --pf-btn-line: #4d4d4d; --pf-btn-ink: #ececec;
  --pf-box: #1f1f1f; --pf-box-line: #4a4a4a; --pf-ro: #242424; --pf-ro-line: #3a3a3a;
}
/* buttons */
:is(#view-port, #view-markt, #mk-sheet, #view-request) :is(.pf-tog:not(.on), .pf-qbtn:not(.accent):not(.batch):not(.danger), .pf-curchip, .pm-more, .pm-btn:not(.red):not(.gold):not(.danger), .st-nav, .pf-gbtn) {
  background: var(--pf-btn); border-color: var(--pf-btn-line); color: var(--pf-btn-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-chip:not(.on):not(.danger) { background: var(--pf-btn); border-color: var(--pf-btn-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-chip.add:not(.on) { background: #1d1d1d; border-color: #5c5c5c; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) :is(.pf-tog:not(.on), .pf-chip:not(.on):not(.danger), .pf-qbtn:not(.accent):not(.batch):not(.danger), .pf-curchip, .pm-more, .pm-btn:not(.red):not(.gold):not(.danger)):hover {
  background: var(--pf-btn-hi); border-color: #626262; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-tog .pf-sw { background: #4a4a4a; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-tog .pf-sw::after { background: #d0d0d0; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-app:not(.ph) .pf-tog.on { background: #3a1715; border-color: var(--accent); color: #fff; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-tog.on .pf-sw::after { background: #fff; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-qbtn.batch { background: #2e1513; border-color: #8a3330; color: #fff; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-qbtn.batch:hover { background: #3c1a18; border-color: var(--accent); }
/* the tab rails and the column switch: a lit frame, the tabs readable */
:is(#view-port, #view-markt, #mk-sheet, #view-request) :is(.pf-segs, .mk-stabs, .pf-colsw) { background: #1b1b1b; border-color: #3f3f3f; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-segs button:not(.on), :is(#view-port, #view-markt, #mk-sheet, #view-request) .mk-stabs button:not(.on) { color: #c8c8c8; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-segs button:not(.on):hover, :is(#view-port, #view-markt, #mk-sheet, #view-request) .mk-stabs button:not(.on):hover { background: #2a2a2a; color: #fff; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-colsw button:not(.on) { color: #c4c4c4; }
:is(#view-port, #view-markt, #mk-sheet, #view-request) .pf-colsw button:not(.on):hover { background: #2c2c2c; color: #fff; }
/* the boxes you type in */
:is(#view-port, #view-markt, #mk-sheet, #view-request) :is(.pf-sain input, .pf-sain select, .pf-fg select, .pf-fg input, .pf-date, .mk-f input, .mk-f select, .mk-f textarea, .mk-search,
  .pm-f select, .pm-f input, .pm-f .pm-date, .pm-sp input, .pm-sp select, .pf-soldedit input, .pf-soldedit select, .pf-estin input, .pf-bin input, .pf-bin select, .mk-counter input, .pf-dbtn) {
  background: var(--pf-box); border-color: var(--pf-box-line); }
:is(#view-port, #view-markt, #mk-sheet, #view-request) :is(.pf-sain input, .pf-sain select, .pf-fg select, .pf-fg input, .mk-f input, .mk-f select, .mk-f textarea, .pm-f select, .pm-f input, .pm-sp input, .pm-sp select, .pf-soldedit input, .pf-soldedit select, .pf-estin input, .pf-bin input, .pf-bin select, .mk-counter input):focus,
  :is(#view-port, #view-markt, #mk-sheet, #view-request) .mk-search:focus-within { border-color: var(--accent); }
/* the boxes you read (EDIT off): a lighter well than the card */
:is(#view-port, #view-markt) .pf-cards:not(.ph) .pf-fg.ro .pf-fv, :is(#view-port, #view-markt) .pf-cards .pf-card.alt:not(.inb):not(.pf-bgrp) .pf-fv { background: var(--pf-ro); border-color: var(--pf-ro-line); }
:is(#view-port, #view-markt) .pf-cards .pf-card.inb .pf-fv, :is(#view-port, #view-markt) .pf-cards .pf-bgrp .pf-fv, :is(#view-port, #view-markt) .pf-cards .pf-card.inb .pf-fg select,
  :is(#view-port, #view-markt) .pf-cards .pf-card.inb .pf-fg input, :is(#view-port, #view-markt) .pf-cards .pf-card.inb .pf-date { background: #2a1514; border-color: #5e2c2a; }
/* the information chips on a phone's card: a step lighter than the card */
:is(#view-port) .pm-chip:not(.none):not(.bl):not(.mk):not(.k):not(.near):not(.b) { background: #262626; border-color: #474747; }
/* SELECT's bar: a button waiting for a pick reads as a button that is off — not as the page */
#view-port .pf-selbar .pf-sbtn:not(.gold):disabled { background: #4a1c1b; border-color: #7a2d2a; color: #e4b9b7; }
#view-port .pf-selbar { background: rgba(26, 26, 26, .97); }
/* the STORE's figures and the listing form's choices: tiles you can press */
:is(#view-port, #view-markt, #mk-sheet) :is(.mk-kpi:not(.hot), .mk-lfmode button:not(.on), .mk-bpick button:not(:disabled)) { background: #1e1e1e; border-color: #3f3f3f; }
:is(#view-port, #view-markt, #mk-sheet) :is(.mk-kpi:not(.hot), .mk-lfmode button:not(.on)):hover { background: #262626; border-color: #5a5a5a; }
/* round 29 (operator 2026-10-13): two columns — the short captions BY · CUR · QTY fit whole (tighter padding there) */
.pf-cards.c2.lined .pf-fg .pf-l { padding: 0 4px; letter-spacing: .5px; }
/* round 30 (operator 2026-10-13): SELECT's bar is a light grey panel, apart from the page (computer and phone) */
#view-port .pf-selbar, #view-port .pf-app:not(.ph) .pf-selbar { background: #333333; border-color: #5c5c5c; }
#view-port .pf-selbar .pf-selacts { border-top-color: #4a4a4a; }
#view-port .pf-selbar .pf-sa > i, #view-port .pf-selbar .pf-selhint, #view-port .pf-selbar .pm-sphint { color: #cfcfcf; }
#view-port .pf-selbar :is(.pf-sain input, .pf-sain select, .pm-sp input, .pm-sp select) { background: #1f1f1f; border-color: #5a5a5a; }
#view-port .pf-selbar .pm-stabs { background: #262626; border-color: #4a4a4a; }
#view-port .pf-selbar .pm-stabs button:not(.on) { color: #d0d0d0; }
#view-port .pf-selbar .pf-sbtn.gold:disabled { opacity: .65; }

/* ==== round 31 (operator 2026-10-13): a phone's filters as DROPDOWNS (FOLDER · TCG on OVERVIEW and PERFORMANCE, FOLDER ·
   TCG · SHOW on CARDS — the chip rows did not slide); the display currency beside the logo in the phone's header; the
   currency's flag on its chip (computer and phone) ==== */
.pf-curflag { display: inline-flex; flex: 0 0 auto; }
.pf-curflag svg { display: block; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.pf-curchip { gap: 7px; }
.pm-fbar { display: none; }
#view-port .pf-app.ph .pm-fbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
#view-port .pf-app.ph .pm-fbar.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#view-port .pf-app.ph #pm-fov { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px; }
#view-port .pf-app.ph #pm-fcards { margin: 0; }
#view-port .pf-app.ph :is(#pf-folders2, #pf-folders3, .pf-filt, .pf-herorow) { display: none !important; }
.pm-sel { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; height: 44px; padding: 0 26px 0 11px; box-sizing: border-box;
  border-radius: 11px; background: var(--pf-btn, #2a2a2a); border: 1px solid var(--pf-btn-line, #4d4d4d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.pm-sel > i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.3px; color: #a9a9a9; line-height: 1.1; }
.pm-sel > b { font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-sel > .pf-chev { position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; fill: none; stroke: #d0d0d0; stroke-width: 2; }
.pm-sel > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: calc(16px * var(--pf-fs, 1)); cursor: pointer; }
.pm-sel.on { border-color: var(--accent); background: #3a1715; }
.pm-sel:has(select:focus-visible) { outline: 2px solid #fff; outline-offset: 1px; }
.pm-eye { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 11px; background: var(--pf-btn, #2a2a2a); border: 1px solid var(--pf-btn-line, #4d4d4d); color: #e6e6e6; cursor: pointer; padding: 0; }
.pm-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pm-eye.off { color: var(--accent); border-color: var(--accent); }
/* the currency in the phone's header, left of the logo — only while BLACKPORT shows; its chip in the page steps aside */
.mv-cur { display: none; }
body.mv:has(#view-port.active) #mv-top .mv-cur { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-left: auto; padding: 0 9px 0 8px;
  border-radius: 10px; background: #2a2a2a; border: 1px solid #4d4d4d; color: #fff; font-family: var(--menu-font); font-stretch: 87.5%; font-size: calc(13px * var(--pf-fs, 1)); }
body.mv #mv-top .mv-cur b { font-weight: 700; letter-spacing: 1px; }
body.mv #mv-top .mv-cur .pf-chev { width: 13px; height: 13px; fill: none; stroke: #d0d0d0; stroke-width: 2; }
body.mv #mv-top .mv-cur select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
body.mv #view-port .pf-curchip { display: none; }
body.mv #view-port .pf-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs"; }

/* ===== MAP INSPECT round 33 (operator 2026-10-13: 'the stage co-ordinates shown on the full card defect map should be
   shown in the Loupe View instead — bottom left'): the stage position + the map's alignment under the DEFECT LOUPE ===== */
.ai-loupe-xy { position: absolute; left: 6px; bottom: 6px; z-index: 3; white-space: nowrap; max-width: calc(100% - 12px);
  overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-family: var(--jb-font); font-size: 10px; font-weight: 700;
  letter-spacing: .8px; font-variant-numeric: tabular-nums; color: #EAEAEA; background: rgba(10, 10, 10, .84);
  border: 1px solid #3a3a3a; border-radius: 4px; padding: 2px 7px; line-height: 14px; }
.ai-loupe-xy:empty { display: none; }
.ai-loupe-xy:hover { border-color: #5c5c5c; }
.ai-loupe-xy.off { color: #8a8a8a; cursor: default; }
.ai-loupe-xy em { font-style: normal; color: #ffb3b0; }
.ai-loupe-xy b { font-weight: 700; }
.ai-loupe-xy b.ok { color: #9be3c2; }
.ai-loupe-xy b.wait { color: #E8C547; }
.ai-loupe-xy b.no { color: #8a8a8a; }

/* ===== MAP INSPECT round 34 (operator 2026-10-13: 'allow changing the defect severity in DEFECT MARKS'): the row's
   severity pill is a button; it opens MAJOR · MINOR · MICRO in the second line, each with its cost ===== */
.ai-mtxt .l1 button.sev { border: 0; margin: 0; font-family: inherit; line-height: 1.35; cursor: pointer; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 3px; }
.ai-mtxt .l1 button.sev::after { content: ''; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent;
  border-top: 4px solid currentColor; opacity: .75; }
.ai-mtxt .l1 button.sev.open::after { border-top: 0; border-bottom: 4px solid currentColor; }
.ai-mtxt .l1 button.sev:hover { filter: brightness(1.15); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
.ai-mtxt .l1 button.sev:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.ai-msevs { display: flex; gap: 3px; white-space: nowrap; overflow: hidden; }
.ai-msevs .sv { flex: 1 1 0; min-width: 0; height: 18px; padding: 0 4px; border-radius: 4px; border: 1px solid; cursor: pointer;
  font-family: inherit; font-size: 8.5px; font-weight: 700; letter-spacing: .8px; display: inline-flex; align-items: center;
  justify-content: center; gap: 4px; overflow: hidden; white-space: nowrap; }
.ai-msevs .sv em { font-style: normal; font-weight: 600; letter-spacing: 0; opacity: .85; font-variant-numeric: tabular-nums; }
.ai-msevs .sv.major { background: #5a2321; border-color: #DC4F4C; color: #ffd0ce; }
.ai-msevs .sv.minor { background: #4a3f14; border-color: #E8C547; color: #f7e3a0; }
.ai-msevs .sv.micro { background: #2b2b2b; border-color: #8a8a8a; color: #e0e0e0; }
.ai-msevs .sv.major.on { background: #DC4F4C; color: #fff; }
.ai-msevs .sv.minor.on { background: #E8C547; color: #2b2200; }
.ai-msevs .sv.micro.on { background: #5a5a5a; color: #fff; }
.ai-msevs .sv:not(.on):hover { filter: brightness(1.25); }
.ai-msevs .sv:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
#view-ai .ai-v2 .ai-mrow.picking { border-color: #6a6a6a; }
.ai-msevs .sv b { font-weight: 700; } .ai-msevs .sv b i { font-style: normal; }
/* a narrow DEFECT MARKS column (1366 × 768): MAJ / MIN / MIC with the cost; narrower still, the cost goes to the tooltip */
#view-ai .ai-v2 #ai-mlist { container: aimlist / inline-size; }
@container aimlist (max-width: 300px) {
  .ai-msevs { gap: 2px; }
  .ai-msevs .sv { padding: 0 2px; gap: 2px; letter-spacing: .3px; font-size: 8px; }
  .ai-msevs .sv b i { display: none; }
}
@container aimlist (max-width: 150px) { .ai-msevs .sv em { display: none; } }
/* the stage readout under a narrow DEFECT LOUPE (1366 × 768): the MAP state on its own line */
#view-ai #ai-loupebox { container: ailoupe / inline-size; }
.ai-loupe-xy .mp i { font-style: normal; }
@container ailoupe (max-width: 230px) {
  .ai-loupe-xy { white-space: normal; text-overflow: clip; }
  .ai-loupe-xy > span { display: block; white-space: nowrap; }
  .ai-loupe-xy .mp i { display: none; }
}

/* ===== BLACKPORT round 36 (operator 2026-10-13, PC + phone): + BATCH on the left of + CARD; a phone's 2 / 3-column
   tiles: the grade pill centred UNDER the picture, the change chip in the item's top-right corner, and DETAILS on =
   a compact field grid (QTY · BOUGHT · FOLDER · BL · CERT# · PRE-CERT#) ===== */
/* the two add buttons side by side at the right end of the tools line ('.pf-tools #pf-addbtn2' pushed + CARD away alone) */
.pf-tools #pf-addbtn2 { margin-left: 0; }
.pf-tools #pf-addbatch2 { margin-left: auto; }
#view-port .pf-app.ph #pf-addbtn2 { margin-left: 0; }
#view-port .pf-app.ph #pf-addbatch2 { margin-left: auto; }
/* the picture column shrinks to the picture (it spanned the tile, the pill centred on the TILE while the picture sat left) */
#view-port .pf-cards.ph.tiles .pf-card.pm:not(.open) > .pf-artcol { justify-self: start; align-items: center; }
#view-port .pf-cards.ph.tiles .pf-card.pm:not(.open) > .pf-artcol > .pf-cart { align-self: center; }
/* the pill keeps its full height now: its negative bottom margin used to tuck under the chip line, which left */
#view-port .pf-cards.ph.tiles .pf-card.pm:not(.open) > .pf-artcol > .pf-gbadge { margin-bottom: 0; }
/* the change chip belongs to the item, top right — beside the picture, not under it */
#view-port .pf-cards.ph.tiles .pf-card.pm:not(.open) { position: relative; }
#view-port .pf-cards.ph.tiles .pf-card.pm:not(.open) .pf-cinfo { position: static; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):has(.pf-pr .pf-d) .pf-cinfo,
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open):has(.pf-pr .pf-d) .pf-cinfo { padding-top: 0; }
#view-port .pf-cards.ph.tiles .pf-card.pm:not(.open):has(.pf-pr .pf-d) .pf-c1 { padding-right: 0; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open) .pf-pr .pf-d { top: 10px; right: 10px; z-index: 3; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr .pf-d { top: 7px; right: 7px; z-index: 3; height: 18px; padding: 0 4px; gap: 2px; font-size: calc(10px * var(--pf-fs, 1));
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr .pf-d .pf-tri { width: 7px; height: 7px; }
/* DETAILS on: the compact field grid, two to a row, under the price */
#view-port .pf-cards.ph.tiles .pm-td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; margin-top: 0; padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .09); }
#view-port .pf-cards.ph.tiles .pm-td > span { display: flex; flex-direction: column; gap: 0; min-width: 0; }
#view-port .pf-cards.ph.tiles .pm-td i { font-style: normal; font-size: calc(8px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .8px; line-height: calc(10px * var(--pf-fs, 1)); color: #8f8f8f; white-space: nowrap; }
#view-port .pf-cards.ph.tiles .pm-td b { font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 600; line-height: calc(14px * var(--pf-fs, 1)); color: #ececec;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-cards.ph.tiles .pm-td > span.no b { color: #5c5c5c; }
#view-port .pf-cards.ph.tiles.n3 .pm-td { gap: 4px 5px; padding-top: 5px; }
#view-port .pf-cards.ph.tiles.n3 .pm-td i { font-size: calc(7px * var(--pf-fs, 1)); letter-spacing: .4px; line-height: calc(9px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph.tiles.n3 .pm-td b { font-size: calc(11px * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); }
/* a tile in a row with a taller one: the spare height goes to the text block (name right under the pill, the price at
   the foot) — the rows used to share it, so the name dropped away from its picture */
#view-port .pf-cards.ph.tiles .pf-card.pm:not(.open) { grid-template-rows: auto 1fr; }
#view-port .pf-cards.ph.tiles .pf-card.pf-grp.pm:not(.open) { grid-template-rows: auto 1fr auto; }

/* ===== BLACKPORT round 37 (operator 2026-10-13: 'increase the font sizes in PC mode by 15-20 % — under 100 % it is still
   too hard to see'): every font-size and px line-height of a BLACKPORT / BLACKMARKT rule reads
   calc(<size> * var(--pf-fs, 1)); the factor is set on a COMPUTER only, on BLACKPORT, BLACKMARKT and their body-level
   sheet, calendar and toast. A phone (body.mv), SUBMISSION's search box (it shares .pf-sform) and every other page keep 1. ===== */
body:not(.mv) :is(#view-port, #view-markt, #mk-sheet, #mk-toast, .pf-cal) { --pf-fs: 1.18; }
/* the dense spots keep their room in the SEMI-CONDENSED cut of the same face (Bahnschrift's width axis, Barlow Semi
   Condensed where Bahnschrift is missing): the field grid, the tiles' names and batch tags, TOP CARD BY TCG's lines —
   18 % taller, about 12 % narrower; and a tile's name may take two lines instead of '…' */
body:not(.mv) #view-port .pf-fg :is(.pf-l, .pf-fv, select, input, button, b),
body:not(.mv) #view-port .pf-cards.c4 .pf-c1 b,
body:not(.mv) #view-port .pf-artcol .pf-btag,
body:not(.mv) #view-port :is(.pf-gl, .pf-tgs, .pf-tgn) { font-family: var(--rep-font-sc); font-stretch: 87.5%; }
body:not(.mv) #view-port .pf-cards.c4 .pf-c1 b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  white-space: normal; overflow: hidden; overflow-wrap: break-word; line-height: 1.15; }
/* the 1-column row: BUY/DATE takes a little from BY, PAID/EA and CERT# so 04/Oct/2026 stays whole at 1366 and 1600 */
body:not(.mv) #view-port .pf-cards.c1.lined .pf-fg.line { grid-template-columns: minmax(0, .9fr) minmax(0, .85fr) minmax(0, 1.18fr) minmax(0, .95fr) minmax(0, .55fr) minmax(0, .45fr) minmax(0, 1.28fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .55fr); }
/* the EST / RAW / ≈ tag beside a value keeps its word */
body:not(.mv) #view-port .pf-pr .pf-si { flex: none; font-family: var(--rep-font-sc); font-stretch: 87.5%; }
/* the field labels (GRADED BY · PAID/EA · A) fit their cells at 1366 with tighter tracking */
body:not(.mv) #view-port .pf-cards.lined .pf-fg .pf-l { letter-spacing: .4px; padding-left: 4px; padding-right: 3px; }
/* six tiles a row: the grade pill keeps its earlier size — at +18 % it ran 5 px into the card's text beside a 48 px picture */
body:not(.mv) #view-port .pf-cards.c4.n6 .pf-artcol > .pf-gbadge { --pf-fs: 1; }
body:not(.mv) #view-port .pf-cards.c4.n6 .pf-card > .pf-cinfo { padding-left: 3px; }

/* BLACKPORT ROUND 38 (operator 2026-10-13: 'take out the notes and optimise the vertical space of each box' · 'take out all the
   grey notes from the Portfolio section' · 'show the Y-axis value clearer' · 'a pop-up indicator on the green or red line along the
   dates — Paid / Value — %' · 'PAID / COST = PAID' · 'BY FOLDER on a single row, the cards · copies right of the folder name,
   aligned in every row, left-aligned on the centre of the box') */
/* the tiles: no notes, no forced height */
.pf-stats2 .pf-stat { min-height: 0; padding: 8px 12px 9px; }
.pf-stats2 .pf-stat > b { margin-top: auto; margin-bottom: auto; padding-top: 3px; }
.pf-stats2 .pf-gainrow { margin-top: 3px; }
.pf-stats2 .pf-cmp { padding-top: 6px; gap: 3px; }
#pf-gainpct:empty, #pf-realpct:empty, .pf-when:empty, .pf-winchg:empty { display: none; }
/* the scale: its values in a gutter right of the plot, larger and lighter, centred on their rules */
.pf-chartbox .yl { font-size: calc(11px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: .2px; fill: #c9c9c9; stroke: none; font-variant-numeric: tabular-nums; }
/* the chart head: the window, then its change */
.pf-charthead > .pf-headr { display: flex; align-items: center; gap: 10px; overflow: visible; }
.pf-headr > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-winchg { flex: 0 0 auto; }
.pf-winchg b { display: inline-flex; align-items: center; gap: 5px; font-size: calc(13px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .3px; color: #bdbdbd; }
.pf-winchg b.up { color: var(--pf-pos); } .pf-winchg b.down { color: var(--pf-neg); }
.pf-winchg b em { font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.pf-winchg b.up em { background: rgba(126, 212, 166, .12); } .pf-winchg b.down em { background: rgba(235, 106, 102, .14); }
.pf-winchg .pf-tri { width: 9px; height: 9px; }
/* the reading's pop-up beside the point */
.pf-ctip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; min-width: 128px; padding: 7px 10px 8px; border-radius: 10px;
  background: rgba(12, 12, 12, .96); border: 1px solid #3c3c3c; box-shadow: 0 8px 20px rgba(0, 0, 0, .55); }
.pf-ctip[hidden] { display: none; }
.pf-ctd { margin-bottom: 4px; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 1.2px; color: #d9d9d9; white-space: nowrap; }
.pf-ctr { display: flex; align-items: center; justify-content: space-between; gap: 16px; white-space: nowrap; line-height: calc(19px * var(--pf-fs, 1)); }
.pf-ctr i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 1.4px; color: #bdbdbd; }
.pf-ctr.v i::before, .pf-ctr.p i::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.pf-ctr.v i::before { background: var(--pf-pos); } .pf-ctr.p i::before { background: var(--accent); }
.pf-ctr b { display: inline-flex; align-items: center; gap: 4px; font-size: calc(13px * var(--pf-fs, 1)); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.pf-ctr.v b { color: var(--pf-pos); }
.pf-ctr.g { margin-top: 3px; padding-top: 3px; border-top: 1px solid #2c2c2c; }
.pf-ctr.g.up b { color: var(--pf-pos); } .pf-ctr.g.down b { color: var(--pf-neg); } .pf-ctr.g.flat b { color: #bdbdbd; }
.pf-ctr b .pf-tri { width: 8px; height: 8px; }
/* BY FOLDER: one row — the name in the left half, its cards and copies from the box's centre, the value and its change at the
   right; the share of the value a hairline under the name */
#pf-byfolder > li { display: grid; grid-template-columns: 50% minmax(0, 1fr) auto; align-items: center; column-gap: 0; position: relative; }
#pf-byfolder > li > .pf-ln { padding-right: 12px; }
#pf-byfolder > li > .pf-fmeta { min-width: 0; padding-right: 10px; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(12.5px * var(--pf-fs, 1)); letter-spacing: .3px; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the value over its change, like TOP HOLDINGS / BEST / WORST — the right side stays narrow enough for cards · copies to start at the centre */
#pf-byfolder > li > .pf-lv { gap: 1px; }
#pf-byfolder > li { padding: 8px 0; }
#pf-byfolder > li > .pf-lv > b, #pf-byfolder > li > .pf-lv > .pf-chg { line-height: 1.15; }
/* the gain tile's two bars a little tighter */
.pf-stats2 .pf-cmp { padding-top: 5px; gap: 2px; }
.pf-stats2 .pf-cmprow i, .pf-stats2 .pf-cmprow em { line-height: 1.15; }
/* a phone: the meta under the name (half of a phone's width cannot hold it beside the value) */
.pf-app.ph #pf-byfolder > li { grid-template-columns: minmax(0, 1fr) auto; }
.pf-app.ph #pf-byfolder > li > .pf-ln { grid-column: 1; grid-row: 1; }
.pf-app.ph #pf-byfolder > li > .pf-fmeta { grid-column: 1; grid-row: 2; padding-bottom: 4px; }
.pf-app.ph #pf-byfolder > li > .pf-lv { grid-column: 2; grid-row: 1 / span 2; }
#pf-byfolder > li > .pf-bar { position: absolute; left: 0; bottom: 4px; width: min(120px, calc(50% - 12px)); height: 2px; border-radius: 2px; background: #2c2c2c; }
#pf-byfolder > li > .pf-bar i { height: 2px; }

/* BLACKPORT ROUND 39 (operator 2026-10-13: 'when SELECT is on, the selection button of each item at the bottom-left corner;
   the delete button pops up at the top-right corner when EDIT is on' · 'the pills exceed the box sizes, the VALUE text is too
   big (DETAILS and EDIT)') */
/* the card is the corners' frame (a sticky open entry keeps its sticky — :where() weighs nothing) */
:where(#view-port .pf-cards .pf-card) { position: relative; }
/* SELECT's tick (round 49, operator 2026-10-13: 'the selection circle overlaying the thumbnail, top-right corner'): inside
   the picture box, sized to it; under a LISTED / RESERVED ribbon it drops below the band; a GROUP / BATCH entry's ×N steps
   down under it meanwhile (the tick is ~30 % of the picture's width = ~21.5 % of its 5:7 height) */
#view-port .pf-cards .pf-cart > .pf-pick { left: auto; right: 4px; top: 4px; bottom: auto; z-index: 3; width: clamp(16px, 30%, 24px); height: auto; aspect-ratio: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .65); }
#view-port .pf-cards .pf-cart > .pf-pick svg { width: 62%; height: 62%; }
#view-port .pf-cards .pf-cart:has(> .pf-mkt.listed, > .pf-mkt.reserved) > .pf-pick { top: 20px; }
#view-port .pf-cards.selecting .pf-cart > .pf-gcount { top: calc(8px + clamp(16px, 21.5%, 24px)); }
#view-port .pf-cards.selecting .pf-cart:has(> .pf-mkt.listed, > .pf-mkt.reserved) > .pf-gcount { top: calc(24px + clamp(16px, 21.5%, 24px)); }
/* ✕ REMOVE: a badge on the card's top-right corner, half outside it */
#view-port .pf-cards .pf-card > .pf-xbtn { left: auto; right: -10px; top: -10px; z-index: 4; width: 20px; height: 20px; font-size: 11px; background: #1d1d1d; border-color: #7a2d2a; box-shadow: 0 2px 6px rgba(0, 0, 0, .65); }
#view-port .pf-cards .pf-card > .pf-xbtn:hover { background: #3a1715; border-color: var(--pf-neg); }
/* the tiles: the price block fits the tile — a long tag drops under its figure, EST. VALUE stacks its caption over a
   full-width box, the figures a size smaller */
.pf-cards.c4 .pf-cbot { min-width: 0; }
.pf-cards.c4 .pf-price { min-width: 0; max-width: 100%; }
.pf-cards.c4 .pf-pr { flex-wrap: wrap; row-gap: 2px; }
.pf-cards.c4 .pf-pr .pf-si { max-width: 100%; }
.pf-cards.c4 .pf-price .pf-estin { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; margin: 5px 0 0; }
.pf-cards.c4 .pf-price .pf-estin i { font-size: calc(8px * var(--pf-fs, 1)); }
.pf-cards.c4 .pf-price .pf-estin input { width: 100%; height: 22px; }
.pf-cards.c4 .pf-pr.v > b { font-size: calc(16px * var(--pf-fs, 1)); }
.pf-cards.c4 .pf-pr.p > b { font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-cards.c4.n6 .pf-pr.v > b { font-size: calc(13px * var(--pf-fs, 1)); }
.pf-cards.c4.n6 .pf-pr.p > b { font-size: calc(11px * var(--pf-fs, 1)); }
.pf-cards.c4.n6 .pf-pr > i { padding-right: 6px; }
/* the DETAILS rows: the figures a size smaller, and the price line never runs into the fields — in the one-column row
   EST. reads short and the line wraps when the window is narrow */
.pf-pr .pf-estin i em, .pf-price .pf-estin i em { font-style: normal; }
.pf-cards.c1.lined .pf-pr.v > b, .pf-cards.c2.lined .pf-pr.v > b { font-size: calc(clamp(16px, 2.4cqw, 18px) * var(--pf-fs, 1)); }
.pf-cards.c1.lined .pf-pr.p > b, .pf-cards.c2.lined .pf-pr.p > b { font-size: calc(clamp(12.5px, 1.8cqw, 13.5px) * var(--pf-fs, 1)); }
.pf-cards.c3 .pf-pr.v > b { font-size: calc(17px * var(--pf-fs, 1)); }
.pf-cards.c3 .pf-pr.p > b { font-size: calc(13px * var(--pf-fs, 1)); }
.pf-cards.c1.lined .pf-price { flex-wrap: wrap; row-gap: 3px; column-gap: 10px; min-width: 0; }
/* EST. in the DETAILS rows reads 'EST. · THB' and its box takes the room left, up to 96 px */
.pf-cards.lined .pf-price .pf-estin { width: auto; max-width: 100%; min-width: 0; }
.pf-cards.lined .pf-price .pf-estin i em { display: none; }
.pf-cards.lined .pf-price .pf-estin input { flex: 0 1 96px; width: 96px; min-width: 52px; }
.pf-cards.c1.lined .pf-price .pf-estin input { width: 76px; flex: 0 0 auto; }
.pf-cards.c1.lined .pf-price .pf-estin { gap: 5px; }
/* a figure never shrinks under its own text: when the column is narrow its row wraps instead (2 columns at 1366) */
.pf-cards.lined .pf-pr { flex-wrap: wrap; row-gap: 1px; }
.pf-cards.lined .pf-pr > b { flex: none; }

/* THE BLACKLENS WATERMARK on every searched card picture (operator 2026-10-13: 'the gold logo, bottom left, 50 % opacity,
   transparent, no outline around the image'): js/wm.js puts `bl-wm` on the box of a catalogue picture; the logo sits in its
   bottom-left corner, a third of the picture wide (12 – 110 px). :where() weighs nothing — a box positioned otherwise keeps it */
/* ROUND 314 (operator 2026-11-15: 'Don't forget the BL logo watermark (same as search module) and other full-card preview'): `bl-wmk` = the same
   mark, always — a full-card preview carries it whatever its picture is, our own scans and photos too (js/archive.js #ja-peek, js/cardpeek.js .peek-box) */
:where(.bl-wm, .bl-wmk) { position: relative; }
.bl-wm::after, .bl-wmk::after { content: ''; position: absolute; left: 5%; bottom: 4%; width: clamp(12px, 30%, 110px); aspect-ratio: 240 / 268; z-index: 1;
  background: url(../assets/wm-gold.webp) left bottom / contain no-repeat; opacity: .5; pointer-events: none; border: 0; box-shadow: none; }
/* BLACKPORT's cards: the grade pill laps the picture's foot — the mark sits just above it */
.pf-artcol > .pf-cart.bl-wm::after { bottom: calc(4% + 12px); }
/* the placeholder of a search row without a picture keeps its own mark */
.slabq-art.noimg.bl-wm::after { background: none; }

/* BLACKPORT ROUND 41 (operator 2026-10-13: 'OVERVIEW and PERFORMANCE as wide as CARDS' · 'VALUE stacked on PAID, the pair the
   height of the UNREALIZED / REALIZED GAIN boxes; three equal columns — VALUE / PAID · UNREALIZED GAIN · REALIZED GAIN — the
   row's height kept' · 'the right column's lists in smaller type with narrower lines, to save vertical space') */
/* the tiles: VALUE over PAID in the first column; three equal columns with REALIZED GAIN, two without it */
.pf-vpstack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-vpstack > .pf-stat { flex: 1 1 0; min-height: 0; justify-content: center; padding: 5px 12px 6px; }
.pf-stats2 .pf-vpstack > .pf-stat > b { margin: 2px 0 0; padding: 0; font-size: calc(clamp(21px, 2.1vw, 28px) * var(--pf-fs, 1)); line-height: 1; }
@media (min-width: 761px) {
  /* the row keeps the height the four tiles had (133 px): each of VALUE / PAID is half of it */
  .pf-app:not(.ph) .pf-stats2 { grid-auto-rows: minmax(133px, auto); }
  .pf-stats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats2.s4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* a phone keeps VALUE | PAID side by side over the gain tiles */
.pf-app.ph .pf-vpstack { display: contents; }
.pf-app.ph .pf-vpstack > .pf-stat { justify-content: flex-start; padding: 8px 12px 9px; }
.pf-app.ph .pf-stats2 .pf-vpstack > .pf-stat > b { font-size: calc(22px * var(--pf-fs, 1)); margin-top: auto; margin-bottom: auto; padding-top: 3px; }
/* the right column (TOP HOLDINGS · MOVERS · TOP SALES · BY FOLDER · BEST · WORST · BEST SALES) on a computer: smaller type,
   tighter rows */
@media (min-width: 961px) {
  #view-port .pf-app:not(.ph) .pf-col2 .pf-list { padding: 9px 14px 3px; margin-bottom: 10px; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-lh { min-height: 20px; margin-bottom: 0; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-lh b { font-size: calc(9.5px * var(--pf-fs, 1)); }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-list li { padding: 5px 0; gap: 10px; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-ln { gap: 0; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-ln b { font-size: calc(13px * var(--pf-fs, 1)); line-height: 1.2; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-ln > span { font-size: calc(10.5px * var(--pf-fs, 1)); line-height: 1.25; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-lv { gap: 1px; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-lv b { font-size: calc(13.5px * var(--pf-fs, 1)); line-height: 1.2; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-lv > span:not(.pf-chg) { font-size: calc(10.5px * var(--pf-fs, 1)); line-height: 1.2; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-chg { font-size: calc(11px * var(--pf-fs, 1)); line-height: 1.2; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-art { width: 28px; height: 39px; border-radius: 4px; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-rk { width: 14px; font-size: calc(9.5px * var(--pf-fs, 1)); }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-empty { padding: 6px 2px; font-size: calc(11px * var(--pf-fs, 1)); line-height: 1.4; }
  /* BY FOLDER: the same row, tighter */
  #view-port .pf-app:not(.ph) .pf-col2 #pf-byfolder > li { padding: 5px 0 6px; }
  #view-port .pf-app:not(.ph) .pf-col2 .pf-fmeta { font-size: calc(11px * var(--pf-fs, 1)); }
  #view-port .pf-app:not(.ph) .pf-col2 #pf-byfolder > li > .pf-bar { bottom: 2px; }
  /* TOP SALES' switch a touch smaller to match */
  #view-port .pf-app:not(.ph) .pf-col2 .pf-tsw button { height: 22px; font-size: calc(8.5px * var(--pf-fs, 1)); }
}

/* BLACKPORT ROUND 42 (operator 2026-10-13: 'a value under the paid amount in red' · 'the graph line white where the value is
   under what was paid, green where over — with the legends' · 'BEST / WORST: by the timeframe, WAS and NOW, aligned with the
   cards · copies column, 2 pt larger' · 'compact the folder pop-up' · 'anything BATCH gold like the left menu's BLACKBOARD /
   BLACKVAULT / BLACKPORT tiles, anything SINGLE red' · 'no batch name pill under the thumbnail where the batch is already
   named' · 'FOLDER as a dropdown, SHOW right under TCG; OVERVIEW's TCG pills the CARDS size' · 'a language pill on the cards') */
/* PERFORMANCE: VALUE red under the price paid */
#pf-value.down, #pf-cmpvt.down { color: var(--pf-neg); }
/* the value line: green over the PAID line, white under it — the NOW dot and the reading follow */
.pf-chartbox .line.lo { stroke: #fff; }
.pf-chartbox .dot.lo, .pf-chartbox .rv.lo { fill: #fff; }
.pf-legend { flex-wrap: wrap; row-gap: 4px; }
.pf-legend em.w::before { border-top-color: #fff; }
.pf-ctr.v.dn b { color: var(--pf-neg); }
.pf-ctr.v.dn i::before { background: #fff; }
/* BEST / WORST: WAS over NOW, starting at the row's centre like BY FOLDER's cards · copies */
.pf-wn { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pf-wn > span { display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; }
.pf-wn i { flex: 0 0 auto; width: 30px; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 1.4px; color: var(--pf-ink3); }
.pf-wn b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(11px * var(--pf-fs, 1) + 2pt); font-weight: 600; line-height: 1.15; color: #e6e6e6; font-variant-numeric: tabular-nums; }
.pf-wn b.up { color: var(--pf-pos); } .pf-wn b.down { color: var(--pf-neg); }
#view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li:not(.pf-empty) { display: grid; grid-template-columns: 28px calc(50% - 48px) minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
#view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li > .pf-art { grid-column: 1; }
#view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li > .pf-ln { grid-column: 2; }
#view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li > .pf-wn { grid-column: 3; }
#view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li > .pf-lv { grid-column: 4; }
/* BY FOLDER's cards · copies the same size as WAS / NOW (+2 pt) */
@media (min-width: 961px) {
  #view-port .pf-app:not(.ph) .pf-col2 .pf-fmeta { font-size: calc(11px * var(--pf-fs, 1) + 2pt); }
}
/* a phone: WAS · NOW on a line of their own under the card's name */
.pf-app.ph .pf-wnlist > li { flex-wrap: wrap; }
.pf-app.ph .pf-wn { order: 5; flex: 1 1 100%; flex-direction: row; gap: 16px; padding-left: 50px; }
/* the folder sheet: one compact line a folder — name and count, its value, rename / delete */
#pf-fsheet .pf-sheetwin { width: min(100%, 520px); padding: 12px 14px 14px; }
#pf-fsheet .pf-sheethead { margin-bottom: 4px; }
#pf-flist { list-style: none; margin: 0; padding: 0 2px 0 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#pf-flist > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 8px; border-top: 1px solid #242424; border-radius: 8px; }
#pf-flist > li:first-child { border-top: 0; }
#pf-flist > li:hover { background: #1f1f1f; }
#pf-flist > li.on { background: #2a1715; box-shadow: inset 3px 0 0 var(--accent); }
#pf-flist .pf-ln { display: flex; flex-direction: row; align-items: baseline; gap: 10px; min-width: 0; }
#pf-flist .pf-ln b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 600; color: #fff; }
#pf-flist .pf-ln > span { flex: 0 0 auto; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); }
#pf-flist .pf-lv { display: flex; flex-direction: row; align-items: center; gap: 10px; }
#pf-flist .pf-lv > b { font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; }
#pf-flist .pf-fedit button { width: 26px; height: 26px; border-radius: 7px; font-size: calc(11px * var(--pf-fs, 1)); }
#pf-fsheet .pf-sheetfoot { margin-top: 8px; }
#pf-fsheet .pf-sheetfoot .pf-qbtn { height: 38px; }
body.mv #pf-flist > li { min-height: 44px; }
/* BATCH = gold (the left menu's BLACKBOARD · BLACKVAULT · BLACKPORT tiles); a SINGLE card = red */
#view-port .pf-qbtn.batch { background: #0e0e0e; border-color: #5c5340; color: #d8c89a; box-shadow: inset 0 0 0 1px rgba(171, 155, 111, .12); }
#view-port .pf-qbtn.batch:hover { background: #1a1710; border-color: #ab9b6f; color: #f1e6c8; }
#view-port .pf-app:not(.ph) #pf-batchv.on { background: #2b2515; border-color: #ab9b6f; color: #f1e6c8; }
#view-port #pf-batchv.on .pf-sw { background: #ab9b6f; }
#view-port .pf-app.ph #pf-batchv.on { background: #ab9b6f; border-color: #d8c89a; color: #141414; }
#view-port .pf-chip.batch:not(.on) { border-color: #5c5340; color: #d8c89a; }
#view-port .pf-chip.batch.on { background: #ab9b6f; border-color: #d8c89a; color: #141414; }
#view-port .pf-chip.batch.on i { color: #141414; }
#view-port .pf-chip.single:not(.on) { border-color: #5a2a29; color: #f3d6d4; }
/* a batch's box, its entry, its open copies, its PAID strip and its tags */
#view-port .pf-bgroup { background: #15130d; border-color: #5c5340; }
#view-port .pf-bgroup.alt { background: #1a1710; }
#view-port .pf-bgcap b { color: #f1e6c8; }
#view-port .pf-bgcap i, #view-port .pf-bval i { color: #d8c89a; }
#view-port .pf-bgcap .pf-bval b.p { color: #e7d9a8; }
#view-port .pf-grpcopies[data-of^="b:"] { background: #15130d; border-left-color: #ab9b6f; }
#view-port .pf-cards .pf-card.pf-bgrp { background: #1b1810; border-color: #5c5340; border-left: 3px solid #ab9b6f; }
#view-port .pf-cards .pf-card.pf-bgrp.alt { background: #211d13; }
#view-port .pf-cards .pf-bgrp .pf-l { background: #2b2618; color: #e7d9a8; }
#view-port .pf-cards .pf-bgrp .pf-fg .pf-fv { background: #211d14; border-color: #4d4535; }
#view-port .pf-cards .pf-bgrp .pf-btag:not(.pf-ktag), #view-port .pf-cards .pf-card.inb .pf-btag { border-color: #8a7b55; color: #e7d9a8; }
#view-port .pf-batchrow { background: #2b2515; border-color: #ab9b6f; }
#view-port .pf-batchrow .pf-bl i { color: #d8c89a; }
#view-port .pf-cards.ph .pf-card.pm .pm-chip.b { background: #2b2515; border-color: #ab9b6f; color: #f1e6c8; }
/* a card in a batch: the neutral panel with a gold edge (the box around it is the batch) */
#view-port .pf-cards .pf-card.inb { border-left: 3px solid #8a7b55; }
#view-port .pf-bgroup > .pf-card.inb { border-left-color: #6b5f43; }
#view-port .pf-cards .pf-card.inb .pf-fv, #view-port .pf-cards .pf-card.inb .pf-fg .pf-fv { background: var(--pf-ro); border-color: var(--pf-ro-line); }
#view-port .pf-cards .pf-card.inb .pf-fg select, #view-port .pf-cards .pf-card.inb .pf-fg input, #view-port .pf-cards .pf-card.inb .pf-date { background: var(--pf-box); border-color: var(--pf-box-line); }
#view-port .pf-cards .pf-card.inb .pf-fg .pf-fv.alloc { background: #181818; border-style: dashed; }
/* a single card: red */
#view-port .pf-cards .pf-card:not(.inb):not(.pf-grp) { background: #1d1211; border-color: #3f211f; border-left: 3px solid var(--accent); }
#view-port .pf-cards .pf-card.alt:not(.inb):not(.pf-grp) { background: #241514; }
#view-port .pf-cards .pf-card:not(.inb):not(.pf-grp) .pf-l { background: #331a19; color: #f3d6d4; }
#view-port .pf-cards .pf-card:not(.inb):not(.pf-grp) .pf-fg .pf-fv { background: #2a1514; border-color: #5e2c2a; }
#view-port .pf-cards .pf-card:not(.inb):not(.pf-grp) :is(.pf-fg select, .pf-fg input, .pf-date) { background: #170b0a; border-color: #4a2524; }
#view-port .pf-cards .pf-card:not(.inb):not(.pf-grp) :is(.pf-fg select, .pf-fg input):focus { border-color: var(--accent); }
/* the language pill at the head of a card's line */
.pf-lang { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; border: 1px solid #5c5c5c; background: #262626; color: #f2f2f2; font-style: normal; font-weight: 700;
  font-size: calc(9px * var(--pf-fs, 1)); line-height: calc(14px * var(--pf-fs, 1)); letter-spacing: .8px; vertical-align: 1px; }
.pf-cards.ph .pm .pf-lang { font-size: calc(10px * var(--pf-fs, 1)); line-height: calc(16px * var(--pf-fs, 1)); }
/* CARDS' filters on a computer: FOLDER (a dropdown) over the switches, TCG beside it and SHOW right under TCG */
.pf-fsel2 { flex: 0 1 auto; height: 40px; }
.pf-fsel2 b { flex: 0 1 auto; }
.pf-fsel2 em { flex: 1 1 auto; min-width: 0; font-style: normal; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-app:not(.ph) :is(#pf-games, #pf-show) { flex: 0 1 auto; max-width: none; flex-wrap: wrap; row-gap: 6px; overflow: visible; padding-left: 0; border-left: 0; }
#view-port .pf-app:not(.ph) :is(#pf-games, #pf-show) > .pf-glbl { width: 40px; padding: 0; }
@media (min-width: 1280px) {
  #view-port .pf-app:not(.ph) .pf-cardsbar { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > :is(.pf-filt, .pf-tools) { display: contents; }
  #view-port .pf-app:not(.ph) #pf-fsel2 { grid-row: 1; grid-column: 1 / 4; }
  #view-port .pf-app:not(.ph) #pf-games { grid-row: 1; grid-column: 4 / 7; margin-left: 8px; }
  #view-port .pf-app:not(.ph) .pf-tools > .pf-modes { grid-row: 2; grid-column: 1; }
  #view-port .pf-app:not(.ph) #pf-openall { grid-row: 2; grid-column: 2; }
  #view-port .pf-app:not(.ph) #pf-colsw { grid-row: 2; grid-column: 3; }
  #view-port .pf-app:not(.ph) #pf-show { grid-row: 2; grid-column: 4; margin-left: 8px; }
  #view-port .pf-app:not(.ph) #pf-addbatch2 { grid-row: 2; grid-column: 5; margin: 0; }
  #view-port .pf-app:not(.ph) #pf-addbtn2 { grid-row: 2; grid-column: 6; margin: 0; }
}
@media (min-width: 961px) and (max-width: 1279px) {
  #view-port .pf-app:not(.ph) .pf-cardsbar { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-filt { display: contents; }
  #view-port .pf-app:not(.ph) #pf-fsel2 { grid-row: 1; grid-column: 1; }
  #view-port .pf-app:not(.ph) #pf-games { grid-row: 1; grid-column: 2; }
  #view-port .pf-app:not(.ph) #pf-show { grid-row: 2; grid-column: 2; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-tools { grid-row: 3; grid-column: 1 / -1; }
}
/* BY FOLDER's meta starts exactly at the row's centre (round 41's 10 px gap had pushed it right) — WAS / NOW start there too */
@media (min-width: 961px) { #view-port .pf-app:not(.ph) .pf-col2 #pf-byfolder > li { column-gap: 0; } }
/* a phone: the name keeps its line beside the picture, WAS · NOW under them */
.pf-app.ph .pf-wnlist > li > .pf-ln { flex: 1 1 0; min-width: 0; }

/* BLACKPORT ROUND 43 (operator 2026-10-13: 'tidy up the font sizes for mobile' · 'clicking EDIT on mobile, the card stays on
   the screen' · 'a pop-up closes on its button, never on a tap outside' · 'the batch name pill solved on mobile too') */
/* the calendar: a backdrop that keeps it open (a tap there nudges it), its title with ✕, CLOSE beside TODAY / CLEAR */
.pf-calbg { position: fixed; inset: 0; z-index: 119; background: rgba(0, 0, 0, .35); }
.pf-calt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pf-calt b { font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 1.8px; color: #d9d9d9; }
.pf-calx { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #444; background: #262626; color: #fff; font-size: calc(18px * var(--pf-fs, 1)); line-height: 1; cursor: pointer; }
.pf-calbtn.close { background: #2a2a2a; border-color: #555; color: #fff; }
.pf-cal.nudge { animation: pf-calnudge .35s ease; }
@keyframes pf-calnudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
body.mv .pf-calx { width: 40px; height: 40px; }
/* a phone's GROUP view: the batch name under the picture (the one place a card sits outside its batch's box) */
#view-port .pf-cards.ph.vgroup .pf-card.pm:not(.pf-grp) .pf-artcol .pf-btag { display: block; }
/* ---- the phone's type: a floor and a short scale (captions 10 · headings 11.5 · buttons and chips 12) ---- */
/* captions (capitals, tracked) */
#view-port .pf-app.ph :is(.pm-sel > i, .pf-stat > i, .pf-kindhead span, .pf-wn i, .pf-stog > i, .pf-sform label > i, .pf-ssort i, .mk-kpi > i, .st-state, .st-figs i, .st-real i, #pf-salesbar > i) { font-size: calc(10px * var(--pf-fs, 1)) !important; }
#view-port .pf-app.ph :is(.pf-cmprow i, .pf-realsold i) { font-size: calc(9.5px * var(--pf-fs, 1)) !important; }
#view-port .pf-app.ph .pf-legend em { font-size: calc(10.5px * var(--pf-fs, 1)) !important; }
#view-port .pf-app.ph .stm-bar em { font-size: calc(10px * var(--pf-fs, 1)) !important; }
/* section heads and the chart's head */
#view-port .pf-app.ph :is(.pf-lh > b, #pf-charttitle, #pf-read, #pf-read2, .pf-sparkhead > b) { font-size: calc(11.5px * var(--pf-fs, 1)) !important; }
/* buttons */
#view-port .pf-app.ph :is(.pf-quick .pf-qbtn, .mk-sacts .pf-qbtn) { font-size: calc(12px * var(--pf-fs, 1)) !important; }
#view-port .pf-app.ph :is(.pf-viewall, #pf-openall, .mk-stabs button, .pf-ssort button, .pf-salesgo) { font-size: calc(11.5px * var(--pf-fs, 1)) !important; }
/* changes, chips and secondary figures */
#view-port .pf-app.ph :is(.pf-pl b > em, .pf-winchg b em, .pf-kinds .k i, .pf-kinds .g em, .st-day b, .st-figs em .pf-chg, .pf-cmprow em) { font-size: calc(12px * var(--pf-fs, 1)) !important; }
#view-port .pf-app.ph .pf-rk { font-size: calc(11px * var(--pf-fs, 1)) !important; }
#view-port .pf-app.ph .pf-tg .pf-gl { font-size: calc(10.5px * var(--pf-fs, 1)) !important; }
#view-port .pf-app.ph .pf-bval i { font-size: calc(10.5px * var(--pf-fs, 1)) !important; }
/* the cards: VALUE / PAID captions, the tiles' detail captions, the batch tags under a picture */
#view-port .pf-cards.ph .pf-pr > i { font-size: calc(11px * var(--pf-fs, 1)) !important; }
#view-port .pf-cards.ph.tiles .pf-pr > i { font-size: calc(10px * var(--pf-fs, 1)) !important; }
#view-port .pf-cards.ph.tiles.n3 .pf-pr > i { font-size: calc(9.5px * var(--pf-fs, 1)) !important; letter-spacing: .6px; }
#view-port .pf-cards.ph.tiles .pm-td i { font-size: calc(10px * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph.tiles.n3 .pm-td i { font-size: calc(9px * var(--pf-fs, 1)); line-height: calc(11px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-c2 { font-size: calc(11px * var(--pf-fs, 1)) !important; }
#view-port .pf-cards.ph .pf-artcol > .pf-btag:is(.pf-gtag, .pf-ktag) { font-size: calc(10px * var(--pf-fs, 1)) !important; line-height: calc(17px * var(--pf-fs, 1)) !important; }
/* the statement's tiny thumbnails: no grade pill (the row says the grade) */
#view-port .pf-app.ph .st-list .pf-gbadge { display: none; }
/* the BACK TO TOP label */
body.mv #to-top span { font-size: 9.5px; }
/* a phone's GROUP view: a long batch name wraps under the picture instead of being cut */
#view-port .pf-cards.ph.vgroup .pf-card.pm:not(.pf-grp) .pf-artcol .pf-btag { white-space: normal; overflow-wrap: anywhere; font-size: calc(10px * var(--pf-fs, 1)); line-height: 1.2; padding: 2px 4px; }

/* BLACKPORT ROUND 44 (operator 2026-10-13: 'a Filter by Language dropdown — like the folder, selection only — on the folder's
   row, the width split in two (OVERVIEW · PERFORMANCE · CARDS)' · 'PERFORMANCE: the folder dropdown under the TCG, like
   OVERVIEW' · 'a BY FOLDER row opens that folder on CARDS' · 'no card-count pill under a batch entry's picture') */
/* the LANGUAGE dropdown: the folder's look, a native list over it */
.pf-lsel { position: relative; }
.pf-lsel > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.pf-lsel > b { flex: 0 1 auto; }
.pf-lsel > em { flex: 1 1 auto; min-width: 0; font-style: normal; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-lsel.on { border-color: var(--accent); background: #2a1715; }
.pf-lsel:has(select:focus-visible) { outline: 2px solid #fff; outline-offset: 1px; }
/* OVERVIEW / PERFORMANCE: FOLDER and LANGUAGE share the row equally, the eye after them */
.pf-herorow > .pf-fsel { flex: 1 1 0; min-width: 0; }
.pf-herorow2 { margin-bottom: 10px; }
/* CARDS: the pair takes the FOLDER's place in the filter bar */
.pf-fpair { display: flex; gap: 8px; min-width: 0; }
.pf-fpair > .pf-fsel { flex: 1 1 0; min-width: 0; height: 40px; }
@media (min-width: 1280px) {
  #view-port .pf-app:not(.ph) .pf-fpair { grid-row: 1; grid-column: 1 / 4; }
}
@media (min-width: 961px) and (max-width: 1279px) {
  #view-port .pf-app:not(.ph) .pf-cardsbar { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); }
  #view-port .pf-app:not(.ph) .pf-fpair { grid-row: 1; grid-column: 1; }
}
/* a phone: FOLDER and LANGUAGE side by side, TCG (and SHOW) under them */
#view-port .pf-app.ph #pm-fov { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px; }
#view-port .pf-app.ph #pm-fov > .pm-sel:last-child { grid-column: 1 / -1; }
#view-port .pf-app.ph #pm-fperf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#view-port .pf-app.ph #pm-fperf > .pm-sel:last-child { grid-column: 1 / -1; }
#view-port .pf-app.ph #pm-fcards.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* BLACKPORT ROUND 45 (operator 2026-10-13: 'the FOLDER and LANGUAGE dropdowns red — they stand out as something to operate' ·
   'SHOW: ALL · SINGLES · BATCHES · GRADED · PRE-GRADED') */
/* FOLDER and LANGUAGE: the brand red, white ink (a computer's three tabs and the phone's bars) */
#view-port :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel), #view-port .pm-sel:is(.k-folder, .k-lang) { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(220, 79, 76, .22); }
#view-port :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel):hover { background: #e4605d; border-color: #e4605d; }
#view-port :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > i, #view-port .pm-sel:is(.k-folder, .k-lang) > i { color: rgba(255, 255, 255, .78); }
#view-port :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > b, #view-port .pm-sel:is(.k-folder, .k-lang) > b { color: #fff; }
#view-port :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > em { color: rgba(255, 255, 255, .82); }
#view-port :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) .pf-chev, #view-port .pm-sel:is(.k-folder, .k-lang) > .pf-chev { stroke: #fff; }
/* a folder or a language picked (not ALL): a white ring on the red */
#view-port :is(#pf-lsel, #pf-lsel2, #pf-lsel3).on, #view-port .pm-sel:is(.k-folder, .k-lang).on { background: var(--accent); border-color: #fff; box-shadow: inset 0 0 0 1px #fff, 0 4px 12px rgba(220, 79, 76, .22); }
/* SHOW: a kind the folder does not hold reads 0 and does not press */
#view-port .pf-chip:disabled { opacity: .38; cursor: default; }

/* BLACKPORT ROUND 46 (operator 2026-10-13: 'the dropdowns the same pill height as the TCG pills'): on a computer FOLDER and
   LANGUAGE (and the eye beside them) are 30 px pills like the TCG chips, on OVERVIEW, PERFORMANCE and CARDS */
@media (min-width: 761px) {
  #view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) { height: 30px; padding: 0 10px; gap: 8px; border-radius: 9px; }
  #view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > i { font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: 1.4px; }
  #view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > b { font-size: calc(12px * var(--pf-fs, 1)); line-height: 1; }
  #view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > em { font-size: calc(10px * var(--pf-fs, 1)); }
  #view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) .pf-chev { width: 12px; height: 12px; }
  #view-port .pf-app:not(.ph) .pf-herorow > .pf-eye { width: 30px; height: 30px; border-radius: 9px; }
  #view-port .pf-app:not(.ph) .pf-herorow > .pf-eye svg { width: 15px; height: 15px; }
}

/* ROUND 48 — a RAW card pre-graded by BLACKLENS wears BL + its grade on the picture (operator 2026-10-13) */
.pf-gbadge.bl b { background: #DC4F4C; color: #fff; }
.pf-gbadge.bl i { background: #f2f2f2; color: #111; }

/* ROUND 50 — the card's colour follows its SHOW kind (operator 2026-10-13: 'all GRADED cards blue background and button,
   all PRE-GRADED cards dark blue'): a raw single stays red, a batch gold; port.js kindCls() puts k-graded / k-pregraded on
   the card (computer and phone), the SHOW chips (and the phone's SHOW dropdown) wear the same colours */
#view-port .pf-cards .pf-card.k-graded:not(.inb):not(.pf-grp) { background: #0f1a2c; border-color: #1f3554; border-left: 3px solid #3d8bef; }
#view-port .pf-cards .pf-card.alt.k-graded:not(.inb):not(.pf-grp) { background: #122039; }
#view-port .pf-cards .pf-card.k-graded:not(.inb):not(.pf-grp) .pf-l { background: #172a47; color: #d3e4ff; }
#view-port .pf-cards .pf-card.k-graded:not(.inb):not(.pf-grp) .pf-fg .pf-fv { background: #12223d; border-color: #2b4c7c; }
#view-port .pf-cards .pf-card.k-graded:not(.inb):not(.pf-grp) :is(.pf-fg select, .pf-fg input, .pf-date) { background: #08111f; border-color: #26436f; }
#view-port .pf-cards .pf-card.k-graded:not(.inb):not(.pf-grp) :is(.pf-fg select, .pf-fg input):focus { border-color: #3d8bef; }
#view-port .pf-cards .pf-card.k-pregraded:not(.inb):not(.pf-grp) { background: #0b0f1f; border-color: #1a2245; border-left: 3px solid #2a4ea8; }
#view-port .pf-cards .pf-card.alt.k-pregraded:not(.inb):not(.pf-grp) { background: #0e1328; }
#view-port .pf-cards .pf-card.k-pregraded:not(.inb):not(.pf-grp) .pf-l { background: #141b38; color: #c8d1ef; }
#view-port .pf-cards .pf-card.k-pregraded:not(.inb):not(.pf-grp) .pf-fg .pf-fv { background: #10162f; border-color: #27346c; }
#view-port .pf-cards .pf-card.k-pregraded:not(.inb):not(.pf-grp) :is(.pf-fg select, .pf-fg input, .pf-date) { background: #070a17; border-color: #212d5c; }
#view-port .pf-cards .pf-card.k-pregraded:not(.inb):not(.pf-grp) :is(.pf-fg select, .pf-fg input):focus { border-color: #4b6cc4; }
/* the SHOW chips: GRADED blue, PRE-GRADED dark blue */
#view-port .pf-chip.graded:not(.on) { background: #12213a; border-color: #2f5d99; color: #d3e4ff; }
#view-port .pf-chip.graded.on { background: #3d8bef; border-color: #8cbcff; color: #fff; }
#view-port .pf-chip.graded.on i { color: #fff; }
#view-port .pf-chip.pregraded:not(.on) { background: #0f1430; border-color: #2a3a7a; color: #c8d1ef; }
#view-port .pf-chip.pregraded.on { background: #22408f; border-color: #4b6cc4; color: #fff; }
#view-port .pf-chip.pregraded.on i { color: #fff; }
.pm-sel.k-show.v-graded { border-color: #3d8bef; background: #12223d; }
.pm-sel.k-show.v-pregraded { border-color: #4b6cc4; background: #10162f; }

/* ROUND 53 (operator 2026-10-13) — + BATCH and + CARD left of the currency in the header (a computer, the CARDS tab; a phone
   keeps them in its toolbar: the pair is display: contents there); the curve's window name at the right, before its change */
.pf-addpair { display: flex; align-items: center; gap: 8px; }
.pf-app.ph .pf-addpair { display: contents; }
#view-port .pf-app:not(.ph) .pf-head { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "tabs add cur"; }
@media (min-width: 961px) {
  #view-port .pf-app:not(.ph) .pf-head { grid-template-columns: minmax(0, 520px) minmax(0, 1fr) auto auto; grid-template-areas: "tabs . add cur"; }
}
#view-port .pf-app:not(.ph) .pf-head > .pf-addpair { grid-area: add; }
#view-port .pf-app:not(.ph):not(.oncards) .pf-head > .pf-addpair { display: none; }
#view-port .pf-app:not(.ph) .pf-head > .pf-addpair .pf-qbtn { height: 40px; margin: 0; padding: 0 16px; border-radius: 12px; }
.pf-sparkhead b { margin-left: auto; }
.pf-sparkhead .pf-chg { margin-left: 0; }
.pf-si.mkt { color: #f2f2f2; border: 1px solid #6a6a6a; border-radius: 3px; padding: 0 4px; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1px; font-weight: 700; }
.pf-spark:is(.w-d, .w-w) .pf-sparkm { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pf-spark:is(.w-d, .w-w) .pf-sparkm i { white-space: nowrap; overflow: visible; }

/* ROUND 58 (operator 2026-10-13) — EDIT off: one card opened for editing by a click — a red outline, its ✕, a DONE tab on its
   top edge; in the compact views (tiles, the 6-month curve) an editor strip under it across the row */
#view-port .pf-cards .pf-card.one { box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(0, 0, 0, .45); z-index: 2; }
#view-port .pf-cards:not(.ph) .pf-card.one > .pf-xbtn { display: flex; }
#view-port .pf-cards .pf-card:not(.one):not(.pf-grp) { cursor: pointer; }
.pf-cards.editing .pf-card:not(.pf-grp), .pf-cards.selecting .pf-card { cursor: auto; }
.pf-onedone { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 5; height: 22px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 800; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: 1.4px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.pf-onedone:hover { background: #e8615e; }
#view-port .pf-cards .pf-oneed { grid-column: 1 / -1; position: relative; background: #1b1b1b; border: 1px solid var(--accent); border-radius: 12px; padding: 10px 12px 12px; }
.pf-oneed .pf-onehead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-oneed .pf-onehead b { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: 1.6px; color: var(--accent); }
.pf-oneed .pf-onehead span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 700; color: #f2f2f2; }
.pf-oneed .pf-onehead .pf-qbtn { height: 30px; flex: none; }
.pf-oneed .pf-fg.line { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 6px; row-gap: 2px;
  grid-template-areas: "lg lg lgr lgr lf lf lf lp lp lc lc lq" "gco gco gr gr fol fol fol paid paid cur cur qty" "ld ld ld lb lb lcert lcert lpre lpre lpre lbl lbl" "date date date bat bat cert cert pre pre pre bl bl"; }
.pf-oneed .pf-fg.line .a-lc { visibility: visible; }
.pf-oneed .pf-fg.line { justify-self: stretch; width: auto; max-width: none; margin: 0; }
.pf-oneed .pf-onehead .pf-estin { display: flex; align-items: center; gap: 6px; flex: none; }
.pf-oneed .pf-onehead .pf-estin i { font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 1px; color: #bdbdbd; white-space: nowrap; }
.pf-oneed .pf-onehead .pf-estin input { width: 110px; height: 30px; }

/* ROUND 59 (operator 2026-10-13) — the editing strip BESIDE its card on the list's own columns; its fields in two rows:
   GRADED BY · PAID/EA · CURRENCY · FOLDER · PRE-CERT# · BL / GRADE · BUY/DATE · QTY · BATCH · CERT#; DONE on its top edge;
   the card's EST. entry above VALUE / PAID */
#view-port .pf-cards .pf-onerow { grid-column: 1 / -1; display: grid; align-items: stretch; row-gap: 0; }
#view-port .pf-cards .pf-onerow > .pf-oneed { display: flex; flex-direction: column; justify-content: center; padding: 14px 12px 10px; min-width: 0; }
#view-port .pf-cards .pf-oneed > .pf-onedone { top: -11px; left: auto; right: 16px; transform: none; }
#view-port .pf-cards .pf-oneed .pf-fg.line { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.5fr) minmax(0, .7fr);
  grid-template-areas: "lg lp lc lf lpre lbl" "gco paid cur fol pre bl" "lgr ld lq lb lcert lcert" "gr date qty bat cert cert"; column-gap: 8px; row-gap: 2px; }
#view-port .pf-cards .pf-oneed .pf-fg.line .a-lcert, #view-port .pf-cards .pf-oneed .pf-fg.line .a-lgr, #view-port .pf-cards .pf-oneed .pf-fg.line .a-ld,
#view-port .pf-cards .pf-oneed .pf-fg.line .a-lq, #view-port .pf-cards .pf-oneed .pf-fg.line .a-lb { margin-top: 4px; }
/* the card's EST. line on top of its price block */
.pf-pr.e { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 2px; }
.pf-pr.e > i { margin-right: auto; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; color: #d8c89a; }
.pf-pr.e > input { width: 104px; height: 24px; padding: 0 7px; border-radius: 6px; border: 1px dashed #8a7b55; background: var(--pf-box, #1f1f1f); color: #f2f2f2; font: inherit; font-size: calc(12.5px * var(--pf-fs, 1)); text-align: right; }
.pf-pr.e > input:focus { outline: none; border-style: solid; border-color: var(--accent); }

/* ROUND 60 (operator 2026-10-13: 'a slider animation and an indication between the expanded part and the item it expanded
   from') — the strip slides out of its card's side (a clip reveal from that edge), a pointer on its edge aims at the card,
   the card pulses once; DONE / Esc slide it back in; reduced motion = no movement */
#view-port .pf-cards .pf-onerow > .pf-oneed { overflow: visible; }
#view-port .pf-cards .pf-onerow > .pf-oneed::before { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; background: inherit;
  border: 1px solid var(--accent); transform: translateY(-50%) rotate(45deg); z-index: 1; pointer-events: none; }
#view-port .pf-cards .pf-onerow.right > .pf-oneed::before { left: -8px; border-top-color: transparent; border-right-color: transparent; }
#view-port .pf-cards .pf-onerow.left > .pf-oneed::before { right: -8px; border-bottom-color: transparent; border-left-color: transparent; }
@keyframes pfOneR { from { clip-path: inset(0 100% 0 0 round 12px); transform: translateX(-18px); opacity: .5; } to { clip-path: inset(0 0 0 0 round 12px); transform: none; opacity: 1; } }
@keyframes pfOneL { from { clip-path: inset(0 0 0 100% round 12px); transform: translateX(18px); opacity: .5; } to { clip-path: inset(0 0 0 0 round 12px); transform: none; opacity: 1; } }
@keyframes pfOneD { from { clip-path: inset(0 0 100% 0 round 12px); transform: translateY(-10px); opacity: .5; } to { clip-path: inset(0 0 0 0 round 12px); transform: none; opacity: 1; } }
@keyframes pfOnePtr { 0%, 65% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pfOneCard { 0% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 0 rgba(220, 79, 76, .45); } 60% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px rgba(220, 79, 76, 0); } 100% { box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(0, 0, 0, .45); } }
#view-port .pf-cards .pf-onerow.right.enter > .pf-oneed { animation: pfOneR .34s cubic-bezier(.2, .8, .2, 1); }
#view-port .pf-cards .pf-onerow.left.enter > .pf-oneed { animation: pfOneL .34s cubic-bezier(.2, .8, .2, 1); }
#view-port .pf-cards .pf-oneed.enter-down { animation: pfOneD .3s cubic-bezier(.2, .8, .2, 1); }
#view-port .pf-cards .pf-onerow.enter > .pf-oneed::before { animation: pfOnePtr .38s ease-out; }
#view-port .pf-cards .pf-card.one.enter { animation: pfOneCard .55s ease-out; }
#view-port .pf-cards .pf-onerow.right.leave > .pf-oneed { animation: pfOneR .2s cubic-bezier(.4, 0, .9, .4) reverse forwards; }
#view-port .pf-cards .pf-onerow.left.leave > .pf-oneed { animation: pfOneL .2s cubic-bezier(.4, 0, .9, .4) reverse forwards; }
#view-port .pf-cards .pf-oneed.leave { animation: pfOneD .2s cubic-bezier(.4, 0, .9, .4) reverse forwards; }
#view-port .pf-cards .pf-onerow.leave > .pf-oneed::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #view-port .pf-cards :is(.pf-onerow > .pf-oneed, .pf-oneed.enter-down, .pf-card.one.enter, .pf-onerow > .pf-oneed::before) { animation: none !important; }
}

/* ROUND 61 (operator 2026-10-13: 'the description in lines — 1 the card name (no wrap, up to where the 7 DAYS ▼ 2.1 %
   begins) · 2 the set name · 3 the card# without its (p1) · 4 the language pill and the year') — on a computer's curve
   tile the curve's own boxes join the tile's grid (`.pf-spark` = display: contents), the columns are the same on every
   tile (description · curve · VALUE / PAID), the window label stands over the curve's top-right and the name runs over
   both columns up to it (port.js `fitHeads` puts each card's label width in --hdw); the plot and its months sit beside
   the three description lines */
.pf-cards.c4.n2.spark .pf-cinfo { grid-template-columns: minmax(150px, 1fr) minmax(0, 1.15fr) auto; grid-template-rows: auto 1fr auto;
  grid-template-areas: "c1 c1 bot" "c2 pl bot" "c2 mo bot"; column-gap: 20px; row-gap: 0; }
.pf-cards.c4.n2.spark .pf-spark { display: contents; }
.pf-cards.c4.n2.spark .pf-sparkhead { grid-area: 1 / 2 / 2 / 3; justify-self: end; align-self: center; min-width: 0; max-width: 100%; }
.pf-cards.c4.n2.spark .pf-sparkhead > span:empty { display: none; }
.pf-cards.c4.n2.spark .pf-sparkplot { grid-area: pl; align-self: end; margin-top: 4px; min-width: 0; }
.pf-cards.c4.n2.spark .pf-sparkm { grid-area: mo; min-width: 0; }
.pf-cards.c4.n2.spark .pf-c1 { align-self: center; min-width: 0; padding-right: calc(var(--hdw, 120px) + 14px) !important; }
body:not(.mv) #view-port .pf-cards.c4.n2.spark .pf-c1 b { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-line-clamp: unset; line-clamp: none; line-height: 1.25; }
.pf-cards.c4.n2.spark .pf-c2.pf-lines { grid-area: c2; display: flex; flex-direction: column; gap: 1px; margin-top: 3px; min-width: 0;
  white-space: nowrap; overflow: hidden; -webkit-line-clamp: unset; line-clamp: none; line-height: 1.3; }
.pf-cards.c4.n2.spark .pf-lines > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-cards.c4.n2.spark .pf-lines > .l-set { color: #bdbdbd; }
.pf-cards.c4.n2.spark .pf-lines > .l-num { font-variant-numeric: tabular-nums; }
.pf-cards.c4.n2.spark .pf-lines > .l-num:empty, .pf-cards.c4.n2.spark .pf-lines > .l-ly:empty { display: none; }
.pf-cards.c4.n2.spark .pf-lines > .l-ly .pf-lang { margin-right: 7px; }
@container pfspark (max-width: 560px) {
  .pf-cards.c4.n2.spark .pf-cinfo { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto auto;
    grid-template-areas: "c1 c1" "c2 c2" "hd bot" "pl bot" "mo bot"; column-gap: 14px; }
  .pf-cards.c4.n2.spark .pf-c1 { padding-right: 70px !important; }
  .pf-cards.c4.n2.spark .pf-sparkhead { grid-area: hd; justify-self: stretch; margin-top: 6px; }
}

/* ROUND 62 (operator 2026-10-13) — the 2- and 3-column tiles in the 1-column view's four lines (name · set · card# ·
   year + language), the language pill after the year, the change under the picture of a 2- / 3-column tile, the
   post-grade pill under the pre-grade, the portfolio map, STORE as wide as the other tabs */
.pf-lines .pf-lang, .pf-cards.c4.n2.spark .pf-lines > .l-ly .pf-lang { margin: 0 0 0 7px; }
.pf-cards.c4 .pf-c2.pf-lines { -webkit-line-clamp: unset; line-clamp: none; }
.pf-cards.c4 .pf-lines > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.32; }
.pf-cards.c4 .pf-lines > .l-set { color: #bdbdbd; }
.pf-cards.c4 .pf-lines > .l-num { font-variant-numeric: tabular-nums; }
body:not(.mv) #view-port .pf-cards.c4 .pf-card:has(> .pf-cinfo > .pf-lines) .pf-c1 b { display: block; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; -webkit-line-clamp: unset; line-clamp: none; line-height: 1.25; }
/* a single card's tile (the GROUP / BATCH entries keep their own): name over both columns, then the set, then the card#
   and the year beside VALUE / PAID */
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr; grid-template-areas: "c1 c1" "ls ls" "ln bot" "ly bot"; column-gap: 10px; row-gap: 0; align-content: stretch; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-lines { display: contents; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-c1 { grid-area: c1; min-width: 0; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-set { grid-area: ls; margin-top: 2px; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-num { grid-area: ln; align-self: start; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-ly { grid-area: ly; align-self: start; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot { grid-area: bot; align-self: end; margin-top: 0; padding-top: 0; min-width: 0; }
/* a narrow tile (three a row, a small window): VALUE / PAID under the four lines */
.pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp) { container: pftile / inline-size; }
@container pftile (max-width: 300px) {
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "c1" "ls" "ln" "ly" "bot"; }
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot { padding-top: 4px; }
}
/* the change under the picture on the 2- and 3-column tiles, a size larger — the corner chip goes */
.pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp):has(.pf-achg) .pf-pr .pf-d { display: none; }
.pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp):has(.pf-pr .pf-d) .pf-c1 { padding-right: 0; }
.pf-artcol > .pf-achg { align-self: center; position: relative; z-index: 1; justify-content: center; height: 22px; padding: 0 7px; gap: 3px;
  font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 800; max-width: calc(100% + 16px); box-sizing: border-box; overflow: hidden; }
.pf-artcol > .pf-achg .pf-tri { width: 8px; height: 8px; flex: none; }
.pf-artcol > .pf-gbadge + .pf-achg { margin-top: 9px; }
.pf-artcol > .pf-gbadge.post + .pf-achg, .pf-artcol > .pf-btag + .pf-achg { margin-top: 0; }
.pf-cards.c4.n6 .pf-artcol > .pf-achg { height: 19px; padding: 0 5px; font-size: calc(11px * var(--pf-fs, 1)); max-width: calc(100% + 18px); }
.pf-cards.c4.n6 .pf-artcol > .pf-gbadge + .pf-achg { margin-top: 8px; }
.pf-cards.c4.n6 .pf-artcol > .pf-gbadge.post + .pf-achg { margin-top: 0; }
body:not(.mv) #view-port .pf-cards.c4.n6 .pf-artcol > .pf-achg { --pf-fs: 1.1; }
/* THE POST-GRADE PILL: the grading company's grade under the BLACKLENS pre-grade — clear of it, in the flow */
.pf-artcol > .pf-gbadge.post { margin: 9px 0 0; }
.pf-cards.c4.n6 .pf-artcol > .pf-gbadge.post, .pf-cards.c1.lined .pf-artcol > .pf-gbadge.post { margin: 9px 0 0; }
.pf-cards.ph .pm .pf-artcol > .pf-gbadge.post { margin: 10px 0 0; }
.pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-artcol > .pf-gbadge.post { margin: 9px 0 0; }

/* STORE as wide as OVERVIEW, PERFORMANCE and CARDS, in their manner: the seller line and the actions on one row,
   the four figures as the PERFORMANCE tiles, the sections as the main tabs */
@media (min-width: 961px) {
  #view-port .pf-app:not(.ph) .mk-store { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "seller acts" "kpi kpi" "tabs tabs" "pane pane"; gap: 12px 14px; }
  #view-port .pf-app:not(.ph) .mk-store > .mk-sellerbar { grid-area: seller; min-width: 0; }
  #view-port .pf-app:not(.ph) .mk-store > .mk-kpis { grid-area: kpi; gap: 12px; }
  #view-port .pf-app:not(.ph) .mk-store > .mk-sacts { grid-area: acts; align-self: stretch; align-items: stretch; flex-wrap: nowrap; gap: 10px; }
  #view-port .pf-app:not(.ph) .mk-store > .mk-stabs { grid-area: tabs; }
  #view-port .pf-app:not(.ph) .mk-store > .mk-spane { grid-area: pane; }
  #view-port .pf-app:not(.ph) .mk-sacts .pf-qbtn { height: auto; min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: 1.2px; }
  #view-port .pf-app:not(.ph) .mk-kpi { min-height: 104px; padding: 14px 18px; justify-content: center; gap: 6px; border-radius: 14px; }
  #view-port .pf-app:not(.ph) .mk-kpi > b { font-size: calc(clamp(22px, 2.1vw, 30px) * var(--pf-fs, 1)); line-height: 1.05; }
  #view-port .pf-app:not(.ph) .mk-kpi > i { font-size: calc(9.5px * var(--pf-fs, 1)); }
  #view-port .pf-app:not(.ph) .mk-stabs { padding: 4px; border-radius: 14px; }
  #view-port .pf-app:not(.ph) .mk-stabs button { height: 42px; font-family: var(--menu-font); font-stretch: 87.5%; font-size: calc(12px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: 1.6px; }
  #view-port .pf-app:not(.ph) .mk-sgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
/* three a row: the picture column as wide as its grade pill, so the pill never reaches the text */
.pf-cards.c4.n6:not(.ph) .pf-card { grid-template-columns: 64px minmax(0, 1fr); }
.pf-cards.c4.n6:not(.ph) .pf-card > .pf-artcol > .pf-cart { align-self: center; }
.pf-cards.c4.n6:not(.ph) .pf-artcol > .pf-gbadge { max-width: calc(100% + 6px); }

/* ROUND 64 (operator 2026-10-13) — line 4 = rarity · year · language pill: the rarity gives way (ellipsis), the year and
   the pill never do */
#view-port .pf-lines > span.l-ly { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
#view-port .pf-lines > span.l-ly > .l-rar { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-port .pf-lines > span.l-ly > i { flex: none; font-style: normal; color: #7f7f7f; margin: 0 5px; }
#view-port .pf-lines > span.l-ly > .l-yr { flex: none; font-variant-numeric: tabular-nums; }
#view-port .pf-lines > span.l-ly > .pf-lang { flex: none; }

/* ROUND 67 (operator 2026-10-14: 'optimise the button size and spaces — less scrolling') — ADD A CARD's entry under the
   computer's preview: GRADED BY on one line over the six graders in ONE row, 30 px boxes, a 34 px ADD; the phone's
   swipe-up sheet keeps its touch sizes (.peek-body) */
#pt-prev .pf-sentry { gap: 6px; padding: 8px 9px 9px; }
#pt-prev .pf-sentry .pf-stog { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 4px; }
#pt-prev .pf-sentry .pf-stog > i { flex: none; white-space: nowrap; line-height: 1.15; }
#pt-prev .pf-sentry .pf-stogset { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; }
#pt-prev .pf-sentry .pf-stogset .pf-chip.sm { height: 26px; min-width: 0; padding: 0 2px; justify-content: center; border-radius: 7px;
  font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: .3px; }
#pt-prev .pf-sentry .pf-serow { gap: 5px; }
#pt-prev .pf-sentry .pf-serow label { gap: 2px; line-height: 1.15; }
#pt-prev .pf-sentry .pf-serow select, #pt-prev .pf-sentry .pf-serow input { height: 30px; border-radius: 7px; padding: 0 7px; }
#pt-prev .pf-sentry .pf-serow label.pf-sero b { height: 30px; }
#pt-prev .pf-sentry .pf-sadd { padding: 0 8px; height: 34px; border-radius: 8px; }

/* ROUND 68 (operator 2026-10-14) — a computer's tiles and the curve view: the details beside the picture one size
   smaller and a FIFTH line (the BLACKLENS Job# + the BL pre-grade pill) in the same card height; the pill under the
   picture is the card's own Graded By + grade */
body:not(.mv) #view-port .pf-cards.c4:not(.ph) .pf-card:has(> .pf-cinfo > .pf-lines) > .pf-cinfo > .pf-c1 b { font-size: calc(14px * var(--pf-fs, 1)); line-height: 1.2; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-card:has(> .pf-cinfo > .pf-lines) > .pf-cinfo > .pf-c1 b { font-size: calc(12px * var(--pf-fs, 1)); }
body:not(.mv) #view-port .pf-cards.c4:not(.ph) .pf-card > .pf-cinfo > .pf-lines { font-size: calc(11px * var(--pf-fs, 1)); }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-card > .pf-cinfo > .pf-lines { font-size: calc(9.5px * var(--pf-fs, 1)); }
body:not(.mv) #view-port .pf-cards.c4:not(.ph) .pf-card > .pf-cinfo > .pf-lines > span { line-height: 1.28; }
/* line 5 in the tile's grid (the curve view stacks its lines in one column already) */
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-rows: auto auto auto auto 1fr;
  grid-template-areas: "c1 c1" "ls ls" "ln bot" "ly bot" "lb bot"; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-bl { grid-area: lb; align-self: start; }
@container pftile (max-width: 300px) {
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-rows: auto auto auto auto auto 1fr;
    grid-template-areas: "c1" "ls" "ln" "ly" "lb" "bot"; }
}
#view-port .pf-lines > span.l-bl { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
#view-port .pf-lines > span.l-bl:empty { display: none; }
#view-port .pf-lines > span.l-bl > .l-job { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; color: #cfcfcf; }
/* the BL pre-grade pill: the picture pill's cut, red BL + white grade */
.pf-blp { flex: none; display: inline-flex; align-items: stretch; border-radius: 4px; overflow: hidden; border: 1px solid #0a0a0a; font-style: normal;
  font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9px * var(--pf-fs, 1)); line-height: calc(14px * var(--pf-fs, 1)); letter-spacing: .5px; white-space: nowrap; }
.pf-blp b, .pf-blp i { display: block; font-style: normal; font-weight: 800; padding: 0 4px; }
.pf-blp b { background: #DC4F4C; color: #fff; }
/* 2026-10-14: the grade alone, on the BLACKLENS red */
.pf-blp i { background: #DC4F4C; color: #fff; padding: 0 5px; }
.pf-blp.none i { background: #2a2a2a; color: #9a9a9a; }
/* the two pills on lines 4 and 5 stay inside a text line (18.5 px pills had grown the tile), the lines start right
   under the name */
body:not(.mv) #view-port .pf-cards.c4:not(.ph) .pf-card > .pf-cinfo > .pf-lines .pf-lang,
body:not(.mv) #view-port .pf-cards.c4:not(.ph) .pf-card > .pf-cinfo > .pf-lines .pf-blp { font-size: calc(8.5px * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-card > .pf-cinfo > .pf-lines .pf-lang,
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-card > .pf-cinfo > .pf-lines .pf-blp { font-size: calc(8px * var(--pf-fs, 1)); line-height: calc(10.5px * var(--pf-fs, 1)); }
body:not(.mv) #view-port .pf-cards.c4.n2.spark .pf-card > .pf-cinfo > .pf-c2.pf-lines { margin-top: 1px; gap: 0; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-card > .pf-cinfo > .pf-lines > span { line-height: 1.25; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-card:has(> .pf-cinfo > .pf-lines) > .pf-cinfo > .pf-c1 b { line-height: 1.15; }
/* a narrow tile stacks VALUE / PAID under the five lines — the 2 px over the set line and the 4 px over VALUE go, so
   the fifth line costs no height */
@container pftile (max-width: 300px) {
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-set { margin-top: 0; }
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot { padding-top: 0; }
}
/* the lines keep at least 118 px beside VALUE / PAID — a RAW / EST tag drops under its figure instead of cutting the
   rarity to 'S' and the Job# to 'BL-2…' */
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-columns: minmax(118px, 1fr) auto; }
@container pftile (max-width: 300px) {
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-columns: minmax(0, 1fr); }
}
#view-port .pf-lines > span.l-bl > .l-job { flex-shrink: 0; }

/* ROUND 69 (operator 2026-10-14) — line 4 = [EN] rarity · year, line 5 = [BL 9.5] the full Job#, and a 1-column card
   tall enough for the RAW GEM MT pill under its picture (it overhung the card's bottom edge) */
#view-port .pf-lines > span.l-ly > .pf-lang { margin: 0 6px 0 0; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-columns: minmax(140px, 1fr) auto; }
@container pftile (max-width: 300px) {
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-columns: minmax(0, 1fr); }
}
body:not(.mv) #view-port .pf-cards.c4.n2.spark .pf-card > .pf-artcol > .pf-gbadge,
body:not(.mv) #view-port .pf-cards.c1.lined .pf-card > .pf-artcol > .pf-gbadge { margin-bottom: 0; }
/* the full Job# in the pills' condensed cut, so all its digits fit a narrow 3-column tile */
#view-port .pf-lines > span.l-bl > .l-job { font-family: var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: .2px; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-lines > span.l-bl { gap: 4px; }
/* a 3-column tile too narrow for the pill and all 13 characters (1366 and below): the Job# drops under its pill
   rather than losing digits */
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-lines > span.l-bl { flex-wrap: wrap; row-gap: 0; white-space: normal; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph) .pf-lines > span.l-bl > .l-job { white-space: nowrap; }

/* ROUND 70 (operator 2026-10-14) — a computer's tiles: the % back in the top-right corner of the 2- and 3-column tiles
   (the name keeps clear of its measured width, --chw, set by fitHeads), 3 px more between the name and the set line,
   and VALUE / PAID moved left so an 8-figure amount (฿12,345,678) fits. Beside lines 3–5 that room left the details
   ~77 px in a 360 px tile, so the price row now sits UNDER the five lines, right-aligned, and every line has the full
   width; a RAW / EST / MARKET tag drops under its figure */
.pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp):has(.pf-pr .pf-d) > .pf-cinfo > .pf-c1 { padding-right: calc(var(--chw, 60px) + 8px); }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) { grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto 1fr; grid-template-areas: "c1" "ls" "ln" "ly" "lb" "bot"; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-set { margin-top: 5px; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-bl { margin-top: 0; }
.pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot { align-self: end; padding-top: 5px; }
body:not(.mv) #view-port .pf-cards.c4.n2.spark .pf-card > .pf-cinfo > .pf-c2.pf-lines { margin-top: 4px; }
body:not(.mv) #view-port .pf-cards.c4:not(.ph) .pf-card > .pf-cinfo .pf-pr > b { min-width: 10.6ch; text-align: right; flex: none; }
body:not(.mv) #view-port .pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr { flex-wrap: wrap; justify-content: flex-end; }
body:not(.mv) #view-port .pf-cards.c4:not(.spark):not(.ph) .pf-lines > span.l-bl { flex-wrap: wrap; row-gap: 0; white-space: normal; }
body:not(.mv) #view-port .pf-cards.c4:not(.spark):not(.ph) .pf-lines > span.l-bl > .l-job { white-space: nowrap; }
body:not(.mv) #view-port .pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card > .pf-artcol > .pf-gbadge { margin-bottom: 0; }
@container pftile (max-width: 300px) {
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) .pf-lines > .l-set { margin-top: 3px; }
  .pf-cards.c4:not(.spark):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot { padding-top: 3px; }
}
/* a tile whose content box is 200 px or less (3 columns at 1366 and below): 'VALUE' and an 8-figure box cannot share a ~100 px column — the
   figure keeps its own width there rather than breaking every price onto two lines */
@container pftile (max-width: 200px) {
  body:not(.mv) #view-port .pf-cards.c4:not(.ph) .pf-card > .pf-cinfo .pf-pr > b { min-width: 0; }
}
/* ROUND 73 (operator 2026-10-14): line 3 = the card# · the rarity, line 4 = the language pill · the TCG · the year —
   the rarity and the TCG give way before the number and the year */
#view-port .pf-lines > span.l-num { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
#view-port .pf-lines > span.l-num > .l-no { flex: none; font-variant-numeric: tabular-nums; }
#view-port .pf-lines > span.l-num > .l-rar,
#view-port .pf-lines > span.l-ly > .l-tcg { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-port .pf-lines > span.l-num > i { flex: none; font-style: normal; color: #7f7f7f; margin: 0 5px; }
#view-port .pf-lines > span.l-ly > .l-tcg.fit-off, #view-port .pf-lines > span.l-ly > .l-tcg.fit-off + i { display: none; }
/* ROUND 76 (operator 2026-10-14): the Job# on line 5 is a link to the card in BLACKVAULT */
#view-port .pf-lines > span.l-bl > a.l-job { color: #cfcfcf; text-decoration: none; cursor: pointer; border-radius: 3px; }
#view-port .pf-lines > span.l-bl > a.l-job:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
#view-port .pf-lines > span.l-bl > a.l-job:focus-visible { outline: 1px solid #DC4F4C; outline-offset: 1px; color: #fff; }
/* ROUND 77 (operator 2026-10-15): the INSPECTION step strip under CENTERING's results and MAP INSPECT's scores —
   FRONT centering → FRONT full-map → flip → BACK centering → BACK full-map → reporting; BACK / NEXT name the step they
   open (job.js paintFlow). Studio type (no --pf-fs) */
.jf { margin-top: 8px; padding: 9px 10px 10px; border: 1px solid #2e2e2e; border-radius: 10px; background: #151515;
  display: flex; flex-direction: column; gap: 9px; font-family: var(--rep-font-sc); font-stretch: 87.5%; }
.jf-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jf-track li { position: relative; display: flex; justify-content: center; min-width: 0; }
.jf-track li + li::before { content: ''; position: absolute; top: 10px; left: -50%; right: 50%; height: 2px; background: #333; }
.jf-track li.done::before, .jf-track li.on::before { background: #7a2d2a; }
.jf-st { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; max-width: 100%;
  padding: 0 2px; border: 0; background: none; color: #8a8a8a; cursor: pointer; font: inherit; }
.jf-st i { display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 2px; border-radius: 50%; font-style: normal;
  font-size: 11px; font-weight: 700; background: #1e1e1e; border: 1.5px solid #3f3f3f; color: #a6a6a6; }
.jf-st b, .jf-st em { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
.jf-st b { font-size: 8.5px; font-weight: 700; letter-spacing: 1.2px; }
.jf-st em { font-size: 9px; font-style: normal; letter-spacing: .8px; }
.jf-st:hover i { border-color: #6a6a6a; color: #e0e0e0; }
.jf-track li.done .jf-st i { background: #3a1715; border-color: #7a2d2a; color: #f0b3b0; }
.jf-track li.on .jf-st { color: #fff; cursor: default; }
.jf-track li.on .jf-st i { background: #DC4F4C; border-color: #DC4F4C; color: #fff; box-shadow: 0 0 0 3px rgba(220, 79, 76, .22); }
.jf-btns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6px; }
.jf-btns button { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; min-height: 46px; padding: 6px 12px;
  border-radius: 8px; cursor: pointer; font: inherit; text-align: left; }
.jf-cap { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; line-height: 1; white-space: nowrap; }
.jf-to { font-size: 13.5px; font-weight: 700; letter-spacing: .3px; line-height: 1.12; max-width: 100%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jf-back { align-items: flex-start; background: #1e1e1e; border: 1px solid #3d3d3d; color: #e2e2e2; }
.jf-back .jf-cap { color: #8f8f8f; }
.jf-back:hover:not(:disabled) { background: #262626; border-color: #5a5a5a; }
.jf-back:disabled { opacity: .38; cursor: default; }
.jf-next { align-items: flex-end; text-align: right; background: #1f6b37; border: 1px solid #2e8c46; color: #fff; }
.jf-next .jf-cap { color: #c3efcd; }
.jf-next:hover:not(:disabled) { background: #247a3f; border-color: #3aa457; }
.jf-next:disabled { opacity: .7; cursor: progress; }
.jf-next.flip { background: #4a3a10; border-color: #b8952f; }          /* the card is turned over at this step */
.jf-next.flip .jf-cap { color: #f0d27a; }
.jf-next.flip:hover:not(:disabled) { background: #5a4713; border-color: #d4ac3a; }
.jf-btns button:focus-visible, .jf-st:focus-visible { outline: 2px solid #DC4F4C; outline-offset: 2px; }
/* BLACKVAULT's SUMMARY: the FINISH picture shown at full resolution (a signed-in account, or the studio's REPORTING) */
.bv-phead .bv-fullres { font-size: calc(9px + var(--bv-up)); letter-spacing: 1.4px; color: #d8c89a; border: 1px solid #5c5340; border-radius: 3px; padding: 1px 6px; }
/* the strip sits at the foot of CENTERING's results card: the card takes the rest of the column and the two result
   pictures shrink to the height left (a 124 px strip under them had pushed the page 11-21 px past a 917 px window) */
#view-job:not(.jb-focus) .jb-col:has(> #jb-resthumbs) { height: var(--jb-rescol-h, auto); }
#view-job #jb-resthumbs { flex: 1 1 0; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; }
#view-job #jb-resthumbs > .card-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
#view-job #jb-resthumbs .jb-results { flex: 1 1 0; min-height: 0; container-type: size; }
#view-job #jb-resthumbs .jb-res-imgbox { max-width: calc((100cqh - 82px) * .727); }
#view-job #jb-resthumbs .jf { flex: none; }
/* a short window (≤ 820 px tall, a 1366 × 768 laptop): BACK / NEXT alone, one line lower (they name the steps they
   open; the numbered track returns on a taller window), so the result pictures keep their room */
@media (max-height: 820px) {
  .jf { padding: 0; gap: 0; border: 0; background: none; }
  .jf-track { display: none; }
  .jf-btns button { min-height: 38px; padding: 4px 10px; gap: 2px; }
  .jf-to { font-size: 12.5px; -webkit-line-clamp: 1; }
  #view-job #jb-resthumbs { min-height: 240px; }
}
/* ROUND 78 (operator 2026-10-15): PERFORMANCE's two gains switch its chart — UNREALIZED (value against paid: green / red)
   and REALIZED (sales against cost: gold / light grey); MARK AS SOLD; the STORE's revenue by channel and its spreadsheet */
#view-port { --pf-gold: #E2C06B; --pf-cost: #cfcfcf; }
/* the two gain tiles: one format, a switch — the lit one wears its chart's colour */
.pf-stats2 .pf-gainstat { position: relative; }
.pf-stats2 .pf-gainstat.on { border-color: var(--pf-pos); background: linear-gradient(180deg, rgba(126, 212, 166, .11), rgba(126, 212, 166, .02) 70%) var(--pf-panel); box-shadow: inset 0 0 0 1px rgba(126, 212, 166, .4); }
.pf-stats2 .pf-gainstat.pf-realstat { border-color: #5c5340; }
.pf-stats2 .pf-gainstat.pf-realstat.on { border-color: var(--pf-gold); background: linear-gradient(180deg, rgba(226, 192, 107, .13), rgba(226, 192, 107, .02) 70%) var(--pf-panel); box-shadow: inset 0 0 0 1px rgba(226, 192, 107, .42); }
.pf-stats2 .pf-gainstat.on > i { color: #fff; }
.pf-stats2 .pf-gainstat.on > i::after { content: '● CHART'; float: right; font-size: calc(7.5px * var(--pf-fs, 1)); letter-spacing: 1.4px; color: var(--pf-pos); }
.pf-stats2 .pf-gainstat.pf-realstat.on > i::after { color: var(--pf-gold); }
.pf-stats2 .pf-gainstat:not(.on):hover { border-color: #6a6a6a; }
/* the gain's figure a size up (operator 2026-10-15: '+฿23,773 … +31% larger') */
.pf-stats2 .pf-gainrow > b { font-size: calc(clamp(22px, 2vw, 30px) * var(--pf-fs, 1)); line-height: 1.05; }
.pf-stats2 .pf-gainrow > .pf-chg { font-size: calc(14px * var(--pf-fs, 1)); }
.pf-app.ph .pf-stats2 .pf-gainrow > b { font-size: calc(26px * var(--pf-fs, 1)); }
.pf-cmpbar b.s { background: var(--pf-gold); }
.pf-cmpbar b.c { background: var(--pf-cost); }
/* the REALIZED chart: the sales line gold (red where under the cost), the cost a light-grey step, its hatch light grey */
.pf-chartbox svg.real .line { stroke: var(--pf-gold); }
.pf-chartbox svg.real .line.lo { stroke: var(--pf-neg); }
.pf-chartbox svg.real .dot, .pf-chartbox svg.real .rv { fill: var(--pf-gold); }
.pf-chartbox svg.real .dot.lo, .pf-chartbox svg.real .rv.lo { fill: var(--pf-neg); }
.pf-chartbox svg.real .paid { stroke: var(--pf-cost); }
.pf-chartbox svg.real .rp { fill: var(--pf-cost); }
.pf-chartbox svg.real .hatch { stroke: var(--pf-cost); }
.pf-chartbox svg.real .gain { fill: var(--pf-gold); fill-opacity: .16; }
#pf-legend2.real em::before { border-top-color: var(--pf-gold); }
#pf-legend2.real em.w::before { border-top-color: var(--pf-neg); }
#pf-legend2.real em.p::before { border-top-color: var(--pf-cost); }
.pf-ctip.real .pf-ctr.v i::before { background: var(--pf-gold); }
.pf-ctip.real .pf-ctr.p i::before { background: var(--pf-cost); }
.pf-ctip.real .pf-ctr.v b { color: var(--pf-gold); }
.pf-ctip.real .pf-ctr.v.dn b { color: var(--pf-neg); }

/* MARK AS SOLD: on the card being edited (beside DONE), in the SELECT bars, on a phone's open card */
.pf-onesold { position: absolute; top: -11px; left: 50%; transform: translateX(calc(-100% - 40px)); z-index: 5; height: 22px; padding: 0 12px; border-radius: 11px;
  border: 1px solid #ab9b6f; background: #2a2414; color: #f1e6c8; font: inherit; font-weight: 800; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: 1.4px;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); white-space: nowrap; }
.pf-onesold:hover { background: #ab9b6f; color: #141414; }
#view-port .pf-cards .pf-oneed > .pf-onesold { left: auto; right: 96px; transform: none; }
/* the sheet */
#pf-msheet .pf-sheetwin { width: min(100%, 780px); }
.pf-msbody { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.pf-msmode { display: inline-flex; align-self: flex-start; margin: 0 0 10px; border: 1px solid #3f3f3f; border-radius: 10px; overflow: hidden; background: #1b1b1b; }
.pf-msmode button { border: 0; background: none; color: #cfcfcf; font: inherit; font-weight: 700; font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: 1.4px; padding: 8px 14px; cursor: pointer; }
.pf-msmode button.on { background: var(--accent); color: #fff; }
.pf-mslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-mslist li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 84px 140px 140px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #2c2c2c; border-radius: 12px; background: #1b1b1b; }
.pf-mslist .pf-art { width: 40px; height: 56px; border-radius: 4px; overflow: hidden; background: #111; }
.pf-mslist .pf-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-mslist .pf-ln { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-mslist .pf-ln b { font-size: calc(14px * var(--pf-fs, 1)); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-mslist .pf-ln > span { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-mslist .pf-ln > .pf-mscost { color: #d9d9d9; }
.pf-mslist label.q { grid-column: 3; } .pf-mslist label.p { grid-column: 4; } .pf-mslist label.c { grid-column: 5; }
.pf-mslist label, .pf-msfoot label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-mslist label i, .pf-msfoot label i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.3px; color: #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-mslist input, .pf-msfoot input, .pf-msfoot select { box-sizing: border-box; width: 100%; height: 34px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--pf-box-line, #4a4a4a);
  background: var(--pf-box, #1f1f1f); color: #fff; font: inherit; font-size: calc(13px * var(--pf-fs, 1)); }
.pf-mslist input:focus, .pf-msfoot input:focus, .pf-msfoot select:focus { outline: none; border-color: var(--accent); }
.pf-mslist input[readonly] { opacity: .65; }
.pf-msfoot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #2c2c2c; }
.pf-msfoot label.t { width: 170px; } .pf-msfoot label.cur { width: 90px; } .pf-msfoot label.day { width: 150px; }
.pf-mssum { flex: 1 1 220px; display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; min-height: 34px; }
.pf-mssum > span { display: flex; flex-direction: column; gap: 2px; }
.pf-mssum i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.3px; color: #cfcfcf; }
.pf-mssum b { font-size: calc(15px * var(--pf-fs, 1)); color: #fff; font-variant-numeric: tabular-nums; }
.pf-mssum b.up { color: var(--pf-pos); } .pf-mssum b.down { color: var(--pf-neg); } .pf-mssum b.flat { color: #bdbdbd; }
.pf-mssum b .pf-tri { width: 9px; height: 9px; margin-right: 4px; }
.pf-mssum .pf-msnone { color: var(--pf-ink3); font-size: calc(12px * var(--pf-fs, 1)); align-self: center; }
.pf-msbtns { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pf-msbtns .pf-qbtn { min-width: 150px; justify-content: center; }
.pf-msnote { margin: 10px 0 0; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); line-height: 1.4; }
@media (max-width: 760px) {
  .pf-mslist li { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "art ln ln" "q p c"; }
  .pf-mslist .pf-art { grid-area: art; } .pf-mslist .pf-ln { grid-area: ln; }
  .pf-mslist label.q { grid-area: q; grid-column: auto; } .pf-mslist label.p { grid-area: p; grid-column: auto; } .pf-mslist label.c { grid-area: c; grid-column: auto; }
  .pf-mslist input, .pf-msfoot input, .pf-msfoot select { height: 42px; font-size: 16px; }
  .pf-msfoot label.t, .pf-msfoot label.day { width: calc(50% - 5px); } .pf-msfoot label.cur { width: calc(50% - 5px); }
  .pf-msbtns { width: 100%; } .pf-msbtns .pf-qbtn { flex: 1 1 auto; min-width: 0; }
}

/* THE STORE's REVENUE: BLACKMARKT (internal) · MARK AS SOLD (external) · TOTAL, this month or all time */
.pf-rev { border: 1px solid var(--pf-line); border-radius: 14px; background: var(--pf-panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.pf-revhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-revhead > b { font-size: calc(12.5px * var(--pf-fs, 1)); letter-spacing: 2.2px; color: #fff; }
.pf-revper { margin-left: auto; display: inline-flex; border: 1px solid #3f3f3f; border-radius: 9px; overflow: hidden; background: #1b1b1b; }
.pf-revper button { border: 0; background: none; color: #cfcfcf; font: inherit; font-weight: 700; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 1.3px; padding: 6px 12px; cursor: pointer; }
.pf-revper button.on { background: var(--accent); color: #fff; }
.pf-revgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf-revgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-revc { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid #2c2c2c; border-left-width: 3px; border-radius: 12px; background: #1b1b1b; }
.pf-revc.int { border-left-color: var(--pf-gold); } .pf-revc.ext { border-left-color: var(--accent); } .pf-revc.tot { border-left-color: #f2f2f2; }
.pf-revc > i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.4px; color: #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-revc > b { font-size: calc(clamp(19px, 1.8vw, 25px) * var(--pf-fs, 1)); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-revc > span { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.pf-revc > .pf-chg { align-self: flex-start; }
.pf-revacts { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-revacts .pf-qbtn { flex: 0 0 auto; }
@media (min-width: 961px) {
  #view-port .pf-app:not(.ph) .mk-store { grid-template-areas: "seller acts" "kpi kpi" "rev rev" "tabs tabs" "pane pane"; }
  #view-port .pf-app:not(.ph) .mk-store > .pf-rev { grid-area: rev; }
}
@media (max-width: 760px) {
  .pf-revgrid, .pf-revgrid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pf-revc.tot { grid-column: 1 / -1; }
  .pf-revgrid.two .pf-revc.tot { grid-column: auto; }
  .pf-revacts .pf-qbtn { flex: 1 1 auto; justify-content: center; }
}
/* the STORE outside the BLACKMARKT beta: the revenue over the statements */
.pf-sstore { display: flex; flex-direction: column; gap: 12px; }
.pf-sstmt { margin: 0; }

/* the statements: where each sale happened, and a filter by it */
.st-chans { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.st-chans .pf-chip i { margin-left: 5px; font-style: normal; opacity: .75; }
.st-ch { display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 4px; vertical-align: 2px; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; font-weight: 700; }
.st-ch.blackmarkt { background: #2a2414; border: 1px solid #ab9b6f; color: #f1e6c8; }
.st-ch.external { background: #2a1514; border: 1px solid #7a2d2a; color: #f2c4c2; }

/* the spreadsheet import's preview */
#pf-xsheet .pf-sheetwin { width: min(100%, 860px); }
.pf-xsbody { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.pf-xschips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-xschip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 9px; border: 1px solid #3f3f3f; background: #1b1b1b; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; color: #cfcfcf; }
.pf-xschip b { font-size: calc(15px * var(--pf-fs, 1)); color: #fff; letter-spacing: 0; }
.pf-xschip.mark, .pf-xschip.new { border-color: #ab9b6f; } .pf-xschip.skip { border-color: #7a2d2a; }
.pf-xslist { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.pf-xslist li { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.3fr) 108px; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; background: #1b1b1b; border: 1px solid #262626; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-xslist li i { font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); color: var(--pf-ink3); letter-spacing: 1px; }
.pf-xslist li b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-xslist li span { color: #d9d9d9; min-width: 0; }
.pf-xslist li em { font-style: normal; justify-self: end; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1.2px; font-weight: 700; padding: 2px 7px; border-radius: 5px; border: 1px solid #3f3f3f; color: #cfcfcf; }
.pf-xslist li.mark em, .pf-xslist li.new em { border-color: #ab9b6f; color: #f1e6c8; background: #2a2414; }
.pf-xslist li.skip em { border-color: #7a2d2a; color: #f2c4c2; background: #2a1514; }
.pf-xslist li.skip span { color: #f2c4c2; }
.pf-xsfoot { align-items: center; } .pf-xsfoot > span { flex: 1 1 auto; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); }
@media (max-width: 760px) {
  .pf-xslist li { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-xslist li i { grid-column: 1 / -1; } .pf-xslist li span { grid-column: 1 / -1; }
}
/* a phone: the chart head keeps its old width (the statements are a tab away: STORE · SALES ITEMS), the revenue's
   captions wrap instead of cutting */
@media (max-width: 760px) { .pf-revc > i { white-space: normal; line-height: 1.35; } }
@media (max-width: 760px) { #pf-msheet .pf-sheethead > span, #pf-xsheet .pf-sheethead > span { display: none; } #pf-msheet .pf-sheethead b, #pf-xsheet .pf-sheethead b { white-space: nowrap; } }
/* outside the sales features the unrealized tile is the only chart — no '● CHART' marker */
.pf-stats2:not(.s4) .pf-gainstat.on > i::after { display: none; }
/* ==== ROUND 79 · MAP INSPECT's score cards fit their column (operator 2026-10-15: 'the DEFECT AREA and its values
   visible, nothing past its box; the boxes lower in height — everything without scrolling') ====
   A card takes its content's height and never less (round 21's cards shared the column equally, and a short share
   clipped the strips under the company row); the sizes are lower, so the three cards and the step strip fit a 917 px
   window; on a taller window the spare height sits under the cards. */
#view-ai .ai-c3 #ai-scores { gap: 8px; }
#view-ai .ai-c3 .jb-rescard.ai-pcard { flex: 0 0 auto; min-height: auto; padding: 6px 9px 7px; }
#view-ai .ai-c3 .ai-pcard .jb-reshead { margin: -6px -9px 6px; padding: 4px 9px; }
#view-ai .ai-c3 .ai-pcard .jb-reshead > b { font-size: 14px; }
#view-ai .ai-c3 .ai-pcard .jb-reshead .jb-bigratio { font-size: 17px; line-height: 1.3; padding: 1px 12px; }
#view-ai .ai-c3 .ai-pcard > .card-body { flex: 0 0 auto; min-height: auto; gap: 6px; }
#view-ai .ai-c3 .ai-pcard .ai-fb { flex: 0 0 auto; min-height: auto; gap: 6px; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip { min-height: auto; gap: 4px; padding: 5px 7px; line-height: 1.3; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip > .l2, #view-ai .ai-c3 .ai-pcard .ai-sstrip > .l3 { flex: 0 0 auto; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .pen { font-size: 14px; line-height: 1.3; padding: 0 10px; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv { height: 20px; }
/* DEFECT AREA: the caption with the points chip on its right, then the area with its share of the card */
#view-ai .ai-c3 .ai-pcard .ai-sstrip > .l3 { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k d" "v s"; align-items: center;
  column-gap: 6px; row-gap: 1px; padding-top: 4px; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v { display: flex; align-items: baseline; min-width: 0; line-height: 1.25; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v b { font-size: 12.5px; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s { justify-self: end; text-align: right; line-height: 1.25; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d { align-self: center; justify-self: end; margin: 0; padding: 0 6px; font-size: 11px; line-height: 1.4; white-space: nowrap; }
#view-ai .ai-c3 .ai-pcard .jb-rc-row span { padding: 3px 2px; line-height: 1.2; }
#view-ai .ai-c3 .ai-pcard .jb-rc-row b { font-size: 14px; line-height: 1.15; margin-top: 1px; }
#view-ai .ai-c3 .ai-nextrow { margin-top: 8px; }
/* the step strip under them, lower inside MAP INSPECT */
#view-ai .ai-c3 .jf { margin-top: 0; padding: 7px 9px 8px; gap: 6px; }
#view-ai .ai-c3 .jf-st i { width: 20px; height: 20px; margin-bottom: 1px; }
#view-ai .ai-c3 .jf-track li + li::before { top: 9px; }
#view-ai .ai-c3 .jf-btns button { min-height: 40px; padding: 4px 10px; gap: 2px; }
/* a short column: one line lower again, then the step strip without its numbered track */
@container aic3 (max-height: 760px) {
  #view-ai .ai-c3 #ai-scores { gap: 6px; }
  #view-ai .ai-c3 .ai-pcard .jb-reshead { margin-bottom: 5px; padding: 3px 9px; }
  #view-ai .ai-c3 .ai-pcard .jb-reshead .jb-bigratio { font-size: 15.5px; line-height: 1.25; }
  #view-ai .ai-c3 .ai-pcard > .card-body, #view-ai .ai-c3 .ai-pcard .ai-fb { gap: 5px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip { gap: 3px; padding: 4px 7px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv { height: 18px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row span { padding: 2px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row b { font-size: 13px; margin-top: 0; }
}
@container aic3 (max-height: 660px) {
  #view-ai .ai-c3 .jf { padding: 0; border: 0; background: none; }
  #view-ai .ai-c3 .jf-track { display: none; }
  #view-ai .ai-c3 .jf-btns button { min-height: 36px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .pen { font-size: 13px; }
}
/* the DEFECT AREA block keeps its two lines at every size (a one-line version squeezed the share of the card out of a
   narrow strip) and keeps its words: DEFECT AREA, the mm² unit, the share — the narrow column tightens the spacing instead */
#view-ai .ai-c3 .ai-pcard .ai-sstrip > .l3 { display: grid; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k em { display: inline; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v em { display: inline; }
#view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s { display: block; }
@container aic3 (max-width: 400px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k { letter-spacing: .8px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v em { margin-left: 1px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d { padding: 0 4px; }
}
@container aic3 (max-width: 330px) {
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .k { font-size: 8.5px; letter-spacing: .4px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .v b { font-size: 12px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 .s { font-size: 9.5px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d em { display: inline; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l3 b.d { font-size: 10.5px; }
}
/* the shortest column (a 1280 × 720 window): tighter still, every line kept */
@container aic3 (max-height: 560px) {
  #view-ai .ai-c3 #ai-scores { gap: 4px; }
  #view-ai .ai-c3 .jb-rescard.ai-pcard { padding: 4px 8px 5px; }
  #view-ai .ai-c3 .ai-pcard .jb-reshead { margin: -4px -8px 4px; padding: 2px 8px; }
  #view-ai .ai-c3 .ai-pcard .jb-reshead .jb-bigratio { font-size: 14.5px; padding: 0 10px; }
  #view-ai .ai-c3 .ai-pcard > .card-body, #view-ai .ai-c3 .ai-pcard .ai-fb { gap: 4px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip { gap: 2px; padding: 3px 6px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip > .l3 { padding-top: 2px; }
  #view-ai .ai-c3 .ai-pcard .ai-sstrip .l2 span.sv { height: 17px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row span { padding: 1px 2px; }
  #view-ai .ai-c3 .ai-pcard .jb-rc-row b { font-size: 12px; }
  #view-ai .ai-c3 .ai-nextrow { margin-top: 4px; }
}
/* ==== ROUND 79 · THE FIVE LINES IN EVERY VIEW (operator 2026-10-15: 'every item in every mode across the Portfolio and the
   BLACK modes lists the card's details the way the tile does — placeholders and positioning'): name · set · #number ·
   rarity · [LANG] TCG · year · [BL] Job# — BLACKPORT's DETAILS rows, a phone's cards and the GROUP entries now too ==== */
.pf-cards.lined .pf-c2.pf-lines, .pf-cards.ph .pf-c2.pf-lines, .pf-cards .pf-grp .pf-c2.pf-lines { display: flex; flex-direction: column; gap: 0;
  -webkit-line-clamp: unset; line-clamp: none; white-space: normal; overflow: hidden; }
.pf-cards.lined .pf-lines > span, .pf-cards.ph .pf-lines > span, .pf-cards .pf-grp .pf-lines > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.pf-cards.lined .pf-lines > .l-set, .pf-cards.ph .pf-lines > .l-set, .pf-cards .pf-grp .pf-lines > .l-set { color: #bdbdbd; }
/* the statements and TOP CARD BY TCG: the five lines under the name (the OVERVIEW / PERFORMANCE lists keep ONE line) */
.pf-list .pf-ln .pf-lines, .st-list .pf-ln .pf-lines { display: flex; flex-direction: column; gap: 0; margin-top: 1px; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3);
  -webkit-line-clamp: unset; line-clamp: none; white-space: normal; overflow: hidden; letter-spacing: .2px; }
.pf-list .pf-ln .pf-lines > span, .st-list .pf-ln .pf-lines > span, .pf-tg .pf-lines > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.28; }
.pf-list .pf-ln .pf-lines > .l-set, .st-list .pf-ln .pf-lines > .l-set, .pf-tg .pf-lines > .l-set { color: #bdbdbd; }
.pf-list .pf-lines .pf-lang, .pf-list .pf-lines .pf-blp, .st-list .pf-lines .pf-lang, .st-list .pf-lines .pf-blp { font-size: calc(8.5px * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); }
/* TOP CARD BY TCG: the lines under the name, the pill on the foot of the full card */
.pf-tg .pf-lines { display: flex; flex-direction: column; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); letter-spacing: .2px; }
.pf-tg .pf-lines .pf-lang, .pf-tg .pf-lines .pf-blp { font-size: calc(8.5px * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); }
.pf-tgcol { display: flex; flex-direction: column; align-items: center; }
.pf-tgcol > .pf-tgart { flex: none; }
.pf-tgcol > .pf-gbadge { margin: -10px 0 0; }
/* the statements: the lines, then who it went to */
.st-list .pf-ln .pf-lines { font-size: calc(10.5px * var(--pf-fs, 1)); }
/* THE FIVE LINES outside BLACKPORT's cards (BL.cardlines.block — js/cardlines.js): the name, the set, #number · rarity,
   [LANG] TCG · year, [BL] Job#; one line each, cut with … never wrapped; the host sets the font size */
.cl5 { display: flex; flex-direction: column; gap: 0; min-width: 0; font-size: 11px; line-height: 1.3; color: #9a9a9a; letter-spacing: .2px; text-align: left; font-family: inherit; }
.cl5 > span { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.cl5 > .l-name { align-items: baseline; gap: 6px; margin-bottom: 1px; }
.cl5 > .l-name > b { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.2em; font-weight: 700; color: #f2f2f2; line-height: 1.25; letter-spacing: 0; }
.cl5 > .l-name > i { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; color: #9a9a9a; }
.cl5 > .l-name > em { flex: none; }
.cl5 > .l-set { display: block; text-overflow: ellipsis; color: #bdbdbd; }
.cl5 .l-no, .cl5 .l-yr { flex: none; font-variant-numeric: tabular-nums; }
.cl5 .l-rar, .cl5 .l-tcg { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl5 > span > i { flex: none; font-style: normal; color: #6f6f6f; margin: 0 5px; }
.cl5 .l-tcg.fit-off, .cl5 .l-tcg.fit-off + i { display: none; }
.cl5 .pf-lang { flex: none; margin: 0 6px 0 0; padding: 0 4px; font-size: .78em; line-height: 1.45; vertical-align: 0; }
.cl5 > .l-bl { gap: 6px; }
.cl5 > .l-bl:empty { display: none; }
.cl5 .pf-blp { font-size: .78em; line-height: 1.45; }
.cl5 .l-job { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #cfcfcf; font-family: var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: .2px;
  font-variant-numeric: tabular-nums; text-decoration: none; }
.cl5 a.l-job:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* the search rows: ADD A CARD, SUBMISSION, MY SUBMISSIONS, the INSPECTION search dialog */
.pf-row .cl5.pf-rc { font-size: calc(11px * var(--pf-fs, 1)); }
.pf-row .cl5.pf-rc > .l-name > b { font-size: calc(13px * var(--pf-fs, 1)); }
.cl5.pf-rc > .l-name > em.inport, .cl5.slabq-rc > .l-name > em.sub-inlist { font-style: normal; }
.slabq-row .cl5.slabq-rc { flex: 1 1 auto; }
#slabq-rows .slabq-row .cl5.slabq-rc { font-size: 11px; }
#slabq-rows .slabq-row .cl5.slabq-rc > .l-name > b { font-size: 13px; color: var(--text); }
#view-submit .sub-rows .cl5.slabq-rc { font-size: calc(10.5px + 2pt); }
#view-submit .sub-rows .cl5.slabq-rc > .l-name > b { font-size: calc(13px + 2pt); }
.slabq-win #slabq-rows .slabq-row .cl5.slabq-rc { font-size: 12px; }
.slabq-win #slabq-rows .slabq-row .cl5.slabq-rc > .l-name > b { font-size: 14.5px; }
.rq-frow .cl5.rq-ln { font-size: 11px; }
.rq-frow .cl5.rq-ln > .l-name > b { font-size: 13.5px; font-weight: 600; }
.cl5 span { font-family: inherit; color: inherit; }
.cl5.slabq-rc span, .cl5.rq-ln span, .cl5.pf-rc span { font-size: inherit; }
#view-submit .sub-rows .cl5.slabq-rc span { font-size: inherit; }
.cl5 > .l-name > em.inport { color: #f2f2f2; border: 1px solid #6a6a6a; border-radius: 3px; padding: 0 5px; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: .6px; font-weight: 500; }
.cl5 > .l-name > em.sub-inlist { font-size: calc(9px + 2pt); letter-spacing: 1px; color: #bfe6c5; background: #1f3d2a; border: 1px solid #2a7a3e; border-radius: 3px; padding: 0 5px; font-weight: 600; }
/* a picture with the card's grade pill on its foot (BLACKBOARD, BLACKVAULT, BLACKMARKT rows) */
.cl-art { flex: none; display: flex; flex-direction: column; align-items: center; align-self: center; min-width: 0; }
.cl-art > .pf-gbadge { margin: -9px 0 0; height: 15px; line-height: 13px; font-size: 8px; letter-spacing: .2px; max-width: none; }
.cl-art > .pf-gbadge b, .cl-art > .pf-gbadge i { padding: 0 3px; }
/* BLACKBOARD */
.bb-cl { flex: 1 1 auto; min-width: 0; font-size: 11px; }
.bb-cl > .l-name > b { font-size: 13px; letter-spacing: .3px; }
.bb-row .bb-thumb.row, .bb-prep .bb-thumb.row, .bb-grow .bb-thumb.row, .bb-pcard .bb-thumb.row { width: 36px; height: 50px; }
.bb-row, .bb-prep, .bb-pcard { align-items: center; }
.bb-grow { grid-template-columns: auto minmax(0, 1fr) 52px 22px 56px; }
.bb-card .bb-cl.bb-cmeta { font-size: 11px; color: #9a9a9a; white-space: normal; overflow: hidden; }
.bb-phmain { min-width: 0; flex: 1 1 auto; }
.bb-cl.bb-phl { font-size: 12.5px; }
.bb-cl.bb-phl > .l-name > b { font-size: 20px; letter-spacing: .5px; text-transform: uppercase; }
/* BLACKVAULT's card header: the five lines beside the picture, the grade pill on the picture's foot */
.bv-cart { flex: 0 0 auto; }
.bv-cl { font-size: calc(10.5px + 2pt + var(--bv-up2)); color: #a6a6a6; letter-spacing: .4px; }
.bv-cl > .l-name > b { font-size: calc(17px + 4pt); letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.bv-cl > .l-name > i { font-size: .85em; }
.bv-cart > .pf-gbadge { margin-top: -9px; height: 16px; line-height: 14px; font-size: calc(8.5px + var(--bv-up)); }
@media (max-width: 760px) {
  .bv-cl { font-size: calc(11.5px + var(--bv-up)); }
  .bv-cl > .l-name > b { font-size: calc(16px + var(--bv-up2)); }
}
body.mv .bv-cart { order: 1; }
body.mv .bv-cl { font-size: calc(11.5px + var(--bv-up)); }
body.mv .bv-cl > .l-name > b { font-size: calc(16px + var(--bv-up2)); }
body.mv .bv-cl > .l-name > i { display: none; }
body.mv .bv-cart > .bv-thumb { order: 0; }

/* ---- ROUND 79 · BLACKMARKT lists a card the BLACKPORT way (operator 2026-10-15): the five lines under the name, the grader
   + grade pill on the picture, the BL pre-grade + Job# on line 5 ---- */
.cl5.mk-cl { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3, #9a9a9a); line-height: 1.32; }
.cl5.mk-cl span { font-size: inherit; }
.cl5.mk-cl > .l-name > b { font-size: calc(13px * var(--pf-fs, 1)); }
.cl5.mk-cl > .l-name > em.mk-q { font-size: calc(11px * var(--pf-fs, 1)); }
.cl5.mk-tcl > .l-name > b { font-size: calc(14.5px * var(--pf-fs, 1)); }
.cl5.mk-tcl { font-size: calc(11.5px * var(--pf-fs, 1)); }
.cl5.mk-lcl { margin-top: 6px; font-size: calc(12.5px * var(--pf-fs, 1)); gap: 1px; }
.cl5.mk-dcl > .l-name > b { font-size: calc(15px * var(--pf-fs, 1)); }
.cl5.mk-pcl > .l-name > b { font-size: calc(12px * var(--pf-fs, 1)); }
.cl5.mk-pcl { font-size: calc(10.5px * var(--pf-fs, 1)); }
.mk-pcard .cl5 > span { white-space: nowrap; }
.mk-iln { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mk-icert, .mk-lfv { font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink2, #bdbdbd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-items > li { align-items: flex-start; }
.mk-items > li > .mk-sart { align-self: center; }
.mk-dcard > .mk-iln { flex: 1 1 auto; }
/* the small pictures' pill: a readable size, still net zero height */
.mk-sart .pf-gbadge { margin: -10px 0 -5px; height: 15px; line-height: calc(13px * var(--pf-fs, 1)); font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: .3px; max-width: none; }
.mk-sart .pf-gbadge b, .mk-sart .pf-gbadge i { padding: 0 3px; }
.cl5.mk-cl .l-job { color: #cfcfcf; }
/* a phone's BLACKBOARD rows (one pane at a time): the rank, the grade and the score take less, the five lines more —
   the full Job# fits beside its BL pill */
@media (max-width: 900px) {
  .bb-row, .bb-prep { gap: 7px; padding: 7px 8px; }
  .bb-row .bb-rg, .bb-prep .bb-rg { flex: 0 0 42px; }
  .bb-row .bb-rs, .bb-prep .bb-rs { flex: 0 0 auto; min-width: 46px; }
  .bb-row .bb-rs b, .bb-prep .bb-rs b { font-size: 16px; }
  .bb-row .bb-rs i, .bb-prep .bb-rs i { font-size: 8px; }
}
/* ROUND 81 · the list rows (TOP HOLDINGS · MOVERS · BEST / WORST · TOP SALES · BEST SALES): the name, then its language
   pill and grade pill on the same line — the pills sit inside the name's line height, the row does not grow */
#view-port .pf-list .pf-ln > .pf-nmrow { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: inherit; }
#view-port .pf-list .pf-ln > .pf-nmrow > b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-port .pf-list .pf-ln > .pf-nmrow > .pf-lang { flex: none; margin: 0; padding: 0 4px; font-size: calc(8.5px * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); letter-spacing: .4px; }
#view-port .pf-list .pf-ln > .pf-nmrow > .pf-gbadge { flex: none; position: static; margin: 0; height: calc(14px * var(--pf-fs, 1)); max-width: none; align-self: center; box-shadow: none;
  font-size: calc(8.5px * var(--pf-fs, 1)); line-height: calc(12px * var(--pf-fs, 1)); letter-spacing: .3px; }
#view-port .pf-list .pf-ln > .pf-nmrow > .pf-gbadge > b, #view-port .pf-list .pf-ln > .pf-nmrow > .pf-gbadge > i { display: block; padding: 0 4px; font-size: inherit; line-height: inherit;
  font-weight: 800; letter-spacing: inherit; overflow: visible; text-overflow: clip; }
#view-port .pf-list li.on .pf-ln .pf-gbadge b::after { content: none; }
#view-port .pf-list .pf-ln > .pf-nmrow > .pf-gbadge { border-color: #4a4a4a; }               /* the black grader half reads on the dark row */
/* a phone's PERFORMANCE chart head: the legend over the window's range and change — the change used to run past the
   screen's right edge beside a three-row legend */
.pf-app.ph .pf-charthead { flex-wrap: wrap; row-gap: 6px; }
.pf-app.ph .pf-charthead > .pf-legend { flex: 1 1 100%; }
.pf-app.ph .pf-charthead > .pf-headr { flex: 1 1 100%; min-width: 0; justify-content: space-between; flex-wrap: wrap; row-gap: 4px; }
/* ROUND 86 · WHAT CAN BE PRESSED LOOKS PRESSABLE (operator 2026-10-15: 'people do not know what is clickable, and what is
   not — make the dropdowns, filter pills and numbers look professional, in BLACKLENS' schema'). A computer's BLACKPORT:
   every control is a raised surface (a lighter top edge, a border, a shadow) with a hover, a pressed state and a focus
   ring; a dropdown carries its red chevron handle; a filter is a rounded pill with its count in a badge, the picked one
   red; the figures are plain type under small captions — no border, no fill, nothing that reads as a button. */
#view-port .pf-app:not(.ph) { --ctl-bg: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%); --ctl-bg-hi: linear-gradient(180deg, #333 0%, #262626 100%);
  --ctl-line: #575757; --ctl-line-hi: #8f8f8f; --ctl-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45); }
/* the tabs: a hover on the ones not picked, the picked one lit */
#view-port .pf-app:not(.ph) .pf-segs button { transition: background .12s, color .12s; }
#view-port .pf-app:not(.ph) .pf-segs button:not(.on):hover { background: #262626; color: #fff; }
#view-port .pf-app:not(.ph) .pf-segs button.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 12px rgba(220, 79, 76, .35); }
#view-port .pf-app:not(.ph) .pf-segs button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* the filter pills (TCG on OVERVIEW / PERFORMANCE, TCG on CARDS) */
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm { height: 34px; padding: 0 6px 0 13px; gap: 8px; border-radius: 999px; background: var(--ctl-bg);
  border: 1px solid var(--ctl-line); color: #ededed; box-shadow: var(--ctl-shadow); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s;
  font-size: calc(12px * var(--pf-fs, 1)); }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm > b { font-weight: 600; letter-spacing: .2px; }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm > i { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: #3a3a3a; color: #d6d6d6; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; line-height: 1; }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm:not(.on):hover { background: var(--ctl-bg-hi); border-color: var(--ctl-line-hi); }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm:active { transform: translateY(1px); }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm.on { background: linear-gradient(180deg, #e25a57 0%, #d04744 100%); border-color: #e86b68; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 12px rgba(220, 79, 76, .38); }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm.on > i { background: rgba(0, 0, 0, .28); color: #fff; }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#view-port .pf-app:not(.ph) .pf-glbl { font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.8px; color: #8c8c8c; }
/* SHOW (CARDS): the same pill shape and count badge — its colours stay (SINGLES red · BATCHES gold · GRADED blue · PRE-GRADED dark blue) */
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm { height: 34px; padding: 0 6px 0 13px; gap: 8px; border-radius: 999px; cursor: pointer; font-size: calc(12px * var(--pf-fs, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45); transition: filter .12s, box-shadow .12s; }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm > b { font-weight: 600; }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm > i { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box;
  border-radius: 999px; background: rgba(0, 0, 0, .3); color: inherit; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; line-height: 1; opacity: 1; }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm:not(:disabled):hover { filter: brightness(1.25); }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm:not(.single):not(.batch):not(.graded):not(.pregraded):not(.on) { background: var(--ctl-bg); border-color: var(--ctl-line); color: #ededed; }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 12px rgba(0, 0, 0, .45); }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm:disabled { cursor: default; box-shadow: none; }
/* a narrower computer keeps SHOW on one line: tighter pills */
@media (max-width: 1500px) {
  #view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games, #pf-show) .pf-chip.sm { padding: 0 4px 0 9px; gap: 5px; }
  #view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games, #pf-show) .pf-chip.sm > i { min-width: 18px; height: 20px; padding: 0 5px; }
  #view-port .pf-app:not(.ph) :is(#pf-games, #pf-show) { column-gap: 5px; }
}
@media (max-width: 1400px) {
  #view-port .pf-app:not(.ph) :is(#pf-games, #pf-show) > .pf-glbl { width: 34px; }
  #view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games, #pf-show) .pf-chip.sm { padding: 0 3px 0 8px; gap: 4px; }
  #view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games, #pf-show) .pf-chip.sm > i { min-width: 16px; padding: 0 4px; }
  #view-port .pf-app:not(.ph) :is(#pf-games, #pf-show) { column-gap: 4px; }
}
/* PERFORMANCE: PAID opens the cards without a price, the gain tiles switch the chart — buttons, said by a hover and an
   arrow; VALUE is a figure */
#view-port .pf-app:not(.ph) :is(#pf-paidbox, #pf-unrealbox, #pf-realbox) { cursor: pointer; position: relative; transition: border-color .12s, background .12s; }
#view-port .pf-app:not(.ph) :is(#pf-paidbox, #pf-unrealbox, #pf-realbox) * { cursor: pointer; }
#view-port .pf-app:not(.ph) :is(#pf-paidbox, #pf-unrealbox, #pf-realbox):hover { border-color: #8f8f8f; filter: brightness(1.08); }
#view-port .pf-app:not(.ph) #pf-paidbox::after { content: '›'; position: absolute; right: 12px; top: 50%; transform: translateY(-55%); font-size: calc(22px * var(--pf-fs, 1)); line-height: 1; color: #8c8c8c; }
#view-port .pf-app:not(.ph) #pf-paidbox:hover::after { color: #fff; }
#view-port .pf-app:not(.ph) #pf-valuebox, #view-port .pf-app:not(.ph) #pf-valuebox * { cursor: default; }
/* the dropdowns (FOLDER · LANGUAGE): a field with a caption, its value and a red chevron handle */
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) { height: 34px; padding: 0 3px 0 12px; gap: 9px; border-radius: 10px; background: var(--ctl-bg);
  border: 1px solid var(--ctl-line); color: #fff; box-shadow: var(--ctl-shadow); cursor: pointer; transition: border-color .12s, background .12s; }
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel):hover { background: var(--ctl-bg-hi); border-color: var(--accent); }
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > i { color: #f07a77; font-weight: 700; letter-spacing: 1.5px; font-size: calc(8.5px * var(--pf-fs, 1)); }
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > b { color: #fff; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 600; }
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) > em { color: #9d9d9d; font-size: calc(10.5px * var(--pf-fs, 1)); }
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel) .pf-chev { flex: 0 0 auto; width: 28px; height: 26px; margin-left: auto; padding: 7px 8px; box-sizing: border-box;
  border-radius: 7px; background: var(--accent); stroke: #fff; stroke-width: 2.4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel):hover .pf-chev { background: #e8625f; }
#view-port .pf-app:not(.ph) :is(#pf-lsel, #pf-lsel2, #pf-lsel3).on { background: linear-gradient(180deg, #3a1d1c 0%, #2a1514 100%); border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 2px 6px rgba(0, 0, 0, .45); }
#view-port .pf-app:not(.ph) :is(#pf-fsel, #pf-fsel2, #pf-fsel3, .pf-lsel):focus-visible, #view-port .pf-app:not(.ph) .pf-lsel:has(select:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
/* the eye: a square control of the same height */
#view-port .pf-app:not(.ph) :is(.pf-herorow, .pf-herorow2) > .pf-eye, #view-port .pf-app:not(.ph) .pf-eye { width: 34px; height: 34px; border-radius: 10px; background: var(--ctl-bg); border: 1px solid var(--ctl-line); color: #dcdcdc; box-shadow: var(--ctl-shadow); cursor: pointer; }
#view-port .pf-app:not(.ph) .pf-eye:hover { background: var(--ctl-bg-hi); border-color: var(--ctl-line-hi); color: #fff; }
#view-port .pf-app:not(.ph) .pf-eye.off { color: #7a7a7a; }
/* the figures: captions over plain type — never a box */
#view-port .pf-tl > .pf-cap, #view-port .pf-pl > .pf-cap { display: block; font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.8px; color: #8c8c8c;
  margin: 0 0 3px; white-space: nowrap; cursor: default; }
#view-port .pf-totalrow, #view-port .pf-totalrow * { cursor: default; }
#view-port .pf-app:not(.ph) .pf-totalrow { align-items: flex-start; padding: 4px 2px 2px; }
#view-port .pf-app:not(.ph) #pf-pl .pf-change { margin-top: 8px; gap: 7px; }
#view-port .pf-app:not(.ph) #pf-pl .pf-change:not(.muted)::before { content: attr(data-p); font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.6px; color: #8c8c8c; }
#view-port .pf-app:not(.ph) #pf-pl .pf-change em { background: none !important; padding: 0; font-size: calc(12px * var(--pf-fs, 1)); }
#view-port .pf-app:not(.ph) #pf-pl .pf-change em::before { content: '('; } #view-port .pf-app:not(.ph) #pf-pl .pf-change em::after { content: ')'; }
#view-port .pf-app:not(.ph) #pf-plpct { color: #bdbdbd; }
#view-port .pf-app:not(.ph) #pf-pl.up #pf-plpct { color: var(--pf-pos); } #view-port .pf-app:not(.ph) #pf-pl.down #pf-plpct { color: var(--pf-neg); }
/* BLACKSALES opens SOLD ITEMS: a button, said so by its hover and its arrow */
#view-port .pf-app:not(.ph) .pf-salesbar { cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .4); transition: border-color .12s, background .12s; }
#view-port .pf-app:not(.ph) .pf-salesbar * { cursor: pointer; }
#view-port .pf-app:not(.ph) .pf-salesbar .pf-salesgo { margin-left: auto; display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid #ab9b6f;
  color: #f0e2b3; font-size: calc(10px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.4px; background: rgba(171, 155, 111, .12); }
#view-port .pf-app:not(.ph) .pf-salesbar:hover .pf-salesgo { background: #ab9b6f; color: #111; }
/* ROUND 92 (operator 2026-10-16) · SOLD ITEMS at the chart's bottom-right corner, beside the time pills (the BLACKSALES row
   is gone): a gold pill like the sales' gold, the cards sold in its badge */
.pf-chartfoot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pf-chartfoot > .pf-periods { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.pf-soldgo { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 14px; border-radius: 999px; border: 1px solid #ab9b6f;
  background: linear-gradient(180deg, #2d2616 0%, #17130b 100%); color: #f1e6c8; font: inherit; font-family: var(--menu-font); font-stretch: 87.5%; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(241, 230, 200, .1), 0 2px 8px rgba(0, 0, 0, .45); transition: transform .12s, border-color .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; }
.pf-soldgo[hidden] { display: none; }
.pf-soldgo > b { font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.4px; white-space: nowrap; }
.pf-soldgo > i { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px;
  background: rgba(171, 155, 111, .28); font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; }
.pf-soldgo > span { font-size: calc(17px * var(--pf-fs, 1)); line-height: 1; opacity: .7; transition: transform .12s, opacity .12s; }
.pf-soldgo:hover { border-color: #e2d3a4; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(241, 230, 200, .14), 0 6px 14px rgba(171, 155, 111, .22); }
.pf-soldgo:hover > span { opacity: 1; transform: translateX(2px); }
.pf-soldgo:active { transform: translateY(1px); }
.pf-soldgo:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* a phone: the pills keep the whole line, SOLD ITEMS under them at the right */
.pf-app.ph .pf-chartfoot { flex-wrap: wrap; row-gap: 8px; }
.pf-app.ph .pf-chartfoot > .pf-periods { flex: 1 1 100%; }
.pf-app.ph .pf-soldgo { height: 34px; }
/* ROUND 90 (operator 2026-10-16) · REALIZED P/L's BEST revenue in the bars' gold · a time pill picked = the BLACKLENS red
   (every period row) · the quick buttons as raised controls: a card red, a batch gold, the rest the controls' grey */
#view-port #pf-rl > #pf-rlbest span.rev { color: var(--pf-gold); }
#view-port .pf-periods button { transition: background .12s, color .12s; }
#view-port .pf-periods button:not(.on):hover { background: #1f1f1f; color: #fff; }
#view-port .pf-periods button.on { background: linear-gradient(180deg, #e2625f 0%, #c8423f 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 8px rgba(220, 79, 76, .35); }
#view-port .pf-periods button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pf-chartbox svg.bars .xl.fut { fill: #4f4f4f; }
#view-port .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn) { position: relative; justify-content: flex-start; gap: 10px; padding: 0 14px 0 8px; border-radius: 12px;
  font-weight: 800; letter-spacing: 1.4px; border: 1px solid #575757; background: linear-gradient(180deg, #2d2d2d 0%, #1f1f1f 100%); color: #f2f2f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px rgba(0, 0, 0, .45); transition: transform .12s, box-shadow .12s, border-color .12s, background .12s; }
#view-port .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn) > svg { width: 28px; height: 28px; padding: 6px; box-sizing: border-box; border-radius: 8px; background: #3b3b3b; flex: none; }
#view-port .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn)::after { content: '›'; margin-left: auto; padding-left: 10px; font-size: calc(19px * var(--pf-fs, 1)); font-weight: 400; line-height: 1; opacity: .5; transition: opacity .12s, transform .12s; }
#view-port .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn):hover { transform: translateY(-1px); border-color: #a0a0a0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 7px 16px rgba(0, 0, 0, .5); }
#view-port .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn):hover::after { opacity: 1; transform: translateX(2px); }
#view-port .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn):active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55); }
#view-port .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* ADD A CARD: a single card = the red */
#view-port .pf-quick > #pf-addbtn { border-color: #ee7a77; background: linear-gradient(180deg, #e8625f 0%, #c63f3c 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 10px rgba(220, 79, 76, .35); }
#view-port .pf-quick > #pf-addbtn > svg { background: rgba(0, 0, 0, .2); }
#view-port .pf-quick > #pf-addbtn:hover { border-color: #ffb3b1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px rgba(220, 79, 76, .45); }
/* ADD A BATCH: a batch = the gold */
#view-port .pf-quick > #pf-addbatch { border-color: #ab9b6f; background: linear-gradient(180deg, #2d2616 0%, #17130b 100%); color: #f1e6c8; box-shadow: inset 0 1px 0 rgba(241, 230, 200, .1), 0 3px 10px rgba(0, 0, 0, .45); }
#view-port .pf-quick > #pf-addbatch > svg { background: rgba(171, 155, 111, .24); color: #f1e6c8; }
#view-port .pf-quick > #pf-addbatch:hover { border-color: #e2d3a4; box-shadow: inset 0 1px 0 rgba(241, 230, 200, .14), 0 8px 18px rgba(171, 155, 111, .22); }
/* SOLD ITEMS opens the sales: its icon in the sales' gold */
#view-port .pf-quick > #pf-soldbtn > svg { color: #e7d9a8; background: rgba(171, 155, 111, .18); }
/* a phone: the same look, tighter — no tile, no arrow (three a row) */
#view-port .pf-app.ph .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn) { justify-content: center; gap: 5px; padding: 0 6px; letter-spacing: .8px; }
#view-port .pf-app.ph .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn) > svg { width: 16px; height: 16px; padding: 0; background: none; }
#view-port .pf-app.ph .pf-quick > :is(#pf-addbtn, #pf-addbatch, #pf-newfolder, #pf-soldbtn)::after { content: none; }
/* ROUND 89 (operator 2026-10-16) · BLACKBOARD UNDER REVISION — the page anyone but the two open accounts lands on */
#view-board.bb-revising > :not(#bb-revision) { display: none !important; }
#view-board:not(.bb-revising) > #bb-revision { display: none; }
#view-board.bb-revising.active { overflow: auto; }
.bb-revision { min-height: calc(100vh - 110px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
body.mv .bb-revision { min-height: calc(100vh - var(--mvh, 52px) - 120px); }
.bb-revcard { width: min(100%, 560px); padding: 34px 32px 30px; border-radius: 18px; text-align: center; box-sizing: border-box;
  background: radial-gradient(120% 90% at 50% 0%, rgba(201, 185, 139, .10), transparent 60%), #141414; border: 1px solid #5c5340;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 40px rgba(0, 0, 0, .5); }
.bb-revico { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; background: #0e0e0e; border: 1px solid #5c5340; color: #c9b98b; }
.bb-revico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.bb-revtag { display: table; margin: 16px auto 0; padding: 4px 12px; border-radius: 999px; border: 1px solid #ab9b6f; background: rgba(171, 155, 111, .14);
  font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 2.2px; color: #e7d9a8; }
.bb-revcard h2 { margin: 12px 0 10px; font-family: var(--rep-font); font-size: 30px; font-weight: 300; letter-spacing: 3px; color: #f2f2f2; }
.bb-revcard h2 b { font-weight: 800; color: #fff; }
.bb-revcard p { margin: 0 auto 10px; max-width: 440px; font-size: 14.5px; line-height: 1.55; color: #cfcfcf; }
.bb-revcard p.bb-revsub { font-size: 13px; color: #9a9a9a; }
.bb-revgo { margin-top: 12px; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: 12px; border: 1px solid #ab9b6f;
  background: linear-gradient(180deg, #2a2414, #1a160c); color: #f1e6c8; font: inherit; font-family: var(--rep-font); font-size: 13px; font-weight: 800; letter-spacing: 1.8px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 10px rgba(0, 0, 0, .45); transition: background .12s, color .12s; }
.bb-revgo:hover { background: #ab9b6f; color: #111; }
.bb-revgo:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bb-revgo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
body.mv .bb-revcard { padding: 26px 20px 24px; }
body.mv .bb-revcard h2 { font-size: 25px; }
body.mv .bb-revgo { width: 100%; justify-content: center; }
/* the sections of OVERVIEW / PERFORMANCE fold on a computer: a chevron in the head, the head a button */
.pf-foldbtn { display: none; }
#view-port .pf-app:not(.ph) .pf-list.pf-foldable > .pf-lh { cursor: pointer; justify-content: flex-start; user-select: none; }
#view-port .pf-app:not(.ph) .pf-list.pf-foldable > .pf-lh > :last-child:not(:first-child):not(b) { margin-left: auto; }
#view-port .pf-app:not(.ph) .pf-list.pf-foldable > .pf-lh > .pf-foldbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin: 0 2px 0 -4px;
  padding: 0; border: 0; border-radius: 6px; background: none; color: #8c8c8c; cursor: pointer; }
#view-port .pf-app:not(.ph) .pf-list.pf-foldable > .pf-lh > .pf-foldbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
#view-port .pf-app:not(.ph) .pf-list.pf-foldable > .pf-lh:hover > .pf-foldbtn { color: #fff; background: #2a2a2a; }
#view-port .pf-app:not(.ph) .pf-list.pf-foldable > .pf-lh:hover > b { color: #fff; }
#view-port .pf-app:not(.ph) .pf-list.pf-foldable > .pf-lh > .pf-foldbtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
#view-port .pf-app:not(.ph) .pf-list.folded > .pf-lh > .pf-foldbtn svg { transform: rotate(-90deg); }
#view-port .pf-app:not(.ph) .pf-list.folded > :not(.pf-lh) { display: none !important; }
#view-port .pf-app:not(.ph) .pf-list.folded { padding-bottom: 9px; }
#view-port .pf-app:not(.ph) .pf-list.folded > .pf-lh { margin-bottom: 0; }
/* a phone's jump menu: small pills at the top right, under the sticky header; the section in view lit */
.pf-jump { display: none; }
#view-port .pf-app.ph .pf-jump:not([hidden]) { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; position: fixed; z-index: 45;
  right: 6px; top: calc(var(--mvh, 52px) + var(--pf-toph, 52px) + 8px); padding: 5px; border-radius: 12px;
  background: rgba(12, 12, 12, .78); border: 1px solid #333; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#view-port .pf-app.ph .pf-jump button { min-width: 44px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid #4a4a4a; background: #222; color: #e6e6e6;
  font: inherit; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: 10px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#view-port .pf-app.ph .pf-jump button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
#view-port .pf-app.ph .pf-jump button:active { filter: brightness(1.25); }
#view-port .pf-app.ph .pf-jump .pf-jtuck { min-width: 24px; width: 24px; padding: 0; border-color: #3a3a3a; background: #161616; color: #9a9a9a; font-size: 14px; line-height: 1; }
#view-port .pf-app.ph .pf-jump.tucked { padding: 3px; }
/* ROUND 88 (operator 2026-10-16) · the 2- and 3-column tiles: 'VALUE' and its figure (PAID and its) always on ONE line — a
   grid, not a wrapping row: the caption takes its width, an EST / MARKET tag sits beside it (shrinking first), the figure
   takes the rest (up to the 8-figure room it reserved); the tile never grows for it */
body:not(.mv) #view-port .pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) { display: grid; grid-template-columns: max-content minmax(0, max-content) minmax(min-content, 1fr); align-items: center; column-gap: 0; }
body:not(.mv) #view-port .pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > i { grid-column: 1; margin-right: 0; }
body:not(.mv) #view-port .pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > b { grid-column: 3; grid-row: 1; justify-self: end; min-width: min(10.6ch, 100%); }
body:not(.mv) #view-port .pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > .pf-si { grid-column: 2; grid-row: 1; justify-self: start; margin-right: 6px; min-width: 0; max-width: 100%; }
/* a tile of 200 px or less (3 columns at 1366): no room for a tag beside the caption — it drops under the figure (as before) */
@container pftile (max-width: 200px) { body:not(.mv) #view-port .pf-cards.c4:is(.n4, .n6):not(.ph) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > .pf-si { grid-column: 3; grid-row: 2; justify-self: end; margin: 0; } }
/* ROUND 87 (operator 2026-10-16) · OVERVIEW's hero in three columns — PORTFOLIO VALUE · UNREALIZED P/L · REALIZED P/L —
   the two P/L columns are buttons that switch the chart (lit in their chart's colour: green the price trend, gold the
   twelve months of sales against cost); a phone lays the value over the two */
#view-port .pf-totalrow.c3 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
#view-port .pf-totalrow.c3 .pf-tl { container-type: inline-size; align-self: start; }
#view-port .pf-totalrow.c3 .pf-total { font-size: min(calc(40px * var(--pf-fs, 1)), 16cqw); }
#view-port .pf-totalrow.c3 .pf-pl { width: auto; max-width: none; min-width: 0; align-items: flex-end; align-self: stretch; container-type: inline-size; }
#view-port .pf-totalrow.c3 .pf-pl > b { font-size: min(calc(29px * var(--pf-fs, 1)), 14cqw); max-width: 100%; }
#view-port .pf-totalrow .pf-pl.btn { padding: 8px 12px 10px; border-radius: 12px; border: 1px solid #3a3a3a; background: linear-gradient(180deg, #212121 0%, #1a1a1a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .4); transition: border-color .12s, background .12s; }
#view-port .pf-totalrow .pf-pl.btn, #view-port .pf-totalrow .pf-pl.btn * { cursor: pointer; }
#view-port .pf-totalrow .pf-pl.btn:hover { border-color: #8f8f8f; }
#view-port .pf-totalrow .pf-pl.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#view-port .pf-totalrow .pf-pl.btn.on { border-color: var(--pf-pos); background: linear-gradient(180deg, rgba(126, 212, 166, .11), rgba(126, 212, 166, .02) 70%) var(--pf-panel); box-shadow: inset 0 0 0 1px rgba(126, 212, 166, .4); }
#view-port .pf-totalrow .pf-rl.btn { border-color: #5c5340; }
#view-port .pf-totalrow .pf-rl.btn:hover { border-color: #ab9b6f; }
#view-port .pf-totalrow .pf-rl.btn.on { border-color: var(--pf-gold); background: linear-gradient(180deg, rgba(226, 192, 107, .13), rgba(226, 192, 107, .02) 70%) var(--pf-panel); box-shadow: inset 0 0 0 1px rgba(226, 192, 107, .42); }
/* the caption carries the chart marker: ▸ CHART at rest, ● CHART in the box's colour while its chart shows */
#view-port .pf-totalrow .pf-pl.btn > .pf-cap { display: flex; align-self: stretch; justify-content: space-between; gap: 8px; }
#view-port .pf-totalrow .pf-pl.btn > .pf-cap::before { content: '▸ CHART'; font-size: calc(7.5px * var(--pf-fs, 1)); letter-spacing: 1.4px; color: #6f6f6f; }
#view-port .pf-totalrow .pf-pl.btn.on > .pf-cap { color: #fff; }
#view-port .pf-totalrow .pf-pl.btn.on > .pf-cap::before { content: '● CHART'; color: var(--pf-pos); }
#view-port .pf-totalrow .pf-rl.btn > .pf-cap { color: #e7d9a8; }
#view-port .pf-totalrow .pf-rl.btn.on > .pf-cap::before { color: var(--pf-gold); }
/* REALIZED P/L's lines: the figure in its sign's colour; BEST · amount in month; the window against the average */
#view-port #pf-rl > #pf-rlbest { color: #bdbdbd; font-weight: 600; }
#view-port #pf-rl > #pf-rlbest i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.6px; color: #8c8c8c; }
#view-port #pf-rl > #pf-rlbest span { font-weight: 700; }
#view-port #pf-rl > #pf-rlbest span.up { color: var(--pf-pos); } #view-port #pf-rl > #pf-rlbest span.down { color: var(--pf-neg); }
#view-port #pf-rl .pf-change[hidden] { display: none; }
#view-port #pf-rl .pf-change.up b { color: var(--pf-pos); } #view-port #pf-rl .pf-change.down b { color: var(--pf-neg); } #view-port #pf-rl .pf-change.flat b { color: var(--pf-ink3); }
#view-port #pf-rl .pf-change b em.up { color: var(--pf-pos); } #view-port #pf-rl .pf-change b em.down { color: var(--pf-neg); } #view-port #pf-rl .pf-change b em.flat { color: #bdbdbd; }
#view-port .pf-app:not(.ph) #pf-rl .pf-change { margin-top: 8px; gap: 7px; }
#view-port .pf-app:not(.ph) #pf-rl .pf-change:not(.muted)::before { content: attr(data-p); font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.6px; color: #8c8c8c; white-space: nowrap; }
#view-port .pf-app:not(.ph) #pf-rl .pf-change em { background: none !important; padding: 0; font-size: calc(12px * var(--pf-fs, 1)); }
#view-port .pf-app:not(.ph) #pf-rl .pf-change em::before { content: '('; } #view-port .pf-app:not(.ph) #pf-rl .pf-change em::after { content: ')'; }
/* the window's line sits at the foot of its box, so the two boxes read level when one line wraps */
#view-port .pf-app .pf-totalrow.c3 > :is(#pf-pl, #pf-rl) > .pf-change { margin-top: auto; padding-top: 8px; }
#view-port .pf-app.ph .pf-totalrow.c3 > :is(#pf-pl, #pf-rl) > .pf-change { padding-top: 5px; }
/* a narrow column wraps the window's line under its caption rather than cutting it */
#view-port .pf-totalrow.c3 .pf-pl .pf-change { flex-wrap: wrap; row-gap: 2px; justify-content: flex-end; max-width: 100%; }
#view-port .pf-totalrow.c3 .pf-pl .pf-change b { flex-wrap: wrap; justify-content: flex-end; row-gap: 1px; max-width: 100%; }
/* a phone: the value on its own line, the two P/L boxes side by side under it */
#view-port .pf-app.ph .pf-totalrow.c3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
#view-port .pf-app.ph .pf-totalrow.c3 .pf-tl { grid-column: 1 / -1; }
#view-port .pf-app.ph .pf-totalrow.c3 .pf-pl { padding: 8px 10px 9px; }
#view-port .pf-app.ph .pf-totalrow.c3 .pf-pl > b { font-size: min(calc(22px * var(--pf-fs, 1)), 13cqw); }
/* the chart head's legend (bars only) — square swatches like the bars */
.pf-blegend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 auto 0 14px; }
.pf-blegend[hidden] { display: none; }
.pf-blegend em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 1.4px; font-weight: 600; color: var(--pf-ink2); white-space: nowrap; }
.pf-blegend em::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--pf-gold); }
.pf-blegend em.l::before { background: var(--pf-neg); }
.pf-blegend em.c::before { background: var(--pf-cost); }
.pf-app.ph .pf-blegend { margin: 0; order: 3; flex-basis: 100%; }
/* the head wraps rather than cut the window's months when the legend shows */
.pf-charthead:has(> .pf-blegend:not([hidden])) { flex-wrap: wrap; row-gap: 6px; }
.pf-charthead:has(> .pf-blegend:not([hidden])) > #pf-read { margin-left: auto; }
/* the twelve months as bars: SALES gold (red under their cost) beside COST light grey — PERFORMANCE's colours */
.pf-chartbox svg.bars { cursor: default; }
.pf-chartbox svg.bars .bs { fill: var(--pf-gold); }
.pf-chartbox svg.bars .bs.lo { fill: var(--pf-neg); }
.pf-chartbox svg.bars .bc { fill: var(--pf-cost); }
.pf-chartbox svg.bars .bcol { fill: #fff; fill-opacity: 0; }
.pf-chartbox svg.bars .bcol.on { fill-opacity: .05; }
.pf-chartbox svg.bars .bl { font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .2px; fill: #d9d9d9; paint-order: stroke; stroke: #171717; stroke-width: 3px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.pf-chartbox svg.bars .bl.up { fill: var(--pf-pos); } .pf-chartbox svg.bars .bl.down { fill: var(--pf-neg); }
.pf-chartbox svg.bars .xl.now { fill: #fff; font-weight: 700; }
.pf-ctip.real.bars .pf-ctr.v.dn i::before { background: var(--pf-neg); }
.pf-ctip.bars .pf-ctr.n { justify-content: flex-start; line-height: calc(16px * var(--pf-fs, 1)); }
.pf-ctip.bars .pf-ctr.n i { color: #8c8c8c; font-size: calc(8.5px * var(--pf-fs, 1)); }
.pf-ctip.bars .pf-ctr.g b em { font-style: normal; font-weight: 600; font-size: calc(11px * var(--pf-fs, 1)); }
/* ROUND 85 · the list rows: the grade pill BEFORE the name, the language pill at the head of line 2, and MOVERS / BEST /
   WORST / BEST SALES tinted by their sign — green up, red down (operator 2026-10-15) */
#view-port .pf-list .pf-ln > .pf-lsub > .pf-lang { display: inline-block; margin: 0 5px 0 0; padding: 0 4px; font-size: calc(8.5px * var(--pf-fs, 1)); line-height: calc(11px * var(--pf-fs, 1));
  letter-spacing: .4px; vertical-align: calc(1px * var(--pf-fs, 1)); }
#view-port .pf-app .pf-list li:is(.tint-up, .tint-down), #view-port .pf-app:not(.ph) .pf-col2 .pf-list li:is(.tint-up, .tint-down) { border-top: 0; margin-top: 4px; padding-left: 10px; padding-right: 8px; border-radius: 9px; }
#view-port .pf-app .pf-list li:is(.tint-up, .tint-down):first-child, #view-port .pf-app:not(.ph) .pf-col2 .pf-list li:is(.tint-up, .tint-down):first-child { margin-top: 0; }
#view-port .pf-list li.tint-up { background: #10251a; box-shadow: inset 3px 0 0 #2f7a52; }
#view-port .pf-list li.tint-down { background: #2a1413; box-shadow: inset 3px 0 0 #8a3330; }
#view-port .pf-list li.tint-up .pf-wn i, #view-port .pf-list li.tint-down .pf-wn i { color: #a9a9a9; }
/* BEST / WORST keep WAS / NOW on BY FOLDER's start: the row's 8 px side padding comes out of the name column */
#view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li.tint-up:not(.pf-empty), #view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li.tint-down:not(.pf-empty) { grid-template-columns: 28px calc(100% - 236px) minmax(0, 1fr) auto; }
/* ROUND 82 · BY FOLDER's card counts and BEST / WORST's WAS / NOW start 196 px from the row's right edge (they started at
   the row's centre) — the names get the room (operator 2026-10-15: 'move the middle column more to the right, to see
   more of the name'); both lists keep one start, so the columns still line up */
#view-port .pf-app:not(.ph) #pf-byfolder > li { grid-template-columns: calc(100% - 196px) minmax(0, 1fr) auto; }
#view-port .pf-app:not(.ph) #pf-byfolder > li > .pf-bar { width: min(120px, calc(100% - 208px)); }
#view-port .pf-app:not(.ph) .pf-col2 .pf-wnlist > li:not(.pf-empty) { grid-template-columns: 28px calc(100% - 244px) minmax(0, 1fr) auto; }

/* ---- ROUND 94 (operator 2026-10-16): SALES STATEMENTS sits in the PERFORMANCE chart's foot like OVERVIEW's SOLD ITEMS —
   the pills' own margin (an id rule) would drop them 8 px under the pill; an idle progress line takes no room ---- */
.pf-chartfoot > #pf-periods2 { margin-top: 0; }
.pf-when:empty { display: none; }







/* ============================================================================================================
   ROUND 98 · ONE SEARCH MODULE (operator 2026-10-16 with the four search screens and the OVERVIEW hero: 'ensure all
   the search modules look the same from every page — more professional; the Grading Submission card on the same
   schema, its colours kept, buttons telling themselves apart from what is not clickable'). The OVERVIEW hero's
   controls (round 86) are the schema: a CHIP is a raised pill (the picked one the BLACKLENS red with a glow), a
   FIELD is a raised box carrying its caption inside at the top and its value under it — a dropdown with the red
   chevron HANDLE at its right, a text box a darker inset WELL — and the SEARCH is the raised red button with its
   icon tile. ONE rule set serves ADD A CARD (BLACKPORT), FIND ANOTHER CARD (MY SUBMISSIONS), SEARCH CARD
   (SUBMISSION) and the INSPECTION dialog (rebuilt on the shared markup); computers only (body:not(.mv)) — a phone
   keeps its own sizes. The Grading Submission card reads the same boxes in its BLUE, its buttons raised in their
   green / grey / blue / red, a disabled button flat and dim.
   ============================================================================================================ */
body:not(.mv) :is(.pf-sform, .slabq-win, .sub-subm, .sub-listfoot, .sub-sortbar, #pt-prev .pf-sentry, .pf-sbatch) {
  --ctl-bg: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%); --ctl-bg-hi: linear-gradient(180deg, #333 0%, #262626 100%);
  --ctl-line: #575757; --ctl-line-hi: #8f8f8f; --ctl-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45);
  --well-bg: linear-gradient(180deg, #111 0%, #171717 100%); --well-line: #3f3f3f; --well-shadow: inset 0 2px 4px rgba(0, 0, 0, .45);
  --cap: #f07a77; --cap-hi: #ff9b98; --hand: var(--accent); --hand-hi: #e8625f; --focus: var(--accent); --focus-glow: rgba(220, 79, 76, .22);
  --pick-bg: linear-gradient(180deg, #e25a57 0%, #d04744 100%); --pick-line: #e86b68; --pick-ink: #fff;
  --pick-glow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 12px rgba(220, 79, 76, .38); }
.slabq-win { --pf-panel: #171717; --pf-line: #262626; --pf-ctl-line: #2c2c2c; --pf-ink: #f2f2f2; --pf-ink2: #bdbdbd; --pf-ink3: #8f8f8f; }
/* the captions over a chip row and beside a sort group */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stog > i, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort > i, body:not(.mv) #slabq .slabq-toggle > i, body:not(.mv) #view-submit .sub-sortlbl,
body:not(.mv) #pt-prev .pf-sentry .pf-stog > i, body:not(.mv) #view-port .pf-sbatch .pf-stog > i, body:not(.mv) #slabq .slabq-manual-head {
  font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.8px; color: #8c8c8c; }
/* the SEARCH button's magnifier, sized on every device (a phone keeps its own button sizes; the computer rules below enlarge it) */
.pf-sform .pf-go > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; margin-right: 7px; flex: none; }
/* ---- the chips ---- */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset .pf-chip.sm, body:not(.mv) #slabq .slabq-foot .pf-chip.sm, body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm, body:not(.mv) #view-port .pf-sbatch .pf-stogset .pf-chip.sm, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button, body:not(.mv) #view-submit .sub-sortbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--ctl-bg); border: 1px solid var(--ctl-line); color: #ededed; box-shadow: var(--ctl-shadow); font: inherit;
  font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: .3px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s, transform .05s; -webkit-tap-highlight-color: transparent; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset .pf-chip.sm:not(.on):not(:disabled):hover, body:not(.mv) #slabq .slabq-foot .pf-chip.sm:not(.on):not(:disabled):hover, body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm:not(.on):not(:disabled):hover, body:not(.mv) #view-port .pf-sbatch .pf-stogset .pf-chip.sm:not(.on):not(:disabled):hover, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button:not(.on):not(:disabled):hover, body:not(.mv) #view-submit .sub-sortbtn:not(.on):not(:disabled):hover { background: var(--ctl-bg-hi); border-color: var(--ctl-line-hi); color: #fff; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset .pf-chip.sm:not(:disabled):active, body:not(.mv) #slabq .slabq-foot .pf-chip.sm:not(:disabled):active, body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm:not(:disabled):active, body:not(.mv) #view-port .pf-sbatch .pf-stogset .pf-chip.sm:not(:disabled):active, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button:not(:disabled):active, body:not(.mv) #view-submit .sub-sortbtn:not(:disabled):active { transform: translateY(1px); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset .pf-chip.sm.on, body:not(.mv) #slabq .slabq-foot .pf-chip.sm.on, body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm.on, body:not(.mv) #view-port .pf-sbatch .pf-stogset .pf-chip.sm.on, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button.on, body:not(.mv) #view-submit .sub-sortbtn.on { background: var(--pick-bg); border-color: var(--pick-line); color: var(--pick-ink); box-shadow: var(--pick-glow); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset .pf-chip.sm:focus-visible, body:not(.mv) #slabq .slabq-foot .pf-chip.sm:focus-visible, body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm:focus-visible, body:not(.mv) #view-port .pf-sbatch .pf-stogset .pf-chip.sm:focus-visible, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button:focus-visible, body:not(.mv) #view-submit .sub-sortbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset .pf-chip.sm:disabled, body:not(.mv) #slabq .slabq-foot .pf-chip.sm:disabled, body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm:disabled, body:not(.mv) #view-port .pf-sbatch .pf-stogset .pf-chip.sm:disabled, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button:disabled, body:not(.mv) #view-submit .sub-sortbtn:disabled { opacity: .45; cursor: default; box-shadow: none; }
/* the sort groups: smaller pills beside their caption */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button, body:not(.mv) #view-submit .sub-sortbtn { height: 28px; padding: 0 11px; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort, body:not(.mv) #view-submit .sub-sortbar { gap: 6px; }
body:not(.mv) #view-submit .sub-sortnote { font-size: calc(10px + 1pt); letter-spacing: .6px; color: #8c8c8c; }
body:not(.mv) #slabq .pf-ssort[hidden] { display: none; }
/* the FIND BY row keeps the same pills (round 'FIND BY under the box' made them 24 px — one size now) */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stog:has([data-chips$="-mode"]) .pf-chip.sm { height: 30px; padding: 0 12px; font-size: calc(11.5px * var(--pf-fs, 1)); border-radius: 999px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stog:has([data-chips$="-mode"]) > i { font-size: calc(9px * var(--pf-fs, 1)); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset { gap: 5px; }
/* ---- the fields: a raised box, the caption inside at the top, the value under it ---- */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped), body:not(.mv) #slabq .slabq-mform > label, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label, body:not(.mv) #view-submit .sub-subm .slabq-fld, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]) { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 44px; box-sizing: border-box;
  padding: 5px 10px 5px 11px; min-width: 0; overflow: hidden; border-radius: 10px; background: var(--ctl-bg); border: 1px solid var(--ctl-line);
  box-shadow: var(--ctl-shadow); color: #fff; letter-spacing: 0; font-size: calc(13px * var(--pf-fs, 1)); cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped) > i, body:not(.mv) #slabq .slabq-mform > label > i, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label > i, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label > i, body:not(.mv) #view-submit .sub-subm .slabq-fld > i, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]) > i { display: block; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.5px; color: var(--cap);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
/* a dropdown: the value in the box, the red handle at the right (the pseudo-element — the native select stays the control) */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped) > select, body:not(.mv) #slabq .slabq-mform > label > select, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label > select, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label > select, body:not(.mv) #view-submit .sub-subm .slabq-fld > select, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]) > select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0;
  padding: 0 calc(var(--hand-w, 28px) + 6px) 0 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none; color: #fff;
  font: inherit; font-size: calc(13px * var(--pf-fs, 1)); font-weight: 600; line-height: 1.3; cursor: pointer; color-scheme: dark; text-overflow: ellipsis; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped) > select option, body:not(.mv) #slabq .slabq-mform > label > select option, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label > select option, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label > select option, body:not(.mv) #view-submit .sub-subm .slabq-fld > select option, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]) > select option { background: #2E2E2E; color: #F2F2F2; font-weight: 400; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(> select)::after, body:not(.mv) #slabq .slabq-mform > label:has(> select)::after, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(> select)::after, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(> select)::after, body:not(.mv) #view-submit .sub-subm .slabq-fld:has(> select)::after, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(> select)::after { content: ''; position: absolute; right: 4px; top: 50%; width: var(--hand-w, 28px); height: var(--hand-h, 26px);
  margin-top: calc(var(--hand-h, 26px) / -2); border-radius: 7px; background: var(--hand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); pointer-events: none; transition: background-color .12s; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(> select):hover, body:not(.mv) #slabq .slabq-mform > label:has(> select):hover, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(> select):hover, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(> select):hover, body:not(.mv) #view-submit .sub-subm .slabq-fld:has(> select):hover, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(> select):hover { background: var(--ctl-bg-hi); border-color: var(--focus); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(> select):hover::after, body:not(.mv) #slabq .slabq-mform > label:has(> select):hover::after, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(> select):hover::after, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(> select):hover::after, body:not(.mv) #view-submit .sub-subm .slabq-fld:has(> select):hover::after, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(> select):hover::after { background-color: var(--hand-hi); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(> select:focus-visible), body:not(.mv) #slabq .slabq-mform > label:has(> select:focus-visible), body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(> select:focus-visible), body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(> select:focus-visible), body:not(.mv) #view-submit .sub-subm .slabq-fld:has(> select:focus-visible), body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(> select:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(> select:disabled), body:not(.mv) #slabq .slabq-mform > label:has(> select:disabled), body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(> select:disabled), body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(> select:disabled), body:not(.mv) #view-submit .sub-subm .slabq-fld:has(> select:disabled), body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(> select:disabled) { opacity: .55; cursor: default; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(> select:disabled)::after, body:not(.mv) #slabq .slabq-mform > label:has(> select:disabled)::after, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(> select:disabled)::after, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(> select:disabled)::after, body:not(.mv) #view-submit .sub-subm .slabq-fld:has(> select:disabled)::after, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(> select:disabled)::after { background-color: #4a4a4a; }
/* a text box: a darker inset well ("type here"), the red edge while it has the focus */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(input), body:not(.mv) #slabq .slabq-mform > label:has(input), body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(input), body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(input), body:not(.mv) #view-submit .sub-subm .slabq-fld:has(input), body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(input) { background: var(--well-bg); border-color: var(--well-line); box-shadow: var(--well-shadow); cursor: text; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped) input, body:not(.mv) #slabq .slabq-mform > label input, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label input, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label input, body:not(.mv) #view-submit .sub-subm .slabq-fld input, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]) input { width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none;
  color: #fff; font: inherit; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 500; line-height: 1.3; letter-spacing: 0; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped) input::placeholder, body:not(.mv) #slabq .slabq-mform > label input::placeholder, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label input::placeholder, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label input::placeholder, body:not(.mv) #view-submit .sub-subm .slabq-fld input::placeholder, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]) input::placeholder { color: #6f6f6f; font-weight: 400; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(input:focus), body:not(.mv) #slabq .slabq-mform > label:has(input:focus), body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(input:focus), body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(input:focus), body:not(.mv) #view-submit .sub-subm .slabq-fld:has(input:focus), body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(input:focus) { border-color: var(--focus); box-shadow: var(--well-shadow), 0 0 0 2px var(--focus-glow); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label:not(.chipped):has(input:focus) > i, body:not(.mv) #slabq .slabq-mform > label:has(input:focus) > i, body:not(.mv) #pt-prev .pf-sentry .pf-serow > label:has(input:focus) > i, body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label:has(input:focus) > i, body:not(.mv) #view-submit .sub-subm .slabq-fld:has(input:focus) > i, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.chipped:has(> select[id$="-game"]):has(input:focus) > i { color: var(--cap-hi); }
/* the NAME box: TRANSLATE rides inside it, at the right of the text */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.q .pf-qwrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform > label.q .pf-qwrap input { flex: 1 1 auto; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-xl { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; margin: -3px 0; border-radius: 999px;
  background: var(--ctl-bg); border: 1px solid var(--ctl-line); color: #ededed; box-shadow: var(--ctl-shadow); font-size: calc(10px * var(--pf-fs, 1));
  letter-spacing: 1.2px; font-weight: 700; cursor: pointer; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-xl:hover:not(:disabled) { background: var(--ctl-bg-hi); border-color: var(--ctl-line-hi); color: #fff; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-xl[hidden] { display: none; }
/* the entry's read-only PAID (a batch's share): a dashed note, not a control */
body:not(.mv) #pt-prev .pf-sentry .pf-serow > label.pf-sero { background: #141414; border: 1px dashed #4a4a4a; box-shadow: none; cursor: default; }
body:not(.mv) #pt-prev .pf-sentry .pf-serow > label.pf-sero b { height: auto; padding: 0; border: 0; background: none; color: #bdbdbd; font-weight: 400; font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: 0; line-height: 1.25; }
/* the entry under the preview: a smaller handle, room for the currency */
body:not(.mv) #pt-prev .pf-sentry { --hand-w: 22px; --hand-h: 22px; gap: 7px; }
body:not(.mv) #pt-prev .pf-sentry .pf-serow { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 96px; gap: 6px; }
body:not(.mv) #pt-prev .pf-sentry .pf-serow > label { min-height: 42px; padding: 4px 8px 4px 9px; }
body:not(.mv) #pt-prev .pf-sentry .pf-serow > label > select { font-size: calc(12.5px * var(--pf-fs, 1)); }
body:not(.mv) #pt-prev .pf-sentry .pf-serow > label input { font-size: calc(13px * var(--pf-fs, 1)); }
body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm { height: 28px; padding: 0 4px; font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: .2px; }
/* ---- the red buttons: SEARCH · USE THIS CARD · the entry's ADD · the rows' ADD ---- */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-go, body:not(.mv) #pt-prev .pf-sentry .pf-sadd, body:not(.mv) #view-port .pf-row .btn.pf-add, body:not(.mv) #view-request .rq-add, body:not(.mv) #view-submit .sub-add { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 14px; box-sizing: border-box; border-radius: 12px;
  border: 1px solid #ee7a77; background: linear-gradient(180deg, #e8625f 0%, #c63f3c 100%); color: #fff; text-shadow: none; font: inherit;
  font-size: calc(12px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.6px; line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 10px rgba(220, 79, 76, .35); transition: transform .12s, box-shadow .12s, border-color .12s, background .12s; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-go > svg, body:not(.mv) #pt-prev .pf-sentry .pf-sadd > svg, body:not(.mv) #view-port .pf-row .btn.pf-add > svg, body:not(.mv) #view-request .rq-add > svg, body:not(.mv) #view-submit .sub-add > svg { width: 28px; height: 28px; padding: 6px; box-sizing: border-box; border-radius: 8px; background: rgba(0, 0, 0, .22); fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-left: -6px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-go:not(:disabled):hover, body:not(.mv) #pt-prev .pf-sentry .pf-sadd:not(:disabled):hover, body:not(.mv) #view-port .pf-row .btn.pf-add:not(:disabled):hover, body:not(.mv) #view-request .rq-add:not(:disabled):hover, body:not(.mv) #view-submit .sub-add:not(:disabled):hover { transform: translateY(-1px); border-color: #ffb3b1; background: linear-gradient(180deg, #ee6f6c 0%, #cf4744 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px rgba(220, 79, 76, .45); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-go:not(:disabled):active, body:not(.mv) #pt-prev .pf-sentry .pf-sadd:not(:disabled):active, body:not(.mv) #view-port .pf-row .btn.pf-add:not(:disabled):active, body:not(.mv) #view-request .rq-add:not(:disabled):active, body:not(.mv) #view-submit .sub-add:not(:disabled):active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45); }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-go:focus-visible, body:not(.mv) #pt-prev .pf-sentry .pf-sadd:focus-visible, body:not(.mv) #view-port .pf-row .btn.pf-add:focus-visible, body:not(.mv) #view-request .rq-add:focus-visible, body:not(.mv) #view-submit .sub-add:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-go:disabled, body:not(.mv) #pt-prev .pf-sentry .pf-sadd:disabled, body:not(.mv) #view-port .pf-row .btn.pf-add:disabled, body:not(.mv) #view-request .rq-add:disabled, body:not(.mv) #view-submit .sub-add:disabled { background: #2a1c1c; border-color: #3a2a2a; color: #7a6a6a; box-shadow: none; cursor: default; transform: none; }
/* the rows' ADD: the same button, smaller */
body:not(.mv) #view-port .pf-row .btn.pf-add, body:not(.mv) #view-request .rq-add, body:not(.mv) #view-submit .sub-add { height: 32px; padding: 0 12px; border-radius: 9px;
  font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; min-width: 0; }
body:not(.mv) #pt-prev .pf-sentry .pf-sadd { width: 100%; height: 38px; border-radius: 10px; padding: 0 10px; font-size: calc(11.5px * var(--pf-fs, 1)); }
/* ---- the layout, ONE for every host on a computer (operator 2026-10-16, second pass: 'CARD TYPE as a dropdown; line 1
   CARD TYPE · LANGUAGE pills, line 2 NAME / CARD# · FIND BY, line 3 SET NAME · a narrower YEAR · a wider RARITY · SEARCH,
   line 4 SORT'): the hidden CARD TYPE select's label becomes the first field box (its chip row hides), the pill rows become
   grid items (caption over the pills, level with the boxes), CURRENCY sits in line 2 where a host has one ---- */
body:not(.mv) .slabq-win .tool-body { container-type: inline-size; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.4fr) 176px; grid-template-rows: auto auto auto; align-items: end; column-gap: 8px; row-gap: 8px; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-stogs { display: contents; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-stogs > .pf-stog { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; align-self: end; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-stogs > .pf-stog > i { flex: none; margin: 0; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-stogs > .pf-stog > .pf-stogset { gap: 5px; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-stogs > .pf-stog:has([data-chips$="-game"]) { display: none; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-stogs > .pf-stog:has([data-chips$="-lang"]) { grid-column: 2 / -1; grid-row: 1; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-stogs > .pf-stog:has([data-chips$="-mode"]) { grid-column: 4; grid-row: 2; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > label.chipped:has(> select[id$="-game"]) { display: flex; grid-column: 1; grid-row: 1; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > label:not(.chipped) { min-height: 44px; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > label.q { grid-column: 1 / 4; grid-row: 2; }
body:not(.mv) :is(#view-submit .sub-sform, .slabq-sform) > label.q { grid-column: 1 / 3; }
body:not(.mv) :is(#view-submit .sub-sform, .slabq-sform) > label.cur { grid-column: 3; grid-row: 2; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > label.set { grid-column: 1; grid-row: 3; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > label.year { grid-column: 2; grid-row: 3; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > label.rar { grid-column: 3; grid-row: 3; }
body:not(.mv) :is(.pf-searchwin .pf-sform, #view-submit .sub-sform, .slabq-sform, #view-request .rq-sform) > .pf-go { grid-column: 4; grid-row: 3; justify-self: stretch; align-self: end; height: 44px; padding: 0 14px; margin: 0; }
/* the narrower hosts: SUBMISSION's ~600 px card (a wide card takes the common columns), MY SUBMISSIONS' 600 px column */
body:not(.mv) #view-submit .sub-sform { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.4fr) 144px; }
body:not(.mv) #view-request .rq-sform { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) 150px; }
@container (min-width: 820px) {
  body:not(.mv) #view-submit .sub-sform { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.4fr) 176px; }
  body:not(.mv) .slabq-mform { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) 84px 170px; align-items: end; column-gap: 8px; }
  body:not(.mv) .slabq-mform > label, body:not(.mv) .slabq-mform > .pf-go { grid-column: auto; }
}
/* ---- the dialog's shell on the same manners ---- */
body:not(.mv) .slabq-win .tool-head b { font-size: 15px; letter-spacing: 2.4px; font-weight: 800; }
body:not(.mv) #slabq .slabq-foot { gap: 12px; margin-top: 14px; align-items: center; }
body:not(.mv) #slabq .slabq-toggle { display: flex; align-items: center; gap: 8px; margin-left: auto; border: 0; border-radius: 0; overflow: visible; }
body:not(.mv) #slabq .slabq-toggle .pf-stogset { display: flex; gap: 5px; }
body:not(.mv) #slabq .slabq-toggle > i { flex: none; white-space: nowrap; }
body:not(.mv) #slabq .slabq-manual { margin-top: 12px; padding-top: 12px; }
body:not(.mv) #slabq .slabq-manual-head { margin-bottom: 8px; }
body:not(.mv) #slabq .slabq-mform { gap: 8px; }
body:not(.mv) #slabq .slabq-note { color: #a9a9a9; }
/* SUBMISSION's head: IMAGE · beta is a raised blue pill */
body:not(.mv) #view-submit .sub-modes .sub-imgbtn { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; height: 30px; padding: 0 13px !important; margin-left: 6px;
  border-radius: 999px; border: 1px solid #3a8ad8; background: linear-gradient(180deg, #1e4a74 0%, #143657 100%); color: #d6e9ff; font-size: calc(10px + 1pt); font-weight: 700;
  letter-spacing: 1.2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 6px rgba(0, 0, 0, .45); cursor: pointer; transition: border-color .12s, filter .12s, transform .05s; }
body:not(.mv) #view-submit .sub-modes .sub-imgbtn:hover:not(:disabled) { border-color: #7fb8f0; color: #fff; filter: brightness(1.12); }
body:not(.mv) #view-submit .sub-modes .sub-imgbtn:active { transform: translateY(1px); }
/* ---- ADD A BATCH's bar: the batch is gold (round 42's rule) — gold captions, a gold handle, the picked TYPE gold ---- */
body:not(.mv) #view-port .pf-sbatch { background: linear-gradient(180deg, #1a1710 0%, #15130d 100%); border: 1px solid #5c5340; box-shadow: inset 0 1px 0 rgba(241, 230, 200, .06);
  --cap: #d8c89a; --cap-hi: #f1e6c8; --hand: #ab9b6f; --hand-hi: #c9b98b; --focus: #ab9b6f; --focus-glow: rgba(171, 155, 111, .25);
  --pick-bg: linear-gradient(180deg, #c2b27f 0%, #ab9b6f 100%); --pick-line: #d8c89a; --pick-ink: #141414; --pick-glow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 12px rgba(171, 155, 111, .35); }
body:not(.mv) #view-port .pf-sbatch .pf-sbhead b { color: #f1e6c8; }
body:not(.mv) #view-port .pf-sbatch .pf-sbhead span { color: #d8c89a; }
body:not(.mv) #view-port .pf-sbatch .pf-stog > i { color: #a9986e; }
body:not(.mv) #view-port .pf-sbatch .pf-sbrow { gap: 8px; }
body:not(.mv) #view-port .pf-sbatch .pf-sbrow > label input::placeholder { color: #7a6f55; }
/* ---- the Grading Submission card (the 6th screen): the same boxes in BLUE, its buttons raised in their colours ---- */
body:not(.mv) #view-submit .sub-subm { gap: 7px;
  --ctl-bg: linear-gradient(180deg, #1f3b5a 0%, #152a41 100%); --ctl-bg-hi: linear-gradient(180deg, #254768 0%, #1a334d 100%); --ctl-line: #2f6fb3; --ctl-line-hi: #5b9ad8;
  --well-bg: linear-gradient(180deg, #0f1e2e 0%, #142537 100%); --well-line: #2a5a8c; --well-shadow: inset 0 2px 4px rgba(0, 0, 0, .5);
  --cap: #9cc4f0; --cap-hi: #cfe4ff; --hand: #2f7fc0; --hand-hi: #3a8ad8; --focus: #3a8ad8; --focus-glow: rgba(58, 138, 216, .28); }
body:not(.mv) #view-submit .sub-subm .slabq-fld > i { font-size: calc(7.5px + 2pt); }
body:not(.mv) #view-submit .sub-subm .slabq-fld > select { font-size: calc(11px + 2pt); }
body:not(.mv) #view-submit .sub-subm .slabq-fld input { font-size: calc(11.5px + 2pt); font-family: inherit; }
body:not(.mv) #view-submit .sub-subm .sub-custrow { gap: 7px; }
body:not(.mv) #view-submit .sub-subm .sub-orderbtns { gap: 7px; margin-top: 4px; }
body:not(.mv) #view-submit .sub-listfoot { gap: 7px; margin-top: 7px; }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 8px; border-radius: 10px; font: inherit; font-size: calc(10px + 1pt); font-weight: 800;
  letter-spacing: 1.3px; color: #f2f2f2; border: 1px solid #575757; background: linear-gradient(180deg, #2d2d2d 0%, #1f1f1f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px rgba(0, 0, 0, .45); cursor: pointer; opacity: 1;
  transition: transform .12s, box-shadow .12s, border-color .12s, filter .12s; }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-green, body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.sub-compile { border-color: #3f9d57; background: linear-gradient(180deg, #2b7f41 0%, #1a5a2c 100%); color: #eafbea; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 8px rgba(42, 122, 62, .35); }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-blue { border-color: #3a8ad8; background: linear-gradient(180deg, #1e4a74 0%, #143657 100%); color: #d6e9ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 8px rgba(47, 127, 192, .32); }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-red { border-color: #c94a45; background: linear-gradient(180deg, #9a3733 0%, #6e2320 100%); color: #ffe0de; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 8px rgba(201, 74, 69, .3); }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.12); border-color: #a0a0a0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 7px 16px rgba(0, 0, 0, .5); }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-green:not(:disabled):hover, body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.sub-compile:not(:disabled):hover { border-color: #7ed49a; }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-blue:not(:disabled):hover { border-color: #7fb8f0; }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-red:not(:disabled):hover { border-color: #ff9b98; }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn:not(:disabled):active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5); filter: none; }
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* a disabled button is flat and dim — not something to press */
body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn:disabled, body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-green:disabled, body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.btn-red:disabled, body:not(.mv) #view-submit :is(.sub-orderbtns, .sub-listfoot) > .btn.sub-compile:disabled { opacity: 1; background: #1a1a1a; border-color: #2c2c2c; color: #585858; box-shadow: none; cursor: default; transform: none; filter: none; }
/* the empty list: a quiet inset note, nothing that reads as a button */
body:not(.mv) #view-submit .sub-list-empty { background: #121212; border: 1px dashed #353535; color: #7a7a7a; font-size: calc(10.5px + 1pt); letter-spacing: .8px; padding: 26px 12px; }


/* ROUND 99 · SQUARED PILLS + CENTERING IN MAP INSPECT'S MANNER (operator 2026-10-17: 'make all buttons across all modes
   which look like the LANGUAGE pill more rectangular — the SEARCH button's shape — keeping their sizes' · 'the CENTERING
   buttons like MAP INSPECT's'). (a) Every fully-rounded BUTTON takes the SEARCH button's corner ratio (12 px on 44 px ≈ .27):
   30 px chips 8 px, 34 px filter pills 9 px, 38 px SOLD ITEMS 10 px, 26 / 24 px pills 7 px, the count badges 6 px — the
   toggle SWITCHES (DEFECTS · SHOW, SCOPE, STAGE, the vault's DEFECT MARKS) and the status chips stay round, they are not
   buttons. (b) CENTERING's .btn: capitals in the condensed cut (the width axis), bold, .5 px tracked, the type size kept so no button changes height, 5 px corners, the red ones
   flat (#5a2321 + the accent edge — MAP INSPECT's lit state) instead of the metallic gradient; heights unchanged. */
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stogset .pf-chip.sm, body:not(.mv) #slabq .slabq-foot .pf-chip.sm, body:not(.mv) #pt-prev .pf-sentry .pf-stogset .pf-chip.sm, body:not(.mv) #view-port .pf-sbatch .pf-stogset .pf-chip.sm, body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-ssort button, body:not(.mv) #view-submit .sub-sortbtn { border-radius: 8px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-stog:has([data-chips$="-mode"]) .pf-chip.sm { border-radius: 8px; }
body:not(.mv) :is(#view-port, #view-request, #view-submit, #slabq, #view-binder) .pf-sform .pf-xl { border-radius: 8px; }
body:not(.mv) #view-submit .sub-modes .sub-imgbtn { border-radius: 8px; }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm { border-radius: 9px; }
#view-port .pf-app:not(.ph) :is(.pf-folders2, #pf-games) .pf-chip.sm > i { border-radius: 6px; }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm { border-radius: 9px; }
#view-port .pf-app:not(.ph) #pf-show .pf-chip.sm > i { border-radius: 6px; }
#view-port .pf-app:not(.ph) .pf-salesbar .pf-salesgo { border-radius: 7px; }
.pf-soldgo { border-radius: 10px; }
.pf-soldgo > i { border-radius: 6px; }
.pf-app.ph .pf-soldgo { border-radius: 9px; }
#view-port .pf-app.ph .pf-jump button { border-radius: 7px; }
/* (b) CENTERING */
#view-job .btn { text-transform: uppercase; font-stretch: 87.5%; font-weight: 700; letter-spacing: .5px;
  border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-job .jb-btnrow .btn { letter-spacing: .3px; }
#view-job #jb-connect { letter-spacing: 0; padding-left: 3px; padding-right: 3px; }
#view-job .btn.btn-accent { background: #5a2321; border-color: var(--accent); color: #fff; text-shadow: none; box-shadow: none; }
#view-job .btn.btn-accent:hover:not(:disabled) { background: #6e2a27; }
#view-job .btn.btn-accent:disabled { background: #3a1d1c; border-color: #6b2f2d; color: #a07a79; box-shadow: none; }
#view-job .btn.btn-blue:hover:not(:disabled) { background: #1e4466; color: #fff; }
#view-job .btn.btn-teal:hover:not(:disabled) { background: #185252; color: #fff; }
#view-job .btn.btn-danger { background: #5a2321; border-color: var(--accent); color: #fff; }
#view-job .jb-rot-nudge { text-transform: none; font-stretch: normal; letter-spacing: 0; font-weight: 600; }
#view-job .jb-shotbtn { border-radius: 5px; }

/* ROUND 101 · ONE HEADER VOICE (operator 2026-10-17: 'ensure the Search tab / slab tab are identical between CENTERING and
   MAP INSPECT'): the .jb-head node MOVES between the two pages, and round 99's capitals were scoped to #view-job — on MAP
   INSPECT the same header fell back to the rounded Title Case buttons. The header's buttons wear the CENTERING voice
   wherever the header sits. */
#view-ai .jb-head .btn, .jb-head .btn { text-transform: uppercase; font-stretch: 87.5%; font-weight: 700; letter-spacing: .5px;
  border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-ai .jb-head .btn.btn-accent { background: #5a2321; border-color: var(--accent); color: #fff; text-shadow: none; box-shadow: none; }
#view-ai .jb-head .btn.btn-blue:hover:not(:disabled) { background: #1e4466; color: #fff; }

/* ROUND 102 · THE CURRENCY CHIP IN THE SEARCH CARD'S HEAD (operator 2026-10-17: 'remove the IMAGE · beta feature and
   button, and place the Currency selection (with the flag) in that position'): SUBMISSION's head and the dialog's head
   carry .sm-curchip — the flag, the code, a red chevron over the native select (BLACKPORT's chip at the pills' size);
   the form's row 2 is the box + FIND BY on every host now. */
.sm-curchip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px 0 10px; box-sizing: border-box; border-radius: 8px;
  background: var(--ctl-bg, linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%)); border: 1px solid var(--ctl-line, #575757); color: #f2f2f2;
  box-shadow: var(--ctl-shadow, inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45)); cursor: pointer; font: inherit; letter-spacing: 0;
  transition: border-color .12s, background .12s; }
.sm-curchip > b { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; line-height: 1; }
.sm-curchip > .sm-chev { width: 14px; height: 14px; fill: none; stroke: #f07a77; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sm-curchip > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.sm-curchip:hover { background: var(--ctl-bg-hi, linear-gradient(180deg, #333 0%, #262626 100%)); border-color: var(--accent); }
.sm-curchip:has(select:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
#view-submit .sub-modes .sm-curchip { margin-left: 6px; }
#slabq .tool-head .sm-curchip { margin-left: auto; margin-right: 12px; align-self: center; flex: none; }
#slabq .tool-head > .tool-x { flex: none; }
/* row 2 everywhere = the box across three columns + FIND BY (CURRENCY left the form) */
body:not(.mv) :is(#view-submit .sub-sform, .slabq-sform) > label.q { grid-column: 1 / 4; }




/* ROUND 104 · BLACKPORT IN THREE COLUMNS (operator 2026-10-17, a sketch over OVERVIEW: 'BY TCG on the left, TOP CARD BY TCG on
   the right; ADD A CARD · ADD FOLDER · ADD A BATCH up in the header row, three of one width in the two buttons' room; the same on
   PERFORMANCE with BY PURCHASE TYPE on the left and BEST SALES on the right; the sides collapse — a proper way on mobile too').
   .pf-shell wraps the app: a computer lays the two sides as sticky columns (a 46 px rail when folded); a phone moves them into
   the page as folding panels (BY TCG under the folder bar, the right side under the chart). The TCG chip rows are gone. */
.pf-side { display: none; }
.pf-shell.noside .pf-side, .pf-shell.noright .pf-side.r { display: none !important; }
.pf-shell.t-overview .pf-side [data-for="performance"], .pf-shell.t-performance .pf-side [data-for="overview"] { display: none !important; }
#view-port .pf-pane .pf-folders2 { display: none !important; }
.pf-sanchor { display: none !important; }
/* a computer: the shell */
.pf-shell:not(.ph) { --psl: 224px; --psr: 236px; display: grid; grid-template-columns: var(--psl) minmax(0, 1fr) var(--psr); align-items: start;
  max-width: calc(1520px + var(--psl) + var(--psr)); margin: 0 auto; }
.pf-shell:not(.ph).l-closed { --psl: 60px; } .pf-shell:not(.ph).r-closed { --psr: 60px; }
.pf-shell:not(.ph).noside { --psl: 0px; --psr: 0px; } .pf-shell:not(.ph).noright { --psr: 0px; }
.pf-shell:not(.ph) > .pf-app { max-width: none; margin: 0; min-width: 0; }
.pf-shell:not(.ph) > .pf-side.l { grid-column: 1; } .pf-shell:not(.ph) > .pf-app { grid-column: 2; } .pf-shell:not(.ph) > .pf-side.r { grid-column: 3; }
.pf-shell:not(.ph) > .pf-side { display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; position: sticky; top: calc(var(--pf-stick, 0px) + 12px);
  margin-top: 12px; max-height: calc(100vh - var(--pf-stick, 0px) - 24px); background: var(--pf-panel); border: 1px solid var(--pf-line); border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.pf-shell:not(.ph) > .pf-side.l { margin-left: 14px; } .pf-shell:not(.ph) > .pf-side.r { margin-right: 14px; }
/* the head: a button that folds the side */
.pf-sidehd { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px 0 14px; box-sizing: border-box; flex: none; border: 0;
  border-bottom: 1px solid var(--pf-line); background: linear-gradient(180deg, #1e1e1e 0%, #171717 100%); color: #fff; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.pf-sidehd:hover { background: linear-gradient(180deg, #262626 0%, #1d1d1d 100%); }
.pf-sidehd:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.pf-sidet { font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 2px; color: var(--pf-ink2); white-space: nowrap; }
.pf-sidepick { margin-left: auto; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; color: #f07a77; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pf-sidepick:empty { display: none; }
.pf-side.r .pf-sidepick { display: none; }
.pf-side.r .pf-sidet { margin-right: auto; }
.pf-sidechev { flex: none; width: 26px; height: 26px; padding: 6px; box-sizing: border-box; border-radius: 7px; background: #2c2c2c; border: 1px solid #454545;
  fill: none; stroke: #e6e6e6; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s, background .12s; }
.pf-sidehd:hover .pf-sidechev { background: var(--accent); border-color: #ee7a77; stroke: #fff; }
/* the chevron points the way the side goes: open left side ‹, open right side ›, folded the other way */
.pf-shell:not(.ph) > .pf-side.r:not(.closed) .pf-sidechev { transform: rotate(180deg); }
.pf-shell:not(.ph) > .pf-side.l.closed .pf-sidechev { transform: rotate(180deg); }
.pf-sidebody { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px; scrollbar-width: thin; }
.pf-side.closed .pf-sidebody { display: none; }
/* folded on a computer: a rail — the chevron on top, the title down the rail */
.pf-shell:not(.ph) > .pf-side.closed .pf-sidehd { flex-direction: column; justify-content: flex-start; align-items: center; gap: 12px; height: auto; padding: 10px 0 16px; border-bottom: 0; }
.pf-shell:not(.ph) > .pf-side.closed .pf-sidet, .pf-shell:not(.ph) > .pf-side.closed .pf-sidepick { writing-mode: vertical-rl; margin: 0; }
.pf-shell:not(.ph) > .pf-side.closed .pf-sidepick { max-height: 180px; }
.pf-shell:not(.ph) > .pf-side.closed .pf-sidechev { order: -1; }
/* BY TCG: a list of the card types — code · name, cards, value · share, a hairline of the share */
.pf-tcgl { display: flex; flex-direction: column; gap: 6px; }
.pf-tcgi { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "c n n" "c bar s"; column-gap: 10px; row-gap: 6px; align-items: center;
  width: 100%; padding: 8px 10px 8px 8px; box-sizing: border-box; border-radius: 10px; border: 1px solid #3a3a3a; background: linear-gradient(180deg, #232323 0%, #1a1a1a 100%);
  color: #ededed; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .35);
  transition: border-color .12s, background .12s, transform .05s; -webkit-tap-highlight-color: transparent; }
.pf-tcgi:not(.on):hover { border-color: #8f8f8f; background: linear-gradient(180deg, #2a2a2a 0%, #202020 100%); }
.pf-tcgi:active { transform: translateY(1px); }
.pf-tcgi:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf-tcgi.on { border-color: var(--accent); background: linear-gradient(180deg, #3a1d1c 0%, #2a1514 100%); box-shadow: inset 3px 0 0 var(--accent), 0 2px 10px rgba(220, 79, 76, .2); }
.pf-tcgi.all { grid-template-areas: "c n n" "c n n"; }
.pf-tcgc { grid-area: c; display: inline-flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; background: #2e2e2e; border: 1px solid #474747;
  font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: .6px; color: #dcdcdc; }
.pf-tcgi.on .pf-tcgc { background: var(--accent); border-color: #ee7a77; color: #fff; }
.pf-tcgn { grid-area: n; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-tcgn b { font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tcgn i { font-style: normal; font-size: calc(10px * var(--pf-fs, 1)); color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pf-tcgs { grid-area: s; align-self: center; line-height: 1; font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; color: #cfcfcf; font-variant-numeric: tabular-nums; }
.pf-tcgbar { grid-area: bar; display: block; height: 3px; border-radius: 2px; background: #2c2c2c; overflow: hidden; }
.pf-tcgbar > b { display: block; height: 100%; background: #8a8a8a; border-radius: 2px; }
.pf-tcgi.on .pf-tcgbar > b { background: var(--accent); }
/* BY PURCHASE TYPE under it (PERFORMANCE): two lines a type */
.pf-side .pf-list.pf-sidesec { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.pf-side #pf-kindbox { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--pf-line); }
.pf-side #pf-kindbox > .pf-lh { margin-bottom: 4px; }
.pf-side .pf-kinds > .pf-kindrow { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "t k g" ". pv pv"; column-gap: 8px; row-gap: 3px; align-items: start; padding: 8px 0; }
.pf-side .pf-kinds > .pf-kindrow > .pf-kon { grid-area: t; width: 22px; height: 22px; }
.pf-side .pf-kinds > .pf-kindrow > .k { grid-area: k; min-width: 0; }
.pf-side .pf-kinds > .pf-kindrow > .k b { font-size: calc(11.5px * var(--pf-fs, 1)); }
.pf-side .pf-kinds > .pf-kindrow > .k i { font-size: calc(9.5px * var(--pf-fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-side .pf-kinds > .pf-kindrow > .g { grid-area: g; text-align: right; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-side .pf-kinds > .pf-kindrow > .g em { font-size: calc(9.5px * var(--pf-fs, 1)); }
.pf-side .pf-kinds > .pf-kindrow > .pv { grid-area: pv; display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap; font-size: calc(10.5px * var(--pf-fs, 1)); color: #cfcfcf; font-variant-numeric: tabular-nums; }
.pf-side .pf-kinds > .pf-kindrow > .pv i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; color: #7c7c7c; }
.pf-side .pf-kinds > .pf-kindrow > .pv i:not(:first-child) { margin-left: 8px; }
.pf-side .pf-kinds > .pf-kindrow.off > .pv { opacity: .38; }
/* TOP CARD BY TCG: one tile a card type, stacked */
#view-port .pf-side #pf-bygame { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
#view-port .pf-side #pf-bygame li.pf-tg { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; margin: 0; border: 1px solid var(--pf-line); border-radius: 12px;
  background: #141414; cursor: pointer; transition: border-color .12s; }
#view-port .pf-side #pf-bygame li.pf-tg:hover { border-color: #6a6a6a; }
#view-port .pf-side #pf-bygame .pf-gl { font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 1.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 2px; }
#view-port .pf-side #pf-bygame .pf-tgcol { align-self: center; display: flex; flex-direction: column; align-items: center; }
#view-port .pf-side #pf-bygame .pf-tgart { width: auto; height: 156px; aspect-ratio: 5 / 7; margin: 2px 0 0; }
#view-port .pf-side #pf-bygame .pf-tgn { font-size: calc(12.5px * var(--pf-fs, 1)); margin-top: 6px; }
#view-port .pf-side #pf-bygame .pf-tgv { margin-top: 0; gap: 6px; }
#view-port .pf-side #pf-bygame .pf-tgv b { font-size: calc(16px * var(--pf-fs, 1)); }
#view-port .pf-side #pf-bygame .pf-empty { list-style: none; }
/* BEST SALES: one row a card type — BY QUANTITY | BY VALUE */
.pf-bshead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0 0 4px; }
.pf-bshead i { font-style: normal; text-align: center; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.6px; color: #8c8c8c; }
.pf-bsrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 9px 0 10px; border-top: 1px solid var(--pf-line); }
.pf-bsg { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 6px; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.4px; color: #dcdcdc; }
.pf-bsg span { color: var(--pf-gold); letter-spacing: .4px; font-variant-numeric: tabular-nums; }
.pf-bscell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 6px; border-radius: 9px; background: #141414; border: 1px solid #2a2a2a; min-width: 0; }
.pf-bsart { display: block; width: 100%; max-width: 70px; aspect-ratio: 5 / 7; border-radius: 5px; overflow: hidden; background: #1c1c1c; }
.pf-bsart img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-bscell b { font-size: calc(13px * var(--pf-fs, 1)); font-weight: 800; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-bscell b i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: 1px; color: #bdbdbd; }
.pf-bscell b.rev { color: var(--pf-gold); }
.pf-bscell em { font-style: normal; font-size: calc(10px * var(--pf-fs, 1)); color: #9a9a9a; white-space: nowrap; }
.pf-bscell.q em { color: var(--pf-gold); }
/* the header row (a computer, OVERVIEW / PERFORMANCE): the tabs and the currency over the first column, the three buttons over
   the second — one width each in the two buttons' room */
@media (min-width: 961px) {
  body:not(.mv) #view-port .pf-app:not(.ph):not(.oncards):not(.onstore) .pf-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "tabs quick"; column-gap: 22px; }
  body:not(.mv) #view-port .pf-app:not(.ph):not(.oncards):not(.onstore) .pf-head > .pf-segs { grid-area: tabs; justify-self: start; width: min(640px, calc(100% - 132px)); }
  body:not(.mv) #view-port .pf-app:not(.ph):not(.oncards):not(.onstore) .pf-head > .pf-curchip { grid-area: tabs; justify-self: end; }
  body:not(.mv) #view-port #pf-hdr .pf-head > .pf-quick { grid-area: quick; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; justify-content: stretch; }
  body:not(.mv) #view-port #pf-hdr .pf-head > .pf-quick > .pf-qbtn { min-width: 0; height: 44px; padding: 0 8px 0 7px; gap: 8px; font-stretch: 87.5%; letter-spacing: 1px; overflow: hidden; }
  body:not(.mv) #view-port #pf-hdr .pf-head > .pf-quick > .pf-qbtn::after { content: none; }
  body:not(.mv) #view-port #pf-hdr .pf-head > .pf-quick > .pf-qbtn > svg { width: 26px; height: 26px; padding: 5px; }
  body:not(.mv) #view-port .pf-app:is(.oncards, .onstore) #pf-hdr .pf-head > .pf-quick { display: none; }
  /* a narrow middle (the sides open on a smaller screen): one column — the header in two rows, the lists under the chart */
  body:not(.mv) #view-port .pf-app.narrow:not(.ph):not(.oncards):not(.onstore) .pf-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "quick"; row-gap: 10px; }
  #view-port .pf-app.narrow:not(.ph) .pf-pane.on:is([data-pane="overview"], [data-pane="performance"]) { grid-template-columns: minmax(0, 1fr); }
}
/* a phone: the sides are folding panels in the page */
.pf-shell.ph .pf-side { display: block; margin: 0 0 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); border-radius: 14px; overflow: hidden; }
.pf-shell.ph .pf-side .pf-sidehd { min-height: 46px; }
.pf-shell.ph .pf-side .pf-sidechev { transform: rotate(90deg); }
.pf-shell.ph .pf-side.closed .pf-sidechev { transform: rotate(-90deg); }
.pf-shell.ph .pf-side.closed .pf-sidehd { border-bottom: 0; }
.pf-shell.ph .pf-sidebody { overflow: visible; max-height: none; }
.pf-shell.ph .pf-tcgl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pf-shell.ph .pf-tcgi { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 8px; }
.pf-shell.ph .pf-tcgi.all { grid-column: 1 / -1; }
.pf-shell.ph #pf-bygame { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-shell.ph .pf-side #pf-bygame .pf-tgart { height: 140px; }
#view-port .pf-app.ph #pm-fperf > .pm-sel:last-child { grid-column: auto; }
/* a phone: the chevron leads the head (the jump menu holds the right edge), the pick after the title; the quick trio fits
   one row */
.pf-shell.ph .pf-side .pf-sidechev { order: -1; }
.pf-shell.ph .pf-side .pf-sidepick { margin-left: 2px; }
.pf-shell.ph .pf-side.r .pf-sidet { margin-right: 0; }
#view-port .pf-app.ph #pf-quick > .pf-qbtn { padding: 0 4px; gap: 4px; letter-spacing: .3px; font-stretch: 87.5%; font-size: calc(10.5px * var(--pf-fs, 1)); }

/* ROUND 106 · BY TCG SHARES (operator 2026-10-17: 'replace the abbreviated name box with the % of cards in the port —
   % by quantity, % by value'): the box at the front holds QTY over VALUE, the value hairline runs the row's width */
.pf-tcgi { grid-template-columns: 62px minmax(0, 1fr); grid-template-areas: "c n" "c bar"; }
.pf-tcgi.all { grid-template-areas: "c n" "c n"; }
.pf-tcgc.pf-tcgpct { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 1px; height: auto; min-height: 36px; padding: 3px 6px;
  box-sizing: border-box; letter-spacing: 0; }
.pf-tcgpct > span { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; line-height: 1.1; }
.pf-tcgpct i { font-style: normal; font-size: calc(7px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .5px; color: #9a9a9a; }
.pf-tcgpct b { font-size: calc(11px * var(--pf-fs, 1)); font-weight: 800; color: #f2f2f2; font-variant-numeric: tabular-nums; }
.pf-tcgpct .v b { color: #d8d8d8; }
.pf-tcgi.on .pf-tcgpct i { color: rgba(255, 255, 255, .78); }
.pf-tcgi.on .pf-tcgpct b { color: #fff; }
.pf-tcgi .pf-tcgs { display: none; }
.pf-shell.ph .pf-tcgi { grid-template-columns: 62px minmax(0, 1fr); column-gap: 7px; }
.pf-shell.ph .pf-tcgpct { padding: 3px 5px; }
.pf-shell.ph .pf-tcgpct i { font-size: 8px; letter-spacing: .3px; }
.pf-shell.ph .pf-tcgpct b { font-size: 11.5px; }

/* ROUND 107 · CARDS GETS THE SIDES · ONE TOOL ROW · TOP CARD AS A CARD TILE (operator 2026-10-17: 'BY TCG also on the left on
   CARDS, the quantity only — no %; SHOW on the right like TOP CARD; the styles match' · 'EDIT / SELECT / GROUP … replace the
   TCG, beside LANGUAGE, all in one row' · 'TOP CARD BY TCG and BY TCG follow the schema, a clear professional look') */
.pf-shell.t-cards .pf-side [data-for]:not([data-for="cards"]), .pf-shell.t-cards #pf-tcgl { display: none !important; }
.pf-shell:not(.t-cards) .pf-side [data-for="cards"] { display: none !important; }
.pf-shell.t-cards .pf-side.r .pf-sidet { margin-right: 0; }
.pf-shell.t-cards .pf-side.r .pf-sidepick:not(:empty) { display: block; }
/* the count rows: one line, the box holds the number */
.pf-tcgi.nb, .pf-tcgi.nb.all { grid-template-areas: "c n" "c n"; }
.pf-tcgc.pf-tcgnum { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: auto; min-height: 36px; padding: 3px 4px; box-sizing: border-box; letter-spacing: 0; }
.pf-tcgnum i { font-style: normal; font-size: calc(7px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .8px; color: #9a9a9a; line-height: 1.1; }
.pf-tcgnum b { font-size: calc(14px * var(--pf-fs, 1)); font-weight: 800; color: #f2f2f2; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pf-tcgi.on .pf-tcgnum i { color: rgba(255, 255, 255, .8); }
.pf-tcgi.on .pf-tcgnum b { color: #fff; }
.pf-tcgi:disabled { opacity: .4; cursor: default; box-shadow: none; }
.pf-tcgi:disabled:hover { border-color: #3a3a3a; background: linear-gradient(180deg, #232323 0%, #1a1a1a 100%); }
.pf-tcgi.nb .pf-tcgn { justify-content: center; }
/* SHOW: each kind wears its card colour — raw and singles red, batches gold, graded blue, pre-graded dark blue; NO PRICE PAID amber */
.pf-showl .pf-tcgi:is(.k-raw, .k-single) .pf-tcgc { background: #3a1d1c; border-color: #7a3330; }
.pf-showl .pf-tcgi:is(.k-raw, .k-single) .pf-tcgnum i { color: #f0a29f; }
.pf-showl .pf-tcgi.k-batch .pf-tcgc { background: #2b2515; border-color: #5c5340; }
.pf-showl .pf-tcgi.k-batch .pf-tcgnum i { color: #d8c89a; }
.pf-showl .pf-tcgi.k-graded .pf-tcgc { background: #12213a; border-color: #2f5f9e; }
.pf-showl .pf-tcgi.k-graded .pf-tcgnum i { color: #9cc6ff; }
.pf-showl .pf-tcgi.k-pregraded .pf-tcgc { background: #0f1430; border-color: #2a3f86; }
.pf-showl .pf-tcgi.k-pregraded .pf-tcgnum i { color: #9fb2ee; }
.pf-showl .pf-tcgi.k-paid .pf-tcgc { background: #33290f; border-color: #8a7020; }
.pf-showl .pf-tcgi.k-paid .pf-tcgnum i { color: #f0cf6a; }
.pf-showl .pf-tcgi.on:is(.k-raw, .k-single) .pf-tcgc { background: var(--accent); border-color: #ee7a77; }
.pf-showl .pf-tcgi.on.k-batch { border-color: #ab9b6f; background: linear-gradient(180deg, #2f2817 0%, #221d10 100%); box-shadow: inset 3px 0 0 #ab9b6f, 0 2px 10px rgba(171, 155, 111, .2); }
.pf-showl .pf-tcgi.on.k-batch .pf-tcgc { background: #ab9b6f; border-color: #cdbd8d; }
.pf-showl .pf-tcgi.on.k-batch .pf-tcgnum :is(i, b) { color: #111; }
.pf-showl .pf-tcgi.on.k-graded { border-color: #3d8bef; background: linear-gradient(180deg, #14253f 0%, #0f1b2f 100%); box-shadow: inset 3px 0 0 #3d8bef, 0 2px 10px rgba(61, 139, 239, .2); }
.pf-showl .pf-tcgi.on.k-graded .pf-tcgc { background: #3d8bef; border-color: #7ab0f5; }
.pf-showl .pf-tcgi.on.k-pregraded { border-color: #3a5bc4; background: linear-gradient(180deg, #121937 0%, #0c1128 100%); box-shadow: inset 3px 0 0 #3a5bc4, 0 2px 10px rgba(58, 91, 196, .22); }
.pf-showl .pf-tcgi.on.k-pregraded .pf-tcgc { background: #2a4ea8; border-color: #5b7ad0; }
.pf-showl .pf-tcgi.on.k-paid { border-color: #c9a227; background: linear-gradient(180deg, #2e260f 0%, #211b0b 100%); box-shadow: inset 3px 0 0 #c9a227, 0 2px 10px rgba(201, 162, 39, .2); }
.pf-showl .pf-tcgi.on.k-paid .pf-tcgc { background: #c9a227; border-color: #e3c25a; }
.pf-showl .pf-tcgi.on.k-paid .pf-tcgnum :is(i, b) { color: #111; }
.pf-showsep { margin: 8px 2px 0; padding-top: 9px; border-top: 1px solid var(--pf-line); font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.6px; color: #8c8c8c; }
/* CARDS' bar on a computer: FOLDER · LANGUAGE · the switches · OPEN ALL · the columns — one row (+ BATCH / + CARD sit in the
   header beside the currency); the TCG and SHOW chips live in the sides now */
@media (min-width: 961px) {
  #view-port .pf-app:not(.ph) .pf-cardsbar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; container: pfbar / inline-size; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-filt { display: flex; flex: 1 1 220px; min-width: 220px; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-filt > .pf-fpair { flex: 1 1 auto; min-width: 0; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-tools > :is(.pf-modes, #pf-openall, #pf-colsw) { margin: 0; }
  #view-port .pf-app:not(.ph) .pf-cardsbar :is(#pf-games, #pf-show) { display: none !important; }
}
/* a narrower bar: the switch graphic goes (an ON switch keeps its red edge), then the padding tightens */
/* one height for the row: the switches and the columns at the dropdowns' 34 px */
@media (min-width: 961px) {
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-tools .pf-tog { height: 34px; min-height: 34px; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-tools #pf-colsw { height: 34px; box-sizing: border-box; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-tools #pf-colsw > button { height: 26px; }
  #view-port .pf-app:not(.ph) .pf-cardsbar > .pf-tools #pf-openall { height: 34px; }
}
@container pfbar (max-width: 1180px) {
  #view-port .pf-app:not(.ph) .pf-tools .pf-tog > .pf-sw { display: none; }
}
@container pfbar (max-width: 1000px) {
  #view-port .pf-app:not(.ph) .pf-tools .pf-tog { padding-left: 10px; padding-right: 10px; letter-spacing: .6px; }
}
@container pfbar (max-width: 880px) {
  #view-port .pf-app:not(.ph) .pf-tools .pf-tog { padding-left: 8px; padding-right: 8px; letter-spacing: .3px; }
  #view-port .pf-app:not(.ph) .pf-tools #pf-openall { padding-left: 8px; padding-right: 8px; }
}
/* the narrowest bar (both sides open on a 1366 screen): the dropdowns keep their choice and lose their caption and count */
@container pfbar (max-width: 880px) {
  #view-port .pf-app:not(.ph) .pf-cardsbar .pf-fpair > .pf-fsel > :is(i, em) { display: none; }
}
/* TOP CARD BY TCG on a computer: the CARDS tile on the side — a raised row like BY TCG's: the type and its value, the picture
   with its grade pill, the name with its change over the window, the five lines, VALUE over PAID */
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame li.pf-tg2 { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "hd hd" "nm nm" "art info" "art price";
  column-gap: 10px; row-gap: 0; align-items: start; padding: 9px 10px 10px; border-radius: 10px; border: 1px solid #3a3a3a;
  background: linear-gradient(180deg, #232323 0%, #1a1a1a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .35); }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame li.pf-tg2:hover { border-color: #8f8f8f; background: linear-gradient(180deg, #2a2a2a 0%, #202020 100%); }
#view-port .pf-side li.pf-tg2 > .pf-tghd { grid-area: hd; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; padding-bottom: 7px; margin-bottom: 9px; border-bottom: 1px solid #333; }
#view-port .pf-side li.pf-tg2 > .pf-tghd b { min-width: 0; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.6px; color: #e6e6e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side li.pf-tg2 > .pf-tghd span { flex: none; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; color: #bdbdbd; font-variant-numeric: tabular-nums; }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame li.pf-tg2 > .pf-tgcol { grid-area: art; align-self: start; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 0; }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame li.pf-tg2 .pf-tgart { width: 56px; height: auto; aspect-ratio: 5 / 7; margin: 0; border-radius: 4px; }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame li.pf-tg2 .pf-tgart img { width: 100%; height: 100%; object-fit: contain; }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame li.pf-tg2 .pf-gbadge { position: relative; z-index: 1; margin: -9px 0 0; max-width: 64px; height: calc(16px * var(--pf-fs, 1)); font-size: calc(8.5px * var(--pf-fs, 1)); }
#view-port .pf-side li.pf-tg2 > .pf-tginfo { grid-area: info; min-width: 0; }
#view-port .pf-side li.pf-tg2 > .pf-tgname { grid-area: nm; display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 7px; }
#view-port .pf-side li.pf-tg2 .pf-tgname > b { flex: 1 1 auto; min-width: 0; font-size: calc(13px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.2; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side li.pf-tg2 .pf-tgch { flex: none; display: inline-flex; }
#view-port .pf-side li.pf-tg2 .pf-tgch .pf-chg { font-size: calc(10px * var(--pf-fs, 1)); }
#view-port .pf-side li.pf-tg2 .pf-lines { display: flex; flex-direction: column; gap: 0; margin-top: 0; font-size: calc(10.5px * var(--pf-fs, 1)); color: #d6d6d6; -webkit-line-clamp: unset; }
#view-port .pf-side li.pf-tg2 .pf-lines > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.34; }
#view-port .pf-side li.pf-tg2 .pf-lines > span.l-ly, #view-port .pf-side li.pf-tg2 .pf-lines > span.l-bl { display: flex; }
#view-port .pf-side li.pf-tg2 .pf-lines > .l-set { color: #bdbdbd; }
#view-port .pf-side li.pf-tg2 .pf-lines :is(.pf-lang, .pf-blp) { font-size: calc(8px * var(--pf-fs, 1)); line-height: calc(11.5px * var(--pf-fs, 1)); }
#view-port .pf-side li.pf-tg2 > .pf-tgprice { grid-area: price; min-width: 0; margin-top: 7px; }
#view-port .pf-side li.pf-tg2 > .pf-tgprice .pf-pr { justify-content: flex-end; gap: 6px; }
#view-port .pf-side li.pf-tg2 > .pf-tgprice .pf-pr > i { flex: none; margin-right: auto; font-size: calc(8.5px * var(--pf-fs, 1)); }
#view-port .pf-side li.pf-tg2 > .pf-tgprice .pf-pr.v > b { font-size: calc(15px * var(--pf-fs, 1)); }
#view-port .pf-side li.pf-tg2 > .pf-tgprice .pf-pr.p > b { font-size: calc(12px * var(--pf-fs, 1)); }
/* ROUND 108 · THE USB GAME CONTROLLER (operator 2026-10-17: an arcade stick on the bench — the stick moves the stage
   like the numpad, its buttons take stage / position / macro / MAP INSPECT actions from JOYSTICK › SETUP; js/gamepad.js) */
#stg-card-jog > .card-head { display: flex; align-items: center; gap: 6px; }
#stg-card-jog > .card-head .pad-chip:not([hidden]) { margin-left: auto; }
#stg-card-jog > .card-head .pad-chip[hidden] + .pad-setbtn { margin-left: auto; }
.pad-chip[hidden] { display: none !important; }
.pad-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 5px;
  font: 700 9px/1 var(--rep-font); letter-spacing: 1.2px; color: #8fe0b0; background: #10251a; border: 1px solid #2f7a52; }
.pad-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7ED4A6; box-shadow: 0 0 6px rgba(126, 212, 166, .7); }
.pad-setbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(#2e2e2e, #1f1f1f); border: 1px solid #5a5a5a; color: #ececec; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .5);
  font: 700 9.5px/1 var(--rep-font); letter-spacing: 1.1px; }
.pad-setbtn:hover { border-color: var(--accent); color: #fff; }
.pad-setbtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pad-setbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#view-ai #stg-card-jog .pad-chip { display: none !important; }
#view-ai #stg-card-jog .pad-setbtn { height: 18px; padding: 0 3px; margin-left: auto; }
#view-ai #stg-card-jog .pad-setbtn span { display: none; }
#view-ai #stg-card-jog .pad-setbtn svg { width: 13px; height: 13px; }

/* the toast — the controller speaks on every studio page */
.pad-toast { position: fixed; left: 50%; top: 78px; z-index: 9200; transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 9px; max-width: min(620px, calc(100vw - 32px)); padding: 9px 14px 9px 11px; border-radius: 9px;
  background: #1b1b1b; border: 1px solid #3a3a3a; border-left: 3px solid #8a8a8a; color: #f0f0f0; box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  font: 600 12.5px/1.35 var(--rep-font); transition: opacity .16s ease, transform .16s ease; }
.pad-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pad-toast.ok { border-left-color: #7ED4A6; }
.pad-toast.warn { border-left-color: #E8C547; }
.pad-toast.bad { border-left-color: var(--accent); }
.pad-tico { flex: none; width: 18px; height: 12px; border-radius: 4px; border: 1.5px solid #9a9a9a; position: relative; }
.pad-tico::after { content: ''; position: absolute; left: 3px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #9a9a9a; }

/* JOYSTICK SETUP — the stick drawn as it sits on the bench, every key assignable; closes on its ✕ / DONE / Esc only */
.pad-modal { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(0, 0, 0, .74); font-family: var(--rep-font); }
.pad-modal[hidden] { display: none; }
.pad-win { width: min(1260px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden;
  background: #151515; border: 1px solid #333; border-top: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 26px 70px rgba(0, 0, 0, .65); }
.pad-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #2a2a2a; }
.pad-head > b { font-size: 18px; letter-spacing: 2.4px; color: #fff; white-space: nowrap; }
.pad-sub { font-size: 10.5px; letter-spacing: 1.5px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pad-conn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: #c8c8c8; background: #1e1e1e; border: 1px solid #444; }
.pad-conn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7a7a7a; }
.pad-conn.on { color: #8fe0b0; background: #10251a; border-color: #2f7a52; }
.pad-conn.on::before { background: #7ED4A6; box-shadow: 0 0 7px rgba(126, 212, 166, .8); }
.pad-x { flex: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; color: #e6e6e6;
  background: linear-gradient(#2c2c2c, #1e1e1e); border: 1px solid #555; }
.pad-x:hover { border-color: var(--accent); color: #fff; }
.pad-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 392px; }
.pad-art { min-width: 0; min-height: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pad-hint { padding: 9px 12px; border-radius: 8px; background: #1c1c1c; border: 1px solid #2e2e2e; color: #bdbdbd; font-size: 12.5px; line-height: 1.4; }
.pad-hint b { color: #fff; letter-spacing: .6px; }
.pad-hint.learn { background: #2a1514; border-color: #7a2d2a; color: #f2d2d0; }
.pad-hint.learn b { color: #ff9d99; }
.pad-side { min-height: 0; overflow-y: auto; padding: 12px 14px 14px; border-left: 1px solid #2a2a2a; display: flex; flex-direction: column; gap: 10px; }
.pad-sec { padding: 11px 12px; border-radius: 10px; background: #1b1b1b; border: 1px solid #2c2c2c; }
.pad-sh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: var(--accent); }
.pad-sh span { margin-left: auto; font-size: 9.5px; letter-spacing: 1px; color: #9a9a9a; font-variant-numeric: tabular-nums; }
.pad-kname { font-size: 22px; font-weight: 700; letter-spacing: 1.5px; color: #fff; margin-bottom: 8px; }
.pad-sig { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.pad-sig span { font-size: 9.5px; letter-spacing: 1.4px; color: #8a8a8a; font-weight: 700; }
.pad-sig b { font-size: 12.5px; letter-spacing: .8px; color: #e8e8e8; margin-right: auto; font-variant-numeric: tabular-nums; }
.pad-f { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; padding: 6px 10px 7px; border-radius: 8px;
  background: linear-gradient(#262626, #1c1c1c); border: 1px solid #4a4a4a; }
.pad-f i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: var(--accent); }
.pad-f select { width: 100%; height: 26px; border: 0; background: transparent; color: #f2f2f2; font: 600 13px/1 var(--rep-font); cursor: pointer; }
.pad-f select option, .pad-f select optgroup { background: #1a1a1a; color: #eee; }
.pad-f:focus-within { border-color: var(--accent); }
.pad-desc { margin: 0; color: #a8a8a8; font-size: 12px; line-height: 1.45; }
.pad-desc b { color: #e6e6e6; }
.pad-btn { flex: none; height: 28px; padding: 0 11px; border-radius: 6px; cursor: pointer; color: #ececec;
  background: linear-gradient(#2e2e2e, #1f1f1f); border: 1px solid #575757; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  font: 700 10.5px/1 var(--rep-font); letter-spacing: 1px; white-space: nowrap; }
.pad-btn:hover:not(:disabled) { border-color: #8f8f8f; color: #fff; }
.pad-btn:disabled { opacity: .45; cursor: default; }
.pad-btn.on { background: linear-gradient(#c94845, #a63532); border-color: #e5625f; color: #fff; }
.pad-btn.red { background: linear-gradient(#d65350, #b03936); border-color: #e5625f; color: #fff; }
.pad-pos { display: grid; grid-template-columns: 26px 1fr 1fr auto auto; grid-template-areas: "n x y s g" ". on on on on"; align-items: center; gap: 4px 6px; margin-bottom: 7px; }
.pad-pos > b { grid-area: n; font-size: 13px; color: #fff; letter-spacing: .5px; }
.pad-pos label { display: flex; align-items: center; gap: 4px; min-width: 0; height: 28px; padding: 0 6px; border-radius: 6px; background: #121212; border: 1px solid #4a4a4a; }
.pad-pos label:first-of-type { grid-area: x; }
.pad-pos label:last-of-type { grid-area: y; }
.pad-pos label i { font-style: normal; font-size: 9px; font-weight: 700; color: var(--accent); }
.pad-pos input { width: 100%; min-width: 0; border: 0; background: transparent; color: #f2f2f2; font: 600 12.5px/1 var(--rep-font); font-variant-numeric: tabular-nums; }
.pad-pos label:focus-within { border-color: var(--accent); }
.pad-pos [data-pa="save"] { grid-area: s; }
.pad-pos [data-pa="go"] { grid-area: g; }
.pad-on { grid-area: on; font-size: 10px; letter-spacing: .8px; color: #8fb8e8; min-height: 0; }
.pad-on:empty { display: none; }
.pad-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #2a2a2a; }
.pad-note { flex: 1 1 auto; min-width: 0; color: #8a8a8a; font-size: 11.5px; }
.pad-foot .pad-btn { height: 32px; padding: 0 16px; }

/* the drawing */
#pad-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 250px); user-select: none; }
#pad-svg text { font-family: var(--rep-font); }
#pad-svg .tab { fill: #101010; stroke: #2a2a2a; }
#pad-svg .body { fill: url(#padBody); stroke: #333; stroke-width: 1.5; }
#pad-svg .lip { fill: none; stroke: rgba(255, 255, 255, .045); stroke-width: 1.5; }
#pad-svg .well { fill: #070707; stroke: #222; stroke-width: 2; }
#pad-svg .washer { fill: #121212; stroke: #2b2b2b; stroke-width: 1.5; }
#pad-svg .shaft { fill: #0c0c0c; }
#pad-svg .ball { fill: url(#padBall); stroke: #000; stroke-width: 1.5; }
#pad-svg .shine { fill: rgba(255, 255, 255, .12); }
#pad-svg .stick.down .ball { stroke: var(--accent); stroke-width: 3; }
#pad-svg .dir { fill: #2e2e2e; }
#pad-svg .dir.on { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(220, 79, 76, .8)); }
#pad-svg .pk { cursor: pointer; outline: none; }
#pad-svg .pk .ring { fill: #050505; stroke: #262626; stroke-width: 1.5; }
#pad-svg .pk .cap { fill: url(#padCap); stroke: #3f3f3f; stroke-width: 1.5; }
#pad-svg .pk:hover .cap, #pad-svg .pk:focus-visible .cap { stroke: #9a9a9a; }
#pad-svg .pk.sel .cap { stroke: var(--accent); stroke-width: 3.5; }
#pad-svg .pk.sel .ring { stroke: #6e2a28; }
#pad-svg .pk.learn .cap { stroke: #fff; stroke-dasharray: 6 4; }
#pad-svg .pk.nosig:not(.learn) .cap { stroke-dasharray: 5 4; }
#pad-svg .pk.down .cap { fill: var(--accent); filter: drop-shadow(0 0 8px rgba(220, 79, 76, .9)); }
#pad-svg .pk.fixed { cursor: default; }
#pad-svg .pk.fixed .cap { fill: #161616; stroke-dasharray: 2 3; }
#pad-svg .let { fill: #d8d8d8; font-size: 18px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#pad-svg .pk.down .let { fill: #fff; }
#pad-svg .lab { fill: #a6a6a6; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-anchor: middle; }
#pad-svg .act { fill: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-anchor: middle; }
#pad-svg .act.none { fill: #6c6c6c; }
#pad-svg .act.fixed { fill: #9a9a9a; font-size: 9.5px; }
#pad-svg .actbg { fill: #3a1716; stroke: #8a3330; stroke-width: 1; }
#pad-svg .actbg.none { fill: #1c1c1c; stroke: #333; }
#pad-svg .pk.fixed .actbg { fill: #1c1c1c; stroke: #333; stroke-dasharray: 2 2; }
#pad-svg .pk.fixed .act { fill: #8a8a8a; }
@media (max-width: 1100px) {
  .pad-body { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .pad-side { border-left: 0; border-top: 1px solid #2a2a2a; overflow: visible; }
  #pad-svg { max-height: none; }
}
/* a narrow JOYSTICK card (STAGE/CAM's control column at 1366, MAP INSPECT): the gear alone */
#stg-card-jog { container: stgjog / inline-size; }
@container stgjog (max-width: 260px) {
  #stg-card-jog > .card-head .tiny { display: none; }
  #stg-card-jog > .card-head .pad-setbtn { padding: 0 5px; }
  #stg-card-jog > .card-head .pad-setbtn span { display: none; }
}
@container stgjog (max-width: 175px) {
  #stg-card-jog > .card-head .pad-chip { display: none !important; }
  #stg-card-jog > .card-head .pad-setbtn { margin-left: auto; }
}

/* ROUND 109 · THE SIDES, LIGHTER (operator 2026-10-18 with OVERVIEW / PERFORMANCE's side tabs: 'less information, fit the
   side tab without widening it, the details fit in the screen height without scrolling — the CARDS side is done nicely'):
   every item is ONE raised row in the CARDS side's manner — a box or a picture at the front, the name, one figure; what the
   row used to spell out rides in its tooltip. A computer's side that still passes the screen's height tightens: .dense
   (smaller gaps and paddings), then .dense2 (the share box shows VALUE only, the pictures shrink) — port.js fitSides(). */
/* BY TCG: the share box and the name */
#pf-tcgl .pf-tcgi.nb { grid-template-columns: 62px minmax(0, 1fr); }
#pf-tcgl .pf-tcgi.nb .pf-tcgn b { font-size: calc(13px * var(--pf-fs, 1)); white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.15; }
/* BY PURCHASE TYPE: the tick, the type, its unrealized gain % */
.pf-side .pf-kinds { display: flex; flex-direction: column; gap: 5px; }
.pf-tcgi.pf-kindi { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "k n g"; column-gap: 9px; row-gap: 0; padding: 7px 10px 7px 8px; }
.pf-kindi > .pf-kchk { grid-area: k; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; box-sizing: border-box; border-radius: 6px;
  border: 1px solid #5a5a5a; background: #141414; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); transition: background .12s, border-color .12s; }
.pf-kindi > .pf-kchk svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.pf-kindi.in > .pf-kchk { background: var(--accent); border-color: #ee7a77; box-shadow: none; }
.pf-kindi.in > .pf-kchk svg { visibility: visible; }
.pf-kindi > .pf-tcgn { grid-area: n; justify-content: center; }
.pf-kindi > .pf-tcgn b { font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: .4px; }
.pf-kindi.best > .pf-tcgn b::after { content: " \2605"; color: #ffd54a; }
.pf-kindi > .pf-kg { grid-area: g; display: inline-flex; align-items: center; gap: 3px; font-size: calc(12px * var(--pf-fs, 1)); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-kindi > .pf-kg.up { color: var(--pf-pos); } .pf-kindi > .pf-kg.down { color: var(--pf-neg); } .pf-kindi > .pf-kg.flat { color: #8a8a8a; font-weight: 600; }
.pf-kindi > .pf-kg .pf-tri { width: 8px; height: 8px; }
.pf-kindi.out > .pf-tcgn, .pf-kindi.out > .pf-kg { opacity: .42; }
.pf-kindi.out > .pf-tcgn b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .45); }
/* TOP CARD BY TCG (a computer) and BEST SALES: the picture, the type with one figure, the name, the value */
#view-port .pf-side :is(#pf-bygame, #pf-bestsales) { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
#view-port .pf-side :is(#pf-bygame, #pf-bestsales) li.pf-tg3 { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "art cap" "art nm" "art val";
  column-gap: 9px; row-gap: 1px; align-items: center; padding: 6px 9px 6px 6px; margin: 0; list-style: none; border-radius: 10px; border: 1px solid #3a3a3a;
  background: linear-gradient(180deg, #232323 0%, #1a1a1a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .35);
  cursor: pointer; transition: border-color .12s, background .12s; }
#view-port .pf-side :is(#pf-bygame, #pf-bestsales) li.pf-tg3:hover { border-color: #8f8f8f; background: linear-gradient(180deg, #2a2a2a 0%, #202020 100%); }
#view-port .pf-side :is(#pf-bygame, #pf-bestsales) li.pf-tg3 > .pf-tgart { grid-area: art; display: block; width: 38px; height: auto; aspect-ratio: 5 / 7; margin: 0; border-radius: 4px;
  border: 1px solid #2c2c2c; background: #121212; overflow: hidden; align-self: center; }
#view-port .pf-side :is(#pf-bygame, #pf-bestsales) li.pf-tg3 > .pf-tgart img { display: block; width: 100%; height: 100%; object-fit: contain; }
#view-port .pf-side :is(#pf-bygame, #pf-bestsales) li.pf-tg3 > .pf-tgcap { grid-area: cap; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
#view-port .pf-side li.pf-tg3 > .pf-tgcap > i { min-width: 0; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.4px; color: #bdbdbd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
#view-port .pf-side li.pf-tg3 > .pf-tgcap > em { flex: none; font-style: normal; font-size: calc(10px * var(--pf-fs, 1)); font-weight: 700; color: var(--pf-gold); font-variant-numeric: tabular-nums; }
#view-port .pf-side li.pf-tg3 > .pf-tgcap > span { flex: none; display: inline-flex; }
#view-port .pf-side li.pf-tg3 > .pf-tgcap .pf-chg { font-size: calc(10px * var(--pf-fs, 1)); }
#view-port .pf-side li.pf-tg3 > .pf-tgnm { grid-area: nm; min-width: 0; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.25; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side li.pf-tg3 > .pf-tgval { grid-area: val; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
#view-port .pf-side li.pf-tg3 > .pf-tgval > b { flex: none; font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 800; line-height: 1.2; color: var(--pf-pos); font-variant-numeric: tabular-nums; white-space: nowrap; }
#view-port .pf-side li.pf-tg3 > .pf-tgval > b.rev { color: var(--pf-gold); }
#view-port .pf-side li.pf-tg3 > .pf-tgval.q > b { color: #fff; }
#view-port .pf-side li.pf-tg3 > .pf-tgval > i { min-width: 0; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(10px * var(--pf-fs, 1)); font-weight: 600;
  color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side :is(#pf-bygame, #pf-bestsales) > .pf-empty { list-style: none; }
/* BEST SALES: BY QUANTITY | BY VALUE, a two-way switch over the rows */
#view-port .pf-side #pf-bestsalesbox > .pf-bshead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3px; padding: 3px; margin: 0 0 8px;
  border-radius: 9px; background: #1b1b1b; border: 1px solid #3f3f3f; }
#view-port .pf-side #pf-bestsalesbox > .pf-bshead > button { display: flex; align-items: center; justify-content: center; height: 26px; padding: 0 4px; border: 0; border-radius: 6px;
  background: none; color: #a6a6a6; font: inherit; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px;
  white-space: nowrap; cursor: pointer; transition: background .12s, color .12s; }
#view-port .pf-side #pf-bestsalesbox > .pf-bshead > button:hover:not(.on) { background: #2a2a2a; color: #fff; }
#view-port .pf-side #pf-bestsalesbox > .pf-bshead > button.on { background: linear-gradient(180deg, #e35a57 0%, #c94441 100%); color: #fff; box-shadow: 0 1px 6px rgba(220, 79, 76, .35); }
#view-port .pf-side #pf-bestsalesbox > .pf-bshead > button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* a computer's side that passes the screen's height: tighter, then the second figure goes */
#view-port .pf-shell:not(.ph) > .pf-side.dense .pf-sidebody { padding: 8px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense :is(.pf-tcgl, .pf-kinds, #pf-bygame, #pf-bestsales) { gap: 4px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense .pf-tcgi { padding-top: 4px; padding-bottom: 4px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense .pf-tcgc.pf-tcgpct { min-height: 30px; padding-top: 2px; padding-bottom: 2px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense #pf-kindbox { margin-top: 8px; padding-top: 6px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense :is(#pf-bygame, #pf-bestsales) li.pf-tg3 { padding-top: 4px; padding-bottom: 4px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense :is(#pf-bygame, #pf-bestsales) li.pf-tg3 > .pf-tgart { width: 32px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense :is(#pf-bygame, #pf-bestsales) li.pf-tg3 { grid-template-columns: 32px minmax(0, 1fr); }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 .pf-tcgpct > .q { display: none; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 .pf-tcgc.pf-tcgpct { min-height: 22px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 .pf-kindi > .pf-kchk { width: 18px; height: 18px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 .pf-tcgi.pf-kindi { grid-template-columns: 18px minmax(0, 1fr) auto; padding-top: 3px; padding-bottom: 3px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 :is(#pf-bygame, #pf-bestsales) li.pf-tg3 { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "art cap" "art val"; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 :is(#pf-bygame, #pf-bestsales) li.pf-tg3 > .pf-tgart { width: 24px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 :is(#pf-bygame, #pf-bestsales) li.pf-tg3 > .pf-tgnm { display: none; }
/* a phone: the rows in the panel */
.pf-shell.ph .pf-tcgi.pf-kindi { grid-template-columns: 22px minmax(0, 1fr) auto; padding: 9px 10px 9px 8px; }
.pf-shell.ph #pf-bestsales { display: flex !important; }

/* ROUND 109 · ONE BUTTON VOICE — STAGE/CAM, SETTINGS, GUIDE AND THE SIGN-IN PAGE (operator 2026-10-18: 'the STAGE/CAM buttons
   haven't been revised to match the INSPECTION sections yet — STAGE/CAM up to date with the rest of the app, also GUIDE and
   SETTINGS' · 'the Login / Logout / Sign-up page in the new button styles and font'). STAGE/CAM's .btn — and wherever its
   camera stack and JOYSTICK card are borrowed — takes CENTERING's voice (round 99): capitals in the condensed cut, bold, .5 px
   tracked, 5 px corners, the type size kept so no button changes height; Run + Capture and the other red ones flat #5a2321 with
   the accent edge (MAP INSPECT's lit state). ABORT stays a solid red — the emergency stop must shout. */
:is(#view-stage, #view-settings, #view-admin, #view-guide) .btn, #cam-stack .btn, #stg-card-jog .btn {
  text-transform: uppercase; font-stretch: 87.5%; font-weight: 700; letter-spacing: .5px; border-radius: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#view-stage, #view-settings, #view-admin, #view-guide) .btn.btn-accent, #cam-stack .btn.btn-accent { background: #5a2321; border-color: var(--accent); color: #fff; text-shadow: none; box-shadow: none; }
:is(#view-stage, #view-settings, #view-admin, #view-guide) .btn.btn-accent:hover:not(:disabled), #cam-stack .btn.btn-accent:hover:not(:disabled) { background: #6e2a27; }
:is(#view-stage, #view-settings, #view-admin, #view-guide) .btn.btn-accent:disabled, #cam-stack .btn.btn-accent:disabled { background: #3a1d1c; border-color: #6b2f2d; color: #a07a79; box-shadow: none; }
:is(#view-stage, #view-settings, #view-admin) .btn.btn-blue:hover:not(:disabled) { background: #1e4466; color: #fff; }
#view-stage .btn.btn-teal:hover:not(:disabled) { background: #185252; color: #fff; }
#view-stage #stg-abort.btn { background: var(--accent); border-color: #ee7a77; color: #fff; letter-spacing: 1px; box-shadow: 0 2px 8px rgba(220, 79, 76, .35); }
#view-stage #stg-abort.btn:hover { background: #e8625f; }
#stg-pad .btn { letter-spacing: 0; font-stretch: normal; }
/* the small text buttons (clear path, clear) read as the rest */
#view-stage :is(#stg-clear-path, #stg-wire-clear, #stg-clearseq) { letter-spacing: .6px; }
/* the three calibration buttons share one column's third: the narrowest cut, no tracking — "1080p CALIBRATION" stays whole */
#view-stage :is(#stg-cal-1080p, #stg-cal-2k, #stg-cal-4k).btn { letter-spacing: 0; padding-left: 2px; padding-right: 2px; font-stretch: 75%; }
#view-stage .btn .lc { text-transform: none; }   /* 1080p reads as the resolution, never 1080P */
#view-stage #stg-start.btn { letter-spacing: 0; padding-left: 4px; padding-right: 4px; }
/* SETTINGS' st-btn: the same corners as the rest of the studio's */
:is(#view-settings, #view-admin, #dir-pop) .btn.st-btn { border-radius: 6px; letter-spacing: .8px; }

/* THE SIGN-IN PAGE: the app's controls — wells you type in (a red edge when focused), the raised red SIGN IN (the SEARCH
   button's make), CONTINUE AS GUEST on BLACKVAULT's gold, CREATE A CUSTOMER ACCOUNT a raised control; every label in
   capitals in the condensed cut */
.lg-form label { font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: 10px; letter-spacing: 1.6px; color: #f07a77; }
.lg-form input { background: #0e0e0e; border: 1px solid #4a4a4a; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; color: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55); transition: border-color .12s, box-shadow .12s; }
.lg-form input:hover { border-color: #6a6a6a; }
.lg-form input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), 0 0 0 3px rgba(220, 79, 76, .22); }
#view-login .lg-primary, #view-login .lg-guest, #view-login .lg-secondary { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 46px;
  padding: 0 14px; border-radius: 10px; font: inherit; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: 13px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .12s, border-color .12s, background .12s; }
#view-login .lg-primary { border: 1px solid #ee7a77; background: linear-gradient(180deg, #e8625f 0%, #c63f3c 100%); color: #fff; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 10px rgba(220, 79, 76, .35); }
#view-login .lg-primary:hover:not(:disabled) { transform: translateY(-1px); border-color: #ffb3b1; background: linear-gradient(180deg, #ee6f6c 0%, #cf4744 100%); }
#view-login .lg-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45); }
#view-login .lg-primary:disabled { background: #2a1c1c; border-color: #3a2a2a; color: #7a6a6a; box-shadow: none; cursor: default; transform: none; }
#view-login .lg-guest { border: 1px solid #ab9b6f; background: linear-gradient(180deg, #1a1710 0%, #0e0e0e 100%); color: #d8c89a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .45); }
#view-login .lg-guest:hover { transform: translateY(-1px); border-color: #d8c89a; background: #ab9b6f; color: #111; }
#view-login .lg-guest:active { transform: translateY(1px); }
#view-login .lg-secondary { border: 1px solid #575757; background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%); color: #ededed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45); font-weight: 700; font-size: 12.5px; }
#view-login .lg-secondary:hover { transform: translateY(-1px); border-color: #8f8f8f; background: linear-gradient(180deg, #333 0%, #262626 100%); color: #fff; }
#view-login :is(.lg-primary, .lg-guest, .lg-secondary):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#view-login .lg-eye { border-radius: 7px; }
#view-login .lg-pub { border-radius: 10px; background: linear-gradient(180deg, #212121 0%, #191919 100%); border-color: #3a3a3a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
#view-login .lg-pub b { font-family: var(--rep-font-sc); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 1.2px; font-size: 12.5px; }
#view-login .lg-pub:hover { border-color: #ab9b6f; }
@media (max-width: 420px) {
  #view-login .lg-primary, #view-login .lg-guest { letter-spacing: .8px; font-size: 12.5px; padding: 0 8px; }
}

/* ROUND 110 · THE FEED WITHOUT A SLIDER (operator 2026-10-18: 'take out the feed-rate slider — FEED − / FEED + change it by 100,
   800 at the most; the stick half-way = 300, full tilt = 600'): the number, its half and two buttons, on every page that holds
   the JOYSTICK card */
#stg-card-jog .stg-feedf { display: flex; flex-direction: column; gap: 3px; flex: 1 1 70px; min-width: 0; }
#stg-card-jog .stg-feedf > i { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
#stg-card-jog .stg-feedf > i em { margin-left: auto; font-style: normal; font-size: 9px; letter-spacing: .4px; color: #9a9a9a; }
#stg-card-jog #stg-feed-val { color: #fff; font-variant-numeric: tabular-nums; }
#stg-card-jog .stg-feedstep { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#stg-card-jog .stg-feedstep .btn { display: flex; align-items: center; justify-content: center; height: 24px; padding: 0; font-size: 15px; font-weight: 700;
  line-height: 1; letter-spacing: 0; border-radius: 5px; }
#view-ai #stg-card-jog .stg-feedstep .btn { height: 22px; }

/* ROUND 110 · DEFECT TYPES IN TWO COLUMNS (operator 2026-10-18: 'revise the defect type list — 13 types — two columns to fill
   the space, more to the left, the buttons the same size'): the types sit two to a row, every button one size (a long
   label wraps to a second line in a narrow column); the right column takes the room the 9:16 live view leaves (ai.js
   sizeLive → --ai-rcolw, 108–230 px) and a wide screen gives the divider up to 64 px more for it */
#view-ai { --ai-c-live: clamp(480px, calc((100vh - 217px) * .5625 + 212px + clamp(0px, 100vw - 1700px, 64px)), 900px); }
#view-ai .ai-v2 .ai-c2body { grid-template-columns: 88px minmax(0, 1fr) var(--ai-rcolw, 108px); }
#view-ai .ai-v2 .ai-c2body.modes-folded { grid-template-columns: 24px minmax(0, 1fr) var(--ai-rcolw, 108px); }
#view-ai .ai-v2 .ai-rcol { container: airc / inline-size; }
#view-ai .ai-v2 .ai-pick .ai-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
#view-ai .ai-v2 .ai-pick .ai-types .btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 26px; padding: 0 3px;
  font-size: 8.5px; line-height: 1.05; letter-spacing: .2px; white-space: normal; overflow: hidden; text-overflow: clip; text-align: center; }
@container airc (min-width: 150px) {
  #view-ai .ai-v2 .ai-pick .ai-types { gap: 4px; }
  #view-ai .ai-v2 .ai-pick .ai-types .btn { font-size: 9.5px; letter-spacing: .4px; white-space: nowrap; }
}
@container airc (min-width: 200px) {
  #view-ai .ai-v2 .ai-pick .ai-types .btn { height: 28px; font-size: 10.5px; letter-spacing: .6px; }
}
@media (max-height: 860px) { #view-ai .ai-v2 .ai-pick .ai-types .btn { height: 24px; } }

/* ============ ROUND 112 · BLACKBOARD IN THREE STEPS (operator 2026-10-18 — the PC journey of the Design canvas) ============
   divider 1 = card type → character (twenty icons) · divider 2 = the cards · divider 3 = ranking and population; dividers 2
   and 3 drag their columns (--bb-c1 · --bb-c3, blacklens.board.cols); admins see view counts (.bbx-eye) */
#view-board { --bb-c1: clamp(290px, 21vw, 410px); --bb-c3: clamp(400px, 31vw, 610px); }
#view-board .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#view-board .bbx-grid { grid-template-columns: var(--sd) var(--bb-c1) var(--sd) minmax(320px, 1fr) var(--sd) var(--bb-c3); gap: 8px; }
#view-board .bbx-col { overflow: hidden; }
#view-board .bbx-grid > .sec-div.jb-resizable { cursor: col-resize; }
#view-board .bb-col[data-pane="rank"] > .bb-colbody { container-type: inline-size; }

/* the bar: the brand, the three steps, the search, the totals */
#view-board .bbx-bar { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; padding: 8px 12px; min-height: 60px; }
#view-board .bbx-brand { display: flex; flex-direction: column; flex: 0 0 auto; }
#view-board .bbx-brand b { font-size: 21px; font-weight: 700; letter-spacing: .6px; color: #fff; line-height: 1; }
#view-board .bbx-brand b span { color: #AB9B6F; }
#view-board .bbx-brand i { font-style: normal; font-size: 9.5px; letter-spacing: 1.6px; color: #a6a6a6; margin-top: 4px; font-weight: 600; }
#view-board .bbx-steps { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
#view-board .bbx-step { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 7px; border-radius: 9px; border: 1px solid #2a2a2a; background: transparent;
  color: #e8e8e8; font: inherit; cursor: pointer; max-width: 290px; min-width: 0; }
#view-board .bbx-step .n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #262626; color: #8a8a8a; }
#view-board .bbx-step .t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; min-width: 0; }
#view-board .bbx-step .t i { font-style: normal; font-size: 9.5px; letter-spacing: 1.5px; font-weight: 700; color: #8a8a8a; }
#view-board .bbx-step .t b { font-size: 14px; font-weight: 600; color: #8a8a8a; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-board .bbx-step.done { border-color: #3a3a3a; background: #1f1f1f; }
#view-board .bbx-step.done .n { background: var(--accent); color: #fff; }
#view-board .bbx-step.done .t i { color: #9a9a9a; }
#view-board .bbx-step.done .t b { color: #fff; }
#view-board .bbx-step.cur { border-color: var(--accent); background: #221312; }
#view-board .bbx-step.cur .n { background: #3a1716; color: #ff9f9c; }
#view-board .bbx-step.cur .t i { color: #ff8f8b; }
#view-board .bbx-step.cur .t b { color: #f2f2f2; }
#view-board .bbx-step:disabled { cursor: default; }
#view-board .bbx-step:not(:disabled):hover { border-color: #6a6a6a; }
#view-board .bbx-step:focus-visible, #view-board .bbx-char:focus-visible, #view-board .bbx-tile:focus-visible, #view-board .bbx-tcg:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
#view-board .bbx-chev { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #5f5f5f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#view-board .bbx-over, #view-board .bbx-backb { height: 30px; padding: 0 11px; border-radius: 7px; border: 1px solid #3a3a3a; background: linear-gradient(#2a2a2a, #1e1e1e);
  color: #cfcfcf; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 1px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
#view-board .bbx-over:hover, #view-board .bbx-backb:hover { border-color: #8f8f8f; color: #fff; }
#view-board .bbx-over { margin-left: 4px; }
#view-board .bbx-backb { padding: 0 10px 0 6px; letter-spacing: .8px; }
#view-board .bbx-backb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#view-board .bbx-search { position: relative; flex: 0 1 400px; min-width: 260px; }
#view-board .bbx-sbox { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 12px; border-radius: 9px; background: #0c0c0c; border: 1px solid #3a3a3a; }
#view-board .bbx-sbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(220, 79, 76, .18); }
#view-board .bbx-sbox > svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #a6a6a6; stroke-width: 2; stroke-linecap: round; }
#view-board .bbx-sbox input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none; color: #f2f2f2; font: inherit; font-size: 14px; }
#view-board .bbx-qx { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; border: 1px solid #3a3a3a; background: #1f1f1f; color: #cfcfcf; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
#view-board .bbx-qx[hidden] { display: none; }
#view-board .bbx-qx svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#view-board .bbx-drop { position: absolute; top: 50px; right: 0; width: max(100%, 470px); z-index: 40; box-sizing: border-box; background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 11px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .65); padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; }
#view-board .bbx-drop[hidden] { display: none; }
#view-board .bbx-dcap { font-size: 10px; letter-spacing: 1.6px; color: #9a9a9a; font-weight: 700; padding: 6px 6px 2px; }
#view-board .bbx-dres { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; border: 1px solid #2c2c2c; background: #232323; color: #e8e8e8; font: inherit; cursor: pointer; text-align: left; width: 100%; }
#view-board .bbx-dres:hover, #view-board .bbx-dres:focus-visible { border-color: var(--accent); outline: none; }
#view-board .bbx-dtxt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
#view-board .bbx-dtxt b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-board .bbx-dtxt i { font-style: normal; font-size: 12px; color: #a6a6a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-board .bbx-dres > em { font-style: normal; font-size: 10.5px; letter-spacing: 1px; color: #ff8f8b; font-weight: 700; white-space: nowrap; }
#view-board .bbx-dres.job { border-color: #5c5340; background: #1a1710; }
#view-board .bbx-dres.job > em { color: #d8c89a; }
#view-board .bbx-dnone { font-size: 13px; color: #bdbdbd; padding: 10px 8px; }
#view-board .bbx-tot { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; color: inherit; }
#view-board .bbx-tot span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
#view-board .bbx-tot b { font-size: 18px; font-weight: 700; color: #fff; }
#view-board .bbx-tot i { font-style: normal; font-size: 9.5px; letter-spacing: 1.4px; color: #a6a6a6; font-weight: 700; }
#view-board .bbx-tot em { font-style: normal; font-size: 10px; color: #d8c89a; max-width: 90px; }

/* pictures */
#view-board .bb-thumb.xs { width: 28px; height: 39px; }
#view-board .bb-thumb.mini { width: 30px; height: 42px; border-radius: 3px; }
#view-board .bb-thumb.tile { width: 96px; height: 134px; border-radius: 5px; }
#view-board .bb-thumb.mid { width: 52px; height: 73px; border-radius: 4px; }
#view-board .bbx-tile .cl-art > .pf-gbadge { margin-top: -10px; height: 17px; line-height: 15px; font-size: 9.5px; }
#view-board .bbx-tile .cl-art > .pf-gbadge.cat b { background: #262626; color: #bdbdbd; }

/* the column heads and bodies */
#view-board .bbx-d1 { padding: 0; }
#view-board .bbx-head { position: sticky; top: 0; z-index: 3; background: #141414; padding: 12px 14px 10px; border-bottom: 1px solid #262626; display: flex; flex-direction: column; gap: 7px; }
#view-board .bbx-head h2, #view-board .bbx-plain h2, #view-board .bbx-herot h2 { margin: 0; font-size: 21px; font-weight: 700; color: #fff; letter-spacing: .3px; }
#view-board .bbx-head p, #view-board .bbx-plain p, #view-board .bbx-herot p { margin: 0; font-size: 12.5px; color: #a6a6a6; }
#view-board .bbx-cap { font-style: normal; font-size: 10.5px; letter-spacing: 1.8px; color: #ff8f8b; font-weight: 700; }
#view-board .bbx-cap.gold { color: #d8c89a; }
#view-board .bbx-cap.blue { color: #8fc4ff; }
#view-board .bbx-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
#view-board .bbx-tcg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #333; background: linear-gradient(180deg, #242424, #1c1c1c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .35); color: #e8e8e8; cursor: pointer; font: inherit; text-align: left; }
#view-board .bbx-tcg:hover { border-color: #6a6a6a; }
#view-board .bbx-code { flex: 0 0 48px; height: 48px; border-radius: 9px; background: #0e0e0e; border: 1px solid #5c5340; color: #d8c89a; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: .8px; }
#view-board .bbx-code.sm { flex: 0 0 auto; height: 28px; padding: 0 8px; border-radius: 7px; font-size: 11px; }
#view-board .bbx-tcgt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
#view-board .bbx-tcgt b { font-size: 17px; font-weight: 700; }
#view-board .bbx-tcgt i { font-style: normal; font-size: 12px; color: #a6a6a6; }
#view-board .bbx-stack { display: flex; align-items: center; flex: 0 0 auto; }
#view-board .bbx-stack .bb-thumb { box-shadow: 0 0 0 2px #1f1f1f; }
#view-board .bbx-stack .bb-thumb + .bb-thumb { margin-left: -14px; }
#view-board .bbx-sub { font-size: 10px; letter-spacing: 1.6px; color: #9a9a9a; font-weight: 700; margin-top: 10px; }
#view-board .bbx-more { display: flex; flex-wrap: wrap; gap: 6px; }
#view-board .bbx-more span { height: 26px; display: flex; align-items: center; padding: 0 9px; border-radius: 6px; background: #1b1b1b; border: 1px solid #2c2c2c; color: #a6a6a6; font-size: 12px; }
#view-board .bbx-note { margin: 10px 2px 0; font-size: 11.5px; color: #8f8f8f; line-height: 1.45; }

/* step 2: the characters */
#view-board .bbx-tline { display: flex; align-items: center; gap: 10px; min-width: 0; }
#view-board .bbx-tname { font-size: 19px; font-weight: 700; color: #fff; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-board .bbx-tools { display: flex; gap: 8px; align-items: center; }
#view-board .bbx-seg { display: flex; background: #0e0e0e; border: 1px solid #2e2e2e; border-radius: 8px; padding: 2px; gap: 2px; flex: 0 0 auto; }
#view-board .bbx-seg button { height: 26px; padding: 0 8px; border-radius: 6px; border: 0; background: transparent; color: #bdbdbd; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; cursor: pointer; }
#view-board .bbx-seg button.on { background: var(--accent); color: #fff; }
#view-board .bbx-find { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: 7px; background: #0c0c0c; border: 1px solid #333; }
#view-board .bbx-find:focus-within { border-color: var(--accent); }
#view-board .bbx-find > svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: #a6a6a6; stroke-width: 2; stroke-linecap: round; }
#view-board .bbx-find input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none; color: #f2f2f2; font: inherit; font-size: 12.5px; }
#view-board .bbx-head .bbx-counts { font-size: 11.5px; color: #8f8f8f; }
#view-board .bbx-chars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 4px; }
#view-board .bbx-char { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 2px 7px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  cursor: pointer; color: #8f8f8f; font: inherit; min-width: 0; }
#view-board .bbx-char:hover { background: #1c1c1c; border-color: #333; }
#view-board .bbx-char.has { color: #ececec; }
#view-board .bbx-char.on { background: #2a1514; border-color: var(--accent); color: #fff; }
#view-board .bbx-char > b { font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; max-height: 28px; overflow: hidden; padding: 0 2px; }
#view-board .bbx-ring { position: relative; width: 58px; height: 58px; display: block; flex: 0 0 58px; }
#view-board .bbx-face { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #262626; box-shadow: 0 0 0 1.5px #333; }
#view-board .bbx-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
#view-board .bbx-face.photo img { object-position: 50% 26%; transform: scale(1.4); transform-origin: 50% 32%; }
#view-board .bbx-face.mono b { font-size: 17px; font-weight: 700; color: #d8c89a; }
#view-board .bbx-char:not(.has):not(.on) .bbx-face img { opacity: .5; filter: saturate(.6); }
#view-board .bbx-char.has .bbx-face { box-shadow: 0 0 0 1.5px #7a6c48; }
#view-board .bbx-char.on .bbx-face { box-shadow: 0 0 0 3px var(--accent); }
#view-board .bbx-n { position: absolute; top: -4px; right: -7px; min-width: 21px; height: 21px; box-sizing: border-box; border-radius: 11px; background: var(--accent); color: #fff; font-style: normal;
  font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; box-shadow: 0 0 0 2px #141414; }
#view-board .bbx-face.sm { width: 34px; height: 34px; flex: 0 0 34px; }
#view-board .bbx-face.xs { width: 26px; height: 26px; flex: 0 0 26px; box-shadow: none; }
#view-board .bbx-face.sm.mono b, #view-board .bbx-face.xs.mono b { font-size: 11px; }
#view-board .bbx-face.hero { width: 66px; height: 66px; flex: 0 0 66px; box-shadow: 0 0 0 3px var(--accent); }
#view-board .bbx-face.hero.mono b { font-size: 22px; }
#view-board .bbx-also { display: flex; flex-wrap: wrap; gap: 6px; }
#view-board .bbx-alsob { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 4px; border-radius: 9px; border: 1px solid #333; background: #1d1d1d; color: #e8e8e8; font: inherit; cursor: pointer; }
#view-board .bbx-alsob:hover { border-color: #6a6a6a; }
#view-board .bbx-alsob.on { border-color: var(--accent); background: #2a1514; }
#view-board .bbx-alsob b { font-size: 12.5px; font-weight: 600; }
#view-board .bbx-alsob > em { font-style: normal; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }

/* admins: view counts */
#view-board .bbx-eye { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #8fc4ff; letter-spacing: .3px; white-space: nowrap; line-height: 1; }
#view-board .bbx-eye svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#view-board .bbx-eye.sm { font-size: 9.5px; }
#view-board .bbx-eye.sm svg { width: 11px; height: 11px; flex-basis: 11px; }
#view-board .bbx-tile > .bbx-tl > .bbx-eye { position: absolute; top: 9px; right: 10px; }
#view-board .bbx-tline .bbx-eye, #view-board .bbx-crumbs .bbx-eye { margin-left: 4px; }

/* step 3: the cards */
#view-board .bbx-d2h, #view-board .bbx-d3h { flex: 0 0 auto; padding: 12px 14px; border-bottom: 1px solid #262626; display: flex; flex-direction: column; gap: 10px; }
#view-board .bbx-plain p, #view-board .bbx-herot p { margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#view-board .bbx-plain h2 { margin-top: 3px; }
#view-board .bbx-hero { display: flex; align-items: center; gap: 14px; }
#view-board .bbx-herot { flex: 1 1 auto; min-width: 0; }
#view-board .bbx-herot h2 { margin-top: 2px; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-board .bbx-hstats { display: flex; gap: 6px; flex: 0 0 auto; }
#view-board .bbx-hstats span, #view-board .bbx-stats span { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 6px 8px; border-radius: 8px; background: #101010; border: 1px solid #2a2a2a; }
#view-board .bbx-hstats i, #view-board .bbx-stats i { font-style: normal; font-size: 9px; letter-spacing: 1.2px; color: #9a9a9a; font-weight: 700; white-space: nowrap; }
#view-board .bbx-hstats b, #view-board .bbx-stats b { font-size: 19px; font-weight: 700; color: #f2f2f2; }
#view-board .bbx-hstats .gold b, #view-board .bbx-stats .gold b { color: #d8c89a; }
#view-board .bbx-filters { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
#view-board .bbx-fg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#view-board .bbx-fg > i { font-style: normal; font-size: 10px; letter-spacing: 1.5px; color: #9a9a9a; font-weight: 700; margin-right: 2px; }
#view-board .bbx-chip { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid #3a3a3a; background: linear-gradient(#2a2a2a, #1e1e1e); color: #cfcfcf; font: inherit; font-size: 11.5px;
  font-weight: 700; letter-spacing: .5px; cursor: pointer; }
#view-board .bbx-chip:hover { border-color: #8f8f8f; color: #fff; }
#view-board .bbx-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
#view-board .bbx-count { margin-left: auto; font-size: 12px; color: #a6a6a6; }
#view-board #bbx-d2 { padding: 12px; }
#view-board .bbx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
#view-board .bbx-tile { position: relative; display: flex; gap: 12px; align-items: stretch; text-align: left; padding: 10px; border-radius: 10px; border: 1px solid #2c2c2c; background: #1b1b1b;
  cursor: pointer; color: #e8e8e8; font: inherit; min-width: 0; width: 100%; box-sizing: border-box; }
#view-board .bbx-tile:hover { border-color: #555; }
#view-board .bbx-tile.on { border-color: var(--accent); background: #241312; box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(220, 79, 76, .18); }
#view-board .bbx-tile.cat { cursor: default; border-style: dashed; border-color: #3a3a3a; background: #121212; }
#view-board .bbx-tile.cat .bb-thumb img { opacity: .78; }
#view-board .bbx-tile > .cl-art { flex: 0 0 96px; align-self: flex-start; }
#view-board .bbx-tl { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#view-board .bbx-tile .bbx-cl { font-size: 12.5px; padding-right: 34px; }
#view-board .bbx-tile .bbx-cl > .l-name > b { font-size: 16px; }
#view-board .bbx-st { margin-top: auto; display: flex; gap: 6px; }
#view-board .bbx-st > span { flex: 1 1 0; min-width: 0; background: #111; border: 1px solid #2a2a2a; border-radius: 6px; padding: 4px 7px; display: flex; flex-direction: column; }
#view-board .bbx-st i { font-style: normal; font-size: 9px; letter-spacing: 1.2px; color: #9a9a9a; font-weight: 700; white-space: nowrap; }
#view-board .bbx-st b { font-size: 16px; font-weight: 700; color: #fff; }
#view-board .bbx-st .top b { color: #d8c89a; }
#view-board .bbx-st .zero { flex: 0 0 80px; border-style: dashed; background: #0f0f0f; }
#view-board .bbx-st .zero b { color: #8f8f8f; }
#view-board .bbx-catcap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 20px 2px 10px; }
#view-board .bbx-catcap b { font-size: 10.5px; letter-spacing: 1.6px; color: #9a9a9a; font-weight: 700; }
#view-board .bbx-catcap i { font-style: normal; font-size: 12px; color: #8f8f8f; }
#view-board .bbx-moreb { margin: 12px auto 4px; display: block; height: 34px; padding: 0 16px; border-radius: 8px; border: 1px solid #5c5340; background: #1a1710; color: #d8c89a; font: inherit;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
#view-board .bbx-moreb:hover { border-color: #ab9b6f; }
#view-board #bbx-d2 .bb-empty + .bbx-tiles, #view-board #bbx-d2 .bbx-tiles + .bb-empty { margin-top: 10px; }

/* the ranking and the population */
#view-board .bbx-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#view-board .bbx-crumbs .bbx-cap { margin-right: 4px; }
#view-board .bbx-crumb { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid #333; background: #1d1d1d; color: #bdbdbd; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .6px;
  cursor: pointer; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-board .bbx-crumb:hover { border-color: #8f8f8f; color: #fff; }
#view-board .bbx-crumb.on { background: #16324c; border-color: #2f6fb0; color: #d6e8ff; cursor: default; }
#view-board .bbx-sep { color: #6f6f6f; font-size: 14px; }
#view-board .bbx-chero { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: #1b1b1b; border: 1px solid #2c2c2c; }
#view-board .bbx-chero .bbx-cl { font-size: 12px; }
#view-board .bbx-chero .bbx-cl > .l-name > b { font-size: 16px; }
#view-board .bbx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#view-board .bbx-stats span { align-items: flex-start; padding: 7px 10px; min-width: 0; }
#view-board .bbx-stats b { font-size: 21px; line-height: 1.15; }
#view-board .bbx-tabs { display: flex; background: #0e0e0e; border: 1px solid #2e2e2e; border-radius: 9px; padding: 3px; gap: 3px; }
#view-board .bbx-tabs button { flex: 1 1 0; height: 32px; border-radius: 7px; border: 0; background: transparent; color: #bdbdbd; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; cursor: pointer; }
#view-board .bbx-tabs button:hover { color: #fff; }
#view-board .bbx-tabs button.on { background: #2f6fb0; color: #fff; }
#view-board #bbx-d3 { padding: 10px 12px 14px; }
#view-board .bbx-rows { display: flex; flex-direction: column; }
#view-board .bb-dbar.ten .track i { background: linear-gradient(90deg, #6b5a26, #d8c89a); }
#view-board .bb-dbar.plus .track i { background: linear-gradient(90deg, #a07f2c, #ffe9a8); }
#view-board .bb-dbar.plus .nm { color: #d8c89a; }

/* the columns adapt to the room they are dragged to (round 112): a narrow CARDS head puts its four figures under the
   name, a narrow ranking drops the four subgrades from its rows, a narrow first column gives the finder its own line */
#view-board .bbx-d2h { container-type: inline-size; }
@container (max-width: 600px) {
  #view-board .bbx-hero { flex-wrap: wrap; row-gap: 10px; }
  #view-board .bbx-herot { flex: 1 1 calc(100% - 90px); }
  #view-board .bbx-hstats { flex: 1 1 100%; }
  #view-board .bbx-hstats span { flex: 1 1 0; min-width: 0; }
}
@container (max-width: 480px) {
  #view-board .bb-row .bb-rp { display: none; }
}
#view-board .bbx-tools { flex-wrap: wrap; }
#view-board .bbx-find { flex: 1 1 150px; }

/* below 900 px: one divider at a time (SELECT · CARDS · RANKING) until the phone design is built */
@media (max-width: 900px) {
  #view-board .bbx-grid { grid-template-columns: minmax(0, 1fr); }
  #view-board .bbx-grid[data-pane="sel"] .bb-col:not([data-pane="sel"]),
  #view-board .bbx-grid[data-pane="cards"] .bb-col:not([data-pane="cards"]),
  #view-board .bbx-grid[data-pane="rank"] .bb-col:not([data-pane="rank"]) { display: none; }
  #view-board .bbx-bar { flex-wrap: wrap; gap: 8px; }
  #view-board .bbx-brand i { display: none; }
  #view-board .bbx-search { order: 2; flex: 1 1 200px; min-width: 0; }
  #view-board .bbx-drop { width: 100%; }
  #view-board .bbx-tot { display: none; }
  #view-board .bbx-steps { order: 3; flex: 1 1 100%; gap: 4px; }
  #view-board .bbx-step { height: 38px; padding: 0 10px 0 5px; }
  #view-board .bbx-step .t b { max-width: 96px; }
  #view-board .bbx-chev { width: 12px; height: 12px; flex-basis: 12px; }
  #view-board .bb-tabs { order: 4; flex: 1 1 100%; }
  #view-board .bbx-tiles { grid-template-columns: minmax(0, 1fr); }
  #view-board .bbx-hero { flex-wrap: wrap; }
  #view-board .bbx-hstats { flex: 1 1 100%; }
  #view-board .bbx-hstats span { flex: 1 1 0; min-width: 0; }
  #view-board .bbx-stats b { font-size: 18px; }
}

/* ===== ROUND 114 · THE PUBLIC VAULT (operator 2026-10-18) — an estimated corner angle (no side could measure it)
   reads like the measured ones, marked by its ≈ ===== */
.bv-est { font-style: normal; color: inherit; }
/* the estimate laid over a tile's baked "TL · —°" (ai.js draws that box at the tile's INNER corner: 8 / 480 in, 40 / 480 tall,
   Consolas 700 26 / 480 — the tile fills .bv-zin, a square of 100cqmin of its .bv-zc); a solid box a little larger hides it */
.bv-cest { position: absolute; z-index: 1; display: flex; align-items: center; height: 8.7cqmin; padding: 0 2.1cqmin; background: #080808;
  color: #eaeaea; font: normal 700 5.42cqmin/1 Consolas, "Roboto Mono", monospace; white-space: nowrap; pointer-events: none; }
.bv-cest.tl { right: 1.45cqmin; bottom: 1.45cqmin; }
.bv-cest.tr { left: 1.45cqmin; bottom: 1.45cqmin; }
.bv-cest.bl { right: 1.45cqmin; top: 1.45cqmin; }
.bv-cest.br { left: 1.45cqmin; top: 1.45cqmin; }

/* ROUND 115 · SCROLLBARS (operator 2026-10-18 with BLACKBOARD's white scrollbars: 'every scroll bar in every page of the app —
   a black / red slider'). scrollbar-color is inherited, so the root paints every scroller (Chrome, Edge, Firefox); the
   scrollers that hide their bar (scrollbar-width: none) keep hiding it. Safari reads the WebKit pseudo-elements instead. */
html { scrollbar-color: #b9403d #101010; }
@supports not (scrollbar-color: red blue) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #101010; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d4524f, #a3302d); border-radius: 8px; border: 2px solid #101010; }
  ::-webkit-scrollbar-thumb:hover { background: #e3605d; }
  ::-webkit-scrollbar-corner { background: #101010; }
}

/* ROUND 115 · TEMPERATURE / TINT (operator 2026-10-18: 'two more sliders, Temperature and Tint — take out Denoise'): the two
   white-balance sliders wear their colour axis on the track (blue → yellow, green → magenta), the thumb in the app's red */
:is(.jb-exp-sliders, .ai-adj) label.wb input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
:is(.jb-exp-sliders, .ai-adj) label.wb input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #3d8bef 0%, #7a7a7a 50%, #f0b43c 100%); }
:is(.jb-exp-sliders, .ai-adj) label.wb.n input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #45c46e 0%, #7a7a7a 50%, #d653c9 100%); }
:is(.jb-exp-sliders, .ai-adj) label.wb input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px;
  border-radius: 50%; background: #f2f2f2; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); box-sizing: border-box; }
:is(.jb-exp-sliders, .ai-adj) label.wb input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3d8bef 0%, #7a7a7a 50%, #f0b43c 100%); }
:is(.jb-exp-sliders, .ai-adj) label.wb.n input[type="range"]::-moz-range-track { background: linear-gradient(90deg, #45c46e 0%, #7a7a7a 50%, #d653c9 100%); }
:is(.jb-exp-sliders, .ai-adj) label.wb input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #f2f2f2; border: 2px solid var(--accent); }
.ai-adj label.wb input[type="range"]::-webkit-slider-runnable-track { height: 3px; }
.ai-adj label.wb input[type="range"]::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -3.5px; }

/* ROUND 115 · BLACKPORT'S SIDE TABS REDESIGNED (operator 2026-10-18 with BY TCG and TOP CARD BY TCG: 'redesign the side tabs'):
   BY TCG = an allocation row a card type — the name and its share of the VALUE, a meter, the share of the CARDS under it;
   ALL = one bar of every type's share. TOP CARD BY TCG (a computer) = a card tile — the picture, the type and its count, the
   name over two lines, the grade and the number, the value and its change. The tightening steps (.dense / .dense2) still
   keep the side within the screen. */
#view-port .pf-tcgi.pf-tcgr { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 8px 11px 8px 12px; grid-template-areas: none; }
#view-port .pf-tcgr-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
#view-port .pf-tcgr-h > b { min-width: 0; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-tcgr-h > em { flex: none; font-style: normal; font-size: calc(14.5px * var(--pf-fs, 1)); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
#view-port .pf-tcgr.all .pf-tcgr-h > em { font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.4px; color: #8c8c8c; }
#view-port .pf-tcgr-b { display: flex; height: 6px; border-radius: 3px; background: #2a2a2a; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55); }
#view-port .pf-tcgr-b > i { display: block; flex: none; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8f8f8f, #e2e2e2); }
#view-port .pf-tcgr.on .pf-tcgr-b > i { background: linear-gradient(90deg, #b23b38, #f0716e); }
#view-port .pf-tcgr-b.mix > i { border-radius: 0; box-shadow: inset -1px 0 0 #1a1a1a; }
#view-port .pf-tcgr-b.mix > i.s0 { background: #e2e2e2; } #view-port .pf-tcgr-b.mix > i.s1 { background: #ababab; }
#view-port .pf-tcgr-b.mix > i.s2 { background: #7a7a7a; } #view-port .pf-tcgr-b.mix > i.s3 { background: #545454; }
#view-port .pf-tcgr-b.mix > i.on { background: var(--accent); }
#view-port .pf-tcgr-f { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-family: var(--rep-font-sc); font-stretch: 87.5%;
  font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; color: #7c7c7c; white-space: nowrap; }
#view-port .pf-tcgr-f b { font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: .3px; color: #d6d6d6; font-variant-numeric: tabular-nums; }
#view-port .pf-tcgr.on .pf-tcgr-f { color: rgba(255, 255, 255, .62); }
#view-port .pf-tcgr.on .pf-tcgr-f b { color: #fff; }
#view-port .pf-shell:not(.ph) > .pf-side.dense .pf-tcgi.pf-tcgr { gap: 3px; padding-top: 5px; padding-bottom: 5px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 .pf-tcgr-f { display: none; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 .pf-tcgr-b { height: 4px; }
.pf-shell.ph #pf-tcgl .pf-tcgi.pf-tcgr { padding: 8px 9px; }
.pf-shell.ph #pf-tcgl .pf-tcgr-f > span:first-child { letter-spacing: .6px; }
/* TOP CARD BY TCG: the tile */
#view-port .pf-side #pf-bygame { gap: 8px; }
#view-port .pf-side #pf-bygame li.pf-tg.pf-tg4 { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "art k" "art nm" "art sub" "art foot"; column-gap: 11px; row-gap: 2px; align-items: start; padding: 9px 10px 9px 9px; margin: 0;
  border-radius: 12px; border: 1px solid #3a3a3a; background: linear-gradient(180deg, #232323 0%, #191919 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .35); cursor: pointer; transition: border-color .12s, background .12s; }
#view-port .pf-side #pf-bygame li.pf-tg.pf-tg4:hover { border-color: #8f8f8f; background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%); }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgart { grid-area: art; display: block; width: 54px; height: auto; aspect-ratio: 5 / 7; margin: 0; align-self: center;
  border-radius: 5px; border: 1px solid #2c2c2c; background: #121212; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgart img { display: block; width: 100%; height: 100%; object-fit: contain; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgk { grid-area: k; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgk > i { min-width: 0; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9px * var(--pf-fs, 1));
  font-weight: 800; letter-spacing: 1.5px; color: #c9c9c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgk > em { flex: none; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(8.5px * var(--pf-fs, 1));
  font-weight: 700; letter-spacing: 1px; color: #7c7c7c; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgnm { grid-area: nm; min-width: 0; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.2; color: #fff;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgsub { grid-area: sub; display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 2px; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgsub > .pf-tggr { flex: none; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9.5px * var(--pf-fs, 1));
  font-weight: 700; letter-spacing: .6px; padding: 1px 6px; border-radius: 4px; background: #2e2e2e; border: 1px solid #4a4a4a; color: #e8e8e8; white-space: nowrap; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgsub > span { min-width: 0; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(10px * var(--pf-fs, 1)); color: #9a9a9a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgfoot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 6px; row-gap: 0; min-width: 0; margin-top: 3px; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgfoot > .pf-chg { margin-left: auto; white-space: nowrap; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgfoot > b { flex: none; font-size: calc(14.5px * var(--pf-fs, 1)); font-weight: 800; line-height: 1.15; color: var(--pf-pos); font-variant-numeric: tabular-nums; white-space: nowrap; }
#view-port .pf-side #pf-bygame li.pf-tg4 > .pf-tgfoot .pf-chg { font-size: calc(10px * var(--pf-fs, 1)); }
#view-port .pf-shell:not(.ph) > .pf-side.dense #pf-bygame li.pf-tg4 { grid-template-columns: 44px minmax(0, 1fr); padding-top: 6px; padding-bottom: 6px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense #pf-bygame li.pf-tg4 > .pf-tgart { width: 44px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 #pf-bygame li.pf-tg4 { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "art k" "art nm" "art foot"; grid-template-rows: auto auto auto; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 #pf-bygame li.pf-tg4 > .pf-tgart { width: 34px; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 #pf-bygame li.pf-tg4 > .pf-tgsub { display: none; }
#view-port .pf-shell:not(.ph) > .pf-side.dense2 #pf-bygame li.pf-tg4 > .pf-tgnm { -webkit-line-clamp: 1; }

/* ROUND 115 · THE PURCHASE-TYPE HOVER CARD (operator 2026-10-18: 'more details on the purchasing type when the mouse is
   hovered — the details shown before, better formatted'): beside the row, never under the pointer (pointer-events none) */
.pf-kpop { --pf-fs: 1; position: fixed; z-index: 96; left: 0; top: 0; width: 262px; padding: 12px 14px; box-sizing: border-box; border-radius: 12px;
  background: linear-gradient(180deg, #242424 0%, #181818 100%); border: 1px solid #4a4a4a; color: #ededed; font-family: var(--rep-font);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05); pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateX(-4px); transition: opacity .12s, transform .12s, visibility 0s .12s; }
body:not(.mv) .pf-kpop { --pf-fs: 1.18; width: 300px; }
.pf-kpop.on { opacity: 1; visibility: visible; transform: none; transition: opacity .12s, transform .12s; }
.pf-kpop.left { transform: translateX(4px); } .pf-kpop.left.on { transform: none; }
.pf-kpop::before { content: ""; position: absolute; top: 50%; left: -6px; width: 10px; height: 10px; margin-top: -5px; background: #1f1f1f;
  border-left: 1px solid #4a4a4a; border-bottom: 1px solid #4a4a4a; transform: rotate(45deg); }
.pf-kpop.left::before { left: auto; right: -6px; transform: rotate(-135deg); }
.pf-kpop-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pf-kpop-h > b { font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.2px; color: #fff; }
.pf-kpop-h > em { flex: none; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px;
  color: #ffd54a; padding: 2px 6px; border-radius: 4px; background: #33290f; border: 1px solid #6a5718; }
.pf-kpop-t { margin: 2px 0 10px; font-size: calc(10.5px * var(--pf-fs, 1)); color: #9a9a9a; line-height: 1.3; }
.pf-kpop-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.pf-kpop-g > span { display: flex; flex-direction: column; gap: 1px; padding: 5px 8px 6px; border-radius: 8px; background: #121212; border: 1px solid #2e2e2e; }
.pf-kpop-g i { font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(8px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; color: #8a8a8a; }
.pf-kpop-g b { font-size: calc(15px * var(--pf-fs, 1)); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pf-kpop-bar { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 5px 0; }
.pf-kpop-bar > i { font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; color: #8a8a8a; }
.pf-kpop-bar > span { height: 6px; border-radius: 3px; background: #2a2a2a; overflow: hidden; }
.pf-kpop-bar > span > b { display: block; height: 100%; border-radius: 3px; }
.pf-kpop-bar.p > span > b { background: var(--accent); }
.pf-kpop-bar.v > span > b { background: #7ED4A6; }
.pf-kpop-bar > em { font-style: normal; font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-kpop-bar.v > em { color: #7ED4A6; }
.pf-kpop-gain { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #333; }
.pf-kpop-gain > i { font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; color: #8a8a8a; margin-right: auto; }
.pf-kpop-gain > b { display: inline-flex; align-items: center; gap: 3px; font-size: calc(16px * var(--pf-fs, 1)); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-kpop-gain > b .pf-tri { width: 9px; height: 9px; }
.pf-kpop-gain > em { font-style: normal; font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-kpop-gain.up > :is(b, em) { color: #7ED4A6; } .pf-kpop-gain.down > :is(b, em) { color: #EB6A66; } .pf-kpop-gain.flat > :is(b, em) { color: #9a9a9a; }
.pf-kpop-f { margin-top: 9px; font-size: calc(9.5px * var(--pf-fs, 1)); line-height: 1.35; color: #a6a6a6; }
.pf-kpop-f.out { color: #f0a29f; }

/* ============ ROUND 116 · BLACKBOARD, TIGHTER (operator 2026-10-18) ============
   the three heads in one manner and one height (a caption line with a count at its right, the title, the controls at the
   foot); the card types without a code box and the ungraded ones as placeholder rows; the cards' tiles shorter with GEM
   RATE in place of TOP SCORE; the ranking in four lines (the BL# without its pill), a taller picture, larger grades */
#view-board .bbx-hd { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; background: #141414; border-bottom: 1px solid #262626; box-sizing: border-box; flex: 0 0 auto; }
#view-board .bbx-head.bbx-hd { position: sticky; top: 0; z-index: 3; }
#view-board .bbx-hd > :last-child { margin-top: auto; }
#view-board .bbx-hd1 { display: flex; align-items: center; gap: 8px; min-height: 16px; min-width: 0; }
#view-board .bbx-hd1 .bbx-cap { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 1.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#view-board .bbx-hd1 .bbx-cap::before { content: ''; flex: 0 0 3px; width: 3px; height: 12px; border-radius: 2px; background: currentColor; }
#view-board .bbx-hdc { margin-left: auto; flex: 0 0 auto; font-style: normal; font-size: 10.5px; letter-spacing: .8px; color: #8f8f8f; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
#view-board .bbx-hd h2 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .2px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#view-board .bbx-hd p { margin: 0; font-size: 12px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
/* step 2's head: back · the card type · the views; the finder beside the order */
#view-board .bbx-hd .bbx-tline { gap: 9px; }
#view-board .bbx-hd .bbx-tname { font-size: 18px; }
#view-board .bbx-hd .bbx-backb { height: 26px; font-size: 10.5px; }
#view-board .bbx-hd .bbx-tools { flex-wrap: nowrap; }
#view-board .bbx-hd .bbx-find { height: 28px; flex: 1 1 120px; }
/* the controls of a head: segmented groups, the pick red */
#view-board .bbx-hd .bbx-filters { gap: 6px 14px; flex-wrap: wrap; }
#view-board .bbx-hd .bbx-fg { gap: 7px; flex-wrap: nowrap; }
#view-board .bbx-hd .bbx-fg > i { font-size: 9.5px; letter-spacing: 1.4px; margin: 0; }
#view-board .bbx-seg { display: flex; background: #0e0e0e; border: 1px solid #2e2e2e; border-radius: 8px; padding: 2px; gap: 2px; flex: 0 0 auto; }
#view-board .bbx-seg button { height: 24px; padding: 0 9px; border-radius: 6px; border: 0; background: transparent; color: #bdbdbd; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .4px; cursor: pointer; white-space: nowrap; }
#view-board .bbx-seg button:hover { color: #fff; background: #1f1f1f; }
#view-board .bbx-seg button.on { background: var(--accent); color: #fff; }
/* a character's hero: a smaller face, the name, its four figures in a strip */
#view-board .bbx-hd .bbx-hero { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 0; }
#view-board .bbx-hd .bbx-face.hero { width: 40px; height: 40px; flex: 0 0 40px; box-shadow: 0 0 0 2px var(--accent); }
#view-board .bbx-hd .bbx-face.hero.mono b { font-size: 15px; }
#view-board .bbx-hd .bbx-hero > h2 { flex: 1 1 auto; font-size: 20px; }
#view-board .bbx-hd .bbx-hstats { flex: 0 0 auto; gap: 4px; }
#view-board .bbx-hd .bbx-hstats span { min-width: 54px; padding: 3px 8px; }
#view-board .bbx-hd .bbx-hstats i { font-size: 8.5px; }
#view-board .bbx-hd .bbx-hstats b { font-size: 16px; line-height: 1.15; }
/* the scope: the crumbs, the six figures in one strip, the two tabs */
#view-board .bbx-d3h { container-type: inline-size; }
#view-board .bbx-hd .bbx-crumbs { gap: 4px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
#view-board .bbx-hd .bbx-crumb { height: 24px; font-size: 10.5px; max-width: 170px; flex: 0 1 auto; min-width: 34px; }
#view-board .bbx-hd .bbx-crumb.on { flex: 0 0 auto; max-width: 60%; }
#view-board .bbx-hd .bbx-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
#view-board .bbx-hd .bbx-stats span { padding: 4px 8px; border-radius: 7px; }
#view-board .bbx-hd .bbx-stats i { font-size: 8.5px; letter-spacing: 1px; }
#view-board .bbx-hd .bbx-stats b { font-size: 17px; line-height: 1.15; }
@container (max-width: 470px) {
  #view-board .bbx-hd .bbx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#view-board .bbx-hd .bbx-tabs { padding: 2px; gap: 2px; border-radius: 8px; }
#view-board .bbx-hd .bbx-tabs button { height: 26px; font-size: 11px; letter-spacing: 1px; border-radius: 6px; }
#view-board .bbx-hd .bbx-chero { padding: 6px 8px; gap: 10px; }
#view-board #bbx-d3 > .bbx-chero { margin: 0 0 10px; padding: 8px 10px; gap: 12px; }
#view-board #bbx-d3 > .bbx-chero .bb-thumb.mid { width: 52px; height: 73px; }
#view-board #bbx-d3 > .bbx-chero .bbx-cl { font-size: 12px; }
#view-board #bbx-d3 > .bbx-chero .bbx-cl > .l-name > b { font-size: 16px; }
#view-board .bbx-hd .bbx-chero .bb-thumb.mid { width: 40px; height: 56px; }
#view-board .bbx-hd .bbx-chero .bbx-cl { font-size: 11.5px; }
#view-board .bbx-hd .bbx-chero .bbx-cl > .l-name > b { font-size: 15px; }

/* the card types: the name has the row (no code box); the ungraded ones are rows too, empty places for their cards */
#view-board .bbx-tcg { padding: 10px 12px 10px 14px; gap: 12px; min-height: 64px; box-sizing: border-box; }
#view-board .bbx-tcgt b { font-size: 17px; }
#view-board .bbx-tcg.empty { background: #151515; border: 1px dashed #2e2e2e; box-shadow: none; cursor: default; color: #8f8f8f; }
#view-board .bbx-tcg.empty:hover { border-color: #2e2e2e; }
#view-board .bbx-tcg.empty .bbx-tcgt b { color: #a6a6a6; font-weight: 600; }
#view-board .bbx-tcg.empty .bbx-tcgt i { color: #6f6f6f; }
#view-board .bbx-stack.ph .bb-thumb { background: transparent; border: 1px dashed #3a3a3a; box-shadow: 0 0 0 2px #151515; box-sizing: border-box; }
#view-board .bbx-stack.ph { margin-right: 26px; }
#view-board .bbx-body > .bbx-sub { margin: 8px 2px 0; }

/* the cards' tiles: a shorter picture, the figures on one line (POP · GEM 10 · GEM RATE) */
#view-board .bbx-tile { padding: 8px 10px; gap: 11px; }
#view-board .bb-thumb.tile { width: 80px; height: 112px; }
#view-board .bbx-tile > .cl-art { flex: 0 0 80px; }
#view-board .bbx-tl { gap: 5px; }
#view-board .bbx-st { gap: 5px; }
#view-board .bbx-st > span { flex: 1 1 0; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 6px; padding: 3px 7px; border-radius: 5px; }
#view-board .bbx-st i { font-size: 8.5px; letter-spacing: 1px; }
#view-board .bbx-st b { font-size: 13.5px; line-height: 1.25; }
#view-board .bbx-st .zero { flex: 1 1 0; }

/* the ranking: four lines, the picture as tall as them, the subgrades and the grade larger */
#view-board .bbx-rows .bb-row, #view-board .bb-glist .bb-grow { padding: 5px 10px; margin-bottom: 4px; gap: 10px; }
#view-board .bb-row .bb-thumb.row, #view-board .bb-grow .bb-thumb.row { width: 40px; height: 56px; }
#view-board .bb-row .cl-art > .pf-gbadge, #view-board .bb-grow .cl-art > .pf-gbadge { margin-top: -9px; }
#view-board .bb-row .bb-cl, #view-board .bb-grow .bb-cl { font-size: 11.5px; }
#view-board .bb-row .bb-cl > .l-name > b, #view-board .bb-grow .bb-cl > .l-name > b { font-size: 13.5px; }
#view-board .bb-row .bb-rp { font-size: 10px; letter-spacing: .6px; gap: 2px 12px; color: #9a9a9a; }
#view-board .bb-row .bb-rp b { font-size: 14px; color: #ececec; font-weight: 700; }
#view-board .bb-row .bb-rg { flex: 0 0 64px; }
#view-board .bb-row .bb-rg b { font-size: 25px; line-height: 1; font-weight: 700; }
#view-board .bb-row .bb-rg i { font-size: 8.5px; letter-spacing: .6px; margin-top: 2px; }
#view-board .bb-row .bb-rs b { font-size: 20px; }
/* the subgrades' names (2026-10-25): CEN · COR · EDG · SUR, C · CO · E · S when the ranking column runs narrow */
#view-board .bb-rp s { text-decoration: none; }
#view-board .bb-rp s.sh { display: none; }
@container (max-width: 560px) {
  #view-board .bb-row .bb-rp s.lg { display: none; }
  #view-board .bb-row .bb-rp s.sh { display: inline; }
}
#view-board .bbx-rsort { margin: 0 2px 10px; }
/* line 2 of the four: the set gives way first, the number never */
.cl5 > .l-snr .l-s { flex: 0 1 auto; min-width: 2.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bdbdbd; }
.cl5 > .l-snr .l-rar { flex: 0 1 auto; min-width: 2.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* round 116 · the narrow columns (1366 and dragged): the scope keeps its six figures on one line, a narrow head keeps its
   caption whole (the count steps aside), a narrow ranking gives its room to the card lines */
#view-board .bbx-hd { container-type: inline-size; }
@container (max-width: 470px) {
  #view-board .bbx-hd .bbx-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  #view-board .bbx-hd .bbx-stats span { padding: 3px 5px; }
  #view-board .bbx-hd .bbx-stats i { font-size: 7.5px; letter-spacing: .4px; }
  #view-board .bbx-hd .bbx-stats b { font-size: 15px; }
}
@container (max-width: 360px) {
  #view-board .bbx-hd .bbx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 340px) {
  #view-board .bbx-hd .bbx-hdc { display: none; }
}
@container (max-width: 480px) {
  #view-board .bb-row { gap: 8px; padding: 5px 8px; }
  #view-board .bb-row .bb-rg { flex: 0 0 50px; }
  #view-board .bb-row .bb-rg b { font-size: 22px; }
  #view-board .bb-row .bb-rs { flex: 0 0 auto; min-width: 0; }
  #view-board .bb-row .bb-rs i { display: none; }
}
/* a narrow cards head (a phone, a column dragged small): the hero's four figures go under the name */
@container (max-width: 380px) {
  #view-board .bbx-hd .bbx-hero { flex-wrap: wrap; row-gap: 8px; }
  #view-board .bbx-hd .bbx-hero > h2 { flex: 1 1 calc(100% - 90px); }
  #view-board .bbx-hd .bbx-hstats { flex: 1 1 100%; display: flex; }
  #view-board .bbx-hd .bbx-hstats span { flex: 1 1 0; min-width: 0; }
}
/* the tiles' three figures size to what they hold and share the rest; a narrow tile takes a smaller type */
#view-board .bbx-tl { container-type: inline-size; }
#view-board .bbx-st > span { flex: 1 1 auto; }
@container (max-width: 250px) {
  #view-board .bbx-st { gap: 3px; }
  #view-board .bbx-st > span { padding: 3px 5px; gap: 4px; }
  #view-board .bbx-st i { font-size: 7.5px; letter-spacing: .5px; }
  #view-board .bbx-st b { font-size: 12.5px; }
}

/* ============ ROUND 116 · A PHONE'S CARDS, ONE HEIGHT (operator 2026-10-18: 'not create row height changes on each
   item — optimise the spaces of the 1 · 2 · 3-column views; the same functions as the PC, more compact') ============
   the name on one line (the open card spells it out), the BL# line kept for every card when one card of the list has
   it, one details grid (QTY · BOUGHT · FOLDER · CERT#) in every column count, VALUE / PAID beside the lines in one
   column and caption-and-figure on one line in the tiles */
#view-port .pf-cards.ph .pf-card.pm:not(.open) .pf-c1 { flex-wrap: nowrap; overflow: hidden; min-width: 0; }
#view-port .pf-cards.ph .pf-card.pm:not(.open) .pf-c1 > b { display: block; flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; line-clamp: none; overflow-wrap: normal; }
#view-port .pf-cards.ph .pf-lines > span.l-bl { height: 1.3em; line-height: 1.3em; }
#view-port .pf-cards.ph.hasbl .pf-lines > span.l-bl:empty { display: block; }
#view-port .pf-cards.ph .pf-lines > span.l-bl .pf-blp { line-height: 1.15; }

/* one column: the four lines at the left, VALUE / PAID at the right of them */
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm > .pf-cinfo { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "c1 c1" "ln bot"; column-gap: 10px; row-gap: 2px; align-content: start; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm > .pf-cinfo > .pf-c1 { grid-area: c1; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm > .pf-cinfo > .pf-lines { grid-area: ln; align-self: start; min-width: 0; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm > .pf-cinfo > .pf-cbot { grid-area: bot; align-self: end; margin: 0; padding: 0; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm .pf-pr.v > b { font-size: calc(20px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm .pf-pr.p > b { font-size: calc(15px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm .pf-pr > i { padding-right: 8px; }

/* the details grid: four across in one column, two by two in the tiles */
#view-port .pf-cards.ph .pm-td { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 10px; margin: 0; padding-top: 7px; border-top: 1px solid #2a2a2a; }
#view-port .pf-cards.ph.tiles .pm-td { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; padding-top: 6px; }
#view-port .pf-cards.ph .pm-td > span { display: flex; flex-direction: column; gap: 0; min-width: 0; }
#view-port .pf-cards.ph .pm-td i { font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .7px; line-height: calc(12px * var(--pf-fs, 1)); color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-cards.ph .pm-td b { font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(13px * var(--pf-fs, 1)); font-weight: 600; line-height: calc(15px * var(--pf-fs, 1)); color: #ececec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#view-port .pf-cards.ph .pm-td > span.no b { color: #5c5c5c; }
#view-port .pf-cards.ph.tiles.n3 .pm-td { gap: 4px 5px; padding-top: 5px; }
#view-port .pf-cards.ph.tiles.n3 .pm-td i { font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: .3px; line-height: calc(10px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph.tiles.n3 .pm-td b { font-size: calc(11.5px * var(--pf-fs, 1)); line-height: calc(13px * var(--pf-fs, 1)); }

/* three columns: VALUE and PAID each on one line (the caption beside its figure, the figure in the condensed cut) */
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr { flex-wrap: nowrap; gap: 4px; align-items: baseline; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr > i { flex: 0 0 auto; flex-basis: auto; padding-right: 0; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr > b { flex: 0 1 auto; min-width: 0; font-family: var(--rep-font-sc); font-stretch: 87.5%; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr.v > b { font-size: calc(15px * var(--pf-fs, 1)); }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr.p > b { font-size: calc(12.5px * var(--pf-fs, 1)); }

/* ADD A CARD: the FOLDER the card goes into beside the ADD button */
.pf-sentry .pf-seadd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: end; }
.pf-sentry .pf-seadd .pf-sadd { margin: 0; width: 100%; }
.pf-sentry .pf-sefol { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-sentry .pf-sefol > i { font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; color: #a9a9a9; }
.pf-sentry .pf-sefol select { width: 100%; min-width: 0; height: 34px; border-radius: 8px; background: #0e0e0e; color: #fff; border: 1px solid #3d3d3d; padding: 0 8px; font: inherit; font-size: calc(12.5px * var(--pf-fs, 1)); }
.peek-sheet .pf-sentry .pf-sefol select { height: 44px; font-size: 16px; }
.peek-sheet .pf-sentry .pf-seadd { grid-template-columns: 1fr; }
/* a phone's batch / group entry: SHOW n CARDS under the names (the slot of a card's lines), the price beside them */
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm.pf-grp > .pf-cinfo { grid-template-areas: "c1 c1" "ln bot" "mo bot"; }
#view-port .pf-cards.ph:not(.tiles):not(.selecting) .pf-card.pm.pf-grp > .pf-cinfo > .pf-c2 { grid-area: ln; align-self: start; min-width: 0; }
#view-port .pf-cards.ph .pf-card.pm.pf-grp .pm-imore { grid-area: mo; justify-self: start; align-self: end; height: 26px; padding: 0 10px; margin-top: 4px; border-radius: 8px; font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: .7px; }
#view-port .pf-cards.ph.tiles .pf-card.pm.pf-grp:not(.open) .pm-imore { align-self: stretch; width: 100%; height: 24px; margin: 2px 0 0; padding: 0 6px; justify-content: center; }
#view-port .pf-cards.ph.tiles .pf-card.pf-grp.pm:not(.open) { grid-template-rows: auto 1fr; }
#view-port .pf-cards.ph.tiles.n3 .pm-td i { letter-spacing: .2px; }
#view-port .pf-cards.ph.tiles.n3 .pm-td b { font-size: calc(11px * var(--pf-fs, 1)); letter-spacing: -.1px; }
#view-port .pf-cards.ph.tiles .pf-card.pm.pf-bgrp:not(.open) > .pf-cinfo > .pf-c2 { display: block; -webkit-line-clamp: unset; line-clamp: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-cards.ph.selecting .pm-td, #view-port .pf-cards.ph.selecting .pm-imore { display: none; }
body:not(.mv) #pt-prev .pf-sentry .pf-serow.pf-seadd { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.pf-sentry .pf-sadd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr { gap: 3px; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr > i { font-size: calc(8px * var(--pf-fs, 1)) !important; letter-spacing: .3px; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr.v > b { font-size: calc(14px * var(--pf-fs, 1)); letter-spacing: -.2px; }
#view-port .pf-cards.ph.tiles.n3 .pf-card.pm:not(.open) .pf-pr.p > b { font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: -.2px; }

/* ============ ROUND 120 (operator 2026-10-19) ============
   BLACKVAULT: DOWNLOAD — the CENTERING summary as a picture, for the card's owner and admins; it sits above COPY LINK (an
   admin's A4 REPORT above it). A phone shows it as one full-width button under the Job# line. */
.bv-acts .bv-dl[hidden] { display: none !important; }
body.mv .bv-acts:has(> .bv-dl:not([hidden])) { display: flex; order: 6; flex: 1 1 100%; flex-direction: row; }
body.mv .bv-acts > :not(.bv-dl) { display: none; }
body.mv .bv-acts .bv-dl { flex: 1 1 auto; height: 40px; border-radius: 11px; font-size: calc(11px + var(--bv-up)); letter-spacing: 1.4px; }
body.mv .bv-acts .bv-dl .lg { display: inline; }
body.mv .bv-acts .bv-dl .sm { display: none; }
/* an admin's three (A4 REPORT · DOWNLOAD · COPY LINK) a little tighter — the hero keeps its height */
body:not(.mv) .bv-acts:has(> [data-act="a4"]):has(> .bv-dl:not([hidden])) { gap: 3px; }
body:not(.mv) .bv-acts:has(> [data-act="a4"]):has(> .bv-dl:not([hidden])) > .bv-btn { padding-top: 3px; padding-bottom: 3px; }

/* BLACKBOARD's ranking: the picture and its grade pill in ONE fixed column, both centred — every row's picture on the same line */
#view-board .bb-row > .cl-art, #view-board .bb-grow > .cl-art { flex: 0 0 72px; width: 72px; align-items: center; }
@container (max-width: 480px) {
  #view-board .bb-row > .cl-art { flex-basis: 60px; width: 60px; }
}

/* the graded tiles: EST. (the RAW market value) in the bottom-right corner, above GEM RATE — the tile keeps its size */
#view-board .bbx-tile:not(.cat) .bbx-tl { position: relative; }
#view-board .bbx-est { position: absolute; right: 0; bottom: 30px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; pointer-events: none; }
#view-board .bbx-est i { font-style: normal; font-size: 8.5px; letter-spacing: 1.2px; font-weight: 700; color: #9a9a9a; }
#view-board .bbx-est b { font-size: 14px; font-weight: 700; color: #7ED4A6; white-space: nowrap; font-variant-numeric: tabular-nums; }
#view-board .bbx-est.busy b, #view-board .bbx-est.none b { color: #6f6f6f; }
#view-board .bbx-tile:not(.cat) .bbx-cl > :is(.l-ly, .l-bl) { margin-right: 34px; }

/* the printings not graded yet: four to a row, the details only — [LANG] name / set / #number · rarity / TCG · year / EST. */
#view-board .bbx-tiles.cat4 { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
#view-board .bbx-tiles.cat4 .bbx-tile.cat { padding: 7px 8px; gap: 8px; align-items: center; min-width: 0; }
#view-board .bbx-tiles.cat4 .bbx-tile > .cl-art { flex: 0 0 46px; align-self: center; }
#view-board .bbx-tiles.cat4 .bb-thumb.tile { width: 46px; height: 64px; border-radius: 4px; }
#view-board .bbx-tiles.cat4 .bbx-cl4 { flex: 1 1 auto; font-size: 10.5px; padding-right: 0; line-height: 1.28; }
#view-board .bbx-tiles.cat4 .bbx-cl4 > .l-name { gap: 0; }
#view-board .bbx-tiles.cat4 .bbx-cl4 > .l-name > b { font-size: 12.5px; }
#view-board .bbx-cl4 > .l-est { gap: 5px; margin-top: 1px; align-items: baseline; }
#view-board .bbx-cl4 > .l-est i { margin: 0; font-style: normal; font-size: 8.5px; letter-spacing: 1px; font-weight: 700; color: #9a9a9a; }
#view-board .bbx-cl4 > .l-est b { font-size: 12px; font-weight: 700; color: #7ED4A6; font-variant-numeric: tabular-nums; }
#view-board .bbx-cl4 > .l-est.busy b, #view-board .bbx-cl4 > .l-est.none b { color: #6f6f6f; }

/* ROUND 121 · BL.imgguard (2026-10-19): a catalogue picture being looked for elsewhere stays hidden (no broken icon); the
   NO PICTURE stand-in keeps the card shape */
img.blg-wait { visibility: hidden; }
img.blg-ph { object-fit: contain; }

/* ROUND 122 · TOP CARD BY TCG — the card is the tile (operator 2026-10-19: 'a larger image of the card, some details
   overlaying it, to save space'): the picture fills a 5:7 tile, the change on its top-right corner, a dark band over its
   foot with the card type, the name, the grade and number, the value. A computer's side picks the largest layout that fits
   its height (port.js fitNow → data-lay: c1 · f2 = the top type over two columns · c2 · f3 · c3); a phone two to a row.
   The type follows the tile's own width (container pftg). The BLACKLENS mark moves to the top-left — the band covers the foot. */
#view-port .pf-side #pf-bygame { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame[data-lay="c1"] { grid-template-columns: minmax(0, 1fr); gap: 10px; }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame:is([data-lay="c3"], [data-lay="f3"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame:is([data-lay="f2"], [data-lay="f3"]) > li.pf-tg5:first-child { grid-column: 1 / -1; }
/* a tile alone on its row sits in the middle */
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame[data-lay="f2"] > li.pf-tg5:last-child:nth-child(even),
#view-port .pf-shell:not(.ph) .pf-side #pf-bygame[data-lay="c2"] > li.pf-tg5:last-child:nth-child(odd),
#view-port .pf-shell.ph .pf-side #pf-bygame > li.pf-tg5:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
#view-port .pf-side #pf-bygame li.pf-tg.pf-tg5 { position: relative; display: block; box-sizing: border-box; min-width: 0; margin: 0; padding: 0; aspect-ratio: 5 / 7;
  border-radius: 10px; border: 1px solid #3a3a3a; background: #101010; overflow: hidden; cursor: pointer; container: pftg / inline-size;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45); transition: border-color .12s, box-shadow .12s; }
#view-port .pf-side #pf-bygame li.pf-tg.pf-tg5:hover { border-color: #9a9a9a; box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
#view-port .pf-side #pf-bygame li.pf-tg5 > .pf-tgart { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0;
  aspect-ratio: auto; border: 0; border-radius: 0; background: #121212; box-shadow: none; overflow: hidden; }
#view-port .pf-side #pf-bygame li.pf-tg5 > .pf-tgart > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s; }
#view-port .pf-side #pf-bygame li.pf-tg5:hover > .pf-tgart > img { transform: scale(1.035); }
#view-port .pf-side #pf-bygame li.pf-tg5 > .pf-tgart.bl-wm::after { left: 7px; top: 7px; bottom: auto; width: clamp(12px, 20%, 44px); z-index: 2; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgnoimg { position: absolute; inset: 6px 6px 45%; display: flex; align-items: center; justify-content: center; border: 1px dashed #333;
  border-radius: 7px; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 2px; color: #5c5c5c; }
/* the change, on the top-right corner */
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgchg { position: absolute; top: 6px; right: 6px; z-index: 3; display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 6px;
  background: rgba(10, 10, 10, .84); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 1px 5px rgba(0, 0, 0, .55); }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgchg .pf-chg { font-size: calc(10.5px * var(--pf-fs, 1)) !important; font-weight: 800; line-height: 1.2; white-space: nowrap; }
/* the band over the foot */
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 26px 9px 8px;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0) 0%, rgba(6, 6, 6, .8) 24%, rgba(6, 6, 6, .95) 56%, rgba(6, 6, 6, .97) 100%); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgk { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgk > i { min-width: 0; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(9px * var(--pf-fs, 1));
  font-weight: 800; letter-spacing: 1.4px; color: #d4d4d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgk > em { flex: none; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(8.5px * var(--pf-fs, 1));
  font-weight: 700; letter-spacing: .8px; color: #8f8f8f; white-space: nowrap; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgnm { min-width: 0; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.18; color: #fff;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgsub { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 1px; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tggr { flex: none; max-width: 100%; box-sizing: border-box; font-style: normal; font-family: var(--rep-font-sc); font-stretch: 87.5%;
  font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: .5px; line-height: 1.35; padding: 0 5px; border-radius: 4px; color: #f4f4f4;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgsub > span { min-width: 0; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(10px * var(--pf-fs, 1));
  color: #b9b9b9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgv { display: block; margin-top: 2px; min-width: 0; font-size: calc(17px * var(--pf-fs, 1)); font-weight: 800; line-height: 1.1;
  color: var(--pf-pos); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgv > .s { display: none; }
/* a small tile (two or three to a row): the type and the grade on one line, the name on one, the value short */
@container pftg (max-width: 150px) {
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgov { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k gr" "nm nm" "v v";
    column-gap: 4px; row-gap: 1px; align-items: center; padding: 16px 6px 6px; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgk { grid-area: k; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgk > i { font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: 1px; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgk > em { display: none; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgsub { display: contents; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgsub > span { display: none; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tggr { grid-area: gr; justify-self: end; font-size: calc(8px * var(--pf-fs, 1)); padding: 0 3px; letter-spacing: .3px; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgnm { grid-area: nm; font-size: calc(11px * var(--pf-fs, 1)); -webkit-line-clamp: 1; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgv { grid-area: v; margin-top: 0; font-size: calc(13.5px * var(--pf-fs, 1)); }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgv > .f { display: none; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgv > .s { display: inline; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgchg { top: 4px; right: 4px; padding: 1px 4px; border-radius: 5px; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgchg .pf-chg { font-size: calc(9px * var(--pf-fs, 1)) !important; }
}
/* a tiny tile (three to a row on a short screen): the name and the value only */
@container pftg (max-width: 80px) {
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgov { grid-template-areas: "nm nm" "v v"; padding: 12px 4px 4px; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgk, #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tggr { display: none; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgnm { font-size: calc(9.5px * var(--pf-fs, 1)); }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgv { font-size: calc(11px * var(--pf-fs, 1)); }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgchg .pf-tri { display: none; }
  #view-port .pf-side #pf-bygame li.pf-tg5 .pf-tgchg .pf-chg { font-size: calc(8px * var(--pf-fs, 1)) !important; }
}

/* ROUND 122 · the not-graded printings' order (operator 2026-10-19: 'Highest price, Most popular, Recent release') — a SORT
   switch under the caption, the state of the order beside it */
#view-board .bbx-catbar { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: -2px 2px 12px; }
#view-board .bbx-catbar .bbx-fg { flex-wrap: nowrap; }
#view-board .bbx-catbar .bbx-catnote { min-width: 0; font-style: normal; font-size: 11px; color: #8a8a8a; }

/* ===== ROUND 127 · THE EDIT POP-UP (operator 2026-10-20: 'show the Edit fields pop-up box the same way the full-card
   preview is shown when hovered — but the item needs to be clicked … the same for the multiple selection · on mobile
   with EDIT on, for the multiple selection and batch'). One box for a card, the picked cards or a batch: beside what was
   clicked on a computer (port.js epPlace), a sheet at the bottom of a phone. Inside #view-port, so --pf-fs and the
   controls' colours reach it. ===== */
.pf-epop { position: fixed; z-index: 87; left: 0; top: 0; box-sizing: border-box; width: calc(352px * var(--pf-fs, 1)); max-width: calc(100vw - 16px); max-height: calc(100vh - 16px);
  display: flex; flex-direction: column; border-radius: 14px; background: #161616; border: 1px solid #4d4d4d; color: #f2f2f2; font-family: var(--rep-font);
  box-shadow: 0 0 0 1px rgba(220, 79, 76, .45), 0 22px 56px rgba(0, 0, 0, .72); }
.pf-epop[hidden] { display: none; }
.pf-epop.enter { animation: pfEpIn .18s ease-out; }
@keyframes pfEpIn { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.pf-epop .ep-grab { display: none; }
.pf-epop .ep-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 9px 12px; border-bottom: 1px solid #2a2a2a; min-width: 0; }
.pf-epop .ep-art { flex: 0 0 auto; position: relative; width: 40px; height: 56px; border-radius: 5px; overflow: hidden; background: #0e0e0e; border: 1px solid #333; }
.pf-epop .ep-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-epop .ep-stack { flex: 0 0 auto; display: flex; align-items: center; height: 56px; padding-left: 14px; }
.pf-epop .ep-stack img { width: 32px; height: 45px; margin-left: -14px; object-fit: cover; border-radius: 4px; border: 1px solid #0b0b0b; box-shadow: 2px 0 6px rgba(0, 0, 0, .5); background: #0e0e0e; }
.pf-epop .ep-stack:empty { display: none; }
.pf-epop .ep-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-epop .ep-tt em { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.6px; color: var(--accent); white-space: nowrap; }
.pf-epop .ep-tt b { font-size: calc(14px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.2; color: #fff; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.pf-epop .ep-tt span { font-size: calc(10.5px * var(--pf-fs, 1)); color: #a6a6a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-epop .ep-hb { flex: 0 0 auto; align-self: flex-start; width: calc(28px * var(--pf-fs, 1)); height: calc(28px * var(--pf-fs, 1)); padding: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid #4d4d4d; background: linear-gradient(#2a2a2a, #1e1e1e); color: #e6e6e6; font: inherit; font-size: calc(13px * var(--pf-fs, 1)); line-height: 1; cursor: pointer; }
.pf-epop .ep-hb:hover { border-color: #8f8f8f; color: #fff; }
.pf-epop .ep-hb:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pf-epop .ep-fold { transition: transform .15s; }
.pf-epop.fold .ep-fold { transform: rotate(-90deg); }
.pf-epop .ep-price { flex: 0 0 auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 7px 12px; border-bottom: 1px solid #2a2a2a; }
.pf-epop .ep-price:empty { display: none; }
.pf-epop .ep-fig { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.pf-epop .ep-fig i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.1px; color: #8f8f8f; }
.pf-epop .ep-fig b { font-size: calc(15px * var(--pf-fs, 1)); font-weight: 700; color: #fff; }
.pf-epop .ep-fig b.v { color: var(--pf-pos, #7ED4A6); }
.pf-epop .ep-fig b.v.down { color: var(--pf-neg, #EB6A66); }
.pf-epop .ep-chg { display: inline-flex; align-items: center; gap: 3px; font-size: calc(11px * var(--pf-fs, 1)); font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #232323; color: #d9d9d9; }
.pf-epop .ep-chg.up { color: var(--pf-pos, #7ED4A6); background: #0f2a1d; }
.pf-epop .ep-chg.down { color: var(--pf-neg, #EB6A66); background: #2d1514; }
.pf-epop .ep-chg .pf-tri { width: 8px; height: 8px; }
.pf-epop .ep-q { font-size: calc(11px * var(--pf-fs, 1)); font-weight: 700; color: #cfcfcf; }
.pf-epop .ep-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 12px; }
.pf-epop .ep-grid { gap: 8px 10px; }
.pf-epop .ep-grid .a-cert { grid-area: cert; } .pf-epop .ep-grid .a-est { grid-area: est; }
.pf-epop .ep-grid .a-bnm { grid-area: nm; } .pf-epop .ep-grid .a-bkd { grid-area: kd; } .pf-epop .ep-grid .a-bcur { grid-area: bcur; } .pf-epop .ep-grid .a-btot { grid-area: tot; }
/* a computer: the phone editor's controls, one size down */
.pf-epop:not(.ph) .pm-f { gap: 3px; }
.pf-epop:not(.ph) .pm-f > i { font-size: calc(9px * var(--pf-fs, 1)); letter-spacing: .9px; }
.pf-epop:not(.ph) .pm-f :is(select, input, .pm-date), .pf-epop:not(.ph) .pm-ro, .pf-epop:not(.ph) .pm-step button, .pf-epop:not(.ph) .pm-today {
  height: calc(28px * var(--pf-fs, 1)); border-radius: 8px; font-size: calc(12px * var(--pf-fs, 1)); }
.pf-epop:not(.ph) .pm-f :is(input, .pm-date) { padding: 0 8px; }
.pf-epop:not(.ph) .pm-f select { padding: 0 4px; }
.pf-epop:not(.ph) .pm-step { grid-template-columns: calc(28px * var(--pf-fs, 1)) minmax(0, 1fr) calc(28px * var(--pf-fs, 1)); gap: 4px; }
.pf-epop:not(.ph) .pm-step button { font-size: calc(16px * var(--pf-fs, 1)); }
.pf-epop:not(.ph) .pm-rowc { gap: 6px; }
.pf-epop:not(.ph) .pm-today { padding: 0 10px; font-size: calc(10px * var(--pf-fs, 1)); letter-spacing: 1px; }
.pf-epop:not(.ph) .pm-ro { padding: 0 8px; font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-epop:not(.ph) .pm-hint { font-size: calc(9.5px * var(--pf-fs, 1)); line-height: 1.3; }
.pf-epop .pm-today:hover, .pf-epop .pm-step button:hover { border-color: #8f8f8f; }
/* its buttons */
.pf-epop .ep-foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid #2a2a2a; }
.pf-epop .ep-b { flex: 1 1 auto; min-width: 0; height: calc(28px * var(--pf-fs, 1)); padding: 0 10px; border-radius: 8px; border: 1px solid #4d4d4d; background: linear-gradient(#2a2a2a, #1e1e1e);
  color: #f2f2f2; font: inherit; font-size: calc(10px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.pf-epop .ep-b:hover:not(:disabled) { border-color: #8f8f8f; }
.pf-epop .ep-b:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pf-epop .ep-b:disabled { background: #1a1a1a; color: #585858; border-color: #2f2f2f; box-shadow: none; cursor: default; }
.pf-epop .ep-b.red { background: linear-gradient(#e2605d, #c9423f); border-color: var(--accent); color: #fff; }
.pf-epop .ep-b.go { background: #5a2321; border-color: var(--accent); color: #fff; }
.pf-epop .ep-b.gold { background: #2a2414; border-color: #ab9b6f; color: #f1e6c8; }
.pf-epop .ep-b.danger { flex: 0 0 auto; color: var(--pf-neg, #EB6A66); }
/* the picked cards: one change a row */
.pf-epop .ep-sec { display: flex; flex-direction: column; gap: 4px; padding: 7px 0; border-bottom: 1px solid #242424; }
.pf-epop .ep-sec:first-child { padding-top: 0; }
.pf-epop .ep-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-epop .ep-sec > i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .9px; color: #a0a0a0; }
.pf-epop .ep-row { display: flex; gap: 6px; min-width: 0; }
.pf-epop .ep-row :is(input, select) { flex: 1 1 0; min-width: 0; box-sizing: border-box; height: calc(28px * var(--pf-fs, 1)); padding: 0 8px; border-radius: 8px; border: 1px solid var(--pf-box-line, #4a4a4a);
  background: var(--pf-box, #1f1f1f); color: #f2f2f2; font: inherit; font-size: calc(12px * var(--pf-fs, 1)); color-scheme: dark; }
.pf-epop .ep-row select { padding: 0 4px; }
.pf-epop .ep-row :is(input, select):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pf-epop .ep-row #pf-sa-cur { flex: 0 0 calc(70px * var(--pf-fs, 1)); }
.pf-epop .ep-row .ep-b { flex: 0 0 auto; }
.pf-epop .ep-row [data-sa="date"], .pf-epop .ep-row [data-sa="single"] { flex: 1 1 auto; }
.pf-epop .ep-row input[type=number] { -moz-appearance: textfield; }
.pf-epop .ep-row input[type=number]::-webkit-inner-spin-button, .pf-epop .ep-row input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* a batch: a note, its cards */
.pf-epop .ep-note { margin: 8px 0 0; font-size: calc(10px * var(--pf-fs, 1)); line-height: 1.35; color: #9a9a9a; }
.pf-epop .ep-mem { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.pf-epop .ep-mem > i { font-style: normal; font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .9px; color: #a0a0a0; }
.pf-epop .ep-mrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; box-sizing: border-box; padding: 4px 8px 4px 5px;
  border-radius: 8px; border: 1px solid #2f2f2f; background: #1c1c1c; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pf-epop .ep-mrow:hover { border-color: #8f8f8f; }
.pf-epop .ep-mart { width: 24px; height: 34px; border-radius: 3px; overflow: hidden; background: #0e0e0e; position: relative; }
.pf-epop .ep-mart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-epop .ep-mtt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-epop .ep-mtt b { font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-epop .ep-mtt span { font-size: calc(9.5px * var(--pf-fs, 1)); color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-epop .ep-mrow em { font-style: normal; font-size: calc(11px * var(--pf-fs, 1)); font-weight: 700; color: #d9d9d9; white-space: nowrap; }
/* the phone's one-change-at-a-time panels inside the sheet */
.pf-epop .pm-stabs { margin-top: 0; }
/* folded: the head only — what is under it can be clicked */
.pf-epop.fold :is(.ep-price, .ep-body, .ep-foot) { display: none; }
.pf-epop.fold .ep-head { border-bottom: 0; }
/* the item it belongs to wears a red ring (a card: .one) */
#view-port .pf-cards :is(.pf-grp.ep-on, .pf-bgroup.ep-on) { box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(0, 0, 0, .45); }
#view-port .pf-cards .pf-bgcap { cursor: pointer; }
#view-port .pf-cards:not(.ph) .pf-card[data-id] { cursor: pointer; }
/* the selection bar's EDIT */
#view-port .pf-selbar .pf-sbtn.edit { margin-left: auto; }
#view-port .pf-selbar .pf-sbtn.edit + .pf-sbtn.done { margin-left: 0; }
#view-port .pf-selbar .pf-sbtn.edit.on { box-shadow: 0 0 0 2px #fff inset; }
/* a phone: the sheet at the bottom (no backdrop — the list scrolls and stays tappable above it) */
.pf-epop.ph { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: 560px; margin: 0 auto; max-height: min(64vh, 600px); border-radius: 18px 18px 0 0; border-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 0 0 1px rgba(220, 79, 76, .45), 0 -14px 40px rgba(0, 0, 0, .7); }
.pf-epop.ph.enter { animation: pfEpUp .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pfEpUp { from { transform: translateY(100%); } to { transform: none; } }
.pf-epop.ph .ep-grab { display: flex; justify-content: center; width: 100%; padding: 8px 0 3px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pf-epop.ph .ep-grab i { width: 44px; height: 5px; border-radius: 3px; background: #4a4a4a; }
.pf-epop.ph .ep-fold { display: none; }
.pf-epop.ph .ep-head { padding-top: 2px; }
.pf-epop.ph .ep-hb { width: 40px; height: 40px; border-radius: 10px; font-size: calc(17px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-tt em { font-size: calc(10.5px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-tt b { font-size: calc(16px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-tt span { font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-fig i { font-size: calc(10.5px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-fig b { font-size: calc(17px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-chg { font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-grid { gap: 10px; }
.pf-epop.ph .pm-f > i { font-size: calc(11px * var(--pf-fs, 1)); }
.pf-epop.ph .pm-f :is(select, input, .pm-date), .pf-epop.ph .pm-ro, .pf-epop.ph .pm-step button, .pf-epop.ph .pm-today { height: 44px; border-radius: 10px; }
.pf-epop.ph .pm-f :is(select, input, .pm-date) { font-size: calc(16px * var(--pf-fs, 1)); }                    /* 16 px: iOS does not zoom */
.pf-epop.ph .ep-b { height: 44px; font-size: calc(13px * var(--pf-fs, 1)); border-radius: 10px; }
.pf-epop.ph .ep-row :is(input, select) { height: 44px; font-size: calc(16px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-mrow { padding: 6px 10px 6px 6px; }
.pf-epop.ph .ep-mtt b { font-size: calc(14px * var(--pf-fs, 1)); } .pf-epop.ph .ep-mtt span { font-size: calc(12px * var(--pf-fs, 1)); } .pf-epop.ph .ep-mrow em { font-size: calc(13px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-note { font-size: calc(12.5px * var(--pf-fs, 1)); }
.pf-epop.ph .ep-foot { padding: 10px 12px 12px; }
.pf-epop.ph .pm-sphint { margin-bottom: 0; }
/* the list can scroll clear of the sheet; the docked SELECT bar steps aside while the sheet holds the picked cards */
#view-port.active:has(> .pf-epop.ph:not([hidden])) { padding-bottom: calc(var(--pf-eph, 0px) + 16px); }
body.pf-ep-open #view-port .pf-app.ph .pf-selbar { display: none; }
/* a phone: the header stops holding while the sheet is open, so the card being edited can show between the two */
body.pf-ep-open #view-port .pf-app.ph .pf-hdr { position: relative; top: auto; }
@media (prefers-reduced-motion: reduce) { .pf-epop.enter, .pf-epop.ph.enter { animation: none; } }

/* ===== ROUND 130 · THE EDIT POP-UP IN LIGHT · A PHONE'S EDITOR FILLS THE SCREEN · DETAILS IN FOUR LINES (operator
   2026-10-20: 'make the pop-up window a different colour, to stand out and be easy to see' · 'on mobile the whole entry
   seen on the whole screen, without scrolling' · 'compact each card into 4 lines — 1 language pill · name · set name (another
   colour) · 2 card# · rarity · TCG · year · 3 BL# (the details start, their row 1) · 4 value · paid · % (the details' row
   2); the same in 2 and 3 columns'). ===== */

/* A · the EDIT pop-up: a light panel over the dark page (the design system's #F2F2F2), the red edge and the red head bar */
#view-port .pf-epop { --pf-box: #ffffff; --pf-box-line: #c4c4c4; --pf-ro: #ececec; --pf-ro-line: #c9c9c9;
  background: #f2f2f2; border: 1px solid #ffffff; color: #1c1c1c; color-scheme: light;
  box-shadow: 0 0 0 2px var(--accent), 0 24px 60px rgba(0, 0, 0, .8); }
#view-port .pf-epop .ep-head { background: #ffffff; border-bottom: 1px solid #dadada; border-radius: 13px 13px 0 0; box-shadow: inset 0 3px 0 var(--accent); padding-top: 12px; }
#view-port .pf-epop .ep-art { background: #dedede; border-color: #c9c9c9; }
#view-port .pf-epop .ep-stack img { border-color: #ffffff; background: #dedede; box-shadow: 2px 0 6px rgba(0, 0, 0, .25); }
#view-port .pf-epop .ep-tt b { color: #111111; }
#view-port .pf-epop .ep-tt span { color: #666666; }
#view-port .pf-epop .ep-hb { background: linear-gradient(#ffffff, #ececec); border-color: #c4c4c4; color: #333333; }
#view-port .pf-epop .ep-hb:hover { border-color: #7f7f7f; color: #000000; }
#view-port .pf-epop .ep-hb:focus-visible, #view-port .pf-epop .ep-b:focus-visible { outline: 2px solid #1c1c1c; }
#view-port .pf-epop .ep-price { background: #e8e8e8; border-bottom-color: #d6d6d6; }
#view-port .pf-epop .ep-fig i { color: #666666; }
#view-port .pf-epop .ep-fig b { color: #111111; }
#view-port .pf-epop .ep-fig b.v { color: #15784a; }
#view-port .pf-epop .ep-fig b.v.down { color: #c0302d; }
#view-port .pf-epop .ep-chg { background: #dedede; color: #333333; }
#view-port .pf-epop .ep-chg.up { background: #d3eedf; color: #15784a; }
#view-port .pf-epop .ep-chg.down { background: #f7dad9; color: #b52c29; }
#view-port .pf-epop .ep-q { color: #444444; }
#view-port .pf-epop .pm-f > i { color: #5c5c5c; }
#view-port .pf-epop .pm-f :is(select, input, .pm-date) { background: #ffffff; border-color: #c4c4c4; color: #1a1a1a; color-scheme: light; }
#view-port .pf-epop .pm-f :is(select, input):focus, #view-port .pf-epop .pm-f .pm-date:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
#view-port .pf-epop .pm-f input::placeholder { color: #a0a0a0; }
#view-port .pf-epop .pm-rowc .pm-date.ph { color: #a0a0a0; }
#view-port .pf-epop .pm-ro { background: #e6e6e6; border-color: #b9b9b9; color: #333333; }
#view-port .pf-epop :is(.pm-step button, .pm-today) { background: linear-gradient(#ffffff, #ececec); border-color: #c4c4c4; color: #222222; }
#view-port .pf-epop :is(.pm-step button, .pm-today):hover { border-color: #7f7f7f; }
#view-port .pf-epop .pm-hint { color: #6b6b6b; }
#view-port .pf-epop .ep-foot { border-top-color: #d6d6d6; background: #ebebeb; border-radius: 0 0 13px 13px; }
#view-port .pf-epop .ep-b { background: linear-gradient(#ffffff, #ececec); border-color: #bdbdbd; color: #1f1f1f; box-shadow: inset 0 1px 0 #ffffff; }
#view-port .pf-epop .ep-b:hover:not(:disabled) { border-color: #7a7a7a; }
#view-port .pf-epop .ep-b:disabled { background: #e3e3e3; color: #a3a3a3; border-color: #d0d0d0; }
#view-port .pf-epop .ep-b.red { background: linear-gradient(#e2605d, #c9423f); border-color: #b8302d; color: #ffffff; box-shadow: none; }
#view-port .pf-epop .ep-b.go { background: var(--accent); border-color: #b8302d; color: #ffffff; box-shadow: none; }
#view-port .pf-epop .ep-b.gold { background: #f4ecd5; border-color: #ab9b6f; color: #5a4a1c; }
#view-port .pf-epop .ep-b.danger { background: #ffffff; border-color: #e2a9a7; color: #b8302d; }
#view-port .pf-epop .ep-sec { border-bottom-color: #dcdcdc; }
#view-port .pf-epop :is(.ep-sec > i, .ep-mem > i) { color: #5c5c5c; }
#view-port .pf-epop .ep-row :is(input, select) { background: #ffffff; border-color: #c4c4c4; color: #1a1a1a; color-scheme: light; }
#view-port .pf-epop .ep-note { color: #666666; }
#view-port .pf-epop .ep-mrow { background: #ffffff; border-color: #d3d3d3; color: #1c1c1c; }
#view-port .pf-epop .ep-mrow:hover { border-color: #8f8f8f; }
#view-port .pf-epop .ep-mart { background: #dedede; }
#view-port .pf-epop .ep-mtt span { color: #777777; }
#view-port .pf-epop .ep-mrow em { color: #333333; }
#view-port .pf-epop .pm-stabs { background: #e2e2e2; border-color: #cfcfcf; }
#view-port .pf-epop .pm-stabs button { color: #555555; }
#view-port .pf-epop .pm-stabs button.on { background: #ffffff; color: #111111; }
#view-port .pf-epop .pm-sp :is(input, select) { background: #ffffff; border-color: #c4c4c4; color: #1a1a1a; color-scheme: light; }
#view-port .pf-epop :is(.pm-sphint, .pm-sp + p) { color: #666666; }

/* B · a phone: the editor fills the screen — every field in view without scrolling (the body scrolls only when a batch's
   list of cards is longer than the screen); nothing to fold, the page under it does not scroll */
#view-port .pf-epop.ph { top: 0 !important; bottom: 0; left: 0 !important; right: 0; width: auto; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); box-shadow: none; }
#view-port .pf-epop.ph :is(.ep-grab, .ep-fold) { display: none; }
#view-port .pf-epop.ph .ep-head { border-radius: 0; padding: 12px 12px 9px 14px; }
#view-port .pf-epop.ph .ep-foot { border-radius: 0; padding: 8px 14px 10px; gap: 6px; }
#view-port .pf-epop.ph .ep-price { padding: 6px 14px; }
#view-port .pf-epop.ph .ep-body { padding: 10px 14px 10px; }
#view-port .pf-epop.ph .ep-grid { gap: 7px 10px; }
#view-port .pf-epop.ph .pm-f { gap: 3px; }
#view-port .pf-epop.ph .pm-f > i { font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .9px; }
#view-port .pf-epop.ph :is(.pm-f select, .pm-f input, .pm-f .pm-date, .pm-ro, .pm-step button, .pm-today) { height: 42px; }
#view-port .pf-epop.ph .pm-hint { font-size: calc(11.5px * var(--pf-fs, 1)); line-height: 1.3; }
#view-port .pf-epop.ph .ep-b { height: 42px; }
#view-port .pf-epop.ph.fold .ep-body { display: block; }
#view-port .pf-epop.ph.fold :is(.ep-price, .ep-foot) { display: flex; }
#view-port.active:has(> .pf-epop.ph:not([hidden])) { padding-bottom: 0; }
body.mv.pf-ep-open { overflow: hidden; }
/* a shorter phone (667 – 760 px): the controls one size down, so a graded card's every field still shows without scrolling */
@media (max-height: 760px) {
  #view-port .pf-epop.ph :is(.pm-f select, .pm-f input, .pm-f .pm-date, .pm-ro, .pm-step button, .pm-today) { height: 36px; }
  #view-port .pf-epop.ph .ep-grid { gap: 5px 10px; }
  #view-port .pf-epop.ph .pm-f { gap: 2px; }
  #view-port .pf-epop.ph .ep-b { height: 38px; }
  #view-port .pf-epop.ph .ep-art { width: 32px; height: 45px; }
  #view-port .pf-epop.ph .ep-head { padding: 8px 12px 7px 14px; }
  #view-port .pf-epop.ph .ep-hb { width: 36px; height: 36px; }
  #view-port .pf-epop.ph .ep-body { padding: 8px 14px; }
  #view-port .pf-epop.ph .ep-price { padding: 4px 14px; }
}
/* a double-tap opens a card's editor — the browser's own double-tap zoom stays off the cards */
#view-port .pf-cards.ph :is(.pf-card, .pf-bgcap) { touch-action: manipulation; }

/* C · DETAILS on, a computer: each card in four lines. Lines 1–2 run across the card; lines 3–4 hold the BL# and the
   value at the left and the details' captions / values beside them when the card is wide enough for every cell in one row
   (one column), else the cells go under the four lines (two and three columns) */
#view-port .pf-cards .pf-card.l4 { display: block; padding: 7px 12px 7px 10px; container: pfl4 / inline-size; min-width: 0; }
#view-port .pf-card.l4 > .l4g {
  --h1: calc(19px * var(--pf-fs, 1)); --h2: calc(16px * var(--pf-fs, 1)); --h3: calc(17px * var(--pf-fs, 1)); --h4: calc(23px * var(--pf-fs, 1));
  --aw: calc((var(--h1) + var(--h2) + var(--h3) + var(--h4)) * 5 / 7); --iw: calc(236px * var(--pf-fs, 1));
  display: grid; column-gap: 12px; row-gap: 0; align-items: center; min-width: 0;
  grid-template-columns: var(--aw) var(--iw) minmax(0, 1fr);
  grid-template-rows: var(--h1) var(--h2) var(--h3) var(--h4) auto;
  grid-template-areas: "art l1 l1" "art l2 l2" "art l3 fg" "art l4 fg" ". . fg"; }
@container pfl4 (max-width: 960px) {
  #view-port .pf-card.l4 > .l4g { grid-template-columns: var(--aw) minmax(0, 1fr); grid-template-areas: "art l1" "art l2" "art l3" "art l4" "fg fg"; }
  #view-port .pf-card.l4 .l4fg { margin-top: 6px; }
  /* under the four lines: the grade is the picture's pill, a raw card has no certificate */
  #view-port .pf-card.l4 .l4fg > :is(.c-gr, .c-cert.raw) { display: none; }
  /* one box a detail, its caption inside before the value: the details take ONE row */
  body:not(.mv) #view-port .pf-card.l4 .l4fg { gap: 4px; }
  body:not(.mv) #view-port .pf-card.l4 .l4c { flex-direction: row; align-items: center; gap: 5px; box-sizing: border-box; height: var(--h4); padding: 0 6px; border: 1px solid var(--l4vl); background: var(--l4vb); border-radius: 5px; }
  body:not(.mv) #view-port .pf-card.l4 .l4c > i { flex: none; height: auto; line-height: 1; padding: 0; font-size: calc(8px * var(--pf-fs, 1)); letter-spacing: .7px; }
  body:not(.mv) #view-port .pf-card.l4 .l4c > b { flex: 1 1 auto; min-width: 0; height: auto; margin: 0; padding: 0; line-height: 1.2; border: 0; background: none; }
  body:not(.mv) #view-port .pf-card.l4 .l4c.c-qty > b { text-align: left; }
  body:not(.mv) #view-port .pf-card.l4 .l4c.alloc { border-style: dashed; }
  body:not(.mv) #view-port .pf-card.l4 .l4c.c-fol { flex: 1.3 1 calc(90px * var(--pf-fs, 1)); }
  body:not(.mv) #view-port .pf-card.l4 .l4c.c-paid { flex: 1 1 calc(94px * var(--pf-fs, 1)); }
  body:not(.mv) #view-port .pf-card.l4 .l4c.c-qty { flex: 0 0 calc(40px * var(--pf-fs, 1)); }
  body:not(.mv) #view-port .pf-card.l4 .l4c.c-date { flex: 0 0 calc(118px * var(--pf-fs, 1)); }
  body:not(.mv) #view-port .pf-card.l4 .l4c.c-bat { flex: 1 1 calc(80px * var(--pf-fs, 1)); }
  body:not(.mv) #view-port .pf-card.l4 .l4c.c-cert { flex: 1 1 calc(80px * var(--pf-fs, 1)); }
}
/* the narrowest cards (three columns): the batch is the card's colour and its box */
@container pfl4 (max-width: 520px) {
  #view-port .pf-card.l4 .l4fg > :is(.c-bat, .c-qty.one) { display: none; }
  body:not(.mv) #view-port .pf-cards .pf-card.l4 .l4c.c-fol { flex-basis: calc(76px * var(--pf-fs, 1)); }
  body:not(.mv) #view-port .pf-cards .pf-card.l4 .l4c.c-paid { flex-basis: calc(86px * var(--pf-fs, 1)); }
}
/* the picture, as tall as the four lines; its grade pill on its foot */
body:not(.mv) #view-port .pf-cards.l4 .pf-card.l4 > .l4g > .pf-artcol { grid-area: art; align-self: start; position: relative; display: block; width: var(--aw);
  height: calc(var(--h1) + var(--h2) + var(--h3) + var(--h4)); margin: 0; padding: 0; }
body:not(.mv) #view-port .pf-cards.l4 .pf-card.l4 > .l4g > .pf-artcol > .pf-cart { display: block; position: relative; width: 100%; height: 100%; margin: 0; border-radius: 5px; overflow: hidden; background: #0e0e0e; }
body:not(.mv) #view-port .pf-cards.l4 .pf-card.l4 > .l4g > .pf-artcol > .pf-cart > img { display: block; width: 100%; height: 100%; object-fit: cover; }
body:not(.mv) #view-port .pf-cards.l4 .pf-card.l4 > .l4g > .pf-artcol > .pf-gbadge { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); z-index: 2; margin: 0; max-width: calc(var(--aw) + 14px); }
/* line 1: [LANG] the name · the set (gold) */
#view-port .pf-card.l4 .l4-1 { grid-area: l1; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
#view-port .pf-card.l4 .l4-1 > .pf-lang { flex: none; margin: 0; }
#view-port .pf-card.l4 .l4n { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: calc(15px * var(--pf-fs, 1)); font-weight: 700; color: #ffffff; line-height: var(--h1); }
#view-port .pf-card.l4 .l4s { flex: 0 1000 auto; min-width: calc(48px * var(--pf-fs, 1)); overflow: hidden; text-overflow: ellipsis; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 600; color: #d8c89a; }
#view-port .pf-card.l4 .l4s::before { content: '·'; margin-right: 8px; color: #6f6f6f; font-weight: 400; }
/* line 2: #number · rarity · TCG · year */
#view-port .pf-card.l4 .l4-2 { grid-area: l2; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; font-size: calc(12px * var(--pf-fs, 1)); color: #a6a6a6; line-height: var(--h2); }
#view-port .pf-card.l4 .l4-2 > i { flex: none; font-style: normal; color: #5f5f5f; }
#view-port .pf-card.l4 .l4-2 .l-no { flex: none; color: #ececec; font-weight: 600; font-variant-numeric: tabular-nums; }
#view-port .pf-card.l4 .l4-2 :is(.l-rar, .l-tcg) { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-card.l4 .l4-2 .l-rar { color: #d0d0d0; }
#view-port .pf-card.l4 .l4-2 .l-yr { flex: none; }
#view-port .pf-card.l4 .l4-2 .l-tcg.fit-off, #view-port .pf-card.l4 .l4-2 .l-tcg.fit-off + i { display: none; }
/* line 3: the BL pre-grade and the Job# (empty when BLACKLENS has not seen the card) */
#view-port .pf-card.l4 .l4-3 { grid-area: l3; display: flex; align-items: center; min-width: 0; overflow: hidden; font-size: calc(11.5px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4-3 > .l-bl { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
#view-port .pf-card.l4 .l4-3 > .l-bl:empty { display: none; }
#view-port .pf-card.l4 .l4-3 > .l-bl > .l-job { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #cfcfcf; font-family: var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
/* line 4: VALUE (green, red under the price paid) · PAID (white) · the change */
#view-port .pf-card.l4 .l4-4 { grid-area: l4; display: flex; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; line-height: var(--h4); }
#view-port .pf-card.l4 .l4-4 > span { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
#view-port .pf-card.l4 .l4-4 i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; color: #8f8f8f; }
#view-port .pf-card.l4 .l4v b { font-size: calc(16px * var(--pf-fs, 1)); font-weight: 700; color: var(--pf-pos, #7ED4A6); font-variant-numeric: tabular-nums; }
#view-port .pf-card.l4 .l4v b.down { color: var(--pf-neg, #EB6A66); }
#view-port .pf-card.l4 .l4v b.none { color: #8a8a8a; }
#view-port .pf-card.l4 .l4p b { font-size: calc(13.5px * var(--pf-fs, 1)); font-weight: 700; color: #ffffff; font-variant-numeric: tabular-nums; }
#view-port .pf-card.l4 .l4p b.none { color: #8a8a8a; }
#view-port .pf-card.l4 .l4v .pf-si { align-self: center; margin-left: 2px; }
#view-port .pf-card.l4 .l4d { align-self: center; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 5px; font-size: calc(11px * var(--pf-fs, 1)); font-weight: 700; line-height: 1.35; background: #262626; color: #d9d9d9; }
#view-port .pf-card.l4 .l4d.up { background: #0f2a1d; color: var(--pf-pos, #7ED4A6); }
#view-port .pf-card.l4 .l4d.down { background: #2d1514; color: var(--pf-neg, #EB6A66); }
#view-port .pf-card.l4 .l4d .pf-tri { width: 8px; height: 8px; }
/* the details: one cell a field, its caption on line 3 and its value on line 4 — the card's colour family tints them */
#view-port .pf-card.l4 { --l4k: #e8a6a3; --l4vb: #2a1514; --l4vl: #5e2c2a; }
#view-port .pf-card.l4.inb { --l4k: #d8c89a; --l4vb: #1f1c15; --l4vl: #4d4535; }
#view-port .pf-card.l4.k-graded:not(.inb) { --l4k: #9cc6ff; --l4vb: #12223d; --l4vl: #2b4c7c; }
#view-port .pf-card.l4.k-pregraded:not(.inb) { --l4k: #a9b9f0; --l4vb: #10162f; --l4vl: #27346c; }
#view-port .pf-card.l4 .l4fg { grid-area: fg; align-self: start; display: flex; flex-wrap: wrap; gap: 3px 6px; min-width: 0; border-radius: 6px; cursor: pointer; }
#view-port .pf-card.l4 .l4fg:focus-visible { outline: 1px solid #8f8f8f; outline-offset: 2px; }
#view-port .pf-card.l4 .l4c { display: flex; flex-direction: column; min-width: 0; }
#view-port .pf-card.l4 .l4c.c-gr { flex: .8 1 calc(56px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4c.c-fol { flex: 1.3 1 calc(58px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4c.c-paid { flex: 1 1 calc(78px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4c.c-qty { flex: 0 0 calc(30px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4c.c-date { flex: 0 0 calc(76px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4c.c-bat { flex: 1 1 calc(54px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4c.c-cert { flex: 1 1 calc(60px * var(--pf-fs, 1)); }
#view-port .pf-card.l4 .l4c > i { display: block; height: var(--h3); line-height: var(--h3); padding-left: 1px; font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .9px;
  color: var(--l4k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-port .pf-card.l4 .l4c > b { display: block; box-sizing: border-box; height: calc(var(--h4) - 2px); margin-top: 1px; line-height: calc(var(--h4) - 4px); padding: 0 6px; border-radius: 5px;
  border: 1px solid var(--l4vl); background: var(--l4vb); color: #f2f2f2; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(12.5px * var(--pf-fs, 1)); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#view-port .pf-card.l4 .l4c > b.ph { color: #6f6f6f; }
#view-port .pf-card.l4 .l4c.alloc > b { border-style: dashed; }
#view-port .pf-card.l4 .l4c.c-qty > b { text-align: center; padding: 0 2px; }

/* ===== MAP INSPECT ROUND 133 (operator 2026-10-20: 'a manual score deduction in DEFECT MARKS — EDIT on the top-right
   corner of the defect; the score, not the tick; whole numbers') ===== */
#view-ai .ai-v2 .ai-mrow { position: relative; }
#view-ai .ai-v2 .ai-mrow.sel:not(.editing) .ai-mtxt .l1 { margin-right: 56px; }
#view-ai .ai-v2 .ai-mrow.sel .ai-mtxt .l1 .zn, #view-ai .ai-v2 .ai-mrow.sel .ai-mtxt .l1 .ty { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#view-ai .ai-meditbtn { position: absolute; top: 3px; right: 4px; height: 18px; padding: 0 6px 0 5px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--accent); background: #5a2321; color: #fff; font-family: inherit; font-size: 8.5px; font-weight: 700;
  letter-spacing: 1px; line-height: 16px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
#view-ai .ai-meditbtn svg { width: 11px; height: 11px; flex: 0 0 auto; }
#view-ai .ai-meditbtn:hover { background: var(--accent); }
#view-ai .ai-meditbtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
#view-ai .ai-mtxt .l2 .dset { color: #E2C06B; font-weight: 700; font-variant-numeric: tabular-nums; }
#view-ai .ai-mtxt .l2 .dset i { font-style: normal; font-size: 8px; letter-spacing: .8px; opacity: .85; }
#view-ai .ai-v2 .ai-mrow.manual { box-shadow: inset -2px 0 0 #AB9B6F; }
#view-ai .ai-v2 .ai-mrow.editing { border-color: var(--accent); background: #2b1b1a; cursor: default; }
.ai-mtxt .l2.ai-mded { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; white-space: nowrap; overflow: visible;
  text-overflow: clip; color: #cfcfcf; }
.ai-mded .k { font-size: 8px; font-weight: 700; letter-spacing: 1px; color: #ffb3b0; }
.ai-mded .mi { display: inline-flex; align-items: center; gap: 1px; height: 19px; padding: 0 4px 0 5px; border-radius: 4px;
  background: #0e0e0e; border: 1px solid #5a5a5a; }
.ai-mded .mi:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(220, 79, 76, .25); }
.ai-mded .mi i { font-style: normal; color: #fff; font-weight: 700; font-size: 10.5px; }
.ai-mded .ai-mded-in { width: 30px; height: 17px; padding: 0 1px; border: 0; outline: 0; background: transparent; color: #fff;
  font-family: Consolas, monospace; font-size: 11.5px; font-weight: 700; text-align: right; }
.ai-mded .ai-mded-in::placeholder { color: #6a6a6a; }
.ai-mded .ai-mded-in.bad { color: #ffb3b0; }
.ai-mded .tk { font-size: 8px; letter-spacing: .8px; color: #8a8a8a; padding: 1px 4px; border: 1px dashed #4a4a4a; border-radius: 3px; cursor: help; }
.ai-mded button { height: 19px; padding: 0 6px; border-radius: 4px; font-family: inherit; font-size: 8.5px; font-weight: 700;
  letter-spacing: .8px; cursor: pointer; border: 1px solid #575757; background: linear-gradient(#2a2a2a, #1e1e1e); color: #e6e6e6; }
.ai-mded button.ok { border-color: var(--accent); background: #5a2321; color: #fff; }
.ai-mded button.ok:hover { background: var(--accent); }
.ai-mded button.au { border-color: #5c5340; color: #d8c89a; background: #15130d; }
.ai-mded button.x { padding: 0 5px; font-size: 11px; line-height: 1; }
.ai-mded button:not(.ok):hover { border-color: #8f8f8f; }
.ai-mded button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@container aimlist (max-width: 300px) {
  #view-ai .ai-meditbtn { padding: 0 3px; }
  #view-ai .ai-meditbtn span { display: none; }
  #view-ai .ai-v2 .ai-mrow.sel:not(.editing) .ai-mtxt .l1 { margin-right: 22px; }
  .ai-mded .k { display: none; }
  .ai-mded button { padding: 0 4px; letter-spacing: .4px; }
}


/* ===== ROUND 134 (operator 2026-10-20) · the tiles with DETAILS off, lower rows =====
   2 COLUMNS (a computer): the price in a column on the right, line by line with the description —
     name      | %
     set       | VALUE
     #no · rar | ฿3,342
     [EN] TCG  | PAID
     [BL] Job# | ฿1,583
   3 COLUMNS (a computer): ONE price line under the description — VALUE ฿3,342 · PAID ฿1,583 — in short figures when it
   has no room (port.js fitPrices: 3342, 12.84k, 1.32m, then 3.34k).
   A PHONE, DETAILS off: the 2-column tile carries VALUE / PAID beside its picture under the % (the lines span the tile under
   it); the 1-column card's picture and its 6-month curve take less height — the curve stays */
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo:has(> .pf-lines) {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; grid-template-rows: auto auto auto auto auto 1fr;
  grid-template-areas: none; column-gap: 12px; row-gap: 0; align-content: start; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-lines { display: contents; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-c1 { grid-area: 1 / 1; padding-right: 0; align-self: center; min-width: 0; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-set { grid-area: 2 / 1; margin-top: 0; align-self: center; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-num { grid-area: 3 / 1; align-self: center; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-ly { grid-area: 4 / 1; align-self: center; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-bl { grid-area: 5 / 1; align-self: center; margin-top: 0; }
/* the price column: rows 1–5 of the text (a subgrid), the % on the name's row */
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot {
  grid-column: 2; grid-row: 1 / 6; display: grid; grid-template-rows: subgrid; grid-template-columns: auto auto;
  align-self: stretch; margin: 0; padding: 0; min-width: 0; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot > .pf-price,
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) { display: contents; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) .pf-d {
  position: static; grid-column: 1 / -1; grid-row: 1; justify-self: end; align-self: center; margin: 0; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > i {
  grid-column: 1 / -1; justify-self: end; align-self: center; flex: none; margin: 0; line-height: 1;
  font-size: calc(8.5px * var(--pf-fs, 1)); letter-spacing: 1.2px; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > i { grid-row: 2; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p > i { grid-row: 4; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:has(> .pf-si) > i { grid-column: 2; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > .pf-si {
  grid-column: 1; grid-row: 2; justify-self: end; align-self: center; margin: 0 6px 0 0; height: auto; padding: 1px 4px; line-height: 1; font-size: calc(7.5px * var(--pf-fs, 1)); }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > b {
  grid-column: 1 / -1; justify-self: end; align-self: center; min-width: 0; text-align: right; line-height: 1; white-space: nowrap; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > b { grid-row: 3; font-size: calc(14px * var(--pf-fs, 1)); }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p > b { grid-row: 5; font-size: calc(12.5px * var(--pf-fs, 1)); }
/* the card's text starts at its top and the picture keeps its own height */
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) { align-items: start; }

/* 3 COLUMNS: one price line under the five lines */
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) { column-gap: 8px; padding-left: 8px; padding-right: 8px; grid-template-columns: 58px minmax(0, 1fr); }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot { padding-top: 4px; min-width: 0; justify-self: stretch; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot > .pf-price {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: baseline; justify-content: flex-start; gap: 0; width: 100%;
  min-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--rep-font-sc); font-stretch: 87.5%; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) {
  display: inline-flex; flex: none; align-items: baseline; gap: 3px; min-width: 0; flex-wrap: nowrap; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p::before {
  content: '·'; color: #7f7f7f; font-weight: 700; margin: 0 3px 0 4px; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > i {
  flex: none; margin: 0; font-size: calc(7px * var(--pf-fs, 1) * var(--pz, 1)); letter-spacing: 0; font-weight: 600; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > b {
  min-width: 0; flex: none; text-align: left; line-height: 1.1; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > b { font-size: calc(12px * var(--pf-fs, 1) * var(--pz, 1)); }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p > b { font-size: calc(11px * var(--pf-fs, 1) * var(--pz, 1)); }
/* still no room after the short figures (fitPrices): the type a size smaller, then the captions go (the figures keep their
   colours: VALUE green / red, PAID white; the tooltips name them) */
#view-port .pf-cbot.tight { --pz: .86; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot.tight2 .pf-pr:is(.v, .p) > i { display: none; }
/* an EST / MARKET tag has no room on this line — the VALUE's tooltip names it */
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > .pf-si { display: none; }

/* A PHONE · 2 columns, DETAILS off: VALUE / PAID beside the picture, under the %; name and lines under both */
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) {
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto;
  grid-template-areas: "art side" "c1 c1" "ls ls" "ln ln" "ly ly" "lb lb"; column-gap: 8px; row-gap: 0; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-artcol { grid-area: art; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo,
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-lines { display: contents; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-c1 { grid-area: c1; margin-top: 8px; min-width: 0; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) .pf-lines > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: calc(11.5px * var(--pf-fs, 1)); line-height: 1.3; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) .pf-lines > .l-set { grid-area: ls; color: #bdbdbd; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) .pf-lines > .l-num { grid-area: ln; display: flex; align-items: center; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) .pf-lines > .l-ly { grid-area: ly; display: flex; align-items: center; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) .pf-lines > .l-bl { grid-area: lb; display: flex; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) .pf-lines > .l-bl:empty { display: none; }
#view-port .pf-cards.ph.tiles.n2.hasbl .pf-card.pm:not(.open):not(.pf-grp) .pf-lines > .l-bl:empty { display: block; height: 1.3em; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot {
  grid-area: side; align-self: end; justify-self: stretch; min-width: 0; margin: 0 0 2px; padding: 0; display: block; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot > .pf-price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; max-width: 100%; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr > i { flex: none; margin: 0; line-height: 1.1; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr > b { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; line-height: 1.1; text-align: right; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > b { font-size: calc(16px * var(--pf-fs, 1) * var(--pz, 1)); }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p > b { font-size: calc(13px * var(--pf-fs, 1) * var(--pz, 1)); }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p { margin-top: 3px; }
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > .pf-si { margin: 0; }
@media (max-width: 374px) {
  #view-port .pf-cards.ph.tiles.n2 .pf-card.pm:not(.open):not(.pf-grp) .pf-cart { width: 72px; height: 101px; }
}

/* A PHONE · 1 column, DETAILS off: a smaller picture (the five lines still fit beside it) and the curve tighter */
#view-port .pf-cards.ph.pmnodet:not(.tiles):not(.selecting) .pf-card.pm { grid-template-columns: 52px minmax(0, 1fr); padding: 10px 12px; row-gap: 6px; }
#view-port .pf-cards.ph.pmnodet:not(.tiles):not(.selecting) .pf-card.pm .pf-cart { width: 52px; height: 73px; }
#view-port .pf-cards.ph.pmnodet .pf-card.pm > .pf-spark { padding-top: 6px; margin-top: 0; }
#view-port .pf-cards.ph.pmnodet .pf-card.pm > .pf-spark .pf-sparkplot { height: 52px; margin-top: 3px; }
#view-port .pf-cards.ph.pmnodet .pf-card.pm > .pf-spark .pf-sparkm { margin-top: 3px; }

/* ===== ROUND 135 (operator 2026-10-20) · 2 columns: the captions flush with their figures, the paid figure smaller;
   3 columns: the price line across the whole card under the picture and the lines, right-aligned, a size larger (the value
   a little larger than the paid), the row height kept ===== */
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > i {
  width: auto; min-width: 0; text-align: right; letter-spacing: 1.1px; margin-right: -1.1px; }
body:not(.mv) #view-port .pf-cards.c4.n4:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p > b { font-size: calc(11px * var(--pf-fs, 1)); }
/* 3 columns: the card one grid — the picture beside the five lines, the price row under both */
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) {
  grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr auto; grid-template-areas: none; row-gap: 0; align-items: start; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-artcol { grid-column: 1; grid-row: 1 / 7; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo,
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-lines { display: contents; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-c1 { grid-column: 2; grid-row: 1; min-width: 0; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-set { grid-column: 2; grid-row: 2; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-num { grid-column: 2; grid-row: 3; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-ly { grid-column: 2; grid-row: 4; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) .pf-lines > .l-bl { grid-column: 2; grid-row: 5; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot {
  grid-column: 1 / -1; grid-row: 7; padding-top: 2px; min-width: 0; justify-self: stretch; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot :is(.pf-price, .pf-pr, .pf-pr > i, .pf-pr > b) { line-height: 1; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p::before { line-height: 1; }
/* the grade pill tucked 4 px further under the picture: the picture column no taller than the five lines */
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-artcol > .pf-gbadge { margin-top: -16px; margin-bottom: 0; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot > .pf-price { justify-content: flex-end; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr:is(.v, .p) > i {
  font-size: calc(8px * var(--pf-fs, 1) * var(--pz, 1)); letter-spacing: .6px; }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.v > b { font-size: calc(14px * var(--pf-fs, 1) * var(--pz, 1)); }
body:not(.mv) #view-port .pf-cards.c4.n6:not(.ph):not(.spark) .pf-card:not(.pf-grp) > .pf-cinfo > .pf-cbot .pf-pr.p > b { font-size: calc(12.5px * var(--pf-fs, 1) * var(--pz, 1)); }
/* a phone 2-column tile still without room after the short figures and a size smaller: smaller again (the side column is ~56 px) */
#view-port .pf-cards.ph.tiles.n2 .pf-card.pm .pf-cbot.tight2 { --pz: .74; }

/* ===== ROUND 136 · BINDERS — the binder builder and the shelf (operator 2026-10-20, a computer beta: js/binder.js) =====
   The shelf: two stories of six binders on a skin (walnut · oak · black steel · white gallery · BLACKLENS); a binder: its
   spread of two pages of pockets (4 · 9 · 12 · 16 a page) inside its cover colour, the rings between, three pocket makes
   (CARD SAVER · TOP LOADER · SLEEVED); MY CARDS / FIND / SEEKING on the right, the binder's make on the left. */
#view-binder { --bd-red: #DC4F4C; --bd-gold: #ab9b6f; --bd-gold2: #d8c89a; --bd-line: #2f2f2f; --bd-panel: #161616; --bd-box: #0f0f0f;
  font-family: var(--rep-font); color: #ececec; background: #0d0d0d; }
#view-binder.active { display: block; }
.bd-app { min-height: calc(100vh - 66px); display: flex; flex-direction: column; padding: 12px 16px 14px; gap: 12px; box-sizing: border-box; }
.bd-top { display: flex; align-items: center; gap: 18px; min-height: 46px; padding: 6px 14px; border: 1px solid var(--bd-line); border-radius: 12px;
  background: linear-gradient(180deg, #1b1b1b, #121212); }
.bd-brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.bd-brand b { font-size: 18px; letter-spacing: 3px; font-weight: 800; color: #fff; }
.bd-brand em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; color: #141414; background: var(--bd-gold); padding: 2px 6px; border-radius: 4px; transform: translateY(-2px); }
.bd-brand span { font-size: 12px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-crumbs { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.bd-crumbs i { font-style: normal; color: #6a6a6a; }
.bd-crumbs button { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid #3a3a3a; background: #1c1c1c; color: #cfcfcf; font: 700 11px/1 var(--rep-font);
  letter-spacing: 1.4px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-crumbs button.on { background: #2a1513; border-color: var(--bd-red); color: #fff; }
.bd-topstats { margin-left: auto; display: flex; gap: 16px; font-size: 11px; letter-spacing: 1px; color: #9a9a9a; white-space: nowrap; }
.bd-topstats b { color: #fff; font-size: 15px; margin-right: 4px; }
.bd-topstats .sk b { color: var(--bd-gold2); }
.bd-topstats i { font-style: normal; color: #7ED4A6; }
.bd-body { flex: 1 1 auto; min-height: 0; }
.bd-card { background: var(--bd-panel); border: 1px solid var(--bd-line); border-radius: 12px; padding: 12px 13px; display: flex; flex-direction: column; gap: 10px; }
.bd-h { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; color: #ffb3b0; display: flex; align-items: baseline; gap: 8px; }
.bd-h i { font-style: normal; font-weight: 600; letter-spacing: 1px; color: #7f7f7f; }
.bd-hint, .bd-note, .bd-fine { margin: 0; font-size: 11.5px; line-height: 1.45; color: #9a9a9a; }
.bd-fine { font-size: 10.5px; color: #7a7a7a; }
.bd-empty { padding: 14px; border: 1px dashed #333; border-radius: 10px; color: #8a8a8a; font-size: 12px; line-height: 1.45; text-align: center; }
/* buttons, chips, swatches, fields */
.bd-btn { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid #4d4d4d; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); color: #ececec;
  font: 700 11px/1 var(--rep-font); letter-spacing: 1.3px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 3px rgba(0,0,0,.4); white-space: nowrap; }
.bd-btn:hover { border-color: #8f8f8f; }
.bd-btn:disabled { opacity: .45; cursor: default; }
.bd-btn.red { background: linear-gradient(180deg, #e3605d, #c43f3c); border-color: #e57471; color: #fff; }
.bd-btn.red:hover { filter: brightness(1.08); }
.bd-btn.gold { background: #1b1810; border-color: var(--bd-gold); color: var(--bd-gold2); }
.bd-btn.gold:hover { background: #2a2414; }
.bd-btn.big { height: 42px; font-size: 12px; letter-spacing: 1.8px; }
.bd-btn.sm { height: 26px; padding: 0 9px; font-size: 9.5px; border-radius: 7px; }
.bd-btn.wide { width: 100%; margin-top: 8px; }
.bd-btn.ghost { background: transparent; border-color: #3a3a3a; color: #9a9a9a; }
.bd-btn.ghost:hover { border-color: var(--bd-red); color: #ffb3b0; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-chip { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #4d4d4d; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); color: #dcdcdc;
  font: 700 10.5px/1 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: .8px; cursor: pointer; }
.bd-chip em { font-style: normal; font-weight: 500; color: #8f8f8f; }
.bd-chip.on { background: linear-gradient(180deg, #e3605d, #c43f3c); border-color: #e57471; color: #fff; }
.bd-chip.on em { color: #ffe1df; }
.bd-sws { display: flex; flex-wrap: wrap; gap: 7px; }
.bd-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #2a2a2a; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.6); }
.bd-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bd-red); }
.bd-f { display: flex; flex-direction: column; gap: 6px; }
.bd-f > i { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: 1.4px; color: #8f8f8f; }
.bd-f input, .bd-f select, .bd-search input, .bd-findf select { height: 34px; border-radius: 8px; border: 1px solid #4a4a4a; background: var(--bd-box); color: #fff; padding: 0 10px;
  font: 600 13px/1 var(--rep-font); outline: 0; min-width: 0; }
.bd-f input:focus, .bd-search input:focus, .bd-findf select:focus, .bd-f select:focus { border-color: var(--bd-red); box-shadow: 0 0 0 2px rgba(220,79,76,.2); }
.bd-search { display: flex; }
.bd-search input { flex: 1 1 auto; }
.bd-thumb { flex: none; width: 34px; height: 47px; border-radius: 4px; overflow: hidden; background: #0a0a0a; box-shadow: 0 0 0 1px #2e2e2e; }
.bd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-thumb.lg { width: 58px; height: 81px; }
.bd-msg { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  padding: 10px 16px; border-radius: 10px; background: #1d1d1d; border: 1px solid #3a3a3a; color: #f2f2f2; font-size: 13px; z-index: 9200; max-width: 640px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.bd-msg.on { opacity: 1; transform: translate(-50%, 0); }
.bd-msg.ok { border-color: #2f6b4d; }
.bd-msg.warn { border-color: #8a7a4f; }
.bd-msg.bad { border-color: var(--bd-red); }

/* ---------------- THE SHELF ---------------- */
.bd-body.shelf { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.bd-shelfcol { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.bd-shelf { --w1: #6b4528; --w2: #3e2615; --back: #22150c; --grain: rgba(0,0,0,.12); --plate: #c9a86a; --plateInk: #2a1a0c;
  position: relative; padding: 0 28px 16px; border-radius: 8px; width: max-content; max-width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%), var(--back);
  box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.6); }
.bd-shelf::before, .bd-shelf::after { content: ''; position: absolute; top: 0; bottom: 0; width: 28px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--grain) 0 2px, transparent 2px 7px), linear-gradient(90deg, var(--w2), var(--w1) 45%, var(--w2)); box-shadow: inset 0 0 8px rgba(0,0,0,.45); }
.bd-shelf::before { left: 0; } .bd-shelf::after { right: 0; }
.bd-crown { position: relative; height: 44px; margin: 0 -28px; border-radius: 8px 8px 0 0; display: grid; place-items: center;
  background: repeating-linear-gradient(0deg, var(--grain) 0 2px, transparent 2px 9px), linear-gradient(180deg, var(--w1), var(--w2)); box-shadow: 0 6px 12px rgba(0,0,0,.45); z-index: 1; }
.bd-story { position: relative; }
.bd-row { display: flex; align-items: flex-end; gap: 10px; height: 300px; padding: 14px 18px 0; min-width: 640px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 25%, rgba(0,0,0,.25)); }
.bd-plank { height: 22px; margin: 0 -28px; position: relative; z-index: 1;
  background: repeating-linear-gradient(0deg, var(--grain) 0 2px, transparent 2px 8px), linear-gradient(180deg, var(--w1), var(--w2)); box-shadow: 0 10px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); }
.bd-shelf.skin-oak { --w1: #cfa877; --w2: #9a7244; --back: #5b4129; --grain: rgba(80,50,20,.16); --plate: #2a2a2a; --plateInk: #e9d6a8; }
.bd-shelf.skin-steel { --w1: #3d3d3d; --w2: #141414; --back: #0b0b0b; --grain: rgba(255,255,255,.03); --plate: #9aa3aa; --plateInk: #111; }
.bd-shelf.skin-steel .bd-plank, .bd-shelf.skin-steel .bd-crown { box-shadow: 0 10px 18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.bd-shelf.skin-gallery { --w1: #f6f6f3; --w2: #d8d7d2; --back: #e9e8e3; --grain: rgba(0,0,0,0); --plate: #141414; --plateInk: #f2f2f2; }
.bd-shelf.skin-gallery .bd-row { background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,0) 30%); }
.bd-shelf.skin-blacklens { --w1: #1d1d1d; --w2: #080808; --back: #050505; --grain: rgba(255,255,255,.02); --plate: #DC4F4C; --plateInk: #fff; }
.bd-shelf.skin-blacklens .bd-plank { border-top: 2px solid #DC4F4C; box-shadow: 0 10px 18px rgba(0,0,0,.6), 0 -6px 16px rgba(220,79,76,.25); }
.bd-shelf.skin-blacklens::before, .bd-shelf.skin-blacklens::after { box-shadow: inset -1px 0 0 rgba(220,79,76,.5); }
/* a binder on the shelf: its spine */
.bd-spine { --cv: #141414; position: relative; height: 270px; flex: none; border: 0; padding: 12px 0 10px; border-radius: 5px 5px 2px 2px; cursor: pointer; color: #f4f4f4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(255,255,255,.12) 16%, rgba(255,255,255,0) 34%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.5)), var(--cv);
  box-shadow: 0 2px 0 rgba(0,0,0,.4), 4px 0 10px rgba(0,0,0,.35); transition: transform .18s, box-shadow .18s; }
.bd-spine:hover { transform: translateY(-8px); box-shadow: 0 14px 24px rgba(0,0,0,.6); }
.bd-spine:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bd-spine.light { color: #1a1a1a; }
.bd-sptop { font: 800 7.5px/1 var(--rep-font); letter-spacing: 1.2px; color: #d8c89a; opacity: .9; }
.bd-spine.light .bd-sptop { color: #6b5b2f; }
.bd-spname { flex: 1 1 auto; min-height: 0; writing-mode: vertical-rl; transform: rotate(180deg); font: 800 15px/1 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: 1.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: rgba(0,0,0,.18); max-width: 80%; }
.bd-spine.light .bd-spname { border-color: rgba(0,0,0,.2); background: rgba(255,255,255,.35); }
.bd-spmeta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bd-spmeta b { font-size: 17px; line-height: 1; }
.bd-spmeta i { font-style: normal; font-size: 7.5px; font-weight: 800; letter-spacing: 1px; opacity: .75; }
.bd-spbar { width: 60%; height: 4px; border-radius: 2px; background: rgba(0,0,0,.4); overflow: hidden; }
.bd-spbar i { display: block; height: 100%; background: var(--bd-gold2); }
.bd-spseek { position: absolute; top: -8px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bd-gold); color: #141414;
  font: 800 10px/20px var(--rep-font); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.bd-ghost { height: 270px; width: 84px; flex: none; border-radius: 6px; border: 2px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.03); color: rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font: 800 9.5px/1.3 var(--rep-font); letter-spacing: 1.4px; }
.bd-ghost b { font-size: 30px; font-weight: 400; }
.bd-ghost span { writing-mode: vertical-rl; transform: rotate(180deg); }
.bd-ghost:hover { border-color: var(--bd-red); color: #fff; background: rgba(220,79,76,.08); }
.bd-shelf.skin-gallery .bd-ghost { border-color: rgba(0,0,0,.25); color: #555; background: rgba(0,0,0,.03); }
.bd-side { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 150px); }
.bd-side .bd-card.grow { flex: 1 1 auto; min-height: 0; overflow: auto; }
.bd-skins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bd-skin { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; border-radius: 8px; border: 1px solid #333; background: #121212; color: #bdbdbd; cursor: pointer;
  font: 700 7.5px/1.2 var(--rep-font); letter-spacing: .6px; text-align: center; }
.bd-skin i { width: 100%; height: 22px; border-radius: 4px; display: block; }
.bd-skin.s-walnut i { background: linear-gradient(180deg, #6b4528, #3e2615); }
.bd-skin.s-oak i { background: linear-gradient(180deg, #cfa877, #9a7244); }
.bd-skin.s-steel i { background: linear-gradient(180deg, #3d3d3d, #141414); }
.bd-skin.s-gallery i { background: linear-gradient(180deg, #f6f6f3, #d8d7d2); }
.bd-skin.s-blacklens i { background: linear-gradient(180deg, #1d1d1d, #080808); box-shadow: inset 0 -2px 0 #DC4F4C; }
.bd-skin.on { border-color: var(--bd-red); color: #fff; box-shadow: 0 0 0 1px var(--bd-red); }
/* the sought cards */
.bd-seeks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bd-seeks li { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 9px; background: #121212; border: 1px solid #262626; }
.bd-seeks li.got { border-color: #2f6b4d; background: #0f1a14; }
.bd-st { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-st b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-st i { font-style: normal; font-size: 10.5px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-st em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .6px; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-st em.got, .bd-seeks .ok { color: #7ED4A6; }
.bd-sa { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.bd-sa > b { font-size: 8.5px; letter-spacing: 1px; color: var(--bd-gold2); }

/* ---------------- A BINDER ---------------- */
.bd-body.binder { display: grid; grid-template-columns: 286px minmax(0, 1fr) 340px; gap: 14px; height: calc(100vh - 150px); min-height: 520px; }
.bd-left, .bd-right { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.bd-center { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.bd-nav { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 11px; letter-spacing: 1.5px; color: #9a9a9a; }
.bd-nav b { color: #fff; font-size: 14px; }
.bd-arrow { width: 38px; height: 32px; border-radius: 9px; border: 1px solid #4d4d4d; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.bd-arrow:hover { border-color: var(--bd-red); }
.bd-stage { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.bd-book { --cv: #141414; --pg: #0c0c0c; --pkw: 80px; --pkh: 112px; display: inline-flex; align-items: stretch; padding: 22px; border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.1), rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.25)), var(--cv);
  box-shadow: 0 24px 50px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 30px rgba(0,0,0,.35); }
.bd-pagewrap { display: flex; flex-direction: column; gap: 6px; }
.bd-pagewrap.none { width: calc(var(--pkw) * 2); opacity: .0; }
.bd-phead { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 2px; color: rgba(255,255,255,.75); font-size: 10px; letter-spacing: 1.4px; }
.bd-book.light .bd-phead { color: rgba(0,0,0,.65); }
.bd-phead b { font-weight: 800; }
.bd-phead i { font-style: normal; opacity: .7; }
.bd-ai { margin-left: auto; height: 22px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--bd-gold); background: rgba(20,18,12,.85); color: #f1e2b4; cursor: pointer;
  font: 800 9px/1 var(--rep-font); letter-spacing: 1.2px; box-shadow: 0 0 12px rgba(216,200,154,.18); }
.bd-ai:hover { background: #2a2414; box-shadow: 0 0 16px rgba(216,200,154,.35); }
.bd-page { display: grid; grid-template-columns: repeat(var(--cols), var(--pkw)); grid-auto-rows: var(--pkh); gap: 6px; padding: 8px; border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08)), var(--pg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 2px 6px rgba(0,0,0,.4); }
.bd-rings { width: 44px; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; padding-top: 28px; }
.bd-rings i { width: 34px; height: 13px; border-radius: 7px; background: linear-gradient(180deg, #f4f4f4, #9a9a9a 55%, #5a5a5a); box-shadow: 0 2px 4px rgba(0,0,0,.6), inset 0 1px 0 #fff; }
/* a pocket — its make sets how far the card sits inside it */
.bd-pk { --in: 2.5%; position: relative; border-radius: 5px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(160,160,160,.28); cursor: pointer; }
.bd-pk.pk-saver { --in: 9%; border-radius: 7px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 18%, rgba(255,255,255,.05));
  box-shadow: inset 0 0 0 2px rgba(220,230,240,.32), inset 0 10px 0 -2px rgba(255,255,255,.12); }
.bd-pk.pk-toploader { --in: 6%; border-radius: 4px; background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 40%, rgba(255,255,255,.06));
  box-shadow: inset 0 0 0 3px rgba(210,222,232,.3); }
.bd-pk.pk-toploader::after { content: ''; position: absolute; top: 3px; left: 50%; width: 22%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: rgba(0,0,0,.35); }
.bd-pk.pk-sleeve { --in: 2.5%; }
.bd-sleeve { position: absolute; inset: var(--in); border-radius: 3px; overflow: hidden; }
.bd-cd { position: absolute; inset: 0; display: block; }
.bd-cd img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.bd-cd em { position: absolute; inset: 0; display: grid; place-items: center; padding: 4px; text-align: center; font-style: normal; font-size: 9px; color: #9a9a9a; background: #151515; }
.bd-cd em.wait { color: var(--bd-gold2); font-size: 16px; animation: bdPulse 1.2s infinite; }
@keyframes bdPulse { 50% { opacity: .35; } }
.bd-pk.empty .bd-plus { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: rgba(255,255,255,.18); transition: color .15s; }
.bd-book.light .bd-pk.empty .bd-plus { color: rgba(0,0,0,.2); }
.bd-pk.empty:hover .bd-plus { color: var(--bd-red); }
.bd-pk:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.bd-pk.sel { outline: 2px solid var(--bd-red); outline-offset: 2px; }
.bd-pk.over { outline: 2px dashed var(--bd-gold2); outline-offset: 2px; background: rgba(216,200,154,.12); }
.bd-pk.has { cursor: grab; }
.bd-pk.seek .bd-cd img { filter: grayscale(.9) brightness(.55); }
.bd-pk.seek.got .bd-cd img { filter: grayscale(.2) brightness(.8); }
.bd-rib { position: absolute; left: 0; right: 0; bottom: 14%; padding: 3px 0; text-align: center; font: 800 8px/1 var(--rep-font); letter-spacing: 1.4px; color: #141414; background: rgba(216,200,154,.92); }
.bd-pk.got .bd-rib { background: #7ED4A6; }
.bd-pk.art .bd-cd img { border-radius: 0; filter: saturate(1.05); }
.bd-pk.art::before { content: '✦'; position: absolute; right: 5px; top: 3px; z-index: 2; font-size: 9px; color: rgba(255,240,200,.75); text-shadow: 0 1px 2px #000; }
.bd-pk.lost .bd-cd em { color: #ffb3b0; }
.bd-x { position: absolute; top: -7px; right: -7px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #5a5a5a; background: #1b1b1b; color: #ffb3b0;
  font-size: 10px; line-height: 18px; text-align: center; padding: 0; cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.bd-pk:hover .bd-x { opacity: 1; }
.bd-x:hover { background: var(--bd-red); color: #fff; border-color: var(--bd-red); }
/* the pages strip */
.bd-strip { display: flex; gap: 5px; overflow-x: auto; padding: 4px 2px 6px; justify-content: center; scrollbar-width: thin; }
.bd-sth { position: relative; flex: none; width: 26px; height: 34px; border-radius: 5px; border: 1px solid #3a3a3a; background: #141414; cursor: pointer; overflow: hidden; padding: 0; }
.bd-sth i { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(171,155,111,.45); }
.bd-sth span { position: relative; font: 700 9px/34px var(--rep-font); color: #cfcfcf; }
.bd-sth.on { border-color: var(--bd-red); box-shadow: 0 0 0 1px var(--bd-red); }
/* the left column */
.bd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bd-stats span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 8px; background: #111; border: 1px solid #262626; }
.bd-stats b { font-size: 18px; line-height: 1; }
.bd-stats i { font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: 1px; color: #8f8f8f; }
.bd-stats .sk b { color: var(--bd-gold2); }
.bd-stats .ar b { color: #f1e2b4; }
.bd-found { margin: 0; font-size: 11.5px; color: #7ED4A6; }
.bd-inscard { display: flex; gap: 10px; align-items: flex-start; }
.bd-inscard > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bd-inscard b { font-size: 13px; }
.bd-inscard i { font-style: normal; font-size: 11px; color: #9a9a9a; }
.bd-inscard em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; color: #bdbdbd; }
.bd-inscard em.sk { color: var(--bd-gold2); }
.bd-inscard em.got { color: #7ED4A6; }
.bd-insname { margin: 0; font-size: 13px; font-weight: 700; color: #f1e2b4; }
.bd-acts { display: flex; flex-wrap: wrap; gap: 6px; }
/* the right column */
.bd-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 11px; background: #121212; border: 1px solid var(--bd-line); flex: none; }
.bd-tabs button { height: 34px; border: 0; border-radius: 8px; background: transparent; color: #bdbdbd; font: 800 10.5px/1 var(--rep-font); letter-spacing: 1.3px; cursor: pointer; }
.bd-tabs button em { font-style: normal; color: var(--bd-gold2); }
.bd-tabs button.on { background: linear-gradient(180deg, #e3605d, #c43f3c); color: #fff; }
.bd-tabs button.on em { color: #fff; }
.bd-pbody { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 9px; padding: 2px; scrollbar-width: thin; }
.bd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.bd-li { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 9px; background: #141414; border: 1px solid #262626; cursor: grab; position: relative; }
.bd-li:hover { border-color: #5a5a5a; background: #1a1a1a; }
.bd-li.used { opacity: .78; }
.bd-used { flex: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #2a2414; border: 1px solid var(--bd-gold); color: var(--bd-gold2); font: 800 10px/18px var(--rep-font); text-align: center; }
.bd-findf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.bd-findf .bd-modes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.bd-findf .bd-modes button { height: 28px; border-radius: 7px; border: 1px solid #3a3a3a; background: #141414; color: #bdbdbd; font: 800 10px/1 var(--rep-font); letter-spacing: 1.2px; cursor: pointer; }
.bd-findf .bd-modes button.on { border-color: var(--bd-red); background: #2a1513; color: #fff; }
.bd-findf .bd-search { grid-column: 1 / -1; }
.bd-findf .bd-btn { grid-column: 1 / -1; }
/* dialogs */
.bd-modal { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; background: rgba(0,0,0,.62); backdrop-filter: blur(2px); }
.bd-modal[hidden] { display: none; }
.bd-dlg { width: min(880px, 94vw); max-height: 92vh; overflow: auto; background: #151515; border: 1px solid #353535; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.7);
  display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; }
.bd-dlg.busy { opacity: .6; pointer-events: none; }
.bd-dh { display: flex; align-items: center; gap: 10px; }
.bd-dh b { font-size: 14px; letter-spacing: 2.4px; }
.bd-dh em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: #141414; background: var(--bd-gold); padding: 2px 6px; border-radius: 4px; }
.bd-xbig { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid #4d4d4d; background: #1e1e1e; color: #ddd; cursor: pointer; }
.bd-xbig:hover { border-color: var(--bd-red); color: #fff; }
.bd-dgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.bd-dprev { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bd-dprev p { margin: 0; font-size: 11px; color: #9a9a9a; text-align: center; }
.bd-dform { display: flex; flex-direction: column; gap: 12px; }
.bd-dfoot { display: flex; justify-content: flex-end; gap: 10px; }
.bd-mini { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.12), transparent 60%), var(--cv);
  box-shadow: 0 14px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.bd-minipg { display: grid; grid-template-columns: repeat(var(--cols), 26px); grid-auto-rows: 36px; gap: 3px; padding: 5px; border-radius: 4px; background: var(--pg); }
.bd-minipg i { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(160,160,160,.35); background: rgba(255,255,255,.05); }
.bd-minipg.pk-saver i { box-shadow: inset 0 0 0 2px rgba(220,230,240,.4); }
.bd-minipg.pk-toploader i { box-shadow: inset 0 0 0 1.5px rgba(210,222,232,.38); }
.bd-artpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.bd-artpick button { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid #333; background: #111; color: #ddd; cursor: pointer; text-align: left; }
.bd-artpick button:hover { border-color: var(--bd-gold); background: #1b1810; }
.bd-artpick span { display: block; aspect-ratio: 63 / 88; border-radius: 6px; overflow: hidden; background: #0a0a0a; }
.bd-artpick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-artpick i { font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: 1px; color: var(--bd-gold2); }
.bd-artpick b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the sidebar tile — a black product's gold (round 42's manner) */
#sidebar .sb-btn[data-nav="binder"] { background: #0e0e0e; border: 1px solid #5c5340; color: #d8c89a; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(171, 155, 111, .12); }
#sidebar .sb-btn[data-nav="binder"] .ico { color: #c9b98b; }
#sidebar .sb-btn[data-nav="binder"]:hover { background: #1a1710; border-color: #ab9b6f; color: #f1e6c8; }
#sidebar .sb-btn[data-nav="binder"].on { background: #ab9b6f; border-color: #d8c89a; color: #141414; box-shadow: 0 6px 16px rgba(171, 155, 111, .3); }
#sidebar .sb-btn[data-nav="binder"].on .ico { color: #141414; }
@media (max-width: 1500px) {
  .bd-body.binder { grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 10px; }
  .bd-body.shelf { grid-template-columns: minmax(0, 1fr) 300px; }
  .bd-row { height: 280px; } .bd-spine, .bd-ghost { height: 250px; }
}
/* ===== BINDERS · AI FULL-ART v2 (2026-10-20): the scene an image model paints around the page's cards ===== */
.bd-dlg.art2 { width: min(1040px, 95vw); }
.bd-ag { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.bd-agl { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; }
.bd-agr { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bd-ares { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: #0c0c0c; box-shadow: 0 0 0 1px #333, 0 14px 30px rgba(0,0,0,.55); }
.bd-ares.sch { background: #101010; }
.bd-ares .pic { position: absolute; max-width: none; display: block; }
.bd-ares .ld { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; letter-spacing: 1.4px; color: #9a9a9a; }
.bd-agrid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); }
.bd-agrid i { position: relative; display: block; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.bd-agrid i img { position: absolute; inset: 3%; width: 94%; height: 94%; object-fit: cover; border-radius: 3px; display: block; }
.bd-agrid i.art img { inset: 0; width: 100%; height: 100%; border-radius: 0; }
.bd-agrid i.cd { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.bd-agrid i.th::after { content: ''; position: absolute; inset: 1.5%; border-radius: 4px; box-shadow: 0 0 0 2px #d8c89a, 0 0 18px rgba(216,200,154,.55); }
.bd-agrid i.em { display: grid; place-items: center; font-style: normal; color: rgba(216,200,154,.45); font-size: 18px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px rgba(171,155,111,.28); }
.bd-agrid i em { position: absolute; inset: 8%; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #bbb; text-align: center; }
.bd-agrid i.hole { box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.bd-ares .spin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0,0,0,.55); font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #f1e2b4; }
.bd-ares .spin b, .bd-astate b.busy { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(216,200,154,.25); border-top-color: #d8c89a; animation: bdspin .9s linear infinite; }
.bd-astate b.busy { display: inline-block; width: 12px; height: 12px; border-width: 2px; vertical-align: -2px; margin-right: 7px; }
@keyframes bdspin { to { transform: rotate(360deg); } }
.bd-athumbs { display: flex; flex-wrap: wrap; gap: 7px; }
.bd-athumbs > span { position: relative; }
.bd-athumbs .t { position: relative; display: block; width: 52px; padding: 0; border: 0; border-radius: 5px; overflow: hidden; background: #0c0c0c; box-shadow: 0 0 0 1px #3a3a3a; cursor: pointer; }
.bd-athumbs .t img { position: absolute; max-width: none; }
.bd-athumbs .t.new { font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: #9a9a9a; }
.bd-athumbs .on .t { box-shadow: 0 0 0 2px #d8c89a; }
.bd-athumbs .x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid #555; background: #1b1b1b; color: #ccc; font-size: 9px; line-height: 16px; cursor: pointer; }
.bd-athumbs .x:hover { border-color: var(--bd-red); color: #fff; }
.bd-athemes { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-athemes button { width: 68px; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 8px; border: 1px solid #333; background: #111; color: #ddd; cursor: pointer; }
.bd-athemes button:hover { border-color: #8f8f8f; }
.bd-athemes button.on { border-color: #d8c89a; background: #1b1810; box-shadow: 0 0 12px rgba(216,200,154,.25); }
.bd-athemes span { display: block; aspect-ratio: 63 / 88; border-radius: 4px; overflow: hidden; background: #0a0a0a; }
.bd-athemes img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-athemes b { font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.bd-f > i em { font-style: normal; font-weight: 500; letter-spacing: .4px; color: #6f6f6f; text-transform: lowercase; }
.bd-f textarea { min-height: 54px; resize: vertical; border-radius: 8px; border: 1px solid #4a4a4a; background: var(--bd-box, #121212); color: #fff; padding: 8px 10px; font: inherit; font-size: 13px; line-height: 1.4; }
.bd-f textarea:focus { outline: none; border-color: var(--bd-red); box-shadow: 0 0 0 2px rgba(220,79,76,.2); }
.bd-astate { margin: 0; min-height: 18px; font-size: 12px; line-height: 1.45; color: #bdbdbd; }
.bd-astate > b:not(.busy) { color: #fff; }
.bd-astate .bad { color: #ff9a96; }
.bd-astate .warn { color: #e6cf8a; }
.bd-aacts { display: flex; gap: 10px; }
.bd-aacts .bd-btn { flex: 1 1 0; }
.bd-aalt { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #262626; font-size: 11.5px; color: #8f8f8f; }
.bd-dlg.art .bd-dh .bd-btn.sm { margin-right: 4px; }
@media (max-width: 900px) { .bd-ag { grid-template-columns: minmax(0, 1fr); } .bd-agl { position: static; max-width: 340px; margin: 0 auto; width: 100%; } }
/* ===== ROUND 138 · BINDERS — THE HUNT (operator 2026-10-20): ✦ PLAN A HUNT (by set / by character), the budget, MARK AS DONE =====
   The planner is a wide dialog: the goal on the left, the cards found on the right with their market estimate and the
   binder they go into; a binder's hunt shows on its left panel (done / to hunt / spent), a hunted card wears a green tick. */
.bd-dlg.plan { width: min(1260px, 96vw); height: min(880px, 92vh); max-height: none; overflow: hidden; }
.bd-dhs { font-size: 11.5px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bd-pg { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 404px minmax(0, 1fr); gap: 18px; }
.bd-pgl { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
.bd-pgr { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.bd-seg2 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 11px; background: #121212; border: 1px solid var(--bd-line); flex: none; }
.bd-seg2 button { height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #bdbdbd; font: 800 10.5px/1 var(--rep-font); letter-spacing: 1.3px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-seg2 button:hover { color: #fff; }
.bd-seg2 button.on { background: linear-gradient(180deg, #e3605d, #c43f3c); color: #fff; }
.bd-seg2.sm { padding: 3px; border-radius: 9px; }
.bd-seg2.sm button { height: 24px; font-size: 9.5px; padding: 0 10px; border-radius: 6px; }
.bd-f2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.bd-f3 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: 8px; }
.bd-f2 select, .bd-f3 select, .bd-pgl .bd-f select { width: 100%; min-width: 0; }
.bd-plchars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bd-plchars button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 5px; border-radius: 10px; border: 1px solid #2c2c2c; background: #121212; color: #cfcfcf;
  cursor: pointer; min-width: 0; }
.bd-plchars button > span { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #1d1d1d; box-shadow: 0 0 0 1px #333; display: grid; place-items: center; }
.bd-plchars button > span img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-plchars button > span i { font-style: normal; font-size: 12px; font-weight: 800; color: #8f8f8f; }
.bd-plchars button b { font: 700 9.5px/1.1 var(--rep-font-sc); font-stretch: 87.5%; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-plchars button:hover { border-color: #555; }
.bd-plchars button.on { border-color: var(--bd-red); background: #2a1513; color: #fff; }
.bd-plchars button.on > span { box-shadow: 0 0 0 2px var(--bd-red); }
.bd-plhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: end; padding: 10px 14px; border-radius: 12px; background: #111; border: 1px solid var(--bd-line); flex: none; }
.bd-plcount { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bd-plcount b { font-size: 26px; line-height: 1; font-weight: 800; white-space: nowrap; }
.bd-plcount i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-plcount.gold b { color: var(--bd-gold2); }
.bd-plbud { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.bd-plbud > i { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: #8f8f8f; }
.bd-plbar { height: 4px; border-radius: 2px; background: #222; overflow: hidden; flex: none; }
.bd-plbar i { display: block; height: 100%; background: var(--bd-gold); transition: width .3s; }
.bd-pgr > .bd-hint { flex: none; }
.bd-pgr > .bd-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.bd-empty.bad { color: #ffb3b0; border-color: #5a2321; }
.bd-empty.ok { color: #7ED4A6; border-color: #2f6b4d; }
.bd-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #333; border-top-color: var(--bd-gold2); animation: bdSpin .9s linear infinite; }
@keyframes bdSpin { to { transform: rotate(360deg); } }
.bd-pllist { list-style: none; margin: 0; padding: 0 4px 0 0; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.bd-pllist li.grp { position: sticky; top: 0; z-index: 1; flex: none; padding: 6px 9px; border-radius: 7px; background: #1b1810; border: 1px solid #3d3626; color: var(--bd-gold2);
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; display: flex; gap: 8px; }
.bd-pllist li.grp em { font-style: normal; color: #9a9a9a; }
.bd-plr { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 8px; background: #141414; border: 1px solid #242424; flex: none; }
.bd-plr:hover { border-color: #3a3a3a; }
.bd-plr .n { width: 28px; flex: none; text-align: right; font-size: 10px; color: #6f6f6f; font-variant-numeric: tabular-nums; }
.bd-plr .bd-thumb { width: 28px; height: 39px; }
.bd-plr .bd-st b u { text-decoration: none; font-weight: 500; color: #9a9a9a; margin-left: 4px; }
.bd-pe { flex: none; min-width: 78px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--bd-gold2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-pe em { font-style: normal; font-size: 9.5px; font-weight: 600; color: #6f6f6f; letter-spacing: .4px; }
.bd-pe em.w { color: #8a7d55; }
.bd-x2 { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #9a9a9a; cursor: pointer; font-size: 10px; }
.bd-x2:hover { border-color: var(--bd-red); color: #fff; }
.bd-plfoot { flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--bd-line); }
.bd-plnew { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: end; }
.bd-plfoot .bd-hint b, .bd-hunt .bd-fine b { color: #fff; }
/* a binder's hunt */
.bd-hunt { border-color: #3d3626; background: linear-gradient(180deg, #1a1710, #141310); }
.bd-hunt .bd-h { color: var(--bd-gold2); }
.bd-hbar { height: 6px; border-radius: 3px; background: #262626; overflow: hidden; }
.bd-hbar i { display: block; height: 100%; background: linear-gradient(90deg, #5fbf8a, #7ED4A6); }
.bd-hfig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.bd-hfig span { display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border-radius: 8px; background: #0f0f0d; border: 1px solid #2a2720; min-width: 0; }
.bd-hfig i { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 1.2px; color: #8f8f8f; }
.bd-hfig b { font-size: 16px; line-height: 1; color: var(--bd-gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-hfig span + span b { color: #fff; }
.bd-hfig em { font-style: normal; font-size: 9.5px; line-height: 1.3; color: #8a8a8a; }
.bd-hunt .bd-plbud { flex-direction: row; align-items: center; justify-content: space-between; }
.bd-done { position: absolute; top: 5%; left: 6%; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: #7ED4A6; color: #0d1a12;
  font: 900 11px/18px var(--rep-font); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.65); pointer-events: none; }
.bd-spbar.h i { background: #7ED4A6; }
.bd-sphunt { font: 800 9px/1 var(--rep-font); letter-spacing: .5px; opacity: .85; }
.bd-hlhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 2px 2px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: #bdbdbd; }
.bd-hlhead b { font-size: 14px; color: #fff; }
.bd-hlhead em { font-style: normal; color: var(--bd-gold2); }
.bd-hlhead i { font-style: normal; font-weight: 500; color: #7a7a7a; letter-spacing: 0; }
.bd-hsort { display: flex; align-items: center; gap: 4px; }
.bd-hsort .bd-chip { height: 24px; font-size: 9.5px; padding: 0 8px; }
.bd-hl { display: flex; flex-direction: column; gap: 6px; }
.bd-sa > b.pe { font-size: 12.5px; letter-spacing: 0; color: var(--bd-gold2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bd-sa > b.pe.w { font-size: 9px; font-weight: 600; color: #7a7a7a; }
.bd-inscard em.done { color: #7ED4A6; }
.bd-inscard em.est { color: var(--bd-gold2); font-weight: 700; }
/* MARK AS DONE */
.bd-dlg.done { width: min(660px, 94vw); }
.bd-dncard { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #111; border: 1px solid var(--bd-line); }
.bd-dncard .bd-st b { font-size: 14px; }
.bd-dncard .bd-st em.est { color: var(--bd-gold2); }
.bd-dngrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.bd-dngrid .wide { grid-column: 1 / -1; }
.bd-dngrid input[type="date"] { color-scheme: dark; }
.bd-paid { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 6px; }
.bd-paid select { width: 100%; }
/* FIND THE CARDS stays in view while the goal's column scrolls */
.bd-pgl > [data-pl="find"] { position: sticky; bottom: 0; z-index: 2; flex: none; box-shadow: 0 -14px 14px -4px #151515; }
@media (max-height: 820px) { .bd-plchars button > span { width: 34px; height: 34px; } .bd-plchars button { padding: 4px 2px 4px; gap: 3px; } .bd-pgl { gap: 9px; } }
/* a laptop's height (1366 × 768): the shelf's stories lower so the page does not scroll */
@media (max-height: 820px) { .bd-row { height: 238px; padding-top: 10px; } .bd-spine, .bd-ghost { height: 216px; } .bd-spine { gap: 7px; padding-top: 10px; } }
@media (max-width: 1100px) { .bd-pg { grid-template-columns: 340px minmax(0, 1fr); } .bd-plchars { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bd-plnew { grid-template-columns: minmax(0, 1fr); } }


/* ROUND 141 · SHARE THIS BINDER (js/binder.js) — the dialog and the shelf's mark; the share sheet itself is css/share.css */
.bd-dlg.share { width: min(620px, 94vw); }
.bd-shlist { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: #bdbdbd; line-height: 1.45; }
.bd-shlink { display: flex; gap: 8px; align-items: center; }
.bd-shlink input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid #3c3c3c; background: #0e0e0e; color: #e6e6e6; font: 600 13.5px/1 var(--rep-font); }
.bd-shlink .bd-btn { height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.bd-shmeta { margin: 0; font-size: 12px; color: #9a9a9a; line-height: 1.5; }
.bd-shmeta b { color: #e6cf8a; font-weight: 700; }
.bd-shgo { width: 100%; }
.bd-btn.gold.hot { box-shadow: 0 0 0 2px rgba(216, 200, 154, .45), 0 0 16px rgba(216, 200, 154, .35); }
.bd-shstate { margin: 0; min-height: 16px; font-size: 12px; color: #bdbdbd; }
.bd-shstate.ok { color: #7ED4A6; }
.bd-shstate.bad { color: #ff9a96; }
.bd-shstate.warn { color: #e6cf8a; }
.bd-shbtn i { font-style: normal; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: #141414; color: #e6cf8a; font-size: 9px; letter-spacing: 1px; }
.bd-spshare { position: absolute; top: -8px; left: -6px; width: 20px; height: 20px; border-radius: 10px; background: var(--bd-red); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.5); }

/* ROUND 142 · BLACKBINDER (js/binder.js) — the stage's BLACKLENS backdrop, FILL THIS BINDER, the planner's characters,
   RAW budgets, a dialog's buttons one height, the full-card preview above the dialogs */
.bd-brand b u { text-decoration: none; color: var(--bd-red); }
.bd-stage { position: relative; isolation: isolate; border-radius: 18px;
  background: radial-gradient(55% 50% at 50% 46%, rgba(220,79,76,.11), rgba(220,79,76,0) 72%), radial-gradient(95% 85% at 50% 42%, #1d1d1d 0%, #0f0f0f 58%, #080808 100%);
  box-shadow: inset 0 0 0 1px #252525, inset 0 0 90px rgba(0,0,0,.65); }
/* the studio's camera grid, fading to the edges */
.bd-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px; background-position: center center;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 50%, #000 35%, transparent 100%); }
/* the viewfinder's red corners and the wordmark */
.bd-stage::after { content: 'BLACKLENS  ·  BLACKBINDER'; position: absolute; inset: 0; z-index: -1; pointer-events: none; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 7px; font: 800 9px/1 var(--rep-font); letter-spacing: 3.2px; color: rgba(255,255,255,.2);
  background:
    linear-gradient(var(--bd-red), var(--bd-red)) left 12px top 12px / 30px 2px no-repeat, linear-gradient(var(--bd-red), var(--bd-red)) left 12px top 12px / 2px 30px no-repeat,
    linear-gradient(var(--bd-red), var(--bd-red)) right 12px top 12px / 30px 2px no-repeat, linear-gradient(var(--bd-red), var(--bd-red)) right 12px top 12px / 2px 30px no-repeat,
    linear-gradient(var(--bd-red), var(--bd-red)) left 12px bottom 12px / 30px 2px no-repeat, linear-gradient(var(--bd-red), var(--bd-red)) left 12px bottom 12px / 2px 30px no-repeat,
    linear-gradient(var(--bd-red), var(--bd-red)) right 12px bottom 12px / 30px 2px no-repeat, linear-gradient(var(--bd-red), var(--bd-red)) right 12px bottom 12px / 2px 30px no-repeat; }
.bd-stage .bd-book { z-index: 1; }
/* FILL THIS BINDER */
.bd-btn.bd-fillbtn { height: auto; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 12px; }
.bd-fillbtn b { font: 800 15px/1.1 var(--rep-font); letter-spacing: 1.8px; }
.bd-fillbtn i { font-style: normal; font-size: 10.5px; letter-spacing: .6px; color: #c9b98b; text-transform: none; }
/* a dialog's buttons one height */
.bd-dfoot .bd-btn { height: 42px; }
/* RAW budgets — a label, no switch */
.bd-plbud.raw { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bd-plbud.raw b { padding: 5px 12px; border-radius: 8px; background: #2a1513; border: 1px solid var(--bd-red); color: #fff; font: 800 11px/1 var(--rep-font); letter-spacing: 1.4px; }
/* the planner's characters */
.bd-plcp { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid #2c2c2c; background: #121212; }
.bd-plcs input { width: 100%; }
.bd-plsug { display: flex; flex-direction: column; gap: 3px; }
.bd-plsug:empty { display: none; }
.bd-plsug button { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid #333; background: #1a1a1a; color: #eee; cursor: pointer; text-align: left; }
.bd-plsug button:hover, .bd-plsug button:focus-visible { border-color: var(--bd-gold); background: #201d15; }
.bd-plsug button > span { flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #2b2b2b; display: grid; place-items: center; }
.bd-plsug button > span img { width: 100%; height: 100%; object-fit: cover; }
.bd-plsug button > span i { font-style: normal; font-size: 9px; font-weight: 800; color: #bbb; }
.bd-plsug b { font-size: 12.5px; font-weight: 700; }
.bd-plsug u { text-decoration: none; font-size: 11px; color: #9a9a9a; }
.bd-plsug button.free b { color: var(--bd-gold2); }
.bd-plpicks { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-plpicks span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 4px; border-radius: 15px; background: #2a1513; border: 1px solid var(--bd-red); }
.bd-plpicks img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.bd-plpicks b { font-size: 11.5px; font-weight: 700; padding-left: 4px; }
.bd-plpicks button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #ffb3b0; font-size: 10px; cursor: pointer; }
.bd-plpicks button:hover { background: var(--bd-red); color: #fff; }
.bd-plpop > i { display: block; margin-bottom: 6px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: 1.4px; color: #8f8f8f; }
/* the full-card preview rides above the dialogs here */
body:has(#view-binder.active) .peek-pop { z-index: 9300; }

/* ============================================================================================================
   ROUND 143 · BLACKBINDER — THE SEARCH MODULE IN FIND AND IN PLAN A HUNT (operator 2026-10-20: 'Plan a Hunt filtered
   exactly like the Search Module, cards added one by one while the results are open · BY SET · BY CHARACTER · BY
   CARDS · FIND in the same format, RAW only, a compact version · the section collapsable · the buttons under IN THIS
   BINDER, bigger · a card in a pocket leads to its row on the HUNT LIST · the pocket shows the full card').
   js/searchbox.js writes ADD A CARD's markup; #view-binder joined the round-98 host lists, the rules below lay it out
   in one narrow column.
   ============================================================================================================ */
#view-binder { --pf-panel: #171717; --pf-line: #262626; --pf-ctl-line: #2c2c2c; --pf-ink: #f2f2f2; --pf-ink2: #bdbdbd; --pf-ink3: #8f8f8f; }
/* ---- the compact module: CARD TYPE · LANGUAGE · FIND BY · NAME / CARD # · SET NAME · YEAR | RARITY · SEARCH ---- */
#view-binder .pf-sform.bd-sform { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; align-items: end; margin: 0; }
#view-binder .pf-sform.bd-sform > .pf-stogs { display: contents; }
#view-binder .pf-sform.bd-sform > *, #view-binder .pf-sform.bd-sform > .pf-stogs > .pf-stog { grid-column: 1 / -1; }
#view-binder .pf-sform.bd-sform > label.game { order: 1; }
#view-binder .pf-sform.bd-sform > .pf-stogs > .pf-stog:has([data-chips$="-lang"]) { order: 2; }
#view-binder .pf-sform.bd-sform > .pf-stogs > .pf-stog:has([data-chips$="-mode"]) { order: 3; }
#view-binder .pf-sform.bd-sform > label.q { order: 4; }
#view-binder .pf-sform.bd-sform > label.set { order: 5; }
#view-binder .pf-sform.bd-sform > label.year { order: 6; grid-column: span 3; }
#view-binder .pf-sform.bd-sform > label.rar { order: 7; grid-column: span 3; }
#view-binder .pf-sform.bd-sform > .pf-go { order: 8; }
#view-binder .pf-sform.bd-sform > label.half { grid-column: span 3; }
#view-binder .pf-sform.bd-sform > label.third { grid-column: span 2; }
#view-binder .pf-sform.bd-sform > label.full { grid-column: 1 / -1; }
#view-binder .pf-sform.bd-sform .pf-stog { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: nowrap; margin: 0; min-width: 0; }
#view-binder .pf-sform.bd-sform .pf-stog > i { flex: 0 0 62px; }
#view-binder .pf-sform.bd-sform .pf-stogset { flex: 1 1 auto; flex-wrap: wrap; gap: 5px; }
body:not(.mv) #view-binder .pf-sform.bd-sform .pf-stogset .pf-chip.sm { height: 28px; padding: 0 10px; font-size: 10.5px; letter-spacing: .6px; }
body:not(.mv) #view-binder .pf-sform.bd-sform .pf-stog:has([data-chips$="-mode"]) .pf-chip.sm { height: 28px; padding: 0 12px; font-size: 10.5px; border-radius: 8px; }
body:not(.mv) #view-binder .pf-sform.bd-sform > label:not(.chipped) { min-height: 42px; padding: 4px 9px 4px 10px; font-size: 12.5px; }
body:not(.mv) #view-binder .pf-sform.bd-sform > label:not(.chipped) > i { font-size: 8px; }
body:not(.mv) #view-binder .pf-sform.bd-sform > label > select, body:not(.mv) #view-binder .pf-sform.bd-sform > label input { font-size: 12.5px; }
body:not(.mv) #view-binder .pf-sform.bd-sform { --hand-w: 24px; --hand-h: 24px; }
body:not(.mv) #view-binder .pf-sform.bd-sform .pf-go { height: 42px; width: 100%; justify-content: center; }
body:not(.mv) #view-binder .pf-sform.bd-sform .pf-go > svg { width: 26px; height: 26px; padding: 5px; }
#view-binder .bd-snoterow { flex-wrap: wrap; row-gap: 6px; margin: 4px 0 2px; }
#view-binder .bd-snoterow .pf-snote { flex: 1 1 100%; font-size: 11.5px; color: #9a9a9a; line-height: 1.4; }
#view-binder .bd-snoterow .pf-ssort { flex-wrap: wrap; }
body:not(.mv) #view-binder .bd-snoterow .pf-ssort button { height: 26px; padding: 0 10px; font-size: 10px; }
.bd-fsb, .bd-pcsb { flex: none; display: flex; flex-direction: column; gap: 4px; }
/* ---- FIND's results: the card's lines, its RAW value and SEEK ---- */
.bd-li.bd-frow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.bd-frow .bd-thumb { width: 40px; height: 56px; }
.bd-frow .cl5.bd-fcl { min-width: 0; font-size: 11px; line-height: 1.3; }
.bd-frow .cl5.bd-fcl .l-name b { font-size: 12.5px; }
.bd-fside { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.bd-fraw { font-size: 12.5px; font-weight: 800; color: var(--bd-gold2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-fraw::before { content: 'RAW '; font-size: 8.5px; font-weight: 700; letter-spacing: 1px; color: #8a7d55; }
.bd-fraw em { font-style: normal; font-size: 10px; font-weight: 600; color: #6f6f6f; }
.bd-fraw em.w { color: #8a7d55; }
.bd-fside em.got { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .8px; color: #7ED4A6; }
.bd-fside .bd-btn.sm { height: 28px; padding: 0 13px; font-size: 10px; }
/* ---- the planner: three modes, the list's filter + sort, ADD on every row ---- */
.bd-seg2.n3 button { font-size: 10px; letter-spacing: 1px; }
.bd-plform { flex: none; }
.bd-plfilt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none; }
.bd-plfilt .bd-search { flex: 1 1 220px; min-width: 0; }
.bd-plfilt .bd-search input { height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid #3f3f3f; background: linear-gradient(180deg, #111, #171717); color: #f2f2f2; font: 500 12.5px var(--rep-font); box-shadow: inset 0 2px 4px rgba(0,0,0,.45); }
.bd-plfilt .bd-search input:focus { outline: none; border-color: var(--bd-red); box-shadow: inset 0 2px 4px rgba(0,0,0,.45), 0 0 0 2px rgba(220,79,76,.22); }
.bd-plsort { flex: none; }
.bd-plr .bd-pladd { flex: none; height: 26px; padding: 0 12px; font-size: 10px; letter-spacing: 1.2px; }
.bd-pladded { flex: none; min-width: 64px; height: 26px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 7px; border: 1px solid #2f6b4d; background: #10251a; color: #7ED4A6; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; white-space: nowrap; }
.bd-plr.added { border-color: #24402f; background: #111a14; }
.bd-plr.added .bd-thumb { opacity: .8; }
.bd-plnone { padding: 18px; text-align: center; color: #8a8a8a; font-size: 12px; }
.bd-plmore { flex: none; margin-top: 0; }
/* ---- the left side: the cards fold to their heads; the buttons under IN THIS BINDER, bigger ---- */
.bd-card.bd-fold { gap: 0; }
.bd-fh { width: 100%; padding: 0; margin: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: 2px; color: #ffb3b0; display: flex; align-items: center; gap: 8px; }
.bd-fh > span { flex: none; }
.bd-fh > i { flex: 1 1 auto; min-width: 0; font-style: normal; font-weight: 600; letter-spacing: 1px; color: #7f7f7f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-fh > .chev { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #cfcfcf; font-size: 11px; transition: transform .15s; }
.bd-fh:hover > .chev { border-color: var(--bd-red); color: #fff; }
.bd-fh:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.bd-fold > .bd-fb { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bd-fold.folded > .bd-fb { display: none; }
.bd-fold.folded > .bd-fh > .chev { transform: rotate(-90deg); }
.bd-fold:not(.folded) > .bd-fh > i { visibility: hidden; }
.bd-btn.bd-fillbtn { min-height: 62px; }
.bd-fillbtn b { font-size: 16px; }
.bd-fillbtn i { font-size: 11px; }
#bd-left > .bd-btn.bd-shbtn, #bd-left > .bd-btn.bd-delbtn { height: 44px; font-size: 11.5px; letter-spacing: 1.6px; flex: none; }
/* a row the binder points to: lit for a moment */
#view-binder .bd-li.hot, #view-binder .bd-seekrow.hot, #view-binder [data-hk].hot { border-color: var(--bd-gold2) !important; box-shadow: 0 0 0 2px rgba(216, 200, 154, .45), 0 0 18px rgba(216, 200, 154, .3); background: #1d1a12; transition: box-shadow .3s; }
/* ---- a pocket shows the whole card: the card's box is 63 : 88 inside each pocket make, the picture contained ---- */
.bd-pk { --inx: 1.923%; --iny: 1.456%; }
.bd-pk.pk-saver { --inx: 8.333%; --iny: 6.897%; }
.bd-pk.pk-toploader { --inx: 5.357%; --iny: 4.128%; }
.bd-pk.pk-sleeve { --inx: 1.923%; --iny: 1.456%; }
.bd-sleeve { inset: var(--iny) var(--inx); }
.bd-cd img { object-fit: contain; border-radius: 3px; }
.bd-pk.art .bd-cd img { object-fit: cover; }
.bd-rib { left: 50%; right: auto; bottom: 1px; transform: translateX(-50%); padding: 2px 7px; border-radius: 5px; font-size: 7.5px; letter-spacing: 1.1px; z-index: 2; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); white-space: nowrap; }
/* the module's tokens on the whole page (the SORT pills and the list's filter sit outside the form) */
body:not(.mv) #view-binder {
  --ctl-bg: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%); --ctl-bg-hi: linear-gradient(180deg, #333 0%, #262626 100%);
  --ctl-line: #575757; --ctl-line-hi: #8f8f8f; --ctl-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45);
  --well-bg: linear-gradient(180deg, #111 0%, #171717 100%); --well-line: #3f3f3f; --well-shadow: inset 0 2px 4px rgba(0, 0, 0, .45);
  --cap: #f07a77; --cap-hi: #ff9b98; --hand: var(--accent); --hand-hi: #e8625f; --focus: var(--accent); --focus-glow: rgba(220, 79, 76, .22);
  --pick-bg: linear-gradient(180deg, #e25a57 0%, #d04744 100%); --pick-line: #e86b68; --pick-ink: #fff;
  --pick-glow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 12px rgba(220, 79, 76, .38); }

/* ============================================================================================================
   ROUND 144 · THE SHELF — FOURTEEN STYLES WITH RARITIES, TWO SECRET SHELVES, THE ROOM BEHIND IT, THE MEMBERSHIP PLATE
   (operator 2026-10-20: 'at least 10 shelf types; a secret shelf once the top row is full, the next once the bottom row
   is full, glowing with the binders owned or made for hunting; the BLACKLENS Membership# on an engraved metal plate at
   the top right with a realistic logo; a more realistic shelf; a full binder glows and its name glitters gold; the
   background behind the shelf by AI or an uploaded photo; Harry-Potter-like libraries, cyberpunk shelves, rarities').
   The materials are gradients over SVG noise (js/binder.js texCss: --tx-grainH/V wood grain, --tx-brushH/V brushed
   metal, --tx-marble gold veins, --tx-velvet, --tx-frost, --tx-fine) so they stay sharp at any resolution.
   Each style sets its materials as variables on .bd-room / .bd-stsw / .bd-bgpv (.st-<style>).
   ============================================================================================================ */
@property --bdA { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bd-body.shelf { align-items: stretch; }
.bd-shelfcol { align-self: stretch; }
/* ---- the room ---- */
.bd-room { position: relative; isolation: isolate; width: 100%; min-height: calc(100vh - 168px); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 88px 26px 18px; border-radius: 14px; overflow: hidden; background: var(--room, #080808); box-shadow: inset 0 0 0 1px #242424; }
.bd-roombg { position: absolute; inset: calc(-2.5 * var(--bg-blur, 0px)); z-index: -2; background: center / cover no-repeat; filter: blur(var(--bg-blur, 0px)); }
.bd-room::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(0, 0, 0, var(--bg-dim, .45)); opacity: 0; }
.bd-room.has-bg::before { opacity: 1; }
.bd-room::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 42%, transparent 48%, rgba(0, 0, 0, .7) 100%), linear-gradient(180deg, transparent 74%, rgba(0, 0, 0, .5)); }
.bd-room > .bd-note { color: rgba(242, 242, 242, .62); text-shadow: 0 1px 3px #000; text-align: center; max-width: 760px; }
.bd-room > .bd-note b { color: var(--aura-ink, #fff); }
/* ---- the shelf's frame ---- */
.bd-room .bd-shelf { position: relative; padding: 0 28px 0; border-radius: 10px 10px 6px 6px; background: var(--wall);
  box-shadow: 0 46px 60px -20px rgba(0, 0, 0, .8), 0 18px 34px rgba(0, 0, 0, .55), inset 0 0 90px rgba(0, 0, 0, .55); }
.bd-room .bd-shelf::before, .bd-room .bd-shelf::after { width: 28px; border-radius: 7px; z-index: 2; background: var(--txv, none), var(--post);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 3px 0 6px rgba(255, 255, 255, .06), inset -6px 0 10px rgba(0, 0, 0, .45); }
.bd-room .bd-crown { height: 60px; margin: 0 -28px; border-radius: 10px 10px 0 0; z-index: 3; background: var(--txh, none), var(--top);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 var(--trim, rgba(0, 0, 0, .25)), inset 0 -10px 0 -6px rgba(0, 0, 0, .35); }
.bd-room .bd-crown::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--trim, rgba(255, 255, 255, .08)); opacity: .55; }
.bd-room .bd-row { position: relative; background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 20%), radial-gradient(70% 60% at 50% 0%, var(--light, rgba(255, 255, 255, .1)), transparent 78%), var(--wall); }
.bd-room .bd-row::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.bd-room .bd-plank { height: 24px; z-index: 3; background: var(--txh, none), var(--plank);
  box-shadow: 0 12px 16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 2px 0 var(--trim, transparent), inset 0 -6px 0 rgba(0, 0, 0, .28); }
.bd-base { position: relative; height: 18px; margin: 0 -28px; z-index: 3; border-radius: 0 0 8px 8px; background: var(--txh, none), var(--plinth, var(--plank)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 26px rgba(0, 0, 0, .7); }
.bd-base::after { content: ''; position: absolute; left: 6%; right: 6%; top: 100%; height: 26px; background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, .75), transparent 70%); pointer-events: none; }
/* the crest in the cornice's middle */
.bd-crest { position: absolute; left: 50%; top: -34px; width: 64px; height: 38px; transform: translateX(-50%); z-index: 1; }
.bd-crest::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -3px; height: 5px; border-radius: 3px 3px 0 0; background: var(--top); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 -1px 0 rgba(0, 0, 0, .3); }
.bd-crest svg { width: 100%; height: 100%; fill: var(--crest, #e3bd62); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35)) drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.bd-crest svg .b { opacity: .85; }
/* ---- the spines: bookcloth over the cover colour, foil rules ---- */
.bd-room .bd-spine { background: linear-gradient(180deg, transparent 20px, rgba(216, 200, 154, .55) 20px 21px, transparent 21px, transparent calc(100% - 22px), rgba(216, 200, 154, .45) calc(100% - 22px) calc(100% - 21px), transparent calc(100% - 21px)),
  var(--tx-cloth), linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(255, 255, 255, .14) 15%, rgba(255, 255, 255, 0) 32%, rgba(0, 0, 0, .06) 68%, rgba(0, 0, 0, .52)), var(--cv);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 5px 0 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .18); }
.bd-spname em { font-style: normal; }
/* ---- a FULL binder: a golden aura, its name glittering ---- */
.bd-spine.full { animation: bdFullGlow 2.8s ease-in-out infinite; z-index: 1; }
@keyframes bdFullGlow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 216, 128, .75), 0 0 14px 2px rgba(255, 204, 92, .5), 0 0 34px 6px rgba(255, 170, 40, .25), 5px 0 12px rgba(0, 0, 0, .4); }
  50% { box-shadow: 0 0 0 1px rgba(255, 236, 170, .95), 0 0 22px 5px rgba(255, 214, 110, .75), 0 0 56px 14px rgba(255, 170, 40, .4), 5px 0 12px rgba(0, 0, 0, .4); } }
.bd-spine.full .bd-spname { border-color: rgba(255, 220, 140, .65); background: rgba(0, 0, 0, .35); }
.bd-spine.full .bd-spname em { background: linear-gradient(100deg, #8a6a24 0%, #f9e6a6 18%, #c9973a 34%, #fffbe2 50%, #b8862e 64%, #f3d98c 82%, #8a6a24 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bdGoldText 3.4s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 214, 120, .55)); }
@keyframes bdGoldText { to { background-position: -260% 0; } }
.bd-spglit { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bd-spglit i { position: absolute; width: 9px; height: 9px; background: #fffbe8; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 3px #ffd36b); opacity: 0; animation: bdSpark 2.4s ease-in-out infinite; }
.bd-spglit i:nth-child(1) { left: 16%; top: 24%; animation-delay: 0s; }
.bd-spglit i:nth-child(2) { right: 14%; top: 42%; animation-delay: .7s; width: 7px; height: 7px; }
.bd-spglit i:nth-child(3) { left: 22%; top: 60%; animation-delay: 1.3s; width: 6px; height: 6px; }
.bd-spglit i:nth-child(4) { right: 18%; top: 74%; animation-delay: 1.9s; }
@keyframes bdSpark { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 70% { opacity: .2; transform: scale(.5) rotate(70deg); } }
.bd-spfull { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 3px 7px; border-radius: 5px; z-index: 3;
  background: linear-gradient(180deg, #fff1b8, #d9a940 55%, #a87a22); color: #2a1a04; font: 800 8px/1 var(--rep-font); letter-spacing: 1.4px; box-shadow: 0 0 10px rgba(255, 200, 90, .7), 0 1px 2px rgba(0, 0, 0, .6); }
/* ---- the BLACKLENS membership plate, top right ---- */
.bd-plate { --pm1: #f4f6f8; --pm2: #c3c9cf; --pm3: #8b939a; --ink: rgba(22, 26, 30, .8); --hi: rgba(255, 255, 255, .7);
  position: absolute; top: 9px; right: 40px; z-index: 4; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 15px 0 14px; box-sizing: border-box; border-radius: 3px;
  background: var(--tx-brushH), linear-gradient(180deg, var(--pm1) 0%, var(--pm2) 46%, var(--pm3) 54%, var(--pm2) 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .65), 0 5px 12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .3); }
.bd-plate::after { content: ''; position: absolute; inset: 3px; border-radius: 2px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 1px 0 rgba(255, 255, 255, .25); }
.bd-plate.m-gold { --pm1: #fff3c4; --pm2: #d9b260; --pm3: #9a7426; --ink: rgba(62, 40, 6, .84); --hi: rgba(255, 246, 210, .72); }
.bd-plate.m-brass { --pm1: #f1d9a0; --pm2: #b58f48; --pm3: #7d5f27; --ink: rgba(48, 30, 6, .84); --hi: rgba(255, 238, 196, .6); }
.bd-plate.m-black { --pm1: #3e3e3e; --pm2: #1e1e1e; --pm3: #101010; --ink: #d8c89a; --hi: rgba(0, 0, 0, .7); }
.bd-plate.m-chrome { --pm1: #ffffff; --pm2: #b9c2cb; --pm3: #3d454e; --ink: rgba(14, 18, 24, .82); --hi: rgba(255, 255, 255, .75);
  background: var(--tx-brushH), linear-gradient(180deg, #fbfdff 0%, #d3dae1 38%, #4d565f 50%, #8c96a0 62%, #e9eef3 100%); }
.bd-plate.m-silver { --pm1: #f6f8fa; --pm2: #c6ccd2; --pm3: #8d959c; }
.st-blacklens .bd-plate { --ink: #ef5c59; }
.bd-plogo { flex: none; width: 27px; height: 27px; background: var(--ink); -webkit-mask: url(../assets/logo-mark.svg) center / contain no-repeat; mask: url(../assets/logo-mark.svg) center / contain no-repeat;
  filter: drop-shadow(0 1px 0 var(--hi)); }
.bd-pdiv { flex: none; width: 1px; align-self: stretch; margin: 9px 0; background: var(--ink); opacity: .35; box-shadow: 1px 0 0 var(--hi); }
.bd-ptx { display: flex; flex-direction: column; gap: 2px; line-height: 1; color: var(--ink); text-shadow: 0 1px 0 var(--hi), 0 -1px 0 rgba(0, 0, 0, .15);
  font-family: var(--rep-font-sc); font-stretch: 87.5%; white-space: nowrap; }
.bd-ptx b { font-size: 9.5px; font-weight: 800; letter-spacing: 3.2px; }
.bd-ptx b i { font-style: normal; font-weight: 600; letter-spacing: 2px; opacity: .8; margin-left: 2px; }
.bd-ptx em { font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: 1.8px; font-variant-numeric: tabular-nums; }
.bd-ptx small { font-size: 7px; font-weight: 700; letter-spacing: 1.5px; opacity: .85; }
.bd-plate .sc { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 .7px, var(--pm2) 1.6px, var(--pm3) 3px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .25); }
.bd-plate .sc::after { content: ''; position: absolute; left: .5px; right: .5px; top: 2px; height: 1px; background: rgba(0, 0, 0, .55); transform: rotate(var(--r, 30deg)); }
.bd-plate .sc.a { left: 4px; top: 4px; --r: 32deg; } .bd-plate .sc.b { right: 4px; top: 4px; --r: -24deg; }
.bd-plate .sc.c { left: 4px; bottom: 4px; --r: 74deg; } .bd-plate .sc.d { right: 4px; bottom: 4px; --r: 8deg; }
/* ---- what moves ---- */
.bd-fx { position: absolute; pointer-events: none; z-index: 6; }
.bd-fx.candles { left: 40px; right: 40px; top: -78px; height: 70px; }
.bd-fx.candles i { position: absolute; top: var(--y, 0); width: 9px; height: 30px; margin-left: -4px; border-radius: 2px; background: linear-gradient(90deg, #cdbd95, #fff6dc 45%, #c2b089);
  box-shadow: 0 0 16px rgba(255, 196, 110, .25); animation: bdFloat 6.5s ease-in-out infinite; animation-delay: calc(-1 * var(--d, 0s)); }
.bd-fx.candles i::after { content: ''; position: absolute; left: 50%; top: -2px; width: 1px; height: 4px; background: #2a2016; }
.bd-fx.candles b { position: absolute; left: 50%; top: -15px; width: 8px; height: 14px; margin-left: -4px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff 0 16%, #ffe08a 36%, #ff9a2a 66%, rgba(255, 90, 0, 0) 74%); box-shadow: 0 0 16px 5px rgba(255, 176, 70, .45); animation: bdFlick .16s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes bdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bdFlick { from { transform: scale(1, 1) rotate(-2deg); opacity: .92; } to { transform: scale(.92, 1.08) rotate(2deg); opacity: 1; } }
.bd-fx.embers { inset: 0; overflow: visible; }
.bd-fx.embers i { position: absolute; bottom: 10px; width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%; background: radial-gradient(#fff4c8, #ffb03b 45%, rgba(255, 80, 0, 0) 72%);
  box-shadow: 0 0 6px 1px rgba(255, 140, 40, .7); opacity: 0; animation: bdEmber var(--t, 6s) linear infinite; animation-delay: calc(-1 * var(--d, 0s)); }
.bd-fx.embers i:nth-child(odd) { --dx: 26px; } .bd-fx.embers i:nth-child(even) { --dx: -22px; }
@keyframes bdEmber { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .95; } 70% { opacity: .55; } 100% { transform: translate(var(--dx, 18px), -640px); opacity: 0; } }
.bd-fx.comets { inset: 0; overflow: hidden; border-radius: 10px; }
.bd-fx.comets i { position: absolute; top: 14%; left: -20%; width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(220, 232, 255, .95)); transform: rotate(-16deg);
  opacity: 0; animation: bdComet 11s linear infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 4px #b9ccff); }
@keyframes bdComet { 0% { left: -20%; opacity: 0; } 3% { opacity: 1; } 16% { left: 112%; opacity: 0; } 100% { left: 112%; opacity: 0; } }
/* a secret shelf glows with the binders owned and made for hunting (--gl 0.3 … 1) */
.bd-room.secret .bd-shelf { animation: bdAura 4s ease-in-out infinite; }
@keyframes bdAura {
  0%, 100% { box-shadow: 0 46px 60px -20px rgba(0, 0, 0, .8), inset 0 0 90px rgba(0, 0, 0, .55), 0 0 calc(24px + 70px * var(--gl)) calc(2px + 12px * var(--gl)) var(--aura); }
  50% { box-shadow: 0 46px 60px -20px rgba(0, 0, 0, .8), inset 0 0 90px rgba(0, 0, 0, .55), 0 0 calc(40px + 110px * var(--gl)) calc(6px + 22px * var(--gl)) var(--aura2); } }

/* ================= THE STYLES ================= */
/* 1 · WALNUT LIBRARY — common */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-walnut { --room: radial-gradient(90% 75% at 50% 32%, #2b1d12, #0b0806 72%);
  --post: linear-gradient(90deg, #24150a, #5e3c22 30%, #74502f 50%, #4a2e18 76%, #1f1208); --top: linear-gradient(180deg, #7d5534 0%, #5c3b21 45%, #3a2313 100%);
  --plank: linear-gradient(180deg, #81593a, #5e3d23 55%, #3b2313); --wall: repeating-linear-gradient(90deg, rgba(0, 0, 0, .38) 0 1px, rgba(255, 255, 255, .05) 1px 2px, transparent 2px 112px), var(--tx-grainV), linear-gradient(180deg, #1d130b, #2b1c11 45%, #1a1009); --plinth: linear-gradient(180deg, #5a3a21, #2a190d);
  --txh: var(--tx-grainH), var(--tx-grainHl); --txv: var(--tx-grainV), var(--tx-grainVl); --light: rgba(255, 196, 120, .26); }
/* 2 · NORDIC OAK — common */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-oak { --room: radial-gradient(90% 75% at 50% 32%, #2c2620, #0c0b09 72%);
  --post: linear-gradient(90deg, #8d6a3f, #d1ae80 32%, #e3c599 52%, #c19b69 76%, #86623a); --top: linear-gradient(180deg, #e6c99c, #c9a36f 55%, #a57d4b);
  --plank: linear-gradient(180deg, #e8cc9f, #c7a06c 55%, #9d7646); --wall: repeating-linear-gradient(90deg, rgba(0, 0, 0, .38) 0 1px, rgba(255, 255, 255, .05) 1px 2px, transparent 2px 112px), var(--tx-grainV), linear-gradient(180deg, #4b3522, #5c432b 45%, #3e2c1b); --plinth: linear-gradient(180deg, #b08752, #7a5a33);
  --txh: var(--tx-grainH); --txv: var(--tx-grainV); --light: rgba(255, 242, 218, .3); }
/* 3 · BLACK STEEL — common */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-steel { --room: radial-gradient(90% 75% at 50% 32%, #1a1e22, #060708 72%);
  --post: radial-gradient(circle at 50% 50%, #9a9a9a 0 1.4px, #2b2b2b 2.1px, transparent 2.8px) 50% 18px / 28px 58px repeat-y, linear-gradient(90deg, #0b0b0b, #3a3a3a 28%, #4d4d4d 50%, #2a2a2a 76%, #090909);
  --top: linear-gradient(180deg, #4a4a4a, #252525 50%, #121212); --plank: linear-gradient(180deg, #4d4d4d, #262626 55%, #141414);
  --wall: linear-gradient(180deg, #0b0c0d, #16181a 50%, #0a0b0c); --plinth: linear-gradient(180deg, #2a2a2a, #0d0d0d);
  --txh: var(--tx-brushH); --txv: var(--tx-brushV); --light: rgba(200, 226, 255, .18); --trim: rgba(255, 255, 255, .12); }
/* 4 · WHITE GALLERY — uncommon */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-gallery { --room: radial-gradient(90% 75% at 50% 30%, #3b3b3b, #111 72%);
  --post: linear-gradient(90deg, #cfcec9, #f6f6f3 38%, #ffffff 55%, #e2e1dc 80%, #c8c7c2); --top: linear-gradient(180deg, #ffffff, #eeede9 55%, #d6d5d0);
  --plank: linear-gradient(180deg, #ffffff, #ecebe7 55%, #cfcec9); --wall: linear-gradient(180deg, #e3e2dd, #f1f0ec 50%, #e0dfda); --plinth: linear-gradient(180deg, #e6e5e0, #bfbeb9);
  --txh: var(--tx-fineL); --txv: var(--tx-fineL); --light: rgba(255, 255, 255, .85); }
.bd-room.st-gallery .bd-row { background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0) 18%), radial-gradient(40% 70% at 25% 0%, rgba(255, 255, 255, .9), transparent 70%), radial-gradient(40% 70% at 75% 0%, rgba(255, 255, 255, .9), transparent 70%), var(--wall); }
.bd-room.st-gallery .bd-ghost { border-color: rgba(0, 0, 0, .28); color: #555; background: rgba(0, 0, 0, .03); }
/* 5 · BLACKLENS STUDIO — rare: carbon weave, the red light */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-blacklens { --room: radial-gradient(90% 75% at 50% 32%, #2a0d0c, #050505 72%);
  --carbon: conic-gradient(from 45deg, #171717 25%, #0b0b0b 0 50%, #171717 0 75%, #0b0b0b 0) 0 0 / 7px 7px;
  --post: linear-gradient(90deg, rgba(0, 0, 0, .6), rgba(255, 255, 255, .08) 45%, rgba(0, 0, 0, .6)), var(--carbon); --top: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .3)), var(--carbon);
  --plank: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .35)), var(--carbon); --wall: linear-gradient(180deg, #060606, #0d0d0d 50%, #050505); --plinth: var(--plank);
  --light: rgba(220, 79, 76, .26); --trim: #DC4F4C; --crest: #DC4F4C; }
.bd-room.st-blacklens .bd-plank { box-shadow: 0 12px 16px rgba(0, 0, 0, .55), inset 0 2px 0 #DC4F4C, 0 -8px 22px rgba(220, 79, 76, .32), inset 0 -6px 0 rgba(0, 0, 0, .3); }
.bd-room.st-blacklens .bd-shelf::before { box-shadow: inset -2px 0 0 rgba(220, 79, 76, .75), 4px 0 18px -4px rgba(220, 79, 76, .5); }
.bd-room.st-blacklens .bd-shelf::after { box-shadow: inset 2px 0 0 rgba(220, 79, 76, .75), -4px 0 18px -4px rgba(220, 79, 76, .5); }
/* 6 · FROSTED CRYSTAL — rare: ice glass, the room shows through */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-crystal { --room: radial-gradient(90% 75% at 50% 32%, #10222e, #04080b 72%);
  --post: linear-gradient(90deg, rgba(150, 205, 240, .42), rgba(240, 250, 255, .22) 45%, rgba(130, 190, 235, .38)); --top: linear-gradient(180deg, rgba(230, 246, 255, .55), rgba(150, 200, 235, .3));
  --plank: linear-gradient(180deg, rgba(235, 248, 255, .7), rgba(140, 195, 235, .32)); --wall: linear-gradient(180deg, rgba(120, 180, 220, .14), rgba(80, 140, 190, .08)); --plinth: var(--plank);
  --txh: var(--tx-frost); --txv: var(--tx-frost); --light: rgba(150, 225, 255, .22); --trim: #9ee9ff; --crest: #dff6ff; }
.bd-room.st-crystal .bd-shelf { backdrop-filter: blur(7px) saturate(1.15); background: var(--tx-frost), var(--wall); }
.bd-room.st-crystal .bd-plank { box-shadow: 0 12px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 14px rgba(140, 220, 255, .55), inset 0 -6px 0 rgba(60, 120, 170, .25); }
.bd-room.st-crystal .bd-shelf::before, .bd-room.st-crystal .bd-shelf::after { box-shadow: inset 0 0 0 1px rgba(200, 240, 255, .6), 0 0 14px rgba(140, 220, 255, .35); }
/* 7 · URUSHI LACQUER — rare: black lacquer, gold maki-e waves */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-urushi { --room: radial-gradient(90% 75% at 50% 32%, #1f0c09, #060303 72%);
  --seigaiha: radial-gradient(circle at 50% 100%, transparent 8px, rgba(212, 175, 90, .55) 9px, transparent 10px, transparent 12px, rgba(212, 175, 90, .38) 13px, transparent 14px, transparent 16px, rgba(212, 175, 90, .28) 17px, transparent 18px) 0 0 / 30px 15px;
  --post: linear-gradient(90deg, #030303, #1c0f0d 30%, #33181a 50%, #140909 74%, #020202); --top: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, 0) 40%), var(--seigaiha), linear-gradient(180deg, #2a1012, #0d0505);
  --plank: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, 0) 50%), linear-gradient(180deg, #2a1012, #0b0404); --wall: linear-gradient(180deg, #160606, #200909 50%, #0d0303);
  --plinth: var(--seigaiha), linear-gradient(180deg, #250e10, #070202); --light: rgba(255, 190, 120, .18); --trim: #d4af5a; --crest: #d4af5a; }
/* 8 · ARCANE ARCHIVE — epic: carved ancient oak, gothic arcade, floating candles */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-arcane { --room: radial-gradient(90% 75% at 50% 30%, #241509, #060403 72%);
  --arcade: radial-gradient(ellipse 13px 24px at 50% 100%, transparent 88%, rgba(196, 156, 82, .75) 92%, transparent 99%) 0 100% / 30px 32px repeat-x;
  --post: repeating-linear-gradient(90deg, rgba(0, 0, 0, .38) 0 2px, transparent 2px 6px), linear-gradient(90deg, #160d06, #3e2a19 32%, #4c3420 50%, #2c1d11 74%, #120a05);
  --top: var(--arcade), linear-gradient(180deg, #4a321d, #2a1b0e 60%, #160d06); --plank: linear-gradient(180deg, #4d3420, #2e1f12 55%, #170e07);
  --wall: radial-gradient(ellipse at 50% -10%, rgba(255, 170, 80, .16), transparent 60%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .38) 0 1px, rgba(255, 255, 255, .05) 1px 2px, transparent 2px 112px), var(--tx-grainV), linear-gradient(180deg, #120b06, #1c120a 50%, #0d0804); --plinth: var(--plank);
  --txh: var(--tx-grainH); --txv: var(--tx-grainV); --light: rgba(255, 168, 78, .3); --trim: #b8913f; --crest: #c9a24e; }
.bd-room.st-arcane .bd-row::before { background: radial-gradient(55% 45% at 50% 0%, rgba(255, 170, 70, .2), transparent 70%); animation: bdCandle 3.2s ease-in-out infinite; }
@keyframes bdCandle { 0%, 100% { opacity: .55; } 22% { opacity: .85; } 40% { opacity: .62; } 63% { opacity: 1; } 80% { opacity: .7; } }
/* 9 · NEON DISTRICT — epic: black chrome, magenta and cyan tubes */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-neon { --room: radial-gradient(90% 75% at 50% 30%, #2c0b38, #04030a 72%);
  --post: linear-gradient(90deg, #040408, #2a2a36 24%, #0b0b11 44%, #3c3c4a 60%, #07070b); --top: linear-gradient(180deg, #2d2d3a, #0d0d14 50%, #191924);
  --plank: linear-gradient(180deg, #2f2f3c, #0d0d14 60%, #16161f); --plinth: var(--plank);
  --wall: linear-gradient(rgba(0, 229, 255, .2) 1px, transparent 1px) 0 0 / 100% 24px, linear-gradient(90deg, rgba(255, 58, 216, .18) 1px, transparent 1px) 0 0 / 24px 100%, linear-gradient(180deg, #07040e, #120822 60%, #090412);
  --light: rgba(255, 58, 216, .2); --trim: #ff3ad8; --crest: #ff7be6; }
.bd-room.st-neon .bd-plank { border-top: 2px solid #ff6be3; box-shadow: 0 12px 16px rgba(0, 0, 0, .55), 0 -2px 10px rgba(255, 58, 216, .9), 0 -6px 30px rgba(255, 58, 216, .4); animation: bdNeon 7s infinite; }
.bd-room.st-neon .bd-story:nth-child(3) .bd-plank { border-top-color: #6af3ff; box-shadow: 0 12px 16px rgba(0, 0, 0, .55), 0 -2px 10px rgba(0, 229, 255, .9), 0 -6px 30px rgba(0, 229, 255, .4); animation-delay: -3s; }
.bd-room.st-neon .bd-shelf::before { box-shadow: inset -2px 0 0 #ff7be6, 4px 0 18px -2px rgba(255, 58, 216, .7); }
.bd-room.st-neon .bd-shelf::after { box-shadow: inset 2px 0 0 #7af3ff, -4px 0 18px -2px rgba(0, 229, 255, .7); }
.bd-room.st-neon .bd-crown { box-shadow: 0 10px 16px rgba(0, 0, 0, .55), inset 0 -2px 0 #ff6be3, 0 6px 22px -6px rgba(255, 58, 216, .8); }
@keyframes bdNeon { 0%, 89%, 93%, 100% { filter: none; } 90% { filter: brightness(.5); } 91% { filter: brightness(1.1); } 92% { filter: brightness(.4); } }
/* 10 · HOLO VAULT — epic: gunmetal, hologram sheen, scan lines */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-holo { --room: radial-gradient(90% 75% at 50% 30%, #072426, #020606 72%);
  --holo: linear-gradient(110deg, transparent 18%, rgba(0, 255, 210, .28) 32%, rgba(255, 0, 200, .2) 42%, rgba(255, 228, 0, .22) 52%, transparent 66%) 0 0 / 300% 100%;
  --post: var(--holo), linear-gradient(90deg, #0c0f12, #39424a 32%, #5b656e 50%, #2a3137 72%, #0a0d10); --top: var(--holo), linear-gradient(180deg, #4a545d, #262c32 55%, #12161a);
  --plank: var(--holo), linear-gradient(180deg, #4e5862, #262c32 60%, #12161a); --plinth: repeating-linear-gradient(-45deg, #e8b800 0 8px, #141414 8px 16px);
  --wall: repeating-linear-gradient(180deg, rgba(0, 255, 220, .06) 0 1px, transparent 1px 4px), radial-gradient(ellipse at 50% 120%, rgba(0, 255, 200, .2), transparent 60%), linear-gradient(180deg, #051012, #0a1a1d 55%, #040b0c);
  --txv: var(--tx-brushV); --light: rgba(60, 255, 220, .18); --trim: #3cf2d0; --crest: #6ff7df; }
.bd-room.st-holo .bd-crown, .bd-room.st-holo .bd-plank, .bd-room.st-holo .bd-shelf::before, .bd-room.st-holo .bd-shelf::after { animation: bdHolo 7s linear infinite; }
@keyframes bdHolo { to { background-position: -300% 0, 0 0, 0 0; } }
.bd-room.st-holo .bd-row::before { background: linear-gradient(180deg, transparent, rgba(60, 255, 220, .2) 50%, transparent) 0 0 / 100% 46px no-repeat; animation: bdScan 4.5s linear infinite; }
@keyframes bdScan { from { background-position: 0 -46px; } to { background-position: 0 340px; } }
/* 11 · ROYAL TREASURY — legendary: crimson velvet, gilded baroque */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-royal { --room: radial-gradient(90% 75% at 50% 30%, #300a10, #080203 72%);
  --gilt: linear-gradient(90deg, #5e4317, #c9a24e 22%, #fbe7a6 40%, #d6ae55 56%, #7a5a20 80%, #4a3410);
  --post: radial-gradient(circle at 50% 50%, rgba(255, 240, 190, .9) 0 2px, rgba(120, 85, 25, .9) 2.6px, transparent 3.4px) 50% 10px / 28px 24px repeat-y, var(--gilt);
  --top: radial-gradient(circle at 50% 50%, rgba(255, 244, 200, .9) 0 1.8px, transparent 2.6px) 0 50px / 16px 10px repeat-x, linear-gradient(180deg, #fbe7a6, #d6ae55 30%, #9a7426 70%, #6a4c16);
  --plank: linear-gradient(180deg, #fff0b8, #d9b25a 30%, #a07a28 70%, #6a4c16); --plinth: var(--plank);
  --wall: radial-gradient(ellipse at 50% 20%, rgba(255, 90, 90, .14), transparent 62%), var(--tx-velvet), linear-gradient(180deg, #4a0912, #6b0f1b 48%, #3a050c);
  --light: rgba(255, 214, 140, .24); --trim: #fff0b8; --crest: #fbe39a; }
.bd-room.st-royal .bd-crest svg { fill: #fff0b8; filter: drop-shadow(0 1px 0 #6a4c16) drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
/* 12 · OBSIDIAN & GOLD — legendary: black marble veined with gold */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-obsidian { --room: radial-gradient(90% 75% at 50% 30%, #161410, #040404 72%);
  --post: var(--tx-marble), linear-gradient(90deg, #040404, #1b1a1c 40%, #26252a 52%, #0c0c0d); --top: var(--tx-marble), linear-gradient(180deg, #232226, #0b0b0c);
  --plank: var(--tx-marble), linear-gradient(180deg, #29282c, #0e0e0f 60%); --plinth: var(--plank);
  --wall: var(--tx-marble), linear-gradient(180deg, #050505, #0e0e10 50%, #040404); --light: rgba(255, 214, 140, .16); --trim: #d4af5a; --crest: #e3c06a; }
.bd-room.st-obsidian .bd-shelf::before, .bd-room.st-obsidian .bd-shelf::after { box-shadow: inset 0 0 0 1px rgba(212, 175, 90, .7), inset 0 0 12px rgba(0, 0, 0, .6); }
.bd-room.st-obsidian .bd-row { background-blend-mode: normal, normal, screen, normal; }
/* 13 · CELESTIAL OBSERVATORY — SECRET (the top row full): midnight lacquer, a living star field */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-celestial { --room: radial-gradient(90% 75% at 50% 30%, #0e1544, #01020a 72%);
  --stars: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 64%, #d6e4ff, transparent), radial-gradient(1.4px 1.4px at 58% 28%, #fff, transparent),
    radial-gradient(1px 1px at 76% 74%, #cfe0ff, transparent), radial-gradient(1.2px 1.2px at 88% 12%, #fff, transparent), radial-gradient(.9px .9px at 46% 88%, #fff, transparent);
  --post: linear-gradient(90deg, transparent 3px, rgba(207, 216, 255, .55) 3px 4px, transparent 4px calc(100% - 4px), rgba(207, 216, 255, .55) calc(100% - 4px) calc(100% - 3px), transparent 0), linear-gradient(90deg, #02040f, #0f1a4a 32%, #1d2b70 50%, #0b1238 74%, #02040f);
  --top: var(--stars) 0 0 / 160px 60px, linear-gradient(180deg, #16225e, #0a1035 60%, #050822); --plank: linear-gradient(180deg, #e9eeff 0 2px, #1a2766 2px, #0a1035 70%);
  --plinth: linear-gradient(180deg, #16225e, #050822); --wall: var(--stars) 0 0 / 180px 150px, radial-gradient(ellipse at 28% 32%, rgba(140, 90, 255, .28), transparent 48%), radial-gradient(ellipse at 76% 70%, rgba(40, 160, 255, .24), transparent 52%), linear-gradient(180deg, #02030d, #050a26 55%, #02030c);
  --light: rgba(150, 175, 255, .2); --trim: #cfd8ff; --crest: #e6ecff; --aura: rgba(110, 140, 255, .4); --aura2: rgba(150, 120, 255, .6); --aura-ink: #c9d6ff; }
.bd-room.st-celestial .bd-row::before { background: radial-gradient(1.6px 1.6px at 22% 30%, #fff, transparent), radial-gradient(1.3px 1.3px at 68% 58%, #fff, transparent), radial-gradient(1.8px 1.8px at 44% 82%, #e3ecff, transparent), radial-gradient(1.2px 1.2px at 86% 22%, #fff, transparent) 0 0 / 140px 120px; animation: bdTwinkle 2.6s ease-in-out infinite alternate; }
@keyframes bdTwinkle { from { opacity: .15; } to { opacity: 1; } }
/* 14 · THE BLACK CROWN — SECRET (the bottom row full): obsidian, molten gold, embers rising */
:is(.bd-room, .bd-stsw, .bd-bgpv, .mk-shop).st-crown { --room: radial-gradient(90% 75% at 50% 34%, #250b04, #040101 72%);
  --molten: linear-gradient(90deg, #6a3a06, #ffd56a 14%, #ff9d1e 28%, #fff1b0 42%, #b8741a 56%, #ffd56a 70%, #ff8a16 84%, #6a3a06) 0 0 / 300% 100%;
  --post: linear-gradient(90deg, transparent 2px, #e8b445 2px 3px, transparent 3px calc(100% - 3px), #e8b445 calc(100% - 3px) calc(100% - 2px), transparent 0), linear-gradient(90deg, #000, #151314 40%, #060505);
  --top: linear-gradient(180deg, transparent 52px, #000 52px), var(--molten), linear-gradient(180deg, #121010, #030303); --plank: linear-gradient(180deg, transparent 3px, #0e0c0c 3px, #030303), var(--molten);
  --plinth: linear-gradient(180deg, #121010, #000); --wall: radial-gradient(ellipse at 50% 125%, rgba(255, 96, 24, .38), transparent 62%), var(--tx-marble), linear-gradient(180deg, #070302, #100604 55%, #050201);
  --light: rgba(255, 170, 70, .2); --trim: #ffcf5c; --crest: #ffd56a; --aura: rgba(255, 150, 40, .38); --aura2: rgba(255, 70, 20, .55); --aura-ink: #ffd56a; }
.bd-room.st-crown .bd-crown { background: linear-gradient(180deg, #121010, #030303 92%, transparent 92%) 0 0 / 100% 92% no-repeat, var(--molten); animation: bdMolten 6s linear infinite; }
.bd-room.st-crown .bd-plank { animation: bdMolten 6s linear infinite; box-shadow: 0 12px 16px rgba(0, 0, 0, .55), 0 -3px 14px rgba(255, 160, 40, .55); }
@keyframes bdMolten { to { background-position: 0 0, -300% 0; } }
.bd-room.st-crown .bd-shelf::before, .bd-room.st-crown .bd-shelf::after { box-shadow: 0 0 14px rgba(255, 170, 40, .35), inset 0 0 10px rgba(0, 0, 0, .6); }
.bd-room.st-crown .bd-crest svg { fill: #ffd56a; filter: drop-shadow(0 0 8px rgba(255, 170, 40, .8)) drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }

/* ================= the side card: the style and the background ================= */
.bd-curst, .bd-curbg { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 54px; padding: 7px 10px 7px 8px; box-sizing: border-box;
  border-radius: 11px; border: 1px solid #3c3c3c; background: linear-gradient(180deg, #232323, #181818); color: #f2f2f2; cursor: pointer; text-align: left; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .4); }
.bd-curst:hover, .bd-curbg:hover { border-color: #7a7a7a; background: linear-gradient(180deg, #2a2a2a, #1c1c1c); }
.bd-curst.r-legendary { border-color: #6a5326; } .bd-curst.r-epic { border-color: #4b2f6d; } .bd-curst.r-secret { border-color: #5a3d7a; box-shadow: 0 0 14px rgba(150, 110, 255, .25); }
.bd-stsw { display: block; width: 54px; height: 38px; border-radius: 7px; background: var(--txh, none), var(--top, #333); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -10px 0 rgba(0, 0, 0, .25), 0 2px 5px rgba(0, 0, 0, .5); }
.bd-bgsw { display: block; width: 54px; height: 38px; border-radius: 7px; background: #0b0b0b center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  background-image: repeating-linear-gradient(45deg, #161616 0 6px, #0e0e0e 6px 12px); }
.bd-curtx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bd-curtx i { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 1.6px; color: #ffb3b0; }
.bd-curtx b { font-size: 13px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-go { font-size: 20px; color: #9a9a9a; padding: 0 2px; }
/* rarities */
.bd-rar { align-self: flex-start; display: inline-block; padding: 3px 7px 2px; border-radius: 5px; font: 800 8.5px/1 var(--rep-font); letter-spacing: 1.5px; border: 1px solid currentColor; background: rgba(0, 0, 0, .35); }
.bd-rar.r-common { color: #b5b5b5; } .bd-rar.r-uncommon { color: #6fdc98; } .bd-rar.r-rare { color: #5cb0ff; } .bd-rar.r-epic { color: #c38bff; }
.bd-rar.r-legendary { color: #f3c45b; box-shadow: 0 0 10px rgba(243, 196, 91, .35); }
.bd-rar.r-secret { color: #fff; border-color: transparent; background: linear-gradient(#141414, #141414) padding-box, conic-gradient(from var(--bdA), #ff4fd8, #4fe3ff, #fff36b, #7dff9b, #ff4fd8) border-box; border: 1px solid transparent; animation: bdSpinA 3s linear infinite; }
@keyframes bdSpinA { to { --bdA: 360deg; } }

/* ================= SHELF STYLE: the gallery ================= */
.bd-dlg.styles { width: min(1280px, 96vw); max-height: 92vh; display: flex; flex-direction: column; }
.bd-stgrid { flex: 1 1 auto; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px; padding: 4px 4px 8px; scrollbar-width: thin; }
.bd-stcard { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; border-radius: 13px; overflow: hidden; cursor: pointer; text-align: left; color: #f2f2f2;
  border: 1px solid #333; background: #121212; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); transition: transform .15s, box-shadow .15s, border-color .15s; }
.bd-stcard:hover { transform: translateY(-3px); border-color: #777; box-shadow: 0 10px 22px rgba(0, 0, 0, .55); }
.bd-stcard.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(220, 79, 76, .3); }
.bd-stcard.r-uncommon { border-color: #2d5a3e; } .bd-stcard.r-rare { border-color: #24476b; } .bd-stcard.r-epic { border-color: #4a2d6b; box-shadow: 0 0 16px rgba(170, 110, 255, .14); }
.bd-stcard.r-legendary { border-color: #7a5d22; box-shadow: 0 0 20px rgba(243, 196, 91, .18); }
.bd-stcard.r-secret { border: 2px solid transparent; background: linear-gradient(#121212, #121212) padding-box, conic-gradient(from var(--bdA), #ff4fd8, #4fe3ff, #fff36b, #7dff9b, #ff4fd8) border-box; animation: bdSpinA 4s linear infinite; }
.bd-stcard.on.r-secret, .bd-stcard.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.bd-stview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 11; overflow: hidden; background: #000; container-type: inline-size; }
.bd-stview .bd-room.mini { position: absolute; left: 0; top: 0; width: 760px; height: 523px; transform: scale(var(--ms, .3)); }
.bd-room.mini { min-height: 0; padding: 74px 40px 18px; border-radius: 0; box-shadow: none; transform-origin: 0 0; pointer-events: none; justify-content: center; }
.bd-room.mini .bd-row { height: 150px; min-width: 0; padding: 12px 18px 0; gap: 9px; }
.bd-room.mini .bd-plate { transform: scale(1.12); transform-origin: 100% 0; }
.bd-msp { display: block; flex: none; height: 128px; border-radius: 4px 4px 2px 2px; background: var(--tx-cloth), linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(255, 255, 255, .14) 15%, transparent 32%, rgba(0, 0, 0, .52)), var(--cv);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 5px 0 12px rgba(0, 0, 0, .4); }
.bd-stinfo { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 12px; }
.bd-stinfo b { font-size: 13px; font-weight: 800; letter-spacing: 1.1px; }
.bd-stinfo i { font-style: normal; font-size: 11px; line-height: 1.35; color: #9a9a9a; }
.bd-ston { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 6px; background: var(--accent); color: #fff; font: 800 9px/1 var(--rep-font); letter-spacing: 1.2px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.bd-stcard.locked { cursor: not-allowed; }
.bd-stcard.locked .bd-room.mini { filter: blur(5px) brightness(.4) saturate(.6); }
.bd-stlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; color: #fff; background: radial-gradient(circle, rgba(0, 0, 0, .25), rgba(0, 0, 0, .65)); }
.bd-stlock svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 0 8px rgba(190, 150, 255, .8)); }
.bd-stlock b { font: 800 12px/1 var(--rep-font); letter-spacing: 4px; background: linear-gradient(90deg, #ff4fd8, #4fe3ff, #fff36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bd-stlock > i { font-style: normal; font-size: 10.5px; color: #e2e2e2; max-width: 190px; line-height: 1.35; }
.bd-stprog { width: 70%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.bd-stprog i { display: block; height: 100%; background: linear-gradient(90deg, #ff4fd8, #4fe3ff); }
.bd-stlock em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #cfcfcf; }
.bd-dlg.styles .bd-dfoot { align-items: center; justify-content: space-between; gap: 14px; }
.bd-dlg.styles .bd-dfoot .bd-hint { flex: 1 1 auto; }

/* ================= BACKGROUND: the dialog ================= */
.bd-dlg.bgd { width: min(1060px, 96vw); max-height: 92vh; overflow: auto; }
.bd-bgg { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bd-bgl { display: flex; flex-direction: column; gap: 10px; }
.bd-bgr { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bd-bgpv { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: center / cover no-repeat var(--room, #090909); box-shadow: inset 0 0 0 1px #2f2f2f; container-type: inline-size; }
.bd-bgpv::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--bg-dim, .45)); pointer-events: none; z-index: 1; opacity: 0; }
.bd-bgpv.has::after { opacity: 1; }
.bd-bgpvsh { position: absolute; left: 50%; top: 50%; width: 760px; height: 523px; z-index: 2; transform: translate(-50%, -50%) scale(var(--ms, .5)); }
.bd-bgpvsh .bd-room.mini { position: absolute; inset: 0; background: transparent; }
.bd-bgpvsh .bd-room.mini::after { display: none; }
.bd-bgbusy { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, .62); color: #f2f2f2; font-size: 12px; letter-spacing: 1px; }
.bd-bgbusy i { font-style: normal; }
.bd-bgscenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bd-bgscenes .bd-chip { justify-content: flex-start; height: 34px; }
.bd-upbtn { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bd-bgl input[type="range"] { width: 100%; accent-color: var(--accent); }
.bd-bgnote { color: #d8c89a; }
/* ================= shorter windows ================= */
@media (max-height: 960px) {
  .bd-room { padding: 50px 22px 10px; gap: 8px; min-height: 0; height: calc(100vh - 170px); }
  .bd-room .bd-crown { height: 52px; }
  .bd-plate { top: 5px; }
  .bd-room .bd-row { height: 206px; padding-top: 8px; }
  .bd-room .bd-spine, .bd-room .bd-ghost { height: 188px; }
  .bd-room .bd-spine { gap: 6px; padding-top: 9px; }
  .bd-room .bd-spname { font-size: 13.5px; }
  .bd-room > .bd-note { font-size: 10.5px; }
  .bd-fx.candles { top: -48px; height: 44px; }
  .bd-fx.candles i { height: 20px; width: 7px; margin-left: -3px; }
  .bd-fx.candles b { top: -12px; width: 6px; height: 11px; margin-left: -3px; }
  .bd-crest { top: -30px; width: 54px; height: 32px; }
}

/* ===== ROUND 145 · BLACKBINDER — THE SETTINGS LIVE ON THE SHELF (operator 2026-10-20: 'the binder name, colours and pocket
   numbers are picked before entering a binder; the customization is done while viewing the shelf — make an EDIT button')
   The shelf's EDIT switch marks every binder; a click opens EDIT BINDER (the NEW BINDER form, filled in). Inside a binder
   only what it is remains, with a ✎ EDIT that goes back to the shelf. ===== */
.bd-btn.bd-edtog { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bd-btn.bd-edtog svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bd-btn.bd-edtog.on { background: linear-gradient(180deg, #f6f6f6, #d6d6d6); border-color: #fff; color: #141414; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
.bd-room.editing .bd-spine { outline: 2px dashed rgba(255, 255, 255, .6); outline-offset: 3px; }
.bd-room.editing .bd-spine:hover { outline-color: #fff; outline-style: solid; }
.bd-spedit { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); z-index: 3; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #f6f6f6; color: #141414; box-shadow: 0 3px 10px rgba(0, 0, 0, .6), 0 0 0 3px rgba(0, 0, 0, .25); pointer-events: none; }
.bd-spedit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-room.editing .bd-spine:hover .bd-spedit { background: var(--bd-red); color: #fff; }
.bd-ednote { color: #fff; letter-spacing: 1px; }
.bd-card.bd-binfo { flex-direction: row; align-items: center; gap: 10px; padding: 10px 11px; }
.bd-binsw { flex: none; width: 24px; height: 34px; border-radius: 3px 5px 5px 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .14) 28%, rgba(0, 0, 0, .18)), var(--cv);
  box-shadow: inset -5px 0 0 var(--pg), 0 2px 6px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bd-bintx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bd-bintx b { font: 800 13.5px/1.15 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: .6px; color: #f4f4f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-bintx i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-btn.sm.bd-binedit { flex: none; height: 28px; }
.bd-dprev p.bd-edin { color: #c9c9c9; }
.bd-dprev p.bd-edin b { color: #fff; }
.bd-dprev p.bd-edwarn { color: #ffd79a; background: #1f190d; border: 1px solid #6b5420; border-radius: 8px; padding: 6px 9px; }
.bd-dfoot .bd-btn.bd-edel { margin-right: auto; }

/* ===== ROUND 145 · THE MENU, COMPACT, IN THREE COLOUR FAMILIES (operator 2026-10-20: 'remake the side menu tab to be more
   compact and professional looking; a different colour for SUBMISSION and DASHBOARD, another for INSPECTION and STAGE/CAM
   — 2 sets of new colours') =====
   Every mode is a 62 × 44 tile drawn from one set of variables: ORDERS (SUBMISSION · DASHBOARD · the customer's SUBMISSIONS)
   steel blue, THE STUDIO (INSPECTION + its three steps · STAGE/CAM) teal, the BLACK products keep their gold, SETTINGS ·
   GUIDE · LOGIN quiet grey with the red selection. The selected tile fills with its family's colour. ===== */
#sidebar { gap: 3px; padding: 10px 0; }
#sidebar .sb-logo { padding: 3px; }
#sidebar .sb-logo img { width: 30px; height: 30px; }
#sidebar .sb-div { width: 34px; margin: 3px 0; background: #2c2c2c; }
#sidebar .sb-btn {
  --t-bg: transparent; --t-line: transparent; --t-ink: #9c9c9c; --t-ico: #8c8c8c;
  --t-hbg: #242424; --t-hline: #3a3a3a; --t-hink: #f0f0f0;
  --t-on: #e3605d; --t-on2: #c13e3b; --t-online: #f08b88; --t-glow: rgba(220, 79, 76, .3);
  position: relative; box-sizing: border-box; width: 62px; min-height: 44px; padding: 6px 2px 5px; gap: 4px;
  border-radius: 9px; border: 1px solid var(--t-line); background: var(--t-bg); color: var(--t-ink); box-shadow: none;
  font-size: 8.5px; letter-spacing: .5px; }
#sidebar .sb-btn .ico { width: 24px; height: 20px; color: var(--t-ico); transition: color .12s; }
#sidebar .sb-btn .ico svg { width: 19px; height: 19px; }
#sidebar .sb-btn > span:not(.ico) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sidebar .sb-btn:hover { background: var(--t-hbg); border-color: var(--t-hline); color: var(--t-hink); }
#sidebar .sb-btn:hover .ico { color: var(--t-hink); }
#sidebar .sb-btn.on { background: linear-gradient(180deg, var(--t-on), var(--t-on2)); border-color: var(--t-online); color: #fff;
  box-shadow: 0 4px 12px var(--t-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
#sidebar .sb-btn.on .ico { color: #fff; }
#sidebar .sb-btn.on .ico svg { stroke-width: 1.8; }
/* ORDERS — steel blue */
#sidebar .sb-btn:is([data-nav="submit"], [data-nav="home"], [data-nav="request"]) {
  --t-bg: linear-gradient(180deg, #121d2c, #0c1521); --t-line: #25486e; --t-ink: #aecdee; --t-ico: #78ade6;
  --t-hbg: #16273f; --t-hline: #4c84c1; --t-hink: #e8f2ff;
  --t-on: #3c84d1; --t-on2: #285f9f; --t-online: #8ec0f2; --t-glow: rgba(60, 132, 209, .36); }
/* THE STUDIO — teal */
#sidebar .sb-btn:is([data-nav="job"], [data-nav="stage"]) {
  --t-bg: linear-gradient(180deg, #0f2120, #0a1716); --t-line: #1f564f; --t-ink: #9adbd0; --t-ico: #5fc4b4;
  --t-hbg: #12302d; --t-hline: #3b9b8d; --t-hink: #e3fcf7;
  --t-on: #24a393; --t-on2: #187b6f; --t-online: #82e2d3; --t-glow: rgba(36, 163, 147, .36); }
/* the BLACK products — the gold tile they already wear, at the new size */
#sidebar .sb-btn:is([data-nav="board"], [data-nav="vault"], [data-nav="port"], [data-nav="markt"], [data-nav="binder"]) {
  --t-ico: #c9b98b; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(171, 155, 111, .1); }
#sidebar .sb-btn:is([data-nav="board"], [data-nav="vault"], [data-nav="port"], [data-nav="markt"], [data-nav="binder"]).on .ico { border-radius: 5px; }
body.nav-wide #sidebar .sb-btn:is([data-nav="lens"], [data-nav="graded"]):not(.on) > .ico { background: #2a2412 !important; color: #d8c89a; }
/* SETTINGS · GUIDE · LOGIN — the quiet foot */
#sidebar .sb-btn:is([data-nav="settings"], [data-nav="admin"], [data-nav="guide"], .sb-auth) { min-height: 38px; padding: 5px 2px 4px; gap: 3px; }
#sidebar .sb-btn:is([data-nav="settings"], [data-nav="admin"], [data-nav="guide"], .sb-auth) .ico { height: 18px; }
#sidebar .sb-btn:is([data-nav="settings"], [data-nav="admin"], [data-nav="guide"], .sb-auth) .ico svg { width: 17px; height: 17px; }
/* INSPECTION's three steps — a teal tray under the tile */
#sidebar .sb-subs { box-sizing: border-box; width: 62px; margin: -1px 0 1px; padding: 3px 2px; gap: 1px; background: #0b1615; border: 1px solid #1b3c38; border-radius: 9px; }
#sidebar .sb-sub { padding: 3px 0; gap: 2px; border-radius: 6px; color: #8bbdb5; font-size: 7.5px; letter-spacing: .4px; }
#sidebar .sb-sub span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sidebar .sb-sub i { width: 15px; height: 15px; font-size: 8px; background: #102422; border-color: #285750; color: #a3ded4; }
#sidebar .sb-sub:hover { background: #12302d; color: #e3fcf7; }
#sidebar .sb-sub.on { background: rgba(36, 163, 147, .14); color: #fff; }
#sidebar .sb-sub.on i { background: #24a393; border-color: #82e2d3; color: #fff; box-shadow: 0 0 0 3px rgba(36, 163, 147, .22); }
#sidebar .sb-btn .sb-badge { top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9px; border-width: 1.5px; }
#sidebar .sb-btn.locked .ico::after { right: -9px; bottom: -3px; font-size: 9px; }
/* short windows: a step tighter (below this the menu scrolls inside itself) */
@media (max-height: 760px) {
  #sidebar { gap: 2px; padding: 7px 0; }
  #sidebar .sb-btn { min-height: 40px; padding: 5px 2px 4px; gap: 3px; }
  #sidebar .sb-btn:is([data-nav="settings"], [data-nav="admin"], [data-nav="guide"], .sb-auth) { min-height: 34px; padding: 4px 2px 3px; }
  #sidebar .sb-div { margin: 2px 0; }
  #sidebar .sb-sub { padding: 2px 0; }
}
/* a narrow window: icons only */
@media (max-width: 700px) {
  #sidebar .sb-btn, #sidebar .sb-subs { width: 44px; }
  #sidebar .sb-btn > span:not(.ico), #sidebar .sb-sub span { display: none; }
}
/* INSPECTION and its three steps read as one block: the tray hangs from the tile */
#sidebar .sb-btn[data-nav="job"]:not([hidden]) { border-radius: 9px 9px 4px 4px; }
#sidebar .sb-btn[data-nav="job"] + .sb-subs { margin-top: -3px; border-top-color: transparent; border-radius: 4px 4px 9px 9px; }
#sidebar .sb-btn[data-nav="job"].on + .sb-subs { border-color: #2b7d71; border-top-color: transparent; background: #0c1c1a; }
/* <<r146-board>> */
/* ===== ROUND 146 · BLACKBOARD — DIVIDER 1 EASY TO CLICK, IN COLOUR · DIVIDER 2 IN TWO COLUMNS (operator 2026-10-20:
   'make the first divider easy to click — everything looks so grey; professional and user friendly, more graphics' ·
   'the second divider, with this much area, a 2-column view')
   Every card type wears its own colour (--tc, set by board.js — BLACKLENS' picks, never the games' logos): a banner of its
   most graded characters' faces and its best cards fanned out, over the name, three figures and a round OPEN arrow. The
   character picker's tiles are raised buttons ringed in that colour; the cards' tiles go two to a row once divider 2 has
   the room (≥ 560 px), three from 940 px. ===== */
#view-board #bbx-d1 .bbx-tcg:not(.empty) {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-height: 0; overflow: hidden;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--tc, #9a9a9a) 40%, #2c2c2c);
  background: linear-gradient(180deg, #1d1d1d, #151515);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
#view-board #bbx-d1 .bbx-tcg:not(.empty):hover { transform: translateY(-2px); border-color: var(--tc, #9a9a9a);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--tc, #9a9a9a) 22%, transparent), 0 2px 8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
#view-board #bbx-d1 .bbx-tcg:not(.empty):active { transform: translateY(0) scale(.992); }
/* the banner: the type's colour washing in from the left, a fine diagonal grain, the faces left, the cards fanned right */
#view-board #bbx-d1 .bbx-tban { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; padding: 0 16px 0 14px;
  background:
    radial-gradient(130% 150% at 0% 0%, color-mix(in srgb, var(--tc, #9a9a9a) 48%, transparent), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px),
    linear-gradient(110deg, color-mix(in srgb, var(--tc, #9a9a9a) 26%, #121212), #141414 80%);
  border-bottom: 1px solid color-mix(in srgb, var(--tc, #9a9a9a) 32%, #262626); }
#view-board #bbx-d1 .bbx-tfaces { display: flex; align-items: center; min-width: 0; }
#view-board #bbx-d1 .bbx-tfaces .bbx-face.sm { position: relative; width: 40px; height: 40px; flex: 0 0 40px; background: #1a1a1a;
  box-shadow: 0 0 0 2px #151515, 0 0 0 3.5px var(--tc, #9a9a9a), 0 3px 8px rgba(0, 0, 0, .5); }
#view-board #bbx-d1 .bbx-tfaces .bbx-face + .bbx-face { margin-left: -10px; }
#view-board #bbx-d1 .bbx-tfaces .bbx-face:nth-child(1) { z-index: 5; }
#view-board #bbx-d1 .bbx-tfaces .bbx-face:nth-child(2) { z-index: 4; }
#view-board #bbx-d1 .bbx-tfaces .bbx-face:nth-child(3) { z-index: 3; }
#view-board #bbx-d1 .bbx-tfaces .bbx-face:nth-child(4) { z-index: 2; }
#view-board #bbx-d1 .bbx-tfaces .bbx-face:nth-child(5) { z-index: 1; }
#view-board #bbx-d1 .bbx-tfaces .bbx-face.mono b { font-size: 12px; }
#view-board #bbx-d1 .bbx-stack.fan { flex: 0 0 auto; padding-right: 4px; }
#view-board #bbx-d1 .bbx-stack.fan .bb-thumb.mini { width: 34px; height: 48px; border-radius: 3px; border-color: #0e0e0e;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: 50% 100%; transition: transform .16s ease; }
#view-board #bbx-d1 .bbx-stack.fan .bb-thumb + .bb-thumb { margin-left: -14px; }
#view-board #bbx-d1 .bbx-stack.fan .bb-thumb:nth-child(1) { transform: rotate(-11deg); }
#view-board #bbx-d1 .bbx-stack.fan .bb-thumb:nth-child(2) { position: relative; z-index: 1; transform: translateY(-3px); }
#view-board #bbx-d1 .bbx-stack.fan .bb-thumb:nth-child(3) { transform: rotate(11deg); }
#view-board #bbx-d1 .bbx-tcg:not(.empty):hover .bbx-stack.fan .bb-thumb:nth-child(1) { transform: rotate(-16deg) translateX(-3px); }
#view-board #bbx-d1 .bbx-tcg:not(.empty):hover .bbx-stack.fan .bb-thumb:nth-child(2) { transform: translateY(-6px); }
#view-board #bbx-d1 .bbx-tcg:not(.empty):hover .bbx-stack.fan .bb-thumb:nth-child(3) { transform: rotate(16deg) translateX(3px); }
/* the row under it: the name, three figures in the type's colour, the round OPEN arrow */
#view-board #bbx-d1 .bbx-trow { display: flex; align-items: center; gap: 10px; padding: 10px 12px 11px 14px; }
#view-board #bbx-d1 .bbx-tcg:not(.empty) .bbx-tcgt { gap: 7px; }
#view-board #bbx-d1 .bbx-tcg:not(.empty) .bbx-tcgt > b { font-size: 18px; font-weight: 800; letter-spacing: .3px; color: #fff; line-height: 1.1; }
#view-board #bbx-d1 .bbx-kpis { display: flex; flex-wrap: wrap; gap: 5px; }
#view-board #bbx-d1 .bbx-kpis em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--tc, #9a9a9a) 12%, #101010); border: 1px solid color-mix(in srgb, var(--tc, #9a9a9a) 30%, #2a2a2a); }
#view-board #bbx-d1 .bbx-kpis b { font-size: 13px; font-weight: 800; color: var(--tc, #9a9a9a); font-variant-numeric: tabular-nums; }
#view-board #bbx-d1 .bbx-kpis i { font-style: normal; font-size: 8.5px; letter-spacing: 1px; font-weight: 700; color: #c4c4c4; }
#view-board #bbx-d1 .bbx-go { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: auto;
  background: var(--tc, #9a9a9a); box-shadow: 0 3px 10px color-mix(in srgb, var(--tc, #9a9a9a) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .14s ease; }
#view-board #bbx-d1 .bbx-go .bbx-chev { width: 18px; height: 18px; flex: 0 0 18px; stroke: #111; stroke-width: 2.8; }
#view-board #bbx-d1 .bbx-tcg:not(.empty):hover .bbx-go { transform: translateX(2px) scale(1.07); }
/* a narrow first column: three faces, the figures a size smaller */
#view-board #bbx-d1 .bbx-body { container: bbd1 / inline-size; }
@container bbd1 (max-width: 330px) {
  #view-board #bbx-d1 .bbx-tfaces .bbx-face:nth-child(n+4) { display: none; }
  #view-board #bbx-d1 .bbx-trow { gap: 8px; padding: 9px 10px 10px 12px; }
  #view-board #bbx-d1 .bbx-kpis { gap: 4px; }
  #view-board #bbx-d1 .bbx-kpis em { height: 20px; padding: 0 5px; gap: 3px; }
  #view-board #bbx-d1 .bbx-kpis b { font-size: 12px; }
  #view-board #bbx-d1 .bbx-kpis i { font-size: 7.5px; letter-spacing: .4px; }
  #view-board #bbx-d1 .bbx-go { flex-basis: 30px; width: 30px; height: 30px; }
  #view-board #bbx-d1 .bbx-go .bbx-chev { width: 16px; height: 16px; flex-basis: 16px; }
  #view-board #bbx-d1 .bbx-tcgo { grid-template-columns: minmax(0, 1fr); }
}
/* the card types nobody graded yet: small places two to a row, each edged in its colour */
#view-board #bbx-d1 .bbx-tcgo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#view-board #bbx-d1 .bbx-tcg.empty { position: relative; min-height: 0; padding: 8px 10px 8px 14px; gap: 0; border-radius: 9px;
  border: 1px dashed color-mix(in srgb, var(--tc, #9a9a9a) 38%, #2e2e2e);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc, #9a9a9a) 11%, #131313), #131313 72%); }
#view-board #bbx-d1 .bbx-tcg.empty::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 2px 2px 0; background: var(--tc, #9a9a9a); opacity: .75; }
#view-board #bbx-d1 .bbx-tcg.empty .bbx-tcgt { gap: 2px; }
#view-board #bbx-d1 .bbx-tcg.empty .bbx-tcgt b { font-size: 12.5px; color: #e2e2e2; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-board #bbx-d1 .bbx-tcg.empty .bbx-tcgt i { font-size: 10px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#view-board #bbx-d1 .bbx-sub { color: #bdbdbd; }

/* step 2 — the characters of the picked type, in its colour */
#view-board #bbx-d1 .bbx-tname::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; vertical-align: 2px;
  background: var(--tc, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc, var(--accent)) 26%, transparent); }
#view-board #bbx-d1 .bbx-backb:hover { border-color: var(--tc, #8f8f8f); }
#view-board #bbx-d1 .bbx-seg button.on { background: var(--tc, var(--accent)); color: #121212; }
#view-board #bbx-d1 .bbx-find:focus-within { border-color: var(--tc, var(--accent)); }
#view-board #bbx-d1 .bbx-chars { gap: 7px; }
#view-board #bbx-d1 .bbx-char { padding: 10px 2px 8px; border-radius: 12px; border: 1px solid #2c2c2c; color: #d6d6d6;
  background: linear-gradient(180deg, #202020, #171717); box-shadow: 0 1px 3px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease; }
#view-board #bbx-d1 .bbx-char.has { color: #fff; border-color: color-mix(in srgb, var(--tc, #9a9a9a) 42%, #2c2c2c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc, #9a9a9a) 11%, #202020), #171717); }
#view-board #bbx-d1 .bbx-char:hover { transform: translateY(-2px); border-color: var(--tc, #9a9a9a);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc, #9a9a9a) 17%, #222), #191919); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
#view-board #bbx-d1 .bbx-char.on { color: #fff; border-color: var(--tc, #9a9a9a);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc, #9a9a9a) 30%, #1c1c1c), color-mix(in srgb, var(--tc, #9a9a9a) 12%, #151515));
  box-shadow: 0 0 0 1px var(--tc, #9a9a9a), 0 6px 18px color-mix(in srgb, var(--tc, #9a9a9a) 24%, transparent); }
#view-board #bbx-d1 .bbx-char .bbx-face { box-shadow: 0 0 0 2px #121212, 0 0 0 3.5px #3c3c3c; transition: transform .12s ease; }
#view-board #bbx-d1 .bbx-char.has .bbx-face { box-shadow: 0 0 0 2px #121212, 0 0 0 3.5px var(--tc, #9a9a9a); }
#view-board #bbx-d1 .bbx-char.on .bbx-face { box-shadow: 0 0 0 2px #121212, 0 0 0 4.5px var(--tc, #9a9a9a); }
#view-board #bbx-d1 .bbx-char:hover .bbx-face { transform: scale(1.06); }
#view-board #bbx-d1 .bbx-char:not(.has):not(.on) .bbx-face img { opacity: .82; filter: saturate(.85); }
#view-board #bbx-d1 .bbx-alsob { background: linear-gradient(180deg, #202020, #181818); border-color: color-mix(in srgb, var(--tc, #9a9a9a) 35%, #333); }
#view-board #bbx-d1 .bbx-alsob:hover { border-color: var(--tc, #9a9a9a); }
#view-board #bbx-d1 .bbx-alsob.on { border-color: var(--tc, #9a9a9a); background: color-mix(in srgb, var(--tc, #9a9a9a) 20%, #181818); }
#view-board #bbx-d1 .bbx-alsob .bbx-face.xs { box-shadow: 0 0 0 1.5px var(--tc, #9a9a9a); }

/* divider 2: the graded cards two to a row once it has the room — the picture and the five lines on top, the figures
   (POP · GEM 10 · GEM RATE · EST.) in one strip across the tile */
#view-board #bbx-d2 { container: bbd2 / inline-size; }
@container bbd2 (min-width: 560px) {
  #view-board .bbx-tiles:not(.cat4) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto;
    column-gap: 10px; row-gap: 8px; align-items: start; padding: 9px 10px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .cl-art { grid-column: 1; grid-row: 1; flex: none; width: 64px; }
  #view-board .bbx-tiles:not(.cat4) .bb-thumb.tile { width: 64px; height: 90px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl { display: contents; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .cl5 { grid-column: 2; grid-row: 1; font-size: 11.5px; padding-right: 24px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .cl5 > .l-name > b { font-size: 14.5px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .cl5 > :is(.l-ly, .l-bl) { margin-right: 0; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .bbx-st { grid-column: 1 / -1; grid-row: 2; margin: 0 92px 0 0; gap: 5px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .bbx-st > span { flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 3px 4px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .bbx-st b { font-size: 14px; line-height: 1.1; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .bbx-est { position: static; grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: stretch; width: 87px;
    box-sizing: border-box; justify-content: center; align-items: center; gap: 1px; padding: 3px 4px; border-radius: 5px; background: #0f1a14; border: 1px solid #24402f; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .bbx-est b { font-size: 14px; }
  #view-board .bbx-tiles:not(.cat4) > .bbx-tile > .bbx-tl > .bbx-eye { top: 8px; right: 9px; }
}
@container bbd2 (min-width: 940px) {
  #view-board .bbx-tiles:not(.cat4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* <</r146-board>> */
/* <<r146-ai>> */
/* ===== ROUND 146 · MAP INSPECT — A DEFECT MAPPED BY HAND ON THE CARD MAP (operator 2026-10-20: 'Ctrl + left click on the
   FULL CARD DEFECT MAP to map the defect manually after the card is physically out of the stage'): the map shows a
   crosshair while Ctrl is held; the row of a mark mapped by hand wears MAP on its picture ===== */
#view-ai #ai-nav.mapping, #view-ai #ai-nav.mapping * { cursor: crosshair; }
#view-ai .ai-mrow.mapped .ai-mthumb { position: relative; }
#view-ai .ai-mrow.mapped .ai-mthumb::after { content: 'MAP'; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); padding: 0 3px; border-radius: 3px;
  background: #E8C547; color: #121212; font: 800 7px/10px var(--rep-font-sc, Bahnschrift, sans-serif); letter-spacing: .5px; pointer-events: none; }
/* <</r146-ai>> */
/* <<r148-binder>> */
/* ===== ROUND 148 · BLACKBINDER — A SOUGHT CARD IN COLOUR UNDER THE POINTER (operator 2026-10-20: 'instead of the full-card
   preview while the mouse is over a card in the binder, make the greyscaled card coloured; the full-card preview is for the
   cards on the right side tab') ===== */
.bd-pk.seek .bd-cd img { transition: filter .18s ease; }
@media (hover: hover) {
  .bd-pk.seek:hover .bd-cd img, .bd-pk.seek.got:hover .bd-cd img { filter: none; }
}
/* <</r148-binder>> */
/* <<r149-binder>> */
/* ===== ROUND 149 · BLACKBINDER — A TALLER SHELF, BINDER TYPES, A HUNT FOUND GLOWS GOLD, LIGHT EVERYWHERE (operator
   2026-10-20: 'Membership# = BLM- and 6 digits · the shelf taller (two stories of six) · unlock new binder types every 3
   binders created · a binder whose hunt is 100 % found glows gold · more glowing cinematic effects on the shelf and the
   binders') =====
   The two stories share the room's height (binder.js fitShelf → --rowh / --sph); every style lights the binders in its own
   colour (--glow): beams from above, an LED strip under the cornice and the first shelf with a cone of light on the
   binders, dust in the light, a sheen running down each spine, a glint on the plate. */
.bd-room { --glow: #ffcf8a; }
:is(.bd-room, .mk-shop).st-walnut { --glow: #ffb866; }
:is(.bd-room, .mk-shop).st-oak { --glow: #ffe1ad; }
:is(.bd-room, .mk-shop).st-steel { --glow: #bfe0ff; }
:is(.bd-room, .mk-shop).st-gallery { --glow: #fff6e6; }
:is(.bd-room, .mk-shop).st-blacklens { --glow: #ff5a55; }
:is(.bd-room, .mk-shop).st-crystal { --glow: #8fe3ff; }
:is(.bd-room, .mk-shop).st-urushi { --glow: #ffc46b; }
:is(.bd-room, .mk-shop).st-arcane { --glow: #ffad5c; }
:is(.bd-room, .mk-shop).st-neon { --glow: #ff4fe0; }
:is(.bd-room, .mk-shop).st-holo { --glow: #3cf2d0; }
:is(.bd-room, .mk-shop).st-royal { --glow: #ffd27a; }
:is(.bd-room, .mk-shop).st-obsidian { --glow: #ffd58a; }
:is(.bd-room, .mk-shop).st-celestial { --glow: #a9bcff; }
:is(.bd-room, .mk-shop).st-crown { --glow: #ffb030; }
/* ---- the taller stories ---- */
.bd-room:not(.mini) .bd-row { height: var(--rowh, 206px); }
.bd-room:not(.mini) .bd-spine, .bd-room:not(.mini) .bd-ghost { height: var(--sph, 188px); }
.bd-room:not(.mini) .bd-spname { font-size: clamp(13.5px, calc(var(--sph, 188px) * .062), 17px); text-shadow: 0 0 8px rgba(255, 255, 255, .16); }
.bd-room:not(.mini) .bd-spine.light .bd-spname { text-shadow: none; }
/* ---- light falling on the shelf ---- */
.bd-rays { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.bd-rays i { position: absolute; top: -14%; height: 128%; width: 24%; left: var(--x); transform-origin: 50% 0; transform: rotate(var(--r));
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(12px); opacity: .5;
  background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 38%, transparent), color-mix(in srgb, var(--glow) 9%, transparent) 55%, transparent 88%);
  animation: bdRay var(--t) ease-in-out infinite alternate; }
.bd-rays i:nth-child(1) { --x: 6%; --r: 13deg; --t: 13s; }
.bd-rays i:nth-child(2) { --x: 29%; --r: 5deg; --t: 17s; animation-delay: -4s; }
.bd-rays i:nth-child(3) { --x: 52%; --r: -5deg; --t: 15s; animation-delay: -9s; }
.bd-rays i:nth-child(4) { --x: 72%; --r: -13deg; --t: 19s; animation-delay: -2s; }
@keyframes bdRay { from { opacity: .3; transform: rotate(var(--r)) translateX(-3%); } to { opacity: .68; transform: rotate(calc(var(--r) + 3deg)) translateX(3%); } }
/* dust drifting in the light */
.bd-motes { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.bd-motes i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 30%, color-mix(in srgb, var(--glow) 75%, transparent) 50%, transparent 72%);
  animation: bdMote var(--t) linear infinite; animation-delay: calc(var(--d) * -1); }
@keyframes bdMote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .75; } 50% { opacity: .4; transform: translate(16px, -46px); } 85% { opacity: .65; } 100% { opacity: 0; transform: translate(-8px, -96px); } }
/* the LED strips under the cornice and under the first shelf, a cone of light on the binders below them */
.bd-room:not(.mini) .bd-crown::after, .bd-room:not(.mini) .bd-story:has(+ .bd-story) > .bd-plank::after {
  content: ''; position: absolute; left: 30px; right: 30px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--glow) 80%, #fff) 8%, color-mix(in srgb, var(--glow) 80%, #fff) 92%, transparent);
  box-shadow: 0 0 6px 1px var(--glow), 0 0 22px 3px color-mix(in srgb, var(--glow) 55%, transparent); animation: bdBreath 6s ease-in-out infinite; }
.bd-room:not(.mini) .bd-row::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 78%; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(64% 100% at 50% 0%, color-mix(in srgb, var(--glow) 24%, transparent), transparent 76%); animation: bdBreath 6s ease-in-out infinite; }
@keyframes bdBreath { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
/* a line of light along the front of each shelf, and the floor catching the glow */
.bd-room:not(.mini) .bd-plank::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; opacity: .7;
  background: linear-gradient(90deg, transparent, var(--glow) 18%, var(--glow) 82%, transparent); box-shadow: 0 0 6px var(--glow); }
.bd-room:not(.mini) .bd-base::before { content: ''; position: absolute; left: 12%; right: 12%; top: 100%; height: 46px; pointer-events: none; z-index: 1;
  background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 70%); filter: blur(4px); }
/* ---- the binders: a sheen running down each spine, a rim of the room's light, a glow when the pointer is on one ---- */
.bd-room:not(.mini) .bd-spine { z-index: 1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 5px 0 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .18), inset 1px 0 0 color-mix(in srgb, var(--glow) 40%, transparent), inset -1px 0 0 rgba(0, 0, 0, .4); }
.bd-room:not(.mini) .bd-spine::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: .85;
  background: linear-gradient(162deg, transparent 40%, rgba(255, 255, 255, .3) 48%, rgba(255, 255, 255, .05) 53%, transparent 60%) 0 100% / 100% 320% no-repeat;
  animation: bdSheen 8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .9s); }
@keyframes bdSheen { 0%, 55% { background-position: 0 100%; } 85%, 100% { background-position: 0 0; } }
.bd-room:not(.mini) .bd-spine:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 70%, transparent), 0 0 20px 3px color-mix(in srgb, var(--glow) 42%, transparent), 0 16px 28px rgba(0, 0, 0, .6); }
.bd-room:not(.mini) .bd-spine:hover::after { animation-duration: 1.8s; animation-delay: 0s; }
.bd-room:not(.mini) .bd-ghost { animation: bdGhost 3.4s ease-in-out infinite; }
@keyframes bdGhost { 0%, 100% { border-color: rgba(255, 255, 255, .22); box-shadow: none; } 50% { border-color: color-mix(in srgb, var(--glow) 70%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 30%, transparent), inset 0 0 14px color-mix(in srgb, var(--glow) 18%, transparent); } }
/* the plate catches a glint */
.bd-room .bd-plate::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .85) 50%, transparent 58%) 160% 0 / 260% 100% no-repeat; animation: bdGlint 9s ease-in-out infinite; }
@keyframes bdGlint { 0%, 70% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
/* a binder whose hunt is all found (or every pocket filled): the golden light, a golden sheen, a golden bar */
.bd-room:not(.mini) .bd-spine.full::after { background-image: linear-gradient(162deg, transparent 38%, rgba(255, 228, 150, .65) 48%, rgba(255, 240, 200, .12) 54%, transparent 62%); animation-duration: 3.6s; }
.bd-spbar.done i, .bd-spine.full .bd-spbar i { background: linear-gradient(90deg, #b8862e, #fff2b8, #c9973a); box-shadow: 0 0 6px rgba(255, 210, 110, .8); }
.bd-spine.hunted .bd-sphunt { color: #ffe39a; opacity: 1; text-shadow: 0 0 6px rgba(255, 200, 90, .8); }
.bd-spine.hunted .bd-spfull { white-space: nowrap; font-size: 7.5px; letter-spacing: .6px; }
/* ---- BINDER TYPES: the material over the cover colour (spines, the opened binder, the dialog's preview and chips) ---- */
.m-canvas { --matbg: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 3px); --stitch: rgba(255, 255, 255, .62); }
.m-leather { --matbg: var(--tx-fine), var(--tx-velvet), radial-gradient(120% 50% at 30% 14%, rgba(255, 255, 255, .15), transparent 60%), linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 30% 70%, rgba(0, 0, 0, .35)); --stitch: #e3bd6c; }
.m-velvet { --matbg: var(--tx-velvet), linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .22) 36%, rgba(255, 255, 255, .05) 52%, rgba(0, 0, 0, .58)); }
.m-carbon { --matbg: repeating-linear-gradient(45deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 4px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, .55) 0 2px, transparent 2px 4px), linear-gradient(rgba(8, 8, 8, .78), rgba(8, 8, 8, .78)); }
.m-metal { --matbg: var(--tx-brushV), linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .58) 22%, rgba(255, 255, 255, .12) 40%, rgba(0, 0, 0, .2) 60%, rgba(255, 255, 255, .4) 80%, rgba(0, 0, 0, .38)); }
.m-holo { --matbg: linear-gradient(115deg, rgba(255, 40, 160, .55), rgba(255, 210, 40, .5) 17%, rgba(40, 255, 170, .5) 34%, rgba(40, 170, 255, .55) 51%, rgba(170, 60, 255, .5) 68%, rgba(255, 40, 160, .55) 85%, rgba(255, 210, 40, .5)), var(--tx-fineL); }
.m-gold { --matbg: var(--tx-fine), linear-gradient(90deg, #5c410f, #f2d27e 18%, #b88a2c 36%, #fff3c0 52%, #a77a22 70%, #e8c769 86%, #5c410f); }
.bd-spmat { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; background: var(--matbg, none); }
.bd-spine > :is(.bd-sptop, .bd-spname, .bd-spmeta, .bd-spbar, .bd-sphunt) { position: relative; z-index: 1; }
.bd-room .bd-spine.mat { background: linear-gradient(180deg, transparent 20px, rgba(216, 200, 154, .55) 20px 21px, transparent 21px, transparent calc(100% - 22px), rgba(216, 200, 154, .45) calc(100% - 22px) calc(100% - 21px), transparent calc(100% - 21px)),
  linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .1) 15%, rgba(255, 255, 255, 0) 32%, rgba(0, 0, 0, .05) 68%, rgba(0, 0, 0, .48)), var(--cv); }
:is(.bd-spine, .bd-matsw).m-canvas > .bd-spmat::before, :is(.bd-spine, .bd-matsw).m-leather > .bd-spmat::before { content: ''; position: absolute; top: 5px; bottom: 5px; left: 4px; right: 4px;
  border-left: 1px dashed var(--stitch); border-right: 1px dashed var(--stitch); opacity: .75; }
:is(.bd-spine, .bd-matsw).m-metal > .bd-spmat::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 7px 7px, #f4f4f4 0 1.6px, #5a5a5a 2.2px, transparent 3px), radial-gradient(circle at calc(100% - 7px) 7px, #f4f4f4 0 1.6px, #5a5a5a 2.2px, transparent 3px),
    radial-gradient(circle at 7px calc(100% - 7px), #f4f4f4 0 1.6px, #5a5a5a 2.2px, transparent 3px), radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #f4f4f4 0 1.6px, #5a5a5a 2.2px, transparent 3px); }
:is(.bd-spine, .bd-matsw).m-carbon > .bd-spmat { box-shadow: inset 2px 0 0 rgba(225, 230, 238, .6), inset -2px 0 0 rgba(225, 230, 238, .45), inset 0 2px 0 rgba(255, 255, 255, .35); }
:is(.bd-spine, .bd-matsw).m-holo > .bd-spmat { mix-blend-mode: hard-light; opacity: .92; background-size: 260% 260%, auto; animation: bdHolo 7s linear infinite; }
@keyframes bdHolo { to { background-position: -260% 0, 0 0; } }
.bd-spine.m-holo:hover > .bd-spmat { animation-duration: 2.4s; }
/* brushed metal: the name and figures on a dark plate so they read on the bright metal */
.bd-room:not(.mini) .bd-spine.m-metal .bd-spname { background: rgba(10, 12, 16, .58); border-color: rgba(255, 255, 255, .38); }
.bd-spine.m-metal :is(.bd-sptop, .bd-spmeta, .bd-sphunt) { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .7); }
.bd-spine.m-metal .bd-sptop { color: #fff3cf; }
.bd-spine.m-gold { color: #2b1c05; }
.bd-spine.m-gold .bd-sptop { color: #5a3f0d; opacity: 1; }
.bd-room:not(.mini) .bd-spine.m-gold .bd-spname { border-color: rgba(60, 40, 5, .4); background: rgba(255, 240, 200, .28); text-shadow: 0 1px 0 rgba(255, 245, 210, .5); }
.bd-room:not(.mini) .bd-spine.m-gold:not(.full) { box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 5px 0 12px rgba(0, 0, 0, .4), 0 0 14px rgba(255, 200, 90, .35), inset 0 1px 0 rgba(255, 250, 220, .6); }
.bd-spine.m-gold .bd-spbar { background: rgba(60, 40, 5, .35); }
/* the opened binder and the dialog's preview */
.bd-book.mat { background: var(--matbg), radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 60%), var(--cv); }
.bd-mini.mat { background: var(--matbg), var(--cv); }
.bd-book.m-holo, .bd-mini.m-holo { background-blend-mode: hard-light, normal, normal; }
/* the BINDER TYPE chips in NEW / EDIT BINDER */
.bd-matn { font-style: normal; margin-left: 6px; color: #8f8f8f; letter-spacing: .6px; }
.bd-mats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bd-matc { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 44px; padding: 5px 8px 5px 6px; border-radius: 8px; cursor: pointer;
  border: 1px solid #353535; background: linear-gradient(180deg, #232323, #191919); color: #e6e6e6; text-align: left; font: inherit; }
.bd-matc:hover { border-color: #6a6a6a; }
.bd-matc.on { border-color: var(--bd-gold, #d8c89a); box-shadow: 0 0 0 1px var(--bd-gold, #d8c89a), 0 0 14px rgba(216, 200, 154, .25); }
.bd-matc.locked { cursor: not-allowed; opacity: .55; filter: saturate(.4); }
.bd-matc > b { grid-column: 2; font: 800 10px/1.15 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: .6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-matc > i { grid-column: 2; font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .5px; color: #a6a6a6; white-space: nowrap; }
.bd-matc.on > i { color: var(--bd-gold, #d8c89a); }
.bd-matsw { grid-row: 1 / 3; position: relative; width: 22px; height: 34px; border-radius: 3px 3px 2px 2px; overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .12) 18%, rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, .45)), var(--cv); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.bd-matsw.m-classic { background: var(--tx-cloth), linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .12) 18%, rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, .45)), var(--cv); }
.bd-matsw > .bd-spmat::before { top: 3px !important; bottom: 3px !important; left: 2px !important; right: 2px !important; }
@media (prefers-reduced-motion: reduce) {
  .bd-rays i, .bd-motes i, .bd-room .bd-spine::after, .bd-room .bd-row::after, .bd-room .bd-crown::after, .bd-room .bd-plank::after, .bd-room .bd-plate::before, .bd-room .bd-ghost, .bd-spmat { animation: none !important; }
  .bd-motes { display: none; }
}
/* <</r149-binder>> */
/* <<r150-binder>> */
/* ===== ROUND 150 · BLACKBINDER — SIX BINDERS FILL A STORY (operator 2026-10-20: 'why is there space left after filling the top
   shelf with 6?'): every place on a story is a sixth of it (the binder or the NEW BINDER place); the story is as wide as six
   binders of the fitted height want (binder.js fitShelf → --roww) ===== */
.bd-room:not(.mini) .bd-row { width: var(--roww, 640px); min-width: 0; }
.bd-room:not(.mini) .bd-row > :is(.bd-spine, .bd-ghost) { flex: none; width: calc((100% - 5 * 10px) / 6); box-sizing: border-box; }
/* <</r150-binder>> */



/* <<r151-markt>> */
/* ===== ROUND 151 · BLACKMARKT — MERCHANT SHELVES (operator 2026-10-20: 'BLACKMARKT is synced directly to the items stored in a
   merchant's binder · redesign BLACKMARKT to suit the new visuals'): BROWSE opens on every seller's merchant binders standing on
   their own shelf style; a binder opens as a book — its pockets the cards for sale, their prices on them; the grid under it lists
   every card for sale, a binder's card naming its binder ===== */
#view-markt .mk-shops { margin: 2px 0 18px; }
.mk-shopshd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.mk-shopshd b, .mk-ghead b { display: flex; align-items: center; gap: 9px; font: 800 calc(14.5px * var(--pf-fs, 1))/1.1 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: 2px; color: #f4f4f4; }
.mk-shopshd b::before, .mk-ghead b::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: #ab9b6f; }
.mk-ghead b::before { background: var(--accent); }
.mk-shopshd span, .mk-ghead span { display: block; margin-top: 4px; font-size: calc(11px * var(--pf-fs, 1)); color: var(--pf-ink3); }
.mk-myshelf { flex: 0 0 auto; border-color: #ab9b6f !important; color: #e7d9a8 !important; }
.mk-shoprow { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mk-shop { flex: 0 0 auto; width: min(400px, 86vw); scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: var(--room, #141414); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 34px -14px var(--glow, #fff6e6); }
.mk-shop.mine { border-color: #ab9b6f; }
.mk-shop.solo { width: 100%; margin: 4px 0 6px; }
.mk-shophd { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 13px 9px; cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .28)); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mk-shophd:hover { background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18)); }
.mk-shopnm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-shopnm b { font-size: calc(14px * var(--pf-fs, 1)); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-shopnm span { display: flex; align-items: center; gap: 6px; font-size: calc(11px * var(--pf-fs, 1)); }
.mk-shophd > i { font-style: normal; text-align: right; font: 700 calc(9px * var(--pf-fs, 1))/1.35 var(--rep-font-sc); letter-spacing: 1.2px; color: #cfcfcf; white-space: nowrap; }
.mk-shophd > i b { color: #f2d27e; font-size: 1.25em; }
.mk-shopwall { position: relative; padding: 16px 16px 0; background: var(--wall, #1a1a1a); box-shadow: inset 0 16px 26px -12px rgba(0, 0, 0, .85); }
.mk-shopwall::before { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(60% 75% at 50% 0%, var(--light, rgba(255, 255, 255, .16)), transparent 72%); }
.mk-shopbins { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 176px; }
.mk-shopplank { position: relative; height: 15px; margin: 0 -16px; background: var(--txh, none), var(--plank, #3a2a1a); box-shadow: 0 7px 14px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .28); }
.mk-shopplank::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--glow, #fff6e6); opacity: .35; filter: blur(1px); }
.mk-spine { --cv: #141414; position: relative; flex: 0 0 54px; height: 164px; border: 0; padding: 10px 0 9px; border-radius: 5px 5px 2px 2px; cursor: pointer; color: #f4f4f4;
  display: flex; flex-direction: column; align-items: center; gap: 7px; overflow: hidden; font: inherit;
  background: var(--tx-cloth, none), linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .14) 18%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .5)), var(--cv);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), 0 7px 12px rgba(0, 0, 0, .55); transition: transform .18s, box-shadow .18s; }
.mk-spine:hover, .mk-spine:focus-visible { transform: translateY(-9px); outline: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), 0 16px 24px rgba(0, 0, 0, .6), 0 0 20px -3px var(--glow, #fff); }
.mk-spine > .bd-spmat { position: absolute; inset: 0; z-index: 0; }
.mk-spine > :not(.bd-spmat) { position: relative; z-index: 1; }
.mk-sptop { font: 800 6.5px/1 var(--rep-font-sc); letter-spacing: 1.6px; color: rgba(255, 255, 255, .72); }
.mk-spnm { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mk-spnm em { font-style: normal; writing-mode: vertical-rl; transform: rotate(180deg); font: 800 12.5px/1 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%;
  padding: 7px 4px; border-radius: 3px; background: rgba(0, 0, 0, .28); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.mk-spn { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.mk-spn b { font: 800 16px/1 var(--rep-font); color: #f2d27e; text-shadow: 0 1px 2px #000; }
.mk-spn i { font-style: normal; font-size: 5.5px; letter-spacing: 1px; color: rgba(255, 255, 255, .78); }
.mk-spine.light { color: #141414; }
.mk-spine.light .mk-sptop, .mk-spine.light .mk-spn i { color: rgba(0, 0, 0, .62); }
.mk-spine.light .mk-spnm em { background: rgba(255, 255, 255, .3); text-shadow: none; }
.mk-spine.light .mk-spn b { color: #6b4f0e; text-shadow: none; }
.mk-shopsnone { border: 1px dashed #3a3a3a; border-radius: 12px; padding: 16px 18px; color: #a9a9a9; font-size: calc(12.5px * var(--pf-fs, 1)); line-height: 1.45; background: #121212; }
.mk-ghead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.mk-ghead span { margin: 0; }
/* a tile from a merchant binder names it */
.mk-tbind { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; font: 800 calc(8.5px * var(--pf-fs, 1))/1.2 var(--rep-font-sc); letter-spacing: 1px; color: #e7d9a8;
  padding: 3px 7px 3px 4px; border-radius: 5px; background: #1b1810; border: 1px solid #5c5340; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tbind i { flex: 0 0 auto; width: 6px; height: 12px; border-radius: 1px; background: var(--cv); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
/* the listing: OPEN THE BINDER, and the seller's own binder card */
.mk-openbk { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; margin: 4px 0 10px; padding: 8px 12px 8px 9px; border-radius: 11px;
  border: 1px solid #ab9b6f; background: linear-gradient(180deg, #2a2414, #1b1810); color: #f2e6c4; text-align: left; cursor: pointer; font: inherit; }
.mk-openbk:hover { filter: brightness(1.12); }
.mk-openbk > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-openbk b { font: 800 calc(12px * var(--pf-fs, 1))/1 var(--rep-font); letter-spacing: 1.4px; color: #fff; }
.mk-openbk i { font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); color: #cbbf9d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-openbk em { font-style: normal; font-size: 22px; color: #e7d9a8; }
.mk-obsw { position: relative; display: block; width: 22px; height: 34px; border-radius: 3px 3px 2px 2px; overflow: hidden; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .12) 18%, rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, .45)), var(--cv); box-shadow: 0 2px 5px rgba(0, 0, 0, .5); }
.mk-minebk { border-color: #ab9b6f !important; }
.mk-bkback { margin-right: 8px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid #ab9b6f; background: #1b1810; color: #e7d9a8; font: 800 10px/1 var(--rep-font); letter-spacing: 1.2px; cursor: pointer; }
/* ---- THE BINDER VIEWER ---- */
.mk-win.book { width: min(100%, 1180px); }
.mk-bkbody { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.mk-bk { --cv: #141414; --pgc: #0c0c0c; --ar: 1.47; flex: none; align-self: center; width: min(100%, calc((86vh - 300px) * var(--ar) + 110px)); box-sizing: border-box; position: relative; padding: 16px; border-radius: 14px; overflow: hidden;
  background: var(--tx-cloth, none), linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .07) 50%, rgba(0, 0, 0, .45)), var(--cv);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 40px rgba(0, 0, 0, .4); }
.mk-bk > .bd-spmat { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.mk-bkspread { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.mk-bkspread.one { grid-template-columns: minmax(0, 1fr); }
.mk-bkrings { display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; }
.mk-bkrings i { width: 24px; height: 12px; border-radius: 6px; background: linear-gradient(180deg, #fafafa, #8a8a8a 60%, #d8d8d8); box-shadow: 0 2px 5px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(0, 0, 0, .3); }
.mk-bkpg { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; padding: 14px 12px 12px; background: var(--pgc); border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 12px 30px rgba(0, 0, 0, .45); }
.mk-bkpno { position: absolute; right: 10px; bottom: 2px; font: 700 8px/1 var(--rep-font-sc); letter-spacing: 1px; color: rgba(255, 255, 255, .32); }
.mk-bkpk { position: relative; display: block; aspect-ratio: .736; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .14); padding: 0; margin: 0; cursor: default; overflow: hidden; font: inherit; color: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, .09)); }
.mk-bk.pk-saver .mk-bkpk { --inx: 8.333%; --iny: 6.897%; aspect-ratio: .7406; }
.mk-bk.pk-toploader .mk-bkpk { --inx: 5.357%; --iny: 4.128%; aspect-ratio: .7356; border-width: 2px; }
.mk-bk.pk-sleeve .mk-bkpk { --inx: 1.923%; --iny: 1.456%; aspect-ratio: .7229; }
.mk-bksl { position: absolute; inset: var(--iny, 4.2%) var(--inx, 5.4%); border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, .28); display: flex; align-items: center; justify-content: center; }
.mk-bksl img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mk-bksl > i { font-style: normal; font-size: 10px; color: #bdbdbd; padding: 6px; text-align: center; }
.mk-bkpk.has { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mk-bkpk.has:hover, .mk-bkpk.has:focus-visible { transform: translateY(-3px) scale(1.025); z-index: 2; outline: none; border-color: #d8c89a; box-shadow: 0 12px 24px rgba(0, 0, 0, .6), 0 0 0 2px #ab9b6f, 0 0 22px -4px rgba(216, 200, 154, .6); }
.mk-bkpk.hot { border-color: #d8c89a; box-shadow: 0 0 0 2px #ab9b6f; }
.mk-bktag { position: absolute; right: 4px; bottom: 4px; z-index: 2; padding: 4px 6px; border-radius: 5px; background: rgba(10, 10, 10, .9); border: 1px solid #ab9b6f; color: #f2d27e;
  font: 800 clamp(9px, .85vw, 12px)/1 var(--rep-font); white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.mk-bkg { position: absolute; left: 4px; top: 4px; z-index: 2; max-width: calc(100% - 8px); padding: 3px 5px; border-radius: 4px; background: rgba(0, 0, 0, .8); color: #fff; font: 800 clamp(7px, .6vw, 8.5px)/1 var(--rep-font-sc); letter-spacing: .5px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bkpk.res::after { content: 'RESERVED'; position: absolute; left: -26px; top: 16px; z-index: 3; width: 112px; transform: rotate(-35deg); text-align: center; background: var(--accent); color: #fff; font: 800 8px/1.9 var(--rep-font-sc); letter-spacing: 1.4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.mk-bkpk.mine .mk-bktag { border-color: #7ED4A6; }
.mk-bk.light .mk-bkrings i { box-shadow: 0 2px 5px rgba(0, 0, 0, .35); }
.mk-bknav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mk-bknav b { min-width: 170px; text-align: center; font: 700 calc(12px * var(--pf-fs, 1))/1 var(--rep-font); letter-spacing: 1.2px; color: #e6e6e6; }
.mk-bknav .pf-qbtn { width: 46px; height: 36px; padding: 0; font-size: 20px; }
.mk-bkhint { text-align: center; margin: 0; }
.mk-btns.center { justify-content: center; }
@media (max-width: 760px) {
  .mk-shopbins { height: 150px; }
  .mk-spine { flex-basis: 46px; height: 140px; }
  .mk-bk { padding: 10px; }
  .mk-bkpg { gap: 6px; padding: 10px 8px 10px; }
}
/* <</r151-markt>> */
/* <<r151-binder>> */
/* ===== ROUND 151 · BLACKBINDER — TWO SHELVES SIDE BY SIDE (operator 2026-10-20: 'allow 2 shelves side by side, 2 dividers:
   the COLLECTOR'S SHELF to store and hunt, the MERCHANT'S SHELF to sell the cards stored in its binders — synced to
   BLACKMARKT, LIST ON BLACKMARKT; the side section more user friendly — I could not enter my binder because EDIT was on'):
   each shelf a column with its own divider (red · gold), its head (what it is, its figures, its buttons) and its room;
   no EDIT mode — a click opens a binder, its ✎ edits it ===== */
.bd-body.shelf2 { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 12px; align-items: stretch; }
.bd-shelves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
.bd-shcol { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 7px; min-width: 0; height: calc(100vh - 168px); min-height: 520px; }
/* the dividers: the studio's grand section boxes — red for the collector, BLACKMARKT's gold for the merchant */
.bd-shdiv { display: flex; align-items: flex-end; justify-content: center; border-radius: 6px; border: 1px solid var(--accent); background: linear-gradient(180deg, #7e2c28, #3a1615 55%, #2b1210); overflow: hidden; }
.bd-shdiv.k-merchant { border-color: #ab9b6f; background: linear-gradient(180deg, #6e5f36, #2c2614 55%, #1d190d); }
.bd-shdiv span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 14px 0; font: 400 13.5px/1 Bahnschrift, 'Barlow Semi Condensed', 'Segoe UI', sans-serif; font-stretch: semi-condensed; letter-spacing: .42em; color: #e8e8e8; white-space: nowrap; }
.bd-shmain { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
/* the shelf's head: its name and what it is for · its figures · STYLE, + BINDER and its own action */
.bd-shhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tt acts" "st acts"; gap: 3px 12px; align-items: center; padding: 9px 11px 9px 13px; border-radius: 11px;
  background: linear-gradient(180deg, #1b1b1b, #121212); border: 1px solid #2a2a2a; box-shadow: inset 3px 0 0 var(--accent); }
.bd-shcol.k-merchant .bd-shhead { box-shadow: inset 3px 0 0 #ab9b6f; }
.bd-shtt { grid-area: tt; display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.bd-shtt b { font: 800 15px/1.1 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: 1.6px; color: #fff; white-space: nowrap; }
.bd-shtt i { font-style: normal; font-size: 11px; color: #9f9f9f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bd-shst { grid-area: st; display: flex; flex-wrap: wrap; gap: 3px 14px; font: 600 10px/1.3 var(--rep-font-sc); font-stretch: 87.5%; letter-spacing: 1.1px; color: #a9a9a9; }
.bd-shst b { color: #f2f2f2; font-size: 12px; }
.bd-shst em { font-style: normal; color: #7ED4A6; }
.bd-shacts { grid-area: acts; display: flex; align-items: center; gap: 6px; }
.bd-shacts .bd-btn.sm { height: 30px; padding: 0 11px; font-size: 10px; }
.bd-stbtn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px 0 4px; border-radius: 8px; border: 1px solid #4d4d4d; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); color: #ececec;
  font: 700 10px/1 var(--rep-font); letter-spacing: 1.2px; cursor: pointer; }
.bd-stbtn:hover { border-color: #8f8f8f; }
.bd-stbtn .bd-stsw { width: 30px; height: 22px; border-radius: 5px; }
.bd-stbtn.r-secret { border-color: #ab9b6f; }
.bd-btn.green { background: linear-gradient(180deg, #2d7a52, #1d5c3c); border-color: #4fa77a; color: #fff; }
.bd-btn.green:hover { filter: brightness(1.1); }
/* the rooms fill their column */
.bd-shmain > .bd-room { flex: 1 1 0; min-height: 0 !important; height: auto !important; padding: 80px 16px 14px; }
.bd-room.k-merchant::after { background: radial-gradient(120% 95% at 50% 42%, transparent 48%, rgba(0, 0, 0, .7) 100%), linear-gradient(180deg, transparent 74%, rgba(40, 32, 12, .55)); }
.bd-shmain > .bd-room > .bd-note { font-size: 10.5px; max-width: 520px; }
@media (max-height: 960px) { .bd-shmain > .bd-room { padding: 52px 14px 10px; } }
/* the merchant's sign at the top right */
.bd-plate.shop .bd-ptx b i { font-style: normal; color: var(--bd-gold2, #e7d9a8); }
.bd-plate.shop .bd-ptx small { display: block; margin-top: 1px; font: 700 6.5px/1.2 var(--rep-font-sc); letter-spacing: 1.2px; opacity: .85; }
/* every binder's ✎ EDIT — always there, never a mode */
.bd-room .bd-spine .bd-sped { position: absolute; left: 50%; bottom: 7px; z-index: 6; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 5px; border-radius: 10px;
  background: rgba(10, 10, 10, .78); border: 1px solid rgba(255, 255, 255, .28); color: #fff; opacity: .62; transition: opacity .15s, background .15s, border-color .15s; }
.bd-room .bd-spine .bd-sped svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bd-room .bd-spine .bd-sped b { font: 800 7px/1 var(--rep-font-sc); letter-spacing: 1px; }
.bd-room .bd-spine:hover .bd-sped, .bd-room .bd-spine:focus-visible .bd-sped { opacity: 1; }
.bd-room .bd-spine .bd-sped:hover { background: var(--accent); border-color: #fff; }
.bd-room .bd-spine:has(.bd-sped) .bd-spmeta { margin-bottom: 24px; }
.bd-room .bd-spine.merch > .bd-sptop { visibility: hidden; }
/* a merchant binder: LIVE on BLACKMARKT or not */
.bd-splive { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); z-index: 6; font: 800 7px/1 var(--rep-font-sc); letter-spacing: .9px; padding: 3px 5px; border-radius: 4px; background: rgba(0, 0, 0, .66); color: #bdbdbd; border: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; }
.bd-splive.on { color: #9ff0c6; border-color: #3f9a6c; box-shadow: 0 0 10px rgba(126, 212, 166, .35); }
/* the side: HOW IT WORKS · the room's background · HUNT LIST | FOR SALE */
.bd-side.v2 { max-height: calc(100vh - 168px); }
.bd-howto ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.bd-howto li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 6px; font-size: 11px; color: #bdbdbd; line-height: 1.35; }
.bd-howto li b { font: 800 9px/1.4 var(--rep-font-sc); letter-spacing: 1.1px; color: #fff; background: #262626; border: 1px solid #3a3a3a; border-radius: 5px; padding: 1px 5px; text-align: center; }
.bd-sidetabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; margin: -2px -2px 9px; border-radius: 9px; background: #0e0e0e; border: 1px solid #262626; }
.bd-sidetabs button { height: 30px; border: 0; border-radius: 7px; background: transparent; color: #a9a9a9; font: 800 10px/1 var(--rep-font); letter-spacing: 1.2px; cursor: pointer; }
.bd-sidetabs button.on { background: linear-gradient(180deg, #e3605d, #c43f3c); color: #fff; }
.bd-sidetabs button[data-stab="sale"].on { background: linear-gradient(180deg, #c9b98b, #ab9b6f); color: #141414; }
.bd-sidetabs em { font-style: normal; margin-left: 5px; padding: 1px 5px; border-radius: 6px; background: rgba(0, 0, 0, .35); }
.bd-sales li { gap: 8px; }
.bd-sales .bd-sa { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin-left: auto; flex: 0 0 auto; }
.bd-sales .pe { font: 800 12px/1 var(--rep-font); color: #f2d27e; white-space: nowrap; }
.bd-sales .pe.w { color: #7a7a7a; }
.bd-sales .sx { font: 800 7.5px/1 var(--rep-font-sc); letter-spacing: 1px; padding: 2px 5px; border-radius: 4px; border: 1px solid #3a3a3a; color: #9a9a9a; white-space: nowrap; }
.bd-sales .sx.live { color: #9ff0c6; border-color: #3f9a6c; background: #0f1a14; }
.bd-sales .sx.res { color: #fff; border-color: var(--accent); background: #3a1615; }
.bd-sales .sx.sold { color: #141414; background: #ab9b6f; border-color: #d8c89a; }
.bd-sales li.sold { opacity: .72; }
.bd-hlhead em.g { color: #7ED4A6; }
/* ---- inside a merchant binder ---- */
.bd-binfo.merch { box-shadow: inset 3px 0 0 #ab9b6f; }
.bd-mkcard .bd-h i { font-style: normal; margin-left: 6px; font-size: 9px; letter-spacing: 1.2px; color: #8f8f8f; }
.bd-mkcard.on .bd-h i { color: #7ED4A6; }
.bd-mkcard.on { border-color: #3f9a6c; box-shadow: 0 0 0 1px rgba(63, 154, 108, .35), 0 0 22px -8px rgba(126, 212, 166, .5); }
.bd-mksw { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #ab9b6f; background: linear-gradient(180deg, #2a2414, #1b1810); color: #f2e6c4; cursor: pointer;
  font: 800 12px/1 var(--rep-font); letter-spacing: 1.4px; }
.bd-mksw:hover { filter: brightness(1.12); }
.bd-mksw .tr { position: relative; flex: 0 0 auto; width: 38px; height: 20px; border-radius: 10px; background: #3a3a3a; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); transition: background .15s; }
.bd-mksw .tr i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #f2f2f2; transition: left .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.bd-mksw.on { border-color: #4fa77a; background: linear-gradient(180deg, #1d4a33, #12301f); color: #fff; }
.bd-mksw.on .tr { background: #7ED4A6; }
.bd-mksw.on .tr i { left: 20px; }
.bd-mkst { margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: #bdbdbd; }
.bd-mkst b { color: #fff; }
.bd-mkopts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.bd-mkopts .bd-chip { height: 26px; font-size: 9px; padding: 0 8px; }
.bd-mkrow { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; align-items: end; margin-top: 9px; }
.bd-mkall > i { display: block; font: 700 8px/1 var(--rep-font-sc); letter-spacing: 1.1px; color: #8f8f8f; margin-bottom: 4px; font-style: normal; }
.bd-mkall > span { display: flex; gap: 4px; }
.bd-mkall .bd-chip { height: 28px; flex: 1 1 0; padding: 0 4px; font-size: 9px; justify-content: center; }
.bd-mkopen { width: 100%; margin-top: 10px; }
/* the picked pocket's asking price */
.bd-ask { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 6px; padding: 8px; border-radius: 9px; background: #15130d; border: 1px solid #3a3322; }
.bd-ask input { font-size: 15px !important; font-weight: 800; color: #f2d27e; }
.bd-askq { display: flex; gap: 4px; }
.bd-askq .bd-chip { flex: 1 1 0; height: 26px; font-size: 9px; padding: 0 4px; justify-content: center; }
.bd-askst { font: 800 8.5px/1.2 var(--rep-font-sc); letter-spacing: 1px; color: #9a9a9a; }
.bd-askst.active { color: #9ff0c6; }
.bd-askst.reserved { color: #ff9e9b; }
.bd-asksold { margin: 8px 0; padding: 7px 9px; border-radius: 8px; background: #2a2414; border: 1px solid #ab9b6f; color: #f2e6c4; font-size: 11px; }
/* a merchant pocket: its price, LIVE / RESERVED / SOLD */
.bd-pk.merch .bd-ptag { position: absolute; right: 3px; bottom: 3px; z-index: 4; padding: 3px 6px; border-radius: 5px; background: rgba(10, 10, 10, .86); border: 1px solid #5c5340; color: #f2d27e;
  font: 800 clamp(8px, .7vw, 11px)/1 var(--rep-font); white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .55); pointer-events: none; }
.bd-pk.merch .bd-ptag.live { border-color: #4fa77a; box-shadow: 0 0 10px rgba(126, 212, 166, .35), 0 2px 6px rgba(0, 0, 0, .55); }
.bd-pk.merch.off .bd-ptag { color: #cfcfcf; border-style: dashed; }
.bd-pk.merch .bd-rib { bottom: auto; top: 3px; }
.bd-pk.merch .bd-rib.sold { background: #ab9b6f; color: #141414; }
.bd-pk.merch .bd-rib.res { background: var(--accent); color: #fff; }
.bd-pk.merch.sold .bd-cd img { filter: grayscale(.85) brightness(.55); }
.bd-pk.merch.active .bd-sleeve { box-shadow: 0 0 0 1px rgba(126, 212, 166, .35), 0 0 14px -4px rgba(126, 212, 166, .5); }
/* NEW / EDIT BINDER: which shelf */
.bd-shchips .bd-chip em { font-style: normal; font-weight: 500; color: #9a9a9a; letter-spacing: 0; }
.bd-shchips .bd-chip.on em { color: inherit; opacity: .85; }
/* narrower computers: the two rooms keep their binders, the side a little narrower */
@media (max-width: 1500px) {
  .bd-body.shelf2 { grid-template-columns: minmax(0, 1fr) 256px; gap: 10px; }
  .bd-shelves { gap: 9px; }
  .bd-shtt i { display: none; }
  .bd-shacts .bd-btn.sm { padding: 0 8px; font-size: 9px; }
  .bd-stbtn { padding: 0 7px 0 4px; } .bd-stbtn > span:last-child { display: none; }
  .bd-shmain > .bd-room { padding-left: 10px; padding-right: 10px; }
  .bd-howto li { grid-template-columns: 56px minmax(0, 1fr); font-size: 10.5px; }
}
/* <</r151-binder>> */
/* <<r154>> ROUND 154 (operator 2026-10-21) — BLACKBOARD's not-graded printings by LANGUAGE · the ADD pop-up (a search
   result's box, the EDIT box's twin, over the ADD A CARD window: PORTFOLIO or BINDER) */
#view-board .bbx-catbar .bbx-catlang .bbx-seg { flex-wrap: wrap; }
/* round 156: five sorts (Newest · Oldest · Highest price · Lowest price · Most popular) — the chips wrap inside a narrow divider */
#view-board .bbx-catbar .bbx-fg { min-width: 0; max-width: 100%; }
#view-board .bbx-catbar .bbx-fg .bbx-seg { flex-wrap: wrap; flex: 0 1 auto; min-width: 0; }
@media (max-width: 900px) { #view-board .bbx-catbar { gap: 8px 10px; } #view-board .bbx-catbar .bbx-fg { flex-wrap: wrap; } }
/* over the search window (z 88) and the hover preview, under the calendar (119 / 120) */
#view-port .pf-epop.addp { z-index: 96; }
.pf-epop .ep-grid .a-dest { grid-area: dest; } .pf-epop .ep-grid .a-bnd { grid-area: bnd; }
.pf-epop .ep-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 9px; background: #e2e2e2; border: 1px solid #cfcfcf; }
.pf-epop .ep-seg button { height: calc(26px * var(--pf-fs, 1)); border: 1px solid transparent; border-radius: 7px; background: transparent; color: #555555; cursor: pointer;
  font: inherit; font-family: var(--rep-font-sc); font-stretch: 87.5%; font-size: calc(11px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.2px; }
.pf-epop .ep-seg button:hover { color: #111111; }
.pf-epop .ep-seg button.on { background: var(--accent); border-color: #b8302d; color: #ffffff; box-shadow: 0 1px 4px rgba(220, 79, 76, .35); }
.pf-epop .ep-seg button:focus-visible { outline: 2px solid #1c1c1c; outline-offset: 1px; }
.pf-epop .a-bnd .pm-hint { display: block; font-style: normal; }
.pf-epop.addp .ep-foot .ep-b { flex: 0 0 auto; }
.pf-epop.addp .ep-foot .ap-go { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-epop.ph .ep-seg button { height: 40px; font-size: calc(13px * var(--pf-fs, 1)); }
/* a phone: the ADD box holds two more rows than the EDIT box (ADD TO, FOLDER / BINDER) — a step tighter so every field shows */
#view-port .pf-epop.addp.ph .ep-grid { gap: 5px 10px; }
#view-port .pf-epop.addp.ph :is(.pm-f select, .pm-f input, .pm-f .pm-date, .pm-ro, .pm-step button, .pm-today) { height: 38px; }
#view-port .pf-epop.addp.ph .pm-f { gap: 2px; }
#view-port .pf-epop.addp.ph .ep-seg button { height: 32px; }
#view-port .pf-epop.addp.ph .ep-price { padding: 5px 14px; }
@media (max-height: 760px) { #view-port .pf-epop.addp.ph :is(.pm-f select, .pm-f input, .pm-f .pm-date, .pm-ro, .pm-step button, .pm-today) { height: 34px; } #view-port .pf-epop.addp.ph .ep-head .ep-art { width: 32px; height: 45px; } }
/* <</r154>> */
/* <<r156-binder>> */
/* ===== ROUND 156 · BLACKBINDER — THE MERCHANT'S BINDER HAS EVERY COLLECTOR FUNCTION · FILL BINDER · PRICE TAGS
   (operator 2026-10-22: 'the Merchant's Shelf Binder has all the options of the Collector's — hunt for cards, etc.; Hunt
   for cards = Fill Binder' · 'a Price Tag where the word sought is usually placed (if shared)') ===== */
/* the right panel: MY CARDS · FIND · HUNT LIST · FOR SALE (four in a merchant binder; short words on a narrower computer) */
.bd-tabs .short, .bd-shacts .short { display: none; }
.bd-tabs.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.bd-tabs.n4 button { padding: 0 2px; font-size: 9.5px; letter-spacing: .6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-tabs.n4 button[data-tab="sale"].on { background: linear-gradient(180deg, #c9b98b, #ab9b6f); color: #141414; }
.bd-tabs.n4 button[data-tab="sale"].on em { color: #141414; }
@media (max-width: 1500px) { .bd-tabs.n4 .full { display: none; } .bd-tabs.n4 .short { display: inline; } }
/* the merchant's head holds four buttons: below 1760 px the labels go short (FILL · the shop icon) so the title keeps its line */
@media (max-width: 1760px) {
  .bd-shacts .full { display: none; } .bd-shacts .short { display: inline; }
  .bd-shacts .bd-shmkt { width: 40px; padding: 0 !important; justify-content: center; }
  .bd-shacts .bd-shmkt svg.short { display: inline-block; }
}
/* a head's figures on one line — the last ones give way on a narrow head (binder.js fitHeads), the line's tooltip names them all */
.bd-shcol .bd-shst { flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.bd-shcol .bd-shst > span { flex: none; white-space: nowrap; }
.bd-shcol .bd-shst > span[hidden] { display: none; }
.bd-shacts .bd-shmkt svg.short { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
/* IN THIS BINDER of a merchant binder: FOR SALE · LIVE · SOLD · SEEKING · EMPTY */
.bd-stats.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.bd-stats.n5 span { padding: 7px 1px; }
.bd-stats.n5 b { font-size: 16px; }
.bd-stats.n5 i { font-size: 7.5px; letter-spacing: .5px; }
.bd-stats .lv b { color: #7ED4A6; }
/* the price tag where SEEKING sits — bottom centre; SOLD / RESERVED stay at the top; a click types the price */
.bd-pk .bd-rib.tag { padding: 3px 7px; border-radius: 5px; background: rgba(10, 10, 10, .88); border: 1px solid #5c5340; color: #f2d27e; letter-spacing: .3px;
  font: 800 clamp(8px, .7vw, 11px)/1 var(--rep-font); cursor: pointer; z-index: 4; }
.bd-pk.merch .bd-rib.tag { top: auto; bottom: 1px; }
.bd-pk .bd-rib.tag:hover { border-color: #d8c89a; color: #fff; }
.bd-pk .bd-rib.tag.live { border-color: #4fa77a; box-shadow: 0 0 10px rgba(126, 212, 166, .35), 0 2px 6px rgba(0, 0, 0, .55); }
.bd-pk.merch.off .bd-rib.tag { color: #cfcfcf; border-style: dashed; }
.bd-pk .bd-rib.tag.val { font-weight: 700; }
.bd-pk.mseek .bd-rib { cursor: pointer; }
.bd-pk.mseek .bd-rib.tag.sk { border-style: dashed; border-color: #ab9b6f; }
.bd-pk.got .bd-rib.tag { background: rgba(10, 10, 10, .88); }
.bd-pk.locked .bd-x { display: none; }
/* the pocket inspector: the BLACKLENS grade and Job# (opens BLACKVAULT), a sought card's PRICE TAG */
.bd-inscard em.bl { display: inline-flex; align-items: center; gap: 5px; color: #d6d6d6; }
.bd-inscard em.bl .blp { padding: 1px 5px; border-radius: 4px; background: #3a1615; border: 1px solid var(--accent); color: #fff; font-size: 9.5px; letter-spacing: .4px; }
.bd-inscard em.bl a.l-job { color: #d8c89a; text-decoration: none; font-weight: 800; letter-spacing: .4px; }
.bd-inscard em.bl a.l-job:hover { color: #fff; text-decoration: underline; }
.bd-ask.seek { border-style: dashed; }
.bd-ask input:disabled { opacity: .6; }
.bd-seeks em u.tg { text-decoration: none; color: #f2d27e; font-style: normal; }
/* FILL BINDER: the shelf a new binder goes on */
/* one row as before: NAME · SHELF · POCKETS A PAGE · POCKET — the shelf's hint rides in the chip's tooltip */
@media (min-width: 1101px) { .bd-plnew:has(.bd-shchips) { grid-template-columns: minmax(150px, 1fr) auto auto auto; } }
.bd-plnew .bd-shchips { flex-wrap: nowrap; }
.bd-plnew .bd-shchips .bd-chip em { display: none; }
/* MARK AS DONE in a merchant binder: its price tag */
.bd-dngrid .bd-dntag input { font-size: 15px; font-weight: 800; color: #f2d27e; }
/* <</r156-binder>> */


/* <<r156-phone>> */
/* ===== ROUND 156 · BLACKBINDER ON THE PHONE (operator 2026-10-22: 'ensure the binder option works on Mobile also'). A phone
   (body.mv) reaches BLACKBINDER from BLACKPORT's BINDERS tab, YOUR ACCOUNT and BLACKMARKT; one shelf at a time, one page at a
   time, a pocket sheet in place of the side panels, dialogs as bottom sheets. Every rule is a phone's — the computer keeps
   its layout. Controls 40 px or more, text fields 16 px (iOS never zooms). ===== */
/* BLACKPORT's fifth tab (phone only) — PERFORMANCE reads PERF. when five share the line */
#pf-tabs .pf-ts { display: none; }
body.mv #pf-tabs.t5 button { flex: 1 1 auto; padding: 0 3px; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: .2px; }
body.mv #pf-tabs.t5 .pf-tl { display: none; }
body.mv #pf-tabs.t5 .pf-ts { display: inline; }
body.mv #pf-tabs .pf-bindtab:not(.on) { color: #d8c89a; }
/* the page */
.bd-mtabs, .bd-phead2, .bd-psheet, .bd-movebar { display: none; }
body.mv #view-binder .bd-app { min-height: 0; padding: 8px 10px 14px; gap: 10px; }
body.mv #view-binder .bd-top { display: none; }
body.mv #view-binder .bd-msg { top: calc(var(--mvh, 52px) + 8px); bottom: auto; width: max-content; max-width: calc(100vw - 24px); box-sizing: border-box; transform: translate(-50%, -12px); }
body.mv #view-binder .bd-msg.on { transform: translate(-50%, 0); }
body.mv #view-binder .bd-mtabs { display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: #1b1b1b; border: 1px solid #3f3f3f; }
body.mv #view-binder .bd-mtabs button { flex: 1 1 auto; min-width: 0; height: 42px; border: 0; border-radius: 10px; background: none; color: #c8c8c8; cursor: pointer;
  font-family: var(--menu-font); font-stretch: 87.5%; font-size: 10.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; padding: 0 3px; -webkit-tap-highlight-color: transparent; }
body.mv #view-binder .bd-mtabs button.on { background: var(--accent); color: #fff; }
/* a two-way switch: the shelf (COLLECTOR'S | MERCHANT'S) and the planner (FIND | LIST) */
body.mv #view-binder .bd-phsw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 12px; background: #121212; border: 1px solid var(--bd-line); flex: none; }
body.mv #view-binder .bd-phsw button { height: 44px; border: 0; border-radius: 9px; background: none; color: #c8c8c8; font: 600 12px/1 var(--menu-font); font-stretch: 87.5%; letter-spacing: .8px; cursor: pointer; }
body.mv #view-binder .bd-phsw button em { font-style: normal; margin-left: 4px; opacity: .75; }
body.mv #view-binder .bd-phsw button.on { background: var(--accent); color: #fff; }
body.mv #view-binder .bd-phsw button.k-merchant.on { background: #ab9b6f; color: #141414; }
/* ---- the shelf ---- */
body.mv #view-binder .bd-body.shelf2.ph { display: flex; flex-direction: column; gap: 10px; }
body.mv #view-binder .bd-shelves { display: block; min-width: 0; }
body.mv #view-binder .bd-shcol { display: block; height: auto; min-height: 0; }
body.mv #view-binder .bd-shdiv { display: none; }
body.mv #view-binder .bd-shhead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tt" "st" "acts"; gap: 6px; padding: 10px; }
body.mv #view-binder .bd-shtt i { display: none; }
body.mv #view-binder .bd-shacts { flex-wrap: wrap; gap: 6px; }
body.mv #view-binder .bd-shacts > .bd-btn, body.mv #view-binder .bd-shacts > .bd-stbtn { height: 44px; min-height: 44px; flex: 1 1 auto; justify-content: center; }
body.mv #view-binder .bd-shacts .bd-shfill .full { display: inline; }
body.mv #view-binder .bd-shacts .bd-shfill .short { display: none; }
body.mv #view-binder .bd-shmain { gap: 8px; }
body.mv #view-binder .bd-shmain > .bd-room { flex: none; min-height: 0 !important; height: auto !important; padding: 64px 4px 10px; gap: 8px; border-radius: 12px; }
body.mv #view-binder .bd-room .bd-shelf { padding: 0 9px; max-width: 100%; box-sizing: border-box; }
body.mv #view-binder .bd-room .bd-shelf::before, body.mv #view-binder .bd-room .bd-shelf::after { width: 9px; }
body.mv #view-binder .bd-room :is(.bd-crown, .bd-plank, .bd-base) { margin-left: -9px; margin-right: -9px; }
body.mv #view-binder .bd-room:not(.mini) .bd-row { min-width: 0; gap: 4px; padding: 10px 4px 0; max-width: 100%; }
body.mv #view-binder .bd-room:not(.mini) .bd-row > :is(.bd-spine, .bd-ghost) { width: calc((100% - 5 * 4px) / 6); }
body.mv #view-binder .bd-room:not(.mini) .bd-spname { font-size: clamp(11px, calc(var(--sph, 150px) * .075), 14px); }
body.mv #view-binder .bd-spine { padding: 8px 0 8px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
body.mv #view-binder .bd-spine .bd-sped, body.mv #view-binder .bd-spine .bd-sptop { display: none; }
body.mv #view-binder .bd-spine .bd-spfull, body.mv #view-binder .bd-spine .bd-sphunt { font-size: 7px; letter-spacing: .3px; }
body.mv #view-binder .bd-ghost span { font-size: 9px; }
body.mv #view-binder .bd-room .bd-plate { transform: scale(.72); transform-origin: top right; }
body.mv #view-binder .bd-room > .bd-note { font-size: 11px; max-width: none; }
body.mv #view-binder .bd-side { width: auto; min-width: 0; }
body.mv #view-binder .bd-side .bd-card.grow { min-height: 0; }
body.mv #view-binder .bd-curbg { min-height: 48px; }
body.mv #view-binder .bd-sidetabs button { min-height: 44px; }
/* ---- the binder ---- */
body.mv #view-binder .bd-body.binder.ph { display: flex; flex-direction: column; gap: 10px; height: auto; min-height: 0; }
body.mv #view-binder .bd-phead2 { display: grid; grid-template-columns: auto 28px minmax(0, 1fr) 44px; align-items: center; gap: 8px; min-height: 48px; }
body.mv #view-binder .bd-pback, body.mv #view-binder .bd-pedit { height: 44px; border-radius: 10px; border: 1px solid #4d4d4d; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); color: #fff; cursor: pointer;
  font: 700 12px/1 var(--menu-font); font-stretch: 87.5%; letter-spacing: .8px; padding: 0 12px; }
body.mv #view-binder .bd-pedit { width: 44px; padding: 0; font-size: 18px; }
body.mv #view-binder .bd-phead2 .bd-binsw { width: 28px; height: 38px; }
body.mv #view-binder .bd-phead2 .bd-bintx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.mv #view-binder .bd-phead2 .bd-bintx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mv #view-binder .bd-phead2 .bd-bintx i { font-style: normal; font-size: 10px; letter-spacing: .8px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mv #view-binder .bd-center { gap: 6px; }
body.mv #view-binder .bd-nav { gap: 8px; font-size: 10.5px; letter-spacing: 1px; }
body.mv #view-binder .bd-nav #bd-where { flex: none; white-space: nowrap; }
body.mv #view-binder .bd-arrow { width: 44px; height: 44px; flex: none; }
body.mv #view-binder .bd-pgrange { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; accent-color: var(--accent); }
body.mv #view-binder .bd-stage { flex: none; overflow: visible; padding: 0; border-radius: 0; background: none; box-shadow: none; touch-action: pan-y; }
body.mv #view-binder .bd-stage::before, body.mv #view-binder .bd-stage::after { display: none; }
body.mv #view-binder .bd-book { padding: 8px; border-radius: 12px; max-width: 100%; box-sizing: border-box; }
body.mv #view-binder .bd-book .bd-page { gap: 4px; padding: 5px; }
body.mv #view-binder .bd-book .bd-rings { width: 22px; }
body.mv #view-binder .bd-pk { -webkit-touch-callout: none; touch-action: manipulation; }
body.mv #view-binder .bd-pk .bd-x { display: none; }
body.mv #view-binder .bd-pk.moving { outline: 2px dashed #f2d27e; outline-offset: 2px; opacity: .55; }
body.mv #view-binder .bd-book .bd-phead { height: auto; min-height: 22px; }
body.mv #view-binder .bd-phead .bd-ai { min-height: 40px; padding: 0 12px; }
body.mv #view-binder .bd-fold > .bd-fh { min-height: 44px; }
body.mv #view-binder .bd-pgl :is(select, input:not([type=range]):not([type=checkbox])) { min-height: 44px; }
body.mv #view-binder .bd-dlg.bgd button { min-height: 40px; }
body.mv #view-binder .bd-strip { justify-content: flex-start; padding: 4px 2px 6px; }
body.mv #view-binder .bd-sth { width: 34px; height: 42px; }
body.mv #view-binder .bd-sth span { line-height: 42px; font-size: 10px; }
body.mv #view-binder .bd-left { overflow: visible; min-height: 0; gap: 10px; }
body.mv #view-binder .bd-left .bd-fillbtn { min-height: 56px; }
body.mv #view-binder .bd-left .bd-btn { min-height: 44px; }
/* the pocket sheet: the inspector and the card lists (the computer's #bd-insp and #bd-right) */
body.mv #view-binder .bd-psheet { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 9050;
  max-height: min(62dvh, calc(100dvh - var(--mvh, 52px) - 76px - env(safe-area-inset-bottom) - 10px)); background: #151515; border-top: 1px solid #3d3d3d; border-radius: 16px 16px 0 0;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, .65); box-sizing: border-box; }
body.mv #view-binder .bd-psheet[hidden] { display: none; }
body.mv #view-binder .bd-psgrab { flex: none; display: flex; justify-content: center; padding: 8px 0 2px; touch-action: none; }
body.mv #view-binder .bd-psgrab i { width: 44px; height: 5px; border-radius: 3px; background: #4a4a4a; }
body.mv #view-binder .bd-pshd { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 6px 14px; touch-action: none; }
body.mv #view-binder .bd-pshd b { font-size: 12px; letter-spacing: 2px; }
body.mv #view-binder .bd-pshd span { flex: 1 1 auto; min-width: 0; font-size: 10px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mv #view-binder .bd-psx { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #4d4d4d; background: #1e1e1e; color: #ddd; font-size: 16px; cursor: pointer; }
body.mv #view-binder .bd-psbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 10px 14px; display: flex; flex-direction: column; gap: 10px; }
body.mv #view-binder .bd-psbody > .bd-card { flex: none; }
body.mv #view-binder .bd-psbody .bd-right { overflow: visible; min-height: 0; flex: none; }
body.mv #view-binder .bd-psbody .bd-right[hidden] { display: none; }
body.mv #view-binder .bd-psbody .bd-pbody { overflow: visible; max-height: none; }
body.mv #view-binder .bd-psrepl { flex: none; height: 44px; border-radius: 10px; border: 1px dashed #5a5a5a; background: #191919; color: #e6e6e6; font: 700 11.5px/1 var(--menu-font); font-stretch: 87.5%; letter-spacing: .8px; cursor: pointer; }
body.mv #view-binder .bd-psrepl[hidden] { display: none; }
body.mv #view-binder .bd-psbody .bd-acts { flex-wrap: wrap; gap: 6px; }
body.mv #view-binder .bd-psbody .bd-acts .bd-btn { min-height: 44px; flex: 1 1 auto; }
body.mv #view-binder .bd-psbody .bd-tabs button { min-height: 42px; }
body.mv #view-binder .bd-psbody .bd-li { min-height: 52px; }
body.mv #view-binder .bd-psbody .bd-chip { min-height: 40px; }
/* FIND (and BY CARDS in FILL BINDER): the search module at a finger's size */
body.mv #view-binder .pf-sform .pf-chip { min-height: 40px; height: auto; }
body.mv #view-binder .pf-sform :is(select, input:not([type=range]):not([type=checkbox])) { min-height: 44px; }
body.mv #view-binder .pf-sform :is(.pf-go, .pf-xl, button[type=submit]) { min-height: 44px; }
body.mv #view-binder .pf-snoterow button { min-height: 40px; }
body.mv.bd-sheet-open #view-binder.active .bd-app { padding-bottom: 64vh; }
/* MOVE: the bar over the tab bar */
body.mv #view-binder .bd-movebar { display: flex; align-items: center; gap: 10px; position: fixed; left: 8px; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9060;
  padding: 8px 8px 8px 14px; border-radius: 12px; background: #2b2515; border: 1px solid #ab9b6f; color: #f2e6c4; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
body.mv #view-binder .bd-movebar[hidden] { display: none; }
body.mv #view-binder .bd-movebar span { flex: 1 1 auto; min-width: 0; }
body.mv #view-binder .bd-movebar .bd-btn { flex: none; min-height: 44px; }
/* every control a finger's size; every text field 16 px */
body.mv #view-binder :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) { font-size: 16px; }
body.mv #view-binder :is(.bd-f input, .bd-f select, .bd-search input) { height: 44px; }
body.mv #view-binder .bd-btn { min-height: 40px; }
body.mv #view-binder .bd-btn.sm { height: auto; min-height: 40px; }
body.mv #view-binder .bd-chip { height: auto; min-height: 40px; }
body.mv #view-binder .bd-sw { width: 40px; height: 40px; }
body.mv #view-binder .bd-xbig { width: 44px; height: 44px; flex: none; }
/* ---- the dialogs: bottom sheets as wide as the screen ---- */
body.mv #view-binder .bd-modal { place-items: end stretch; padding-top: var(--mvh, 52px); box-sizing: border-box; }
body.mv #view-binder .bd-modal > .bd-dlg { width: 100vw !important; max-width: 100vw !important; max-height: calc(100dvh - var(--mvh, 52px)) !important; margin: 0; padding: 14px 12px 16px; border-radius: 16px 16px 0 0; box-sizing: border-box; overflow-x: hidden; }
body.mv #view-binder .bd-dh { flex-wrap: wrap; row-gap: 4px; }
body.mv #view-binder .bd-dh .bd-dhs { flex: 1 1 100%; order: 3; font-size: 11px; }
body.mv #view-binder .bd-dfoot { position: sticky; bottom: -16px; z-index: 3; flex-wrap: wrap; padding: 10px 0 4px; margin-bottom: -4px; background: linear-gradient(180deg, rgba(21,21,21,0), #151515 14px); }
body.mv #view-binder .bd-dfoot .bd-btn { flex: 1 1 auto; min-height: 48px; }
body.mv #view-binder .bd-dfoot .bd-btn.big { min-height: 52px; }
body.mv #view-binder .bd-dfoot .bd-btn.bd-edel { flex: 1 1 100%; order: 3; margin-right: 0; }
/* NEW / EDIT BINDER */
body.mv #view-binder .bd-dgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
body.mv #view-binder .bd-dprev { display: flex; flex-direction: column; align-items: center; }
body.mv #view-binder .bd-dprev .bd-mini { transform: scale(.82); transform-origin: top center; margin-bottom: -14px; max-width: 100%; }
body.mv #view-binder .bd-chips { flex-wrap: wrap; }
body.mv #view-binder .bd-mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mv #view-binder .bd-sws { flex-wrap: wrap; gap: 8px; }
body.mv #view-binder .bd-posrow { display: flex; align-items: center; gap: 10px; }
body.mv #view-binder .bd-posrow b { flex: 1 1 auto; text-align: center; font-size: 13px; }
body.mv #view-binder .bd-posrow .bd-btn { width: 56px; min-height: 44px; }
/* FILL BINDER: full screen, FIND | LIST */
body.mv #view-binder .bd-modal > .bd-dlg.plan { height: calc(100dvh - var(--mvh, 52px)); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
body.mv #view-binder .bd-pg.ph { grid-template-columns: minmax(0, 1fr); gap: 10px; }
body.mv #view-binder .bd-pg.ph.v-find .bd-pgr, body.mv #view-binder .bd-pg.ph.v-list .bd-pgl { display: none; }
body.mv #view-binder .bd-pg.ph .bd-pgl { padding: 0 2px 4px; }
body.mv #view-binder .bd-pg.ph .bd-pgr { overflow-y: auto; overflow-x: hidden; }
body.mv #view-binder .bd-pg.ph :is(.bd-f2, .bd-f3, .bd-plnew) { grid-template-columns: minmax(0, 1fr); }
body.mv #view-binder .bd-pg.ph .bd-plchars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.mv #view-binder .bd-pg.ph .bd-plhead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
body.mv #view-binder .bd-pg.ph .bd-plhead .bd-plbud { grid-column: 1 / -1; }
body.mv #view-binder .bd-pg.ph .bd-pllist { max-height: none; overflow: visible; }
body.mv #view-binder .bd-pg.ph .bd-plr { min-height: 56px; }
body.mv #view-binder .bd-pg.ph .bd-plr :is(button, .bd-btn) { min-height: 40px; }
body.mv #view-binder .bd-pg.ph .bd-seg2 { flex-wrap: wrap; }
body.mv #view-binder .bd-pg.ph .bd-seg2 button { min-height: 44px; }
body.mv #view-binder .bd-pg.ph .bd-plfoot .bd-dfoot { bottom: 0; }
/* MARK AS DONE · SHARE · AI FULL-ART · STYLE · BACKGROUND */
body.mv #view-binder :is(.bd-dngrid, .bd-ag, .bd-bggrid) { grid-template-columns: minmax(0, 1fr) !important; }
body.mv #view-binder .bd-agl { position: static; max-width: none; }
body.mv #view-binder .bd-dlg.styles .bd-stgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 8px; }
body.mv #view-binder .bd-dlg.styles .bd-stview { flex: none; }
/* EDIT BINDER's place on the shelf; the shelf head's STYLE keeps its word */
body.mv #view-binder .bd-posrow .bd-btn { font-size: 22px; line-height: 1; }
body.mv #view-binder .bd-shacts .bd-stbtn > span:not(.bd-stsw) { display: inline; }
/* a phone turned sideways: the binder's spread gets the tab row's height (BINDERS is the lit Portfolio tab below) */
@media (orientation: landscape) and (max-height: 520px) {
  body.mv #view-binder .bd-body.binder.ph .bd-mtabs { display: none; }
  body.mv #view-binder .bd-body.binder.ph { gap: 6px; }
}
/* the full-card preview's sheet over the binder's own sheets */
body:has(#view-binder.active) .peek-sheet { z-index: 9300; }
/* <</r156-phone>> */
/* <<r157-binder>> ROUND 157 · BLACKBINDER — the HUNT LIST / FOR SALE rows as tall as their picture: the price over ONE row
   of buttons (GO left of DONE / PLACE MINE / the status), centred; the planner's +1 (another copy) and COPIES */
.bd-seeks li { padding: 4px 6px; gap: 8px; }
.bd-seeks .bd-sa { align-self: center; justify-content: center; gap: 3px; }
.bd-seeks .bd-st { gap: 1px; }
.bd-seeks .bd-st > b, .bd-seeks .bd-st > i, .bd-seeks .bd-st > em { line-height: 1.2; }
.bd-seeks .bd-sa > b.pe { line-height: 1.15; }
.bd-sab { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.bd-sab .bd-btn.sm { height: 24px; padding: 0 9px; }
.bd-sales .bd-sab .sx { align-self: center; }
.bd-st em b.ok { font: inherit; letter-spacing: inherit; color: #7ED4A6; }
.bd-plr .bd-pladd.more { padding: 0 9px; min-width: 34px; }
.bd-plr .bd-pladded + .bd-pladd.more { margin-left: -2px; }
.bd-plcopies { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.bd-plcopies > i { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: #9a9a9a; margin-right: 3px; }
.bd-plcopies .bd-chip { height: 28px; min-width: 38px; padding: 0 9px; font-size: 10.5px; }
body.mv #view-binder .bd-plcopies { width: 100%; margin: 0 0 4px; }
body.mv #view-binder .bd-plcopies .bd-chip { height: 40px; flex: 1 1 0; }
/* <</r157-binder>> */
/* <<r159-binder>> ROUND 159 · BLACKBINDER — the notes at the bottom LEFT (they covered the page selection), ARRANGE THE CARDS,
   POST ON SOCIAL (WTB / WTS), a sought card ON BLACKMARKT */
body:not(.mv) .bd-msg { left: 92px; right: auto; max-width: min(320px, calc(100vw - 120px)); transform: translateY(20px); line-height: 1.35; }
body:not(.mv) .bd-msg.on { transform: translateY(0); }
.bd-tools2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-tools2 .bd-btn { height: 40px; font-size: 10.5px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-arrundo { height: 34px; }
/* ARRANGE */
.bd-dlg.arr { width: min(1000px, 96vw); }
.bd-arbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.bd-arform { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bd-arform .bd-chips { flex-wrap: wrap; }
.bd-argrps { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.bd-argrps em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 4px 8px; border-radius: 6px; background: #1f1f1f; border: 1px solid #3a3a3a; color: #e6e6e6; }
.bd-argrps b { color: #7a7a7a; font-size: 12px; }
.bd-arbrk { display: flex; align-items: center; gap: 11px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid #3a3a3a; background: #121212; color: #dcdcdc; cursor: pointer; }
.bd-arbrk .sw { flex: none; width: 34px; height: 20px; border-radius: 10px; background: #3a3a3a; position: relative; transition: background .15s; }
.bd-arbrk .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #bdbdbd; transition: left .15s, background .15s; }
.bd-arbrk.on { border-color: #8a3b39; background: #1d1211; }
.bd-arbrk.on .sw { background: var(--bd-red, #DC4F4C); }
.bd-arbrk.on .sw::after { left: 17px; background: #fff; }
.bd-arbrk b { display: block; font-size: 11px; letter-spacing: 1px; }
.bd-arbrk i { display: block; font-style: normal; font-size: 11px; color: #9a9a9a; margin-top: 2px; }
.bd-arprev { min-width: 0; padding: 10px; border-radius: 12px; background: #0e0e0e; border: 1px solid #2a2a2a; }
.bd-arpgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.bd-arpg > i { display: block; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: #8f8f8f; margin-bottom: 5px; }
.bd-argrid { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 8px; background: #1a1a1a; }
.bd-argrid > span { aspect-ratio: 63 / 88; border-radius: 3px; overflow: hidden; display: grid; place-items: center; background: #101010; box-shadow: 0 0 0 1px #2a2a2a; }
.bd-argrid > span img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-argrid > span b { font-size: 8px; font-weight: 700; color: #9a9a9a; text-align: center; padding: 2px; line-height: 1.1; overflow: hidden; }
.bd-argrid > span.s img { filter: grayscale(1) brightness(.75); }
.bd-argrid > span.a { background: repeating-linear-gradient(45deg, #2b2515 0 5px, #1a1710 5px 10px); }
.bd-argrid > span.e { background: transparent; box-shadow: inset 0 0 0 1px #262626; }
/* POST ON SOCIAL */
.bd-dlg.post { width: min(1040px, 96vw); }
.bd-pstbody { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.bd-pstpic { position: relative; aspect-ratio: 1080 / 1350; border-radius: 12px; overflow: hidden; background: #0e0e0e; border: 1px solid #2a2a2a; }
.bd-pstpic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bd-pstpic .bd-spin { position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -12px; display: none; }
.bd-pstpic.wait .bd-spin { display: block; }
.bd-pstpic.wait img:not([src]) { visibility: hidden; }
.bd-psttx { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bd-psttx textarea { width: 100%; box-sizing: border-box; height: 300px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid #3a3a3a; background: #0e0e0e; color: #e6e6e6;
  font: 500 13px/1.45 var(--rep-font); }
.bd-psttx textarea:focus { outline: none; border-color: var(--bd-red, #DC4F4C); }
.bd-pstacts { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.bd-pstacts .bd-btn { height: 42px; }
.bd-pstlink { margin: 0; font-size: 12px; color: #c9b98b; line-height: 1.5; }
.bd-pstlink .bd-btn { margin: 0 4px; vertical-align: middle; }
.bd-dlg.post .bd-seg2 { margin-bottom: 12px; }
.bd-dlg.post .bd-seg2 em { font-style: normal; margin-left: 5px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.35); }
/* a sought card on BLACKMARKT */
.bd-mkon { font: 800 8.5px/1 var(--rep-font-sc, inherit); letter-spacing: .8px; padding: 2px 6px; border-radius: 5px; border: 1px solid #8a7a4f; background: #1a1710; color: #f2d27e; cursor: pointer; vertical-align: 1px; }
.bd-mkon:hover { background: #2b2515; }
/* a phone */
body.mv #view-binder .bd-arbody, body.mv #view-binder .bd-pstbody { grid-template-columns: minmax(0, 1fr); }
body.mv #view-binder .bd-pstpic { max-width: 320px; width: 100%; justify-self: center; }
body.mv #view-binder .bd-psttx textarea { font-size: 16px; height: 220px; }
body.mv #view-binder .bd-pstacts { grid-template-columns: 1fr 1fr; }
body.mv #view-binder .bd-pstacts [data-pst="share"] { grid-column: 1 / -1; }
body.mv #view-binder .bd-tools2 .bd-btn, body.mv #view-binder .bd-pstacts .bd-btn, body.mv #view-binder .bd-arbrk { min-height: 44px; }
/* <</r159-binder>> */

/* ===== ROUND 162 · ROLES · REGIONS · PRICES · DELETE MY ACCOUNT (operator 2026-10-22) ===== */
/* the Terms tick on Create account */
.lg-form label.lg-terms { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 0; padding: 10px 11px; border: 1px solid #3a3a3a; border-radius: 9px;
  background: #151515; font-family: var(--rep-font); font-stretch: 100%; font-size: 12px; letter-spacing: 0; font-weight: 400; color: #cfcfcf; line-height: 1.45; cursor: pointer; }
.lg-form label.lg-terms.hidden { display: none; }
.lg-form label.lg-terms input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.lg-form label.lg-terms a { color: #fff; text-decoration: underline; }
/* (round 291) KEEP ME SIGNED IN */
.lg-form label.lg-keep { align-items: center; }
.lg-form label.lg-keep span { display: flex; flex-direction: column; gap: 2px; }
.lg-form label.lg-keep i { font-style: normal; font-size: 11.5px; color: #8f8f8f; }
body.mv .lg-form label.lg-terms { font-size: 13px; }
/* DELETE MY ACCOUNT — the quiet button under SIGN OUT, then the sheet */
.st-del { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 10px 0 0; padding: 11px 14px; border-radius: 12px;
  background: transparent; border: 1px dashed #4a2a28; color: #b9706d; font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; cursor: pointer; }
.st-del svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-del:hover { color: #ff6b67; border-color: #8a3330; background: #1a1111; }
body.st-dopen { overflow: hidden; }
.st-dsheet { position: fixed; inset: 0; z-index: 9400; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .72); }
.st-dsheet[hidden] { display: none; }
.st-dwin { display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100vh - 40px); background: #181818; border: 1px solid #3a3a3a;
  border-top: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); font-family: var(--rep-font); color: #d8d8d8; }
.st-dhead { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #2c2c2c; }
.st-dhead b { font-size: 15px; letter-spacing: 1.8px; color: #fff; }
.st-dhead span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #9a9a9a; }
.st-dx { margin-left: auto; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #3a3a3a; background: #222; color: #ddd; font-size: 20px; line-height: 1; cursor: pointer; }
.st-dbody { overflow: auto; padding: 14px 18px 6px; font-size: 13px; line-height: 1.55; }
.st-dlead { margin: 0 0 12px; font-size: 15px; color: #fff; font-weight: 600; }
.st-dcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.st-dcols > div { padding: 10px 12px; border: 1px solid #2c2c2c; border-radius: 9px; background: #141414; }
.st-dcap { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.st-dcap.gone { background: #4a1715; color: #ffb3b0; }
.st-dcap.kept { background: #23282e; color: #b8cbe0; }
.st-dlist { margin: 0; padding: 0; list-style: none; }
.st-dlist li { padding: 5px 0; border-top: 1px solid #222; }
.st-dlist li:first-child { border-top: 0; }
.st-dlist li b { display: block; font-size: 12.5px; color: #eee; }
.st-dlist li span { display: block; font-size: 11.5px; color: #9a9a9a; }
.st-dwait { margin: 0 0 10px; color: #b9b9b9; font-size: 12px; }
.st-dblock { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #8a6a2a; border-left-width: 4px; border-radius: 9px; background: #1d180c; color: #e8dcae; }
.st-dblock b { color: #f3e3a3; letter-spacing: 1px; }
.st-dblock ul { margin: 6px 0; padding-left: 18px; }
.st-dblock p { margin: 4px 0 0; font-size: 12px; }
.st-dnote { margin: 0 0 10px; font-size: 12px; color: #b8cbe0; }
.st-dfld { display: grid; gap: 5px; margin: 0 0 10px; }
.st-dfld > i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #f07a77; }
.st-dfld > i em { font-style: normal; color: #8a8a8a; letter-spacing: .5px; font-weight: 400; }
.st-dfld input { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #4a4a4a; background: #0f0f0f; color: #fff; font-size: 14px; }
.st-dfld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(220, 79, 76, .2); }
.st-dsteps { margin: 0 0 8px; padding-left: 20px; font-size: 12px; color: #b9b9b9; }
.st-dmsg { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #2a1413; color: #ffb3b0; font-size: 12.5px; }
.st-dfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #2c2c2c; }
.st-dbtn { min-height: 40px; padding: 0 18px; border-radius: 9px; border: 1px solid #4d4d4d; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); color: #eee;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; cursor: pointer; }
.st-dbtn.red { border-color: var(--accent); background: linear-gradient(180deg, #d65350, #a8322f); color: #fff; }
.st-dbtn:disabled { opacity: .45; cursor: not-allowed; }
body.mv .st-dsheet { padding: 0; align-items: stretch; }
body.mv .st-dwin { width: 100%; max-height: none; height: 100%; border-radius: 0; border-left: 0; border-right: 0; padding-top: env(safe-area-inset-top); }
body.mv .st-dcols { grid-template-columns: 1fr; }
body.mv .st-dfld input { height: 46px; font-size: 16px; }
body.mv .st-dfoot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
body.mv .st-dbtn { flex: 1 1 0; min-height: 46px; }
/* SETTINGS · AGENT ACCOUNTS + GRADING PRICES (admin) · YOUR REGION & PRICES (staff) */
.st-agfilter, .st-pregs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.st-seg { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid #4d4d4d; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); color: #d8d8d8;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; cursor: pointer; white-space: nowrap; }
.st-seg i { font-style: normal; margin-left: 4px; color: #9a9a9a; font-weight: 400; }
.st-seg.on { border-color: var(--accent); background: linear-gradient(180deg, #d65350, #a8322f); color: #fff; }
.st-seg.on i { color: #ffd9d8; }
.ag-card { margin: 0 0 10px; padding: 10px 11px; border: 1px solid #2e2e2e; border-left: 3px solid #3c84d1; border-radius: 8px; background: #151515; }
.ag-top { display: flex; align-items: center; gap: 8px; }
.ag-top .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #fff; }
.ag-top .agent-acts { margin-left: auto; }
.ag-fields { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 8px; }
.ag-fields .set-label, .ag-pgrid .set-label { margin-top: 6px; }
.ag-prices { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #262626; }
.ag-prices b { font-size: 10px; letter-spacing: 1.4px; color: #8fc4ff; }
.ag-pgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ag-pgrid input::placeholder, .st-ptab input::placeholder { color: #6a6a6a; }
.st-agents { container-type: inline-size; }
@container (max-width: 520px) {
  .ag-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ag-fields .set-label:last-child { grid-column: 1 / -1; }
  .ag-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.st-ptab { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 8px; align-items: center; margin-top: 4px; }
.st-ptab > i { font-style: normal; font-size: 9.5px; letter-spacing: 1.3px; color: #9a9a9a; font-weight: 700; }
.st-ptab > b { font-size: 11.5px; letter-spacing: 1px; color: #fff; }
.st-ptab input { height: 30px; padding: 0 8px; font-size: 12.5px; }
.st-ptab.ro > span { font-size: 12.5px; color: #e6e6e6; }
.st-pmore { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.st-pmore .wide { grid-column: 1 / -1; }
/* the order's GRADING FEE (DASHBOARD order view) */
.od-feecard .od-h b { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #23282e; color: #b8cbe0; font-size: 10px; letter-spacing: 1px; }
.od-fee { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; }
.od-fee span { color: #bdbdbd; font-size: calc(11px + 2pt); }
.od-fee b { color: #fff; font-size: calc(15px + 2pt); }
/* the phone's five tabs: SCAN, COLLECTION, + SUBMIT, BOARD or MARKET, ACCOUNT */
body.mv #mv-nav button span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ===== ROUND 162 · LABELS ===== */
/* THE PRE-GRADE LABEL's print host (js/labels.js): the NIIMBOT's 40 × 60 label, black on white (the driver lays the ribbon);
   the host sits off to the side on screen and is the only thing printed while body.print-labels. The browser-printed CARD SAVER
   and TOPLOADER labels of 2026-10-22 and their styles were retired 2026-11-10. */
#lbl-print { position: fixed; left: -40000px; top: 0; pointer-events: none; }
.lbl { position: relative; overflow: hidden; background: #fff; color: #000; box-sizing: border-box; text-align: left;
  font-family: var(--rep-font); line-height: 1.12; letter-spacing: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lbl * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
  html:has(> body.print-labels), body.print-labels { height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; }
  body.print-labels > *:not(#lbl-print) { display: none !important; }
  body.print-labels #lbl-print { position: static; left: auto; }
  #lbl-print .lbl { break-after: page; page-break-after: always; break-inside: avoid; }
  #lbl-print .lbl:last-child { break-after: auto; page-break-after: auto; }
}
/* (2026-10-28) INSPECTION's header and REPORTING's bar no longer carry LABEL · SAVER / TOPLOADER — the header's buttons are
   back to their two rows (and since 2026-11-10 no screen does: the NIIMBOT PRINTER is the one way to print a label) */
/* under 1700 px the bar's buttons tighten, so the two new ones cost it no extra line */
@media (max-width: 1700px) {
  body:not(.mv) .bv-jobbar { gap: 5px; }
  body:not(.mv) .bv-jobbar .bv-btn { padding-left: 8px; padding-right: 8px; letter-spacing: .6px; }
  body:not(.mv) .bv-jstate { margin-right: 2px; }
}
@media (max-width: 1440px) {
  body:not(.mv) .bv-jobbar .bv-btn { padding-left: 6px; padding-right: 6px; letter-spacing: .3px; font-size: 10px; }
}
.lbl-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lbl-out { display: block; min-height: 1.2em; margin-top: 6px; }
.lbl-out.ok { color: #7ED4A6; }
.lbl-out.warn { color: #E8B44A; }
.lbl-out.bad { color: #ff8a87; }
/* <</r162-labels>> */

/* ===== ROUND 183 · NIIMBOT PRINTER ===== */
/* (operator 2026-10-26: 'setup a Niimbot printer … the exact same printing template but for the BLACKLENS label, 40x60mm
   vertically — a built in Printer module inside Reporting, only for Agents and Admin'): js/labels.js niimHtml + the
   PRINTER pop-up. The label's ink is black on the page — the NIIMBOT driver lays the gold ribbon where the page is black,
   on the matte black PET label; .sim (the pop-up's preview) draws it as it comes out, gold on black. The dashed frame and
   rule are an SVG in mm (a CSS dashed border picks its own dash lengths); every line is a box of its own, centred on the
   template's height, shrunk by fit() */
.lbl-niim { --nm-ink: #000; --nm-paper: #fff; background: var(--nm-paper); color: var(--nm-ink); text-align: center; }
.lbl-niim.sim { --nm-ink: #c79d5e; --nm-paper: #0c0c0c; border-radius: 1.5mm; }
/* the label's colours (2026-10-29): white matte · black ink, silver matte · white ink (2026-11-04; a soft sheen across the stock) */
.lbl-niim.sim.c-white { --nm-ink: #121212; --nm-paper: #f3f2ee; }
.lbl-niim.sim.c-silver { --nm-ink: #fff; --nm-paper: #969ba1; background: linear-gradient(118deg, #a6abb1 0%, #8b9096 34%, #aeb2b7 58%, #8f949a 82%, #9ea3a9 100%); }
.nm-in { position: absolute; inset: 0; transform-origin: 50% 50%; }
.nm-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nm-art rect, .nm-art line { fill: none; stroke: var(--nm-ink); }
.nm-qr { position: absolute; }
.nm-qr svg { display: block; width: 100%; height: 100%; }
.nm-qr .nm-ink { fill: var(--nm-ink); }
.nm-qr .nm-paper { fill: var(--nm-paper); }
.nm-l { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-family: var(--rep-font); }
/* letter-spaced lines pad their left by the same, so the words stay on the middle */
.nm-t { font-weight: 700; letter-spacing: .13em; padding-left: .13em; }
.nm-id { font-weight: 700; letter-spacing: .05em; padding-left: .05em; font-variant-numeric: tabular-nums; }
.nm-m { font-weight: 400; }
.nm-f { font-weight: 400; font-style: italic; text-decoration: underline; text-decoration-thickness: .18mm; text-underline-offset: .25mm; }
/* REPORTING's bar: the PRINTER wears the label — black, gold ink */
.bv-btn.bv-niim { background: #0d0d0d; border-color: #c79d5e; color: #e6c48d; }
.bv-btn.bv-niim:not(:disabled):hover { background: #000; border-color: #e0b878; color: #f4dcae; }
.bv-btn.bv-niim[hidden] { display: none; }
/* the pop-up: the label on the left at true proportions, the settings on the right */
.tool-win.niim-win { width: min(820px, calc(100vw - 40px)); max-height: calc(100vh - 40px); border-radius: 8px; border-color: #6b5c33; font-family: var(--rep-font); }
.niim-win .tool-head { align-items: center; padding: 11px 16px; border-radius: 8px 8px 0 0; border-bottom-color: #6b5c33;
  background: linear-gradient(180deg, #3b3120, #211c11); }
.niim-win .tool-head b { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; color: #f4e7c0; }
.niim-win .tool-head b span { font-size: 16px; font-weight: 800; letter-spacing: 2.4px; color: #fff; }
.niim-win .tool-head b i, .niim-win .tool-head b em { font-style: normal; }
.niim-win .tool-sub { margin-top: 3px; font-size: 10.5px; letter-spacing: .6px; color: #d9c890; }
.niim-win .tool-x { color: #d9c890; }
.niim-win .tool-x:hover { color: #fff; }
.niim-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 18px 20px 16px; overflow: auto; }
.niim-left { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.niim-pwrap { position: relative; overflow: hidden; border-radius: 7px; box-shadow: 0 0 0 1px #3a3a3a, 0 8px 22px rgba(0, 0, 0, .55); }
.niim-pcap { max-width: 270px; font-size: 9.5px; letter-spacing: 1.1px; color: var(--muted); text-align: center; }
.niim-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.niim-job { display: flex; align-items: baseline; gap: 9px; min-width: 0; padding: 8px 10px; border-radius: 5px; background: #1f1f1f; border: 1px solid var(--line); }
.niim-job b { flex: 0 0 auto; font-size: 13px; letter-spacing: 1.2px; color: #fff; }
.niim-job span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #d6d6d6; }
.niim-job em { flex: 0 0 auto; font-style: normal; font-size: 9.5px; letter-spacing: 1.4px; padding: 2px 8px; border-radius: 3px; }
.niim-job em.pre { background: #4a3a10; color: #f0c060; }
.niim-job em.ok { background: #1d5c2e; color: #dff5e3; }
.niim-f { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 8px; }
.niim-f.niim-two { grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr); }
.niim-f[hidden] { display: none; }
.niim-f > i, .niim-grid i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted); }
.niim-grid i { text-align: center; }
.niim-grid b { font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; color: #d6d6d6; }
.niim-grid em { font-style: normal; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.niim-seg { display: flex; gap: 4px; min-width: 0; }
.niim-seg button { flex: 1 1 0; min-width: 0; height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: #232323; color: #cfcfcf;
  font: 700 10.5px var(--rep-font); letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.niim-seg button:hover { background: #2e2e2e; color: #fff; }
.niim-seg button.on { background: #0d0d0d; border-color: #c79d5e; color: #e6c48d; }
/* the verdict labels (2026-11-14): the VERDICT row's QA / ALTERED in the label's red; a row a verdict label fixes, flat */
.niim-seg button.on.vd { background: #1f0f0f; border-color: #DC4F4C; color: #f0a19f; }
.niim-seg button:disabled { cursor: default; opacity: .45; background: #1c1c1c; }
.niim-seg button.on:disabled { opacity: 1; }
#niim-form .niim-vds button { padding: 0 4px; letter-spacing: .4px; }
#view-settings #set-niim-types span.lbl-offb.vd { color: #f0a19f; background: #1f0f0f; }
#view-settings #set-niim-types span.lbl-offb.vd i { background: #DC4F4C; border-color: #DC4F4C; }
.niim-win input[type="text"], .niim-win input[type="number"] { width: 100%; min-width: 0; height: 28px; box-sizing: border-box; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: #1b1b1b; color: #fff; font: 13px var(--rep-font); }
.niim-win input[type="text"]:focus, .niim-win input[type="number"]:focus { outline: none; border-color: #c79d5e; }
.niim-win input::placeholder { color: #6f6f6f; }
.niim-grid { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 4px 8px; align-items: center; }
.niim-grid input[type="number"] { text-align: center; font-variant-numeric: tabular-nums; }
.niim-turn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: #d6d6d6; white-space: nowrap; cursor: pointer; }
.niim-turn input { width: 14px; height: 14px; margin: 0; accent-color: #c79d5e; }
.niim-acts { display: flex; gap: 6px; margin-top: 4px; }
.niim-btn { height: 32px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: 700 11px var(--rep-font); letter-spacing: 1.2px; white-space: nowrap; cursor: pointer; }
.niim-btn:hover { background: #424242; }
.niim-btn.niim-go { margin-left: auto; min-width: 150px; background: #0d0d0d; border-color: #c79d5e; color: #e6c48d; }
.niim-btn.niim-go:not(:disabled):hover { background: #000; border-color: #e0b878; color: #f4dcae; }
.niim-btn:disabled { opacity: .42; cursor: default; }
.niim-btn.niim-go:disabled { background: #1b1b1b; border-color: #3d3d3d; color: #8a8a8a; }
.niim-out { margin-top: 0; }
.niim-help { margin: 0; padding-left: 15px; font-size: 11px; line-height: 1.5; color: var(--muted-2); }
.niim-help li + li { margin-top: 2px; }
@media (max-width: 760px) { .niim-body { grid-template-columns: minmax(0, 1fr); } }
/* <</r183-niimbot>> */
/* ===== ROUND 185 · THE FOLD LABEL ===== */
/* (operator 2026-10-27: L15 at 15 / 25 mm, L16 at 11 / 29): js/labels.js foldHtml — one 1-bit picture a label, drawn in
   the M2's dots (473 × 709 at 300 dpi) and printed at 40 × 60 mm, a dot a pixel. The preview shows it folded (the front
   strip over the back, each with its die-cut corners) or flat as it comes out */
.lbl-fold img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.lbl-fold.sim { background: transparent; }
.lbl-fold.sim img { image-rendering: auto; }        /* the preview is shown under 1 : 1 — pixelated would drop whole dots */
.lbl-fold.folded { display: flex; flex-direction: column; gap: 3mm; overflow: visible; }
.lbl-fold.folded img { width: 100%; filter: drop-shadow(0 .6mm 1.2mm rgba(0, 0, 0, .6)); }
.lbl-fold .fd-no { position: absolute; inset: 3mm; display: flex; align-items: center; justify-content: center; font-size: 8pt; text-align: center; }
.niim-pwrap.fold-v { overflow: visible; border-radius: 0; box-shadow: none; }
.niim-views { width: 100%; max-width: 330px; }
.niim-win [hidden] { display: none !important; }
/* the LAYOUTs: a tighter button, so every name stays whole at 1366; the official types (three since 2026-11-01) in three columns */
.niim-seg[data-k="layout"] button { padding: 0 3px; letter-spacing: .5px; }
#niim-form .niim-seg[data-k="layout"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* SETTINGS' types two by two — the card is 290 px wide at 1366, four in a row cut their names */
#set-niim-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* OFFICIAL (operator 2026-11-01): each type with its tick under it — the admin's button, an agent's plain mark */
#set-niim-types .lbl-ntype { display: flex; flex-direction: column; min-width: 0; }
#view-settings #set-niim-types .lbl-ntype > button[data-v] { flex: 1 1 auto; border-radius: 6px 6px 0 0; }
#view-settings #set-niim-types .lbl-offb { flex: none; height: 20px; min-height: 0; margin: 0; padding: 0 8px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; background: #151515; color: #7a7a7a; font-size: 8.5px; font-weight: 700; letter-spacing: 1.2px; text-align: left; }
#view-settings #set-niim-types .lbl-offb i { flex: none; width: 9px; height: 9px; border: 1px solid #5f5f5f; border-radius: 2px; }
#view-settings #set-niim-types .lbl-offb.on { color: #e6c48d; background: #1b160d; }
#view-settings #set-niim-types .lbl-offb.on i { background: #c79d5e; border-color: #c79d5e; box-shadow: inset 0 0 0 2px #1b160d; }
#view-settings #set-niim-types button.lbl-offb:hover { color: #d6d6d6; background: #1d1d1d; }
#view-settings #set-niim-types button.lbl-offb.on:hover { color: #f0d39f; background: #221b10; }
#view-settings #set-niim-types span.lbl-offb { cursor: default; }
/* the PRINTER: a toploader type for the other game, greyed and flat */
#niim-types button:disabled { background: #191919; border-color: #262626; color: #555; cursor: not-allowed; box-shadow: none; }
/* their lines wrap rather than end in … (CS FOR ALL's was cut at 1366, Thai runs longer) */
#set-niim-types button em { white-space: normal; text-overflow: clip; }
/* <</r185-fold>> */

/* ===== SETTINGS · ADMIN → BLACKLENS PAYMENTS (2026-11-01) =====
   (operator 2026-11-01: 'allow adding the Bank Details for Credit Cards, QR, Bank Account for Admin') — the agent banking
   rows' look: a gold-edged row a account, the fields in four columns (two on a narrow card) */
#set-pay-card { container-type: inline-size; }
.py-sec { margin-top: 12px; }
.py-sh { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.py-sh b { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: #e8e8e8; }
.py-sh span { font-size: 10px; letter-spacing: 1px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.py-sh .st-btn { margin: 0 0 0 auto; height: 26px; }
.py-none { display: block; font-size: 11px; padding: 4px 0 2px; }
.py-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; align-items: end; padding: 8px 10px 10px; margin-bottom: 6px;
  border: 1px solid #2c2c2c; border-left: 3px solid #ab9b6f; border-radius: 7px; background: #151515; }
.py-row.py-card { border-left-color: #2f6fb3; }
.py-row .set-label { min-width: 0; }
.py-row .set-label input, .py-row .set-label select { width: 100%; min-width: 0; box-sizing: border-box; }
.py-row .set-label.w2 { grid-column: span 2; }
.py-row .set-label.w4 { grid-column: 1 / -1; }
.py-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.py-head > b { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: #f2f2f2; white-space: nowrap; }
.py-on { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid #333; background: #171717; cursor: pointer; }
.py-on input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.py-on b { font-size: 9.5px; letter-spacing: 1.3px; color: #9a9a9a; font-weight: 700; }
.py-on.on { border-color: #2f6fb3; background: #142033; }
.py-on.on b { color: #f2f2f2; }
.py-on.on .ag-rsw { background: #2f6fb3; }
.py-on.on .ag-rsw::after { left: 18px; background: #fff; }
.py-on input:focus-visible + .ag-rsw { outline: 2px solid #fff; outline-offset: 2px; }
.py-rm { margin-left: auto; height: 24px; padding: 0 10px; border-radius: 6px; border: 1px solid #3a2a2a; background: #1b1414; color: #d99a9a; font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; cursor: pointer; }
.py-rm:hover { background: #2a1818; color: #f0b4b4; }
.py-qr { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.py-qrpic { flex: none; width: 64px; height: 64px; border-radius: 6px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.py-qrpic.none { background: #101010; border: 1px dashed #3a3a3a; }
.py-qrpic img { width: 100%; height: 100%; object-fit: contain; }
.py-qrpic i { font-style: normal; font-size: 8px; letter-spacing: 1px; color: #6f6f6f; text-align: center; }
.py-qr .st-btn { margin: 0; height: 28px; }
.py-up { cursor: pointer; }
.py-qr em { flex: 1 1 220px; font-style: normal; font-size: 10.5px; line-height: 1.4; color: #8f8f8f; }
.py-chips { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.py-chips > i { flex-basis: 100%; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.py-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #1b1b1b;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #cfcfcf; cursor: pointer; }
.py-chip input { margin: 0; accent-color: #ab9b6f; }
.py-note { grid-column: 1 / -1; margin: 10px 0 0; padding: 7px 9px; border-radius: 6px; background: #1a1712; border: 1px solid #3a3222; font-size: 11px; line-height: 1.45; color: #b9b2a2; }
.py-meta { margin: 8px 0 0; font-size: 10px; color: #7f7f7f; }
.py-meta span { letter-spacing: 1.2px; }
.py-meta i { font-style: normal; }
@container (max-width: 560px) { .py-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .py-chips { grid-column: 1 / -1; } }

/* ===== ROUND 162 · BLACKMARKT SCHEMA ===== */
/* (operator 2026-10-22: 'tidy the schema UX/UI on BLACKMARKT to match the other modes'). BLACKMARKT was built before
   BLACKPORT's design passes; it now speaks their language — nothing it does changed:
   · round 86's raised controls: a filter pill 34 px with its count in a badge, the picked one the red gradient with a
     glow; a button raised with a lighter top edge, a hover lift, a press and a white focus ring; the red ones the SEARCH
     button's gradient; gold for a batch and the merchant's things; corners about a quarter of the height (round 99)
   · round 98's fields: the caption INSIDE the box, a dropdown raised with its red chevron handle, a text box a darker
     inset well with the red edge and glow while typing
   · round 38: a section head is its title and its count — what it is for lives in its tooltip
   · BLACKPORT's width on a computer (1520), its panels for the shelves and the cards, its tab hover and glow
   Computer and phone; BLACKMARKT, its sheet and BLACKPORT's STORE. */
:is(#view-markt, #mk-sheet, #pf-store) {
  --ctl-bg: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%); --ctl-bg-hi: linear-gradient(180deg, #333 0%, #262626 100%);
  --ctl-line: #575757; --ctl-line-hi: #8f8f8f; --ctl-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45);
  --well-bg: linear-gradient(180deg, #111 0%, #171717 100%); --well-line: #3f3f3f; --well-shadow: inset 0 2px 4px rgba(0, 0, 0, .45);
  --cap: #f07a77; --cap-hi: #ff9b98;
  --red-bg: linear-gradient(180deg, #e8625f 0%, #c63f3c 100%); --red-bg-hi: linear-gradient(180deg, #ee6f6c 0%, #cf4744 100%); --red-line: #ee7a77;
  --red-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 10px rgba(220, 79, 76, .35);
  --gold-bg: linear-gradient(180deg, #2d2616 0%, #17130b 100%); --gold-line: #ab9b6f; --gold-ink: #f1e6c8; }

/* ---- the page: BLACKPORT's width, its tabs' hover and glow, BETA a status (not a button) ---- */
@media (min-width: 961px) { body:not(.mv) #view-markt .mk-app { max-width: 1520px; } }
#view-markt .pf-segs button { transition: background .12s, color .12s; }
#view-markt .pf-segs button:not(.on):hover { background: #262626; color: #fff; }
#view-markt .pf-segs button.on, #pf-store .mk-stabs button.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 12px rgba(220, 79, 76, .35); }
#view-markt .pf-segs button:focus-visible, #pf-store .mk-stabs button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
#view-markt .mk-head .mk-beta { height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(171, 155, 111, .12); border: 1px solid #5c5340; color: #e7d9a8;
  font-size: calc(9.5px * var(--pf-fs, 1)); letter-spacing: 2px; cursor: default; }

/* ---- the search: the search module's field — the caption inside, a well to type in ---- */
#view-markt .mk-bar .mk-search { gap: 11px; height: auto; min-height: 50px; padding: 5px 12px; border-radius: 10px; background: var(--well-bg); border: 1px solid var(--well-line);
  box-shadow: var(--well-shadow); cursor: text; transition: border-color .12s, box-shadow .12s; }
#view-markt .mk-bar .mk-search:focus-within { border-color: var(--accent); box-shadow: var(--well-shadow), 0 0 0 2px rgba(220, 79, 76, .22); }
#view-markt .mk-bar .mk-search svg { width: 18px; height: 18px; stroke: #8c8c8c; }
#view-markt .mk-bar .mk-search:focus-within svg { stroke: var(--cap-hi); }
#view-markt .mk-sq { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#view-markt .mk-sq > i { font-style: normal; font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.5px; line-height: 1.25; color: var(--cap); }
#view-markt .mk-search:focus-within .mk-sq > i { color: var(--cap-hi); }
#view-markt .mk-bar .mk-search input { height: auto; padding: 0; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 500; line-height: 1.3; text-overflow: ellipsis; }
#view-markt .mk-bar .mk-search input::placeholder { color: #6f6f6f; font-weight: 400; }
body.mv #view-markt .mk-bar .mk-search input { font-size: calc(16px * var(--pf-fs, 1)); }        /* iOS never zooms */

/* ---- the filter pills (BROWSE's TCG · GRADE · SORT, the STORE's SHOW): raised, the count in a badge, the pick red ---- */
#view-markt .mk-chiprows { gap: 10px 24px; margin: 12px 0 14px; }
:is(#view-markt .mk-bar, #pf-store .mk-store) .mk-chips > i { font-size: calc(9px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.8px; color: #8c8c8c; margin-right: 4px; }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm { height: 34px; padding: 0 13px; gap: 8px; border-radius: 9px; background: var(--ctl-bg);
  border: 1px solid var(--ctl-line); color: #ededed; box-shadow: var(--ctl-shadow); font-size: calc(12px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: .3px; cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s, transform .05s; -webkit-tap-highlight-color: transparent; }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm:has(> i) { padding: 0 6px 0 13px; }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm > b { font-weight: 600; letter-spacing: .2px; }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm > i { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin: 0;
  padding: 0 7px; box-sizing: border-box; border-radius: 6px; background: #3a3a3a; color: #d6d6d6; opacity: 1; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; line-height: 1; }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm:not(.on):hover { background: var(--ctl-bg-hi); border-color: var(--ctl-line-hi); color: #fff; }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm:active { transform: translateY(1px); }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm.on { background: linear-gradient(180deg, #e25a57 0%, #d04744 100%); border-color: #e86b68; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 12px rgba(220, 79, 76, .38); }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm.on > i { background: rgba(0, 0, 0, .28); color: #fff; }
:is(#view-markt .mk-bar .mk-chips, #pf-store .mk-chips.mk-lfilt) .pf-chip.sm:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- BROWSE: the shelves and the cards each a BLACKPORT panel, its head a title and a count ---- */
#view-markt .mk-shops, #view-markt .mk-gbox { margin: 0 0 12px; padding: 12px 14px 14px; border-radius: 16px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
#view-markt .mk-shopshd, #view-markt .mk-ghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin: 0 0 10px; cursor: default; }
#view-markt .mk-shopshd > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
#view-markt .mk-shopshd b, #view-markt .mk-ghead b { display: flex; align-items: center; gap: 9px; font: 700 calc(11px * var(--pf-fs, 1))/1.2 var(--rep-font); font-stretch: normal; letter-spacing: 2px; color: #e2e2e2; }
#view-markt .mk-shopshd b::before, #view-markt .mk-ghead b::before { width: 3px; height: 12px; }
#view-markt .mk-ghead { justify-content: flex-start; }
.mk-hn { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; box-sizing: border-box; border-radius: 6px;
  background: #2c2c2c; color: #d6d6d6; font-style: normal; font-size: calc(10.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: .4px; line-height: 1; }
#view-markt .mk-shoprow { padding: 2px 2px 4px; }
#view-markt .mk-shopsnone { background: #121212; }
/* MY MERCHANT SHELF: the merchant's gold, a raised control */
#view-markt .mk-shopshd .pf-chip.mk-myshelf { height: 34px; padding: 0 13px; border-radius: 9px; background: var(--gold-bg); color: var(--gold-ink) !important; font-size: calc(11px * var(--pf-fs, 1));
  font-weight: 800; letter-spacing: 1.3px; box-shadow: inset 0 1px 0 rgba(241, 230, 200, .1), 0 2px 8px rgba(0, 0, 0, .45); transition: transform .12s, border-color .12s, box-shadow .12s; }
#view-markt .mk-shopshd .pf-chip.mk-myshelf:hover { border-color: #e2d3a4 !important; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(241, 230, 200, .14), 0 6px 14px rgba(171, 155, 111, .22); }
#view-markt .mk-shopshd .pf-chip.mk-myshelf:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- the tiles (BROWSE, a collector's listings, the STORE's listings): a card on the panel, a lift under the pointer ---- */
:is(#view-markt, #mk-sheet, #pf-store) .mk-tile { border-radius: 14px; background: #141414; border-color: #2a2a2a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color .12s, background .12s, transform .12s, box-shadow .12s; }
@media (hover: hover) {
  :is(#view-markt, #mk-sheet, #pf-store) .mk-tile:hover { transform: translateY(-2px); border-color: #6a6a6a; background: #1a1a1a; box-shadow: 0 10px 22px rgba(0, 0, 0, .5); }
  :is(#view-markt, #mk-sheet, #pf-store) .mk-tile:active { transform: translateY(0); }
}
:is(#view-markt, #mk-sheet, #pf-store) .mk-tile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-tile.mine { border-color: #5c5340; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-tile.mine:has(.mk-ofr) { border-color: var(--accent); }
/* the offers waiting on a listing read red on every tile (the STORE's tile took the green of OFFERS OK) */
.mk-tprice em.mk-ofr { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---- the lists (OFFERS, DEALS, COLLECTORS, the STORE's panes, a listing's offers) ---- */
/* an offer's row: the picture · what it is · the amount, its buttons under them */
:is(#view-markt, #mk-sheet, #pf-store) .pf-list li.mk-orow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; align-items: center; }
:is(#view-markt, #mk-sheet, #pf-store) .pf-list li.mk-orow > .mk-obtns { grid-column: 2 / -1; }
/* a row that opens something says so under the pointer */
:is(#view-markt, #pf-store) .pf-list li[data-mk] { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; transition: background .12s; }
:is(#view-markt, #pf-store) .pf-list li[data-mk]:hover { background: #1e1e1e; }
:is(#view-markt, #pf-store) .pf-list li[data-mk]:hover + li { border-top-color: transparent; }
/* the small pictures: a little larger, their grade readable */
:is(#view-markt, #mk-sheet, #pf-store) .mk-sart .pf-cart { width: 46px; height: 64px; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-sart:not(.mk-mosc) .pf-gbadge { margin: -10px 0 -6px; height: 15px; line-height: calc(13px * var(--pf-fs, 1)); font-size: calc(7.5px * var(--pf-fs, 1)); letter-spacing: .5px; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-sart.mk-mosc .mk-mos { width: 46px; height: 64px; }

/* ---- the buttons: raised, a lift, a press, a focus ring; the red ones the SEARCH button's gradient ---- */
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn { border-radius: 10px; transition: transform .12s, box-shadow .12s, border-color .12s, background .12s, filter .12s; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn:not(.accent):not(.batch):not(.danger) { background: var(--ctl-bg); border: 1px solid var(--ctl-line); color: #f2f2f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px rgba(0, 0, 0, .45); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn.accent { background: var(--red-bg); border: 1px solid var(--red-line); color: #fff; box-shadow: var(--red-shadow); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn.danger { background: var(--ctl-bg); border: 1px solid #7a2d2a; color: #ff8f8b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .45); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn.batch { background: var(--gold-bg); border: 1px solid var(--gold-line); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(241, 230, 200, .1), 0 3px 10px rgba(0, 0, 0, .45); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn:not(.accent):not(.batch):not(.danger):not(:disabled):hover { border-color: #a0a0a0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 7px 16px rgba(0, 0, 0, .5); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn.accent:not(:disabled):hover { background: var(--red-bg-hi); border-color: #ffb3b1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px rgba(220, 79, 76, .45); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn.danger:not(:disabled):hover { border-color: var(--pf-neg); color: #fff; background: linear-gradient(180deg, #3a1d1c 0%, #2a1514 100%); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn.batch:not(:disabled):hover { border-color: #e2d3a4; box-shadow: inset 0 1px 0 rgba(241, 230, 200, .14), 0 8px 18px rgba(171, 155, 111, .22); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn:not(:disabled):active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5); filter: none; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* a button waiting on something (I HAVE PAID before the slip): flat and dim — not something to press yet */
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn:not(.accent):not(.batch):not(.danger):disabled { opacity: 1; background: #1a1a1a; border-color: #2c2c2c; color: #5f5f5f; box-shadow: none; transform: none; filter: none; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn:is(.accent, .batch, .danger):disabled { opacity: 1; background: #2a1c1c; border-color: #3a2a2a; color: #8a7272; box-shadow: none; transform: none; filter: none; }
#mk-sheet .mk-win .mk-buynow { font-size: calc(13.5px * var(--pf-fs, 1)); letter-spacing: 1.8px; }

/* the pills used as actions and choices (an offer's ACCEPT · COUNTER · DECLINE, MARKET · +10 %, the hand-over, the
   cover's pictures, the options, the rating's words, COPY · TRACK, SEE THE PORTFOLIO, PAYMENT …): the search module's
   chips. The filter rows (BROWSE's bar, the STORE's SHOW) sit outside these hosts and keep their 34 px pills. */
:is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .mk-sellerbar, #pf-store .pf-list) .pf-chip.sm:where(:not(.mk-myshelf):not(.danger)) { height: 32px; padding: 0 12px; gap: 6px; border-radius: 8px;
  background: var(--ctl-bg); border: 1px solid var(--ctl-line); color: #ededed; box-shadow: var(--ctl-shadow); font-size: calc(11.5px * var(--pf-fs, 1)); font-weight: 600; letter-spacing: .4px;
  text-decoration: none; transition: border-color .12s, background .12s, box-shadow .12s, transform .05s; -webkit-tap-highlight-color: transparent; }
:is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .mk-sellerbar, #pf-store .pf-list) .pf-chip.sm:where(:not(.mk-myshelf):not(.danger)):not(.on):not(:disabled):hover { background: var(--ctl-bg-hi); border-color: var(--ctl-line-hi); color: #fff; }
:is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .mk-sellerbar, #pf-store .pf-list) .pf-chip.sm:where(:not(.mk-myshelf):not(.danger)):not(:disabled):active { transform: translateY(1px); }
:is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .mk-sellerbar, #pf-store .pf-list) .pf-chip.sm.on:where(:not(.mk-myshelf):not(.danger)) { background: linear-gradient(180deg, #e25a57 0%, #d04744 100%);
  border-color: #e86b68; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 12px rgba(220, 79, 76, .38); }
:is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .mk-sellerbar, #pf-store .pf-list) .pf-chip.sm:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
:is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .mk-sellerbar, #pf-store .pf-list) .pf-chip.sm:disabled { opacity: .45; box-shadow: none; cursor: default; }
/* an offer's buttons: ACCEPT the red button, the counter a well beside its button */
:is(#view-markt, #mk-sheet, #pf-store) .mk-obtns { gap: 7px; align-items: center; }
:is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .pf-list) .mk-obtns .pf-chip.sm { height: 34px; padding: 0 14px; font-weight: 700; letter-spacing: 1px; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-counter { gap: 6px; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-counter input { height: 34px; width: 112px; border-radius: 8px; background: var(--well-bg); border: 1px solid var(--well-line); box-shadow: var(--well-shadow); }
:is(#view-markt, #mk-sheet, #pf-store) .mk-counter input:focus { outline: none; border-color: var(--accent); box-shadow: var(--well-shadow), 0 0 0 2px rgba(220, 79, 76, .22); }

/* ---- the fields of the sheets (an offer, the asking price, the address, the shipping, the setup, the listing form):
   round 98's boxes — the caption inside at the top, a dropdown raised with its red handle, a text box an inset well ---- */
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f { position: relative; justify-content: center; gap: 1px; min-height: 50px; box-sizing: border-box; padding: 6px 11px 6px 12px;
  border-radius: 10px; background: var(--ctl-bg); border: 1px solid var(--ctl-line); box-shadow: var(--ctl-shadow); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f:has(> input, > textarea) { background: var(--well-bg); border-color: var(--well-line); box-shadow: var(--well-shadow); cursor: text; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f > i { font-size: calc(8.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1.5px; line-height: 1.25; color: var(--cap);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f :is(input, select, textarea) { width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; background: transparent;
  border: 0; border-radius: 0; box-shadow: none; outline: none; color: #fff; font-size: calc(14px * var(--pf-fs, 1)); font-weight: 500; line-height: 1.35; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f input::placeholder, :is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f textarea::placeholder { color: #6f6f6f; font-weight: 400; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f textarea { min-height: 62px; padding-top: 2px; resize: vertical; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f select { appearance: none; -webkit-appearance: none; padding-right: 34px; font-weight: 600; cursor: pointer; color-scheme: dark; text-overflow: ellipsis; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f select option { background: #2e2e2e; color: #f2f2f2; font-weight: 400; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f:has(> select)::after { content: ''; position: absolute; right: 6px; top: 50%; width: 28px; height: 26px; margin-top: -13px; border-radius: 7px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); pointer-events: none; transition: background-color .12s; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f:has(> select):hover { background: var(--ctl-bg-hi); border-color: var(--accent); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f:has(> select):hover::after { background-color: #e8625f; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f:has(> select:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f:has(> input:focus, > textarea:focus) { border-color: var(--accent); box-shadow: var(--well-shadow), 0 0 0 2px rgba(220, 79, 76, .22); }
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f:has(:focus) > i { color: var(--cap-hi); }
body.mv :is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f :is(input, select, textarea) { font-size: calc(16px * var(--pf-fs, 1)); }   /* iOS never zooms */
/* a button beside a row of fields stands as tall as they are */
:is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-row > .pf-qbtn, #mk-sheet .mk-win .mk-addr > .pf-qbtn { height: 50px; }
/* the listing form's two ways and the batches to sell: tiles you press, the pick red-edged */
#mk-sheet .mk-win .mk-lfmode button, #mk-sheet .mk-win .mk-bpick button:not(:disabled) { border-radius: 10px; transition: border-color .12s, background .12s, transform .12s; }
#mk-sheet .mk-win .mk-lfmode button:not(.on), #mk-sheet .mk-win .mk-bpick button:not(:disabled) { background: var(--ctl-bg); border-color: var(--ctl-line); box-shadow: var(--ctl-shadow); }
#mk-sheet .mk-win .mk-lfmode button:not(.on):hover, #mk-sheet .mk-win .mk-bpick button:not(:disabled):hover { border-color: var(--ctl-line-hi); transform: translateY(-1px); }
#mk-sheet .mk-win .mk-lfmode button.on { background: linear-gradient(180deg, #3a1d1c 0%, #2a1514 100%); }
#mk-sheet .mk-win .mk-lfmode button:focus-visible, #mk-sheet .mk-win .mk-bpick button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the stars: square-cornered controls, gold when given */
#mk-sheet .mk-win .mk-stars button { border-radius: 10px; background: var(--ctl-bg); border-color: var(--ctl-line); box-shadow: var(--ctl-shadow); }
#mk-sheet .mk-win .mk-stars button.on { background: linear-gradient(180deg, #3a3013 0%, #241e0d 100%); border-color: #b9973a; }
/* the binder's gold doors */
#mk-sheet .mk-win .mk-openbk { box-shadow: inset 0 1px 0 rgba(241, 230, 200, .1), 0 2px 8px rgba(0, 0, 0, .45); transition: transform .12s, filter .12s, box-shadow .12s; }
#mk-sheet .mk-win .mk-openbk:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(241, 230, 200, .14), 0 8px 18px rgba(171, 155, 111, .22); }
#mk-sheet .mk-win .mk-openbk:focus-visible, #mk-sheet .mk-win .mk-bkback:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#mk-sheet .mk-win .mk-bkback { height: 30px; border-radius: 8px; background: var(--gold-bg); box-shadow: inset 0 1px 0 rgba(241, 230, 200, .1); }
/* the links (a VERIFY, a PRE-CERT): BLACKPORT's light ink, underlined — no blue */
:is(#view-markt, #mk-sheet, #pf-store) .mk-link { color: #e6e6e6; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .32); text-underline-offset: 3px; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-link:hover { color: #fff; text-decoration-color: #fff; }
:is(#view-markt, #mk-sheet, #pf-store) .mk-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---- BLACKPORT's STORE: the figures are buttons (an arrow says so), the ways to list round 90's raised quick buttons ---- */
#pf-store .mk-kpi { position: relative; transition: border-color .12s, background .12s; }
#pf-store .mk-kpi::after { content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-55%); font-size: calc(22px * var(--pf-fs, 1)); line-height: 1; color: #6f6f6f; transition: color .12s, transform .12s; }
#pf-store .mk-kpi:hover::after { color: #fff; transform: translate(2px, -55%); }
#pf-store .mk-kpi:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#view-port .pf-app:not(.ph) #pf-store .mk-sacts .pf-qbtn { justify-content: flex-start; gap: 10px; padding: 0 14px 0 8px; font-weight: 800; letter-spacing: 1.4px; }
#view-port .pf-app:not(.ph) #pf-store .mk-sacts .pf-qbtn > svg { width: 28px; height: 28px; padding: 6px; box-sizing: border-box; border-radius: 8px; background: #3b3b3b; flex: none; }
#view-port .pf-app:not(.ph) #pf-store .mk-sacts .pf-qbtn.accent > svg { background: rgba(0, 0, 0, .2); }
#view-port .pf-app:not(.ph) #pf-store .mk-sacts .pf-qbtn.batch > svg { background: rgba(171, 155, 111, .24); }
#view-port .pf-app:not(.ph) #pf-store .mk-sacts .pf-qbtn::after { content: '›'; margin-left: auto; padding-left: 10px; font-size: calc(19px * var(--pf-fs, 1)); font-weight: 400; line-height: 1; opacity: .5; transition: opacity .12s, transform .12s; }
#view-port .pf-app:not(.ph) #pf-store .mk-sacts .pf-qbtn:hover::after { opacity: 1; transform: translateX(2px); }

/* ---- a phone: the filters as dropdowns (BLACKPORT's phone, round 31), every tap target 40 px or more, the fields the
   screen's width ---- */
#view-markt .mk-pmbar { display: none; }
@media (max-width: 760px) {
  #view-markt .mk-chiprows { display: none; }
  #view-markt .mk-pmbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0 12px; }
  #view-markt .mk-pmbar > .pm-sel.k-game { grid-column: 1 / -1; }
}
body.mv #view-markt .mk-chiprows { display: none; }
body.mv #view-markt .mk-pmbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0 12px; }
body.mv #view-markt .mk-pmbar > .pm-sel.k-game { grid-column: 1 / -1; }
#view-markt .mk-pmbar > .pm-sel { height: 48px; border-radius: 10px; background: var(--ctl-bg); border-color: var(--ctl-line); box-shadow: var(--ctl-shadow); }
#view-markt .mk-pmbar > .pm-sel > i { color: var(--cap); }
#view-markt .mk-pmbar > .pm-sel.on { background: linear-gradient(180deg, #3a1d1c 0%, #2a1514 100%); border-color: var(--accent); }
#view-markt .mk-pmbar > .pm-sel > .pf-chev { stroke: #fff; width: 22px; height: 22px; right: 7px; margin-top: -11px; padding: 5px; box-sizing: border-box; border-radius: 6px; background: var(--accent); stroke-width: 2.6; }
#view-markt .mk-pmbar > .pm-sel { padding-right: 36px; }
/* the STORE's SHOW pills wrap on a phone, 40 px tall */
body.mv #pf-store .mk-chips.mk-lfilt .pf-chip.sm, .pf-app.ph #pf-store .mk-chips.mk-lfilt .pf-chip.sm { height: 40px; }
body.mv #view-markt .mk-bar .mk-search { min-height: 54px; }
body.mv #view-markt .mk-shops, body.mv #view-markt .mk-gbox { padding: 10px 10px 12px; border-radius: 14px; }
body.mv #view-markt .mk-shopshd .pf-chip.mk-myshelf { height: 40px; }
body.mv #view-markt .mk-shopshd { flex-wrap: wrap; row-gap: 8px; }                                  /* the title on one line, the door under it when narrow */
body.mv #view-markt .mk-shopshd b, body.mv #view-markt .mk-ghead b { white-space: nowrap; }
body.mv :is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .mk-sellerbar, #pf-store .pf-list) .pf-chip.sm:where(:not(.mk-myshelf):not(.danger)) { height: 40px; padding: 0 13px; }
body.mv :is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .pf-qbtn.small { height: 44px; }
body.mv :is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-f { min-height: 54px; }
body.mv :is(#view-markt .mk-app, #mk-sheet .mk-win, #pf-store .mk-store) .mk-row > .pf-qbtn, body.mv #mk-sheet .mk-win .mk-addr > .pf-qbtn { height: 54px; }
body.mv :is(#view-markt, #mk-sheet, #pf-store) .pf-list li.mk-orow > .mk-obtns { grid-column: 1 / -1; }
body.mv :is(#view-markt .mk-pane, #mk-sheet .mk-win, #pf-store .pf-list) .mk-obtns .pf-chip.sm { height: 42px; flex: 1 1 auto; justify-content: center; }
body.mv :is(#view-markt, #mk-sheet, #pf-store) .mk-counter { flex: 1 1 100%; }
body.mv :is(#view-markt, #mk-sheet, #pf-store) .mk-counter input { flex: 1 1 auto; height: 42px; width: auto; font-size: calc(16px * var(--pf-fs, 1)); }
body.mv #mk-sheet .mk-win .mk-addr > .mk-f, body.mv #mk-sheet .mk-win .mk-row > .mk-f { flex: 1 1 100%; }
body.mv #mk-sheet .mk-win .mk-stars button { width: 48px; height: 48px; }
body.mv #mk-sheet .mk-win .mk-bkback { height: 36px; }
/* ===== <</ROUND 162 · BLACKMARKT SCHEMA>> ===== */

/* ===== ROUND 162 · THAI ===== (operator 2026-10-22: 'Allow Thai Language to be selected for Software/App (Mobile and PC)
   - also available to users') — js/i18n.js puts html[lang="th"] on while ไทย is on and marks the parent of every
   translated text with [data-th]. Bahnschrift / Barlow carry no Thai: a Thai face follows the Latin one in every stack
   (numbers and brand words keep their look), Noto Sans Thai (loaded from Google Fonts only when Thai is chosen, its
   width axis follows the condensed cuts) before Windows' Leelawadee UI. Thai does not take the tracking the capitals
   wear (spaced marks fall apart) and its tall marks need a little more line height than the 1.0 labels. */
html[lang="th"] {
  --rep-font: Bahnschrift, 'Barlow', 'Noto Sans Thai', 'Leelawadee UI', 'Leelawadee', 'Sarabun', 'Tahoma', 'Yu Gothic UI', 'Meiryo', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
  --rep-font-sc: 'Bahnschrift SemiCondensed', Bahnschrift, 'Barlow Semi Condensed', 'Noto Sans Thai', 'Leelawadee UI', 'Leelawadee', 'Sarabun', 'Tahoma', 'Yu Gothic UI', 'Meiryo', 'Microsoft YaHei', 'Arial Narrow', sans-serif;
  --jb-font: Bahnschrift, 'Franklin Gothic Medium', 'Noto Sans Thai', 'Leelawadee UI', 'Leelawadee', 'Tahoma', 'Segoe UI', Arial, sans-serif;
  --menu-font: 'Bahnschrift SemiLight SemiCondensed', 'Bahnschrift SemiCondensed', Bahnschrift, 'Barlow Semi Condensed', Barlow, 'Noto Sans Thai', 'Leelawadee UI', 'Leelawadee', 'Tahoma', 'Segoe UI', system-ui, sans-serif;
}
/* the stacks written out in full (the top bar's page title, the section dividers' labels) */
html[lang="th"] .tb-page, html[lang="th"] #topbar.tb-job .tb-word,
html[lang="th"] :is(#view-job, #view-stage, #view-ai, #view-submit, #view-home, #view-board, #view-settings, #view-admin, #view-guide) .sec-div::after {
  font-family: Bahnschrift, 'Franklin Gothic Medium', 'Noto Sans Thai', 'Leelawadee UI', 'Leelawadee', 'Tahoma', 'Segoe UI', Arial, sans-serif; }
html[lang="th"] [data-th] { letter-spacing: .15px !important; }
html[lang="th"] .sec-div[data-th]::after, html[lang="th"] .sec-div[data-th]::before { letter-spacing: .12em !important; }
html[lang="th"] :is(button, .btn, .sb-btn, .sb-sub, .pf-tog, .pf-chip, .pf-qbtn, .bd-btn, .rq-next, .bbx-seg button, .jb-tab)[data-th],
html[lang="th"] :is(button, .btn, .sb-btn, .sb-sub, .pf-tog, .pf-chip, .pf-qbtn, .bd-btn) [data-th] { line-height: 1.25; }
/* the sign-in page's EN | ไทย, in the card's top-right corner (a phone: above the mark) */
.lg-card { position: relative; }
.lg-lang { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: #0f0f0f; border: 1px solid #333; }
.lg-lang button { min-width: 42px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: #9a9a9a; font: 700 11.5px/1 var(--rep-font); letter-spacing: 1px; cursor: pointer; }
.lg-lang button[lang="th"] { font-family: 'Noto Sans Thai', 'Leelawadee UI', 'Leelawadee', 'Tahoma', sans-serif; letter-spacing: 0; font-size: 12.5px; }
.lg-lang button:hover { color: #fff; }
.lg-lang button.on { background: var(--accent); color: #fff; }
.lg-lang button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 860px) { .lg-lang { top: calc(12px + env(safe-area-inset-top)); right: 12px; } }
/* a phone: the fixed BLACKLENS header (#mv-top) sits over the sign-in page — the page starts under it (the switch and the mark were behind it) */
body.mv #view-login { padding-top: var(--mvh, 52px); }
body.mv .lg-lang { top: 12px; }
/* YOUR ACCOUNT → PREFERENCES → Language: English · ไทย */
.st-langseg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: #111; border: 1px solid #3a3a3a; }
.st-langb { min-width: 64px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: #a9a9a9; font: 600 13px/1 var(--rep-font); cursor: pointer; }
.st-langb[lang="th"] { font-family: 'Noto Sans Thai', 'Leelawadee UI', 'Leelawadee', 'Tahoma', sans-serif; }
.st-langb:hover { color: #fff; }
.st-langb.on, .st-langb[aria-checked="true"] { background: var(--accent); color: #fff; }
.st-langb:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
body.mv .st-langb { min-width: 58px; height: 34px; }
/* words the stylesheet itself prints (content:) — the DOM translator never sees them */
html[lang="th"] .jb-prevbox.empty::after,
html[lang="th"] #stg-fcv-imgbox.empty::after { content: 'ยังไม่มีภาพ'; letter-spacing: 1px; }
html[lang="th"] .jb-centbox.empty::after { content: 'ยังไม่มีภาพ \2014  ถ่ายภาพ แล้วกด ใช้เป็นด้านหน้า / ใช้เป็นด้านหลัง'; }
html[lang="th"] .pf-charthead .pf-change:not(.muted)::before { content: 'เปลี่ยนแปลง'; letter-spacing: .3px; }
html[lang="th"] .mk-bkpk.res::after { content: 'จองแล้ว'; letter-spacing: .3px; }
/* ===== /ROUND 162 · THAI ===== */

/* ===== ROUND 163 · SERVICE TIERS ===== (operator 2026-10-23: 'for each grading company allow multiple tiers —
   PSA has more than 5 tiers to enter') — SETTINGS → Grading prices: per service a list of tiers (name · price per card ·
   turnaround · max declared value · ✕) with + ADD A TIER; the agents' own price per tier; the order's SERVICE TIER;
   the customer's tier cards in MY SUBMISSIONS */
.st-tiers { container: sttiers / inline-size; margin-top: 4px; }
.st-thead, .st-trow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) 26px; gap: 6px; align-items: center; }
.st-thead { grid-template-columns: 74px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) 26px; padding-bottom: 4px; }
.st-thead > i { font-style: normal; font-size: 9.5px; line-height: 1.25; letter-spacing: 1.2px; color: #9a9a9a; font-weight: 700; }
.st-tsvc { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px; align-items: start; padding: 7px 0; border-top: 1px solid #262626; }
.st-tsn { display: flex; flex-direction: column; gap: 2px; padding-top: 7px; font-size: 11.5px; letter-spacing: 1px; color: #fff; }
.st-tsn i { font-style: normal; font-size: 9px; letter-spacing: 1px; color: #8fc4ff; font-weight: 700; }
.st-trows { display: grid; gap: 5px; min-width: 0; }
:is(#view-settings, #view-admin) .st-trow input { height: 30px; padding: 0 8px; font-size: 12.5px; min-width: 0; width: 100%; box-sizing: border-box; }
.st-trow input::placeholder { color: #6a6a6a; }
.st-trow input[data-tf="name"] { font-weight: 600; }
.st-trm { width: 26px; height: 30px; padding: 0; border-radius: 6px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #9a9a9a; font-size: 16px; line-height: 1; cursor: pointer; }
.st-trm:hover { color: #fff; border-color: var(--accent); background: #2a1514; }
.st-tadd { justify-self: start; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px dashed #3a5068; background: none; color: #8fc4ff; font: 700 10px/1 var(--rep-font); letter-spacing: 1.2px; cursor: pointer; }
.st-tadd:hover { border-style: solid; background: #14202c; color: #cfe5ff; }
.st-tadd:disabled { opacity: .4; cursor: default; }
@container sttiers (max-width: 600px) {
  .st-thead, .st-trow { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.45fr) minmax(0, .85fr) 26px; gap: 5px; }
  .st-thead > span:first-child { display: none; }
  .st-tsvc { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .st-tsn { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
  :is(#view-settings, #view-admin) .st-trow input { padding: 0 6px; font-size: 12px; }
}
/* an agent's own price per tier */
.ag-pgrid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.ag-pgrid .set-label { min-width: 0; line-height: 1.25; }
/* an agent's own list (staff column): the tier under its service */
.st-ptab.ro > b em { display: block; font-style: normal; font-size: 10px; letter-spacing: .4px; color: #9a9a9a; font-weight: 600; }
.st-tmax { font-style: normal; font-size: 10.5px; color: #8f8f8f; }
/* the order's SERVICE TIER (DASHBOARD order view) */
.od-tier { display: grid; gap: 4px; margin: 4px 0 6px; }
.od-tier > i { font-style: normal; font-size: calc(8.5px + 2pt); letter-spacing: 1.2px; color: #9a9a9a; font-weight: 700; }
.od-tier select { width: 100%; height: 30px; box-sizing: border-box; }
/* MY SUBMISSIONS → 1 SERVICE: the tiers of the chosen service, one card each */
.rq-tiercap { display: block; margin: 4px 0 0 -32px; font-size: 10px; letter-spacing: 1.4px; color: #9a9a9a; font-weight: 700; }
.rq-optb { flex: 1 1 auto; }
/* one row a tier (round 217): the family's colour on a banner with the turnaround written large. Rows run the card's whole width, under the radio too */
.rq-tiers { display: flex; flex-direction: column; gap: 7px; margin-left: -32px; }
.rq-tier { --t: #bdbdbd; --t1: #5a5a5a; --t2: #2a2a2a; --tw: rgba(189, 189, 189, .1); --ink: #fff;
  position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: stretch; width: 100%; min-height: 68px; padding: 0; overflow: hidden; border-radius: 12px; border: 1px solid #333; background: #131313; color: #e6e6e6; font: inherit; text-align: left; cursor: pointer; }
.rq-tier.t-blue { --t: #6aa9e0; --t1: #2f6ea6; --t2: #163653; --tw: rgba(106, 169, 224, .14); }
.rq-tier.t-teal { --t: #5cc4b4; --t1: #24806f; --t2: #103d35; --tw: rgba(92, 196, 180, .14); }
.rq-tier.t-violet { --t: #a28fe6; --t1: #5a48ad; --t2: #2a2158; --tw: rgba(162, 143, 230, .14); }
.rq-tier.t-orange { --t: #f0915a; --t1: #c2572a; --t2: #5c2912; --tw: rgba(240, 145, 90, .14); }
.rq-tier.t-red { --t: #ee6f6b; --t1: #b83a37; --t2: #561a18; --tw: rgba(238, 111, 107, .14); }
.rq-tier.t-gold { --t: #d8c89a; --t1: #c4b27e; --t2: #6e6240; --tw: rgba(216, 200, 154, .14); --ink: #17140c; }
.rq-tier:hover { border-color: var(--t); }
.rq-tier.on { border-color: var(--t); box-shadow: 0 0 0 1px var(--t); background: linear-gradient(90deg, var(--tw), rgba(19, 19, 19, 0) 85%), #131313; }
.rq-tband { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 7px 3px; background: linear-gradient(155deg, var(--t1), var(--t2)); color: var(--ink); text-align: center; }
.rq-tband svg { width: 15px; height: 15px; margin-bottom: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rq-tband b { font-size: 18px; line-height: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rq-tband i { font-style: normal; font-size: 9px; line-height: 11px; letter-spacing: 1px; text-transform: uppercase; }
.rq-ttick { position: absolute; top: 4px; left: 4px; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.rq-ttick svg { width: 10px; height: 10px; margin: 0; stroke: #111; stroke-width: 3.4; }
.rq-tmain { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px 8px 11px; }
.rq-tname { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.rq-tname > b { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }
.rq-ttag { display: inline-flex; align-items: center; height: 16px; padding: 0 7px; border-radius: 8px; background: var(--tw); color: var(--t); font-size: 8.5px; letter-spacing: 1px; font-weight: 700; white-space: nowrap; }
.rq-ttag.k-bulk { background: #173b36; color: #7fe0cf; }
.rq-ttag.k-member { background: linear-gradient(120deg, #d8c89a, #ab9b6f); color: #17140c; }
.rq-ttag.k-full { background: #3a1716; color: #ff9c98; }
.rq-ttag.k-quota { background: #DC4F4C; color: #fff; }
.rq-ttag.k-combo { background: linear-gradient(135deg, #f5f1d6, #d9cc9a 45%, #c9a97a); color: #17140c; }
.rq-tpack { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--t); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rq-tstack { width: 21px; height: 14px; fill: #131313; stroke: var(--t); stroke-width: 1.4; }
.rq-tier em { font-style: normal; font-size: 10.5px; line-height: 1.35; color: #a6a6a6; }
.rq-tierp { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; padding: 8px 11px 8px 4px; text-align: right; white-space: nowrap; }
.rq-tierp b { font-size: 15.5px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.rq-tierp small { font-size: 10px; color: #a6a6a6; }
.rq-tier.on .rq-tierp small, .rq-tier.on em { color: #cfcfcf; }
.rq-over { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; border: 1px solid #6b5420; background: #221c0e; color: #f0d58a; font-size: 12px; line-height: 1.45; }
/* ===== /ROUND 163 · SERVICE TIERS ===== */

/* ===== ROUND 164 · THE DROP-OFF PASS QR ===== (operator 2026-10-23: 'fix the Submission QR, it doesn't show properly'):
   .rq-app svg draws the line icons (fill none, a 1.7 stroke) — on the QR it emptied every module and stroked it 1.7 modules
   wide, a black blob no phone could read; the QR keeps its own fill and no stroke */
.rq-app .rq-qr svg rect { fill: #fff; stroke: none; }
.rq-app .rq-qr svg path { fill: #141414; stroke: none; }

/* ===== ROUND 164 · PAYMENT · RECEIPT · AGENT INVITES · PH ADMIN · PASSWORD (operator 2026-10-23) ===== */
/* MY SUBMISSIONS — the payment panel on the pass and on the order */
.rq-pay { display: flex; flex-direction: column; gap: 8px; }
.rq-pay.paid { border-color: #2a5a3a; }
.rq-paysum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 0 4px; border-bottom: 1px solid #262626; }
.rq-paysum b { font-size: 26px; line-height: 30px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.rq-paysum span { font-size: 12px; color: #a6a6a6; }
.rq-paysum em { font-style: normal; }
.rq-pay.paid .rq-paysum b { color: #7ED4A6; }
.rq-payqr { align-self: center; width: 196px; height: 196px; padding: 10px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.rq-app .rq-payqr svg { width: 100%; height: 100%; display: block; }
.rq-app .rq-payqr svg rect { fill: #fff; stroke: none; }
.rq-app .rq-payqr svg path { fill: #141414; stroke: none; }
.rq-payto { display: flex; flex-direction: column; gap: 0; }
.rq-payto > div { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid #222; }
.rq-payto > div:first-child { border-top: 0; }
.rq-payto span { flex: 0 0 104px; font-size: 9px; letter-spacing: 1.6px; color: #8f8f8f; }
.rq-payto b { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: #f2f2f2; overflow-wrap: anywhere; user-select: all; }
.rq-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.rq-slipdrop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 12px; border-radius: 12px;
  border: 1px dashed #5a5a5a; background: #141414; color: #f2f2f2; text-align: center; cursor: pointer; }
.rq-slipdrop:hover { border-color: var(--accent); }
.rq-slipdrop b { font-size: 11.5px; letter-spacing: 1.6px; }
.rq-slipdrop span { font-size: 11.5px; color: #a6a6a6; }
.rq-slipview { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: 12px; background: #141414; border: 1px solid #2e2e2e; }
.rq-slipthumb { flex: 0 0 auto; width: 72px; height: 96px; padding: 0; border: 1px solid #3a3a3a; border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; }
.rq-slipthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rq-slipinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rq-slipinfo b { font-size: 10.5px; letter-spacing: 1.6px; color: #f2f2f2; }
.rq-slipinfo span { font-size: 12px; color: #a6a6a6; line-height: 1.4; }
.rq-sliprow { display: flex; gap: 6px; margin-top: 4px; }
.rq-ghost.sm { position: relative; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 10.5px; letter-spacing: 1.2px; font-weight: 600; cursor: pointer; }
label.rq-ghost.sm { align-self: flex-start; margin-top: 4px; }
.rq-pc2 i.rq-topay { font-style: normal; color: #ffb3b0; font-weight: 600; }
.rq-pc2 i.rq-paid { font-style: normal; color: #7ED4A6; font-weight: 600; }

/* THE RECEIPT — a white page over everything (customer and studio), printed on its own */
.rq-rcwin { position: fixed; inset: 0; z-index: 9400; display: flex; align-items: flex-start; justify-content: center; padding: 24px 14px; overflow: auto; background: rgba(8,8,8,.88); backdrop-filter: blur(2px); }
.rq-rcwin[hidden] { display: none; }
.rq-rcbox { width: min(720px, 100%); display: flex; flex-direction: column; gap: 10px; }
.rq-rcbar { display: flex; align-items: center; gap: 10px; color: #f2f2f2; padding: 6px 6px 6px 14px; border-radius: 12px; background: #171717; border: 1px solid #2e2e2e; }
.rq-rcbar > b { font-size: 11px; letter-spacing: 2.2px; margin-right: auto; }
.rq-rcbar .rq-ghost.sm { display: inline-flex; align-items: center; justify-content: center; background: #1b1b1b; border: 1px solid #3a3a3a; color: #f2f2f2; font-family: inherit; }
.rq-rcbar .pf-x { margin-left: 0; width: 40px; height: 40px; border-radius: 20px; background: #1c1c1c; border: 1px solid #3d3d3d; color: #fff; font-size: 24px; }
.rq-rcpage { background: #fff; color: #141414; padding: 30px 32px 24px; border-radius: 6px; font-family: var(--rep-font, Bahnschrift, 'Segoe UI', sans-serif); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.rq-rch { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 3px solid #DC4F4C; }
.rq-rch img { width: 46px; height: 46px; object-fit: contain; }
.rq-rch > div:not(.rq-rcno) { display: flex; flex-direction: column; margin-right: auto; }
.rq-rch > div:not(.rq-rcno) b { font-size: 22px; letter-spacing: 3px; font-weight: 700; }
.rq-rch > div:not(.rq-rcno) span { font-size: 9.5px; letter-spacing: 1.8px; color: #6a6a6a; }
.rq-rcno { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rq-rcno span { font-size: 10px; letter-spacing: 3px; color: #DC4F4C; font-weight: 700; }
.rq-rcno b { font-size: 18px; letter-spacing: 1px; }
.rq-rcno em { font-style: normal; font-size: 12px; color: #4a4a4a; }
.rq-rcgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px 0; }
.rq-rcgrid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rq-rcgrid span, .rq-rcfoot span { font-size: 9px; letter-spacing: 1.8px; color: #7a7a7a; }
.rq-rcgrid b { font-size: 14px; overflow-wrap: anywhere; }
.rq-rcgrid em { font-style: normal; font-size: 11.5px; color: #5a5a5a; overflow-wrap: anywhere; }
.rq-rct { width: 100%; border-collapse: collapse; font-size: 13px; }
.rq-rct th { text-align: left; font-size: 9.5px; letter-spacing: 1.6px; font-weight: 600; color: #5a5a5a; padding: 7px 6px; border-bottom: 1px solid #cfcfcf; }
.rq-rct td { padding: 10px 6px; border-bottom: 1px solid #ececec; }
.rq-rct .n { text-align: right; white-space: nowrap; }
.rq-rct tfoot td { font-size: 11px; letter-spacing: 1.6px; font-weight: 700; border-bottom: 0; border-top: 2px solid #141414; }
.rq-rct tfoot td.n { font-size: 18px; letter-spacing: .3px; }
.rq-rcfoot { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 11.5px; color: #4a4a4a; line-height: 1.5; }
.rq-rcfoot > div:first-child { display: flex; flex-direction: column; }
.rq-rcfoot > div:first-child b { font-size: 13px; color: #141414; }
.rq-rcfoot > div:last-child { text-align: right; }
.rq-rcfine { margin: 16px 0 0; font-size: 10px; line-height: 1.5; color: #7a7a7a; }
@media (max-width: 560px) {
  .rq-rcpage { padding: 18px 16px; }
  .rq-rcgrid { grid-template-columns: 1fr; gap: 10px; }
  .rq-rch > div:not(.rq-rcno) b { font-size: 17px; }
  .rq-rcfoot { flex-direction: column; }
  .rq-rcfoot > div:last-child { text-align: left; }
}
#rq-rcprint { display: none; }
@media print {
  body.print-receipt > *:not(#rq-rcprint) { display: none !important; }
  body.print-receipt #rq-rcprint { display: block !important; }
  body.print-receipt #rq-rcprint .rq-rcpage { box-shadow: none; border-radius: 0; padding: 12mm 14mm; }
  body.print-receipt { background: #fff !important; }
}

/* THE CUSTOMER REQUEST mailbox — the PAYMENT box */
.rqi-pay { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.rqi-pay .od-h { display: flex; align-items: center; gap: 8px; }
.rqi-pay.sent { border-color: var(--accent); }
.rqi-pay.paid { border-color: #2a5a3a; }
.rqi-pay.paid .rqi-big { color: #7ED4A6; }
.rqi-slip { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.rqi-slipthumb { flex: 0 0 auto; width: 70px; height: 92px; padding: 0; border: 1px solid #3a3a3a; border-radius: 6px; overflow: hidden; background: #fff; cursor: zoom-in; }
.rqi-slipthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rqi-slip > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rqi-slip b { font-size: 10px; letter-spacing: 1.6px; color: #f2f2f2; }
.rqi-slip span { font-size: 12px; color: #bdbdbd; line-height: 1.4; }
.rqi-payrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.rqi-payrow label { display: flex; flex-direction: column; gap: 4px; }
.rqi-payrow span { font-size: 9px; letter-spacing: 1.4px; color: #8f8f8f; }
.rqi-payrow input, .rqi-payrow select { height: 34px; box-sizing: border-box; padding: 0 10px; border-radius: 6px; border: 1px solid #3a3a3a; background: #0f0f0f; color: #fff; font: inherit; font-size: 14px; }
.rqi-payrow input:focus, .rqi-payrow select:focus { outline: none; border-color: var(--accent); }
.rqi-payacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rqi-c1 .rqi-st + .rqi-st { margin-left: 4px; }

/* the DASHBOARD order view — where the customer's payment stands */
.od-pay { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 0; padding: 6px 8px; border-radius: 6px; background: #1f1f1f; border: 1px solid #333; font-size: calc(10px + 2pt); letter-spacing: .8px; color: #d9d9d9; }
.od-pay.sent { border-color: var(--accent); background: #2a1514; color: #ffd0ce; }
.od-pay.paid { border-color: #2a5a3a; background: #12261a; color: #b9ebcd; }
.od-pay .od-btn { flex: 0 0 auto; height: 26px; padding: 0 10px; border-radius: 5px; border: 1px solid #4a4a4a; background: #2a2a2a; color: #fff; font: inherit; font-size: calc(8.5px + 2pt); letter-spacing: 1.2px; font-weight: 700; cursor: pointer; }
.od-pay .od-btn:hover { border-color: #8f8f8f; }

/* SETTINGS → Agent accounts: JOINED / INVITED / NOT INVITED, the PH ADMIN switch, OLDER REPORTS */
.ag-st { flex: 0 0 auto; font-style: normal; font-size: 8.5px; letter-spacing: 1.3px; font-weight: 700; padding: 2px 7px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; }
.ag-st.joined { background: #12261a; border-color: #2a5a3a; color: #7ED4A6; }
.ag-st.invited { background: #2a2210; border-color: #6b5420; color: #f0d58a; }
.ag-st.none { background: #1e1e1e; border-color: #3a3a3a; color: #9a9a9a; }
.ag-radm { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 7px 10px; border-radius: 7px; border: 1px solid #333; background: #171717; cursor: pointer; flex-wrap: wrap; }
.ag-radm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-rsw { position: relative; flex: 0 0 auto; width: 34px; height: 18px; border-radius: 9px; background: #3a3a3a; transition: background .15s; }
.ag-rsw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #d9d9d9; transition: left .15s; }
.ag-radm.on { border-color: #2f6fb3; background: #142033; }
.ag-radm.on .ag-rsw { background: #2f6fb3; }
.ag-radm.on .ag-rsw::after { left: 18px; background: #fff; }
.ag-radm input:focus-visible + .ag-rsw { outline: 2px solid #fff; outline-offset: 2px; }
.ag-radm b { font-size: 10.5px; letter-spacing: 1.4px; color: #f2f2f2; }
.ag-radm em { font-style: normal; font-size: 11px; color: #9a9a9a; }
.st-scrub { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #2a2a2a; }
.st-scrub > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-scrub b { font-size: 10px; letter-spacing: 1.6px; color: #d9d9d9; }
.st-scrub span { font-size: 11.5px; color: #9a9a9a; line-height: 1.4; }
.st-scrub .btn { flex: 0 0 auto; }

/* SETTINGS → YOUR ACCOUNT → PASSWORD */
.st-pwform { display: flex; flex-direction: column; gap: 10px; }
.st-pwform .st-formbtns { margin-top: 2px; }
/* ===== /ROUND 164 ===== */
/* <<r165>> ROUND 165 (operator 2026-10-23) ============================================================================
   FILL BINDER on a phone (the LIST side): the list kept a flex child's shrink, so its rows spilled out of its box and ran
   under a see-through foot. Every child of the list side keeps its own height now; the buttons (COPIES · CANCEL · FILL)
   are the list side's own child and stay at the bottom of the scrolling list on an opaque bar; the target (INTO A NEW
   BINDER | INTO <binder>) and its sentence follow the last row. */
body.mv #view-binder .bd-pg.ph .bd-pgr > * { flex: none; }
body.mv #view-binder .bd-pg.ph .bd-pgr > .bd-pldfoot { position: sticky; bottom: 0; z-index: 3; margin: 0; padding: 10px 0 6px; background: #151515; border-top: 1px solid var(--bd-line); box-shadow: 0 -12px 18px rgba(0,0,0,.6); }
body.mv #view-binder .bd-pg.ph .bd-plsort { flex-wrap: wrap; row-gap: 6px; }
body.mv #view-binder .bd-pg.ph .bd-plfilt { flex-direction: column; align-items: stretch; }
body.mv #view-binder .bd-pg.ph .bd-plfilt .bd-search { flex: none; }
/* DELETE SELECTED in SELECT's bar (computer and phone) — the red outline of a delete, filled red when pressed into */
#view-port .pf-selbar .pf-sbtn.del:not(.gold) { background: #1b0d0c; border-color: var(--accent); color: #ff9b97; }
#view-port .pf-selbar .pf-sbtn.del:not(.gold):hover:not(:disabled) { background: #b5302d; border-color: #b5302d; color: #fff; }
#view-port .pf-selbar .pf-sbtn.del:not(.gold):disabled { background: #161010; border-color: #4a2220; color: #8a5d5b; }

/* A PHONE's SELECT panel: white, one change under the other (the computer's box, revised for a phone); ▾ folds it to its
   head; the BLACKPORT header stops holding while picking, so more cards show above */
body.pf-selecting #view-port .pf-app.ph .pf-hdr { position: relative; top: auto; }
#view-port .pf-app.ph .pf-selbar { background: #f2f2f2; color: #1c1c1c; color-scheme: light; border: 0; border-radius: 16px 16px 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 0 0 2px var(--accent), 0 -18px 40px rgba(0, 0, 0, .7); }
#view-port .pf-app.ph .pf-selbar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 16px 16px 0 0; background: var(--accent); }
#view-port .pf-app.ph .pf-selhead { flex-wrap: wrap; gap: 6px; }
#view-port .pf-app.ph .pf-selhead b { flex: 1 1 calc(100% - 150px); order: 0; color: #111; font-size: calc(14.5px * var(--pf-fs, 1)); letter-spacing: 1px; }
#view-port .pf-app.ph .pf-selhead .pf-sbtn { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 6px; font-size: calc(12px * var(--pf-fs, 1)); letter-spacing: .5px; border-radius: 10px; order: 3;
  background: linear-gradient(#ffffff, #ececec); border: 1px solid #bdbdbd; color: #1f1f1f; box-shadow: inset 0 1px 0 #fff; }
#view-port .pf-app.ph .pf-selhead .pf-sbtn:disabled { background: #e6e6e6; border-color: #d2d2d2; color: #a3a3a3; }
#view-port .pf-app.ph .pf-selhead .pf-sbtn.fold { flex: 0 0 44px; order: 1; font-size: 15px; padding: 0; }
#view-port .pf-app.ph .pf-selhead .pf-sbtn.done { flex: 0 0 84px; order: 2; background: linear-gradient(#e2605d, #c9423f); border-color: #b8302d; color: #fff; box-shadow: none; }
#view-port .pf-app.ph .pf-selhead .pf-sbtn.del { background: #ffffff; border-color: #e2a9a7; color: #b8302d; }
#view-port .pf-app.ph .pf-selhead .pf-sbtn.del:disabled { background: #f3f3f3; border-color: #e3caca; color: #c9a5a3; }
#view-port .pf-app.ph .pf-selbar .pm-sstack { max-height: min(36vh, 300px); overflow-y: auto; overscroll-behavior: contain; margin: 8px -12px 0; padding: 0 12px; border-top: 1px solid #dadada; }
#view-port .pf-app.ph .pf-selbar.folded :is(.pm-sstack, .pm-sphint) { display: none; }
#view-port .pf-epop .pm-sstack { margin: 0; }
.pm-ss { padding: 9px 0 10px; border-bottom: 1px solid #dcdcdc; }
.pm-ss:last-child { border-bottom: 0; }
.pm-ss > i { display: block; font-style: normal; font-size: calc(10px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1px; color: #5c5c5c; margin-bottom: 6px; }
.pm-ssr { display: flex; gap: 6px; min-width: 0; }
.pm-ssr :is(input, select) { box-sizing: border-box; flex: 1 1 0; min-width: 0; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid #c4c4c4; background: #ffffff; color: #1a1a1a; color-scheme: light; font: inherit; font-size: 16px; }
.pm-ssr select { padding: 0 6px; }
.pm-ssr #pf-sa-cur { flex: 0 0 80px; }
.pm-ssr :is(input, select):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pm-ssr input[type=number] { -moz-appearance: textfield; }
.pm-ssr input[type=number]::-webkit-inner-spin-button, .pm-ssr input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#view-port .pf-selbar .pm-ssr .pf-sbtn:not(.z) { flex: 0 0 auto; height: 42px; padding: 0 14px; border-radius: 10px; font-size: calc(13px * var(--pf-fs, 1)); letter-spacing: .8px;
  background: linear-gradient(#ffffff, #ececec); border: 1px solid #bdbdbd; color: #1f1f1f; box-shadow: inset 0 1px 0 #fff; }
#view-port .pf-selbar .pm-ssr .pf-sbtn:not(.z).go { background: var(--accent); border-color: #b8302d; color: #fff; box-shadow: none; }
#view-port .pf-selbar .pm-ssr .pf-sbtn:not(.z).gold { background: #f4ecd5; border-color: #ab9b6f; color: #5a4a1c; }
#view-port .pf-selbar .pm-ssr .pf-sbtn:not(.z):disabled { background: #e6e6e6; border-color: #d2d2d2; color: #a3a3a3; }
#view-port .pf-selbar .pm-ssr [data-sa="date"], #view-port .pf-selbar .pm-ssr [data-sa="single"], #view-port .pf-selbar .pm-ssr [data-sa="marksold"], #view-port .pf-selbar .pm-ssr [data-sa="sell"] { flex: 1 1 0; }
#view-port .pf-app.ph .pf-selbar .pm-sphint { margin: 6px 0 0; color: #666; font-size: calc(11.5px * var(--pf-fs, 1)); line-height: 1.35; }
.pf-app.selph { padding-bottom: calc(var(--selh, 260px) + 24px); }

/* A PHONE's card opened by a tap (EDIT off): its details, the price trend and TURN EDIT ON · SELL · CLOSE in a WHITE
   panel under the card — every detail on a line of its own, nothing cut (the tile's small grid is not drawn there) */
#view-port .pf-cards.ph .pf-card.pm.open > .pm-ed.pm-pop { margin: 10px -2px 0; padding: 0 12px 12px; border: 0; border-radius: 13px; background: #f2f2f2; color: #1c1c1c; color-scheme: light;
  box-shadow: 0 0 0 2px var(--accent), 0 14px 34px rgba(0, 0, 0, .55); overflow: hidden; }
.pm-pophd { display: flex; align-items: baseline; gap: 10px; margin: 0 -12px 10px; padding: 11px 12px 9px; background: #ffffff; border-bottom: 1px solid #dadada; box-shadow: inset 0 3px 0 var(--accent); }
.pm-pophd b { font-size: calc(11px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: 1.3px; color: #b8302d; }
.pm-pophd span { margin-left: auto; font-size: calc(10.5px * var(--pf-fs, 1)); color: #777; }
.pm-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; margin-bottom: 10px; }
.pm-dl > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 7px 0; border-bottom: 1px solid #e0e0e0; }
.pm-dl > span.w { grid-column: 1 / -1; }
.pm-dl > span > i { font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 800; letter-spacing: .9px; color: #6a6a6a; }
.pm-dl > span > b { font-size: calc(14.5px * var(--pf-fs, 1)); font-weight: 700; color: #141414; overflow-wrap: anywhere; line-height: 1.25; }
.pm-dl > span.no > b { color: #a8a8a8; font-weight: 600; }
#view-port .pm-ed.pm-pop .pf-trend { background: #ffffff; border: 1px solid #dcdcdc; color: #333; }
#view-port .pm-ed.pm-pop .pf-trend.none { color: #777; }
#view-port .pm-ed.pm-pop .pf-trendhead b { color: #111; }
#view-port .pm-ed.pm-pop .pf-trendhead span { color: #6a6a6a; }
#view-port .pm-ed.pm-pop .pf-trend path { stroke: #2b2b2b; }
#view-port .pm-ed.pm-pop .pf-trend circle { fill: #2b2b2b; }
#view-port .pm-ed.pm-pop .pf-trend.up path { stroke: #15784a; } #view-port .pm-ed.pm-pop .pf-trend.up circle { fill: #15784a; }
#view-port .pm-ed.pm-pop .pf-trend.down path { stroke: #c0302d; } #view-port .pm-ed.pm-pop .pf-trend.down circle { fill: #c0302d; }
#view-port .pm-ed.pm-pop .pf-trend .pf-chg.up { color: #15784a; } #view-port .pm-ed.pm-pop .pf-trend .pf-chg.down { color: #c0302d; }
#view-port .pm-ed.pm-pop .pm-edfoot { margin-top: 10px; }
#view-port .pm-ed.pm-pop .pm-btn { height: 44px; background: linear-gradient(#ffffff, #ececec); border-color: #bdbdbd; color: #1f1f1f; box-shadow: inset 0 1px 0 #fff; }
#view-port .pm-ed.pm-pop .pm-btn.red { background: linear-gradient(#e2605d, #c9423f); border-color: #b8302d; color: #fff; box-shadow: none; }
#view-port .pm-ed.pm-pop .pm-btn.gold { background: #f4ecd5; border-color: #ab9b6f; color: #5a4a1c; }
/* BLACKVAULT: FRONT / BACK sits in each section's head, top right, level with 'FRONT · CENTERING' — wherever one side
   shows at a time (a phone, a window 760 px wide or less); the switch that sat under the page leaves */
.bv-hseg { display: none; }
@media (max-width: 760px) {
  .bv-hseg { display: flex; flex: 0 0 auto; margin-left: auto; gap: 2px; padding: 2px; border-radius: 9px; background: #1b1b1b; border: 1px solid #2c2c2c; }
  .bv-hseg button { min-width: 58px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: #9a9a9a; font: inherit; font-size: calc(10.5px + var(--bv-up)); font-weight: 700; letter-spacing: 1.4px; cursor: pointer; }
  .bv-hseg button.on { background: var(--accent); color: #fff; }
  #view-vault .bv-sideseg { display: none !important; }
  #view-vault .bv-side > .bv-phead { align-items: center; flex-wrap: wrap; row-gap: 6px; }
}
body.mv .bv-hseg { display: flex; flex: 0 0 auto; margin-left: auto; gap: 2px; padding: 3px; border-radius: 10px; background: #1b1b1b; border: 1px solid #2c2c2c; }
body.mv .bv-hseg button { min-width: 62px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #9a9a9a; font: inherit; font-size: calc(11px + var(--bv-up)); font-weight: 700; letter-spacing: 1.5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body.mv .bv-hseg button.on { background: var(--accent); color: #fff; }
body.mv #view-vault .bv-sideseg { display: none !important; }
body.mv #view-vault .bv-side > .bv-phead { align-items: center; flex-wrap: wrap; row-gap: 6px; }
/* SUMMARY shows both FINISH pictures at once — no FRONT / BACK switch in its heads (operator 2026-10-25); the other four keep it */
#view-vault .bv-slide[data-k="summary"] .bv-hseg { display: none !important; }
body.mv #view-vault .bv-side > .bv-phead .bv-mksw { order: 3; }
/* BLACKBINDER zoom: the wheel / a pinch scales the book inside its stage (js/binder.js zApply); zoomed, the stage clips
   it and one finger pans it; the tag top right reads the zoom and puts it back */
#view-binder .bd-stage.zoomed { overflow: hidden !important; touch-action: none; }
#view-binder .bd-stage .bd-book { will-change: auto; }
#view-binder .bd-stage.zoomed .bd-book { will-change: transform; }
.bd-ztag { position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 9px;
  border: 1px solid #4d4d4d; background: rgba(14, 14, 14, .88); color: #f2f2f2; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .6px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.bd-ztag b { font-size: 10px; letter-spacing: 1.2px; color: #ff8f8b; }
.bd-ztag:hover { border-color: var(--accent); }
.bd-ztag[hidden] { display: none; }
body.mv .bd-ztag { top: auto; bottom: 8px; right: 8px; height: 36px; font-size: 13px; }

/* ===== ROUND 166 · SETTINGS — THE ADMIN COLUMN WIDER · GRADED COUNTRY + MIN. CARDS ON EVERY TIER ===== (operator 2026-10-23:
   'expand the blue divider (wider)' · 'more columns to fill for the pricing — Graded Country (selection), Minimum No. of Cards'
   · 'take out the grey description (your cards go back here …)') */
/* the admin's third column takes the room; THIS COMPUTER & THE STUDIO keeps 330 px at the least (1366 unchanged) */
.st-grid { grid-template-columns: var(--sd) minmax(340px, min(420px, 27vw)) var(--sd) minmax(330px, 1fr) var(--sd) minmax(0, 1.9fr); }
/* the tier rows: TIER · PRICE PER CARD · TURNAROUND · MAX DECLARED · GRADED COUNTRY · MIN. CARDS · ✕ */
.st-thead, .st-trow { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .6fr) 22px 26px; }   /* round 265: TURNAROUND narrower, so MAX DECLARED shows its whole figure */
.st-thead { grid-template-columns: 74px minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .6fr) 22px 26px; }
:is(#view-settings, #view-admin) .st-trow select { height: 30px; min-width: 0; width: 100%; box-sizing: border-box; padding: 0 22px 0 7px; font-size: 12.5px; text-overflow: ellipsis; }
:is(#view-settings, #view-admin) .st-trow select.none { color: #6a6a6a; }
:is(#view-settings, #view-admin) .st-trow select option { color: #f2f2f2; }
:is(#view-settings, #view-admin) .st-trow input[data-tf="min"] { text-align: center; }
/* a narrow admin column (1366, the PH ADMIN's card in the middle column): each tier on two lines —
   TIER · PRICE · TURNAROUND · ✕ over GRADED COUNTRY · MAX DECLARED · MIN. CARDS */
@container sttiers (max-width: 760px) {
  .st-thead, .st-trow { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1.3fr) 22px 26px; grid-template-areas: "n f t v r" "c m i i i"; gap: 5px; }
  .st-thead > .st-tmvh { display: none; }
  .st-trow > .st-tmv { grid-area: v; }
  .st-thead > span:first-child { display: none; }
  .st-thead > span:last-child { display: none; }
  .st-thead > i:nth-of-type(1) { grid-area: n; } .st-thead > i:nth-of-type(2) { grid-area: f; } .st-thead > i:nth-of-type(3) { grid-area: t; }
  .st-thead > i:nth-of-type(4) { grid-area: m; } .st-thead > i:nth-of-type(5) { grid-area: c; } .st-thead > i:nth-of-type(6) { grid-area: i; }
  .st-trow > [data-tf="name"] { grid-area: n; } .st-trow > [data-tf="fee"] { grid-area: f; } .st-trow > [data-tf="turn"] { grid-area: t; }
  .st-trow > [data-tf="max"] { grid-area: m; } .st-trow > [data-tf="country"] { grid-area: c; } .st-trow > [data-tf="min"] { grid-area: i; }
  .st-trow > .st-trm { grid-area: r; }
  .st-trows { gap: 7px; }
  .st-trow { padding-bottom: 7px; border-bottom: 1px dashed #2a2a2a; }
  .st-trows > .st-trow:last-of-type { padding-bottom: 0; border-bottom: 0; }
  .st-tsvc { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .st-tsn { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
}
/* YOUR ACCOUNT → RETURN ADDRESS: no description; the title on one line, a long address shortened at the right */
.st-li[data-st="editaddr"] .st-lt { flex: 0 0 auto; }
.st-li[data-st="editaddr"] .st-lt b { white-space: nowrap; }
.st-li[data-st="editaddr"] .st-val { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
/* MY SUBMISSIONS: a one-tier service's country / minimum under it */
.rq-tierinfo { display: block; margin-top: 2px; font-size: 11.5px; color: #a6a6a6; letter-spacing: .2px; }
/* DASHBOARD order view: the tier's minimum not reached */
#ord-detail .od-note.od-min { color: #f0d58a; }
/* MY SUBMISSIONS on a phone: its messages above the tab bar and its raised Submit button (they sat behind it) */
body.mv #rq-msg { left: 16px; right: 16px; bottom: calc(98px + env(safe-area-inset-bottom)); max-width: none; text-align: center; z-index: 90; }
/* ===== /ROUND 166 ===== */

/* ===== ROUND 169 (2026-10-24) — MAP INSPECT: CAMERA SETTINGS · the hidden MACRO & RECORDING · BLACKVAULT's SUMMARY ===== */
/* CAMERA SETTINGS = the camera's sliders only, two columns like IMAGE ADJUSTMENT, no scrolling (operator 2026-10-24): the
   Camera card stays in the stack, hidden (SCOPE switches the camera here); a section's name + its auto / manual is a cell of
   its own beside the sliders; the stack's foot (Match Windows · HOLD 30 FPS) sits in the tab row (ai.js lends it) */
#view-ai .ai-tabbody[data-aitab="cam"] #cap-cam-card { display: none; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card > .card-head,
#view-ai .ai-tabbody[data-aitab="cam"] #uvc-hold-note,
#view-ai .ai-tabbody[data-aitab="cam"] #uvc-ratetest { display: none !important; }
/* down the first column, then the second (each section's name over its own sliders) — the columns balance themselves */
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-host { display: block; columns: 2; column-gap: 16px; margin: 0; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-grp { display: block; break-inside: avoid; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-grp > * { margin-bottom: 3px; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-host > p { column-span: all; margin: 8px 0 0; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-row { grid-template-columns: 70px minmax(0, 1fr) 42px; gap: 4px; min-height: 17px; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-lbl { font-size: 8.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-2); font-weight: 400; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-row input[type=range] { height: 10px; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-val { font-size: 9.5px; font-weight: 400; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-sec { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px; align-items: center; min-height: 17px; margin: 0; padding: 0; border: 0; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-sec-t { font-size: 8.5px; letter-spacing: 1px; color: #d8c89a; font-weight: 700; line-height: 1; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-mode { width: 100%; min-width: 0; max-width: none; height: 17px; padding: 0 4px; font-size: 9px; border-radius: 4px; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card :is(.uvc-save, .uvc-bool) { justify-self: start; height: 17px; padding: 0 8px; font-size: 8px !important; border-radius: 4px; }
#view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-sec:has(.uvc-mode) :is(.uvc-save, .uvc-bool) { grid-column: 2; }
.ai-camtools { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ai-camtools[hidden], #view-ai .ai-v2 .ai-tabpanel.folded .ai-camtools { display: none; }
#view-ai .ai-camtools .uvc-foot { display: flex; align-items: center; gap: 6px; margin: 0; flex-wrap: nowrap; }
#view-ai .ai-camtools #btn-uvc-ratetest, #view-ai .ai-camtools #uvc-foot-note { display: none; }
#view-ai .ai-camtools .btn { height: 20px; margin: 0; padding: 0 9px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
/* MACRO & RECORDING (hidden for now): two columns, one row of buttons each, SAVE TO — the folder a take is written to */
#view-ai .ai-rec2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
#view-ai .ai-rec2-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#view-ai .ai-rec2-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 13px; }
#view-ai .ai-rec2-h b { font-size: 9px; letter-spacing: 1.6px; color: #d8c89a; }
#view-ai .ai-rec2-h span { font-size: 8.5px; letter-spacing: .8px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#view-ai .ai-rec2 select { width: 100%; height: 24px; font-size: 10px; border-radius: 5px; }
#view-ai .ai-rec2-btns { display: flex; gap: 4px; }
#view-ai .ai-rec2 .btn { flex: 1 1 0; min-width: 0; height: 24px; margin: 0; padding: 0 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-ai .ai-rec2 .btn.wide { flex-grow: 1.6; }
#view-ai .ai-rec2 .btn[hidden] { display: none; }
#view-ai .ai-rec2-note { font-size: 8.5px; color: var(--muted-2); min-height: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-ai .ai-rec2-save { display: flex; align-items: center; gap: 4px; }
#view-ai .ai-rec2-save .btn { flex: 0 0 auto; }
#view-ai .ai-rec2-dir { flex: 1 1 auto; min-width: 0; height: 24px; line-height: 22px; padding: 0 8px; box-sizing: border-box; border: 1px dashed #3a3a3a; border-radius: 5px;
  font-size: 9.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-ai .ai-rec2-dir.set { border-style: solid; border-color: #4a4433; color: #d8c89a; }
/* a narrow panel (1920 × 1080 · 1366): the tab row's camera buttons take short words, the tab names keep their room */
@container aitabs (max-width: 520px) {
  #view-ai .ai-camtools .btn { font-size: 0; padding: 0 7px; letter-spacing: 0; }
  #view-ai .ai-camtools #btn-uvc-reset::before { content: '\21BB  WINDOWS'; font-size: 8.5px; letter-spacing: .6px; }
  #view-ai .ai-camtools #btn-uvc-hold::before { content: '30 FPS'; font-size: 8.5px; letter-spacing: .6px; }
}
/* a camera with every control (focus, zoom, pan, tilt, torch …): three columns where the panel is wide enough */
@container aitabs (min-width: 560px) {
  #view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-host:has(> .uvc-grp:nth-child(4)) { columns: 3; column-gap: 12px; }
  #view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-host:has(> .uvc-grp:nth-child(4)) :is(.uvc-row, .uvc-sec) { grid-template-columns: 62px minmax(0, 1fr) 36px; }
  #view-ai .ai-tabbody[data-aitab="cam"] #cap-uvc-card .uvc-host:has(> .uvc-grp:nth-child(4)) .uvc-sec { grid-template-columns: 62px minmax(0, 1fr); }
}
@container aitabs (max-width: 400px) {
  #view-ai .ai-camtools #btn-uvc-reset::before { content: '\21BB'; font-size: 11px; }
  #view-ai .ai-tabs button[data-aitab] { padding: 0 6px; letter-spacing: .3px; }
}
/* BLACKVAULT's SUMMARY (operator 2026-10-24: 'the grades are shown twice — use the image generated, make it professional,
   everything only once'): the slab picture IS the grade (no number beside it), the BLACKSCORE stands once beside it with a
   meter — the hero lets its own slab and score go while SUMMARY shows on a computer (a phone's summary has no top: the hero
   keeps them there); the Job# only in the hero; the pillars with their points as bars; the five companies (BLACKLENS is the
   slab); the population on one row, without the grade's name */
body:not(.mv) #bv-body .bv-rec[data-slide="summary"] :is(.bv-gradebox, .bv-scorebox) { display: none; }
#bv-body .bv-sum2 { gap: 10px; }
#bv-body .bv-sum2 .bv-phead span { letter-spacing: 1.6px; color: #8a8a8a; }
.bv-s2-top { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; padding: 2px 6px 12px; border-bottom: 1px solid #2a2a2a; }
.bv-s2-slab { height: 150px; width: auto; display: block; flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.bv-s2-slab.empty { width: 108px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; color: #fff; border: 1px dashed #444; border-radius: 8px; filter: none; }
.bv-s2-score { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bv-s2-score > i { font-style: normal; font-size: calc(10px + var(--bv-up)); letter-spacing: 2.4px; color: #f2b8b6; font-weight: 600; }
.bv-s2-score > b { font-size: 46px; line-height: 1; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-s2-score > b em { font-style: normal; font-size: calc(13px + var(--bv-up2)); color: #8a8a8a; font-weight: 400; margin-left: 6px; letter-spacing: .5px; }
.bv-s2-meter { display: block; height: 5px; border-radius: 3px; background: #2a2a2a; overflow: hidden; }
.bv-s2-meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #9e302d, #DC4F4C); }
.bv-s2-score small { font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.2px; color: #8a8a8a; white-space: nowrap; }
.bv-s2-pillars { flex: 0 0 auto; display: flex; flex-direction: column; }
.bv-s2-row { display: grid; grid-template-columns: 78px 32px minmax(0, 1fr) 62px 40px; align-items: center; gap: 8px; padding: 6px 6px; border-bottom: 1px solid #242424; }
.bv-s2-row.hd { padding: 0 6px 5px; border-bottom-color: #3a3a3a; }
.bv-s2-row.hd > span { font-size: calc(9px + var(--bv-up)); letter-spacing: 1.5px; color: #8a8a8a; font-weight: 600; }
.bv-s2-row.hd > .pt { grid-column: 3 / span 2; }
.bv-s2-row .n { font-size: calc(11.5px + var(--bv-up)); letter-spacing: 1px; color: #dcdcdc; white-space: nowrap; }
.bv-s2-row .g { text-align: center; }
.bv-s2-row b.g { font-size: calc(16px + var(--bv-up2)); color: #fff; font-weight: 700; }
.bv-s2-row .bar { height: 5px; border-radius: 3px; background: #2a2a2a; overflow: hidden; }
.bv-s2-row .bar i { display: block; height: 100%; background: #c9b77f; border-radius: 3px; }
.bv-s2-row .s { font-size: calc(12px + var(--bv-up)); color: #dcdcdc; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-s2-row .s em { font-style: normal; color: #777; font-size: calc(10px + var(--bv-up)); }
.bv-s2-row .l { font-size: calc(12px + var(--bv-up)); text-align: right; color: #9a9a9a; font-variant-numeric: tabular-nums; }
.bv-s2-row .l.red { color: #ff8a87; }
.bv-s2-cap { flex: 0 0 auto; font-size: calc(9px + var(--bv-up)); letter-spacing: 2px; color: #8a8a8a; font-weight: 600; margin: 2px 0 -4px; }
.bv-s2-cos { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.bv-s2-cos span { display: flex; flex-direction: column; align-items: center; padding: 4px 2px 5px; border: 1px solid #2e2e2e; border-radius: 6px; background: #141414; min-width: 0; }
.bv-s2-cos i { font-style: normal; font-size: calc(8.5px + var(--bv-up)); letter-spacing: 1.2px; color: #8a8a8a; }
.bv-s2-cos b { font-size: calc(15px - 1pt + var(--bv-up2)); color: #fff; line-height: 1.2; }   /* round 285: 1 pt smaller (operator 2026-11-12), every size below too */
/* a top tier the total reaches: a gold tab on the company's box, the grade stays 10 (2026-10-25, V4·A) */
.bv-s2-cos.tops { padding-top: 7px; }
.bv-s2-cos span { position: relative; }
.bv-s2-cos span.pos { border-color: #8a7a4e; }
#bv-body .bv-s2-cos.tops > span { padding-top: 8px; }                 /* the name clear of the tab */
.bv-s2-cos em.bv-cotop { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 4px; background: #d8c89a; color: #141414; font: 700 calc(8.5px + var(--bv-up))/1.45 var(--rep-font); letter-spacing: .3px; font-style: normal; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.bv-s2-cokey { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: -5px; font-size: calc(9px + var(--bv-up)); line-height: 1.2; letter-spacing: .3px; color: #8a8a8a; font-weight: 500; }   /* under the boxes, right */
.bv-s2-cokey i { flex: none; width: 12px; height: 7px; border-radius: 2px; background: #d8c89a; }
#bv-body .bv-s2-pop { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
#bv-body .bv-s2-pop div { padding: 6px 2px; border-radius: 6px; }
#bv-body .bv-s2-pop b { font-size: calc(18px + var(--bv-up2)); }
#bv-body .bv-s2-pop i { font-size: calc(7.5px + var(--bv-up)); letter-spacing: 1px; }
/* a shorter computer window: the same order, tighter — never a scroll */
@media (min-width: 761px) and (max-height: 860px) {
  body:not(.mv) #bv-body .bv-sum2 { gap: 6px; }
  body:not(.mv) .bv-s2-top { padding: 0 6px 6px; gap: 14px; }
  body:not(.mv) .bv-s2-slab { height: 104px; }
  body:not(.mv) .bv-s2-score > b { font-size: 34px; }
  body:not(.mv) .bv-s2-row { padding: 3px 6px; }
  body:not(.mv) .bv-s2-row b.g { font-size: calc(14px + var(--bv-up2)); }
  body:not(.mv) .bv-s2-cap { display: none; }         /* the chips and the figures name themselves */
  body:not(.mv) .bv-s2-cos span { padding: 2px 2px 3px; }
  body:not(.mv) #bv-body .bv-s2-pop div { padding: 4px 2px; }
  body:not(.mv) #bv-body .bv-s2-pop b { font-size: calc(15px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-boardlink { height: 28px; min-height: 28px; margin-top: 0; }
}
/* the gold tabs' room on a window just above the compact one (the operator's 1920 × 917, 2026-10-25) */
@media (min-width: 761px) and (min-height: 861px) and (max-height: 940px) {
  body:not(.mv) #bv-body .bv-sum2:has(.bv-s2-cos.tops) { gap: 8px; }
}
@media (min-width: 761px) and (max-height: 740px) {
  body:not(.mv) .bv-s2-slab { height: 90px; }
  body:not(.mv) .bv-s2-score > b { font-size: 30px; }
  body:not(.mv) .bv-s2-row { padding: 3px 6px; }
}
/* a phone: the hero carries the slab and the BLACKSCORE — the summary is the breakdown */
body.mv .bv-s2-top { display: none; }
body.mv #bv-body .bv-sum2 { gap: 12px; }
body.mv .bv-s2-row { grid-template-columns: 92px 36px minmax(0, 1fr) 70px 44px; padding: 10px 6px; }
body.mv .bv-s2-row .n { font-size: calc(13px + var(--bv-up2)); }
body.mv .bv-s2-row b.g { font-size: calc(18px + var(--bv-up2)); }
body.mv .bv-s2-row .s, body.mv .bv-s2-row .l { font-size: calc(13.5px + var(--bv-up2)); }
body.mv .bv-s2-row.hd > * { font-size: calc(10px + var(--bv-up)); }
body.mv .bv-s2-cap { font-size: calc(10px + var(--bv-up)); }
body.mv .bv-s2-cos span { padding: 6px 2px 7px; border-radius: 10px; }
body.mv .bv-s2-cos i { font-size: calc(9.5px + var(--bv-up)); }
body.mv .bv-s2-cos b { font-size: calc(17px - 1pt + var(--bv-up2)); }
body.mv .bv-s2-cos.tops { padding-top: 9px; }
body.mv .bv-s2-cos em.bv-cotop { top: -8px; font-size: calc(10px + var(--bv-up)); }
body.mv #bv-body .bv-s2-cos.tops > span { padding-top: 11px; }
body.mv .bv-s2-cokey { font-size: calc(11px + var(--bv-up)); }
body.mv #bv-body .bv-s2-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.mv #bv-body .bv-s2-pop div { border-radius: 12px; padding: 12px 6px 10px; }
body.mv #bv-body .bv-s2-pop b { font-size: 24px; }
body.mv #bv-body .bv-s2-pop i { font-size: calc(8px + var(--bv-up)); letter-spacing: 1.2px; }
/* ===== /ROUND 169 ===== */

/* ===== ROUND 170 (2026-10-25) — BLACKBINDER ON FACEBOOK: a card's own FRONT / BACK photos · WTS comments a card ===== */
.bd-cphs { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.bd-cpht { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: #bdbdbd; }
.bd-cpht i { font-style: normal; font-weight: 600; letter-spacing: .4px; color: #8a8a8a; margin-left: 6px; }
.bd-cphrow { display: grid; grid-template-columns: repeat(2, minmax(0, 96px)); gap: 8px; }
.bd-cph { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bd-cph img { display: block; width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 6px; background: #0e0e0e; border: 1px solid #333; }
.bd-cph img:not([src]) { visibility: hidden; }
.bd-cph.bad img { display: none; }
.bd-cph.busy { min-height: 64px; align-items: center; justify-content: center; }
.bd-cph .bd-spin { margin: 6px auto; }
.bd-cpha { height: 28px; border-radius: 7px; border: 1px dashed #4f6a8c; background: #141c26; color: #9cc3f0; font: 800 10px/1 var(--rep-font); letter-spacing: 1.2px; cursor: pointer; }
.bd-cph.has .bd-cpha { border-style: solid; border-color: #3a3a3a; background: #1c1c1c; color: #d9d9d9; }
.bd-cpha:hover:not(:disabled) { filter: brightness(1.15); }
.bd-cpha:disabled { opacity: .5; cursor: default; }
.bd-cphx { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 6px; border: 1px solid #444; background: rgba(12,12,12,.88); color: #eee; font-size: 11px; line-height: 1; cursor: pointer; }
.bd-cphs.sm .bd-cphrow { grid-template-columns: repeat(2, minmax(0, 92px)); }
/* the POST dialog's comments */
.bd-dlg.post.wts .bd-psttx textarea { height: 170px; }
.bd-pstcom { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid #2a2a2a; min-width: 0; }
.bd-pstch { display: flex; flex-direction: column; gap: 2px; }
.bd-pstch b { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #e6e6e6; }
.bd-pstch i { font-style: normal; font-size: 11.5px; color: #9a9a9a; }
.bd-pstwarn { margin: 0; padding: 8px 10px; border-radius: 9px; background: #2b2515; border: 1px solid #5c5340; color: #e8d8a8; font-size: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bd-pstcl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; max-height: 268px; overflow: auto; }
.bd-pstcl li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: #101010; border: 1px solid #262626; }
.bd-pstcl li .k { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #a6a6a6; }
.bd-pstcl li .t { font-size: 12.5px; color: #e6e6e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-pstcl li.miss .t { color: #8a8a8a; }
.bd-pstcl li.done { border-color: #2f7a52; }
.bd-pstcl li.done .k { color: #7ED4A6; }
.bd-pstcl li .bd-pstph { color: #9cc3f0; border-color: #2d3d52; background: #141c26; }
.bd-pstcl li .bd-pstph.on { color: #d9d9d9; border-color: #3a3a3a; background: #1c1c1c; }
.bd-pstcl li .bd-pstph.open { box-shadow: 0 0 0 1px #9cc3f0; }
.bd-pstbl { font-size: 9.5px; font-weight: 800; letter-spacing: 1.1px; color: #d8c89a; padding: 0 4px; }
.bd-pstcl li:first-child .bd-pstbl { display: none; }
.bd-pstphs { grid-column: 1 / -1; padding: 6px 0 2px 58px; }
.bd-pstacts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-pstacts2 .bd-btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
body.mv #view-binder .bd-pstcl li { grid-template-columns: 44px minmax(0, 1fr) auto; }
body.mv #view-binder .bd-pstcl li .bd-pstph, body.mv #view-binder .bd-pstbl { grid-column: 2; justify-self: start; }
body.mv #view-binder .bd-pstphs { padding-left: 0; }
body.mv #view-binder .bd-cphrow { grid-template-columns: repeat(2, minmax(0, 120px)); }
body.mv #view-binder .bd-cpha { height: 42px; font-size: 11px; }
body.mv #view-binder .bd-cphx { width: 34px; height: 34px; font-size: 13px; }
body.mv #view-binder .bd-pstcl .bd-btn, body.mv #view-binder .bd-pstwarn .bd-btn { min-height: 40px; }
/* ===== /ROUND 170 ===== */

/* ===== ROUND 171 (2026-10-25) — BLACKVAULT's SUMMARY in the SUMMARY download's look (the V3·C draft): the slab + the grade's
   name + the BLACKSCORE, red section rules, pillar tiles, one population strip, the companies' coloured tiles ===== */
#bv-body .bv-sum2 { gap: 10px; }
#bv-body .bv-sum2 .bv-s2-top { gap: 14px; padding: 0; border-bottom: 0; }
#bv-body .bv-sum2 .bv-s2-slab { height: 118px; }
#bv-body .bv-sum2 .bv-s2-score { gap: 1px; }
#bv-body .bv-sum2 .bv-s2-score .cap { font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.3px; font-weight: 700; color: #a6a6a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bv-body .bv-sum2 .bv-s2-score > b.gn { font-size: 24px; line-height: 1.1; color: #d8c89a; letter-spacing: .3px; white-space: normal; }
#bv-body .bv-sum2 .bv-s2-score > i { margin-top: 6px; font-size: calc(10.5px + var(--bv-up)); letter-spacing: 2px; font-weight: 700; }
#bv-body .bv-sum2 .bv-s2-score > b:not(.gn) { font-size: 44px; }
#bv-body .bv-sum2 .bv-s2-score > b em { font-size: calc(13px + var(--bv-up2)); font-weight: 600; margin-left: 6px; }
/* the download's section rule: red words, a line to the right, a note at its end */
.bv-s2-rule { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bv-s2-rule > b { font-size: calc(11px + var(--bv-up)); letter-spacing: 2.2px; color: #DC4F4C; font-weight: 700; white-space: nowrap; }
.bv-s2-rule > i { flex: 1 1 auto; min-width: 6px; height: 1px; background: #2a2a2a; }
.bv-s2-rule > span { font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.2px; color: #8a8a8a; white-space: nowrap; }
.bv-s2-rule > .bv-s2-cokey { display: inline-flex; align-items: center; gap: 5px; margin: 0; letter-spacing: .3px; }
/* PILLARS: a tile a pillar — its name, grade, a gold bar, the gold points, what it lost */
#bv-body .bv-sum2 .bv-s2-pillars { gap: 5px; }
#bv-body .bv-sum2 .bv-s2-row { grid-template-columns: 82px 30px minmax(0, 1fr) 64px 32px; height: 32px; box-sizing: border-box; padding: 0 10px;
  border: 1.2px solid #2e2e2e; border-radius: 9px; background: #121212; }
#bv-body .bv-sum2 .bv-s2-row .n { font-size: calc(11px + var(--bv-up)); letter-spacing: 1.3px; font-weight: 700; color: #b4b4b4; }
#bv-body .bv-sum2 .bv-s2-row b.g { font-size: calc(19px + var(--bv-up2)); }
#bv-body .bv-sum2 .bv-s2-row .bar { background: #262626; }
#bv-body .bv-sum2 .bv-s2-row .bar i { background: #d8c89a; }
#bv-body .bv-sum2 .bv-s2-row .s { font-size: calc(15px + var(--bv-up2)); font-weight: 700; color: #d8c89a; }
#bv-body .bv-sum2 .bv-s2-row .s em { font-size: calc(10px + var(--bv-up)); color: #7f7f7f; font-weight: 600; }
#bv-body .bv-sum2 .bv-s2-row .l { font-size: calc(11.5px + var(--bv-up)); }
/* POPULATION: one strip of three — the figure and its words on one line */
#bv-body .bv-sum2 .bv-s2-pop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.2px solid #2e2e2e; border-radius: 10px; background: #121212; }
#bv-body .bv-sum2 .bv-s2-pop div { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 4px; border: 0; border-left: 1px solid #2a2a2a; border-radius: 0; background: none; }
#bv-body .bv-sum2 .bv-s2-pop div:first-child { border-left: 0; }
#bv-body .bv-sum2 .bv-s2-pop b { display: inline; font-size: calc(17px + var(--bv-up2)); }
#bv-body .bv-sum2 .bv-s2-pop i { display: inline; font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1px; color: #a6a6a6; white-space: nowrap; }
/* PREDICTION AND POSSIBILITY: the download's tiles — a colour bar, the name in its colour, the grade; the best lit */
#bv-body .bv-sum2 .bv-s2-cos { gap: 6px; padding-top: 0; }
#bv-body .bv-sum2 .bv-s2-cos.tops { padding-top: 8px; }
#bv-body .bv-sum2 .bv-s2-cos > span { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; height: 52px; box-sizing: border-box;
  padding: 10px 6px 7px 16px; border-radius: 9px; border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 7%, #141414); }
#bv-body .bv-sum2 .bv-s2-cos > span::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 7px; width: 4px; border-radius: 2px; background: var(--c); }
#bv-body .bv-sum2 .bv-s2-cos > span.best { border: 2.5px solid var(--c); background: color-mix(in srgb, var(--c) 30%, #141414); }
#bv-body .bv-sum2 .bv-s2-cos > span.best::before { left: 5px; }
#bv-body .bv-sum2 .bv-s2-cos i { font-size: calc(11.5px + var(--bv-up)); letter-spacing: 1.2px; font-weight: 700; color: var(--c); }
#bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(21px - 1pt + var(--bv-up2)); line-height: 1; color: #bdbdbd; }
#bv-body .bv-sum2 .bv-s2-cos > span.best i, #bv-body .bv-sum2 .bv-s2-cos > span.best b { color: #fff; }
#bv-body .bv-sum2 .bv-s2-cos em.bv-cotop { top: -8px; padding: 0 6px; font-size: calc(10.5px + var(--bv-up)); }
/* a computer window up to 860 px tall: everything a size down, the box unchanged */
@media (min-width: 761px) and (max-height: 860px) {
  body:not(.mv) #bv-body .bv-sum2 { gap: 6px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-slab { height: 96px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b.gn { font-size: calc(20px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > i { margin-top: 3px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b:not(.gn) { font-size: 34px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pillars { gap: 4px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row { height: 26px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row b.g { font-size: calc(15px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row .s { font-size: calc(13px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop div { padding: 5px 4px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop b { font-size: calc(15px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span { height: 44px; padding-top: 8px; padding-bottom: 6px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(17px - 1pt + var(--bv-up2)); }
}
@media (min-width: 761px) and (max-height: 740px) {
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-slab { height: 84px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b:not(.gn) { font-size: 30px; }
}
/* a phone: the hero carries the slab and the BLACKSCORE; the sections a size up for a thumb */
body.mv #bv-body .bv-sum2 .bv-s2-row { grid-template-columns: 92px 34px minmax(0, 1fr) 74px 40px; height: 44px; }
body.mv #bv-body .bv-sum2 .bv-s2-row .n { font-size: calc(12.5px + var(--bv-up)); }
body.mv #bv-body .bv-sum2 .bv-s2-row .s { font-size: calc(15px + var(--bv-up2)); }
body.mv #bv-body .bv-sum2 .bv-s2-pop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
body.mv #bv-body .bv-sum2 .bv-s2-pop div { flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 0; }
body.mv #bv-body .bv-sum2 .bv-s2-pop b { font-size: 22px; }
body.mv #bv-body .bv-sum2 .bv-s2-pop i { font-size: calc(9px + var(--bv-up)); }
body.mv #bv-body .bv-sum2 .bv-s2-cos > span { height: 58px; }
body.mv .bv-s2-rule > b { font-size: calc(12px + var(--bv-up)); letter-spacing: 1.4px; }
body.mv .bv-s2-rule > .bv-s2-cokey { font-size: calc(10px + var(--bv-up)); }   /* the key beside PREDICTION AND POSSIBILITY on a phone's width */
/* ===== /ROUND 171 ===== */

/* ===== ROUND 171b (operator 2026-10-25: 'plenty of room left on the prediction — make the pills taller, more spacing') — the
   summary grows into its box: the pillar tiles and the company tiles take the spare height up to a cap, what is left is
   shared evenly above each section and the BLACKBOARD button; never past the box (the sizes above are the floor) ===== */
#bv-body .bv-sum2 { gap: 12px; }
#bv-body .bv-sum2 .bv-s2-rule, #bv-body .bv-sum2 .bv-boardlink { margin-top: auto; }
#bv-body .bv-sum2 .bv-s2-pillars { flex: 1 1 auto; max-height: 196px; }
#bv-body .bv-sum2 .bv-s2-row { flex: 1 1 0; height: auto; min-height: 32px; max-height: 44px; }
#bv-body .bv-sum2 .bv-s2-pop div { padding: 11px 4px; }
#bv-body .bv-sum2 .bv-s2-cos { flex: 1 1 auto; min-height: 52px; max-height: 84px; grid-template-rows: minmax(0, 1fr); }
#bv-body .bv-sum2 .bv-s2-cos.tops { min-height: 60px; max-height: 92px; }
#bv-body .bv-sum2 .bv-s2-cos > span { height: auto; min-height: 52px; padding: 12px 8px 10px 17px; }
#bv-body .bv-sum2 .bv-s2-cos > span::before { top: 10px; bottom: 10px; }
#bv-body .bv-sum2 .bv-s2-cos i { font-size: calc(12.5px + var(--bv-up)); }
#bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(26px - 1pt); }
@media (min-width: 761px) and (max-height: 860px) {
  body:not(.mv) #bv-body .bv-sum2 { gap: 7px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pillars { max-height: 150px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row { height: auto; min-height: 26px; max-height: 34px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop div { padding: 6px 4px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos { min-height: 44px; max-height: 64px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops { min-height: 52px; max-height: 72px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span { height: auto; min-height: 44px; padding-top: 9px; padding-bottom: 7px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(20px - 1pt + var(--bv-up2)); }
}
/* a phone's panel grows with its content (no box to fill): its own sizes stay */
body.mv #bv-body .bv-sum2 .bv-s2-rule, body.mv #bv-body .bv-sum2 .bv-boardlink { margin-top: 0; }
body.mv #bv-body .bv-sum2 .bv-s2-pillars { flex: 0 0 auto; max-height: none; }
body.mv #bv-body .bv-sum2 .bv-s2-row { flex: 0 0 auto; max-height: none; }
body.mv #bv-body .bv-sum2 .bv-s2-cos, body.mv #bv-body .bv-sum2 .bv-s2-cos.tops { max-height: none; }
body.mv #bv-body .bv-sum2 .bv-s2-cos > span { height: 66px; }
body.mv #bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(24px - 1pt); }
/* ===== /ROUND 171b ===== */

/* ===== ROUND 172 (operator 2026-10-25) — SETTINGS · AGENT ACCOUNTS' invite in two rows of two (every word shows: the
   REGION drop-down was 70 px and cut 'TH · Thailand'), GRADING PRICES' APPLIES TO line ===== */
:is(#view-settings, #view-admin) .agent-new { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
#view-settings .agent-new .set-label > input, #view-settings .agent-new .set-label > select { width: 100%; min-width: 0; box-sizing: border-box; }
.st-pfor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -2px 0 10px; font-size: 11.5px; color: #bdbdbd; }
.st-pfor > b { font-size: 9.5px; letter-spacing: 1.4px; color: #8fc4ff; }
.st-pfor > em { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #2f3a46; border-radius: 6px; background: #161b21;
  font-style: normal; font-weight: 700; letter-spacing: .6px; color: #e6e6e6; }
.st-pfor > em i { font-style: normal; font-size: 9px; letter-spacing: 1px; font-weight: 700; color: #8fc4ff; }
.st-pfor > .st-pfor-site { color: #8a8a8a; }
.st-pfor > .st-pfor-site::before { content: '\00b7'; margin-right: 10px; color: #5a5a5a; }
/* ===== /ROUND 172 ===== */

/* ===== ROUND 173 (operator 2026-10-25) — BLACKBINDER's FULL COLOR switch: the sought cards in full colour, no SEEKING / FOUND
   ribbon (a merchant's price tag stays) — the binder as if complete. A computer: the right end of the pages bar; a phone: beside ✎ ===== */
#view-binder .bd-fcol { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px 0 8px; border-radius: 8px; border: 1px solid #3a3a3a;
  background: linear-gradient(180deg, #232323, #1a1a1a); color: #a6a6a6; cursor: pointer; font: 700 10.5px/1 var(--menu-font); font-stretch: 87.5%; letter-spacing: 1.3px; white-space: nowrap; }
#view-binder .bd-fcol b { font-weight: 700; }
#view-binder .bd-fsw { position: relative; flex: none; width: 26px; height: 14px; border-radius: 7px; background: #3a3a3a; box-shadow: inset 0 0 0 1px #4a4a4a; transition: background .15s ease; }
#view-binder .bd-fsw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; transition: transform .15s ease, background .15s ease; }
#view-binder .bd-fcol:hover { border-color: #5a5a5a; color: #e6e6e6; }
#view-binder .bd-fcol.on { border-color: #ab9b6f; color: #f2d27e; background: linear-gradient(180deg, #2a2618, #1c1a12); }
#view-binder .bd-fcol.on .bd-fsw { background: conic-gradient(from 200deg, #ff8fb1, #ffd36e, #8fe3b0, #7fc4ff, #c49bff, #ff8fb1); box-shadow: none; }
#view-binder .bd-fcol.on .bd-fsw::after { transform: translateX(12px); background: #fff; }
#view-binder .bd-body.binder:not(.ph) .bd-nav { position: relative; }
#view-binder .bd-body.binder:not(.ph) .bd-nav .bd-fcol { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
/* the look: as if collected */
#view-binder .bd-body.fullc .bd-pk.seek .bd-cd img { filter: none; }
#view-binder .bd-body.fullc .bd-pk.seek .bd-rib:not(.tag) { display: none; }
/* a phone: a 44 px button between the name and ✎ */
body.mv #view-binder .bd-phead2 { grid-template-columns: auto 28px minmax(0, 1fr) auto 44px; }
body.mv #view-binder .bd-phead2 .bd-fcol { height: 44px; padding: 0 9px; gap: 6px; border-radius: 10px; font-size: 10px; letter-spacing: .6px; flex-direction: column; justify-content: center; }
body.mv #view-binder .bd-phead2 .bd-fcol b { font-size: 9.5px; }
/* ===== /ROUND 173 ===== */

/* ===== ROUND 174 (operator 2026-10-25) — BLACKBINDER's DOWNLOAD: ⤓ COLLAGE · ⤓ PRICE WALL under ARRANGE · POST, and the
   'which 60 cards' dialog of a fuller binder ===== */
#view-binder .bd-dlrow { margin-top: 8px; }
#view-binder .bd-dlg.dl { width: min(520px, 94vw); }
#view-binder .bd-dlparts { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 20px; }
#view-binder .bd-dlparts .bd-btn { height: 40px; padding: 0 14px; font-size: 11px; letter-spacing: 1px; }
body.mv #view-binder .bd-dlparts .bd-btn { min-height: 44px; flex: 1 1 140px; }
/* ===== /ROUND 174 ===== */

/* ===== ROUND 175 (operator 2026-10-25: 'remake the UX/UI of this section — make the download buttons stand out, each button
   easier to see and click, keep it non-scroll') — BLACKBINDER's left panel: FILL, ARRANGE · POST as two 46 px buttons, the
   DOWNLOAD box (gold-edged, two light tiles with a picture of what they make), SHARE 48 px, THE HUNT's note on one line,
   DELETE a quiet line at the foot (also in EDIT). A window up to 860 px tall: a step tighter. ===== */
#view-binder #bd-left { gap: 10px; }
#view-binder #bd-left > .bd-btn.bd-fillbtn { min-height: 58px; border-width: 1.5px; border-radius: 12px; }
#view-binder #bd-left > .bd-tools2 { gap: 8px; }
#view-binder #bd-left > .bd-tools2 .bd-btn { height: 46px; padding: 0 8px; border-radius: 11px; border-color: #5c5c5c; font-size: 11.5px; letter-spacing: .8px; color: #f2f2f2;
  background: linear-gradient(180deg, #303030, #222); }
#view-binder #bd-left > .bd-tools2 .bd-btn:hover { border-color: #a6a6a6; background: linear-gradient(180deg, #383838, #282828); }
/* DOWNLOAD */
#view-binder .bd-dlbox { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 13px; border: 1.5px solid #8a7a50;
  background: linear-gradient(180deg, #24200f, #15130c); box-shadow: 0 0 0 1px rgba(216, 200, 154, .06), 0 6px 18px rgba(0, 0, 0, .35); }
#view-binder .bd-dlhd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px; }
#view-binder .bd-dlhd b { font: 800 12px/1 var(--rep-font); letter-spacing: 2px; color: #f2d27e; }
#view-binder .bd-dlhd span { font-size: 10px; letter-spacing: .5px; color: #b3a57d; white-space: nowrap; }
#view-binder .bd-dlbox .bd-dlrow { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#view-binder .bd-dltile { display: flex; align-items: center; gap: 8px; min-width: 0; height: 54px; padding: 0 9px; border: 0; border-radius: 11px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #f7f7f7, #d9d9d9); color: #141414; box-shadow: 0 2px 8px rgba(0, 0, 0, .45), inset 0 1px 0 #fff; }
#view-binder .bd-dltile:hover { background: linear-gradient(180deg, #fff, #e8e8e8); box-shadow: 0 0 0 2px #f2d27e, 0 4px 14px rgba(0, 0, 0, .5); }
#view-binder .bd-dltile:active { transform: translateY(1px); }
#view-binder .bd-dltile:focus-visible { outline: 2px solid #f2d27e; outline-offset: 2px; }
#view-binder .bd-dltile { padding: 0 8px; gap: 7px; }
#view-binder .bd-dltile svg { flex: none; width: 22px; height: 22px; color: #DC4F4C; }
#view-binder .bd-dltx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#view-binder .bd-dltx b { font: 800 12.5px/1 var(--rep-font); letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a narrower panel (a computer up to 1500 px wide): the tiles' words a size down */
@media (min-width: 761px) and (max-width: 1500px) {
  body:not(.mv) #view-binder .bd-dltile { padding: 0 7px; gap: 6px; }
  body:not(.mv) #view-binder .bd-dltile svg { width: 18px; height: 18px; }
  body:not(.mv) #view-binder .bd-dltx b { font-size: 11.5px; letter-spacing: .2px; }
  body:not(.mv) #view-binder .bd-dltx i { font-size: 8.5px; letter-spacing: .4px; }
}
#view-binder .bd-dltx i { font-style: normal; font: 700 9.5px/1 var(--rep-font); letter-spacing: .7px; color: #4a4a4a; white-space: nowrap; }
/* SHARE — the main red button */
#view-binder #bd-left > .bd-btn.bd-shbtn { height: 48px; border-radius: 12px; font-size: 12.5px; letter-spacing: 1.8px; }
/* THE HUNT's note: one line */
#view-binder #bd-left .bd-hunt .bd-fine { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
/* DELETE — a quiet line at the foot */
#view-binder #bd-left > .bd-btn.bd-delbtn { height: 30px; border: 0; background: none; box-shadow: none; color: #8a8a8a; font-size: 10px; letter-spacing: 1.4px;
  text-decoration: underline; text-underline-offset: 3px; }
#view-binder #bd-left > .bd-btn.bd-delbtn:hover { color: #ff8a87; }
/* a computer window up to 860 px tall: a step tighter (the inspector's hint, the buttons, the gaps) */
@media (min-width: 761px) and (max-height: 860px) {
  body:not(.mv) #view-binder #bd-left { gap: 7px; }
  body:not(.mv) #view-binder #bd-left > .bd-btn.bd-fillbtn { min-height: 50px; padding: 6px 10px; }
  body:not(.mv) #view-binder #bd-left .bd-fillbtn b { font-size: 14px; }
  body:not(.mv) #view-binder #bd-left > .bd-tools2 .bd-btn { height: 42px; }
  body:not(.mv) #view-binder .bd-dlbox { padding: 8px; gap: 6px; }
  body:not(.mv) #view-binder .bd-dltile { height: 48px; }
  body:not(.mv) #view-binder #bd-left > .bd-btn.bd-shbtn { height: 44px; }
  body:not(.mv) #view-binder #bd-left > .bd-btn.bd-delbtn { height: 26px; }
  body:not(.mv) #view-binder #bd-left > .bd-card { padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  body:not(.mv) #view-binder #bd-left .bd-hint { font-size: 10.5px; line-height: 1.4; }
  body:not(.mv) #view-binder #bd-left .bd-fold > .bd-fb { gap: 7px; margin-top: 7px; }
  body:not(.mv) #view-binder #bd-left .bd-hfig span { gap: 3px; padding: 6px 8px; }
  body:not(.mv) #view-binder #bd-left .bd-hfig em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(.mv) #view-binder #bd-left .bd-hunt .bd-fine { display: none; }
  body:not(.mv) #view-binder #bd-left > .bd-btn.bd-fillbtn { min-height: 46px; }
  body:not(.mv) #view-binder .bd-dltile { height: 46px; }
  body:not(.mv) #view-binder .bd-dlbox { padding: 7px; }
  body:not(.mv) #view-binder #bd-left > .bd-btn.bd-shbtn { height: 42px; }
}
/* a narrow panel: a label that does not fit takes two lines rather than an ellipsis */
@media (min-width: 761px) and (max-width: 1500px) {
  body:not(.mv) #view-binder #bd-left > .bd-tools2 .bd-btn { white-space: normal; line-height: 1.15; font-size: 10.5px; letter-spacing: .5px; }
}
/* a phone: thumb-sized */
body.mv #view-binder .bd-dltile { height: 58px; }
body.mv #view-binder #bd-left > .bd-btn.bd-delbtn { min-height: 44px; }
/* ===== /ROUND 175 ===== */

/* ===== ROUND 179 (operator 2026-10-26: 'the Top and Bottom Centering ratios above / below the front capture aren't centred
   with the card, especially when expanding the window') — CENTERING's Front/Back results: the middle row (left ratio · the
   picture · right ratio) spans the column but the picture is capped by the column's height, so the spare width gathered
   after the right ratio and the card sat left of the top / bottom ratios; the row now centres its three (the two side
   ratios share one min-width, so the picture's centre is the column's) ===== */
#view-job .jb-res-mid { justify-content: center; }
/* ===== /ROUND 179 ===== */

/* ============ ROUND 185 — SETTINGS · ADMIN (agents, their status, banking, the users) · ADMIN · the label printer's types ============ */
/* AGENTS: one row each — the dot, the name over the email, the region, ONLINE / LAST ONLINE, the invitation's state, EDIT */
/* (round 231) fixed widths for the two chips and EDIT: each row is its own grid, so an `auto` column let REGION and STATUS start at another place on every row */
.ag-thead, .ag-line { display: grid; grid-template-columns: 12px minmax(0, 1.4fr) minmax(0, 1fr) minmax(148px, 1.1fr) 134px 100px 52px; gap: 8px; align-items: center; }
.ag-thead { padding: 0 9px 4px; }
.ag-thead i, .us-thead i { font-style: normal; font-size: 9px; letter-spacing: 1.3px; color: #8a8a8a; }
.ag-row { border: 1px solid #2c2c2c; border-left: 3px solid #3c84d1; border-radius: 7px; background: #151515; margin-bottom: 6px; }
.ag-row.open { border-color: #3a3a3a; border-left-color: #8ec0f2; background: #171a1f; }
.ag-line { padding: 7px 8px 7px 6px; }
.ag-dot { width: 9px; height: 9px; border-radius: 50%; background: #3d3d3d; box-shadow: inset 0 0 0 1px #555; justify-self: center; }
.ag-dot.on { background: #7ED4A6; box-shadow: 0 0 0 3px rgba(126, 212, 166, .18); }
.ag-who, .us-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ag-who b, .us-who b { font-size: 12.5px; font-weight: 600; color: #f2f2f2; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-who em, .us-who em { font-style: normal; font-size: 10.5px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-reg { min-width: 0; font-size: 11px; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-reg b { margin-right: 6px; font-size: 11px; letter-spacing: 1px; color: #8ec0f2; }
.pr-st { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-st i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #555; }
.pr-st.on { color: #7ED4A6; }
.pr-st.on i { background: #7ED4A6; }
.pr-st.off { color: #c9c9c9; }
.pr-st.none { color: #6f6f6f; }
.ag-edit { grid-column: -2 / -1; width: 100%; height: 24px; padding: 0 4px; border-radius: 6px; border: 1px solid #3f6b9a; background: #1c2b3d; color: #d6e6f7; font: inherit; font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px; white-space: nowrap; cursor: pointer; }
.ag-line > .ag-st { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ag-reg .agent-cfg { display: block; width: max-content; max-width: 100%; margin: 2px 0 0; }   /* PH ADMIN under the region: the row has two lines anyway */
.ag-edit:hover { background: #28405c; color: #fff; }
.ag-more { padding: 2px 10px 10px; border-top: 1px solid #262626; }
.ag-acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ag-acts .st-btn { margin-top: 0; }
.ag-since { margin-right: auto; font-size: 10.5px; color: #8a8a8a; }
@container (max-width: 760px) {
  .ag-thead { display: none; }
  /* the name, the region and status beside EDIT, then the chips across the whole row */
  .ag-line { grid-template-columns: 12px auto minmax(0, 1fr) 52px; grid-template-areas: "dot who who ed" "dot reg pr ed" "dot st kyc kyc"; row-gap: 4px; }
  .ag-line > .ag-dot { grid-area: dot; } .ag-line > .ag-who { grid-area: who; } .ag-line > .ag-reg { grid-area: reg; }
  .ag-line > .pr-st { grid-area: pr; } .ag-line > .ag-st { grid-area: st; } .ag-line > .ag-st[class*="kyc-"] { grid-area: kyc; } .ag-line > .ag-edit { grid-area: ed; }
}
/* AGENT BANKING: the agent over their four fields and SAVE */
.st-banks { container-type: inline-size; margin-top: 8px; }
.bk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) auto; gap: 0 8px; align-items: end;
  padding: 8px 10px 10px; margin-bottom: 6px; border: 1px solid #2c2c2c; border-left: 3px solid #ab9b6f; border-radius: 7px; background: #151515; }
.bk-who { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.bk-who b { font-size: 12.5px; font-weight: 600; color: #f2f2f2; white-space: nowrap; }
.bk-who em { font-style: normal; font-size: 10.5px; color: #8f8f8f; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-who span { margin-left: auto; flex: 0 0 auto; font-size: 9.5px; letter-spacing: 1px; color: #7ED4A6; text-transform: uppercase; }
.bk-who span.none { color: #8a8a8a; }
.bk-row .set-label { min-width: 0; }
.bk-row .set-label input { width: 100%; min-width: 0; box-sizing: border-box; }
.bk-row .st-btn { margin-top: 0; height: 30px; }
.bk-out { grid-column: 1 / -1; margin-top: 4px; min-height: 0; }
.bk-out:empty { display: none; }
.bk-out.ok { color: #7ED4A6; } .bk-out.bad { color: #ff8a87; }
@container (max-width: 560px) {
  .bk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
/* USERS: the figures, the search, the list (it scrolls inside the card) */
.st-ufigs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 10px 0 8px; }
.st-ufigs span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 7px; border: 1px solid #2c2c2c; background: #151515;
  font-size: 8.5px; letter-spacing: 1.1px; color: #8f8f8f; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ufigs b { font-size: 19px; font-weight: 600; letter-spacing: .5px; color: #fff; font-variant-numeric: tabular-nums; }
.st-ufigs span:nth-child(3) b { color: #7ED4A6; }
.st-uq { width: 100%; box-sizing: border-box; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid #3a3a3a; background: #111; color: #f2f2f2; font-size: 12.5px; }
.st-ulist { container-type: inline-size; margin-top: 8px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.us-thead, .us-row { display: grid; grid-template-columns: 12px minmax(0, 1.8fr) minmax(0, .8fr) minmax(0, 1fr) 86px 158px; gap: 8px; align-items: center; }
/* round 339: GRANT AGENT and DISABLE / ENABLE side by side; a disabled account greyed, its tag red */
.us-acts { display: flex; justify-content: flex-end; gap: 4px; min-width: 0; }
.us-acct { height: 24px; padding: 0 7px; border-radius: 5px; border: 1px solid #4a2a29; background: #1d1414; color: #e8b4b2; font: inherit; font-size: 9px; font-weight: 700; letter-spacing: 1px; cursor: pointer; white-space: nowrap; }
.us-acct:hover { background: #3a1615; color: #fff; border-color: #DC4F4C; }
.us-acct.en { border-color: #2e6b45; background: #142319; color: #a9e6b4; }
.us-acct.en:hover { background: #1d3a27; color: #fff; border-color: #39b36a; }
.us-acct:disabled { opacity: .5; cursor: default; }
.us-row.off > :not(.us-acts) { opacity: .5; }
.us-role.off { background: #3a1615; color: #f08b88; }
/* MEMBER# (round 259): typed and left, it is given */
.us-mem { width: 100%; box-sizing: border-box; height: 24px; padding: 0 6px; border-radius: 5px; border: 1px solid #333; background: #121212; color: #d8c89a; font: inherit; font-size: 11px; letter-spacing: .4px; }
.us-mem:not(.has):not(:focus) { border-style: dashed; }
.us-mem::placeholder { color: #5f5a48; }
.us-mem:focus { outline: none; border-color: #ab9b6f; }
#set-user-out { min-height: 14px; margin-top: 6px; }
#set-user-out.ok { color: #7ED4A6; } #set-user-out.bad { color: #f08b88; }
.us-thead { position: sticky; top: 0; z-index: 1; padding: 0 8px 5px 6px; background: #1b1b1b; }
.us-row { padding: 6px 8px 6px 6px; border-bottom: 1px solid #242424; }
.us-row:hover { background: #181818; }
.us-role { margin-left: 6px; font-style: normal; font-size: 8px; font-weight: 700; letter-spacing: 1px; padding: 1px 5px; border-radius: 3px; vertical-align: 1px; }
.us-role.admin { background: #3a1615; color: #f2b8b6; }
.us-role.agent { background: #142033; color: #8ec0f2; }
.us-when { font-size: 11px; color: #a9a9a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-seen { display: flex; flex-direction: column; min-width: 0; font-size: 11px; color: #d0d0d0; white-space: nowrap; }
.us-seen.on { color: #7ED4A6; font-weight: 700; letter-spacing: 1px; font-size: 10px; }
.us-seen i { font-style: normal; font-size: 9px; letter-spacing: 1px; color: #7a7a7a; font-weight: 400; }
.us-grant { height: 24px; padding: 0 6px; border-radius: 5px; border: 1px solid #3f6b9a; background: #1c2b3d; color: #d6e6f7; font: inherit; font-size: 9px; font-weight: 700; letter-spacing: 1px; cursor: pointer; white-space: nowrap; }
.us-grant:hover { background: #28405c; color: #fff; }
.us-more { display: block; width: 100%; margin: 8px 0 2px; height: 28px; border-radius: 6px; border: 1px solid #3a3a3a; background: #1e1e1e; color: #d6d6d6; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; cursor: pointer; }
@container (max-width: 520px) {
  .us-thead { display: none; }
  .us-row { grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot who gr" "dot seen when" "dot mem mem"; row-gap: 2px; }
  .us-row > .us-mem { grid-area: mem; max-width: 140px; }
  .us-row > .ag-dot { grid-area: dot; } .us-row > .us-who { grid-area: who; } .us-row > .us-seen { grid-area: seen; flex-direction: row; gap: 6px; }
  .us-row > .us-when { grid-area: when; text-align: right; } .us-row > :last-child { grid-area: gr; }
}
/* ADMIN → AGENT PRICES: the agent's line over their price boxes */
.st-agprices { margin-top: 8px; }
.ap-card { padding: 8px 10px 10px; margin-bottom: 8px; border: 1px solid #2c2c2c; border-left: 3px solid #3c84d1; border-radius: 7px; background: #151515; }
.ap-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ap-top b { font-size: 12.5px; font-weight: 600; color: #f2f2f2; white-space: nowrap; }
.ap-top em { font-style: normal; font-size: 10.5px; color: #8f8f8f; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-top .agent-cfg, .ap-none { flex: 0 0 auto; }
.ap-none { font-style: normal; font-size: 8.5px; letter-spacing: 1px; color: #7a7a7a; }
.ap-top .st-btn { margin: 0 0 0 auto; height: 26px; }
#view-admin .st-pfor { margin-bottom: 2px; }
/* LABEL PRINTER: the three types, the sample label beside its settings, the other labels folded away */
#set-lbl-card { container-type: inline-size; }
.lbl-ntypes { margin-top: 10px; }
#view-settings .lbl-ntypes button { height: auto; min-height: 44px; padding: 6px 8px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; }
.lbl-ntypes button b { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; }
.lbl-ntypes button em { font-style: normal; font-size: 9.5px; letter-spacing: .3px; color: #8f8f8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lbl-ntypes button.on em { color: #c9a874; }
.lbl-nbody { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 14px; margin-top: 12px; align-items: start; }
.lbl-nprev { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 12px 6px; border-radius: 8px; background: #101010; border: 1px solid #262626; }
.lbl-ncap { font-size: 9px; letter-spacing: 1px; color: #8a8a8a; text-align: center; line-height: 1.4; }
.lbl-nviews { width: 100%; max-width: 230px; }
.lbl-nform { min-width: 0; }
.lbl-ngrid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 5px 6px; align-items: center; }
.lbl-ngrid i { font-style: normal; font-size: 9px; letter-spacing: 1.2px; color: #8a8a8a; text-align: center; }
.lbl-ngrid b { font-size: 9.5px; font-weight: 700; letter-spacing: 1.3px; color: #d6d6d6; }
.lbl-ngrid em { font-style: normal; font-size: 10px; color: #8a8a8a; }
#view-settings .lbl-ngrid input[type="number"] { width: 100%; min-width: 0; font-size: 12.5px; padding: 5px 6px; text-align: center; font-variant-numeric: tabular-nums; }
.lbl-ngrid .niim-turn { grid-column: span 1; justify-content: flex-start; }
.lbl-nqr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 8px; }
.lbl-nqr > i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 1.3px; color: #d6d6d6; }
@container (max-width: 560px) { .lbl-nbody { grid-template-columns: minmax(0, 1fr); } .lbl-nprev { padding: 10px 6px; } }
/* BLACKMARKT's statement chip (.st-state, nowrap) shares the name with SETTINGS' state lines: these wrap */
:is(#view-settings, #view-admin) .st-state { white-space: normal; }

/* ============ ROUND 190 — the label's colours: the swatches of the PRINTER and SETTINGS → Label printer ============ */
.nm-sw { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; margin-right: 7px; border-radius: 3px; vertical-align: -3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 1px rgba(0, 0, 0, .5); }
.nm-sw.c-gold { background: linear-gradient(135deg, #0c0c0c 0 52%, #c79d5e 52% 100%); }
.nm-sw.c-white { background: linear-gradient(135deg, #f3f2ee 0 52%, #121212 52% 100%); }
.nm-sw.c-silver { background: linear-gradient(135deg, #aeb2b7 0, #8b9096 30%, #a6abb1 52%, #fff 52% 100%); }
.niim-cols button { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.lbl-ncols { margin-top: 8px; }

/* ============ ROUND 191 — ADMIN → Grading prices: ▲ ▼ on every tier, the region's CURRENCY ============ */
.st-tmv { display: flex; flex-direction: column; gap: 2px; height: 30px; }
.st-tmv button { flex: 1 1 0; width: 22px; min-height: 0; padding: 0; border-radius: 4px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #9a9a9a; font-size: 8px; line-height: 1; cursor: pointer; }
.st-tmv button:hover:not(:disabled) { color: #fff; border-color: #3f6b9a; background: #1c2b3d; }
.st-tmv button:disabled { opacity: .28; cursor: default; }
.st-pcur { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 2px 0 10px; }
.st-pcur .set-label { flex: 0 0 auto; width: 220px; }
#view-admin .st-pcur select { width: 100%; }
.st-pcurnote { flex: 1 1 260px; min-width: 0; padding-bottom: 8px; font-size: 11px; line-height: 1.45; color: #a9a9a9; }

/* ROUND 197 — MAX DECLARED + its currency in one cell (the currency follows the GRADED COUNTRY) */
.st-tmaxw { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 3px; min-width: 0; }
:is(#view-settings, #view-admin) .st-trow .st-tmaxw select.st-tmc { -webkit-appearance: none; appearance: none; padding: 0 13px 0 6px; font-size: 11px; letter-spacing: .3px; text-overflow: clip;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23a6a6a6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 8px 5px; background-position: right 4px center; }
@container sttiers (max-width: 760px) { .st-trow > .st-tmaxw { grid-area: m; } }

/* ROUND 210 · THE CARD DIRECTORY (ADMIN) */
:is(#view-admin, #dir-pop) .ad-dir-top { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; }
:is(#view-admin, #dir-pop) .ad-dir-top input { flex: 1; min-width: 0; }
:is(:is(#view-admin, #dir-pop) #ad-dir, #dir-pop-body) input:not([type="file"]), :is(:is(#view-admin, #dir-pop) #ad-dir, #dir-pop-body) select { height: 30px; padding: 0 8px; background: #111; color: #fff; border: 1px solid #333; border-radius: 6px; font-size: 13px; }
:is(#view-admin, #dir-pop) .ad-dir-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding: 10px; background: #151515; border: 1px solid #2e2e2e; border-radius: 6px; }
:is(#view-admin, #dir-pop) .ad-dir-form label:not(.ad-dir-file) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
:is(#view-admin, #dir-pop) .ad-dir-form label > i { font-style: normal; font-size: 9.5px; letter-spacing: 1.2px; color: var(--muted); }
:is(#view-admin, #dir-pop) .ad-dir-form input:not([type="file"]), :is(#view-admin, #dir-pop) .ad-dir-form select { width: 100%; min-width: 0; }
:is(#view-admin, #dir-pop) .ad-dir-form .f-set { grid-column: 1 / -1; }
:is(#view-admin, #dir-pop) .ad-dir-pic { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; }
:is(#view-admin, #dir-pop) .ad-dir-prev { flex: none; width: 92px; height: 128px; display: flex; align-items: center; justify-content: center; background: #111; border: 1px solid #2e2e2e; border-radius: 4px; overflow: hidden; }
:is(#view-admin, #dir-pop) .ad-dir-prev img { width: 100%; height: 100%; object-fit: contain; }
:is(#view-admin, #dir-pop) .ad-dir-prev span { font-size: 9.5px; letter-spacing: 1.2px; color: var(--muted); text-align: center; }
:is(#view-admin, #dir-pop) .ad-dir-from { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
:is(#view-admin, #dir-pop) .ad-dir-from label:not(.ad-dir-file) { align-self: stretch; }
:is(#view-admin, #dir-pop) .ad-dir-file { cursor: pointer; }
:is(#view-admin, #dir-pop) .ad-dir-do { grid-column: 1 / -1; display: flex; gap: 8px; }
:is(#view-admin, #dir-pop) #ad-dir-note:empty { display: none; }
:is(#view-admin, #dir-pop) .ad-dir-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; margin-top: 10px; overflow-y: auto; }
:is(#view-admin, #dir-pop) .ad-dir-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid #262626; border-radius: 6px; }
:is(#view-admin, #dir-pop) .ad-dir-th { width: 44px; height: 62px; background: #111; border-radius: 3px; overflow: hidden; }
:is(#view-admin, #dir-pop) .ad-dir-th img { width: 100%; height: 100%; object-fit: contain; display: block; }
:is(#view-admin, #dir-pop) .ad-dir-t { min-width: 0; }
:is(#view-admin, #dir-pop) .ad-dir-t b { display: block; font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#view-admin, #dir-pop) .ad-dir-t span { display: block; font-size: 11px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#view-admin, #dir-pop) .ad-dir-a { display: flex; gap: 6px; }

/* ===== ROUND 211 · THE TERMS AND THE PRIVACY NOTICE, ACCEPTED ONCE (operator 2026-11-03, js/terms.js) ===== */
.tgate { position: fixed; inset: 0; z-index: 9300; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; background: rgba(10, 10, 10, .94); font-family: var(--rep-font); color: #d9d9d9; }
.tgate[hidden] { display: none; }
body.tgate-open { overflow: hidden; }
.tgate-win { width: min(620px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.tgate-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #333; letter-spacing: .08em; color: #f2f2f2; }
.tgate-head .lg-lang { margin: 0 0 0 auto; position: static; }
.tgate-body { padding: 16px 18px 6px; overflow-y: auto; min-height: 0; }
.tgate-body h2 { margin: 0 0 8px; font-size: 22px; font-weight: 400; color: #f2f2f2; }
.tgate-lead { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #bdbdbd; }
.tgate-pts { margin: 0 0 14px; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.5; }
.tgate-pts li { margin: 0 0 6px; }
.tgate-pts li::marker { color: #DC4F4C; }
.tgate-tick { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 8px; padding: 10px 11px; border: 1px solid #3a3a3a; border-radius: 9px; background: #151515; font-size: 13px; line-height: 1.45; color: #e2e2e2; cursor: pointer; }
.tgate-tick input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #DC4F4C; }
.tgate-tick a { color: #fff; text-decoration: underline; }
.tgate-err { margin: 2px 0 8px; font-size: 13px; color: #ff8b88; }
.tgate-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 8px; }
.tgate-btn { min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid #555; background: transparent; color: #e2e2e2; font: inherit; font-size: 13.5px; letter-spacing: .05em; cursor: pointer; }
.tgate-btn.go { border-color: #DC4F4C; background: #DC4F4C; color: #fff; }
.tgate-btn:disabled { border-color: #3a3a3a; background: #2a2a2a; color: #7F7F7F; cursor: default; }
.tgate-fine { margin: 0; padding: 0 18px 14px; font-size: 12px; text-align: right; color: #A6A6A6; }
.tgate-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.lg-legal a { color: inherit; text-decoration: underline; }
body.mv .tgate { padding: 0; align-items: stretch; }
body.mv .tgate-win { width: 100%; border: 0; border-radius: 0; }
body.mv .tgate-pts, body.mv .tgate-tick { font-size: 14px; }
body.mv .tgate-foot { flex-direction: column-reverse; }
body.mv .tgate-btn { width: 100%; }
body.mv .tgate-fine { text-align: center; }

/* ROUND 215 — BLACKBOARD POPULATION: a grade's bar lists its cards under the bars */
#view-board .bb-dbar { grid-template-columns: 34px minmax(60px, 96px) minmax(0, 1fr) 30px 38px 12px; width: 100%; margin: 0; padding: 2px 4px 2px 0;
  border: 0; border-radius: 3px; background: none; color: inherit; font: inherit; font-size: 11px; text-align: left; }
#view-board button.bb-dbar { cursor: pointer; }
#view-board button.bb-dbar:hover, #view-board button.bb-dbar[aria-expanded="true"] { background: #232323; }
#view-board button.bb-dbar:hover .track { border-color: #555; }
#view-board button.bb-dbar:focus-visible { outline: 1px solid #A6A6A6; outline-offset: 1px; }
#view-board .bb-dbar .chev { font-size: 14px; line-height: 1; text-align: center; color: #7F7F7F; }
#view-board .bb-dbar[aria-expanded="true"] .chev { transform: rotate(90deg); color: #F2F2F2; }
#view-board .bb-dhead { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
#view-board .bb-dhead b { font-size: 14px; letter-spacing: 0; color: #fff; }
#view-board .bb-dhead i { margin-left: auto; font-style: normal; letter-spacing: .6px; color: #A6A6A6; }
#view-board .bb-dcards { margin-bottom: 14px; }
@media (max-width: 900px) {
  #view-board .bb-dbar { padding-top: 6px; padding-bottom: 6px; }
}

/* ROUND 216 — THE SEATS · JUST THE NUMBER · THE BOX · MONTHLY PROMOTION */
.rq-seats { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 9px; border-radius: 12px; background: #161616; border: 1px solid #2a2a2a; }
.rq-seath { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.rq-seath b { font-size: 10px; letter-spacing: 1.8px; color: #d9d9d9; font-weight: 600; }
.rq-seath span { font-size: 10.5px; color: #8f8f8f; }
.rq-seath span.me { color: #ffb1ae; }
.rq-seath span.bad, .rq-seath strong.bad { color: #ff9c98; }
.rq-seath strong { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rq-seath strong i { font-style: normal; font-size: 10.5px; font-weight: 400; color: #8f8f8f; }
/* the one bar: what is left, then this submission's seats, hatched; the rest of the bar is already booked */
.rq-seatbar { display: flex; height: 10px; border-radius: 5px; background: #0b0b0b; border: 1px solid #2c2c2c; overflow: hidden; }
.rq-seatbar em { display: block; height: 100%; background: linear-gradient(90deg, #4fae82, #7ED4A6); }
.rq-seatbar.mid em { background: linear-gradient(90deg, #b98a2e, #e8bf63); }
.rq-seatbar.low em { background: linear-gradient(90deg, #b83a37, var(--accent)); }
.rq-seatbar u { display: block; height: 100%; min-width: 4px; background: repeating-linear-gradient(135deg, var(--accent) 0 3px, #f2f2f2 3px 5px); text-decoration: none; }
.rq-seatfoot { margin: 0; font-size: 11px; color: #e8bf63; }
.rq-packnote { margin: 0; padding: 9px 12px; border-radius: 10px; background: #1a1a1a; border: 1px solid #3a3a3a; font-size: 12px; line-height: 1.45; color: #d9d9d9; }
.rq-seatwarn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border-radius: 12px; background: #2a1716; border: 1px solid #6b2e2b; color: #ffc9c6; font-size: 12px; line-height: 1.45; }
.rq-seatwarn .rq-ghost { width: auto; flex: 0 0 auto; }
.rq-promo { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, #2e2410, #1b1b1b 70%); border: 1px solid #6b5a26; color: #d8c89a; font-size: 12px; line-height: 1.45; }
.rq-promo b { font-size: 12.5px; letter-spacing: 1px; color: #f0e2b6; font-weight: 600; }
.rq-tier.full { opacity: .55; cursor: not-allowed; border-color: #333; }
.rq-tierp s { font-size: 11px; color: #8f8f8f; font-weight: 400; }
.rq-movedup { display: block; margin-top: 6px; font-size: 11.5px; color: #d8c89a; }
.rq-countbox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: #141414; border: 1px solid #2c2c2c; }
.rq-stepper { display: flex; align-items: stretch; justify-content: center; gap: 6px; }
.rq-stepper button { flex: 0 0 56px; height: 56px; border-radius: 12px; border: 1px solid #3a3a3a; background: #1e1e1e; color: #f2f2f2; font: inherit; font-size: 24px; cursor: pointer; }
.rq-stepper button:hover { border-color: #7F7F7F; }
.rq-stepper input { flex: 0 1 130px; min-width: 0; height: 56px; border-radius: 12px; border: 1px solid #3a3a3a; background: #0f0f0f; color: #fff; font: inherit; font-size: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.rq-feebar:empty { display: none; }
.rq-feebar { padding: 0 14px; font-size: 12.5px; color: #bdbdbd; text-align: right; }
.rq-feebar b { color: #fff; font-size: 14px; }
.rq-feeq { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: #f0d58a; }
#rq-seatbox:empty, #rq-seatnote:empty, #rq-packnote:empty { display: none; }
/* on a computer the page scrolls but #main is a scroll container of its own: as BLACKPORT does, so the foot (the bar and NEXT) stays in view as it does on a phone */
#app:has(#view-request.active) #main { overflow: visible; overflow-x: clip; }
/* the box at the counter */
.rc-box { padding: 16px; }
.rc-win { overflow-y: auto; }
.rc-who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #171717; border: 1px solid #2c2c2c; }
.rc-who > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-who > div b { font-size: 13.5px; color: #f2f2f2; font-weight: 600; }
.rc-who > div span { font-size: 11.5px; color: #a6a6a6; overflow-wrap: anywhere; }
.rc-no { flex: 0 0 auto; padding: 5px 9px; border-radius: 4px; border: 1px solid #6b5a26; background: #2e2410; color: #d8c89a; font-size: 13px; letter-spacing: 1px; font-weight: 600; }
.rc-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #bdbdbd; }
.rc-warn { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #ff9c98; }
.rc-fee { margin: 10px 0 0; font-size: 13px; color: #bdbdbd; }
.rc-fee b { color: #fff; }
.rc-form { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.rc-form.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rc-form .rq-fl:only-child { grid-column: 1 / -1; }
.rc-form select { width: 100%; }
.rc-form .rc-wide { grid-column: 1 / -1; }
/* NEW PRE-GRADE's MEMBER# (round 305): the field, SCAN and × in a row over the customer; filled from the account, the customer and email held */
.rc-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 8px; margin-top: 12px; }
.rc-mrow .btn { height: 38px; }
.rc-mmsg { margin-top: 6px; }
.rc-form input.rc-held { color: #d8c89a; background: #1c1912; border-color: #4a4130; }
.rc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.rc-done { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; padding: 12px; border-radius: 8px; background: #17201a; border: 1px solid #2a5a39; }
.rc-done b { font-size: 15px; letter-spacing: 1px; color: #fff; }
.rc-done span { font-size: 12px; color: #bdbdbd; }
.rc-win .rq-cilist { margin-top: 10px; max-height: 300px; }
.rc-win .rq-ciform { margin-bottom: 12px; }
#rc-body > .rq-fl { margin-top: 12px; display: block; }
.rqi-st.arr { background: #17324a; border-color: #2f6fb3; color: #cfe6ff; }
.rqi-blm { margin-right: 8px; padding: 1px 6px; border-radius: 3px; border: 1px solid #6b5a26; background: #2e2410; color: #d8c89a; font-size: 10.5px; letter-spacing: .6px; font-weight: 600; }
.rqi-blank { color: #8f8f8f; font-style: normal; font-weight: 400; }
.rqi-assign { display: flex; align-items: center; gap: 6px; }
.rqi-assign input { width: 104px; height: 26px; padding: 0 7px; border-radius: 4px; border: 1px solid #3a3a3a; background: #111; color: #f2f2f2; font: inherit; font-size: 12px; }
.rqi-count { display: flex; align-items: flex-end; gap: 8px; margin: 6px 0 10px; }
.rqi-count label { display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; letter-spacing: 1px; color: #a6a6a6; }
.rqi-count input { width: 92px; height: 28px; padding: 0 8px; border-radius: 4px; border: 1px solid #3a3a3a; background: #111; color: #f2f2f2; font: inherit; font-size: 13px; }
.ord-recv { flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; margin-left: 6px; }
.ord-recv .btn { white-space: nowrap; }
/* ADMIN → Monthly promotion */
.st-plmonth { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.st-plmonth b { min-width: 150px; text-align: center; font-size: 13px; letter-spacing: 1.4px; color: #f2f2f2; font-weight: 600; }
.st-plgo { height: 26px; min-width: 30px; padding: 0 8px; border-radius: 6px; border: 1px solid #3a3a3a; background: #1e1e1e; color: #d9d9d9; font: inherit; font-size: 11px; cursor: pointer; }
.st-plgo:hover { border-color: #7F7F7F; color: #fff; }
.st-plgo.wide { letter-spacing: 1px; font-size: 10px; }
.st-plnow { font-style: normal; font-size: 10px; letter-spacing: 1px; color: #7ED4A6; }
.st-plset { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 10px 12px; border-radius: 6px; background: #17201a; border: 1px solid #2a5a39; font-size: 11.5px; line-height: 1.5; color: #d9d9d9; }
.st-plset .btn { flex: 0 0 auto; }
.st-plpromo { display: grid; grid-template-columns: minmax(0, 1fr) 130px 130px; gap: 8px 10px; margin-bottom: 12px; }
.st-plpromo .wide { grid-column: 1 / -1; }
.st-plhead, .st-plrow { display: grid; grid-template-columns: minmax(110px, 1.3fr) 76px 76px 76px 84px 52px 52px; align-items: center; gap: 8px; }
.st-plhead { padding-bottom: 5px; border-bottom: 1px solid #2e2e2e; }
.st-plhead i { font-style: normal; font-size: 9px; letter-spacing: 1px; color: #a6a6a6; }
.st-plrow { padding: 6px 0; border-bottom: 1px solid #242424; }
.st-plrow.total { border-bottom: 0; }
.st-plrow input, .st-plrow select { width: 100%; height: 28px; padding: 0 6px; border-radius: 4px; border: 1px solid #3a3a3a; background: #111; color: #f2f2f2; font: inherit; font-size: 12px; }
.st-plname { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-plname b { font-size: 12.5px; color: #f2f2f2; font-weight: 600; }
.st-plname i { font-style: normal; font-size: 10.5px; color: #8f8f8f; }
.st-plusual { font-size: 12px; color: #d9d9d9; font-variant-numeric: tabular-nums; }
.st-plusual i { font-style: normal; color: #7F7F7F; }
.st-plper { font-size: 10px; letter-spacing: .8px; color: #a6a6a6; }
.st-plfig { font-size: 13px; color: #f2f2f2; font-variant-numeric: tabular-nums; text-align: right; }
.st-plfig.full { color: var(--accent); font-size: 11px; letter-spacing: .6px; }
@media (max-width: 560px) {
  .rq-tier { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .rq-tband b { font-size: 16px; }
  .rc-form, .rc-form.two { grid-template-columns: minmax(0, 1fr); }
  .rc-box { padding: 10px; }
}
/* the mailbox's bar keeps one line: the search gives way to the tabs */
#rq-inbox .rqi-bar .ja-filters { flex: 1 1 150px; min-width: 150px; }
#rq-inbox .rqi-bar .ord-f.search { width: 100%; min-width: 0; }
#rq-inbox .rqi-bar .ord-f.search input { min-width: 0; width: 100%; }
/* the scanner over the box's sheet */
body > .bv-scanner { z-index: 9100; }

/* ROUND 217 — THE CARD DIRECTORY: THE ARCHIVE · READING A CARD OFF ITS SCAN · WHAT A SLAB LABEL NEEDS */
:is(#view-admin, #dir-pop) .ad-dir-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
:is(#view-admin, #dir-pop) .ad-dir-tabs .st-segs { display: inline-flex; gap: 4px; }
:is(#view-admin, #dir-pop) .ad-dir-tabs .st-seg i { font-style: normal; margin-left: 4px; color: #a6a6a6; }
:is(#view-admin, #dir-pop) .ad-dir-tabs .st-seg.on i { color: inherit; }
:is(#view-admin, #dir-pop) .ad-dir-more { align-self: center; margin: 4px 0; }
:is(#view-admin, #dir-pop) .ad-dir-miss { color: #ff9c98 !important; font-size: 10px !important; letter-spacing: .8px; }
:is(#view-admin, #dir-pop) .ad-dir-a { flex-wrap: wrap; justify-content: flex-end; }
:is(#view-admin, #dir-pop) .ad-dir-form label.filled input { border-color: #6b5a26; background: #1f1a0c; }
:is(#view-admin, #dir-pop) .ad-dir-form label > i em { font-style: normal; margin-left: 4px; color: #d8c89a; letter-spacing: .8px; }
:is(#view-admin, #dir-pop) .ad-dir-read, :is(#view-admin, #dir-pop) .ad-dir-lab { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; border-radius: 5px; background: #111; border: 1px solid #2e2e2e; font-size: 12px; line-height: 1.45; color: #d9d9d9; min-width: 0; }
:is(#view-admin, #dir-pop) .ad-dir-read .bv-spin { margin: 2px auto; }
:is(#view-admin, #dir-pop) .ad-dir-read > span { text-align: center; color: #a6a6a6; }
:is(#view-admin, #dir-pop) .ad-dir-read .h, :is(#view-admin, #dir-pop) .ad-dir-lab .h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
:is(#view-admin, #dir-pop) .ad-dir-read .h b, :is(#view-admin, #dir-pop) .ad-dir-lab .h b { font-size: 10px; letter-spacing: 1.4px; font-weight: 600; color: #f2f2f2; }
:is(#view-admin, #dir-pop) .ad-dir-read .h i, :is(#view-admin, #dir-pop) .ad-dir-lab .h i { font-style: normal; font-size: 9.5px; letter-spacing: .8px; padding: 1px 6px; border-radius: 3px; border: 1px solid #3a3a3a; color: #a6a6a6; white-space: nowrap; }
:is(#view-admin, #dir-pop) .ad-dir-read .h i.good, :is(#view-admin, #dir-pop) .ad-dir-lab .h i.good { color: #7ED4A6; border-color: #2a5a39; }
:is(#view-admin, #dir-pop) .ad-dir-read .h i.mid { color: #d8c89a; border-color: #6b5a26; }
:is(#view-admin, #dir-pop) .ad-dir-read .h i.bad, :is(#view-admin, #dir-pop) .ad-dir-lab .h i.bad { color: #ff9c98; border-color: #6b2e2b; }
:is(#view-admin, #dir-pop) .ad-dir-read p { margin: 0; color: #bdbdbd; }
:is(#view-admin, #dir-pop) .ad-dir-read p.warn { color: #ffc9c6; }
:is(#view-admin, #dir-pop) .ad-dir-lab > span { color: #f2f2f2; overflow-wrap: anywhere; }
:is(#view-admin, #dir-pop) .ad-dir-lab > em { font-style: normal; font-size: 11px; color: #a6a6a6; }
:is(#view-admin, #dir-pop) .ad-dir-read .srcs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
:is(#view-admin, #dir-pop) .ad-dir-read .srcs i, :is(#view-admin, #dir-pop) .ad-dir-read .cands > i { font-style: normal; font-size: 9.5px; letter-spacing: 1px; color: #a6a6a6; }
:is(#view-admin, #dir-pop) .ad-dir-read .srcs a { color: #8fc4ff; font-size: 11px; }
:is(#view-admin, #dir-pop) .ad-dir-read .cands { display: flex; flex-direction: column; gap: 5px; }
:is(#view-admin, #dir-pop) .ad-dir-read .cand { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px; border: 1px solid #262626; border-radius: 4px; }
:is(#view-admin, #dir-pop) .ad-dir-read .cp { width: 58px; height: 80px; background: #0c0c0c; border-radius: 3px; overflow: hidden; display: block; }
:is(#view-admin, #dir-pop) .ad-dir-read .cp img { width: 100%; height: 100%; object-fit: contain; display: block; }
:is(#view-admin, #dir-pop) .ad-dir-read .ct { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:is(#view-admin, #dir-pop) .ad-dir-read .ct b { font-size: 12.5px; font-weight: 500; color: #fff; }
:is(#view-admin, #dir-pop) .ad-dir-read .ct span { font-size: 11px; color: #9a9a9a; }
:is(#view-admin, #dir-pop) .ad-dir-read .sugg { width: 100%; height: 56px; border: 0; background: transparent; }
/* ROUND 243: the reading, line by line, into the form; what the picture is */
:is(#view-admin, #dir-pop) #ad-dir-diffs { display: flex; flex-direction: column; gap: 5px; }
:is(#view-admin, #dir-pop) #ad-dir-diffs:empty { display: none; }
:is(#view-admin, #dir-pop) .ad-dir-read .diff { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
:is(#view-admin, #dir-pop) .ad-dir-read .diff p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
:is(#view-admin, #dir-pop) .ad-dir-read .diff .btn { flex: none; }
:is(#view-admin, #dir-pop) .ad-dir-read .ad-dir-takeall { align-self: flex-end; }
:is(#view-admin, #dir-pop) .ad-dir-read p.agree { color: #7ED4A6; }
:is(#view-admin, #dir-pop) .ad-dir-prevw { flex: none; width: 92px; display: flex; flex-direction: column; gap: 4px; }
:is(#view-admin, #dir-pop) .ad-dir-cap { font-style: normal; font-size: 9.5px; letter-spacing: .8px; line-height: 1.25; color: #d8c89a; text-align: center; }
/* ROUND 244: the job's published report beside the form */
:is(#view-admin, #dir-pop) .ad-dir-rep:empty { display: none; }
:is(#view-admin, #dir-pop) .ad-dir-rep > span { text-align: left; }
:is(#view-admin, #dir-pop) .ad-dir-rep p.warn { overflow-wrap: anywhere; }
:is(#view-admin, #dir-pop) .ad-dir-rep > em { font-style: normal; font-size: 11px; color: #a6a6a6; }
:is(#view-admin, #dir-pop) .ad-dir-repdo { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 3px; }
:is(#view-admin, #dir-pop) .ad-dir-repdo strong { flex: 1 1 240px; min-width: 0; font-weight: 500; color: #f2f2f2; }
/* ADMIN → Monthly promotion: the limits a family, the promotion prices a tier */
.st-plhead.lim, .st-plfam { display: grid; grid-template-columns: minmax(110px, 1.4fr) 84px 92px 56px 56px; align-items: center; gap: 8px; }
.st-plhead.pro, .st-plpro { display: grid; grid-template-columns: minmax(110px, 1.8fr) 84px 84px 84px 44px 60px; align-items: center; gap: 8px; }
.st-plhead.pro i:nth-child(n+5) { text-align: right; }   /* over their figures (round 227: a promotion's quota) */
/* the BVA combo's row (round 229) */
.st-plhead.cmb, .st-plcmb { display: grid; grid-template-columns: minmax(110px, 1fr) 64px 112px 112px 84px 40px 56px; align-items: center; gap: 8px; }
.st-plhead.cmb { margin-top: 10px; }
.st-plhead.cmb i:nth-child(n+6) { text-align: right; }
.st-plcmb { padding: 6px 0; border-bottom: 1px solid #242424; }
.st-plcmb input { width: 100%; height: 28px; padding: 0 6px; border-radius: 4px; border: 1px solid #3a3a3a; background: #111; color: #f2f2f2; font: inherit; font-size: 12px; }.st-plhead.pro { margin-top: 2px; }
.st-plfam, .st-plpro { padding: 6px 0; border-bottom: 1px solid #242424; }
.st-plfam.total { border-bottom: 0; margin-bottom: 12px; }
.st-plfam input, .st-plfam select, .st-plpro input { width: 100%; height: 28px; padding: 0 6px; border-radius: 4px; border: 1px solid #3a3a3a; background: #111; color: #f2f2f2; font: inherit; font-size: 12px; }

/* ===== ROUND 224 (operator 2026-11-04: 'increase the font size within the report, both Thai and English') — every report rule's small
   text is written calc(<size> + a token): --bv-up for 12.5 px and under, --bv-up2 up to 21 px; the big figures stay. These four lines say how much.
   Search forms, the landing page and the studio's job bar stay as they were. ===== */
:root { --bv-up: 3px; --bv-up2: 2px; }
html[lang="th"] { --bv-up: 4px; --bv-up2: 3px; }
body.mv { --bv-up: 2px; --bv-up2: 1px; }
html[lang="th"] body.mv { --bv-up: 3px; --bv-up2: 2px; }
/* the room the larger text needs, on a computer: SUMMARY's middle column and its pillar names, CORNERS' readings, CENTERING's side figures */
@media (min-width: 761px) {
  body:not(.mv) .bv-cols3 { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px) minmax(0, 1fr); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row { grid-template-columns: 102px 36px minmax(0, 1fr) 86px 38px; }
  body:not(.mv) .bv-cgrid { width: min(100cqh, calc(100cqw - 320px)); height: min(100cqh, calc(100cqw - 320px)); }
  body:not(.mv) .bv-cside .bv-reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.mv) .bv-cent { --mmr: 180px; }
}
.bv-ded th, .bv-ded td { white-space: nowrap; }
/* a window up to 860 px tall: the companies' tiles keep the name and the grade on one line */
@media (min-width: 761px) and (max-height: 860px) {
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span { flex-direction: row; align-items: center; justify-content: space-between; height: 36px; padding: 0 7px 0 15px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos i { font-size: calc(10px + var(--bv-up)); letter-spacing: .6px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(15px - 1pt + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-slab { height: 86px; }
  html[lang="th"] body:not(.mv) #bv-body .bv-sum2 { gap: 4px; }
}
/* CORNERS' labels on the tiles follow the tile's size: never under 11 px */
.bv-cest { height: max(16px, 8.7cqmin); font-size: max(11px, 5.42cqmin); }
/* the studio's job bar is a toolbar, not the report: it keeps its size and its one line */
.bv-jobbar .bv-btn { font-size: 10.5px; }
.bv-jstate { font-size: 11px; }
.bv-jstate b { font-size: 13px; }
.bv-jstate em { font-size: 9.5px; }
/* a phone: VERIFIED, the Job# and the date keep their one line */
body.mv .bv-ver > * { white-space: nowrap; letter-spacing: .3px; }
/* a phone's hero: the larger lines leave the name little room beside the grade, so it takes two lines rather than being cut */
body.mv .bv-cl > .l-name, body.mv .bv-cl > .l-name > b { display: block; white-space: normal; overflow: visible; line-height: 1.2; }

/* ROUND 226 (operator 2026-11-04): agent KYC, the holder a card comes back in, the staff guide's picture steps */
.ky-win { max-width: 740px; }
.ky-why { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: #cfcfcf; }
.ky-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.ky-tile { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px dashed #4d4d4d; border-radius: 12px; background: #171717; cursor: pointer; }
.ky-tile.on { border-style: solid; border-color: #7ed4a6; }
.ky-tile img, .ky-add { width: 100%; height: 130px; border-radius: 8px; background: #0e0e0e; }
.ky-tile img { object-fit: contain; }
.ky-add { display: grid; place-items: center; font-size: 40px; font-weight: 300; color: #7f7f7f; }
.ky-tile b { font-size: 12.5px; letter-spacing: .6px; color: #fff; }
.ky-tile span:not(.ky-add) { font-size: 12px; line-height: 1.5; color: #a6a6a6; }
.ky-tile em { margin-top: auto; font-style: normal; font-size: 11px; letter-spacing: 1px; color: #d8c89a; }
.ky-ok { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 12.5px; line-height: 1.5; color: #d9d9d9; }
#ky-box .ky-ok input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; padding: 0; }
.ky-ok span { min-width: 0; }
.ky-ok a { color: #d8c89a; text-decoration: underline; }
.ky-done { display: grid; gap: 8px; justify-items: start; margin: 14px 0; font-size: 13px; color: #d9d9d9; }
.ky-done p { margin: 0; line-height: 1.55; }
.ky-st { padding: 3px 9px; border-radius: 6px; font-style: normal; font-size: 11px; letter-spacing: 1px; }
.ky-st.wait { color: #d8c89a; background: #2a2413; }
.ky-st.ok { color: #7ed4a6; background: #13261c; }
body.mv .ky-tiles { grid-template-columns: 1fr; }
.ag-kyc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid #333; border-radius: 10px; }
.ag-kyc b { font-size: 11.5px; letter-spacing: 1px; }
.ag-kyc span { flex: 1 1 100%; font-size: 12px; color: #a6a6a6; }
.ag-st.kyc-none, .ag-st.kyc-rejected { color: #ff8a87; border-color: #6b2f2d; }
.ag-st.kyc-submitted { color: #d8c89a; border-color: #5a4a20; }
.ag-st.kyc-approved { color: #7ed4a6; border-color: #2e5a44; }
.rq-holdh { margin-top: 16px; }
.ord-holder { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ord-holder span { flex: 0 0 auto; font-size: 10px; letter-spacing: 1px; color: #a6a6a6; }
.ord-holder select { flex: 1 1 auto; min-width: 0; }
#view-submit .card-head #sub-howto { margin-left: 8px; }
.gd-sample { margin: 0 0 10px; font-size: 12.5px; color: #a6a6a6; }
.gd-way { margin-bottom: 12px; }
.gd-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 10px; }
.gd-shot { margin: 0; display: grid; gap: 8px; align-content: start; }
.gd-shot a { display: block; }
.gd-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid #333; background: #111; }
.gd-shot a:hover img { border-color: #7f7f7f; }
.gd-shot figcaption { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; color: #d9d9d9; }
.gd-shot figcaption i { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #dc4f4c; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 600; }

/* ============ ROUND 233: SILVER · GOLD, ADMIN → Label colours, the colour on the customer's form ============ */
.nm-sw.c-silvergold { background: linear-gradient(135deg, #ced1d6 0, #b0b4ba 30%, #c4c8cd 52%, #7a5618 52% 100%); }
.lbl-niim.sim.c-silvergold { --nm-ink: #7a5618; --nm-paper: #babec4; background: linear-gradient(118deg, #c6cad0 0%, #aeb2b8 34%, #ced2d7 58%, #b2b6bc 82%, #bfc3c9 100%); }
#set-labelcol { margin-top: 10px; }
.lc-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lc-col { display: flex; flex-direction: column; min-width: 0; border-radius: 7px; overflow: hidden; background: #1a1a1a; box-shadow: inset 0 0 0 1px #333; }
.lc-col.cur { box-shadow: inset 0 0 0 1.5px #c79d5e; }
#view-admin .lc-name { flex: 1 1 auto; height: auto; min-height: 40px; margin: 0; padding: 4px 6px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; background: none; color: #e6e6e6; font-size: 11.5px; white-space: nowrap; }
#view-admin .lc-off { flex: none; height: 24px; min-height: 0; margin: 0; padding: 0 8px; display: flex; align-items: center; gap: 6px; border: 0; border-top: 1px solid #333; border-radius: 0; background: #141414; color: #8f8f8f; font-size: 9.5px; letter-spacing: .8px; }
#view-admin .lc-off i { flex: none; width: 9px; height: 9px; border: 1px solid #5f5f5f; border-radius: 2px; }
#view-admin .lc-off.on { color: #e6c48d; background: #1b160d; }
#view-admin .lc-off.on i { background: #c79d5e; border-color: #c79d5e; box-shadow: inset 0 0 0 2px #1b160d; }
.lc-body { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 12px; }
.lc-say { flex: 1 1 200px; min-width: 0; }
.lc-load { margin: 0 0 6px; font-size: 12.5px; line-height: 1.45; color: #7ed4a6; }
.lc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; padding-bottom: 6px; border-bottom: 1px solid #2e2e2e; }
.lc-head b { font-size: 11px; letter-spacing: 1.2px; color: #d9d9d9; }
.lc-head span { font-size: 10.5px; color: #8f8f8f; }
.lc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 170px); gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid #242424; font-size: 12.5px; color: #e6e6e6; }
.lc-row select { width: 100%; }
.lc-note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: #d8c89a; }
.lc-note span { display: block; }
#set-lbl-card .lbl-ncols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
/* ROUND 356 — SETTINGS → Achievement stickers: the eight in two rows of four; the sticker as it comes out, in its label and ribbon */
#set-stk-card { container-type: inline-size; }
#set-stk-ach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
#set-stk-ach button { font-size: 11px; letter-spacing: .5px; }
#set-stk-card .stk-prev .lbl { width: 170px !important; height: 255px !important; }
#set-stk-card .stk-prev .lbl img { border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
#set-stk-card .lbl-nform .set-label { margin-top: 0; }
#set-stk-blm { text-transform: uppercase; letter-spacing: 1px; }
/* ROUND 357 — the stickers waiting (the admin's): LOAD puts one in the form */
#set-stk-due { margin-top: 12px; padding-top: 10px; border-top: 1px solid #333; display: flex; flex-direction: column; gap: 6px; }
#set-stk-due .stk-due-h { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 1.2px; color: #d8c89a; }
#set-stk-due .stk-due-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border: 1px solid #2e2e2e; border-radius: 6px; font-size: 12.5px; }
#set-stk-due .stk-due-row.on { border-color: #ab9b6f; }
#set-stk-due .stk-due-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8c8c8; }
#set-stk-due .st-help { margin: 0; }
.rq-labcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.rq-labc { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 11px; background: #141414; box-shadow: inset 0 0 0 1px #2c2c2c; font-size: 13px; color: #e6e6e6; text-align: center; cursor: pointer; }
.rq-labc.on { color: #fff; background: linear-gradient(180deg, #221312, #161111); box-shadow: inset 0 0 0 1px #dc4f4c; }
.rq-labc input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rq-labgr { display: grid; gap: 2px; margin-top: 8px; font-size: 12.5px; color: #bdbdbd; }
.rq-labgr div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 2px; border-bottom: 1px solid #222; }
.rq-labgr b { font-weight: inherit; color: #e6e6e6; white-space: nowrap; }

/* ============ ROUND 232 — each order's progress on the DASHBOARD: the customer's rail, what was emailed, the results link ============ */
/* the card's one column: its auto track let a long job row push everything past the card's edge (1366, a CENTERING job in the cloud) */
.ord-card { grid-template-columns: minmax(0, 1fr); }
/* the jobs' one column too; a narrow card stands a cloud job's tag over its Open, so the row stays inside */
.ord-jobs { grid-template-columns: minmax(0, 1fr); }
@container (max-width: 400px) { .ord-job .ord-actions:has(> .ord-cloudtag) { flex-direction: column; align-items: flex-end; gap: 3px; } }
.ord-notify, .ord-revbtn { border-radius: 6px; }
.ord-progress { display: flex; flex-direction: column; gap: 7px; padding: 8px 6px 7px; border: 1px solid #262626; border-radius: 6px; background: #101010; }
.ord-rail { row-gap: 4px; }
.ord-rail .rq-lb { font-size: 8px; line-height: 10px; letter-spacing: .4px; white-space: normal; text-align: center; }
.ord-rail .rq-dot svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ord-sent { display: inline-flex; align-items: center; gap: 3px; min-height: 11px; font-style: normal; font-size: 9px; line-height: 11px; letter-spacing: .2px; color: #7ED4A6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ord-sent svg { flex: 0 0 auto; width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ord-sent.none { color: #6f6f6f; }
.ord-sent.test { color: #E8B44A; }
.ord-reveal { display: flex; align-items: center; gap: 8px; min-height: 24px; padding-top: 7px; border-top: 1px solid #222; }
.ord-reveal .k { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #d8c89a; white-space: nowrap; }
.ord-reveal .w { font-size: 9.5px; color: #8a8a8a; white-space: nowrap; }
.ord-revbtn { margin-left: auto; flex: 0 0 auto; padding: 3px 10px; background: #2a2412; border-color: #ab9b6f; color: #d8c89a; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.ord-revbtn:hover:not(:disabled) { background: #3a3218; color: #fff; }
.ord-revbtn.sent { background: #1b1b1b; border-color: #3f3f3f; color: #b9b9b9; }
.ord-revbtn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ord-notify.sent { background: #12261a; border-color: #2a5a3a; color: #7ED4A6; }
.ord-notify.sent:hover:not(:disabled) { background: #1a3a27; color: #fff; }
/* ===== /ROUND 232 ===== */

/* ===== ROUND 252 (operator 2026-11-06: 'Display each defect mark by its Subgrades'; the canvas 'Report Defects by Subgrade', variant A, header A3).
   Each subgrade tab holds its own marks; a side's head counts them by severity in the colours of their pills on the card, with the points they took
   and the total; corner angles at the tips, outside the card; marks on the corner tiles and edge strips where they are. js/vault.js ===== */
.bv-tabs > .bv-mksw { flex: 0 0 auto; height: 33px; border-radius: 4px; }
.bv-rec:is([data-slide="summary"], [data-slide="centering"]) .bv-tabs > .bv-mksw { visibility: hidden; }
.bv-tded { padding: 1px 6px; border-radius: 4px; background: #5a2c2a; color: #fff; font-size: calc(11px + var(--bv-up)); letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-tded.zero { background: #2c2c2c; color: #A6A6A6; }
.bv-tab.on .bv-tded { background: rgba(0, 0, 0, .35); }
.bv-phead.bv-shead { align-items: center; justify-content: flex-start; gap: 12px; min-height: 28px; min-width: 0; }
.bv-shead > b { flex: 0 0 auto; white-space: nowrap; }
.bv-shead .bv-sdiv { flex: 0 0 1px; align-self: stretch; margin: 3px 0; background: #333; }
.bv-shead .bv-sbadges { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.bv-shead .bv-sb { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.2px; color: #D9D9D9; }
.bv-shead .bv-sb b { min-width: 22px; height: 20px; padding: 0 4px; box-sizing: border-box; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
  font-size: calc(10px + var(--bv-up)); letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-shead .bv-sb b.major { background: #DC4F4C; color: #fff; }
.bv-shead .bv-sb b.minor { background: #FFD54A; color: #111; }
.bv-shead .bv-sb b.micro { background: #E8E8E8; color: #111; }
.bv-shead .bv-sb b.c { background: #4a4a4a; color: #fff; letter-spacing: .5px; }
.bv-shead .bv-sb i { font-style: normal; font-size: calc(11px + var(--bv-up)); letter-spacing: 0; font-weight: 600; color: #ffb4b1; font-variant-numeric: tabular-nums; }
.bv-shead .bv-snone { font-size: calc(9px + var(--bv-up)); letter-spacing: 1.2px; color: #A6A6A6; }
.bv-shead .bv-stot { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bv-shead .bv-stot em { font-style: normal; font-size: calc(9px + var(--bv-up)); letter-spacing: 0; color: #A6A6A6; font-variant-numeric: tabular-nums; }
.bv-shead .bv-stot b { height: 26px; padding: 0 10px; box-sizing: border-box; display: inline-flex; align-items: center; border-radius: 4px; background: #DC4F4C; color: #fff;
  font-size: calc(13px + var(--bv-up)); letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-sub .bv-sbody { flex: 1 1 auto; min-height: 0; display: flex; gap: 10px; }
.bv-scol { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; touch-action: pan-y; }
.bv-dlist.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bv-dlist li.hot { border-color: var(--accent); background: #2a1413; }
.bv-dlist li > div b.w { color: #A6A6A6; }
/* CORNERS: the four tiles a square block as tall as the panel allows, the list beside it */
.bv-corn { container-type: size; }
.bv-tgrid { flex: 0 0 auto; width: min(100cqh, calc(100cqw - 320px)); height: min(100cqh, calc(100cqw - 320px)); display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bv-ctile:not(.old) .bv-zin { width: 100%; height: 100%; overflow: hidden; }
.bv-ctile:not(.old) .bv-zin img { position: absolute; max-width: none; width: 112.36%; height: 112.36%; left: 0; top: 0; object-fit: fill; }
.bv-ctile.tr .bv-zin img, .bv-ctile.br .bv-zin img { left: auto; right: 0; }
.bv-ctile.bl .bv-zin img, .bv-ctile.br .bv-zin img { top: auto; bottom: 0; }
.bv-ang { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; border-radius: 3px; background: rgba(8, 8, 8, .86);
  color: #F2F2F2; font-size: calc(9.5px + var(--bv-up)); white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.bv-ang b { font-weight: 600; letter-spacing: .8px; }
.bv-ang .bv-est { font-style: normal; color: #d8c89a; }
.bv-ang svg { flex: 0 0 10px; width: 10px; height: 10px; fill: none; stroke: #d8c89a; stroke-width: 1.6; }
.bv-ang.tl { left: 4px; top: 4px; }
.bv-ang.tr { right: 4px; top: 4px; flex-direction: row-reverse; }
.bv-ang.bl { left: 4px; bottom: 4px; }
.bv-ang.br { right: 4px; bottom: 4px; flex-direction: row-reverse; }
.bv-ang.tr svg { transform: rotate(90deg); }
.bv-ang.br svg { transform: rotate(180deg); }
.bv-ang.bl svg { transform: rotate(-90deg); }
.bv-zc.zoomed .bv-ang { opacity: 0; }
/* a mark on a tile or a strip: its box where it is, its number in its severity's colour */
.bv-tmk { position: absolute; z-index: 3; padding: 0; min-width: 12px; min-height: 12px; box-sizing: border-box; background: transparent; border: 2px solid #E8E8E8;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .9); cursor: pointer; }
.bv-tmk.major { border-color: #DC4F4C; }
.bv-tmk.minor { border-color: #FFD54A; }
.bv-tmk i { position: absolute; left: 50%; transform: translateX(-50%); min-width: 17px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 3px;
  font-style: normal; font-size: calc(8.5px + var(--bv-up)); line-height: 15px; font-weight: 700; text-align: center; color: #111; background: #E8E8E8; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.bv-tmk.t i { top: calc(100% + 2px); }
.bv-tmk.b i { bottom: calc(100% + 2px); }
.bv-tmk.s i { left: calc(100% + 2px); top: 50%; transform: translateY(-50%); }
.bv-tmk.major i { background: #DC4F4C; color: #fff; }
.bv-tmk.minor i { background: #FFD54A; color: #111; }
.bv-tmk.hot { border: 3px solid #fff; background: rgba(255, 255, 255, .14); z-index: 4; }
.bv-tmk.hot i { background: #fff; color: #111; }
.bv-rec.marks-off .bv-tmk { opacity: 0; visibility: hidden; }
/* EDGES (operator 2026-11-12, 'each edge as a single row, like previous'): one row an edge — its name and count at the left, the strip beside
   it — the four strips at one scale (--eh = a strip's height; a long edge reads longer than a short one), as tall as the panel allows while
   the list below keeps its room (more of it when the side has marks); the list in two columns. ROUND 295 (operator 2026-11-13, 'align
   center the Top / Bottom edge'): the strips' column is as wide as the longest strip (--eh × --lar), and each strip sits in its middle,
   so TOP and BOTTOM are centred under LEFT and RIGHT, which stay where they were */
.bv-edge { flex-direction: column; container-type: size; }
.bv-egrid { flex: 0 0 auto; display: grid; grid-template-columns: max-content minmax(0, calc(var(--eh) * var(--lar, 7.6))); gap: 8px 12px; align-items: center;
  --eh: max(26px, min(calc((100cqw - 104px) / var(--lar, 7.6)), calc((100cqh - var(--elist, 86px)) / 4 - 8px))); }
.bv-edge.mk .bv-egrid { --elist: 42cqh; }
.bv-estrip { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-width: 0; }
.bv-ecap { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 64px; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.2px; color: #A6A6A6; }
.bv-ecap b { color: #F2F2F2; font-weight: 600; letter-spacing: 1.6px; }
.bv-ecell { width: calc(var(--eh) * var(--sar, 7.6)); max-width: 100%; aspect-ratio: var(--sar, 7.6); flex: 0 0 auto; justify-self: center; }
.bv-ecell .bv-zin { width: 100%; height: 100%; }
.bv-ecell .bv-zin img { object-fit: fill; }
@media (max-width: 760px) {
  .bv-corn, .bv-edge { container-type: normal; flex-direction: column; }
  .bv-tgrid { width: 100%; height: auto; aspect-ratio: 1; }
  .bv-dlist.two { grid-template-columns: minmax(0, 1fr); }
}
body.mv .bv-sub .bv-sbody { flex: none; flex-direction: column; container-type: normal; }
body.mv .bv-tgrid { width: 100%; height: auto; aspect-ratio: 1; }
body.mv .bv-scol { flex: none; overflow: visible; }
body.mv .bv-egrid { grid-template-columns: minmax(0, 1fr); }
/* the phone: each edge its name over a full-width strip, as before */
body.mv .bv-edge { container-type: normal; }
body.mv .bv-estrip { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
body.mv .bv-ecap { flex-direction: row; justify-content: space-between; align-items: baseline; }
body.mv .bv-ecell { width: 100%; }
body.mv .bv-dlist.two { grid-template-columns: minmax(0, 1fr); }
body.mv .bv-phead.bv-shead { flex-wrap: wrap; row-gap: 8px; }
body.mv .bv-shead .bv-sdiv { display: none; }
body.mv .bv-shead .bv-sbadges { order: 5; flex: 1 1 100%; flex-wrap: wrap; gap: 8px 14px; }
body.mv .bv-tab { flex-direction: column; justify-content: center; line-height: 1.1; }
body.mv .bv-tded { padding: 0; background: none; font-size: calc(9px + var(--bv-up)); color: #ff8a87; }
body.mv .bv-tab.on .bv-tded { background: none; color: #fff; }
body.mv .bv-tabs > .bv-mksw { order: 3; align-self: center; margin: 0 auto 4px; height: 30px; }

/* ROUND 262 · + ADD A CARD in the Search Module: the Card directory's form in a pop-up over the search */
#slabq .tool-head #slabq-add { margin-left: auto; align-self: center; flex: none; white-space: nowrap; border-color: #6b5c33; color: #d8c89a; font-family: var(--jb-font); font-size: 12.5px; font-weight: 600; letter-spacing: .8px; }
#slabq .tool-head #slabq-add[hidden] { display: none; }
#slabq .tool-head #slabq-add:not([hidden]) + .sm-curchip { margin-left: 10px; }
#dir-pop { z-index: 95; }
#dir-pop .tool-win.dir-pop-win, .tool-win.dir-pop-win { width: min(640px, calc(100vw - 40px)); max-height: calc(100vh - 40px); }
#dir-pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 16px 12px; scrollbar-width: thin; }
#dir-pop #ad-dir-note { flex: none; margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; background: none; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.4; white-space: normal; color: #f2f2f2; }
#dir-pop #ad-dir-note:empty { display: none; }
#dir-pop [hidden] { display: none !important; }

/* ===== ROUND 283 · ‹ PROFILE ON THE FOUR BLACK PAGES, ‹ BACK A STEP ON A PHONE (js/app.js paintBack) ===== */
.tb-prof { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 32px; margin-left: -4px; padding: 0 12px 0 7px; border-radius: 8px; border: 1px solid #4a4a4a; background: #1b1b1b; color: #f2f2f2;
  font-family: var(--menu-font); font-weight: 350; font-stretch: 87.5%; font-size: 12.5px; letter-spacing: 1.3px; cursor: pointer; }
.tb-prof[hidden] { display: none; }
.tb-prof svg, .mv-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tb-prof:hover { border-color: #DC4F4C; }
/* round 371: with ‹ PROFILE beside it the page title stays on one line (a 1366 window put SETTINGS, the Member Zone, BLACKBOARD and
   BLACKVAULT on two, 40 px taller): the words after the page's name shorten with … instead */
#topbar.tb-job:has(#tb-prof:not([hidden])) .topbar-brand { flex: 0 1 auto; min-width: 0; overflow: hidden; }
#topbar.tb-job:has(#tb-prof:not([hidden])) #tb-pagetitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#topbar.tb-job:has(#tb-prof:not([hidden])) .topbar-right { flex-shrink: 0; }
.mv-back { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 36px; padding: 0 9px 0 4px; border-radius: 9px; border: 1px solid #3a3a3a; background: #161616; color: #f2f2f2;
  font-family: var(--menu-font); font-weight: 350; font-stretch: 87.5%; font-size: 13px; letter-spacing: 1.2px; -webkit-tap-highlight-color: transparent; }
.mv-back[hidden] { display: none; }
.mv-back svg { width: 21px; height: 21px; }
.mv-back:not(.prof) { padding: 0 6px; } .mv-back:not(.prof) span { display: none; }
body.mv.mv-toprof #mv-top .mv-word { display: none; }

/* ROUND 294 (2026-11-13): a SLAB DEFECT mark is recorded only — its count beside the side head in the slab gold, and "on the slab · no points" in MAP INSPECT */
.bv-shead .bv-sb b.slab { background: #ab9b6f; color: #1a1a1a; }
#view-ai .ai-mtxt .l2 .ro { color: #d8c89a; font-weight: 600; letter-spacing: .3px; }
#view-ai .ai-mrow.ro .ai-mthumb { outline: 1px dashed #ab9b6f; outline-offset: -1px; }

/* ===== ROUND 298 (operator 2026-11-13, a screenshot of BL-00000543TH's SUMMARY: the companies' grades ran over their tiles' bottom edge
   — 'fix the pill overlap … revise the font size for this summary section, to ensure it works in all cases/conditions'). Its GRADED box
   made the summary taller than its panel at 1920 × 917, and the PREDICTION tiles were squeezed to a fixed 52 px while their words needed 61.
   Now: (1) a tile, a pillar row and a box are never shorter than their words — when nothing more can give, the panel scrolls; (2) the
   summary sizes itself by its PANEL's height (a container query on the columns, so a GRADED box, a top-tier tab, Thai, the window and the
   sidebar all count), in three steps: ≥ 700 px as before · 520–699 px a size down, GRADED in one block · under 520 px compact, each
   company's name and grade on one line. A phone's summary grows with its content and keeps its own sizes. ===== */
body:not(.mv) .bv-slide[data-k="summary"] > .bv-cols3 { container: bvsum / size; }
body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos, body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops { min-height: auto; grid-template-rows: minmax(min-content, 1fr); }
body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span { min-height: 0; }
body:not(.mv) #bv-body .bv-sum2 .bv-s2-row > * { line-height: 1.15; }
body:not(.mv) #bv-body .bv-sum2 .bv-s2-row { min-height: max-content; }
#bv-body .bv-sum2 .bv-graded { flex: 0 0 auto; }
@container bvsum (max-height: 699px) {
  body:not(.mv) #bv-body .bv-sum2 { gap: 7px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-top { gap: 12px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-slab { height: 92px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b.gn { font-size: calc(19px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > i { margin-top: 3px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b:not(.gn) { font-size: 34px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pillars { gap: 4px; max-height: 160px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row { height: auto; min-height: 28px; max-height: 36px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row b.g { font-size: calc(16px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row .s { font-size: calc(13px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop div { padding: 7px 4px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop b { font-size: calc(15px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos { max-height: 72px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops { max-height: 80px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span,
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops > span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: auto; padding: 6px 6px 5px 16px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops > span { padding-top: 8px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span::before { top: 7px; bottom: 7px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos i { font-size: calc(10px + var(--bv-up)); line-height: 1.15; letter-spacing: 1px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(18px + var(--bv-up2)); line-height: 1; }
  body:not(.mv) #bv-body .bv-sum2 .bv-boardlink { height: 30px; min-height: 30px; margin-top: auto; }
  /* GRADED in one block: the grade at the left, the company and how over the cert, the comparison at the right */
  body:not(.mv) #bv-body .bv-sum2 .bv-graded { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: center; margin-top: 0; padding: 6px 10px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedrow { display: contents; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh { grid-column: 2; grid-row: 1; margin: 0; min-width: 0; overflow: hidden; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh b { flex: none; white-space: nowrap; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gg { grid-column: 1; grid-row: 1 / 3; font-size: 26px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gcert { grid-column: 2; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedrow i { grid-column: 3; grid-row: 1 / 3; max-width: 136px; white-space: normal; text-align: center; line-height: 1.2; }
  /* the company on the first line, how it was graded under it (one line, cut with … — its whole text on the pointer), then the cert */
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh { flex-wrap: wrap; row-gap: 0; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh span { flex: 1 1 100%; }
}
@container bvsum (max-height: 519px) {
  body:not(.mv) #bv-body .bv-sum2 { gap: 3px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-top { gap: 10px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-slab { height: 62px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score .cap { font-size: calc(7.5px + var(--bv-up)); line-height: 1.15; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b.gn { font-size: calc(14px + var(--bv-up2)); line-height: 1.1; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > i { margin-top: 1px; font-size: calc(8px + var(--bv-up)); line-height: 1.15; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b:not(.gn) { font-size: 25px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b em { font-size: calc(9.5px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-rule > b { font-size: calc(8.5px + var(--bv-up)); letter-spacing: 1.6px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-rule > span { font-size: calc(7.5px + var(--bv-up)); letter-spacing: .8px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pillars { gap: 2px; max-height: 116px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row { min-height: 21px; max-height: 27px; padding: 0 8px; border-radius: 7px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row .n { font-size: calc(9px + var(--bv-up)); letter-spacing: 1px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row b.g { font-size: calc(12.5px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row .s { font-size: calc(10.5px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row .s em { font-size: calc(8px + var(--bv-up)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row .l { font-size: calc(9px + var(--bv-up)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop div { padding: 4px 4px; gap: 5px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop b { font-size: calc(12.5px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop i { font-size: calc(7.5px + var(--bv-up)); letter-spacing: .6px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos { gap: 4px; max-height: 38px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops { padding-top: 7px; max-height: 46px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span,
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops > span { flex-direction: row; align-items: center; justify-content: space-between; gap: 3px; height: auto; padding: 4px 5px 4px 12px; border-radius: 7px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops > span { padding-top: 6px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span::before { top: 6px; bottom: 6px; left: 4px; width: 3px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos i { font-size: calc(8px + var(--bv-up)); letter-spacing: .3px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos b { font-size: calc(12.5px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos em.bv-cotop { top: -7px; padding: 0 4px; font-size: calc(7px + var(--bv-up)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-boardlink { height: 24px; min-height: 24px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-graded { padding: 3px 8px; column-gap: 8px; row-gap: 0; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gg { font-size: 20px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh b { font-size: calc(8px + var(--bv-up)); letter-spacing: 1.4px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh span { font-size: calc(7.5px + var(--bv-up)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-gcert { font-size: calc(8.5px + var(--bv-up)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedrow i { font-size: calc(7.5px + var(--bv-up)); padding: 1px 5px; max-width: 108px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh { flex-wrap: nowrap; }       /* compact: how it was graded beside the company again, cut with … */
  body:not(.mv) #bv-body .bv-sum2 .bv-gradedh span { flex: 0 1 auto; }
}
/* under 400 px (a 1280 × 720 window): the head and the gaps tighter still */
@container bvsum (max-height: 399px) {
  body:not(.mv) #bv-body .bv-sum2 { gap: 3px; padding-top: 6px; padding-bottom: 6px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-slab { height: 50px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b.gn { font-size: calc(12px + var(--bv-up2)); }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-score > b:not(.gn) { font-size: 22px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pillars { gap: 2px; max-height: 100px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-row { min-height: 20px; max-height: 24px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-pop div { padding: 3px 4px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos > span { padding-top: 3px; padding-bottom: 3px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-s2-cos.tops > span { padding-top: 5px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-boardlink { height: 22px; min-height: 22px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-graded { padding: 2px 8px; }
  body:not(.mv) #bv-body .bv-sum2 .bv-gg { font-size: 17px; }
}
/* ===== /ROUND 298 ===== */

/* ===== ROUND 299 (operator 2026-11-13): the A4's PRE-GRADED THROUGH A SLAB warning in its page-3 notes — the slab gold on a pale band ===== */
.jr-notes p.jr-cav { margin-top: 6px; padding: 5px 8px; border-left: 3px solid #ab9b6f; background: #f7f3e6; color: #4a4536; }
.jr-notes p.jr-cav b { font-size: 9.5px; letter-spacing: .6px; color: #6e5d2c; }
/* ===== /ROUND 299 ===== */
/* ===== ROUND 307: QUOTE — under each order IN PROGRESS and COMPLETED (js/app.js quoteRow), the staff's bill in its pop-up (js/quote.js) ===== */
.ord-quote { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 6px 8px 6px 10px; border: 1px solid #262626; border-radius: 8px; background: #141414; }
.ord-quote .k { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: #9cc3e8; white-space: nowrap; }
.ord-quote b { font-size: 13px; color: #f2f2f2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord-quote .w { font-size: 11.5px; color: #b5b5b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ord-quote .w.due { color: #f0d58a; }
.ord-quote .ord-qbtn { margin-left: auto; flex: 0 0 auto; min-height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid #2f6fb3; background: #17324a; color: #cfe6ff; font-size: 11px; font-weight: 700; letter-spacing: 1px; box-shadow: none; background-image: none; text-shadow: none; }
.ord-quote .ord-qbtn:hover { background: #1f4466; color: #fff; }
#view-home .ord-col .ord-card .ord-quote { background: #171717; }
.ord-card.collapsed .ord-quote { display: none; }
/* the pop-up */
.oq-win { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); gap: 10px; }
.oq-wait { margin: 0; padding: 18px 2px; font-size: 13px; color: #a6a6a6; }
.oq-seen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: #171717; border: 1px solid #2c2c2c; }
.oq-k { margin-right: 4px; font-size: 10px; letter-spacing: 1.2px; color: #8f8f8f; }
.oq-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 7px; border-radius: 4px; border: 1px solid #3a3a3a; background: #1e1e1e; }
.oq-chip b { font-size: 12.5px; color: #f2f2f2; font-variant-numeric: tabular-nums; }
.oq-chip i { font-style: normal; font-size: 10px; letter-spacing: .8px; color: #bdbdbd; }
.oq-chip.oq-cslab { border-color: #6b5a26; background: #2e2410; }
.oq-chip.oq-cslab i, .oq-chip.oq-cslab b { color: #d8c89a; }
.oq-chip.oq-chold { border-color: #2f6fb3; background: #142636; }
.oq-chip.oq-chold i, .oq-chip.oq-chold b { color: #cfe6ff; }
.oq-src { margin-left: auto; font-size: 10px; letter-spacing: .8px; color: #8f8f8f; }
.oq-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.oq-g { padding: 9px 10px; border-radius: 8px; background: #171717; border: 1px solid #2c2c2c; }
.oq-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.oq-gh b { font-size: 11px; letter-spacing: 1.4px; color: #d9d9d9; }
.oq-gs { font-size: 13px; color: #f2f2f2; font-weight: 600; font-variant-numeric: tabular-nums; }
.oq-g[data-g="off"] .oq-gs, .oq-g[data-g="off"] .oq-amt { color: #7ED4A6; }
.oq-row, .oq-cols { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) 64px 92px 104px 30px; gap: 6px; align-items: center; }
.oq-cols { margin-bottom: 3px; }
.oq-cols span { font-size: 9px; letter-spacing: 1px; color: #8f8f8f; white-space: nowrap; }
.oq-cols span:nth-child(3), .oq-cols span:nth-child(4), .oq-cols span:nth-child(5) { text-align: right; }
.oq-row + .oq-row { margin-top: 5px; }
.oq-row select, .oq-row input { width: 100%; height: 34px; min-width: 0; box-sizing: border-box; border-radius: 7px; border: 1px solid #333; background: #111; color: #eee; padding: 0 8px; font: inherit; font-size: 12.5px; }
.oq-row select:focus, .oq-row input:focus { outline: none; border-color: #6a6a6a; }
.oq-row input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; padding-right: 6px; }
.oq-row input:disabled { color: #6f6f6f; background: #161616; }
.oq-row input.hand { border-color: #ab9b6f; color: #f0e2b6; }
.oq-each { position: relative; display: block; }
.oq-each.pct::after { content: '%'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #8f8f8f; pointer-events: none; }
.oq-each.pct input { padding-right: 22px; }
.oq-amt { text-align: right; font-size: 13px; color: #f2f2f2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oq-drop { width: 30px; height: 30px; padding: 0; border-radius: 7px; border: 1px solid #3a3a3a; background: #1b1b1b; color: #bdbdbd; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.oq-drop:hover { border-color: #DC4F4C; color: #fff; }
.oq-more { margin-top: 8px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px dashed #4a4a4a; background: none; color: #bdbdbd; font: inherit; font-size: 11px; letter-spacing: .8px; cursor: pointer; }
.oq-more:hover { border-color: #7F7F7F; color: #fff; }
.oq-note { display: flex; }
.oq-note textarea { min-height: 52px; font-size: 12.5px; }
.oq-sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 9px 10px; border-radius: 8px; background: #111; border: 1px solid #333; }
.oq-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.oq-fig span { font-size: 9px; letter-spacing: 1px; color: #8f8f8f; white-space: nowrap; }
.oq-fig b { font-size: 14px; color: #f2f2f2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oq-fig.off b { color: #7ED4A6; }
.oq-fig.tot b { font-size: 18px; color: #fff; }
.oq-fig.due b { color: #f0d58a; }
.oq-fig.back b { color: #ff9c98; }
.oq-fig.paid input { width: 100%; height: 30px; box-sizing: border-box; border-radius: 7px; border: 1px solid #333; background: #1a1a1a; color: #eee; padding: 0 6px; font: inherit; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.oq-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oq-msg { margin-left: auto; font-size: 11.5px; color: #a6a6a6; }
.oq-msg.ok { color: #7ED4A6; }
@media (max-width: 760px) {
  .oq-cols { display: none; }
  .oq-row { grid-template-columns: minmax(0, 1fr) 64px 92px 30px; }
  .oq-row select { grid-column: 1 / -1; }
  .oq-row .oq-amt { grid-column: 1 / 4; }
  .oq-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ===== /ROUND 307 ===== */

/* ============ ROUND 308 — SETTINGS → Label printer → PRINTERS: BLACK/PRINT and WHITE/PRINT by serial, each label assigned to one; the PRINTER pop-up names it ============ */
.lbl-prn { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 8px; background: #101010; border: 1px solid #262626; }
.lbl-prn:empty { display: none; }
.lbl-prn.busy { opacity: .65; }
.lbl-prn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lbl-prn-head > b { margin-right: auto; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; color: #d9d9d9; }
.lbl-prn-head .niim-turn { height: 24px; }
#view-settings .lbl-prn-head .st-btn { height: 24px; min-height: 0; margin: 0; padding: 0 10px; }
.lbl-prn-dev { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 2px 8px; align-items: center; }
.lbl-prn-dev > b { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: #e6c48d; white-space: nowrap; }
#view-settings .lbl-prn-dev select { width: 100%; min-width: 0; height: 26px; box-sizing: border-box; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: #1b1b1b; color: #f2f2f2; font-size: 12px; font-variant-numeric: tabular-nums; }
.lbl-prn-dev > em { grid-column: 2; font-style: normal; font-size: 9.5px; letter-spacing: .8px; color: #8a8a8a; overflow-wrap: anywhere; }
.lbl-prn-dev > em.ok { color: #7ED4A6; }
.lbl-prn-dev > em.warn { color: #E8B44A; }
.lbl-prn-dev > em.bad { color: #ff8a87; }
.lbl-prn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 78px 78px; gap: 3px 6px; align-items: center; margin-top: 4px; padding-top: 8px; border-top: 1px solid #222; }
.lbl-prn-grid > i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #8a8a8a; text-align: center; white-space: nowrap; }
.lbl-prn-k { display: flex; align-items: center; min-width: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-settings .lbl-prn-grid button { display: flex; align-items: center; justify-content: center; height: 22px; min-height: 0; margin: 0; padding: 0; border-radius: 5px; border: 1px solid var(--line); background: #1b1b1b; cursor: pointer; }
#view-settings .lbl-prn-grid button:hover { background: #262626; }
#view-settings .lbl-prn-grid button.on { border-color: #c79d5e; background: #0d0d0d; }
.lbl-prn-grid button i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #5f5f5f; box-sizing: border-box; }
.lbl-prn-grid button.on i { background: #c79d5e; border-color: #c79d5e; }
#view-settings .lbl-prn .st-help { margin: 4px 0 0; }
.lbl-prn-need { color: #E8B44A; }
.lbl-prn-need code { display: block; margin: 5px 0; padding: 6px 8px; border-radius: 6px; background: #0b0b0b; border: 1px solid #2c2c2c; color: #e6e6e6; font: 11.5px Consolas, 'Courier New', monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.nm-sw.c-vd { background: linear-gradient(135deg, #f3f2ee 0 52%, #DC4F4C 52% 100%); }
#niim-route { min-width: 0; font-size: 11px; letter-spacing: .6px; color: #bdbdbd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#niim-route b { font-weight: 700; letter-spacing: 1.2px; color: #e6c48d; }
#niim-route em { font-style: normal; color: #8f8f8f; font-variant-numeric: tabular-nums; }
#niim-route span { color: #8f8f8f; }

/* ROUND 313: the order card — the BLM# the one field typed (the name and email read-only, from its account), VERIFIED where NOTIFY was;
   EST. ORDER VALUE on the RESULTS LINK row; the QUOTE line's payment chip and its QUOTED (yellow) · PAID (green) button */
.ord-in.ord-ro { color: #cfcfcf; cursor: default; }
.ord-in.ord-ro:focus { border-color: #333; }
.ord-ver { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 26px; padding: 0 10px; border: 1px solid #333; border-radius: 6px;
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #7f7f7f; white-space: nowrap; }
.ord-ver.ok { background: #12261a; border-color: #2a5a3a; color: #7ED4A6; }
.ord-ver.warn { background: #2a2410; border-color: #6b5a1e; color: #f0d58a; }
#view-home .ord-card .ord-ver { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 11.5px; letter-spacing: .9px; }
#ord-detail .ord-ver { font-size: calc(10px + 2pt); }
.ord-reveal { flex-wrap: wrap; row-gap: 4px; }
.ord-est { display: inline-flex; align-items: baseline; gap: 6px; margin-left: auto; white-space: nowrap; }
.ord-est + .ord-revbtn { margin-left: 0; }
.ord-est .k { color: #d8c89a; }
.ord-est b { font-size: 13px; font-weight: 600; color: #f2f2f2; font-variant-numeric: tabular-nums; }
.ord-quote .ord-qpay { flex: 0 0 auto; padding: 2px 7px; border: 1px solid #333; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.ord-quote .ord-qpay.ok { background: #12261a; border-color: #2a5a3a; color: #7ED4A6; }
.ord-quote .ord-qpay.warn { background: #2a2410; border-color: #6b5a1e; color: #f0d58a; }
.ord-quote .ord-qbtn.quoted { border-color: #c9a227; background: #3a2f10; color: #f0d58a; }
.ord-quote .ord-qbtn.quoted:hover { background: #4a3c14; color: #fff; }
.ord-quote .ord-qbtn.paid { border-color: #2f8a55; background: #12301e; color: #7ED4A6; }
.ord-quote .ord-qbtn.paid:hover { background: #1a4029; color: #fff; }

/* ROUND 315: a card ALTERED or of QUESTIONABLE AUTHENTICITY — BLACKVAULT's SUMMARY says so under its badge; an altered card's centering as measured */
.bv-s2-score small.bv-s2-vdnote { white-space: normal; letter-spacing: .3px; line-height: 1.4; color: #a6a6a6; font-size: calc(11px + var(--bv-up)); max-width: 34ch; }
#bv-body .bv-sum2 .bv-s2-row.vd.vd, .bv-s2-row.vd.vd { grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr); }   /* over the pillars' five columns (the round 224 block and its media queries) */
.bv-s2-row.vd .cr { font-size: calc(12px + var(--bv-up)); color: #a6a6a6; letter-spacing: .6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bv-s2-row.vd .cr b { color: #f2f2f2; font-weight: 700; margin-left: 4px; }
.bv-s2-row.vd .cr.muted { color: #7f7f7f; }

/* ROUND 316: the A4 of a card ALTERED or of QUESTIONABLE AUTHENTICITY — VERDICT where POPULATION stands */
.jr-vd { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 150px; margin-top: 12px; padding: 4px 4px 6px; background: #fff; text-align: center; }
.jr-vd b { font-size: 15px; font-weight: 700; letter-spacing: 1.2px; color: #DC4F4C; line-height: 1.15; }
.jr-vd i { font-style: normal; font-size: 10.5px; color: #595959; line-height: 1.35; }

/* ROUND 320 (operator 2026-11-18): MAP INSPECT's DEFECT TYPE — PRINT DEFECT in pink neon, SLAB DEFECT in turquoise neon: a dark face with the colour's
   edge and ink at rest, lit in the colour when armed (as CENTERING's ALTERED button) */
#view-ai .ai-types .btn[data-type="printdefect"] { border-color: #a3337f; color: #ff6fd8; }
#view-ai .ai-types .btn[data-type="printdefect"]:hover:not(.on) { background: #3a1430; color: #ff9ae4; }
#view-ai .ai-types .btn[data-type="printdefect"].on { background: #ff3fc8; border-color: #ff8ae0; color: #141414; box-shadow: 0 0 0 1px rgba(255, 63, 200, .35), 0 0 14px rgba(255, 63, 200, .35); }
#view-ai .ai-types .btn[data-type="slab"] { border-color: #1d8f87; color: #3ff5e3; }
#view-ai .ai-types .btn[data-type="slab"]:hover:not(.on) { background: #0f3330; color: #8afff3; }
#view-ai .ai-types .btn[data-type="slab"].on { background: #2ff0dc; border-color: #8afff3; color: #141414; box-shadow: 0 0 0 1px rgba(47, 240, 220, .35), 0 0 14px rgba(47, 240, 220, .35); }

/* ===== ROUND 331 (2026-11-18) — CENTERING's camera panel in MAP INSPECT's format =====
   (operator: 'Make the Camera Settings in Centering the same as Full-Map Inspection … the toggle SCOPE / STAGE within the new Camera
   Settings section, below the live view'). SCOPE · STAGE over the IMAGE ADJUSTMENT | CAMERA SETTINGS tabs; the column runs to the foot of
   the row and the panel takes what the Live View leaves (its tab body scrolls only when the window is short); folded = the switches and the
   tab row. While the panel is open the Live View gives it room on a short window (1366 × 768); folded, the old size */
#view-job .jb-col:has(> #jb-cam-mini) { align-self: stretch; min-height: 0; }
#view-job .jb-col:has(> #jb-cam-mini:not(.folded)) .jb-livebox { height: min(calc((var(--jb-c-live) - 40px) * 16 / 9), max(calc(100vh - 490px), 280px)); }
#view-job #jb-cam-mini { flex: 1 1 auto; min-height: 0; margin: 0; padding: 7px 8px 8px; display: flex; flex-direction: column; container: jbtabs / inline-size; }
#view-job #jb-cam-mini.folded { flex: 0 0 auto; }
#view-job #jb-cam-mini.folded .ai-tabbody { display: none; }
#view-job .jb-sws { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
#view-job .jb-sws .ai-sw { height: 24px; padding: 0 8px; gap: 5px; }
#jb-stage.ai-sw.on { border-color: #2a7a3e; }
#jb-stage.ai-sw.on i { background: #2a7a3e; }
#view-job #jb-cam-mini .ai-tabs { min-width: 0; overflow: hidden; }
#view-job #jb-cam-mini .ai-tabs .ai-tabsfold { flex: 0 0 auto; width: 22px; height: 24px; padding: 0; font-size: 11px; }
#view-job #jb-cam-mini .ai-tabs button[data-jbtab] { flex: 1 1 auto; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; letter-spacing: .5px; }
/* IMAGE ADJUSTMENT: two columns, each slider's name and value over it, RESET in the last cell */
#view-job .ai-adj.jb-adj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; }
#view-job .ai-adj.jb-adj label { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 11px 12px; align-items: center; column-gap: 4px; row-gap: 0; min-width: 0; min-height: 0; }
#view-job .ai-adj.jb-adj i { line-height: 11px; text-overflow: ellipsis; }
#view-job .ai-adj.jb-adj b { line-height: 11px; }
#view-job .ai-adj.jb-adj input { grid-column: 1 / -1; height: 12px; margin: 0; }
#view-job .jb-adj .jb-adjreset { align-self: end; height: 20px; margin: 0; padding: 0 8px; font-size: 9px; letter-spacing: 1px; }
/* the adjusted picture over the live video: the video's own place, turn and zoom; the grid and the tags stay above it */
.jb-livebox canvas.jb-lvf { position: absolute; left: 50%; top: 50%; pointer-events: none;
  transform: translate(var(--lvx, 0px), var(--lvy, 0px)) translate(-50%, -50%) rotate(270deg) scale(var(--lvz, 1)); }
.jb-livebox canvas.jb-lvf[hidden] { display: none; }
/* CAMERA SETTINGS: the shared stack's sliders in one column (the panel is ~250 px wide), the Camera card hidden (SCOPE switches the
   camera), Match Windows · HOLD 30 FPS on a row at the top */
#view-job .jb-cambody #cam-stack { gap: 0; }
#view-job .jb-cambody #cap-cam-card { display: none; }
#view-job .jb-cambody #cap-uvc-card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
#view-job .jb-cambody #cap-uvc-card > .card-head,
#view-job .jb-cambody #uvc-hold-note,
#view-job .jb-cambody #uvc-ratetest { display: none !important; }
#view-job .jb-cambody #cap-uvc-card .uvc-host { display: block; margin: 0; }
#view-job .jb-cambody #cap-uvc-card .uvc-grp { display: block; }
#view-job .jb-cambody #cap-uvc-card .uvc-grp > * { margin-bottom: 3px; }
#view-job .jb-cambody #cap-uvc-card .uvc-host > p { margin: 4px 0 0; }
#view-job .jb-cambody #cap-uvc-card .uvc-row { grid-template-columns: 70px minmax(0, 1fr) 42px; gap: 4px; min-height: 17px; }
#view-job .jb-cambody #cap-uvc-card .uvc-lbl { font-size: 8.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-2); font-weight: 400; }
#view-job .jb-cambody #cap-uvc-card .uvc-row input[type=range] { height: 10px; }
#view-job .jb-cambody #cap-uvc-card .uvc-val { font-size: 9.5px; font-weight: 400; }
#view-job .jb-cambody #cap-uvc-card .uvc-sec { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px; align-items: center; min-height: 17px; margin: 0; padding: 0; border: 0; }
#view-job .jb-cambody #cap-uvc-card .uvc-sec-t { font-size: 8.5px; letter-spacing: 1px; color: #d8c89a; font-weight: 700; line-height: 1; }
#view-job .jb-cambody #cap-uvc-card .uvc-mode { width: 100%; min-width: 0; max-width: none; height: 17px; padding: 0 4px; font-size: 9px; border-radius: 4px; }
#view-job .jb-cambody #cap-uvc-card :is(.uvc-save, .uvc-bool) { justify-self: start; height: 17px; padding: 0 8px; font-size: 8px !important; border-radius: 4px; }
#view-job .jb-cambody #cap-uvc-card .uvc-sec:has(.uvc-mode) :is(.uvc-save, .uvc-bool) { grid-column: 2; }
#view-job .jb-camtools { margin-bottom: 6px; }
#view-job .jb-camtools .uvc-foot { display: flex; align-items: center; gap: 6px; margin: 0; flex-wrap: nowrap; }
#view-job .jb-camtools #btn-uvc-ratetest, #view-job .jb-camtools #uvc-foot-note { display: none; }
#view-job .jb-camtools .btn { flex: 1 1 0; min-width: 0; height: 20px; margin: 0; padding: 0 6px; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== /ROUND 331 ===== */
/* round 332: TEST 4K PHOTO lives on STAGE/CAM only, like Test frame rates */
:is(#view-ai, #view-job) :is(#btn-uvc-phototest, #uvc-phototest) { display: none !important; }
#uvc-phototest .rt-note a { color: #8fc4ff; }

/* ===== ROUND 361 (operator 2026-11-19): BLACKPORT's folders — the BLACKLENS folder first, the binders' folders marked BINDER ===== */
.pf-ftag { display: inline-block; margin-right: 7px; padding: 1px 5px; border-radius: 3px; font-style: normal; font-size: calc(9.5px * var(--pf-fs, 1)); font-weight: 700; letter-spacing: 1px; vertical-align: 1px; }
.pf-ftag.bl { background: #DC4F4C; color: #fff; }
.pf-ftag.bd { background: #2a2412; color: #d8c89a; border: 1px solid #5a4a20; }
#pf-flist > li.pf-fhead { display: block; padding: 10px 8px 3px; border-top: 0; font-size: calc(10.5px * var(--pf-fs, 1)); letter-spacing: 2px; color: #a6a6a6; cursor: default; }
#pf-flist > li.pf-fhead:hover { background: none; }
#pf-flist > li.pf-fbind { background: #1a1813; }
#pf-flist > li.pf-fbind:hover { background: #221f16; }
/* ===== /ROUND 361 ===== */

/* ===== ROUND 362: a CENTERING step whose side has no report picture (never made, or cleared by a turn / Auto Align / exposure) ===== */
.jf-track li.need .jf-st i { background: #3a2a10; border-color: #e0a03c; color: #ffcf7a; }
.jf-track li.need .jf-st em, .jf-track li.need .jf-st b { color: #e0a03c; }
/* ===== /ROUND 362 ===== */
