/* iPhone Monitor - Phase 5.6 look: "Kapton".
   The workbench look: dark solder-mask green, one amber accent (the colour of Kapton tape), hairlines instead of boxes.
   Rules, so the look stays calm:
     * no gradients in the interface (only the app icon has one);
     * amber means "act here": Buy, unread, counts, the selected filter. Green means good for you. Red means a problem;
     * three corner sizes only (8 / 10 / 14 px); rows are separated by hairlines, not put in cards;
     * one family (Inter, plus its Display cut for big numbers), numbers in tabular figures so prices line up.
   Every colour, radius and font is a custom property in :root, so the theme changes in one place.
   html[data-shell="phone" | "desktop"] picks the layout; html[data-density] the desktop row height. */

/* ---------------------------------------------------------------- fonts (self-hosted, work offline) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/static/fonts/Inter2-Regular.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/static/fonts/Inter2-Medium.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/static/fonts/Inter2-SemiBold.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/static/fonts/Inter2-Bold.woff) format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 500; font-display: swap; src: url(/static/fonts/Inter2Display-Medium.woff) format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 600; font-display: swap; src: url(/static/fonts/Inter2Display-SemiBold.woff) format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-display: swap; src: url(/static/fonts/Inter2Display-Bold.woff) format('woff'); }

/* ---------------------------------------------------------------- design tokens */
:root {
  --bg: #0f1311; --surface: #161b18; --surface-2: #1d2420; --surface-3: #28302b; --raised: #2a322d;
  --hair: rgba(255, 255, 255, .075); --outline: #3a443e;
  --text: #eef1ee; --text-2: #b4bcb6; --muted: #7b857f;
  --amber: #ffb547; --on-amber: #1e1305; --amber-tint: rgba(255, 181, 71, .13); --amber-text: #ffc670;
  --good: #5fd39a; --good-tint: rgba(95, 211, 154, .13); --good-fill: rgba(95, 211, 154, .45);
  --warn: #f0c35a; --warn-tint: rgba(240, 195, 90, .12);
  --bad: #ef6b62; --bad-tint: rgba(239, 107, 98, .13); --remove: #d9483f;
  --over: #8f9993; --focus: #ffc670;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-sheet: 20px; --pill: 999px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --title-h: 52px;
  --rail-w: 212px; --detail-w: clamp(340px, 26vw, 440px);
  color-scheme: dark;
}
html[data-font=system] { --font: system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, sans-serif; --font-d: system-ui, -apple-system, 'Segoe UI Variable Display', 'Segoe UI', Roboto, sans-serif; }

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
/* Phase 5.5: on the iPhone Home Screen app (viewport-fit=cover + translucent status bar) a page SHORTER than the screen
   is measured as "screen minus the status bar": the bottom bar then jumped up. The page always fills the whole screen. */
html { min-height: calc(100% + env(safe-area-inset-top, 0px)); }
html[data-shell=phone] body { min-height: 100vh; min-height: 100lvh; }
body { font: 15px/1.45 var(--font); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-anchor: none; }
html.noscroll, html.noscroll body { overflow: hidden; }
h1, h2, h3 { margin: 0; }
h2 { font: 600 13px/1.3 var(--font); color: var(--muted); margin: 28px 2px 10px; }
h3 { font-family: var(--font-d); font-weight: 600; }
a { color: var(--amber-text); }
small, .muted { color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: 600 11px/1 var(--font); color: var(--muted); border-radius: 5px; padding: 3px 6px; box-shadow: inset 0 0 0 1px var(--hair); }
.num, .price, .tv, .age, .cnt, .badge, .pct, .rtot { font-variant-numeric: tabular-nums; }
.logo { flex: none; width: 28px; height: 28px; fill: var(--amber); stroke: none; }

/* ---------------------------------------------------------------- controls */
button, .btn, select, input, textarea { font: inherit; color: var(--text); }
button { cursor: pointer; }
.btn, button.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-md); background: var(--amber); color: var(--on-amber);
  font: 600 14.5px/1.1 var(--font); text-decoration: none; text-align: center; user-select: none; -webkit-user-select: none;
  transition: transform .14s var(--ease), background-color .18s, opacity .18s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { background: var(--bad-tint); color: var(--bad); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn.buy { background: var(--amber); color: var(--on-amber); }
.btn.buy:hover { background: #ffc05f; }
.btn.prime { background: var(--amber); color: var(--on-amber); }
.btn.restore { background: var(--good-tint); color: var(--good); }
.linkbtn { background: none; border: 0; color: var(--amber-text); padding: 6px 0; min-height: 32px; font: 500 13.5px var(--font); }
input[type=text], input[type=number], input[type=time], input[type=search], input[type=email], input[type=password], select, textarea {
  width: 100%; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-md); padding: 10px 12px; color: var(--text);
  transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); }
textarea { min-height: 84px; font-size: 13px; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
/* checkboxes are switches */
input[type=checkbox] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0;
  border-radius: 14px; background: var(--surface-3); cursor: pointer; transition: background .2s; }
input[type=checkbox]::before { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #d7ddd8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .22s var(--ease); }
input[type=checkbox]:checked { background: var(--amber); }
input[type=checkbox]:checked::before { transform: translateX(18px); background: #fff; }
label.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
label.row > span:first-child { flex: 1; }
/* exp0.3-done P-2: a fixed 140 px box clipped the Polish option text ("Jak dla wszystkich ogłoszeń").
   width:auto + min/max lets the select take the room it needs without pushing the label away. */
label.row select { width: auto; min-width: 140px; max-width: 62%; }
label.row input[type=text] { width: 220px; max-width: 62%; }      /* the VAPID address needs the room */
label.row input[type=password] { width: 220px; max-width: 62%; }
label.row input[type=number], label.row input[type=time] { width: 140px; }
.help { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; line-height: 1.5; }

/* ---------------------------------------------------------------- phone top bar: title + "Live" capsule, then the tabs */
/* The bar is sticky with a NEGATIVE top: the title row scrolls away, the tabs stay under the status bar. */
#top { position: sticky; top: calc(-1 * var(--title-h)); z-index: 20; padding-top: var(--sat); background: var(--bg); }
html[data-shell=phone] body::before { content: ''; position: fixed; z-index: 21; left: 0; right: 0; top: 0; height: var(--sat); background: var(--bg); }
.titlerow { display: flex; align-items: center; gap: 12px; height: var(--title-h); padding: 0 16px; }
#vtitle { flex: 1; min-width: 0; font: 700 30px/1.25 var(--font-d); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; height: 30px; padding: 0 12px 0 11px; border-radius: 15px; background: var(--surface);
  font: 500 13px/1.3 var(--font); color: var(--text-2); cursor: pointer; }
#stripText { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stripText em { font-style: normal; color: var(--muted); margin-left: 4px; }
/* something is wrong: the capsule becomes a banner of its own under the title */
.titlerow:has(.strip.alert) { height: auto; min-height: var(--title-h); flex-wrap: wrap; padding-bottom: 8px; }
.strip.alert { order: 3; flex: 1 1 100%; height: auto; min-height: 38px; padding: 9px 14px; border-radius: var(--r-md); background: var(--warn-tint); color: var(--warn); line-height: 1.35; }
.strip.alert.error { background: var(--bad-tint); color: #f6b3ad; }
.strip.alert #stripText { white-space: normal; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--good); } .dot.warn { background: var(--warn); } .dot.error { background: var(--bad); } .dot.off { background: var(--outline); }
body:not([data-view=feed]) #topFeed { display: none; }

/* ---------------------------------------------------------------- feed tabs: a segmented control with a sliding thumb */
.tabs { position: relative; display: flex; gap: 0; margin: 4px 16px 0; padding: 2px; border-radius: var(--r-md); background: var(--surface); }
.tabs button { position: relative; z-index: 1; flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 0; min-height: 34px; padding: 0 6px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2);
  font: 500 14px/1 var(--font); white-space: nowrap; transition: color .2s; }
.tabs button.on { color: var(--text); }
.tabs .ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: var(--r-sm); background: var(--surface-3); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); pointer-events: none;
  transition: transform .28s var(--ease), width .28s var(--ease), height .28s var(--ease), opacity .2s; }
.tabs .ind::before { content: ''; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 2px; margin-left: -8px; border-radius: 1px; background: var(--amber); }
.cnt, .badge { display: inline-grid; place-items: center; flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--amber-text); color: var(--bg); font: 700 11px/1 var(--font); }
.cnt:empty { display: none; }
.b.s.pk { color: var(--amber-text); }
.tick { animation: tick .4s var(--ease); }
@keyframes tick { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* exp0.3 F-21: the odometer of Settings > Pollers (app.js odoSet). .odo = the window: an inline-block keeps the text's
   baseline, clip-path: inset(0 -100vw) cuts off only above and below (never sideways, where a longer old text may
   stick out for a moment). .odo-s = the strip: the new text, starting one line lower; its ::before is the old text one
   line higher, so at the start the old text fills the window and at the end the new one does. white-space: pre keeps
   a space that rolls (an inline-block would otherwise drop it). */
.odo { display: inline-block; clip-path: inset(0 -100vw); }
.odo-s { display: inline-block; position: relative; white-space: pre; animation: odoRoll .25s cubic-bezier(.22, .61, .36, 1) both; }
.odo-s::before { content: attr(data-old); position: absolute; left: 0; bottom: 100%; white-space: pre; }
@keyframes odoRoll { from { transform: translateY(100%); } to { transform: none; } }
@keyframes odoFade { from { opacity: .2; } to { opacity: 1; } }

/* ---------------------------------------------------------------- page body (phone) */
main#view { max-width: 680px; margin: 0 auto; padding: 0 0 calc(var(--sab) + 104px); }
html[data-shell=phone] body:not([data-view=feed]) main#view { padding: 0 16px calc(var(--sab) + 104px); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border: 0; border-radius: var(--r-sm);
  background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--text-2); font: 500 13px var(--font); transition: background .18s, color .18s; }
.chip.on { background: var(--amber-tint); box-shadow: none; color: var(--amber-text); }
.chip .cl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* exp0.3-done P-3: at 390 px the two Feed action links ran edge to edge and could not wrap. Both sentences stay;
   the button row may take two right-aligned lines instead. */
.toolbar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; row-gap: 2px; gap: 16px; min-height: 36px; padding: 2px 16px 0; }
.toolbar:empty { display: none; }
.tbtns { display: flex; gap: 18px; white-space: nowrap; flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.tbtns .linkbtn { color: var(--text-2); }
.feedfoot { color: var(--muted); font-size: 12px; text-align: center; padding: 14px 24px 4px; }
.feedfoot:empty { display: none; }
.localbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 16px 4px; padding: 8px 12px; border-radius: var(--r-md);
  background: var(--surface); font-size: 14px; color: var(--text-2); }
.localbar input { width: 70px; padding: 6px 10px; }
.pinlabel { font: 600 13px var(--font); color: var(--amber-text); margin: 10px 16px 0; }
.empty { color: var(--muted); text-align: center; padding: 16vh 32px; font-size: 14.5px; line-height: 1.55; }
.empty .logo { display: block; width: 34px; height: 34px; margin: 0 auto 14px; fill: var(--muted); opacity: .6; }
.empty .btn { margin-top: 12px; }
/* exp0.15: "nothing fresh" while older listings exist below: a short note, so the Older / bumped group sits right under
   it instead of half a screen down */
html[data-shell] .empty.slim { padding: 22px 24px 10px; }
.empty.slim .logo { width: 26px; height: 26px; margin-bottom: 8px; }
.older { margin-top: 10px; }
.olderhead { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); min-height: 44px; margin: 4px 16px 6px; padding: 0 12px; border: 0;
  border-radius: var(--r-md); background: var(--surface); color: var(--text-2); font: 500 14px var(--font); text-align: left; }
.olderhead .i { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .25s var(--ease); color: var(--muted); }
.olderhead.open .i { transform: none; }
.osep { margin: 16px 16px 4px; font: 600 13px var(--font); color: var(--muted); }

/* ---------------------------------------------------------------- shared listing pieces */
.price { font: 600 16px/1.25 var(--font); white-space: nowrap; }
.mtitle { font: 600 15.5px/1.3 var(--font); }
.mtitle span { font-weight: 400; color: var(--text-2); }
.ctitle { font-size: 13px; line-height: 1.4; color: var(--muted); word-break: break-word; }
.pct { font: 600 13px/1.3 var(--font); white-space: nowrap; color: var(--text-2); }
.pct.below { color: var(--good); }
.pct.over { color: var(--over); }
.pct.med { color: var(--muted); font-weight: 500; }
.pct.med small { font-size: 11.5px; margin-left: 3px; }
/* the target rail: where the asking price sits against your target price (scale: 50 % to 120 % of the target) */
.rail { position: relative; height: 12px; }
.rail .tr { position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 1px; background: var(--surface-3); }
.rail .fl { position: absolute; left: 0; top: 5px; height: 2px; border-radius: 1px; background: var(--good-fill); }
.rail .tk { position: absolute; top: 1px; width: 1.5px; height: 10px; margin-left: -.75px; border-radius: 1px; background: var(--text-2); }
.rail .pt { position: absolute; top: 1.5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2px var(--bg); }
.rail.over .fl { background: rgba(143, 153, 147, .35); }
.rail.over .pt { background: var(--over); }
.rail.sg .fl { background: rgba(143, 153, 147, .35); }   /* exp0.3 step 5a: a scam's rail is grey like its % (suspicious keeps green) */
.rail.sg .pt { background: var(--over); }
/* small tags (detail panel, desktop flags) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.badges:empty { display: none; }
.b { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/1.3 var(--font); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.b.warn { background: var(--warn-tint); color: var(--warn); }
.b.bad { background: var(--bad-tint); color: var(--bad); }
.b.good { background: var(--good-tint); color: var(--good); }
.b.quiet { background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--muted); }
/* the quiet meta line: age, place, battery, flags (small icons, no separators) */
.badges.spec { flex-wrap: wrap; gap: 2px 11px; }
.badges.spec > * { flex: none; }
.b.s { padding: 0; background: none; border-radius: 0; font-size: 12.5px; color: var(--muted); }
.b.s .i { width: 13px; height: 13px; stroke-width: 1.8; }
.b.s.ng { color: var(--good); }
.b.s.dm, .b.s.parts, .b.s.fake { color: var(--bad); }
.b.s.warn, .b.s.unclear, .b.s.abroad { color: var(--warn); }
.neg { font: 600 12px/1 var(--font); white-space: nowrap; }
.neg.yes { color: var(--good); }
.neg.no { color: var(--muted); font-weight: 500; }
.age { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font: 500 12.5px/1.3 var(--font); white-space: nowrap; }
.age.hot { color: var(--text); font-weight: 600; }
.age .i { width: 13px; height: 13px; stroke-width: 1.8; }
/* filtered listings: one short reason in plain words (no red box); the opened listing lists every signal */
.whyline { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 12.5px/1.35 var(--font); color: var(--bad); }
.whyline .i { width: 13px; height: 13px; stroke-width: 1.8; }
.whyline > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whybox { margin-top: 14px; padding: 12px 14px 10px; border-radius: var(--r-md); background: var(--surface-2); }
.whybox h4 { margin: 0 0 6px; font: 600 13px/1.3 var(--font); color: var(--muted); }
.whybox p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); word-break: break-word; }
.whybox .wsum { margin-bottom: 8px; }
.whybox ul { margin: 0; padding: 0; list-style: none; }
.whybox li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.4; color: var(--text-2); word-break: break-word; }
.whybox .pts { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.whybox .pts.up { color: var(--bad); }
.whybox .pts.down { color: var(--good); }
.whybox .wtot { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* exp0.3 F-33 / F-34: the signal list folds (the browser's own <details>); the raw score sits at its foot */
.whybox .wsig { margin-top: 8px; border-top: 1px solid var(--hair); }
.whybox .wsig summary { display: flex; align-items: center; gap: 6px; padding: 8px 0 2px; cursor: pointer; list-style: none; font: 500 12.5px/1.3 var(--font); color: var(--text-2); }
.whybox .wsig summary::-webkit-details-marker { display: none; }
.whybox .wsig summary::before { content: ''; width: 6px; height: 6px; margin: 0 3px 0 1px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s var(--ease); }
.whybox .wsig[open] summary::before { transform: rotate(45deg); }
.whybox .wsig ul { margin-top: 4px; }
.whybox li.dec { color: var(--text); }
.whybox .pts .i { width: 15px; height: 15px; stroke-width: 1.8; vertical-align: -3px; }
/* Why not?'s ladder: only the folded list, no box of its own (the rung is the box) */
.whybox.inl { margin: 4px 0 0; padding: 0; background: none; }
.whybox.inl .wsig { border-top: 0; margin-top: 0; }
.whybox .wraw { padding: 7px 0 2px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.desc { white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; color: var(--text-2); word-break: break-word; }

/* ---------------------------------------------------------------- phone row (the feed) */
.card { position: relative; }
.card.pc { overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 124px; }
.card.pc .fg { position: relative; z-index: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 16px 12px 20px;
  background: var(--bg); transition: transform .26s var(--ease), background-color .5s; touch-action: pan-y; }
.card.pc .fg::after { content: ''; position: absolute; left: 96px; right: 0; bottom: 0; height: 1px; background: var(--hair); }
.card.pc.unread .fg::before { content: ''; position: absolute; left: 7px; top: 38px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.thumb { position: relative; width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.thumb img.ok { opacity: 1; }
.rmain { min-width: 0; }
.ln { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ln > :first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.pc .ctitle { margin-top: 1px; }
.card.pc .badges.spec { margin-top: 5px; }
.rb { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.rb .rail { flex: 1; }
.rb .actions { margin: 0 0 0 auto; flex: none; display: flex; gap: 8px; }
.rb .btn { min-height: 30px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13.5px; }
.rb .btn.buy { background: var(--amber-tint); color: var(--amber-text); }
.rb .btn.buy:active { background: rgba(255, 181, 71, .22); }
.card.pc .whyline { margin-top: 3px; }
.ln.fmeta { align-items: center; justify-content: space-between; margin-top: 4px; }
.ln.fmeta > :first-child { overflow: visible; white-space: normal; }
.ln.fmeta .badges.spec { margin-top: 0; }
.ln.fmeta .btn { flex: none; min-height: 30px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13.5px; }
.card.pc.pinned .fg { background: #141b17; }
.card.pc.arrive .fg { animation: arrive 2.4s ease-out; }
@keyframes arrive { 0% { background-color: rgba(255, 181, 71, .14); } 100% { background-color: var(--bg); } }
.card.gone { opacity: 0; pointer-events: none; }
.card.enter { animation: cardIn .26s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 22ms); }       /* opacity only: nothing moves, and it never holds a value (so .gone still wins) */
@keyframes cardIn { from { opacity: 0; } }
.tabs button:focus-visible { outline-offset: -2px; }
.card.row.gone, .card.pc.gone { height: 0 !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-bottom-width: 0; overflow: hidden;
  transition: height .26s var(--ease), padding .26s var(--ease), border-width .26s, opacity .16s; }
.card.pc.gone .fg { transform: translateX(-100%); }
/* swipe left: a short swipe shows two actions under the row, a long one removes the listing */
.swacts { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; display: flex; }
.swacts .btn { flex: none; width: 84px; min-height: 0; height: 100%; padding: 0 6px; border-radius: 0; flex-direction: column; gap: 5px;
  font: 500 12px/1.2 var(--font); color: #fff; }
.swacts .btn .i { width: 21px; height: 21px; }
.swacts .notphone { background: #3a433d; }
.swacts .remove { background: var(--remove); transition: width .2s var(--ease); }
.card.pc:not(.swiping):not(.reveal) .swacts { visibility: hidden; }
.card.pc.swiping .fg { transition: none; }
.card.pc.full .swacts .remove { width: 100%; position: absolute; right: 0; top: 0; }
.card.pc.full .swacts .notphone { visibility: hidden; }

/* skeletons while the first list loads */
.skel { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 16px 12px 20px; }
.sk-img { width: 64px; height: 64px; border-radius: var(--r-md); background: var(--surface); }
.sk-l { height: 11px; margin-top: 8px; border-radius: 5px; background: var(--surface); }
.w60 { width: 60%; } .w90 { width: 85%; } .w40 { width: 40%; }

/* ---------------------------------------------------------------- bottom tab bar (phone) */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 6px 12px calc(var(--sab) + 4px);
  background: rgba(15, 19, 17, .88); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border-top: 1px solid var(--hair); }
.nav button { position: relative; flex: 0 1 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; padding: 0;
  border: 0; background: none; color: var(--muted); font: 500 11px var(--font); transition: color .2s; }
.nav button .i { width: 25px; height: 25px; }
.nav button.on { color: var(--amber); }
.nav .ico { display: inline-flex; }
.nav .badge { position: absolute; top: 2px; left: calc(50% + 6px); }

/* ---------------------------------------------------------------- opened listing (phone): a full-height sheet */
#sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheet .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .28s var(--ease); }
#sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; top: 0; max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; background: var(--bg);
  transform: translateY(102%); transition: transform .34s var(--ease); will-change: transform; }
#sheet.open { pointer-events: auto; }
#sheet.open .scrim { opacity: 1; }
#sheet.open .panel { transform: none; }
.grab { display: none; }
.sbody { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sbody .det { position: relative; }
.sclose { position: absolute; z-index: 5; left: 14px; top: calc(var(--sat) + 10px); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(15, 19, 17, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text); }
html[data-shell=desktop] #sheet { display: none; }

/* ---------------------------------------------------------------- the detail (phone sheet + desktop panel) */
.gal { position: relative; aspect-ratio: 4 / 3; background: #0b0e0c; overflow: hidden; }
.sbody .gal.big { aspect-ratio: auto; height: calc(var(--sat) + 330px); }
.strip-x { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip-x::-webkit-scrollbar { display: none; }
.ph { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; overflow: hidden; }
.ph img, .th img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease); display: block; }
img.ok { opacity: 1; }
.broken { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.pcount { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 12px; background: rgba(15, 19, 17, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 12px/1 var(--font); color: var(--text-2); pointer-events: none; }
.pcount:empty { display: none; }
.garr { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border: 0; border-radius: 50%;
  background: rgba(15, 19, 17, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; opacity: .8; transition: opacity .2s; }
.garr:hover { opacity: 1; }
.garr.l { left: 12px; } .garr.r { right: 12px; }
html[data-shell=phone] .garr { display: none; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 18px 0; scrollbar-width: thin; }
.th { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); opacity: .55; transition: opacity .2s, box-shadow .2s; }
.th.on { opacity: 1; box-shadow: 0 0 0 2px var(--text); }

.det .dbody { padding: 18px 16px 12px; }
.det .lm { font: 600 15px var(--font); color: var(--text-2); }
.det .lm.read { font-weight: 500; color: var(--muted); }   /* exp0.3: a filtered listing: what the reader saw, not a sale */
.dprice { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.dprice .price { font: 700 36px/1 var(--font-d); letter-spacing: -.025em; }
.dprice .grow { flex: 1; }
.dprice .neg.yes { padding: 5px 8px; border-radius: 6px; background: var(--good-tint); }
.det > .dbody > .badges { margin-top: 14px; }
.deal { margin-top: 16px; }
.deal .dtx { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.deal .dtx .b { padding: 0; background: none; font: 600 14px var(--font); color: var(--good); }
.deal.over .dtx .b { color: var(--over); }
.deal .rail { height: 16px; margin-top: 10px; }
.deal .rail .tr, .deal .rail .fl { top: 7px; height: 3px; }
.deal .rail .tk { top: 2px; height: 13px; width: 2px; margin-left: -1px; }
.deal .rail .pt { top: 3px; width: 11px; height: 11px; margin-left: -5.5px; }
.deal .scale { position: relative; height: 16px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.deal .scale span { position: absolute; top: 0; white-space: nowrap; }
.deal .scale .s0 { left: 0; } .deal .scale .s2 { right: 0; } .deal .scale .s1 { transform: translateX(-50%); }
.dealnote { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dealnote b { color: var(--text-2); }
/* grouped lists: label left, value right, hairlines between */
.grp { margin-top: 16px; border-radius: var(--r-lg); background: var(--surface); }
.grp > h4 { margin: 0; padding: 12px 14px 2px; font: 600 13px var(--font); color: var(--muted); }
.kr { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 14px; font-size: 14.5px; }
.kr + .kr::before { content: ''; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--hair); }
.kr > span:first-child { color: var(--text-2); flex: none; }
.kr > span:last-child { text-align: right; min-width: 0; word-break: break-word; }
/* totals inside the Cost group (one per way of getting the phone) */
.totals { display: block; }
.tot { position: relative; }
.tot + .tot::before { content: ''; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--hair); }
.tot .tline { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; background: none; color: var(--text); text-align: left; }
.tot .tl { color: var(--text-2); font-size: 14.5px; white-space: nowrap; }
.tot .tv { margin-left: auto; font: 600 15px var(--font); }
.tot .tline .i { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease); }
.tot.open .tline .i { transform: rotate(180deg); }
.tag { font: 500 11.5px/1 var(--font); padding: 4px 6px; border-radius: 5px; white-space: nowrap; }
.tag.known { color: var(--good); background: var(--good-tint); }
.tag.estimated { color: var(--warn); background: var(--warn-tint); }
.tot small.parts { display: none; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0 14px 12px; font-size: 13px; color: var(--muted); }
.tot.open small.parts { display: grid; }
.tot .pr { display: contents; }
.tot .pr .num { color: var(--text-2); text-align: right; }
.tot .pnote { grid-column: 1 / -1; color: var(--warn); font-size: 12px; }
.tot small.note { display: block; margin: -6px 14px 12px; color: var(--muted); font-size: 12.5px; }
.tot.none { padding: 12px 14px; }
.tot.none small { display: block; }
.det .dtitle { margin: 20px 0 6px; font: 600 16px/1.4 var(--font); word-break: break-word; }
.det .desc.full { margin: 0; }
/* the action bar: Buy, then square buttons (phone) / labelled ones (desktop) */
.actions { display: flex; gap: 8px; }
.det .actions.big { position: sticky; bottom: 0; z-index: 3; margin: 18px -16px 0; padding: 12px 16px calc(var(--sab) + 12px);
  background: rgba(15, 19, 17, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--hair); }
.det .actions.big .btn { min-height: 50px; border-radius: var(--r-lg); }
.det .actions.big .buy, .det .actions.big .restore { flex: 1 1 auto; font-size: 16px; }
.det .actions.big .ghost { flex: none; width: 50px; padding: 0; color: var(--text-2); }
.det .actions.big .ghost .lbl { display: none; }
.det .actions.big .ghost.prime { flex: 1 1 auto; width: auto; padding: 0 16px; background: var(--amber); color: var(--on-amber); }
.det .actions.big .ghost.prime .lbl { display: inline; }

/* ---------------------------------------------------------------- toast, new pill, shortcuts */
.toast { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--sab) + 76px); display: flex; align-items: center; gap: 12px;
  max-width: 520px; margin: 0 auto; min-height: 50px; padding: 8px 8px 8px 16px; border-radius: var(--r-lg); background: var(--raised); color: var(--text);
  font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.toast .tmsg { flex: 1; min-width: 0; }
.toast.in { animation: toastIn .26s var(--ease); }
.toast .linkbtn { flex: none; min-height: 34px; padding: 0 12px; border-radius: var(--r-sm); color: var(--amber-text); font-weight: 600; font-size: 14px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.newpill { position: fixed; z-index: 25; left: 50%; top: calc(var(--sat) + 52px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--amber); color: var(--on-amber); font: 600 13.5px var(--font);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45); animation: pillIn .26s var(--ease); }
.newpill .i { width: 16px; height: 16px; }
@keyframes pillIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }
.keys { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(0, 0, 0, .55); }
.kpanel { min-width: 360px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.kpanel h3 { margin: 0 0 12px; font-size: 17px; }
.krow { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 6px 0; font-size: 14px; color: var(--text-2); }
.kpanel small { display: block; margin-top: 14px; }

/* ---------------------------------------------------------------- watches */
.vhead { margin: 0; font: 700 22px var(--font-d); letter-spacing: -.02em; color: var(--text); }
html[data-shell=phone] .vhead { display: none; }
.wcard { margin-bottom: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); transition: opacity .2s; }
.wcard.paused { opacity: .55; }
.wcard h3 { margin: 0 0 4px; font: 600 16px var(--font); }
.wcard .muted { line-height: 1.5; }
.wbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.form { margin-bottom: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .35); }
.form .f { margin-bottom: 14px; }
.form .f > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.form .actions { margin-top: 6px; }
.form .actions .btn { flex: 1; }
.two { display: flex; gap: 10px; } .two > * { flex: 1; }
.condrow { display: flex; flex-wrap: wrap; gap: 8px; }
.condrow label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 8px; border-radius: var(--r-md); background: var(--surface-2); }

/* ---------------------------------------------------------------- settings + test page */
.box { padding: 6px 16px 14px; border-radius: var(--r-lg); background: var(--surface); }
.dev { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.ev { font: 12px/1.45 var(--mono); padding: 5px 0; border-bottom: 1px solid var(--hair); word-break: break-word; white-space: pre-wrap; color: var(--text-2); }
.ev.warn { color: var(--warn); } .ev.error { color: var(--bad); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; padding: 10px 0; }
.kv span:nth-child(odd) { color: var(--muted); }
/* F-21: ".kv span:nth-child(odd)" also matches the odometer's own spans inside a value (the first one is an odd child);
   same specificity (2 classes + 1 element), later in the file = this wins: they keep the value's colour */
.kv .odv span { color: inherit; }
pre.out, div.out { margin: 10px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font: 12.5px/1.5 var(--mono);
  white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
div.out .ev { border: 0; padding: 2px 0; }
.pick { display: block; width: 100%; margin: 6px 0; padding: 10px 14px; border: 0; border-radius: var(--r-md); background: var(--surface-2); text-align: left; }
.pick small { display: block; }
details.cases summary { cursor: pointer; color: var(--amber-text); margin: 6px 0; font-size: 14px; }
.vtool { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 14px; min-height: 36px; }
html[data-shell=phone] .vtool { justify-content: flex-end; }
html[data-shell=phone] .vtool:not(:has(button)) { display: none; }
.setgroups { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 4px; padding: 2px 16px; }
.setgroups::-webkit-scrollbar { display: none; }
.sgbtn { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--text-2);
  font: 500 13.5px var(--font); white-space: nowrap; transition: background .18s, color .18s; }
.sgbtn:hover { background: var(--surface); }
.sgbtn.on { background: var(--amber-tint); box-shadow: none; color: var(--amber-text); }

/* ================================================================ DESKTOP SHELL (3 columns) */
#rail, #detail, #feedNav { display: none; }
#feedNav { display: contents; }
html[data-shell=desktop] body { overflow: hidden; }
html { --dw-cur: var(--detail-w); }
html[data-detail=closed] { --dw-cur: 0px; }
html[data-shell=desktop] body:not([data-view=feed]):not([data-view=debug]) { --dw-cur: 0px; }
html[data-shell=desktop] #shell { position: relative; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }
html[data-shell=desktop] #rail { grid-row: 1 / 3; grid-column: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 10px 14px; overflow-y: auto;
  background: #121614; border-right: 1px solid var(--hair); }
html[data-shell=desktop] #top { grid-column: 2; position: static; padding: 0; background: none; margin-right: var(--dw-cur); transition: margin-right .36s var(--ease); }
html[data-shell=desktop] #top .titlerow { height: auto; min-height: 0; padding: 0; }
html[data-shell=desktop] #vtitle, html[data-shell=desktop] #topFeed { display: none; }
html[data-shell=desktop] .strip:not(.alert) { display: none; }
html[data-shell=desktop] .strip.alert { margin: 10px 16px 0; border-radius: var(--r-md); }
html[data-shell=desktop] main#view { grid-column: 2; max-width: none; width: auto; margin: 0 var(--dw-cur) 0 0; padding: 0 0 40px; overflow-y: auto; overscroll-behavior: contain; transition: margin-right .36s var(--ease); }
html[data-shell=desktop] #detail { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: var(--detail-w); display: block; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  border-left: 1px solid var(--hair); background: #121614; transition: transform .36s var(--ease), opacity .26s var(--ease), visibility 0s; }
html[data-shell=desktop][data-detail=closed] #detail { transform: translateX(100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .36s var(--ease), opacity .2s, visibility 0s .36s; }
html[data-shell=desktop] #detail .det { position: relative; }
.det.swap { animation: detSwap .2s ease-out; }
@keyframes detSwap { from { opacity: .35; } to { opacity: 1; } }
.dclose { position: absolute; z-index: 8; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(15, 19, 17, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); transition: background .15s; }
.dclose:hover { background: rgba(15, 19, 17, .9); }
.dclose .i { width: 16px; height: 16px; }
html[data-shell=desktop] body:not([data-view=feed]):not([data-view=debug]) #detail { display: none; }
html[data-shell=desktop] body:not([data-view=feed]) main#view { grid-column: 2; padding: 0 32px 48px; }
html[data-shell=desktop] body:not([data-view=feed]) main#view > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
html[data-shell=desktop] body[data-view=tests] main#view > * { max-width: 900px; }
html[data-shell=desktop] .secgrid { columns: 2; column-gap: 20px; }
html[data-shell=desktop] .sec { break-inside: avoid; display: inline-block; width: 100%; }
html[data-shell=desktop] .sec > h2:first-child { margin-top: 22px; }
html[data-shell=desktop] #wlist { display: block; min-width: 0; }      /* step 6: the groups stack; each group's .wgrid lays out its cards */
html[data-shell=desktop] #wlist .wcard { margin: 0; }
html[data-shell=desktop] .form { max-width: 640px; }
html[data-shell=desktop] .toast { left: var(--rail-w); right: 0; bottom: 24px; max-width: 480px; }
html[data-shell=desktop] .newpill { top: 112px; left: calc(var(--rail-w) + (100vw - var(--rail-w) - var(--dw-cur)) / 2); }
html[data-shell=desktop] .setgroups { margin: 18px 0 4px; padding: 0; flex-wrap: wrap; overflow: visible; }

/* rail */
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 10px 16px; font: 600 18px/1 var(--font-d); letter-spacing: -.02em; }
/* exp0.3 step 5a: the FlipKit mark (the amber F on its tile): rail brand and the phone's top bar (hidden on the PC) */
.fkmark { width: 26px; height: 26px; border-radius: 7px; flex: none; display: block; }
.titlerow .fkmark { margin-right: -2px; }
html[data-shell=desktop] #top .fkmark { display: none; }
.railh, html[data-shell=desktop] .tabs::before, html[data-shell=desktop] .chips:not(:empty)::before { display: block; padding: 14px 10px 6px; font: 600 12px var(--font); color: var(--muted); }
html[data-shell=desktop] #railFeed { display: flex; flex-direction: column; gap: 2px; }
html[data-shell=desktop] .tabs { flex-direction: column; gap: 1px; margin: 0; padding: 0; background: none; }
html[data-shell=desktop] .tabs::before { content: none; }
html[data-shell=desktop] .tabs button { flex: none; justify-content: space-between; min-height: 34px; padding: 0 10px; border-radius: 7px; font: 500 14px var(--font); color: var(--text-2); }
html[data-shell=desktop] .tabs button:hover { background: var(--surface); }
html[data-shell=desktop] .tabs button.on:hover { background: none; }      /* the selected tab keeps its own highlight and orange line visible under the mouse */
html[data-shell=desktop] .tabs button.on { color: var(--text); font-weight: 500; }
html[data-shell=desktop] .tabs .ind { border-radius: 7px; background: var(--surface-2); box-shadow: none; }
html[data-shell=desktop] .tabs .ind::before { left: 0; top: 9px; bottom: 9px; width: 2px; height: auto; margin: 0; }      /* the same line the watches have */
html[data-shell=desktop] .chips { flex-direction: column; gap: 1px; margin: 0; padding: 0; overflow: visible; }
html[data-shell=desktop] .chips:not(:empty)::before { content: 'Watches'; }
html[data-shell=desktop] .chip { display: flex; justify-content: space-between; min-height: 32px; padding: 0 10px; border-radius: 7px; box-shadow: none; background: none;
  font-size: 13.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-shell=desktop] .chip:hover { background: var(--surface); }
html[data-shell=desktop] .chip.on { background: none; color: var(--text); }
html[data-shell=desktop] .chip.on::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 1px; background: var(--amber); }
#railSources { cursor: pointer; }
.src { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; }
.src:hover { background: var(--surface); }
.srct { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; }
.srct b { font-weight: 500; color: var(--text-2); }
.srct small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srcinc { margin: 4px 10px; color: var(--warn); font-size: 12.5px; line-height: 1.4; }
html[data-shell=desktop] #railNav { margin-top: auto; }
html[data-shell=desktop] .nav { position: static; flex-direction: column; gap: 1px; padding: 0; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-shell=desktop] .nav button { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: 7px;
  font: 500 14px var(--font); color: var(--text-2); }
html[data-shell=desktop] .nav button .i { width: 17px; height: 17px; }
html[data-shell=desktop] .nav button:hover { background: var(--surface); }
html[data-shell=desktop] .nav button.on { background: var(--surface-2); color: var(--text); }
html[data-shell=desktop] .nav .lbl { flex: 1; text-align: left; }
html[data-shell=desktop] .nav .badge { position: static; }

/* the list head: title, search, actions, then the column names */
.lhead { position: sticky; top: 0; z-index: 6; background: var(--bg); border-bottom: 1px solid var(--hair); }
.lrow { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px 0 20px; }
.lrow h2 { flex: 1; min-width: 0; margin: 0; font: 600 17px var(--font); color: var(--text); white-space: nowrap; }
.lrow h2 span { margin-left: 6px; font-weight: 400; color: var(--muted); }
.search { display: flex; align-items: center; gap: 8px; width: 240px; height: 32px; padding: 0 8px 0 10px; border-radius: var(--r-sm); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair); color: var(--muted); cursor: text; }
.search .i { width: 15px; height: 15px; }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--amber); }
.search input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-size: 13.5px; }
.search input::-webkit-search-cancel-button { filter: invert(.7); }
.lrow .toolbar { padding: 0; min-height: 0; }
.lrow .tbtns { gap: 6px; }
.lrow .tbtns .linkbtn, .lrow .btn.small { min-height: 32px; padding: 0 11px; border-radius: var(--r-sm); background: none; box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text-2); font: 500 13px var(--font); }
.lrow .tbtns .linkbtn:hover, .lrow .btn.small:hover { background: var(--surface); }
/* exp0.3-done P-4: the Polish title and buttons need more room than the English ones. When the list is narrow the
   head wraps on purpose (title line, then search + actions) instead of squeezing ".lrow h2" down to ~43 px. */
@media (max-width: 1160px) {
  html[data-shell=desktop] .lrow {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding: 8px 16px 8px 20px;
    row-gap: 6px;
  }
  html[data-shell=desktop] .lrow h2 { flex: 1 1 auto; min-width: 170px; }
  html[data-shell=desktop] .search { flex: 0 1 240px; }
}
@media (max-width: 1660px) {
  html[data-shell=desktop][data-detail=open] .lrow {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding: 8px 16px 8px 20px;
    row-gap: 6px;
  }
  html[data-shell=desktop][data-detail=open] .lrow h2 { flex: 1 1 auto; min-width: 170px; }
  html[data-shell=desktop][data-detail=open] .search { flex: 0 1 240px; }
}
.keybtn { width: 32px; padding: 0 !important; }
.densgrp { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hair); }
.dbtn { display: grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); transition: background .15s, color .15s; }
.dbtn .i { width: 17px; height: 17px; }
.dbtn:hover { color: var(--text-2); }
.dbtn.on { background: var(--surface-3); color: var(--text); }
/* desktop rows: one grid shared by the column names and every row */
.thead, .card.row { display: grid; grid-template-columns: 8px 44px minmax(0, 1fr) 88px 84px 56px 144px 90px 62px 30px; column-gap: 8px; align-items: center; }
.thead.filt, .card.row.filt { grid-template-columns: 8px 44px minmax(0, 1fr) 96px 160px 70px 82px 30px; column-gap: 14px; }
.thead { height: 30px; padding: 0 16px 0 12px; font: 500 12px var(--font); color: var(--muted); }
/* the number columns are centred under their names; the names of Model / Listing start at the photo's edge */
.thead .mid, .card.row .n { text-align: center; }
.card.row .n.wide { grid-column: span 2; }
.card.row { position: relative; min-height: 62px; padding: 8px 16px 8px 12px; border-bottom: 1px solid var(--hair); cursor: pointer; font-size: 13.5px; color: var(--text-2);
  content-visibility: auto; contain-intrinsic-size: auto 62px; transition: background-color .12s, opacity .2s; }
.card.row:hover { background: rgba(255, 255, 255, .025); }
.card.row.sel { background: #18201b; }
.card.row.sel::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--amber); animation: lineIn .24s var(--ease); }
@keyframes lineIn { from { transform: scaleY(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.card.row .udot { width: 7px; height: 7px; border-radius: 50%; }
.card.row.unread .udot { background: var(--amber); }
.card.row .thumb { width: 44px; height: 44px; border-radius: var(--r-sm); }
.card.row .rmodel { min-width: 0; }
.card.row .mtitle { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.row .sub { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 1px; overflow: hidden; }
.card.row .sub .b { flex: none; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
/* step 8: a long "CPU, graphics card not stated" tag shrinks (…) instead of running into the price column */
.card.row .sub .b.ns { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.row .ctitle { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.row .rprice { text-align: center; }
.card.row .price { font-size: 14.5px; color: var(--text); }
.card.row .neg { display: block; margin-top: 3px; font-size: 11.5px; }
.card.row .rloc { min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.row .rloc small { font-size: 12.5px; }
.card.row .rtot small { display: block; font-size: 11.5px; }
.card.row .age { justify-content: center; }
.card.row .age .i { display: none; }
.card.row.nomatch { display: none; }
.card.row .rest { justify-self: end; }
.card.row .rest .btn { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
/* Remove (one listing): always there, quiet until the row is hovered or selected */
.xbtn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); opacity: .55;
  transition: background .15s, color .15s, opacity .15s; }
.xbtn .i { width: 16px; height: 16px; }
.card.row:hover .xbtn, .card.row.sel .xbtn, .xbtn:focus-visible { opacity: 1; }
.xbtn:hover { background: var(--bad-tint); color: var(--bad); }
html[data-density=compact] .card.row { min-height: 46px; padding-top: 4px; padding-bottom: 4px; contain-intrinsic-size: auto 46px; }
html[data-density=compact] .card.row .thumb { width: 34px; height: 34px; }
html[data-density=compact] .card.row .ctitle { display: none; }
html[data-shell=desktop] .skel { grid-template-columns: 44px 1fr; padding: 10px 16px 10px 32px; border-bottom: 1px solid var(--hair); }
html[data-shell=desktop] .skel .sk-img { width: 44px; height: 44px; }
html[data-shell=desktop] .chips + .toolbar, html[data-shell=desktop] main > .toolbar { display: none; }
html[data-shell=desktop] .empty { padding-top: 90px; }
html[data-shell=desktop] .olderhead { width: calc(100% - 32px); }
html[data-shell=desktop] .localbar { margin: 10px 16px 4px; }
/* detail panel */
html[data-shell=desktop] #detail .gal.big { aspect-ratio: 4 / 3; }
html[data-shell=desktop] #detail .det .dbody { padding: 16px 18px 0; }
html[data-shell=desktop] #detail .det .actions.big { flex-wrap: wrap; margin: 18px -18px 0; padding: 14px 18px; background: rgba(18, 22, 20, .94); }
html[data-shell=desktop] #detail .det .actions.big .buy, html[data-shell=desktop] #detail .det .actions.big .restore { flex: 1 1 100%; }
html[data-shell=desktop] #detail .det .actions.big .ghost { flex: 1 1 0; width: auto; min-height: 40px; padding: 0 8px; gap: 6px; font-size: 13.5px; border-radius: var(--r-md); }
html[data-shell=desktop] #detail .det .actions.big .ghost .lbl { display: inline; white-space: nowrap; }
html[data-shell=desktop] #detail .det .actions.big .ghost .i { display: none; }
html[data-shell=desktop] #detail .det .actions.big .ghost.remove:hover { background: var(--bad-tint); color: var(--bad); }

/* ---------------------------------------------------------------- fork step 6: categories */
/* phone: the big title is the category switch once two categories have watches */
.catbtn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; color: var(--text); cursor: pointer; }
.catbtn .catname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.catchev { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--pill); background: var(--surface-2); flex: none; }
.catchev .i { width: 18px; height: 18px; stroke-width: 2.2; }
.catchev.news::after { content: ''; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 2px var(--bg); }
.catsheet { position: fixed; inset: 0; z-index: 60; }
.catsheet .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .22s var(--ease); }
.catsheet .cpanel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 6px 16px calc(18px + var(--sab));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--surface); transform: translateY(100%); transition: transform .26s var(--ease); }
.catsheet.open .scrim { opacity: 1; }
.catsheet.open .cpanel { transform: none; }
.catsheet .grab { display: flex; justify-content: center; padding: 6px 0 4px; }
.catsheet .grab span { width: 36px; height: 4px; border-radius: 2px; background: var(--outline); }
.catsheet h3 { margin: 6px 2px 10px; font: 600 13px var(--font); color: var(--muted); }
.crow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-bottom: 4px; padding: 0 14px; border: 0; border-radius: var(--r-md);
  background: var(--surface-2); text-align: left; color: var(--text); cursor: pointer; }
.crow .i { width: 22px; height: 22px; flex: none; color: var(--text-2); }
.crow .cn { flex: 1; display: flex; flex-direction: column; font: 600 16px var(--font); }
.crow .cn small { font-weight: 400; }
.crow.on { background: var(--amber-tint); box-shadow: inset 2px 0 0 var(--amber); }
.crow.on .i { color: var(--amber-text); }
.crow .cnt, .rcat .cnt { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 6px;
  background: var(--amber); color: var(--on-amber); font: 700 12px var(--font); }
.catsheet .cadd { width: 100%; margin-top: 8px; }
/* PC: the Categories block at the top of the rail */
.railcats[hidden] { display: none; }
.railcats { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.rcat { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: none;
  color: var(--text-2); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.rcat .i { width: 17px; height: 17px; flex: none; }
.rcat .rcn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcat:hover { background: var(--surface); }
.rcat.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--amber); }
.lhcat { color: var(--muted); font-weight: 500; }
.lhcat::after { content: ' | '; color: var(--outline); }
/* a spec one of your watches asks for that the listing does not state */
.b.ns { white-space: nowrap; }

/* Watches page: grouped by category */
.wgroup { margin-bottom: 18px; }
.wghead { display: flex; align-items: center; gap: 10px; margin: 18px 2px 10px; }
.wghead .i { width: 18px; height: 18px; color: var(--text-2); }
.wghead h3 { margin: 0; font: 600 16px var(--font); }
.wghead .muted { flex: 1; }
.wtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.wtag { padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font: 500 12px var(--font); }
.wspec { color: var(--text-2); }
html[data-shell=desktop] .wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
html[data-shell=desktop] .wgrid .wcard { margin: 0; }

/* the watch editor: tiles, then the category's fields */
.cattiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.ctile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 8px 4px; border: 0;
  border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font: 500 13px var(--font); cursor: pointer; }
.ctile .i { width: 24px; height: 24px; }
.ctile.on { background: var(--amber-tint); color: var(--amber-text); box-shadow: inset 0 0 0 1.5px var(--amber); }
.catfixed { margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 38px; padding: 0 12px; border: 0; border-radius: var(--pill); background: var(--surface-2); color: var(--text-2); font: 500 13.5px var(--font); cursor: pointer; }
.pill.on { background: var(--amber); color: var(--on-amber); }
.form .mini, .catspeed .mini { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.form .mini select { flex: 1; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text); }
/* exp0.15: the editor is a dialog above the page. The page behind dims (and softens a little) so the form is the one
   thing in focus; nothing behind it can be clicked while it is open, and a click on the dimmed part closes it.
   PC: a 600 px panel in the middle of the window. Phone: a sheet rising from the bottom, leaving a strip of the dimmed
   page visible at the top so it reads as "on top of" the Watches page. Title bar and buttons stay put; the fields scroll. */
.wmodal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; }
.wmodal .scrim { position: absolute; inset: 0; background: rgba(5, 8, 6, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .22s var(--ease); }
.wmodal .wpanel { position: relative; display: flex; width: min(600px, 100%); max-height: min(860px, calc(100vh - 48px)); max-height: min(860px, calc(100dvh - 48px));
  border-radius: var(--r-sheet); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 70px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .22s var(--ease), transform .26s var(--ease); }
.wmodal .wpanel:focus { outline: none; }
.wmodal.open .scrim { opacity: 1; }
.wmodal.open .wpanel { opacity: 1; transform: none; }
.wmodal.closing { pointer-events: none; }
.wmodal.closing .scrim, .wmodal.closing .wpanel { transition-duration: .16s; }
.wmodal .wedit { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; padding: 0; background: none; box-shadow: none; }
.wtop { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 14px 12px 22px; border-bottom: 1px solid var(--hair); }
.wtop h3 { flex: 1; min-width: 0; margin: 0; font: 600 18px/1.25 var(--font-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtop .grab { display: none; }
.wclose { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-md); background: none; color: var(--text-2); cursor: pointer; }
.wclose:hover { background: var(--surface-2); color: var(--text); }
.wbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 8px; }
.wmodal .wedit .actions { flex: none; display: flex; gap: 10px; margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--hair); }
.wmodal .wedit .actions .btn { flex: 1; min-height: 46px; }
.wmodal .wedit .actions .btn:not(.ghost) { background: var(--amber); color: var(--on-amber); }
.wbody .cattiles { grid-template-columns: repeat(3, 1fr); }
html[data-shell=phone] .wmodal { align-items: flex-end; padding: calc(var(--sat) + 28px) 0 0; }
html[data-shell=phone] .wmodal .wpanel { width: 100%; max-width: 680px; max-height: none; height: 100%; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  transform: translateY(40px); }
html[data-shell=phone] .wmodal.open .wpanel { transform: none; }
html[data-shell=phone] .wtop { position: relative; padding: 18px 10px 10px 18px; }
html[data-shell=phone] .wtop .grab { display: flex; justify-content: center; position: absolute; top: 6px; left: 0; right: 0; }
html[data-shell=phone] .wtop .grab span { width: 36px; height: 4px; border-radius: 2px; background: var(--outline); }
html[data-shell=phone] .wbody { padding: 16px 16px 8px; }
html[data-shell=phone] .wmodal .wedit .actions { padding: 10px 16px calc(10px + var(--sab)); }

/* Settings > Pollers > Categories */
.catorder { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 14px; }
.corow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 10px; border-radius: var(--r-md); background: var(--surface-2); }
.corow .grip { color: var(--muted); cursor: grab; letter-spacing: -2px; }
.corow .i { width: 18px; height: 18px; color: var(--text-2); }
.corow .cn { flex: 1; display: flex; flex-direction: column; font-weight: 500; }
.corow .btn { min-height: 34px; width: 38px; padding: 0; }
.corow .btn .i { width: 16px; height: 16px; }
.corow .btn:disabled { opacity: .28; cursor: default; }
.catspeed { padding: 10px 0 6px; border-top: 1px solid var(--hair); }
.catspeed h3 { margin: 0 0 6px; font: 600 14px var(--font); }
.csrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 4px 0; }
.csrow .help { grid-column: 1 / -1; margin: 0; padding: 0; }
.csrow input[type=number] { width: 70px; padding: 8px; }
.catsel { max-width: 220px; }

/* ---------------------------------------------------------------- respect "reduce motion": no animation at all */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* exp0.3 F-21, his answer 9: "reduce motion" = no rolling, a short fade of the new characters instead. CSS note: two
     !important declarations meet here; the more specific selector wins (.odo-s = one class beats *), so this line
     overrides the "no animation at all" rule above for the odometer only. The old text is not shown at all. */
  .odo-s { animation: odoFade .2s ease-out both !important; }
  .odo-s::before { content: none; }
}

/* ================================================================ exp0.2: Tools (from the approved mockups' mock.css) */
.crumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 2px 2px 0; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb .i { width: 15px; height: 15px; }
html[data-shell=desktop] .crumb { margin-top: 14px; }
.mkh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.mkh h2.vhead2 { font: 600 26px/1.2 var(--font-d); color: var(--text); margin: 0; letter-spacing: -.01em; }
.mkh .grow, .chiprow .grow { flex: 1; }
html[data-shell=phone] .mkh h2.vhead2 { display: none; }
.dnote { font-size: 13px; }
.lead { color: var(--text-2); font-size: 14px; line-height: 1.45; margin: 6px 2px 0; max-width: 720px; }
.dbar { margin-top: 14px; }
html[data-shell=desktop] .dbar { margin-top: 14px; }
.sgbtn .cnt { margin-left: 6px; }

/* the Tools page */
.ttiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
html[data-shell=desktop] .ttiles { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.ttile { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 168px;
  border: 0; text-align: left; color: var(--text); font: inherit; cursor: pointer; transition: background .15s; }
.ttile:not(:disabled):hover { background: var(--surface-2); }
.ttile .ti { width: 40px; height: 40px; border-radius: 11px; background: var(--amber-tint); color: var(--amber-text); display: grid; place-items: center; margin-bottom: 6px; }
.ttile .ti .i { width: 22px; height: 22px; }
.ttile b { font: 600 16px/1.25 var(--font-d); }
.ttile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ttile .tstat { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ttile .tstat b { font: 600 13px var(--font); }
.ttile .tbadge { position: absolute; top: 14px; right: 14px; }
/* a tool that is not built yet: greyed, not clickable, says in which step it comes (decided 2026-11-11) */
.ttile.soon { cursor: default; opacity: .5; }
.ttile.soon .ti { background: var(--surface-3); color: var(--muted); }
.ttile.soon .tstat { color: var(--muted); }
.tset { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); color: var(--text-2); font-size: 14px; }
.tset .grow { flex: 1; }
.tset > .i { width: 20px; height: 20px; flex: none; color: var(--muted); }

/* greyed placeholders: Why not? (step 2), Last backup and Backups (step 5) */
.soon { color: var(--muted); }
.box.soon { opacity: .7; }
.whysoon { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 16px; }
.whysoon .ti { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; }
.whysoon .ti .i { width: 22px; height: 22px; }
.whysoon b { font: 600 15px var(--font-d); color: var(--text-2); }
.whysoon p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }

/* Debug > Filtered: category chips and the list in one box */
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 16px 0 8px; }
.mkchip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text-2); font: 500 13.5px var(--font); background: none; border: 0; cursor: pointer; transition: background .18s, color .18s; }
.mkchip:hover { background: var(--surface); }
.mkchip.on { background: var(--amber-tint); box-shadow: none; color: var(--amber-text); }
.mkchip .cnt { background: var(--surface-3); color: var(--text-2); }
.mkchip.on .cnt { background: var(--amber-text); color: var(--bg); }
.chiprow .linkbtn { min-height: 30px; }
.box.tb { padding: 4px 6px 6px; }
.dbg-filt { overflow: hidden; }
.dbg-filt .card.row { border-radius: 0; }
.dbg-filt .card.row:last-child { border-bottom: 0; }
.box.dbg-filt .empty { padding: 28px 16px; }
#dbody.swap { animation: detSwap .2s ease-out; }
/* phone: the filtered cards sit on the box's surface (their own background is the page's, for the swipe) */
html[data-shell=phone] .dbg-filt { padding: 0; }
html[data-shell=phone] .dbg-filt .card.pc .fg { background: var(--surface); }
html[data-shell=phone] .dbg-filt .card.pc:last-child .fg::after { display: none; }

/* ================================================================ exp0.2 step 2: Why not? (the mockup's ladder) */
.urlrow { display: flex; gap: 8px; margin-top: 14px; }
.urlrow input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; background: var(--surface-2); border: 0; padding: 0 14px; color: var(--text); font: 400 15px var(--font); }
.urlrow input:focus { outline: 2px solid var(--amber); outline-offset: -2px; }
.urlrow .btn { min-height: 44px; }
.twocol { display: grid; gap: 16px; }
.twocol > div { min-width: 0; }
html[data-shell=desktop] .twocol { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
html[data-shell=phone] .twocol.ansfirst > div:last-child { order: -1; }      /* phone: the answer comes first (decided) */
.lcard { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--surface); margin-top: 14px; }
.lcard img, .lcard .ph0 { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.lcard b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.lcard small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ladder { margin-top: 6px; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--hair); }
.step:first-child { border-top: 0; }
.si { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font); margin-top: 1px; }
.si.ok { background: var(--good-tint); color: var(--good); }
.si.no { background: var(--bad-tint); color: var(--bad); }
.si.na { background: var(--surface-3); color: var(--muted); }
.si.wait { background: var(--warn-tint); color: var(--warn); }
.step b { font-weight: 600; }
.step .sd { color: var(--text-2); font-size: 13.5px; margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.step .sd + .sd { margin-top: 3px; }
.step .sd.rs { margin-top: 8px; }
.wv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 7px 12px; margin-top: 10px; font-size: 13.5px; align-items: center; }
.wv > span:nth-child(odd) { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.vtag { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; margin-right: 6px; }
.vtag.ok { background: var(--good-tint); color: var(--good); }
.vtag.no { background: var(--bad-tint); color: var(--bad); }
.vtag.mut { background: var(--surface-3); color: var(--text-2); }
.why { color: var(--text-2); }
.verdict { margin-top: 14px; padding: 13px 15px; border-radius: var(--r-lg); background: var(--amber-tint); color: var(--amber-text); font-size: 14px; line-height: 1.45; }
.verdict b { color: var(--text); }
.hintline { font-size: 12.5px; color: var(--muted); margin: 10px 2px; line-height: 1.45; }
.wbtns.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.whyrec .kv span:nth-child(odd) { font-variant-numeric: tabular-nums; }
.whyrec .kv a { color: var(--text); text-decoration: none; }
.whyrec .kv a:hover { text-decoration: underline; }
.whyempty { color: var(--muted); font-size: 13.5px; padding: 14px 2px; }
#whyOut.busy { opacity: .55; transition: opacity .2s; }
.evday .ev { white-space: pre-wrap; }

/* exp0.2 step 2: the self-test in Debug > System > Testing */
.stline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 10px 0 2px; font-size: 14px; }
.stline .muted { font-size: 13px; }
.stfail { margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--bad-tint); font-size: 13.5px; }
.stfail div + div { margin-top: 6px; }
.stfail b { color: var(--bad); font-weight: 600; }
.stfail span { color: var(--text-2); }

/* ================================================================ exp0.2 step 4: Tools > Median price (mockup 06, mock.css) */
.formbox { background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 16px; }
.fieldrow { display: grid; gap: 10px; }
html[data-shell=desktop] .fieldrow { grid-template-columns: 130px minmax(0, 1fr); align-items: center; }
.mfl { font-size: 13px; color: var(--muted); }
.mkpills { display: flex; gap: 6px; flex-wrap: wrap; }
.mkpill { min-height: 34px; padding: 0 13px; border-radius: 17px; border: 0; background: var(--surface-2); color: var(--text-2); font: 500 13.5px var(--font);
  cursor: pointer; transition: background .15s, color .15s; }
.mkpill:hover:not(:disabled) { background: var(--surface-3); }
.mkpill.on { background: var(--amber-tint); color: var(--amber-text); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .5); }
.mkpill:disabled { opacity: .4; cursor: default; }
.formbox select { height: 44px; font-size: 15px; }
.formbox .help { margin: -4px 0 0; }
html[data-shell=desktop] .formbox .help { grid-column: 2; }
.medgo { min-height: 46px; }
.medgo:disabled { opacity: 1; background: var(--surface-2); color: var(--text-2); cursor: progress; }
.medres { margin-top: 0; }
html[data-shell=phone] .medres { margin-top: 4px; }
.medres > * + * { margin-top: 12px; }
.medhead { padding: 16px 18px; }
.medtop { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.medbig { font: 600 44px/1 var(--font-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.medtop .muted { padding-bottom: 4px; font-size: 13.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.medhead .hintline { margin: 10px 0 0; }
.medempty { padding: 18px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.medempty b { color: var(--text); }
/* the per-site table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { font-weight: 500; color: var(--muted); font-size: 12.5px; text-align: left; padding: 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .mut { color: var(--muted); }
.tbl td.err { white-space: normal; color: var(--muted); font-size: 13px; }
.tbl td.err b { color: var(--bad); font-weight: 600; }
.range { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); margin: 0; min-width: 80px; }
.range .rf { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--good-fill); }
.range .rm { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 1px; background: var(--text); margin-left: -1px; }
html[data-shell=phone] .tbl .rcol { display: none; }          /* the phone has no room for the bar: the middle half text stays */
html[data-shell=phone] .tbl { font-size: 13.5px; }
html[data-shell=phone] .tbl th { white-space: normal; padding: 8px 6px; font-size: 12px; }
html[data-shell=phone] .tbl td { padding: 10px 6px; }
/* notes and switches under the result */
.mnote { padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 13.5px; color: var(--text-2); display: flex; gap: 12px; align-items: center; line-height: 1.45; }
.mnote .grow { flex: 1; min-width: 0; }
.mnote b { color: var(--text); font-weight: 600; }
.mnote.off { opacity: .45; }
/* the volume-at-price chart */
.vapbox { padding: 14px 16px 12px; }
.vaph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vaph b { font-weight: 600; }
.vaph .muted { font-size: 12.5px; }
.vap { display: grid; gap: 3px; }
.vr { position: relative; display: grid; grid-template-columns: 52px 1fr 26px; align-items: center; gap: 10px; height: 22px; padding: 0 6px; border-radius: 6px;
  font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vr.mid { background: rgba(255, 255, 255, .045); }
.vr .vp { color: var(--muted); text-align: right; }
.vr.med .vp { color: var(--text); font-weight: 600; }
.vr .vb { display: flex; height: 12px; }
.vr .vb i { display: block; height: 100%; }
.vr .vb i:first-child { border-radius: 3px 0 0 3px; }
.vr .vb i:last-child { border-radius: 0 3px 3px 0; }
.vr .vb i:only-child { border-radius: 3px; }
.vr .vb i.o { background: rgba(169, 188, 255, .55); } .vr .vb i.v { background: var(--good-fill); } .vr .vb i.a { background: rgba(255, 198, 112, .55); }
.vr .vn { color: var(--text-2); text-align: right; }
.vr .vtg { position: absolute; right: 40px; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text); }
.vr.tail .vp, .vr.tail .vn { color: var(--muted); font-style: italic; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 10px 2px 2px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* listings used */
.medused td:first-child { white-space: normal; overflow-wrap: anywhere; }
.medused a { color: var(--text); text-decoration: none; }
.medused a:hover { text-decoration: underline; }
.medused small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.medused .hintline { padding: 6px 10px 8px; margin: 0; }
/* exp0.3 step 3: "Left out", one fold per reason (the browser's <details>, the same chevron as Why not?'s signal list).
   The price gate's two groups have amber headings (a rule you set: 45 % - 150 %), the reader's the muted text colour;
   the rows are the "Listings used" rows. */
.medleft .lgrp + .lgrp { border-top: 1px solid var(--hair); }
.medleft .lgrp summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; cursor: pointer; list-style: none;
  font: 500 13.5px/1.3 var(--font); color: var(--text-2); }
.medleft .lgrp summary::-webkit-details-marker { display: none; }
.medleft .lgrp summary::before { content: ''; flex: none; width: 6px; height: 6px; margin: 0 3px 0 1px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s var(--ease); }
.medleft .lgrp[open] summary::before { transform: rotate(45deg); }
.medleft .lgrp.lgp summary { color: var(--amber-text); }
.medleft .lgt { flex: 1; min-width: 0; }
.medleft .lgn { flex: none; font-variant-numeric: tabular-nums; color: var(--muted); }
.medleft .lgrp summary:focus-visible { outline-offset: -2px; }
.medleft .lgrp > .tbl { margin-bottom: 4px; }
.medleft > .hintline { border-top: 1px solid var(--hair); padding-top: 8px; }
.linkbtn.inl { display: inline; padding: 0; min-height: 0; font-size: inherit; }
/* exp0.3 F-23: the seller row's "Try again" is inline text, but a finger needs more than one line of height: the
   padding enlarges the tap area and the negative margin gives it back, so the row's height does not change */
.kr .sretry { padding: 6px 0; margin: -6px 0; }
/* Settings > Tools: the sites pills */
.setpills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mnote .btn { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.mnote .btn .i { width: 16px; height: 16px; }
div.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
div.row > span:first-child { flex: 1; }
html[data-shell=desktop] .twocol.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }   /* the median: two equal columns (mockup 06) */
.medres .box.tb { overflow-x: auto; }   /* a very long price range scrolls inside its box instead of leaving it */

/* ================================================================ exp0.2 step 5: Tools > Inventory (mockups 07, 08, 14; mock.css) */
input[type=date], input[type=url] { width: 100%; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-md); padding: 10px 12px;
  color: var(--text); font: inherit; transition: border-color .15s; min-height: 44px; color-scheme: dark; }
.mut { color: var(--muted); }
.err { color: var(--bad); }
.pos { color: var(--good); }
.negv { color: var(--bad); }
.plan { opacity: .5; }                                  /* planned numbers: lighter until the item is sold (decided) */
.invbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.invbtns .btn .i { width: 16px; height: 16px; }
.invbtns .btn:disabled { opacity: .45; cursor: default; }
html[data-shell=phone] #invPage .mkh { margin-top: 10px; }
html[data-shell=phone] .invbtns { width: 100%; }
html[data-shell=phone] .invbtns .btn { flex: 1; }
.catrow { margin: 12px 0 12px; }
html[data-shell=phone] .catrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; padding: 0 2px; }
html[data-shell=phone] .catrow::-webkit-scrollbar { display: none; }
html[data-shell=phone] .catrow .mkchip { flex: none; }
/* the four stat cards */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-shell=desktop] .stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: 13px 15px 14px; min-width: 0; }
.stat .sl { font-size: 12.5px; color: var(--muted); }
.stat .sv { font: 600 24px/1.2 var(--font-d); margin-top: 5px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .ss { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; line-height: 1.4; }
/* the month switch */
.msw { display: inline-flex; align-items: center; gap: 4px; }
.msw b { font: 600 15px var(--font); min-width: 128px; text-align: center; }
.msw button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.msw button:hover:not(:disabled) { background: var(--surface-2); }
.msw button:disabled { opacity: .3; cursor: default; }
.msw button .i { width: 16px; height: 16px; }
html[data-shell=phone] #invChips .grow { flex-basis: 100%; height: 0; }
html[data-shell=phone] #invChips .msw { margin-top: 2px; }
/* status pills, item cells, rows */
.stp { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.stp.del { background: rgba(140, 170, 255, .13); color: #a9bcff; }
.stp.nr { background: var(--warn-tint); color: var(--warn); }
.stp.rd { background: var(--good-tint); color: var(--good); }
.stp.sold { background: var(--surface-3); color: var(--text-2); }
.stp.dead { background: var(--bad-tint); color: var(--bad); }
.mth { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; overflow: hidden; flex: none; }
.mth img { width: 100%; height: 100%; object-fit: cover; }
.pcell { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.pcell b { font-weight: 600; } .pcell small { display: block; font-size: 12.5px; margin-top: 2px; }
.invtbl tbody tr { cursor: pointer; transition: background .12s; }
.invtbl tbody tr:hover, .invtbl tbody tr:focus-visible { background: rgba(255, 255, 255, .03); }
/* exp0.3 F-35 (R-043): a row reached with Tab had "outline: none" and only the 3 % hover tint, invisible on the dark
   theme. It now gets the same 2 px amber ring as every other focusable thing (global :focus-visible), drawn INSIDE the
   row. CSS note: an outline on a <tr> of a border-collapse table is painted differently by each engine (or not at all),
   so the ring is made of inset box-shadows on the row's cells: top and bottom edges on every cell, the left edge on the
   first cell, the right edge on the last. Every focusable table row gets it (inventory items, costs, repairs, the P&L
   year table). */
.tbl tbody tr[tabindex]:focus-visible { outline: none; }
.tbl tbody tr[tabindex]:focus-visible td { box-shadow: inset 0 2px 0 var(--focus), inset 0 -2px 0 var(--focus); }
.tbl tbody tr[tabindex]:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--focus), inset 0 2px 0 var(--focus), inset 0 -2px 0 var(--focus); }
.tbl tbody tr[tabindex]:focus-visible td:last-child { box-shadow: inset -2px 0 0 var(--focus), inset 0 2px 0 var(--focus), inset 0 -2px 0 var(--focus); }
.tbl tbody tr[tabindex]:focus-visible td:only-child { box-shadow: inset 0 0 0 2px var(--focus); }
.tbl .c { text-align: center; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--outline); border-bottom: 0; }
.ilist { margin-top: 4px; }
.irow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--hair);
  font-variant-numeric: tabular-nums; cursor: pointer; }
.irow.nothumb { grid-template-columns: minmax(0, 1fr) auto; }       /* no photo: no picture at all (decided 2026-11-11) */
.irow .mth { width: 44px; height: 44px; }
.irow .it { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow .it span { font-weight: 400; color: var(--text-2); }
.irow .im { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.irow .ir { text-align: right; }
.irow .ir b { display: block; font-weight: 600; font-size: 15px; }
.irow .ir small { font-size: 12px; white-space: nowrap; }
.irow.invtotal { cursor: default; font-weight: 600; }
.invempty .empty { padding: 26px 16px; }
#invPage .twocol h2 { margin-top: 22px; }        /* not the page title: it sits on the buttons' line (mockup 07) */
/* the popup's extras (inside the watch editor's dialog) */
.invform .f + .f { margin-top: 2px; }
.invform .hintline { margin: 6px 2px 0; }
.partrow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 40px; gap: 8px; margin-bottom: 8px; }
.partrow .rm, .rmx { width: 40px; height: 44px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.partrow .rm .i, .rmx .i { width: 16px; height: 16px; }
.rmx { width: 32px; height: 32px; background: none; }
.rmx:hover, .partrow .rm:hover { color: var(--bad); }
.addlink { background: none; border: 0; color: var(--amber-text); font: 500 14px var(--font); padding: 4px 0; cursor: pointer; }
.calc { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 10px; background: var(--surface-2);
  font-variant-numeric: tabular-nums; margin: 10px 0 14px; }
.calc b { font: 600 18px var(--font-d); }
.soldbox { padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--outline); color: var(--muted); font-size: 13.5px; }
.soldf { display: grid; gap: 8px; }
.wmodal .wedit .actions .btn.danger { flex: 0 0 auto; width: 46px; padding: 0; background: var(--bad-tint); color: var(--bad); }
/* (the dialog paints every other non-ghost button amber; this rule is more specific, so Delete stays red) */
.wmodal .wedit .actions .btn.danger .i { width: 18px; height: 18px; }
/* the median's "your price" (step 4 left it out until sell prices existed) */
.range .my { position: absolute; top: -5px; width: 2px; height: 18px; border-radius: 1px; background: var(--amber); margin-left: -1px; }
.vr.my::before { content: ''; position: absolute; left: -4px; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--amber); }
.vr .vtg.my { background: var(--amber-tint); color: var(--amber-text); }
#medMine b { color: var(--amber-text); }
/* Settings > Tools: my sell prices */
.sptbl td { padding-top: 6px; padding-bottom: 6px; }
.tbl input.cellin { width: 100px; height: 34px; min-height: 0; border-radius: 8px; border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  padding: 0 10px; font-size: 14px; text-align: right; }
html[data-shell=phone] .tbl input.cellin { width: 82px; }
.spadd { margin: 6px 0 2px; }
.sptbl small.sponly { display: none; font-size: 12px; margin-top: 2px; }
html[data-shell=phone] .sptbl small.sponly { display: block; }
html[data-shell=phone] .sptbl .spcol { display: none; }
html[data-shell=phone] .sptbl td:first-child { white-space: normal; }
html[data-shell=phone] .sptbl .rmx { width: 28px; }
#sellPrices .tb { overflow-x: auto; }                      /* a long model name scrolls inside the box, never the page */
#setNoPrice { width: 170px; }
.spgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#backupKv .err { white-space: normal; }
/* ---------------------------------------------------------------- exp0.2 step 6: I bought this (mockups 15, 16, 17) */
/* the listing card at the top of the popup */
.fromlist { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.fromlist img { width: 48px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.fromlist > div { min-width: 0; }
.fromlist b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fromlist small { display: block; }
.fromlist + .f { margin-top: 16px; }
/* the green "In your inventory" bar in the opened listing */
.invtag { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--good-tint); color: var(--good);
  font-size: 14px; line-height: 1.4; margin-top: 14px; }
.invtag .i { flex: none; width: 18px; height: 18px; }
.invtag b { color: var(--text); font-weight: 600; }
.invtag .grow { flex: 1; min-width: 0; }
.invtag .negv { color: var(--bad); }
.invtag a { flex: none; color: var(--good); font-weight: 600; text-decoration: none; }
.invtag.dead { background: var(--surface-2); color: var(--text-2); }
.invtag.dead .i, .invtag.dead a { color: var(--text-2); }

/* ---------------------------------------------------------------- exp0.2 step 7: Excel (import / export), repairs */
/* Inventory's buttons (decided 2026-11-12): Excel ▾ · Add cost · Add repair · Add item; the phone shows them 2 × 2 */
.xwrap { position: relative; display: flex; }
.xwrap > .btn .i:last-child { width: 14px; height: 14px; margin-left: -2px; opacity: .8; }
.xmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 280px; padding: 6px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--outline); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); display: grid; gap: 2px; }
.xmenu[hidden] { display: none; }
.xmenu button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0;
  background: none; color: var(--text); font: inherit; cursor: pointer; }
.xmenu button:hover, .xmenu button:focus-visible { background: var(--surface-3); }
.xmenu button .i { width: 18px; height: 18px; flex: none; color: var(--muted); }
.xmenu b { display: block; font-weight: 600; }
.xmenu small { display: block; font-size: 12.5px; margin-top: 1px; }
html[data-shell=phone] .invbtns { display: grid; grid-template-columns: 1fr 1fr; }
html[data-shell=phone] .invbtns .xwrap > .btn { flex: 1; }
html[data-shell=phone] .xmenu { min-width: 0; width: calc(200% + 8px); }

/* Settings > Data > Imports */
.imprec { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.imprec > div { flex: 1; }
.imprec .help { padding: 2px 0 0; }
.imprec.undone b { color: var(--muted); }
/* exp0.3 F-25: Undo import refused, the rows you changed listed under it (red = a problem, as everywhere) */
.imprefused { margin: 0 0 12px; padding: 10px 12px 6px; border-radius: var(--r-md); background: var(--surface-2); }
.imprefused > b { display: block; font: 600 13.5px/1.35 var(--font); color: var(--bad); }
.imprefused .help { padding: 3px 0 0; }
.imprefused ul { margin: 8px 0 4px; padding: 0; list-style: none; }
.imprefused li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 13.5px; }
.imprefused .ik { color: var(--muted); font-size: 12.5px; }
.imprefused .il { min-width: 0; overflow-wrap: break-word; color: var(--text); }
.imprefused .il small { display: block; color: var(--muted); font-size: 12px; }
/* ---------------------------------------------------------------- exp0.2 step 8: Tools > P&L calendar (mockups 10-14; mock.css + screens2.py) */
.tbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.tbar .grow { flex: 1; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); }
.seg button { border: 0; background: none; color: var(--text-2); min-height: 30px; padding: 0 14px; border-radius: 8px; font: 500 13.5px var(--font); cursor: pointer; }
.seg button:hover:not(.on) { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.stat.big .sv { font-size: 30px; }
.stat.top { grid-column: 1 / -1; }
.tsl { display: grid; gap: 10px; margin-top: 10px; }
html[data-shell=desktop] .tsl { grid-template-columns: repeat(4, 1fr); }
.tse { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tse b { display: block; font: 600 16px/1.25 var(--font-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tse small { display: block; font-variant-numeric: tabular-nums; }
.tse > div { min-width: 0; }
.trk { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font: 700 13px var(--font); background: var(--surface-3); color: var(--text-2); }
.tse:first-child .trk { background: var(--amber-tint); color: var(--amber-text); }
.tse.ext .trk { background: var(--good-tint); color: var(--good); }
.tse.ext .trk .i { width: 16px; height: 16px; }
.tsl .tnone { font-size: 13.5px; color: var(--muted); }
/* the calendar */
.calwrap { display: grid; gap: 16px; }
html[data-shell=desktop] .calwrap { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 11.5px; color: var(--muted); text-align: center; padding: 2px 0 4px; }
.cday { position: relative; background: var(--surface); border-radius: 10px; min-height: 92px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px;
  font-variant-numeric: tabular-nums; border: 1px solid transparent; text-align: left; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.cday:hover:not(.out) { filter: brightness(1.12); }
.cday:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.cday .dn { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; }
.cday .dn small { font-size: 11px; white-space: nowrap; }
.cday .dn .shm { color: var(--amber-text); margin-left: 3px; }
.cday .dv { font: 600 16px/1.2 var(--font-d); margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cday .dp { font-size: 11.5px; letter-spacing: -.01em; color: var(--good); opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cday.out { background: none; border-color: var(--hair); opacity: .4; cursor: default; }
.cday.fut { background: rgba(255,255,255,.015); }
.cday.gain { background: var(--good-tint); }
.cday.loss { background: var(--bad-tint); }
.cday.planonly { background: none; border: 1px dashed var(--outline); }
.cday.today { border: 1.5px solid var(--amber); }
.cday.sel { border: 1.5px solid var(--text-2); }
.cday.today.sel { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--text-2); }
.cday .pdot { position: absolute; right: 6px; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--good); opacity: .6; display: none; }
html[data-shell=phone] .cal { gap: 4px; }
html[data-shell=phone] .cday { min-height: 54px; padding: 5px 5px 6px; border-radius: 8px; }
html[data-shell=phone] .cday .dn { font-size: 11px; }
html[data-shell=phone] .cday .dn small { display: none; }
html[data-shell=phone] .cday .dv { font-size: 12px; font-family: var(--font); letter-spacing: -.02em; }
html[data-shell=phone] .cday .dp { display: none; }
html[data-shell=phone] .cday .pdot { display: block; right: 3px; bottom: 3px; }
html[data-shell=phone] .cday { padding-left: 4px; padding-right: 3px; }
html[data-shell=phone] .cday .dv { overflow: visible; text-overflow: clip; }   /* "−1 450" fits a 393 px phone only without the ellipsis */
.dayp { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; min-width: 0; }
.dayp h4 { margin: 0 0 2px; font: 600 15px var(--font-d); }
.dayp .dsum { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.45; }
.dayp .dgrp { font-size: 12px; color: var(--amber-text); padding: 12px 0 2px; border-top: 1px solid var(--hair); }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 13.5px;
  font-variant-numeric: tabular-nums; cursor: pointer; }
.dgrp + .drow { border-top: 0; }
.drow:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--outline); }
.drow small { grid-column: 1; font-size: 12px; line-height: 1.4; }
.drow .dval { grid-row: span 2; align-self: center; font-weight: 600; text-align: right; white-space: nowrap; }
.drow .dval.note { font-weight: 400; font-size: 12px; }
/* the Summary's charts (picker: Bars · Columns · Donut · Table) */
.secttl2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 10px; }
.secttl2 h2 { margin: 0 2px; }
.cpick button { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; }
.cpick .i { width: 16px; height: 16px; }
html[data-shell=phone] .cpick .pl { display: none; }
.bars { padding: 6px 0 10px; }
.bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 26px; align-items: center; gap: 10px; font-size: 13.5px; padding: 6px 0; }
.bar .bt { display: block; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.bar .bf { display: block; height: 100%; border-radius: 5px; background: var(--good-fill); }
.bar .bn { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.vcols { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding: 14px 4px 4px; overflow-x: auto; }
.vcol { flex: 1 0 44px; max-width: 90px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.vcol .vn { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vcol .vt { width: 70%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--good-fill); min-height: 3px; }
.vcol .vt.zero { background: var(--surface-3); }
.vcol .vl { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.25; height: 3.75em; overflow: hidden; width: 100%; }   /* 3 lines: "iPhone 13 Pro Max" */
html[data-shell=phone] .vcols { gap: 5px; padding-left: 0; padding-right: 0; }
html[data-shell=phone] .vcol { flex-basis: 38px; }
.donutwrap { display: flex; align-items: center; gap: 22px; padding: 12px 0; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; flex: none; }
.donut .dt { font: 600 26px var(--font-d); fill: var(--text); }
.donut .ds { font: 500 12px var(--font); fill: var(--muted); }
.dleg { display: grid; gap: 8px; flex: 1; min-width: 180px; }
.dl { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.dl i { width: 12px; height: 12px; border-radius: 3px; }
.dl span.muted { text-align: right; font-size: 12.5px; }
.ybar { display: inline-block; height: 8px; border-radius: 4px; background: var(--good-fill); vertical-align: middle; margin-right: 8px; }
.ybar.n { background: var(--bad); opacity: .55; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--outline); }
.pnlnone { padding: 18px 4px; font-size: 13.5px; color: var(--muted); }
html[data-shell=phone] .pconly { display: none; }
html[data-shell=phone] #pnlTbar .grow { flex-basis: 100%; height: 0; }
html[data-shell=phone] #pnlTbar { gap: 8px; }
html[data-shell=phone] .pnlyear .tbl th, html[data-shell=phone] .pnlyear .tbl td { padding-left: 4px; padding-right: 4px; }
#pnlLosses .tbl td.nm { white-space: normal; }
html[data-shell=phone] #pnlLosses .tbl { font-size: 13px; }
html[data-shell=phone] #pnlLosses .tbl td { padding: 10px 5px; }
label.row select#setPnlLands { width: auto; min-width: 140px; }      /* "The day I bought it" in full (mockup 14) */
html[data-shell=phone] .pnlyear td small { display: block; }       /* "(403,01 zł planned)" under the profit, not beside it */

/* ---------------------------------------------------------------- exp0.3 step 4: the scam filter (DESIGN part D)
   Colours are the existing tokens: scam = --bad / --bad-tint, suspicious = --warn / --warn-tint, quiet = --muted. */
/* phone row: the 2nd line is the warning ("“kod BLIK”" with the triangle); the row's left edge in the colour */
.ctitle.wl { font-weight: 500; }
.ctitle.wl .i { width: 13px; height: 13px; stroke-width: 1.9; margin-right: 4px; vertical-align: -2px; }
.ctitle.wl.scam { color: var(--bad); }
.ctitle.wl.sus { color: var(--warn); }
.card.pc.lv-scam .fg { box-shadow: inset 3px 0 0 var(--bad); }
.card.pc.lv-sus .fg { box-shadow: inset 3px 0 0 var(--warn); }
/* his Q6: a scam's deal % is grey (no "deal" green next to a warning); a suspicious one keeps its colour */
.pct.sg, .pct.sg.below, .pct.sg.med { color: var(--over); }
/* the chip (PC row, opened listing) and "Not checked yet" */
.b.scam { background: var(--bad-tint); color: var(--bad); font-weight: 600; }
.b.sus { background: var(--warn-tint); color: var(--warn); font-weight: 600; }
.b.pend { color: var(--muted); }
.b.scam .i, .b.sus .i, .b.pend .i { width: 13px; height: 13px; stroke-width: 1.9; }
.b.s.pend .i { width: 12px; height: 12px; }
.card.row .sub .b.scam .i, .card.row .sub .b.sus .i, .card.row .sub .b.pend .i { width: 12px; height: 12px; }
/* the opened listing's box: the finding, the seller's words with the hit marked, the phrase and "Not a scam" */
.scambox { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bad-tint); border-left: 3px solid var(--bad); }
.scambox.sus { background: var(--warn-tint); border-left-color: var(--warn); }
.scambox h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font: 600 15px/1.3 var(--font-d); color: var(--bad); }
.scambox.sus h4 { color: var(--warn); }
.scambox h4 .i { width: 17px; height: 17px; stroke-width: 1.8; }
.scambox p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.scambox .sq { color: var(--text); word-break: break-word; }
.scambox .sfoot { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.scambox .sfoot .grow { flex: 1 1 220px; min-width: 0; overflow-wrap: break-word; }
.scambox .sfoot .btn { flex: none; }
.scambox code, .sphrbox code, .sthit code { font: 12px/1.4 var(--mono); padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .06); color: var(--text-2); overflow-wrap: break-word; }
mark.sh { background: var(--bad-tint); color: var(--bad); font-weight: 600; border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -1.5px 0 var(--bad); }
mark.sh.sus { background: var(--warn-tint); color: var(--warn); box-shadow: inset 0 -1.5px 0 var(--warn); }
.pendbox { display: flex; gap: 9px; margin-top: 14px; padding: 11px 13px; border-radius: var(--r-md); background: var(--surface-2); font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.pendbox .i { width: 16px; height: 16px; margin-top: 1px; color: var(--muted); }
/* Tools › Debug › Scam phrases (the admin's editor) */
.sphrbox { padding-top: 10px; padding-bottom: 12px; }
.sphrbox > .help:first-child { margin-top: 0; }
textarea.sphr { display: block; min-height: 270px; resize: vertical; font: 13.5px/1.6 var(--mono); background: var(--surface-2); border: 1px solid var(--outline);
  border-radius: var(--r-sm); white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 2; }
textarea.sphr[aria-invalid=true] { border-color: var(--bad); }
textarea.sphrtry { display: block; min-height: 84px; resize: vertical; font: 14px/1.5 var(--font); }
textarea.sphr:focus, textarea.sphrtry:focus { border-color: var(--amber); }
.sphrbox .tscam { color: var(--bad); font-weight: 600; }
.sphrbox .tsus { color: var(--warn); font-weight: 600; }
.syn { margin: 0 0 4px; padding: 0 0 0 18px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.syn li + li { margin-top: 2px; }
.lvl { display: inline-block; padding: 2px 8px; border-radius: var(--pill); font: 600 11.5px/1.4 var(--font); white-space: nowrap; vertical-align: 1px; }
.lvl.scam { background: var(--bad-tint); color: var(--bad); }
.lvl.sus { background: var(--warn-tint); color: var(--warn); }
.sphrres { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.sphrres:empty, .sphrerr:empty, .sphrout:empty { display: none; }
.sphrerr { margin-top: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--bad-tint); color: var(--bad); font: 13px/1.55 var(--mono); }
.sphrerr b { display: block; font: 600 13.5px/1.5 var(--font); }
.sphrout { margin-top: 10px; }
.sthit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.45; }
.sthit:first-child { border-top: 0; }
.sthit .sq { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.sthit .sph { color: var(--muted); font-size: 12.5px; }
.sflag td.lv { width: 1%; }
/* Tools › Median › Left out: the two scam groups (open) with red / amber headings */
.medleft .lgrp.lgs summary { color: var(--bad); }
.medleft .lgrp.lgsu summary { color: var(--warn); }

/* exp0.3 step 5a: Settings › About */
.about { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 0 6px; }
.aboutlogo { display: block; width: 208px; height: 60px; }
.aboutver { font: 500 14px var(--font); color: var(--text-2); }
label.row.wide input[type=url] { flex: 1 1 auto; width: auto; min-width: 0; max-width: 360px; }
#aboutLic .kv span:first-child { color: var(--text); font-weight: 500; }
#aboutLic .kv span:last-child { color: var(--text-2); }
#aboutLic .kv small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* ---------------------------------------------------------------- exp0.3 step 5b: the import setup (a full page, Part C3).
   Prefix isu- = import setup. Kapton tokens only; the classes are the approved mockups' (step 5 design 2). */
html.isu-on .nav, html.isu-on #topFeed, html.isu-on #strip { display: none !important; }
html.isu-on[data-shell=phone] main#view { padding-bottom: calc(96px + var(--sab)); }
.isu-x { width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: var(--r-md); background: var(--surface-2); color: var(--text); display: grid; place-items: center; flex: none; }
.isu-x .i { width: 18px; height: 18px; }
.isu { display: grid; gap: 28px; }
html[data-shell=desktop] .isu { grid-template-columns: 204px minmax(0, 1fr); gap: 24px; max-width: 1180px; padding-bottom: 90px; }
.isu-main { min-width: 0; }
/* PC: the step list (done steps open again; future ones do not) */
.isu-steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 16px; align-self: start; }
.isu-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 10px 10px 10px 8px; border-radius: var(--r-md); }
.isu-steps li.go { cursor: pointer; }
.isu-steps li.go:hover { background: var(--surface); }
.isu-steps li .n { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--font);
  color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--outline); font-variant-numeric: tabular-nums; }
.isu-steps li b { font: 500 14.5px var(--font); color: var(--text-2); }
.isu-steps li small { color: var(--muted); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.isu-steps li.done .n { box-shadow: none; background: var(--good-tint); color: var(--good); }
.isu-steps li.done .n .i { width: 15px; height: 15px; }
.isu-steps li.on { background: var(--surface); }
.isu-steps li.on .n { box-shadow: none; background: var(--amber); color: var(--on-amber); }
.isu-steps li.on b { color: var(--text); font-weight: 600; }
.isu-steps li.safe { display: block; margin-top: 18px; padding: 12px 10px 0 8px; border-top: 1px solid var(--hair); border-radius: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
/* phone: 7 bars + "Step 4 of 7 · next: stock" */
.isu-prog { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 2px 0 10px; }
.isu-prog span { height: 4px; border-radius: 2px; background: var(--surface-3); }
.isu-prog span.done { background: var(--good-fill); }
.isu-prog span.on { background: var(--amber); }
.isu-pnow { color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.isu-pnow b { color: var(--text-2); font-weight: 500; }
.isu .crumb { margin-bottom: 4px; }
.isu-h { margin: 6px 0; font: 700 26px/1.2 var(--font-d); letter-spacing: -.02em; color: var(--text); }
html[data-shell=phone] .isu-h { font-size: 23px; margin-top: 0; }
.isu-lead { color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 68ch; margin: 0 0 18px; }
.isu-lead.after { margin-top: 16px; }
.isu-sec { margin: 22px 0 8px; font: 600 14px var(--font); color: var(--text); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.isu-sec small { color: var(--muted); font-weight: 400; font-size: 13px; }
.isu-lh { margin: 26px 0 0; font: 600 16px var(--font-d); display: flex; align-items: baseline; gap: 10px; }
.isu-lh small { font: 400 13px var(--font); color: var(--muted); }
/* a cell reference: Inter, not mono (O and 0 look alike in mono) */
.cell { font: 500 12.5px var(--font); color: var(--text-2); background: var(--surface-2); border-radius: 5px; padding: 1px 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.isu .box { background: var(--surface); border-radius: var(--r-lg); }
.isu .box.tb { overflow-x: auto; }
.isu .tbl td, .isu .tbl th { vertical-align: middle; }
.isu .tbl td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: normal; }
.isu select, .isu input[type=text], .isu input[type=date] { min-height: 34px; height: 34px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--outline); color: var(--text); font: 400 13.5px var(--font); padding: 0 8px; }
.isu select { padding-right: 24px; max-width: 100%; }
.isu input.num { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.isu input.bad { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.isu .ok { color: var(--good); }
.isu .warnc { color: var(--warn); }
.isu .mut { color: var(--muted); }
.isu .est { color: var(--text-2); }
.isu .est::before { content: '~'; margin-right: 1px; color: var(--muted); }
.isu .grs { color: var(--muted); }
.isu .linkbtn { font-size: inherit; }
/* the footer: Back / Cancel + the amber Next (a blocked Next says why) */
.isu-foot { position: fixed; z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--bg); border-top: 1px solid var(--hair); }
html[data-shell=desktop] .isu-foot { left: var(--rail-w); right: 0; bottom: 0; padding: 14px 32px; }
html[data-shell=phone] .isu-foot { left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--sab)); }
html[data-shell=phone] .isu-foot .btn { flex: 1; }
.isu-foot .note { flex: 1; color: var(--muted); font-size: 13px; }
html[data-shell=phone] .isu-foot .note { display: none; }
.isu-why { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--warn); font-size: 13.5px; line-height: 1.35; }
.isu-why .i { width: 17px; height: 17px; flex: none; }
html[data-shell=phone] .isu-why { flex: 1 1 100%; }
.isu-foot .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
/* step 1 */
.isu-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.isu-file .fi { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.isu-file .fi .i { width: 22px; height: 22px; }
.isu-file .t { flex: 1; min-width: 0; }
.isu-file .t b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isu-file .t small { color: var(--muted); font-size: 13px; }
.lay .lr { display: grid; grid-template-columns: 150px 1fr; gap: 4px 18px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.lay .lr:last-child { border-bottom: 0; }
.lay .lnm b { display: block; font-size: 14.5px; }
.lay .lnm small { color: var(--muted); font-size: 12.5px; }
.lay .cols { display: flex; flex-wrap: wrap; align-items: flex-start; align-self: start; gap: 6px; }
.lay .colh { font-size: 13px; color: var(--text); background: var(--surface-2); border-radius: 6px; padding: 3px 8px; }
.lay .colh i { font-style: normal; color: var(--muted); margin-right: 5px; font-weight: 500; font-size: 12px; }
.lay .xt { grid-column: 2; color: var(--muted); font-size: 13px; }
html[data-shell=phone] .lay .lr { grid-template-columns: 1fr; }
html[data-shell=phone] .lay .xt { grid-column: 1; }
/* step 2: real tick boxes (the app's checkboxes are switches elsewhere). Class names here avoid the app's global
   ones: .tick (the counters' pop animation), .ln (a listing line), .tot (+ .tot draws a hairline), .neg (the feed's pill). */
.isu .tbox { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--outline); color: var(--on-amber); }
.isu .tbox.on { background: var(--amber); box-shadow: none; }
.isu .tbox:disabled { opacity: .35; cursor: default; }
.isu .tbox .i { width: 14px; height: 14px; stroke-width: 2.4; }
.isu-tabs td.ck { width: 36px; }
.isu-tabs td { white-space: normal; }
html[data-shell=phone] .isu-tabs td, html[data-shell=phone] .isu-tabs th { padding-left: 8px; padding-right: 8px; }
.isu-tabs tr.off td { color: var(--muted); }
.isu-tabs tr.on .tn { color: var(--text); }
.isu-tabs tr.more td { color: var(--muted); font-size: 13px; }
.cnt-line { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13px; margin: 10px 2px; }
.cnt-line b { color: var(--text-2); font-weight: 500; }
/* step 3 */
.samp { color: var(--text-2); font-size: 13px; white-space: normal; }
.samp span + span::before { content: ', '; color: var(--muted); }
.isu-cols select { width: 220px; }
html[data-shell=phone] .isu-cols td:last-child { width: 48%; }
html[data-shell=phone] .isu-cols select { width: 100%; }
.tbls { display: grid; gap: 10px; }
html[data-shell=desktop] .tbls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tbx { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.tbx .top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tbx .top b { flex: 1; font-size: 14.5px; }
.tbx .top .ok, .tbx .top .mut { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.tbx .top .ok .i { width: 15px; height: 15px; }
.tbx .mp { display: grid; grid-template-columns: auto 14px 1fr; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--text-2); }
.tbx .mp .k { color: var(--text); }
.tbx .mp .ar { color: var(--muted); }
.tbx .ft { color: var(--muted); font-size: 12.5px; }
.tbx .rng { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tbx .rng input { width: 110px; }
.remember { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 10px; }
.remember .t { flex: 1; }
.remember .t b { display: block; font-size: 14.5px; }
.remember .t small { color: var(--muted); font-size: 13px; }
/* step 4 */
.isu-note { display: flex; gap: 12px; padding: 14px 16px; background: var(--amber-tint); border-radius: var(--r-lg); color: var(--text); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.isu-note .i { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 1px; }
.isu-note b { font-weight: 600; }
.rowtbl td, .rowtbl th { padding: 7px 5px; }
.rowtbl td.rn { color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; white-space: nowrap; }
.isu .rowtbl td small { white-space: nowrap; }
.isu .rowtbl select { padding: 0 18px 0 7px; background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; }   /* "~128 GB" and "In stock · Not ready" fit their widths */
.rowtbl td small.warnc { white-space: normal; }
.rowtbl tr.stk td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.rowtbl tr.stk { background: rgba(255, 181, 71, .045); }
.rowtbl tr.skip .nm { color: var(--muted); }
/* the approved picture's widths (the design text said 150 / 90 / 80 / 168: the table then overflows at 1440 px) */
.rowtbl select.m { width: 128px; }
.rowtbl select.s { width: 86px; }
.rowtbl select.c { width: 76px; }
.rowtbl select.k { width: 150px; }
.isu select.k.stk { border-color: rgba(255, 181, 71, .55); color: var(--amber-text); }
.rowtbl .nm { font-weight: 500; }
.rcards { display: grid; gap: 8px; }
.rcard { padding: 12px 14px; display: grid; gap: 10px; }
.rcard.stk { box-shadow: inset 3px 0 0 var(--amber); background: #1b1f19; }
.rcard > small { margin-top: -6px; color: var(--muted); font-size: 12.5px; }
.rcard > small.warnc { color: var(--warn); }
.rcard .t1 { display: flex; align-items: baseline; gap: 8px; }
.rcard .t1 .rn { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcard .t1 b { flex: 1; font-weight: 500; min-width: 0; }
.rcard.skip .t1 b { color: var(--muted); }
.rcard .t1 .mon { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcard .g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rcard .g label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.rcard .g select { width: 100%; }
/* step 5: the ledger (the one strong element); phone = the same lines as a receipt */
.ledgers { display: grid; gap: 10px; }
.ledger { padding: 16px 18px; display: grid; gap: 14px; }
.ledger .lh { display: flex; align-items: baseline; gap: 10px; }
.ledger .lh b { font: 600 16px var(--font); flex: 1; }
.ledger .lh .shelf { color: var(--text-2); font-size: 13.5px; }
.ledger .lh .shelf strong { font: 600 15px var(--font); color: var(--text); font-variant-numeric: tabular-nums; }
.eq { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 0; }
.eq .term { display: grid; justify-items: start; min-width: 64px; }
.eq .term .v { font: 600 34px/1 var(--font-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eq .term .l { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.3; max-width: 12ch; }
.eq .op { font: 500 26px/34px var(--font-d); color: var(--muted); padding: 0 14px; }
.eq .term.here .v { color: var(--amber); }
.eq .term.sumt .v { color: var(--text); }
.eq .term.zero .v { color: var(--over); }
.eq .term.lneg .v { color: var(--warn); }
.rcpt { display: grid; grid-template-columns: 18px 1fr auto; align-items: baseline; gap: 0 8px; }
.rcpt .o { color: var(--muted); font: 500 16px var(--font-d); }
.rcpt .l { color: var(--text-2); font-size: 13.5px; padding: 5px 0; }
.rcpt .v { font: 600 22px/1.2 var(--font-d); font-variant-numeric: tabular-nums; text-align: right; }
.rcpt .sumt { border-top: 1px solid var(--outline); }
.rcpt .here { color: var(--amber); } .rcpt .zero { color: var(--over); } .rcpt .lneg { color: var(--warn); }
.ledger .lf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
.ledger .lf .split { display: flex; gap: 12px; align-items: center; }
.ledger .lf .split label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.ledger .lf input.n2 { width: 44px; text-align: center; min-height: 30px; height: 30px; }
.ledger .lf .uprice { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.ledger .lf .uprice input { width: 76px; min-height: 30px; height: 30px; }
.ledger .lf .from { color: var(--muted); }
html[data-shell=phone] .ledger .lf .split { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 8px; }
html[data-shell=phone] .ledger .lf .split label { display: grid; gap: 4px; font-size: 12px; }
html[data-shell=phone] .ledger .lf .split input.n2 { width: 100%; }
.lwarn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--warn-tint); color: var(--text); font-size: 13.5px; }
.lwarn.bad { background: var(--bad-tint); }
.lwarn .i { width: 18px; height: 18px; color: var(--warn); flex: none; }
.lwarn.bad .i { color: var(--bad); }
.earlier { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.earlier .q { font-size: 14px; line-height: 1.45; }
.earlier .q b { font-weight: 600; }
.earlier .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13.5px; color: var(--text-2); }
.earlier .row label { display: inline-flex; align-items: center; gap: 8px; }
.earlier .row input.d { width: 150px; }
.earlier .seg { background: var(--surface); }
.earlier .ebad { display: flex; align-items: center; gap: 8px; color: var(--warn); font-size: 13px; }
.earlier .ebad .i { width: 16px; height: 16px; }
.quiet { color: var(--muted); font-size: 13px; padding: 4px 2px; line-height: 1.45; }
.sumline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 14px 16px; font-size: 14px; color: var(--text-2); }
.sumline b { color: var(--text); font-variant-numeric: tabular-nums; }
.sumline .ok, .sumline .warnc { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.sumline .i { width: 15px; height: 15px; }
/* step 6 */
.ctbl td.am, .ctbl .am { font-variant-numeric: tabular-nums; color: var(--text-2); }
.ctbl select { width: 230px; }
html[data-shell=phone] .ctbl select { width: 100%; margin-top: 8px; }
/* step 7 */
.creates .cr { display: grid; grid-template-columns: 56px 1fr; gap: 2px 14px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.creates .cr:last-child { border-bottom: 0; }
.creates .cr .v { grid-row: span 2; font: 600 26px/1.1 var(--font-d); font-variant-numeric: tabular-nums; text-align: right; }
.creates .cr b { font-size: 14.5px; font-weight: 500; }
.creates .cr small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.money td { font-variant-numeric: tabular-nums; }
.money tfoot td { font-weight: 600; border-top: 1px solid var(--outline); border-bottom: 0; }
.money .neg { color: var(--bad); font: inherit; }   /* the feed's .neg ("negotiable" pill) would shrink it */
.money .pos { color: var(--good); }
.why .w { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--hair); font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.why .w:last-child { border-bottom: 0; }
.why .w .d { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.why .w.tot { color: var(--text); }
.gk .g1 { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--hair); font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.gk .g1:last-child { border-bottom: 0; }
.gk .g1 .i { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.gk .g1 b { color: var(--text); font-weight: 500; }
.gk .g1 small { display: block; margin-top: 3px; font-size: 12.5px; }
/* no setup open (a reload after Import / Cancel elsewhere) */
.isu-none .empty .btn { margin-top: 14px; }
/* Settings › Data: the entry */
.setimp { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 2px 12px; }
.setimp .help { padding: 0; }
/* ---------------------------------------------------------------- exp0.3 step 5c: the inventory screen + the editor's Identity (design Part D,
   mockups 1-4; mock.css was the reference). Names checked against this file first: the app already has .ph (a photo
   slide), .pr, .d, .k, .r, .t, .none, .full, so the pile head is .plh, its right side .plr, the status dots .sdot, the
   tag's key .ik, the check bar's text .ct, a full-width identity field .idfull. .seg is the app's own switch (P&L). */
/* "~" = estimated or guessed, everywhere outside the import page (which has its own muted one) */
.est::before { content: '~'; margin-right: 1px; color: var(--amber-text); }
/* the check bar */
.chkbar { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 11px 14px; border-radius: var(--r-lg); background: var(--amber-tint); color: var(--text); }
.chkbar > .i { width: 18px; height: 18px; color: var(--amber-text); flex: none; }
.chkbar .ct { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.chkbar .ct b { color: var(--amber-text); font-weight: 600; }
.chkbar .ct small { display: block; color: var(--text-2); font-size: 12.5px; }
.chkbar .btn { flex: none; }
.lastst { margin: 0 2px 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chkbar + .lastst { margin-top: -4px; }
/* the money cards' estimated part */
.stat .est2 { margin-top: 2px; font: 500 13.5px/1.3 var(--font); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* search + view switch */
.invtools { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.invsearch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 6px 0 12px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); color: var(--muted); cursor: text; }
.invsearch:focus-within { box-shadow: inset 0 0 0 1.5px var(--focus); }
.invsearch > .i { width: 16px; height: 16px; flex: none; }
.invsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; padding: 0; min-height: 36px; box-shadow: none; }
.invsearch input::placeholder { color: var(--muted); }
.invqx { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.invqx:hover { background: var(--surface-2); color: var(--text); }
.invqx .i { width: 15px; height: 15px; }
.invqx[hidden] { display: none; }
.foundline { margin: 2px 2px 10px; font-size: 13px; color: var(--text-2); }
/* piles (phone) */
.piles { display: flex; flex-direction: column; gap: 8px; }
.pile { border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.plh { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; }
.plh:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--r-lg); }
.chev { display: inline-grid; place-items: center; flex: none; }
.chev .i { width: 16px; height: 16px; color: var(--muted); transition: transform .18s var(--ease); }
.pile.open .chev .i, .invtbl tr.pr0:not(.pclosed) .chev .i { transform: rotate(90deg); }
.plm { min-width: 0; }
.pn { font: 600 15px/1.25 var(--font-d); }
.pn .psz { font: 400 14px var(--font); color: var(--text-2); margin-left: 5px; }
.px { margin-left: 6px; color: var(--amber-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pm { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.stdots { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.sdot { display: inline-flex; align-items: center; gap: 5px; }
.sdot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sdot.del { color: #8fb3ff; } .sdot.nr { color: var(--warn); } .sdot.rd { color: var(--good); }
.need { color: var(--amber-text); }
.plr { text-align: right; font-variant-numeric: tabular-nums; }
.plr b { display: block; font: 600 15px/1.25 var(--font); white-space: nowrap; }
.plr small { color: var(--muted); font-size: 12.5px; }
.kids[hidden] { display: none; }
.kids { border-top: 1px solid var(--hair); }
.pk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px 10px 42px; border-top: 1px solid var(--hair); cursor: pointer; }
.pk:first-child { border-top: 0; }
.pk:hover { background: var(--surface-2); }
.pk:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pkm { min-width: 0; }
.pk .l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.pk .l2 { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.pkcol { color: var(--text); }
.pkr { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.pkr b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
/* the identity tag: the last digits, like the sticker on a phone's back */
.idt { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text);
  font: 500 12.5px/1.6 var(--font); font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.idt .ik { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.idt.none { background: none; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .45); color: var(--amber-text); }
.irow .im .idt { flex: none; }
/* with the tag the line can be too long beside the prices: it wraps between its parts, never inside "0 days" */
.irow .im:has(.idt) { flex-wrap: wrap; row-gap: 4px; }
.irow .im > span:last-child:not(.stp):not(.idt) { white-space: nowrap; }
.ismall .idt { margin-left: 2px; vertical-align: 1px; }
/* PC: the piles as table rows */
.invtbl tr.pr0 td { background: var(--surface-2); }
.invtbl tr.pr0 .pcell { gap: 10px; }
.invtbl tr.pr0 .px { margin-left: 6px; }
.invtbl tr.pr0 td small { display: block; }
.invtbl tr.pr0 .stdots { gap: 4px 10px; }
.invtbl tr.pkid td:first-child { padding-left: 46px; }
.invtbl tr.pkid td { padding-top: 8px; padding-bottom: 8px; }
.invtbl tr[hidden] { display: none; }
.invtbl td.r small { display: block; font-size: 12px; }
.pkc { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.piletbl tr.pr0:focus-visible, .piletbl tr.pkid:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* the editor's Identity block */
.idgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
html[data-shell=phone] .idgrid { grid-template-columns: 1fr; }
.idgrid .idfull { grid-column: 1 / -1; }
.idlab { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.idin { position: relative; }
.idin input { width: 100%; font-variant-numeric: tabular-nums; letter-spacing: .03em; padding-right: 34px; }
.idin > .i { position: absolute; right: 10px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--good); pointer-events: none; }
.idin.bad input { box-shadow: inset 0 0 0 1.5px var(--bad); }
.idmsg { margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: var(--muted); min-height: 0; }
.idmsg:empty { display: none; }
.idmsg.bad { color: var(--bad); }
.idmsg.warn { color: var(--warn); }
.idmsg.good { color: var(--good); }
#iIdent .hintline { margin-top: 8px; }
.estpill { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 14px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.estpill input[type=checkbox] { width: 32px; height: 20px; margin-top: 1px; border-radius: 10px; }      /* the app's switch, smaller */
.estpill input[type=checkbox]::before { left: 3px; top: 3px; width: 14px; height: 14px; }
.estpill input[type=checkbox]:checked::before { transform: translateX(12px); }
.estpill b { color: var(--text); font-weight: 600; }

/* ================================================================ exp0.3 step 5d: the stocktake (design Part E, mockups 5 + 6)
   Names checked against the app's global classes first: .th (the photo thumbs) and .bar are taken, so the card's
   thumbnails are .fthumbs and the progress bar .pbar. The one strong element is a card's verdict line (.mline). */
.stklead { margin: 4px 2px 0; color: var(--text-2); font-size: 13.5px; max-width: 72ch; line-height: 1.5; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 6px; }
.way { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); text-align: left; min-width: 0; }
.way > .i { width: 22px; height: 22px; color: var(--amber-text); flex: none; }
.way > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.way b { font: 600 14.5px/1.3 var(--font-d); color: var(--text); }
.way small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
label.way { cursor: pointer; transition: background-color .15s; }
label.way:hover { background: var(--surface-2); }
label.way:focus-within, .way label.btn:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.waybtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.waybtns label.btn { cursor: pointer; }
.pastebox { display: flex; gap: 8px; margin-top: 7px; align-items: flex-start; }
.pastebox textarea { flex: 1; min-height: 38px; height: 38px; padding: 9px 11px; resize: vertical; font-size: 13.5px; line-height: 1.35;
  font-variant-numeric: tabular-nums; }
.pastebox .btn { flex: none; min-height: 38px; }
.stkadd { display: flex; align-items: center; gap: 8px; margin: 2px 4px 4px; font-size: 13px; color: var(--muted); }
.stkman { margin: 6px 0 4px; padding: 14px 16px; }
.stkmanh { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.stkmanh b { font: 600 14.5px/1.3 var(--font-d); }
.stkmanh small { font-size: 12.5px; color: var(--muted); }
.stkmang { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stkmang select, .stkmang input { min-height: 38px; padding-top: 8px; padding-bottom: 8px; font-size: 13.5px; }
.stkmanb { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.progress { display: flex; align-items: center; gap: 12px; margin: 12px 2px 4px; font-size: 13px; color: var(--text-2); }
.progress.bad { color: var(--bad); }
.pbar { flex: 1; max-width: 360px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .3s var(--ease); }
.pbar.busy i { width: 35%; animation: stkslide 1.2s var(--ease) infinite; }
@keyframes stkslide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
#stkRes h2 { display: flex; align-items: baseline; gap: 8px; }
#stkRes h2 small { font: 400 13px var(--font); color: var(--muted); }
.stkcols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stkempty { padding: 16px; font-size: 13.5px; color: var(--muted); }
.fcard { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); margin-bottom: 8px; }
.fthumbs { display: flex; gap: 3px; align-items: flex-start; }
.fthumbs canvas, .fthumbs span { width: 25px; height: 54px; border-radius: 4px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--hair); object-fit: cover; }
.fthumbs canvas:only-child, .fthumbs span:only-child { width: 54px; }
.fthumbs span { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.fbody { min-width: 0; }
.fhead { display: flex; align-items: flex-start; gap: 8px; }
.fn { flex: 1; min-width: 0; font: 600 14.5px/1.3 var(--font-d); color: var(--text); }
.fbtns { display: flex; align-items: center; gap: 6px; margin: -6px -4px 0 0; }
.fbtns .linkbtn { font-size: 12.5px; min-height: 30px; padding: 4px 6px; }
.fx { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); }
.fx:hover { background: var(--surface-2); color: var(--text); }
.fx .i { width: 16px; height: 16px; }
.fd { margin-top: 3px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; line-height: 1.55; overflow-wrap: anywhere; }
.mline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; margin-top: 9px; padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.45; }
.mline > .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.mline .grow { flex: 1 1 240px; min-width: 0; }
.mline b { color: var(--text); font-weight: 600; }
.mline select { flex: 0 1 280px; margin-left: 24px; min-height: 32px; padding: 4px 30px 4px 10px; font-size: 13px; background-color: rgba(0, 0, 0, .22); }
.m-known { background: var(--good-tint); color: var(--good); }
.m-fill { background: var(--amber-tint); color: var(--amber-text); }
.m-new { background: var(--surface-2); color: var(--text-2); }
.m-sold { background: var(--bad-tint); color: var(--bad); }
.m-diff { background: var(--warn-tint); color: var(--warn); }
.newf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.newf input, .newf select { min-height: 36px; padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
.notseen { padding: 4px 16px 6px; }
.notseen .nrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); gap: 8px 12px; align-items: center; padding: 10px 0;
  border-top: 1px solid var(--hair); font-size: 13.5px; }
.notseen .nrow:first-child { border-top: 0; }
.notseen .nname small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.notseen select { min-height: 34px; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.nsx { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nsx[hidden] { display: none; }
.nsx input { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.nsx input[type=date] { width: 100%; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-md); color: var(--text); color-scheme: dark; }
.nsnone { padding: 12px 0 4px; font-size: 13.5px; color: var(--good); }
.nsmore { display: block; margin: 2px 0; }
.notseen .hintline { margin: 8px 0 6px; }
.applybar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px;
  border-radius: var(--r-lg); background: var(--raised); box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
.applybar .t { flex: 1; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.applybar .t b { color: var(--text); }
.applybar .stop { color: var(--warn); }
.applybar .btn:disabled { opacity: .45; cursor: not-allowed; }
.stklive { margin: 10px 0; padding: 12px; border-radius: var(--r-lg); background: var(--surface); }
.livehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.livehead b { font: 600 14.5px/1.3 var(--font-d); }
.liveframe { position: relative; overflow: hidden; border-radius: var(--r-md); background: #000; aspect-ratio: 4 / 3; max-height: 60vh; }
.liveframe video { width: 100%; height: 100%; object-fit: cover; display: block; }
.livebox { position: absolute; inset: 22% 10%; border: 2px solid rgba(255, 198, 112, .8); border-radius: var(--r-md); pointer-events: none; }
.liveframe.hit .livebox { animation: stkhit .45s var(--ease); }
@keyframes stkhit { from { border-color: var(--good); background: rgba(95, 211, 154, .25); } to { border-color: rgba(255, 198, 112, .8); background: transparent; } }
.livesaid { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.livesaid.bad { color: var(--bad); }
html[data-shell=phone] .ways { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
html[data-shell=phone] .way { flex-direction: row; align-items: flex-start; gap: 12px; }
html[data-shell=phone] .way > div { flex: 1; }
html[data-shell=phone] .stkmang { grid-template-columns: 1fr 1fr; }
html[data-shell=phone] .applybar { bottom: calc(var(--sab) + 72px); flex-direction: column; align-items: stretch; gap: 10px; }
html[data-shell=phone] .mline .grow { flex: 1 1 0; }
html[data-shell=phone] .mline select { margin-left: 24px; flex: 1 1 calc(100% - 24px); }
html[data-shell=phone] .notseen { padding: 2px 14px 6px; }
html[data-shell=phone] .notseen .nrow { grid-template-columns: minmax(0, 1fr) 148px; gap: 8px 10px; }
html[data-shell=phone] .notseen select { font-size: 12.5px; padding-left: 10px; }
.lastst .linkbtn { font-size: 12.5px; min-height: 0; padding: 0; }

/* exp0.4: "Przed aktywacją" — the chip under the Feed tabs and its cards. No emoji; the clock icon is the badge. */
/* exp0.4: Debug > System latency table */
.lwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ltab { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12.5px; }
.ltab th, .ltab td { padding: 6px 8px; text-align: right; border-top: 1px solid var(--hair); }
.ltab th:first-child, .ltab td:first-child { text-align: left; }
.ltab thead th { color: var(--muted); font-weight: 600; border-top: 0; }
.ltab tbody tr:first-child td { border-top: 1px solid var(--hair); }
html[data-shell=phone] .ltab { font-size: 11.5px; }
html[data-shell=phone] .ltab th, html[data-shell=phone] .ltab td { padding: 5px 4px; }

/* ================================================================ exp0.4.5: auth pages (step 4)
   Login / register / terms / privacy are separate server-rendered pages, but they use the same
   Kapton tokens as the app: dark solder-mask, one amber action, hairlines, three radii. No
   gradients, no external assets, no inline styles (the CSP forbids them). */
.authpage { min-height: 100vh; min-height: 100lvh; display: grid; place-items: center; padding: 28px 16px calc(28px + var(--sab)); }
.authwrap { width: min(430px, 100%); }
.authbrand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 20px;
  font: 600 21px/1 var(--font-d); letter-spacing: -.02em; }
.authbrand img { width: 34px; height: 34px; }
.authcard { background: var(--surface); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: inset 0 1px 0 var(--hair); }
.authcard h1 { font: 700 29px/1.15 var(--font-d); letter-spacing: -.025em; margin: 0 0 6px; }
.authsub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.authfield { display: block; margin: 0 0 14px; }
.authfield > span { display: block; font: 600 12.5px/1.3 var(--font); color: var(--text-2); margin: 0 0 6px; }
.authfield input { width: 100%; min-height: 44px; }
.authrule { color: var(--muted); font-size: 12px; margin: -7px 0 14px; }
.authrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; margin: 2px 0 10px;
  color: var(--text-2); font-size: 14px; }
.authrow input[type=checkbox] { flex: none; }
.authsubmit { width: 100%; margin-top: 8px; }
.autherr { background: var(--bad-tint); color: #f6b3ad; border-radius: var(--r-md); padding: 11px 13px; margin: 0 0 16px;
  font-size: 13.5px; line-height: 1.45; }
.autherr:focus { outline: 2px solid var(--bad); outline-offset: 2px; }
.authhelp { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 16px 0 0; }
.authalt { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.authalt a, .authlinks a { color: var(--amber-text); }
.authlang { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.langbtn { min-height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2);
  font: 500 12.5px/1 var(--font); }
.langbtn[aria-pressed=true] { background: var(--amber-tint); color: var(--amber-text); }
.langbtn:hover { background: var(--surface-2); }
.authfoot { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.authterms { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.authterms input[type=checkbox] { margin-top: 2px; }
.authtermstext { flex: 1; min-width: 0; }
.authtermstext label { display: block; cursor: pointer; }
.authlinks { display: inline-block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.authlegal { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.authlegal p { margin: 0 0 14px; }
.authlegal .placeholder { background: var(--warn-tint); color: var(--warn); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; }
.authback { margin-top: 6px; text-decoration: none; }
@media (max-width: 430px) {
  .authpage { padding: 16px 12px calc(20px + var(--sab)); align-items: start; }
  .authcard { padding: 22px 17px; }
  .authcard h1 { font-size: 26px; }
}

/* exp0.4.5 step 5: the forced change-password screen. It replaces the shell: the nav and the feed
   must not be usable while must_change_password=1. */
#forced { min-height: 100vh; min-height: 100lvh; display: grid; place-items: center; padding: 28px 16px calc(28px + var(--sab)); }
.forcedcard { width: min(450px, 100%); background: var(--surface); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: inset 0 1px 0 var(--hair); }
.forcedcard h1 { font: 700 27px/1.15 var(--font-d); letter-spacing: -.02em; margin: 0 0 6px; }
.forced-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 430px) { .forcedcard { padding: 22px 17px; } }

/* exp0.4.5 step 5: the account menu at the bottom of the desktop rail. */
html[data-shell=desktop] #railAccount { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--hair); }
.railacc { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px; }
.railu { min-width: 0; }
.railu b { display: block; font: 500 13px/1.3 var(--font); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.railu small { display: block; font-size: 11.5px; color: var(--muted); }
.railacc .linkbtn { flex: none; min-height: 30px; padding: 4px 0; font-size: 12.5px; }

/* exp0.4.5 step 6: the Profile / Site logins panels in Settings > Account. */
.tierbadge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: var(--pill);
  background: var(--surface-2); color: var(--text-2); font: 600 12px/1 var(--font); }
.tierbadge.premium { background: var(--amber-tint); color: var(--amber-text); }
.tierbadge.admin { background: var(--good-tint); color: var(--good); }
.kv .tierbadge { justify-self: start; width: max-content; }
.sitepanel { border-top: 1px solid var(--hair); padding: 14px 0; }
.sitepanel:first-child { border-top: 0; padding-top: 4px; }
.sitehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sitehead b { font: 600 14.5px/1.2 var(--font); }
.sitemeta { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 2px 0 10px; }
.sitetail { font-family: var(--mono); color: var(--text-2); }
.siteacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.siteacts .btn { min-height: 34px; }
.sitedisabled { opacity: .62; }
.sessrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
  padding: 8px 0; border-bottom: 1px solid var(--hair); }
.sessrow:last-child { border-bottom: 0; }
.sessrow .sessinfo { min-width: 0; }
.sessrow b { display: block; font: 500 13.5px/1.3 var(--font); color: var(--text-2); overflow-wrap: anywhere; }
.sessrow small { display: block; color: var(--muted); font-size: 12px; }
.sessnow { color: var(--good); font-size: 12px; font-weight: 600; }

/* exp0.4.5 step 8: a category or watch the current plan does not allow. Amber = act here (upgrade);
   the lock is a line icon, never an emoji. */
.lockbadge { display: inline-flex; align-items: center; gap: 4px; min-height: 18px; padding: 0 7px; border-radius: var(--pill);
  background: var(--amber-tint); color: var(--amber-text); font: 600 10.5px/1 var(--font); white-space: nowrap; }
.lockbadge .i { width: 12px; height: 12px; }
.ctile.locked { opacity: .72; }
.ctile.locked .lockbadge { margin-top: 3px; }
.rcat.locked .i, .crow.locked .i { color: var(--amber-text); }
.rcat.locked .rcn, .crow.locked .cn { color: var(--muted); }
.wcard.locked { opacity: .88; }
.locknote { display: flex; align-items: center; gap: 6px; color: var(--amber-text); font-size: 12.5px; line-height: 1.4; margin: 4px 0 2px; }
.locknote .i { width: 15px; height: 15px; }

/* exp0.4.5: the Standard Tools screen is the Premium card, not an empty box. */
.premcard { display: grid; gap: 18px; max-width: 640px; margin-top: 18px; padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 1px 0 var(--hair); }
.premhead { display: flex; gap: 14px; align-items: flex-start; }
.premico { display: inline-flex; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--amber-tint);
  color: var(--amber-text); align-items: center; justify-content: center; flex: none; }
.premico .i { width: 24px; height: 24px; }
.premhead h3 { font: 700 26px/1.1 var(--font-d); letter-spacing: -.02em; margin: 0 0 4px; }
.premsub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.premlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.premlist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.premlist .i { width: 18px; height: 18px; color: var(--good); flex: none; margin-top: 1px; }
.premactions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.premactions .btn { min-width: 220px; }
@media (max-width: 430px) { .premcard { padding: 18px; } .premactions .btn { width: 100%; } }


/* exp0.4.5 step 13: the admin's Users and Invites screen. Kapton: hairline rows, one amber action,
   the 8/10/14 radii, no gradients. Phone first: every row stacks; the buttons wrap below the facts. */
.usersPage { display: grid; gap: 14px; max-width: 1040px; }
.usersHead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.usersSearch { display: flex; gap: 8px; align-items: center; flex: 0 1 420px; }
.usersSearch input { flex: 1 1 auto; min-width: 0; }
.usersCard { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px 16px; }
.usersCard h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.userList { display: grid; }
.urow { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--hair); }
.urow:first-child { border-top: 0; padding-top: 4px; }
.uhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.uhead b { font-weight: 600; overflow-wrap: anywhere; }
.umeta { color: var(--muted); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.uact { display: flex; gap: 6px; flex-wrap: wrap; }
.ubadge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--hair); }
.ubadge.me { color: var(--amber); border-color: rgba(255, 181, 71, .35); }
.ubadge.admin { color: var(--text); background: var(--surface-3); }
.ubadge.prem { color: var(--amber); }
.ubadge.ok { color: var(--good); }
.ubadge.bad { color: var(--bad); }
.uedit, .udelete { display: grid; gap: 2px; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--hair);
  border-radius: var(--r-sm); background: #121714; }
.uedit h4, .udelete h4 { margin: 0 0 4px; font: 600 14px var(--font-d); color: var(--text); }
.uedit label.row, .udelete label.row { min-height: 46px; }
.uedit label.row input[type=email], .uedit label.row input[type=text], .udelete label.row input[type=email] { width: 240px; max-width: 60%; }
.uedit label.row input[type=date] { width: 160px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; border-bottom: 1px solid var(--hair); }
.copyrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copyrow input { flex: 1 1 220px; min-width: 0; font-family: var(--font); letter-spacing: .04em; }
.resetbox { border-color: rgba(255, 181, 71, .35); background: #1a1710; }
.inviteForm { display: grid; gap: 0; margin: 4px 0 10px; }
.inviteForm label.row input[type=number] { width: 110px; }
.inviteCodeBox { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid rgba(255, 181, 71, .45);
  border-radius: var(--r-sm); background: #1a1710; }
.inviteCodeBox h3 { margin: 0 0 2px; font-size: 14px; color: var(--amber); }
.irow.invite { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--hair); }
.irow.invite:first-child { border-top: 0; padding-top: 4px; }
html[data-shell=phone] .usersSearch { flex: 1 1 100%; }
html[data-shell=phone] .uedit label.row, html[data-shell=phone] .udelete label.row { align-items: stretch; flex-direction: column; gap: 4px; }
html[data-shell=phone] .uedit label.row input, html[data-shell=phone] .udelete label.row input { width: 100%; max-width: 100%; }
.irow.invite { grid-template-columns: minmax(0, 1fr); }
.inviteCodeLabel { margin: 4px 0 2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
