/* mlib.css: Machines (Phase 2, 18 Nov 2026), the look he approved on 18 Nov (machine-library/crm/mlb.css).
   The prototype's rules come across in their own order, each behind :where(#view-machines, #mlbPanel, .mlb-host), so
   none weighs more than it did there and none reaches another screen. The prototype's copy of the shell (top bar, rail,
   side column frame) is left out: the CRM's own shell holds the screen. The last block fits it into that shell.
   Ported once by a script (18 Nov 2026); edited by hand from here on.
   Three roots: #view-machines (the page), #mlbPanel (the machine list, lent to the side column by topbar.js WIRED.machines),
   .mlb-host (the body-level hosts of its pop-ups, Kit.box). All three carry .kt .sp so the parts kit reaches them. */
/* ---- shell colours, read off the live CRM (as cust.css) ---- */
#view-machines, #mlbPanel, .mlb-host {
  --sh-ground: #ecedec; --sh-rail: #1b1a18; --sh-rail-ink: #93918a; --sh-side: #fbfbfa; --sh-edge: #e4e4e1;
  --sh-on: #f6e3e4; --sh-on-ink: #111114; --sh-shadow: 0 1px 2px rgba(20, 18, 16, .05);
  --mlb-field: var(--sp-wash); --mlb-stage: #f1f1f3; --mlb-hover: var(--sp-wash);
}
:root[data-theme="dark"] #view-machines, :root[data-theme="dark"] #mlbPanel, :root[data-theme="dark"] .mlb-host { --sh-ground: #131211; --sh-rail: #0d0c0b; --sh-rail-ink: #8d8b85; --sh-side: #1c1b19; --sh-edge: #2c2b29; --sh-on: #3a1d20; --sh-on-ink: #f3f3f5; --sh-shadow: none; --mlb-field: #26262c; --mlb-stage: #24242a; --mlb-hover: #222228; }
/* 18 Nov: no prefers-color-scheme block here. The CRM is dark ONLY when html[data-theme="dark"] (like lt-*.css);
   following the laptop's setting made the search box, chosen row and photo stage dark inside the light CRM. */
:where(#view-machines, #mlbPanel, .mlb-host) [hidden] { display: none !important; }
/* top bar */
/* rail */
/* ---- side column: the machine list (folds away, his rule) ---- */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search { position: relative; flex: none; margin: 0 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search input { width: 100%; height: 38px; padding: 0 36px; border: 1px solid transparent; border-radius: 10px; background: var(--mlb-field); color: var(--sp-ink); font: inherit; font-size: 15px; outline: none; transition: border-color 120ms ease, background-color 120ms ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search input::placeholder { color: var(--sp-grey); opacity: 1; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search input:focus { border-color: var(--sp-line); background: var(--sp-bg); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search input::-webkit-search-cancel-button { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search .ic { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; fill: none; stroke: var(--sp-grey); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search .x { position: absolute; right: 3px; top: 3px; width: 32px; height: 32px; border-radius: 8px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-search .x svg { width: 16px; height: 16px; }
/* the two filters: quiet words, a soft ground on hover (the Customers toolbar look) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt { position: relative; z-index: 5; flex: none; display: flex; gap: 2px; padding: 8px 10px 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po { width: auto; font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 0; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--sp-grey); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color 120ms ease, color 120ms ease, transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-btn:active { transform: scale(.97); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-btn:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; box-shadow: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po.is-open .po-btn { background: var(--mlb-field); color: var(--sp-ink); }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-btn:hover { background: var(--mlb-field); color: var(--sp-ink); }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-val.is-empty { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-chev { width: 14px; height: 14px; stroke: currentColor; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po.has-val .po-btn { color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po.has-val .ti-lab { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po.has-val .po-val { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-pop { left: 0; top: calc(100% + 6px); min-width: 220px; transform-origin: top left; }
/* the phone list's Brand and Type (fixes 19 Nov): inside a box the kit floats the list (k-float, min-width 0); it keeps its width */
:where(.mlb-host) .mlb-pfilt .po .po-pop.k-float { min-width: 220px; }
:where(.mlb-host) .mlb-pfilt { padding: 8px 0 2px; }
/* "did you mean" under a list's "Add brand X" while the name is typed (fixes 19 Nov) */
:where(.mlb-host) .mlb-podym { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 10px 8px; }
:where(.mlb-host) .mlb-podym[hidden] { display: none; }
:where(.mlb-host) .mlb-podym .mlb-dym-q { margin: 0 4px 0 0; color: var(--sp-grey); font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-list li[role="option"] { font-size: 14px; min-height: 36px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-name { flex: 1; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cnt { margin-left: 16px; color: var(--sp-grey); font-size: 14px; font-variant-numeric: tabular-nums; }
/* the list */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px 8px 16px; scrollbar-width: none; /* 19 Nov: his "hide it completely": wheel and touchpad still scroll */ }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list::-webkit-scrollbar { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-gh { margin: 14px 12px 4px; font-size: 14px; font-weight: 500; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-gh:first-child { margin-top: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: 12px; width: 100%; min-height: 56px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--sp-ink); font: inherit; text-align: left; cursor: pointer; z-index: 1; transition: transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li:active { transform: scale(.985); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li[aria-current="page"] { background: var(--sh-on); color: var(--sh-on-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li[aria-current="page"] .mlb-li-n { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-th { position: relative; display: grid; place-items: center; width: 52px; height: 40px; border-radius: 8px; background: var(--mlb-stage); overflow: hidden; }
/* the picture fills the box itself (18 Nov): as a grid item its height:100% never reached the box, so in a wide box
   (Compare) it took its own height at full width and the box cut the machine's top and bottom off */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-th b { font-size: 14px; font-weight: 600; color: var(--sp-grey); letter-spacing: .01em; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li-t { display: grid; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li-n { font-size: 15px; line-height: 1.3; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li-s { font-size: 14px; line-height: 1.3; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li[aria-current="page"] .mlb-li-s { color: color-mix(in srgb, var(--sh-on-ink) 70%, transparent); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list.k-glide .k-hl { border-radius: 10px; background: var(--mlb-hover); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-empty { display: grid; justify-items: start; gap: 10px; padding: 16px 14px; color: var(--sp-grey); }
/* ---- the working area ---- */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pg { display: flex; flex-direction: column; height: 100%; min-height: 0; }
/* head: name 28, one grey line, codes small; extras on the right */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hd { flex: none; display: flex; align-items: flex-start; gap: 20px; padding: 22px 28px 18px; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hw { flex: 1; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-t { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hm { margin: 6px 0 0; font-size: 15px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hc { min-height: 21px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 14px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-h-c { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ha { flex: none; display: flex; align-items: center; gap: 8px; padding-top: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hpick { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1.08fr); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-stage { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 26px 32px 28px; border-right: 1px solid var(--sp-rule); scrollbar-width: thin; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-facts { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* the machine, big */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-photo { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; border-radius: 12px; background: var(--mlb-stage); overflow: hidden; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-photo img { width: 88%; height: 88%; object-fit: contain; display: block; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-photo .mlb-none { font-size: 28px; font-weight: 700; color: var(--sp-grey); letter-spacing: -.01em; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sum { margin: 20px 0 0; font-size: 15px; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sec { margin-top: 26px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sec-h { display: flex; align-items: center; gap: 10px; min-height: 28px; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sec-h .mlb-q { margin-left: auto; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--sp-soft); color: var(--sp-grey); font-size: 14px; font-weight: 500; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vr { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); column-gap: 16px; align-items: baseline; min-height: 40px; padding: 9px 0; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vr:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vr-n { font-weight: 600; font-variant-numeric: tabular-nums; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vr-t { color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-for { margin: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-later { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 10px; background: var(--sp-wash); color: var(--sp-grey); }
/* tabs */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs { position: sticky; top: 0; z-index: 3; padding: 4px 16px 0; background: var(--sp-bg); border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs .tb-list { gap: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs .tb-tab { font-size: 15px; min-height: 48px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs .tb-w { display: inline-grid; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs .tb-w::after { content: attr(data-t); grid-area: 1 / 1; height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp { padding: 6px 28px 40px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp:focus { outline: none; }
/* quiet text buttons (Edit, This is wrong, Put back) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-q { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--sp-grey); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color 120ms ease, color 120ms ease, transform 140ms var(--sp-ease-out), opacity 140ms ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-q:active { transform: scale(.97); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-q:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-q:hover { background: var(--sp-soft); color: var(--sp-ink); }
}
/* specs: label | value + unit | hover actions over the right end */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-specs { margin-top: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-row { position: relative; display: grid; grid-template-columns: minmax(130px, 36%) minmax(0, 1fr) 40px; align-items: center; column-gap: 16px; min-height: 50px; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-k { font-size: 15px; color: var(--sp-grey); line-height: 1.3; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-v { display: flex; align-items: center; gap: 8px; min-width: 0; height: 50px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-val { font-size: 15px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-u { flex: none; font-size: 14px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-nil { color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-v.is-ed { cursor: text; border-radius: 8px; margin-left: -8px; padding-left: 8px; transition: background-color 120ms ease; }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-v.is-ed:hover { background: var(--sp-wash); }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-acts { display: flex; justify-content: flex-end; opacity: 0; transition: opacity 120ms ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-acts:has(.is-open) { opacity: 1; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-acts .k-ic { color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-acts .k-fan-acts { position: absolute; right: 40px; top: 50%; translate: 0 -50%; padding: 3px; border-radius: 999px; background: var(--sp-bg); box-shadow: 0 8px 22px rgba(17, 17, 20, .14), 0 0 0 1px var(--sp-line); z-index: 3; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-row:hover .mlb-acts, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-row:focus-within .mlb-acts, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f:hover .mlb-acts, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f:focus-within .mlb-acts, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-note:hover .mlb-acts, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-note:focus-within .mlb-acts { opacity: 1; }
@media (hover: none) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-acts { opacity: 1; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-flag { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 0; border-radius: 999px; background: var(--sp-warn-bg); color: var(--sp-warn); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-flag:active { transform: scale(.95); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-flag:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
/* edit in place: same row height, the unit stays where it was */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-v.is-editing { grid-column: 2 / 4; gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-in { flex: 1; width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--sp-grey); border-radius: 8px; background: var(--sp-bg); color: var(--sp-ink); font: inherit; font-size: 15px; outline: none; box-shadow: 0 0 0 3px var(--sp-soft); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-row .mlb-save { flex: none; display: flex; gap: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-save .k-ic { width: 36px; height: 36px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-save .mlb-yes { background: var(--sp-ink); color: var(--sp-bg); }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-save .k-ic:not(.mlb-yes):hover { background: var(--sp-soft); color: var(--sp-ink); }
}
/* Sales */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts { margin: 0; padding: 0; list-style: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--sp-rule); line-height: 1.45; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts li:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--sp-line); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts.is-good li::before { background: var(--sp-ok); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts.is-bad li::before { background: var(--sp-warn); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cmp { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); column-gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cmp:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cmp b { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cmp span { color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-area { display: block; width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid var(--sp-grey); border-radius: 10px; background: var(--sp-bg); color: var(--sp-ink); font: inherit; font-size: 15px; line-height: 1.5; resize: none; outline: none; box-shadow: 0 0 0 3px var(--sp-soft); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-edbar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
/* Floor notes */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add { display: flex; align-items: flex-end; gap: 8px; margin: 12px 0 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add textarea { flex: 1; min-height: 44px; height: 44px; max-height: 160px; padding: 10px 14px; border: 1px solid var(--sp-line); border-radius: 12px; background: var(--sp-bg); color: var(--sp-ink); font: inherit; font-size: 15px; line-height: 1.45; resize: none; outline: none; transition: border-color 120ms ease, box-shadow 120ms ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add textarea:focus { border-color: var(--sp-grey); box-shadow: 0 0 0 3px var(--sp-soft); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add textarea::placeholder { color: var(--sp-grey); opacity: 1; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-note { position: relative; padding: 14px 0; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-note:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-note p { margin: 0; line-height: 1.5; text-wrap: pretty; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-nm { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-top: 6px; font-size: 14px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--sp-ok); font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-note { padding-right: 44px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-note .mlb-acts { position: absolute; right: 0; top: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-note .mlb-acts .k-fan-acts { top: 18px; }
/* Files: one-line rows, photos as pictures */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; column-gap: 12px; min-height: 52px; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-t { display: grid; min-width: 0; padding: 7px 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-n { font-size: 15px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-m { font-size: 14px; color: var(--sp-grey); font-variant-numeric: tabular-nums; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-a { display: flex; gap: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f .mlb-acts { justify-self: end; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-open { all: unset; display: grid; min-width: 0; cursor: pointer; border-radius: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-open:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-open:hover .mlb-f-n { text-decoration: underline; text-underline-offset: 3px; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; background: var(--mlb-stage); overflow: hidden; cursor: zoom-in; transition: transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pic:active { transform: scale(.97); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pic img { width: 86%; height: 86%; object-fit: contain; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pic:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fold { margin-top: 18px; }
/* History */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hr:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hr-w { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hr-c { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-old { color: var(--sp-grey); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--sp-grey) 70%, transparent); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-arrow { color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-new { }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hr-m { margin-top: 3px; font-size: 14px; color: var(--sp-grey); }
/* pop-ups (kit box in the middle, page out of focus) */
:where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-box { width: min(980px, 100%); }
:where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-mid .pp-box { width: min(640px, 100%); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fact { padding: 12px 14px; border-radius: 10px; background: var(--sp-wash); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fact b { display: block; font-size: 14px; font-weight: 500; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fl { display: grid; gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fl > span { font-size: 14px; font-weight: 500; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-two .po, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-fl .po { width: 100%; }
/* Compare */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cbar .st-row { margin: 0 0 0 auto; min-height: 44px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ctw { overflow-x: auto; border-top: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct td { padding: 12px 12px; border-bottom: 1px solid var(--sp-rule); text-align: left; vertical-align: middle; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct thead th { vertical-align: bottom; padding-top: 14px; font-weight: 400; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct .mlb-ck { width: 26%; color: var(--sp-grey); font-weight: 400; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ck small { display: block; font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct td { color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct tr.is-diff td { color: var(--sp-ink); font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct tr.is-diff th { color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct td .mlb-nil { font-weight: 400; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm { display: grid; gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm .mlb-th { width: 100%; height: 76px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-n { flex: 1; min-width: 0; font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-r .k-ic { width: 32px; height: 32px; flex: none; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-r .k-ic svg { width: 16px; height: 16px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cadd { width: 240px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cadd .po { width: 100%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cadd .po-btn { min-height: 44px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cadd .po-pop { min-width: 240px; }
/* deck / photo / film viewer */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-view { display: grid; gap: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: #fff; color: #111114; overflow: hidden; box-shadow: inset 0 0 0 1px var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide .s-in { position: absolute; inset: 0; display: grid; padding: 6% 7%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide .s-cover { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide .s-brand { font-size: clamp(12px, 1.6vw, 16px); color: #5f5f66; font-weight: 500; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide .s-name { margin: 6px 0 10px; font-size: clamp(22px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide .s-sub { font-size: clamp(12px, 1.5vw, 16px); color: #5f5f66; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide .s-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #d9252e; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide img { width: 100%; height: 100%; object-fit: contain; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide h4 { margin: 0 0 4%; font-size: clamp(16px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.01em; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide table { width: 100%; border-collapse: collapse; font-size: clamp(11px, 1.4vw, 15px); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide td { padding: 1.2% 0; border-bottom: 1px solid #e3e3e8; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide td:first-child { color: #5f5f66; width: 42%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-slide ul { margin: 0; padding-left: 1.2em; font-size: clamp(12px, 1.6vw, 17px); line-height: 1.6; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pager { display: flex; align-items: center; gap: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pager .k-ic { width: 40px; height: 40px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pager .k-ic:disabled { opacity: .35; cursor: default; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pn { min-width: 76px; font-size: 14px; color: var(--sp-grey); text-align: center; font-variant-numeric: tabular-nums; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-big { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--mlb-stage); overflow: hidden; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-big img { width: 90%; height: 90%; object-fit: contain; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-play { position: absolute; display: grid; place-items: center; width: 72px; height: 72px; border: 0; border-radius: 50%; background: rgba(17, 17, 20, .78); color: #fff; cursor: pointer; transition: transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-play:active { transform: scale(.95); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-play svg { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .pp-ft .mlb-grow { flex: 1; }
/* the side list as a box on a phone */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-plist .mlb-list { max-height: 60vh; padding: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-plist .mlb-search { margin: 0; }
/* ---- phone width: one column; the machine name opens the list ---- */
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-pg { overflow: auto; overscroll-behavior: contain; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hd { flex-wrap: wrap; padding: 16px 16px 14px; gap: 12px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-t { font-size: 24px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ht { display: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hpick { all: unset; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; cursor: pointer; border-radius: 8px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hpick:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hpick svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ha { width: 100%; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { display: block; flex: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-stage { overflow: visible; padding: 16px; border-right: 0; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-facts { overflow: visible; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs { padding: 0 4px; overflow-x: auto; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp { padding: 4px 16px 32px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-row { grid-template-columns: minmax(110px, 38%) minmax(0, 1fr) 44px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-cmp { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-two { grid-template-columns: 1fr; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-q { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-li, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-q, :where(#view-machines, #mlbPanel, .mlb-host) .k-btn { transition: none; }
}
/* the pills sit above the Tune button (design pages only carry it) */
/* ==== Try 1 (17 Nov 2026): key facts first. Big number, small quiet unit, small label; the full list quieter below. ==== */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hd.mlb-kf { display: block; padding: 22px 28px 20px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-top { display: flex; align-items: flex-start; gap: 20px; }
/* version pills: the chosen one wears the side list's chosen tint */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vh { margin-top: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp { display: flex; flex-wrap: wrap; gap: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--sp-rule); color: var(--sp-grey); font: inherit; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp button:active { transform: scale(.97); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp button[aria-checked="true"] { background: var(--sh-on); box-shadow: none; color: var(--sh-on-ink); font-weight: 600; cursor: default; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp button:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp button[aria-checked="false"]:hover { box-shadow: inset 0 0 0 1px var(--sp-line); color: var(--sp-ink); }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vnote { min-height: 20px; margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--sp-grey); }
/* the key facts: equal columns so a longer value never pushes its neighbour; hairlines between, no boxes */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 2px 18px 2px 18px; border-left: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf:first-child { padding-left: 0; border-left: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-l { font-size: 14px; font-weight: 500; color: var(--sp-grey); line-height: 20px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { display: flex; align-items: baseline; gap: 5px; min-width: 0; line-height: 1.1; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { min-width: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v .mlb-u { font-size: 15px; font-weight: 500; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v .mlb-nil { font-size: 15px; font-weight: 400; letter-spacing: 0; }
/* the full list is the quiet part now */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sh { margin: 18px 0 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp > .mlb-sh:first-child { margin-top: 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-row { min-height: 46px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-v { height: 46px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp-h { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the tap menu (touch) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rm { display: grid; gap: 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rm .k-btn { width: 100%; }
/* touch: no dots on rows; a tap opens the menu */
@media (hover: none) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-row { grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); cursor: pointer; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-row .mlb-acts, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-note .mlb-acts { display: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-note { padding-right: 0; }
}
/* phone: one long page, the sections in order, no tab bar */
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hd.mlb-kf { padding: 16px 16px 18px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-top { flex-wrap: wrap; gap: 12px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf:first-child { padding: 0 12px 0 0; border-left: 0; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { font-size: 26px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vp button { flex: none; height: 40px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs { display: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp[hidden] { display: block !important; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp-h { display: block; margin: 0; padding: 26px 16px 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; border-top: 1px solid var(--sp-rule); }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-facts .mlb-tp-h:first-of-type { border-top: 0; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-row { grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); }
}
/* ==== Try 1, all research points (17 Nov 2026) ==== */
/* the three files people ask for, under the codes */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hfiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hfiles:empty { display: none; }
/* key facts: big number, small joining word, small quiet unit */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { flex-wrap: nowrap; overflow: hidden; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v i { font-style: normal; font-size: 15px; font-weight: 500; color: var(--sp-grey); margin: 0 1px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { white-space: nowrap; }
/* the body: the machine a little narrower, the facts wider (the version table needs the room) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { grid-template-columns: minmax(0, .82fr) minmax(560px, 1.18fr); }
/* Specs: count and switch, what each version adds, the grouped table */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sbar { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fill { font-size: 14px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sbar .st-row { margin: 0 -10px 0 auto; min-height: 44px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-adds { display: grid; gap: 0; margin: 2px 0 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add-r { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 7px 0; font-size: 15px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add-r b { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add-r span { color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-stw { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st td { padding: 0 10px; border-bottom: 1px solid var(--sp-rule); text-align: left; vertical-align: middle; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st thead th { height: 52px; vertical-align: bottom; padding-bottom: 8px; font-weight: 600; font-size: 15px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st thead small { display: block; font-size: 14px; font-weight: 400; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sk { width: 34%; padding-left: 0; font-weight: 400; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk { width: 30%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sd { width: 40px; padding: 0; text-align: right; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-skl { display: block; color: var(--sp-ink); line-height: 1.3; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sks { display: block; font-size: 14px; color: var(--sp-grey); line-height: 1.3; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sg th { padding: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--sp-ink); border-bottom: 1px solid var(--sp-line); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow td { height: 54px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc { cursor: text; font-variant-numeric: tabular-nums; transition: background-color 120ms ease; }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc:not(.is-editing):hover { background: var(--sp-wash); }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc .mlb-val { display: inline-block; max-width: 100%; vertical-align: middle; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc.is-odd .mlb-val { padding: 1px 8px; border-radius: 6px; background: var(--sp-info-bg); color: var(--sp-info); font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow.is-diff .mlb-sc:not(.is-odd) .mlb-val { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc.is-editing { padding: 0 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc .mlb-in { height: 38px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc .mlb-flag { margin-left: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-acts { justify-content: flex-end; }
/* Compare: biggest differences first */
:where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-bd { gap: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 28px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-c { display: grid; gap: 6px; align-content: start; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-l { font-size: 15px; font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-l span { font-weight: 400; color: var(--sp-grey); font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-n { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-v { font-weight: 500; text-align: right; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-v.is-top { font-weight: 700; color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--sp-soft); overflow: hidden; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-bar i { display: block; height: 100%; border-radius: 999px; background: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bx-v.is-top + .mlb-bx-bar i { background: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct thead th { position: sticky; top: -6px; z-index: 2; background: var(--sp-bg); box-shadow: inset 0 -1px 0 var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cg th { padding: 20px 12px 8px; font-size: 14px; font-weight: 600; color: var(--sp-ink); border-bottom: 1px solid var(--sp-line); text-align: left; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct .mlb-cm .mlb-th { height: 64px; }
/* the jump row exists only on the long phone page */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-jump { display: none; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { font-size: 24px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { display: block; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-jump { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; background: var(--sp-bg); border-bottom: 1px solid var(--sp-rule); }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-jump button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--sp-wash); color: var(--sp-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-jump button:active { transform: scale(.97); }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st { min-width: 520px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk { position: sticky; left: 0; z-index: 1; background: var(--sp-bg); width: 132px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-stw { margin-right: -16px; padding-right: 16px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-add-r { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (hover: none) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sd { display: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc { cursor: pointer; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { grid-template-columns: minmax(0, .7fr) minmax(600px, 1.3fr); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk { width: 27%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sd { width: 36px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc { font-variant-numeric: normal; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st thead th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { flex: none; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { flex-wrap: wrap; row-gap: 2px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { font-size: 22px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st { min-width: 660px; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc .mlb-val { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
/* ==== Try 2 (17 Nov 2026): the brand references ==== */
/* one switch style on the page: grey strip, the chosen one on a white piece that slides (the CRM's office switch) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg { position: relative; display: inline-flex; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--sp-soft); overflow-x: auto; scrollbar-width: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg button { position: relative; z-index: 1; flex: none; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--sp-grey); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color 160ms ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg button[aria-checked="true"] { color: var(--sp-ink); font-weight: 600; cursor: default; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg button:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg button[aria-checked="false"]:hover { color: var(--sp-ink); }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg-k { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 999px; background: var(--sp-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .06); transition: transform 250ms var(--sp-ease-out), width 250ms var(--sp-ease-out); }
:root[data-theme="dark"] :where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg-k { background: #3d3d46; box-shadow: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-link { height: 36px; padding: 0 4px; border: 0; background: none; color: var(--sp-ink); font: inherit; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--sp-line); text-underline-offset: 4px; cursor: pointer; transition: text-decoration-color 140ms ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-link:hover { text-decoration-color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-link:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; border-radius: 4px; }
/* the version as a small boxed tag beside the name */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vtag { display: inline-block; margin-left: 12px; padding: 2px 9px; border: 1px solid var(--sp-line); border-radius: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.35; vertical-align: 5px; color: var(--sp-ink); }
/* key numbers: very large, light, a hairline under each, a small plain label, air around them */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hd.mlb-kf { padding-bottom: 30px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { gap: 0 40px; margin-top: 28px; align-items: end; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf:first-child { display: grid; gap: 0; padding: 0; border-left: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { flex-wrap: wrap; row-gap: 0; overflow: visible; padding-bottom: 12px; border-bottom: 1px solid var(--sp-line); line-height: 1.02; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { font-size: 44px; font-weight: 400; letter-spacing: -.035em; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v i { font-size: 18px; font-weight: 400; margin: 0 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v .mlb-u { font-size: 18px; font-weight: 400; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-l { order: 2; padding-top: 10px; font-size: 14px; font-weight: 400; color: var(--sp-grey); }
/* Why this machine: a few short tiles, one small red accent each */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-t { display: grid; gap: 12px; align-content: start; padding: 16px 16px 18px; border-radius: 12px; background: var(--sp-wash); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-t i { width: 18px; height: 2px; border-radius: 2px; background: var(--sp-red); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-t span { font-size: 15px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
/* the spec table, Apple-style: group name on the left, a column per version, hairlines, quiet small text */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { grid-template-columns: minmax(0, .62fr) minmax(640px, 1.38fr); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st { font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sgc { width: 92px; padding: 15px 12px 0 0; vertical-align: top; font-size: 15px; font-weight: 600; color: var(--sp-ink); border-bottom: 1px solid var(--sp-line); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st thead .mlb-sgc { border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sk { width: 24%; padding-left: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sgrp tr:last-child th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-sgrp tr:last-child td { border-bottom-color: var(--sp-line); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-skl { font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sks { font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow td { height: 50px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc .mlb-val { font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st thead th { font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .is-pick { background: color-mix(in srgb, var(--sh-on) 70%, transparent); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-dash { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--sp-grey); vertical-align: middle; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-add-r { font-size: 14px; padding: 5px 0; }
/* the quiet toggle */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-quiet .st-name { font-size: 14px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-quiet .st-track { transform: scale(.78); transform-origin: right center; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-quiet .st-in:checked + .st-track { background: var(--sp-ink); }
:root[data-theme="dark"] :where(#view-machines, #mlbPanel, .mlb-host) .mlb-quiet .st-in:checked + .st-track { background: #6b6b75; }
/* Compare: one big number per column */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-big { margin-top: 10px; line-height: 1.05; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-big b { font-size: 36px; font-weight: 400; letter-spacing: -.03em; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-big span { margin-left: 4px; font-size: 15px; font-weight: 400; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cm-bl { font-size: 14px; font-weight: 400; color: var(--sp-grey); }
/* the tab bar: the same pill switch */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs.mlb-pilltabs { padding: 14px 24px 12px; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-list { display: inline-grid; grid-auto-flow: column; gap: 0; padding: 3px; border-radius: 999px; background: var(--sp-soft); max-width: 100%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-tab { height: 34px; min-height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-tab[aria-selected="true"] { color: var(--sp-ink); font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-w::after { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-piece { border-radius: 999px; background: var(--sp-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .06); }
:root[data-theme="dark"] :where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-piece { background: #3d3d46; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-tab[aria-selected="false"]:hover { color: var(--sp-ink); }
}
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { gap: 18px 20px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { font-size: 32px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-g { grid-template-columns: 1fr 1fr; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sgc { width: 84px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st { min-width: 720px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk { left: 0; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vtag { font-size: 14px; vertical-align: 3px; }
}
/* no bounce anywhere, his rule (Zen touchpad bounced inside contain scrollers).
   23 Nov, matched to the shared rule in app.css: 'none' on any box (even a clip box) kills the wheel over it in every
   engine, Firefox/Zen too, so only the real up-down columns get 'none'. */
:where(#view-machines, #mlbPanel, .mlb-host) :is(.mlb-list, .mlb-stage, .mlb-facts, .mlb-pg, .mlb-rcbd),
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-upbox .pp-bd { overscroll-behavior: none !important; }
/* 20 Nov, his "why cant i use scroll wheel in this area": 'none' on a sideways box also stops the wheel from passing
   up to the column behind it (the spec table, the tabs row). These boxes only slide sideways, so up/down passes on;
   the columns that really scroll keep 'none', so nothing bounces. */
:where(#view-machines, #mlbPanel, .mlb-host) :is(.mlb-stw, .mlb-ctw, .mlb-tabs, .mlb-vp, .mlb-jump, .mlb-seg, .tb-list, .tb) { overscroll-behavior-y: auto !important; }
/* a machine with versions keeps two lines for its key numbers, so picking a version never moves the page */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v { min-height: calc(44px * 1.02 * 2 + 12px); align-content: flex-end; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v { min-height: calc(32px * 1.02 * 2 + 12px); }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { line-height: 46px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v { min-height: 104px; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { line-height: 34px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v { min-height: 80px; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { display: flex; flex-direction: column; justify-content: flex-end; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-x { display: block; white-space: normal; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v i, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v .mlb-u { display: inline; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v .mlb-dash { display: inline-block; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-x i, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-x .mlb-u { line-height: 1; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v { min-height: 108px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { align-items: flex-start; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v { flex-wrap: nowrap; align-content: normal; align-items: flex-start; }
/* ==== Try 3 (17 Nov 2026): denser, a working screen. Compact head, one-line key numbers, the big machine back ==== */
/* head */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hd.mlb-kf { padding: 16px 24px 16px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-top { align-items: center; gap: 16px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-trow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-t { font-size: 24px; line-height: 1.2; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-trow .mlb-hfiles { margin: 0; gap: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hfiles .k-btn.k-sm { min-height: 32px; padding: 0 12px; font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hm { margin-top: 4px; font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hm .mlb-h-c { font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hc { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vtag { font-size: 14px; padding: 1px 8px; margin-left: 10px; vertical-align: 3px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vrow { margin-top: 12px; gap: 8px 16px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg { padding: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg button { height: 30px; padding: 0 13px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-seg-k { top: 2px; bottom: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-link { height: 30px; font-size: 14px; }
/* key numbers: one line each, light, a hairline under, label below */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { margin-top: 14px; gap: 0 32px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { min-height: 0; padding-bottom: 6px; line-height: 36px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-x { display: inline; white-space: nowrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { font-size: 30px; font-weight: 400; letter-spacing: -.025em; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v .mlb-u { font-size: 15px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-l { padding-top: 6px; font-size: 14px; }
/* body: the machine big in the middle, the facts on the right using their full width */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { grid-template-columns: minmax(0, 1fr) minmax(560px, 1.05fr); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-stage { padding: 18px 24px 28px; border-right: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-facts { border-left: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-photo { aspect-ratio: 4 / 3; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-photo img { width: 92%; height: 92%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sum { margin-top: 14px; max-width: none; font-size: 15px; line-height: 1.5; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sec { margin-top: 18px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sec-h { min-height: 24px; margin-bottom: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-g { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-t { gap: 8px; padding: 12px 14px 14px; border-radius: 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why-t span { font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-later { min-height: 44px; }
/* the sections and the tab bar, tighter */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tabs.mlb-pilltabs { padding: 10px 20px 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-list { padding: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pilltabs .tb-tab { height: 30px; min-height: 30px; padding: 0 13px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tp { padding: 2px 20px 28px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sbar { min-height: 40px; margin-top: 2px; }
/* the version table: names never cut, columns sized by their content */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v { table-layout: auto; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st thead th { white-space: nowrap; overflow: visible; text-overflow: clip; height: 44px; padding-bottom: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sgc { width: 1%; white-space: nowrap; padding: 11px 16px 0 0; font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sk { width: auto; min-width: 130px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sd { width: 32px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow td { height: 42px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc .mlb-val { white-space: nowrap !important; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc.is-odd .mlb-val { padding: 1px 7px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st td { padding: 0 8px; }
/* other tabs, tighter rows */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f { min-height: 46px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hr { padding: 9px 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-note { padding: 11px 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts li { padding: 8px 0 8px 18px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pts li::before { top: 17px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-cmp { padding: 9px 0; }
/* the list on the left, a touch tighter */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-li { min-height: 52px; padding: 5px 10px; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hd.mlb-kf { padding: 14px 16px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f { gap: 12px 16px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v b { font-size: 24px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-f.has-v .mlb-hf-v, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hf-v { line-height: 30px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-trow .mlb-hfiles { width: 100%; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-facts { border-left: 0; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st { min-width: 0; }
}
/* try 3 fixes after the 1440 look: no divider line, the table gets the room it needs, long words may wrap */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-facts { border-left: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { grid-template-columns: minmax(0, 1fr) minmax(660px, 1.05fr); column-gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sc .mlb-val { white-space: normal !important; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sk { min-width: 150px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sks { white-space: nowrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-srow td { height: 44px; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v { min-width: 680px; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bd { grid-template-columns: minmax(0, 1fr) minmax(620px, 1.05fr); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sk { min-width: 136px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sks { white-space: normal; }
/* equal version columns; "Standard" above its name so every name sits on one baseline; the source line stays one line */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-svh { width: calc(58% / var(--vcols, 4)); vertical-align: bottom; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st thead small { margin-bottom: 1px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sks { white-space: nowrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st .mlb-sk { min-width: 150px; max-width: 190px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v { table-layout: fixed; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sgc { width: 76px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk { width: 24%; min-width: 0; max-width: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sd { width: 32px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-svh { width: auto; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v td { padding-left: 6px; padding-right: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-st.has-v .mlb-sk { padding-left: 0; }
/* Spec rows: label + unit on one line, no source line (his call 17 Nov) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sku { font-size: 14px; color: var(--sp-grey); margin-left: 4px; }
/* Zoom into the machine (17 Nov): hero photo opens the viewer; click or wheel zooms at the pointer, the picture follows the mouse */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-zin { display: contents; cursor: zoom-in; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-zin img { cursor: zoom-in; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-zm { cursor: zoom-in; overscroll-behavior: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-zm.is-in { cursor: zoom-out; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-zm img { transition: transform .22s cubic-bezier(.2,.7,.2,1), transform-origin .08s linear; will-change: transform; user-select: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-zm.is-in img { transition: transform .22s cubic-bezier(.2,.7,.2,1); }
:where(#view-machines, #mlbPanel, .mlb-host) #vwZn { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-zm img { transition: none; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sku { white-space: nowrap; }
/* All machines (17 Nov): the side list draws only the rows in view; headings keep their look with padding instead of
   margins, so every heading and row has one fixed height. The quiet mark for a machine the list has not checked. */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list.is-virt { overflow-anchor: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list.is-virt .mlb-gh { margin: 0; padding: 14px 12px 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list.is-virt .mlb-gh.is-1st { padding-top: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vin { display: block; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-nc { display: inline-block; margin-left: 10px; padding: 1px 9px; border-radius: 999px; background: var(--sp-soft); color: var(--sp-grey); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.45; vertical-align: 4px; white-space: nowrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-hpick .mlb-nc { margin-left: 2px; vertical-align: 0; flex: none; }
/* The page-wide overscroll-behavior: none also lands on boxes that only clip (thumbnails, one-line names, values). Each
   of those is a scroll box to the browser, so a wheel that starts over one stopped dead instead of moving the list or
   panel behind it. They can never be scrolled by hand, so they pass the wheel on; the real scrollers keep "none". */
:where(#view-machines, #mlbPanel, .mlb-host) :is(.mlb-th, .mlb-li-n, .mlb-li-s, .mlb-val, .mlb-vr-n, .mlb-vr-t, .mlb-f-n, .mlb-cm-n, .mlb-hm, .mlb-h-c, .mlb-ct td) { overscroll-behavior: auto !important; }
/* Spec name and unit on one line (17 Nov) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sk .mlb-skl { display: inline; }
/* Catalogue photos are on white: give every photo stage a white card in both themes, so dark mode shows no pasted white box (17 Nov) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-photo:has(img), :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-p:has(img), :where(#view-machines, #mlbPanel, .mlb-host) .mlb-big:has(img), :where(#view-machines, #mlbPanel, .mlb-host) .mlb-th:has(img) { background: #fff; }
/* Never blow a photo up past its real size (18 Nov): small catalogue cut-outs were stretched 2-3x and looked blurry */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-photo img, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-big img, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-hero-p img { width: auto; height: auto; max-width: 90%; max-height: 90%; object-fit: contain; }
/* Design check 18 Nov: no one-word last lines in body text; section headings are h2 now (were h3 after the h1), same look */
:where(#view-machines, #mlbPanel, .mlb-host) p, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-desc, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vnote { text-wrap: pretty; }

/* ==== In the CRM shell (18 Nov 2026) ==== */
/* the page fills the working area; nothing outside it scrolls on a laptop */
#view-machines.wrap { max-width: none; margin: 0; padding: 0; }
#view-machines > .detail-backbar { display: none; }
.mlb-host .pp-ov { z-index: 1000; }
:where(#view-machines) .mlb-blank { display: grid; justify-items: start; gap: 12px; padding: 28px; color: var(--sp-grey); }
:where(#view-machines) .mlb-blank p { margin: 0; }
:where(#view-machines) .mlb-none-yet { padding: 6px 0 0; }
/* the red + for a new machine, in the side column's head (the prototype's side-add) */
#mlbNewWrap { display: flex; align-items: center; }
#mlbNew { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--sp-red-fill, #d9252e); color: #fff; cursor: pointer; transition: transform 140ms var(--sp-ease-out, ease), filter 140ms ease; }
#mlbNew svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#mlbNew:active { transform: scale(.92); }
#mlbNew:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { #mlbNew:hover { filter: brightness(.95); } }
#mlbNewWrap[hidden] { display: none !important; }
/* lent to the side column's head it is a .tb-borrowed, which apppanel.css shows with display:flex!important at (1,2,0) */
#appside .as-tools > #mlbNewWrap[hidden] { display: none !important; }
@media (min-width: 761px) {
  #view-machines { display: flex; flex-direction: column; height: 100%; min-height: 0; box-sizing: border-box; background: var(--sp-bg); }
  #view-machines.hidden { display: none; }
  #view-machines > .mlb-pg { flex: 1 1 auto; min-height: 0; }
  /* until topbar.js lends them to the side column they stay out of the page */
  #view-machines > #mlbPanel, #view-machines > #mlbNewWrap { display: none; }
  /* the list in the side column: search and filters on top, the list scrolls by itself under them */
  #appside .as-body:has(> #mlbPanel) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
  #appside .as-body > #mlbPanel { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; margin: 0 -8px; }
  #appside .as-body > #mlbPanel .mlb-list { padding-bottom: 24px; }
}
/* a phone: one long page; the machine's name opens the list in a box (the prototype's phone) */
@media (max-width: 760px) {
  #view-machines.wrap { padding: 0 !important; }
  #view-machines > #mlbPanel, #view-machines > #mlbNewWrap { display: none !important; }
  #view-machines .mlb-pg { height: auto; overflow: visible; }
  /* the phone's own buttons float at the top right: a long name wraps before it runs under them */
  #view-machines .mlb-hero-top .mlb-trow { padding-right: 136px; }
  /* app.css sets every phone heading's size with !important: the screen's own sizes again */
  #view-machines h1.mlb-t { font-size: 24px !important; }
  #view-machines h2.mlb-sec-h { font-size: 14px !important; }
  #view-machines h2.mlb-tp-h { font-size: 19px !important; }
}

/* ---- Files (Phase 4, 18 Nov 2026): the prototype's file rows, brand fold, film player and PDF box (machine-library/crm/mlb.css),
   each behind the same three roots. Dark only through html[data-theme="dark"]. ---- */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fadd { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f.has-th { grid-template-columns: 64px minmax(0, 1fr) auto 40px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-n { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-th { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; width: 64px; height: 44px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--sp-rule); overflow: hidden; overscroll-behavior: auto !important; }
:where(#view-machines, #mlbPanel, .mlb-host) button.mlb-f-th { cursor: pointer; transition: transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) button.mlb-f-th:active { transform: scale(.96); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-th img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-th.is-vid { background: #111114; box-shadow: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-th.is-vid img { object-position: center; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-x { font-size: 14px; font-weight: 600; color: #5f5f66; letter-spacing: .02em; }
:root[data-theme="dark"] :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-th:not(.is-vid):not(:has(img)) { background: var(--mlb-stage); box-shadow: none; }
:root[data-theme="dark"] :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-x { color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-pl { position: absolute; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(17, 17, 20, .74); color: #fff; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-f-pl svg { width: 11px; height: 11px; fill: currentColor; stroke: none; margin-left: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ser { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--sp-soft); color: var(--sp-grey); font-size: 14px; line-height: 20px; white-space: nowrap; vertical-align: 1px; }
/* its brand's general catalogues: one quiet fold under the machine's own files, shut at first */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bfold { margin-top: 22px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-h { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 6px 0 0; border-radius: 8px; cursor: pointer; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-h .mlb-sec-h { margin: 0; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-n { font-size: 14px; color: var(--sp-grey); font-variant-numeric: tabular-nums; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-c { flex: none; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--sp-grey); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-h[aria-expanded="true"] .mlb-bf-c { transform: rotate(180deg); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-h:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-h:hover .mlb-sec-h, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-h:hover .mlb-bf-n { color: var(--sp-ink); } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-l[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-l > .mlb-fold:first-child { margin-top: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) h3.mlb-sec-h { font-size: 14px; }
/* the film in the viewer: a fixed 16:9 stage (portrait films sit in it), our own controls under it */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #0b0b0d; overflow: hidden; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid video, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid-po { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0b0d; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid-po { opacity: .5; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid video { cursor: pointer; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid .mlb-play { z-index: 2; transition: opacity 160ms ease, transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid .mlb-play[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid.is-on .mlb-play { opacity: 0; pointer-events: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid-no { position: relative; z-index: 2; margin: 0 16px; padding: 10px 16px; border-radius: 10px; background: rgba(17, 17, 20, .82); color: #fff; font-size: 15px; text-align: center; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid-no[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid:fullscreen { border-radius: 0; aspect-ratio: auto; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc { display: grid; grid-template-columns: 40px auto minmax(0, 1fr) 40px 40px; align-items: center; column-gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--sp-ink); cursor: pointer; transition: background-color 120ms ease, transform 140ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b:active { transform: scale(.94); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b:hover { background: var(--mlb-field); } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b svg.f { fill: currentColor; stroke: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b .i-pa, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b .i-mu, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b.is-on .i-pl, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b.is-on .i-sn { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b.is-on .i-pa, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-b.is-on .i-mu { display: block; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-t { min-width: 11.5ch; font-size: 14px; color: var(--sp-grey); font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-bar { position: relative; height: 32px; margin: 0 8px; border-radius: 6px; cursor: pointer; touch-action: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-bar::before, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-buf, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-fill { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-bar::before { background: var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-buf, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-fill { transform-origin: left center; transform: scaleX(0); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-buf { background: color-mix(in srgb, var(--sp-grey) 40%, transparent); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-fill { background: var(--sp-red); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-k { position: absolute; top: 9px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--sp-red); transition: transform 120ms ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-bar.is-drag .mlb-vc-k { transform: scale(1.2); }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-bar:hover .mlb-vc-k { transform: scale(1.2); } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-bar:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
/* the PDF in the viewer: a fixed reading box */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pdf { height: min(72vh, 860px); border-radius: 10px; overflow: hidden; background: var(--mlb-stage); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pdf iframe { display: block; width: 100%; height: 100%; border: 0; }
/* the viewer title stays one line (long Drive names), the whole name on hover */
:where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-hd > div { min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-t { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
/* the YouTube box: two fields, one line saying why a link was refused */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-yt-no { margin: 0; font-size: 14px; color: var(--sp-red); }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f.has-th { grid-template-columns: 64px minmax(0, 1fr) 40px; row-gap: 6px; padding: 8px 0; align-items: start; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f.has-th .mlb-f-th { grid-row: 1 / span 2; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f.has-th .mlb-f-t { padding: 0; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f.has-th .mlb-f-a { grid-column: 2 / 4; grid-row: 2; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-f.has-th .mlb-acts { grid-column: 3; grid-row: 1; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc { grid-template-columns: 40px auto minmax(0, 1fr) 40px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-snd { display: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-pdf { height: 64vh; }
}
@media (prefers-reduced-motion: reduce) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-bf-c, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vid .mlb-play, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-vc-k { transition: none; } }
:where(#view-machines, #mlbPanel, .mlb-host) a.k-btn { text-decoration: none; }
/* Compare's column heads (18 Nov, "this is so cropped"): the machine drawn whole from its big picture on the white card,
   one height for every column (it was the 160 px list picture in a 64 px strip) */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct .mlb-cm .mlb-th.mlb-cm-ph { height: 124px; background: #fff; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct .mlb-cm .mlb-th.mlb-cm-ph img { width: 100%; height: 100%; padding: 8px; box-sizing: border-box; object-fit: contain; }
@media (max-width: 760px) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ct .mlb-cm .mlb-th.mlb-cm-ph { height: 100px; } }

/* picture size in the side list (s today, m, l): the rows and pictures grow together, kept per browser */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list { --th-w: 52px; --th-h: 40px; --th-f: 14px; --th-r: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list[data-th="m"] { --th-w: 96px; --th-h: 72px; --th-f: 20px; --th-r: 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list[data-th="l"] { --th-w: 140px; --th-h: 104px; --th-f: 26px; --th-r: 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list .mlb-li { grid-template-columns: auto minmax(0, 1fr); min-height: calc(var(--th-h) + 12px); transition: transform 140ms var(--sp-ease-out), min-height 260ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list .mlb-th { width: var(--th-w); height: var(--th-h); border-radius: var(--th-r); transition: width 260ms var(--sp-ease-out), height 260ms var(--sp-ease-out), border-radius 260ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-list .mlb-th b { font-size: var(--th-f); transition: font-size 260ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .mlb-thseg { flex: none; margin-left: auto; padding: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt > div:not(.mlb-thseg) { flex: 1 1 0; min-width: 0; max-width: max-content; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po { min-width: 0; max-width: 100%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt .po-btn { max-width: 100%; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-thseg button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-thseg svg { width: 18px; height: 18px; fill: currentColor; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-thseg button:active { transform: scale(.94); transition: transform 120ms var(--sp-ease-out); }
@media (max-width: 760px) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-thseg { display: none; } :where(#view-machines, #mlbPanel, .mlb-host) .mlb-list[data-th] { --th-w: 52px; --th-h: 40px; --th-f: 14px; --th-r: 8px; } }
@media (prefers-reduced-motion: reduce) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-list .mlb-li, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-list .mlb-th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-list .mlb-th b { transition: none; } }
/* ---- Staff uploads (Release 1 step 1, 18 Nov 2026): Add files, Take a photo, the drop outline, the Add files box,
   a note's photos, the Move box. Our own file buttons over a hidden input (nothing the browser draws). ---- */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-fadd { flex-wrap: wrap; gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-real { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-upl { position: relative; cursor: pointer; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-upl:has(.mlb-real:focus-visible), :where(#view-machines, #mlbPanel, .mlb-host) .mlb-nadd:has(.mlb-real:focus-visible) { outline: 2px solid var(--sp-red); outline-offset: 2px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-dhost { position: relative; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-padd { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: var(--sp-bg); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-drop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: 12px; outline: 2px dashed var(--sp-grey); outline-offset: -2px;
  background: color-mix(in srgb, var(--sp-bg) 88%, transparent); color: var(--sp-ink); font-size: 16px; font-weight: 600; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms var(--sp-ease-out), visibility 0s linear 150ms; }
:where(#view-machines, #mlbPanel, .mlb-host) .is-drop > .mlb-drop { opacity: 1; visibility: visible; transition: opacity 150ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pf { margin: 0; display: grid; gap: 4px; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pf figcaption { font-size: 14px; color: var(--sp-grey); overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
/* a note's photos: the camera beside the box, the picked ones under it, the sent ones in the note */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-nadd { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-nadd svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-nadd:hover { background: var(--sp-wash); } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-nadd:active { transform: scale(.94); transition: transform 120ms var(--sp-ease-out); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npick[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npt { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 8px; background: var(--mlb-stage); overflow: visible; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npt img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npx { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--sp-ink); color: var(--sp-bg); box-shadow: 0 0 0 2px var(--sp-bg); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npx::after { content: ''; position: absolute; inset: -8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npx svg { width: 14px; height: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-npics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; max-width: 420px; }
/* the Add files box: one row per file, its kind, a thin line that fills while it goes up */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul { display: grid; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 8px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--sp-rule); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-t { display: grid; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-s { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-k { font-size: 14px; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-no, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-err { font-size: 14px; font-weight: 500; color: var(--sp-red); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r.is-no .mlb-f-th, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r.is-no .mlb-ul-t { opacity: .55; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-bar i { display: block; height: 100%; background: var(--sp-ink); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r.is-done .mlb-ul-bar i { background: var(--sp-ok); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r.is-up .mlb-kseg, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r.is-done .mlb-kseg { pointer-events: none; opacity: .6; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-upbox .pp-bd { max-height: min(60vh, 560px); overflow: auto; overscroll-behavior: contain; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-mvbox .mlb-list { height: min(56vh, 520px); max-height: none; margin-top: 10px; }
@media (max-width: 640px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-r { grid-template-columns: 64px minmax(0, 1fr); }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-ul-s { grid-column: 1 / -1; justify-content: flex-start; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-fadd { justify-content: flex-start; }
}
/* the viewer's foot on a phone: Move and Take off joined it (18 Nov), so the buttons wrap onto two rows; a tap on the
   photo still zooms, so the zoom buttons step aside */
@media (max-width: 640px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-ft { flex-wrap: wrap; gap: 8px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-ft .mlb-pager { display: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-ft .mlb-grow { display: none; }
  :where(#view-machines, #mlbPanel, .mlb-host) .pp-ov.mlb-wide .pp-ft > .k-btn { flex: 1 1 auto; min-width: 0; }
}

/* ── Release 1 steps 2-3 (18 Nov): brand link and page, add a brand or type, other names, selling points ── */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-blink { all: unset; color: inherit; text-decoration: underline; text-decoration-color: var(--sp-line); text-underline-offset: 3px; cursor: pointer; border-radius: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-blink:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-blink:hover { color: var(--sp-ink); text-decoration-color: currentColor; } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-tact { margin: 4px 0 0 -10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-txt .mlb-area { margin-top: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-pre { white-space: pre-line; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-web { color: var(--sp-ink); font-size: 15px; text-decoration: underline; text-decoration-color: var(--sp-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-web:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; border-radius: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-txt input.ck-in { width: 100%; margin-top: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-blist { display: grid; gap: 2px; padding: 8px 12px 16px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-blist .mlb-th { width: 52px; height: 40px; border-radius: 8px; }
/* other names: quiet pills, the x only on names added here */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-als { display: flex; flex-wrap: wrap; gap: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-al { display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--sp-soft); font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-al:not(:has(.mlb-alx)) { padding-right: 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-alx { width: 26px; height: 26px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-alx svg { width: 14px; height: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-aladd { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-aladd .ck-in { flex: 1 1 auto; min-width: 0; }
/* the Draft and Approved marks: words, never colour alone */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-state { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-state.is-draft { background: var(--sp-warn-bg); color: var(--sp-warn); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-state.is-ok { background: var(--sp-ok-bg); color: var(--sp-ok); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sec-h .mlb-sl-a { display: inline-flex; gap: 2px; margin-left: auto; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-q.mlb-q-ok { color: var(--sp-ok); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sell { padding-bottom: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sl-m { margin: 0 0 6px; color: var(--sp-grey); font-size: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sell.is-draft .mlb-sp { border-left: 2px dashed var(--sp-warn-bg); padding-left: 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sp { margin-top: 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sp-h { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sp-p { margin: 0; padding: 6px 0; line-height: 1.5; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-src { all: unset; display: block; margin-top: 2px; color: var(--sp-grey); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
:where(#view-machines, #mlbPanel, .mlb-host) button.mlb-src { cursor: pointer; text-decoration: underline; text-decoration-color: var(--sp-line); text-underline-offset: 2px; border-radius: 4px; }
:where(#view-machines, #mlbPanel, .mlb-host) button.mlb-src:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) button.mlb-src:hover { color: var(--sp-ink); } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sl-f { margin-top: 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sl-f .mlb-area { min-height: 76px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-why .mlb-state { margin-left: 2px; }
/* specs: add a row, add a version */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-sadd { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 6px 4px; }
/* "Add brand X" inside the list, and "did you mean" under the two lists */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd { padding: 0 6px 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd .po-q { margin: 6px 0 0; width: 100%; max-width: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd-b { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; min-height: 40px; margin-top: 6px; padding: 0 10px; border-radius: 8px; color: var(--sp-ink); font-size: 15px; cursor: pointer; overflow-wrap: anywhere; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd-b[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd-b b { font-weight: 600; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd-b:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd-b:hover { background: var(--sp-soft); } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-dym { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--sp-wash); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-dym[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-dym-q { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-dym-b, :where(#view-machines, #mlbPanel, .mlb-host) .mlb-dym-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-dym-r .mlb-fl { flex: 1 1 180px; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-al { min-height: 36px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-alx { width: 36px; height: 36px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-poadd-b { min-height: 44px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-blist { padding: 8px 4px 16px; }
}

/* ---- Recent changes and the Check filter (Release 1 step 4, 18 Nov 2026): owner and admin. The clock sits beside the
   red + in the side column's head (a dot while a "This is wrong" flag is open); the page takes the middle like a brand page. ---- */
#mlbNewWrap { gap: 6px; }
#mlbRecent { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--sp-grey); cursor: pointer; transition: transform 140ms var(--sp-ease-out, ease), background-color 140ms ease, color 140ms ease; }
#mlbRecent[hidden], #mlbNew[hidden] { display: none !important; }
#mlbRecent svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#mlbRecent:active { transform: scale(.92); }
#mlbRecent:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }
#mlbRecent[aria-current="page"] { background: var(--sp-soft); color: var(--sp-ink); }
@media (hover: hover) and (pointer: fine) { #mlbRecent:hover { background: var(--sp-soft); color: var(--sp-ink); } }
#mlbRecent .mlb-rdot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--sp-red-fill, #d9252e); box-shadow: 0 0 0 2px var(--sh-side, #fff); }
#mlbRecent .mlb-rdot[hidden] { display: none; }
:where(#view-machines, #mlbPanel, .mlb-host) #mlbRc { display: flex; flex-direction: column; height: 100%; min-height: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) #mlbRc > .mlb-hd { flex-direction: column; align-items: stretch; gap: 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rcbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rcbar .mlb-rcseg { flex: none; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt.mlb-rcfilt { padding: 0; flex: 0 1 auto; min-width: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rcbd { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 6px 28px 40px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rcsec { max-width: 860px; padding-top: 14px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc-day { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--sp-ink); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc-m { all: unset; box-sizing: border-box; display: inline-block; max-width: 100%; margin-bottom: 2px; color: var(--sp-ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--sp-rule); text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc-m:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; border-radius: 3px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc-m:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) button.mlb-rc-m:hover { text-decoration-color: currentColor; } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc-m.is-off { cursor: default; text-decoration: none; color: var(--sp-grey); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc .mlb-hr-c { overflow-wrap: anywhere; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rcmore { max-width: 860px; padding: 14px 0 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-prc { margin: 8px 0 4px; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) #mlbRc { height: auto; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-rcbd { overflow: visible; padding: 4px 16px 32px; }
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc-m { min-height: 32px; display: inline-flex; align-items: center; }
}
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt.mlb-chk { z-index: 4; padding-top: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rcbar { margin-top: 6px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-filt.mlb-chk .po-pop { min-width: 250px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-rc-m { text-decoration-color: var(--sp-grey); }
/* ==== Customers who own it (Release 2 step 9, 19 Nov 2026): one row per customer, the look of the Versions rows ==== */
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-l { display: grid; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; margin: 0 -10px; width: calc(100% + 20px); border: 0; border-bottom: 1px solid var(--sp-rule); border-radius: 0; background: none; color: var(--sp-ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, transform .12s ease; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r:last-child { border-bottom: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r:active { transform: scale(.99); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { :where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r:hover { background: var(--sp-wash); } }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-nm { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-s { color: var(--sp-grey); font-size: 14px; font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r .mlb-tag { flex: none; white-space: nowrap; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r .mlb-tag.is-bought { background: var(--sp-ok-bg); color: var(--sp-ok); }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-more { margin: 4px 0 0 -10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-may { margin-top: 10px; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-may h3.mlb-sec-h { margin: 0; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-n { color: var(--sp-grey); font-weight: 500; font-variant-numeric: tabular-nums; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-l.is-may .mlb-own-nm { font-weight: 500; }
:where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-wait { min-height: 52px; }
@media (max-width: 760px) {
  :where(#view-machines, #mlbPanel, .mlb-host) .mlb-own-r { min-height: 56px; }
}
