
@font-face { font-family:"Alfa Slab One"; src:url("/fonts/AlfaSlabOne-latin.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Instrument Sans"; src:url("/fonts/InstrumentSans-latin.woff2") format("woff2"); font-weight:400 700; font-style:normal; font-display:swap; }
@font-face { font-family:"Spline Sans Mono"; src:url("/fonts/SplineSansMono-latin.woff2") format("woff2"); font-weight:300 700; font-style:normal; font-display:swap; }

/* Tokens, Day (light). Names and values are the Local Pickup website's own. */
:root {
  color-scheme:light;
  --color-background-body:#F4F2EE; --color-background-surface:#FFFFFF; --color-background-card:#FBFAF7; --color-background-muted:#E7ECEC; --color-background-inverted:#121416;
  --color-on-dark:#FF5A4E; --color-on-dark-dim:#FF5A4E24; --color-on-dark-glow:#FF5A4E99; --color-on-dark-label:#C9CED1;
  --color-text-primary:#151719; --color-text-secondary:#545A5E; --color-text-accent:#B3201A;
  --color-border:#D7DCDC; --color-border-emphasized:#9AA2A4;
  --color-accent:#D3261E; --color-accent-hover:#B3201A; --color-on-accent:#FFFFFF; --color-accent-muted:#FBDAD7;
  --color-success:#257A46; --color-success-muted:#DDF1E4; --color-warning:#8A5A00; --color-warning-muted:#FBEBC8; --color-error:#B42318;
  --tile:#E6E9E8; --glass:#DFF1F2B3; --glass-shine:#FFFFFF66; --glass-shine-2:#FFFFFF26;
  --paper:#F6EFE0; --paper-ink:#2A2620; --paper-ink-soft:#5E554A; --slot:#5A0F0B; --disp-highlight:#FFFFFF40;
  --tag-bg:#FFFFFF; --tag-ink:#151719; --phone-body:#151719;
  /* The white a padded main photo really gets (the same in both themes), for its preview. */
  --photo-pad:#FFFFFF;
  --color-overlay-hover:#0000000D; --shadow-color-low:#15171926; --shadow-color-med:#15171952; --shadow-color-high:#15171973; --shadow-inset-color:#0000003D;
  --walnut:#8A5530; --walnut-dark:#5A3420; --drill:#F2B705; --drill-dark:#1E1E1E; --metal:#9AA2A4;
  --flame:#E8551F; --flame-dark:#B83C10; --wool:#2F4A6E; --wool-red:#C8102E; --wool-cream:#EFE6D2; --knob:#2A2620;
  --radius-inner:4px; --radius-element:10px; --radius-container:18px; --radius-page:28px; --radius-full:999px;
  --shadow-low:0 2px 4px var(--shadow-color-low);
  --shadow-med:0 12px 26px -12px var(--shadow-color-med);
  --shadow-high:0 30px 56px -26px var(--shadow-color-high);
  --shadow-inset-selected:inset 0 2px 5px var(--shadow-inset-color);
  --duration-fast:150ms; --duration-medium:400ms; --duration-slow:950ms;
  --font-family-heading:"Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --font-family-body:"Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-code:"Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
/* Tokens, After hours (dark), from the device setting. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme:dark;
    --color-background-body:#0F1112; --color-background-surface:#1A1D1F; --color-background-card:#22262A; --color-background-muted:#15181A; --color-background-inverted:#050607;
    --color-on-dark:#FF5A4E; --color-on-dark-dim:#FF5A4E1F; --color-on-dark-glow:#FF5A4EAA; --color-on-dark-label:#B9C0C4;
    --color-text-primary:#EEF0F0; --color-text-secondary:#A2A9AD; --color-text-accent:#FF7A70;
    --color-border:#30353A; --color-border-emphasized:#566067;
    --color-accent:#FF5A4E; --color-accent-hover:#FF7A70; --color-on-accent:#1C0605; --color-accent-muted:#3E1513;
    --color-success:#5FD68A; --color-success-muted:#13301F; --color-warning:#F2BE4B; --color-warning-muted:#3A2C0C; --color-error:#FF7A6E;
    --tile:#171A1C; --glass:#9FD8DD1F; --glass-shine:#FFFFFF0F; --glass-shine-2:#FFFFFF0A;
    --paper:#2B2924; --paper-ink:#F1EADB; --paper-ink-soft:#C3B9A8; --slot:#1C0605; --disp-highlight:#FFFFFF33;
    --tag-bg:#F6F4EF; --tag-ink:#151719; --phone-body:#050607;
    --color-overlay-hover:#FFFFFF14; --shadow-color-low:#0000008C; --shadow-color-med:#000000CC; --shadow-color-high:#000000; --shadow-inset-color:#000000B8;
  }
}

/* Base */
*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background-color:var(--color-background-body);
  background-image:linear-gradient(var(--tile) 2px, transparent 2px), linear-gradient(90deg, var(--tile) 2px, transparent 2px); background-size:36px 36px;
  color:var(--color-text-primary); font-family:var(--font-family-body); font-size:16px; line-height:1.55; }
a { color:var(--color-text-accent); }
:focus-visible { outline:3px solid var(--color-accent); outline-offset:3px; }
h1, h2, h3 { font-family:var(--font-family-heading); font-weight:400; font-synthesis:none; line-height:1.05; overflow-wrap:break-word; text-wrap:balance; }
:is(h1, h2, h3) :is(b, strong) { font-weight:400; }
h1 { font-size:30px; margin:.3em 0 .6em; }
h2 { font-size:21px; margin:1.4em 0 .55em; }
h3 { font-size:18px; margin:1.2em 0 .5em; }
code { font-family:var(--font-family-code); font-size:.9em; background:var(--color-background-muted); border-radius:var(--radius-inner); padding:1px 6px; overflow-wrap:anywhere; }
summary { font-weight:600; cursor:pointer; }

/* Header: the white bar, the slab wordmark, the company chip, the nav */
header.top { background:var(--color-background-surface); border-bottom:2px solid var(--color-border); }
header.top .bar { max-width:1000px; margin:0 auto; padding:12px 16px; display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center; }
header.top .brand { font-family:var(--font-family-heading); font-weight:400; font-size:23px; line-height:1.1; color:var(--color-accent); margin-right:auto; text-decoration:none; }
.company { display:inline-block; vertical-align:middle; margin-left:8px; font-family:var(--font-family-code); font-size:11px; font-weight:600; line-height:1.4; letter-spacing:.1em; text-transform:uppercase;
  color:var(--color-text-secondary); border:1.5px solid var(--color-border-emphasized); border-radius:var(--radius-inner); padding:2px 6px; transform:rotate(-3deg); }
header.top nav { display:flex; flex-wrap:wrap; gap:2px 16px; align-items:center; flex-basis:100%; font-size:15px; }
header.top nav > form { margin-left:auto; }
header.top nav a, header.top nav button.link { color:var(--color-text-primary); font-weight:600; text-decoration:none; padding:6px 0; }
header.top nav a:hover, header.top nav button.link:hover { color:var(--color-text-accent); }
header.top form { margin:0; }

main { max-width:1000px; margin:0 auto; padding:20px 16px 48px; }

/* Panels and messages */
.card { background:var(--color-background-surface); border:0; border-radius:var(--radius-container); box-shadow:var(--shadow-med); padding:20px; margin-bottom:16px; }
.card > :first-child { margin-top:0; }
.muted { color:var(--color-text-secondary); }
.small { font-size:.88rem; }
.flash { padding:12px 16px; border-radius:var(--radius-element); margin-bottom:14px; background:var(--color-success-muted); border:1.5px solid var(--color-success); color:var(--color-text-primary); }
.error { padding:12px 16px; border-radius:var(--radius-element); margin-bottom:14px; background:var(--color-accent-muted); border:1.5px solid var(--color-error); color:var(--color-error); }
/* A red pop-up bubble right above the button it is about (List or End on eBay failed), with a close x.
   .pop-anchor is the button's form; .pop-end (set by the script) lines it up on the right when the
   left edge would run off the screen. */
.pop-anchor { position:relative; }
.pop-error { position:absolute; left:0; bottom:calc(100% + 12px); z-index:20; display:flex; align-items:flex-start; gap:8px;
  width:max-content; max-width:min(360px, calc(100vw - 32px)); padding:10px 8px 10px 14px; border-radius:var(--radius-element);
  background:var(--color-accent); color:var(--color-on-accent); box-shadow:var(--shadow-high); font-size:.95rem; font-weight:600; line-height:1.4; text-align:left; }
.pop-error::after { content:""; position:absolute; top:100%; left:22px; border:8px solid transparent; border-top-color:var(--color-accent); }
.pop-error.pop-end { left:auto; right:0; }
.pop-error.pop-end::after { left:auto; right:22px; }
.pop-error p { margin:0; flex:1; min-width:0; overflow-wrap:anywhere; }
.pop-error .pop-close { flex:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; min-height:0; padding:0; margin:-2px 0;
  border:0; border-radius:var(--radius-full); background:transparent; color:inherit; font-size:20px; font-weight:700; line-height:1; text-decoration:none; }
.pop-error .pop-close:hover { background:var(--disp-highlight); color:inherit; }
.pop-error .pop-close:focus-visible { outline:2px solid var(--color-on-accent); outline-offset:1px; }
#ebay { scroll-margin-top:12px; }

/* Forms */
label { display:block; font-weight:700; margin:10px 0 4px; }
label.inline { display:inline-flex; gap:8px; align-items:center; font-weight:400; margin:6px 14px 6px 0; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], input[type=email], input[type=tel], select, textarea {
  width:100%; min-height:46px; padding:10px 12px; font:inherit; color:var(--color-text-primary); background:var(--color-background-card);
  border:1.5px solid var(--color-border-emphasized); border-radius:var(--radius-element); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color:var(--color-accent); }
input[type=checkbox], input[type=radio] { accent-color:var(--color-accent); width:18px; height:18px; flex:none; }
input[type=file] { font:inherit; max-width:100%; }
input[type=file]::file-selector-button { font:inherit; font-weight:700; color:var(--color-text-primary); background:var(--color-background-surface);
  border:2px solid var(--color-border-emphasized); border-radius:var(--radius-full); padding:8px 16px; margin-right:12px; cursor:pointer; }
textarea { min-height:110px; }
.row { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:0 14px; }

/* Buttons: the red pill by default (one main action per view), .secondary the white line button,
   .danger a line button in red text, .link a plain text link. */
button, .button, .btn-red, .btn-line { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 20px;
  font:inherit; font-weight:700; line-height:1.2; text-align:center; text-decoration:none; cursor:pointer;
  border:2px solid var(--color-accent); border-radius:var(--radius-full); background:var(--color-accent); color:var(--color-on-accent);
  transition:background-color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast); }
:is(button, .button, .btn-red):hover { background:var(--color-accent-hover); border-color:var(--color-accent-hover); color:var(--color-on-accent); }
:is(button, .button, .btn-red, .btn-line):active { transform:translateY(2px); }
:is(button, .button).secondary, .btn-line { background:var(--color-background-surface); color:var(--color-text-primary); border-color:var(--color-border-emphasized); }
:is(button, .button).secondary:hover, .btn-line:hover { background:var(--color-background-surface) linear-gradient(var(--color-overlay-hover), var(--color-overlay-hover)); color:var(--color-text-primary); border-color:var(--color-border-emphasized); }
:is(button, .button).danger { background:var(--color-background-surface); color:var(--color-text-accent); border-color:var(--color-text-accent); }
:is(button, .button).danger:hover { background:var(--color-accent-muted); color:var(--color-text-accent); border-color:var(--color-text-accent); }
:is(button, .button).link, :is(button, .button).link:hover { display:inline; min-height:0; padding:0; border:0; border-radius:0; background:none; color:var(--color-text-accent); font-weight:400; text-decoration:underline; transform:none; }
:is(button, .button)[disabled] { opacity:.55; cursor:not-allowed; transform:none; }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; align-items:center; }

/* Tables: mono labels on top, dashed rules between rows */
table { width:100%; border-collapse:collapse; background:var(--color-background-surface); }
th, td { text-align:left; padding:10px 12px; border-bottom:1px dashed var(--color-border); vertical-align:top; }
th { font-family:var(--font-family-code); font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--color-text-secondary); border-bottom:2px solid var(--color-border); vertical-align:bottom; }
td.num, th.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.table-wrap { overflow-x:auto; background:var(--color-background-surface); border-radius:var(--radius-container); box-shadow:var(--shadow-med); margin-bottom:16px; }
.table-wrap table { background:transparent; }
.table-wrap tr:last-child > td { border-bottom:0; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left:18px; }
.table-wrap th:last-child, .table-wrap td:last-child { padding-right:18px; }

/* Status pills: the site's exact pairs */
.pill { display:inline-block; padding:2px 8px; border-radius:var(--radius-full); font-family:var(--font-family-code); font-size:12px; font-weight:600; line-height:1.5;
  background:var(--color-background-muted); color:var(--color-text-secondary); margin:0 4px 4px 0; white-space:nowrap; vertical-align:middle; }
.pill.off, .pill.not_listed, .pill.delisted, .pill.expired { background:var(--color-background-muted); color:var(--color-text-secondary); }
.pill.live, .pill.paid { background:var(--color-success-muted); color:var(--color-success); }
.pill.needs_delist, .pill.unpaid { background:var(--color-warning-muted); color:var(--color-warning); }
.pill.sold { background:var(--color-text-primary); color:var(--color-background-surface); }
.pill.void { background:var(--color-accent-muted); color:var(--color-text-accent); }

/* Inventory tiles and photos */
.items { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.item { display:block; background:var(--color-background-surface); border-radius:var(--radius-container); box-shadow:var(--shadow-med); overflow:hidden; text-decoration:none; color:inherit;
  transition:box-shadow var(--duration-fast); }
a.item:hover { box-shadow:var(--shadow-high); }
.item .ph { aspect-ratio:1/1; background:var(--paper) center/cover no-repeat; color:var(--paper-ink-soft); display:flex; align-items:center; justify-content:center; }
.item .ph img { width:100%; height:100%; object-fit:cover; display:block; }
.item .body { padding:12px 14px; }
.item .title { font-weight:700; line-height:1.3; }
.photos { display:flex; flex-wrap:wrap; gap:12px; }
.photos figure { margin:0; width:140px; }
.photos img { width:140px; height:140px; object-fit:cover; border-radius:var(--radius-element); background:var(--paper); box-shadow:var(--shadow-low); display:block; }

/* Totals tiles */
.totals { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin-bottom:16px; }
.totals div { background:var(--color-background-surface); border-radius:var(--radius-element); box-shadow:var(--shadow-med); padding:14px 16px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
dl.card { display:grid; grid-template-columns:max-content 1fr; gap:6px 16px; }
dl.card dt { font-weight:600; }
dl.card dd { margin:0; }
input.short { width:7em; }
.totals b { display:block; font-family:var(--font-family-code); font-weight:600; font-size:1.4rem; line-height:1.3; font-variant-numeric:tabular-nums; }

.filters { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:8px 12px; align-items:end; }
.filters label { margin:0 0 4px; font-size:.85rem; }
.secret { display:inline-block; font-family:var(--font-family-code); font-weight:600; font-size:1.2rem; background:var(--paper); color:var(--paper-ink); padding:8px 14px; border-radius:var(--radius-inner); box-shadow:var(--shadow-low); }

/* Shop mode: the counter tablet. Touch sizes stay at least as large as before. */
body.shop { font-size:19px; }
body.shop main { max-width:900px; }
body.shop button, body.shop .button { padding:16px 22px; font-size:1.1rem; min-height:56px; }
body.shop input, body.shop select { padding:14px; font-size:1.15rem; }
body.shop input[type=text], body.shop input[type=search], body.shop input[type=password], body.shop input[type=number], body.shop select { min-height:56px; }
body.shop .item .title { font-size:1.05rem; }
.big-price { font-family:var(--font-family-code); font-size:2rem; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; }
.pre { white-space:pre-wrap; }
.mail-unread td { font-weight:700; }
.mail-out { border-left:4px solid var(--color-success); }
.pre.mail-body { overflow-wrap:anywhere; }
.actions.center { justify-content:center; }
img.hero { max-width:100%; max-height:360px; border-radius:var(--radius-container); box-shadow:var(--shadow-med); display:block; margin-bottom:12px; }
.done { text-align:center; padding:28px 16px; }
.done h1 { font-size:36px; }

/* The queue button in the header: the person's open listing jobs, a count in the corner */
header.top .head-left { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-right:auto; min-width:0; }
header.top .head-left .brand { margin-right:0; }
.queue-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:none; height:40px; padding:0 12px 0 9px; border-radius:var(--radius-full); white-space:nowrap;
  border:2px solid var(--color-border-emphasized); background:var(--color-background-surface); color:var(--color-text-primary); text-decoration:none; font-size:14px; font-weight:600; }
.queue-label { white-space:nowrap; }
.queue-btn:hover { background:var(--color-background-surface) linear-gradient(var(--color-overlay-hover), var(--color-overlay-hover)); color:var(--color-text-primary); }
.queue-btn svg { display:block; }
.queue-count { position:static; min-width:21px; height:21px; padding:0 5px; border-radius:var(--radius-full); border:2px solid var(--color-background-surface);
  background:var(--color-text-primary); color:var(--color-background-surface); font-family:var(--font-family-code); font-size:11px; font-weight:700; line-height:17px; text-align:center; }
.queue-btn.attention { border-color:var(--color-warning); color:var(--color-warning); }
.queue-btn.attention .queue-count { background:var(--color-warning); color:var(--color-background-surface); }

/* Location switcher in the header */
.switcher { display:flex; gap:6px; align-items:center; margin:0; }
.switcher label { margin:0; }
.switcher select { width:auto; min-height:40px; padding:6px 10px; }
.switcher button { min-height:40px; padding:6px 14px; }

/* Banners over the header: support view and plan notices (the warning pair) */
.banner { background:var(--color-warning-muted); color:var(--color-warning); border-bottom:2px solid var(--color-warning); }
.banner .bar { max-width:1000px; margin:0 auto; padding:8px 16px; display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; font-weight:600; }
.banner a { color:inherit; font-weight:700; }
.banner form { margin:0; }
.banner.notice .bar { font-weight:400; }
.banner button { min-height:36px; padding:4px 14px; }
:is(.banner button).link, :is(.banner button).link:hover { min-height:0; padding:0; color:inherit; }
/* Connect eBay in the note is a small form; its button reads like the note's links. */
.banner form[data-ebay-connect] button.link { font-weight:700; }
.thanks { text-align:center; padding:40px 16px; }
.thanks h1 { color:var(--color-accent); }
.actions.tight { margin:0; }
.inline-form { display:inline; }
.tag-preview { margin-bottom:16px; max-width:100%; overflow-x:auto; }
.tag-preview [hidden] { display:none !important; }
/* The logo line in the preview, styled here too so it shows while the box is ticked before saving. */
.tag-preview .tag .tag-brand { display:flex; align-items:center; gap:.3em; font-size:.8em; line-height:1.25; white-space:nowrap; overflow:hidden; }
.tag-preview .tag .tag-brand svg { flex:none; display:block; width:1.15em; height:1.15em; }
.tag-preview .tag .tag-brand span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
fieldset.market-picks { border:0; padding:0; margin:10px 0 0; min-width:0; }
fieldset.market-picks legend { font-weight:700; padding:0; }
.flash p { margin:0; }
.flash-list { margin:8px 0 0; padding-left:20px; }
fieldset.square, fieldset.site { border:1.5px solid var(--color-border); border-radius:var(--radius-element); margin:10px 0 0; }
fieldset.square { padding:6px 14px 10px; }
fieldset.site { padding:6px 14px 12px; }
fieldset.square legend, fieldset.site legend, fieldset.card legend { font-weight:700; padding:0 4px; }
details.sites { margin-top:12px; }
.row.aspect { margin-top:4px; }
select[multiple] { min-height:6em; }
.ready-site { border-bottom:1px dashed var(--color-border); padding:4px 0 8px; }
.ready-site:last-of-type { border-bottom:0; }
.ready-site p { margin:6px 0; }
.ready-site ul { margin:4px 0 0; padding-left:20px; }
.ready-site li.block { color:var(--color-text-accent); }
.ready-site li.warn { color:var(--color-text-secondary); }
table.import tr.bad td { background:var(--color-accent-muted); }
.scan-video { width:100%; max-height:60vh; background:var(--color-background-inverted); border-radius:var(--radius-container); box-shadow:var(--shadow-med); display:block; object-fit:cover; }
.filters .actions.tight { margin:0; }
.item-wrap { display:flex; flex-direction:column; }
.item-wrap .item { flex:1; }
.pick-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 14px; }
.sha { font-family:var(--font-family-code); font-size:.8rem; word-break:break-all; }
.downloads .card h2 { margin-top:0; }
.status-filter { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0 0 12px; }

/* Components for new markup (documented above the CSS string in layout.ts) */
.lbl { font-family:var(--font-family-code); font-size:12px; font-weight:600; line-height:1.3; letter-spacing:.1em; text-transform:uppercase; color:var(--color-text-secondary); }
.sec-head { display:grid; gap:8px; max-width:60ch; margin:1.6em 0 16px; }
main > .sec-head:first-child { margin-top:.3em; }
.sec-head > * { margin:0; }
.sec-head p { color:var(--color-text-secondary); }

.ticket { background:var(--paper); color:var(--paper-ink); padding:20px 20px 34px; margin-bottom:16px; box-shadow:var(--shadow-med);
  border-radius:var(--radius-inner) var(--radius-inner) 0 0;
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px)); }
.ticket > :first-child { margin-top:0; }
.ticket .lbl, .ticket .muted, .ticket th { color:var(--paper-ink-soft); }
.ticket table { background:transparent; }
.ticket th, .ticket td { border-bottom-color:var(--paper-ink-soft); }
.ticket .no { display:flex; justify-content:space-between; align-items:baseline; gap:8px; border-bottom:2px dashed var(--paper-ink-soft); padding-bottom:10px; margin-bottom:12px; }
.ticket .no b { font-family:var(--font-family-heading); font-weight:400; font-size:40px; line-height:1; color:var(--color-accent); }
.ticket .no span { font-family:var(--font-family-code); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--paper-ink-soft); }

.board { background:var(--color-background-surface); border-radius:var(--radius-container); box-shadow:var(--shadow-med); overflow:hidden; margin-bottom:16px; }
.board-head { background:var(--color-accent); color:var(--color-on-accent); padding:14px 20px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 12px; }
.board-head > :is(h1, h2, h3) { margin:0; font-size:22px; color:inherit; }
.board-head > :not(h1, h2, h3) { font-family:var(--font-family-code); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:inherit; }
.board > :not(.board-head) { margin:0; padding:14px 20px; }
.board > :not(.board-head) + :not(.board-head) { border-top:1px dashed var(--color-border); }
.board > :is(ul, ol) { list-style:none; padding-top:4px; padding-bottom:4px; }
.board > :is(ul, ol) > li { padding:12px 0; border-bottom:1px dashed var(--color-border); }
.board > :is(ul, ol) > li:last-child { border-bottom:0; }
.board > :is(ul, ol) > li > b:first-child { display:block; }
.board > :is(table, .table-wrap) { padding:0; box-shadow:none; border-radius:0; margin:0; }

.led-board { background:var(--color-background-inverted); color:var(--color-on-dark-label); border-radius:var(--radius-container); box-shadow:var(--shadow-med), var(--shadow-inset-selected);
  padding:20px 16px; margin-bottom:16px; display:grid; gap:8px; justify-items:center; text-align:center; }
.led-board > * { margin:0; }
.led-board .lbl { color:var(--color-on-dark-label); }
.led-board p { font-family:var(--font-family-code); font-size:13px; color:var(--color-on-dark-label); max-width:36ch; }
.led { font-family:var(--font-family-code); font-weight:600; font-size:clamp(44px, 8vw, 64px); line-height:1; font-variant-numeric:tabular-nums; color:var(--color-on-dark); text-shadow:0 0 14px var(--color-on-dark-glow); }

/* The spike price tag. Not inside .tag-preview, where .tag is the printed label (labels.css). */
.tag:not(.tag-preview .tag) { display:inline-flex; align-items:baseline; gap:6px; background:var(--tag-bg); color:var(--tag-ink); border:2px solid var(--tag-ink); border-radius:var(--radius-inner);
  padding:3px 8px; font-family:var(--font-family-code); font-size:12px; font-weight:600; line-height:1.3; white-space:nowrap; transform:rotate(-3deg); box-shadow:var(--shadow-low); }
.tag:not(.tag-preview .tag) b { font-size:14px; font-weight:600; }

.rule { display:flex; gap:10px; align-items:center; font-weight:700; color:var(--color-text-primary); margin:12px 0; }
.rule::before { content:""; width:12px; height:12px; border-radius:50%; background:var(--color-accent); flex:none; }

.stack { display:flex; flex-direction:column; gap:12px; }
.cluster { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; }
.stack > *, .cluster > * { margin:0; }

/* Quiet good and warning words in running text (the extension version notes). */
.ok-text { color:var(--color-success); }
.warn-text { color:var(--color-warning); }

@media (max-width: 600px) {
  .hide-sm { display:none; }
  th, td { padding:8px 6px; }
  .table-wrap th:first-child, .table-wrap td:first-child { padding-left:12px; }
  .table-wrap th:last-child, .table-wrap td:last-child { padding-right:12px; }
  h1 { font-size:26px; }
  .card { padding:16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; animation:none !important; }
  :is(button, .button, .btn-red, .btn-line):active { transform:none; }
}
@media print {
  body { background:#fff; background-image:none; color:#000; }
  *, *::before, *::after { box-shadow:none !important; text-shadow:none !important; }
  header.top, .banner { background:#fff; }
}

/* Inventory tiles: the price and the SKU are set in mono, like the printed tag. */
.inv-price { font-family:var(--font-family-code); font-weight:600; font-variant-numeric:tabular-nums; }
.inv-sku { font-family:var(--font-family-code); overflow-wrap:anywhere; }

/* Inventory: a tick box in each tile's top left corner (a 44px target over the photo), a ring on
   ticked tiles, and the bar for the ticked items, which stays in view once something is ticked. */
.item-wrap { position:relative; }
.pick-corner { position:absolute; top:8px; left:8px; z-index:1; display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin:0;
  border-radius:var(--radius-element); background:var(--color-background-surface); box-shadow:var(--shadow-low); cursor:pointer; }
.pick-corner input[type=checkbox] { width:24px; height:24px; margin:0; cursor:pointer; }
.item-wrap:has(.pick-corner input:checked) .item { box-shadow:0 0 0 3px var(--color-accent), var(--shadow-med); }
.select-bar { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin:0 0 14px; padding:8px 14px; background:var(--color-background-surface);
  border-radius:var(--radius-container); box-shadow:var(--shadow-low); }
.select-bar .select-all { margin:0; display:flex; gap:8px; align-items:center; min-height:44px; font-weight:600; cursor:pointer; }
.select-count { color:var(--color-text-secondary); }
.select-actions { display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.select-note { flex-basis:100%; margin:0; }
.select-bar.on { position:sticky; top:0; z-index:5; box-shadow:var(--shadow-high); }
@media (max-width:600px) { .select-actions { margin-left:0; } .select-actions button { flex:1 1 40%; } }
.select-list { list-style:none; margin:0 0 16px; padding:0; }
.select-list li { display:flex; gap:12px; align-items:center; padding:8px 0; border-bottom:1px dashed var(--color-border); }
.select-list .thumb { flex:none; width:56px; height:56px; border-radius:var(--radius-inner); background:var(--paper); overflow:hidden; }
.select-list .thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* "Ready to list?" on paper: the rules and quiet notes use the paper's own inks. */
.item-ready h2 { margin-bottom:.4em; }
.item-ready .ready-site { border-bottom-color:var(--paper-ink-soft); }
.item-ready .ready-site li.warn { color:var(--paper-ink-soft); }

/* The item edit page: problems shown at their boxes (routes/fieldMarks.ts). A save's message and
   what a site still needs are red; a note stays quiet. */
[id^="f-"] { scroll-margin-top:16px; }
.field-bad > input, .field-bad > select, .field-bad > textarea { border-color:var(--color-error); box-shadow:0 0 0 1px var(--color-error); }
.field-bad > label { color:var(--color-error); }
.field-msgs { margin:4px 0 0; }
.field-msg { margin:2px 0; font-size:.88rem; }
.field-msg.bad { color:var(--color-error); font-weight:600; }
.field-msg.note { color:var(--color-text-secondary); }
.form-problems p { margin:0 0 4px; }
.form-problems ul { margin:0 0 8px; padding-left:20px; }
.form-problems a { color:inherit; }
.form-notes ul { margin:0 0 12px; padding-left:20px; }
.default-submit { position:absolute; width:1px; height:1px; min-height:0; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); border:0; }
.ebay-find { margin-bottom:8px; }
.ebay-find .find-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ebay-find .find-row input { flex:1 1 220px; width:auto; }
fieldset.ebay-picks { border:0; padding:0; margin:8px 0 0; min-width:0; }
fieldset.ebay-picks legend { font-weight:700; padding:0; }

/* The shopper's thank-you, printed on a ticket in the middle of the page. */
.item-thanks { max-width:520px; margin:40px auto 16px; padding:32px 20px 44px; text-align:center; }
.item-thanks h1 { color:var(--paper-ink); }
.item-thanks p { margin-bottom:0; }

/* "Add photos from your phone" on the item page: the QR code next to how to use it. */
.phone-link { margin-top:16px; padding-top:16px; border-top:1px dashed var(--color-border); }
.phone-panel { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; margin-top:12px; }
.phone-qr { flex:none; background:var(--tag-bg); padding:8px; border-radius:var(--radius-element); box-shadow:var(--shadow-low); }
.phone-qr svg { display:block; width:220px; height:220px; }
.phone-how { flex:1 1 240px; min-width:0; }
.phone-url { overflow-wrap:anywhere; user-select:all; }

/* Two-step sign-in on the Account page: the QR code and the key, and the backup codes. */
.two-step-key { font-family:var(--font-family-code); font-size:1.1rem; letter-spacing:.05em; overflow-wrap:anywhere; user-select:all; }
.backup-codes { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:8px; }
.backup-codes li { font-family:var(--font-family-code); font-size:1.1rem; padding:6px 10px; background:var(--tag-bg); color:var(--tag-ink); border-radius:var(--radius-element); }
.two-step-other { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:12px; }
.two-step-other form { margin:0; }

/* The phone upload page: two big buttons that open the camera or the gallery. */
.phone-picks { position:relative; display:flex; flex-direction:column; gap:12px; margin-bottom:12px; }
.phone-pick { width:100%; min-height:64px; font-size:1.15rem; cursor:pointer; }
.phone-file { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.phone-up.closed .phone-pick { opacity:.45; pointer-events:none; }
/* Done on the phone page, under the upload form, and the closed line that takes the page's place. */
.phone-done-form { margin-top:16px; }
.phone-done-form .phone-done { width:100%; }
.phone-done-form p { margin-top:8px; }
.phone-closed h1 { margin-bottom:.4em; }
.phone-thumbs { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.phone-thumb { margin:0; width:96px; }
.phone-thumb img { width:96px; height:96px; object-fit:cover; display:block; border-radius:var(--radius-inner); background:var(--paper); box-shadow:var(--shadow-low); }
.phone-thumb progress { width:100%; height:6px; display:block; margin-top:4px; accent-color:var(--color-accent); }
.phone-thumb figcaption { margin-top:2px; overflow-wrap:anywhere; }
.phone-thumb.done figcaption { color:var(--color-success); }
.phone-thumb.failed figcaption { color:var(--color-error); }
/* Item photos: each one's place under it ("Main" first), the main photo's shape with a preview of
   how it goes out, and the bigger view (/js/photo-preview.js). */
.photos a[data-photo-view] { display:block; border-radius:var(--radius-element); cursor:zoom-in; }
.photos figcaption { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:26px; margin-top:6px; }
.photos figcaption form { margin:0; }
/* The item's photos, small, in the Edit page's photos box. */
.photo-strip { gap:8px; margin-bottom:10px; }
.photo-strip img { width:72px; height:72px; }
.shape-row { display:flex; gap:16px; align-items:center; margin-top:4px; }
.shape-choices { flex:1 1 140px; min-width:0; }
.shape-choices p { margin:4px 0 0; }
.shape-choices label.inline { margin:4px 14px 4px 0; }
.shape-now { margin-top:12px; padding-top:14px; border-top:1px dashed var(--color-border); }
fieldset.shape legend .muted { font-weight:400; }
.square-preview { flex:none; width:112px; height:112px; display:flex; align-items:center; justify-content:center; overflow:hidden;
  border:1.5px solid var(--color-border-emphasized); border-radius:var(--radius-inner); background:var(--color-background-card); box-shadow:var(--shadow-low); }
.square-preview img { display:block; }
.square-preview.pad { background:var(--photo-pad); }
.square-preview.pad img, .square-preview.crop img { width:100%; height:100%; }
.square-preview.pad img { object-fit:contain; }
.square-preview.crop img { object-fit:cover; }
.square-preview.none { border-style:dashed; box-shadow:none; }
.square-preview.none img { max-width:100%; max-height:100%; }

.viewer { position:fixed; inset:0; z-index:50; display:flex; align-items:center; justify-content:center; padding:64px 84px;
  background:var(--color-background-inverted); background:color-mix(in srgb, var(--color-background-inverted) 94%, transparent); cursor:zoom-out; }
.viewer img { max-width:100%; max-height:100%; object-fit:contain; border-radius:var(--radius-inner); cursor:default; }
.viewer-nav { position:absolute; top:calc(50% - 28px); min-height:56px; padding:4px 18px; font-size:32px; line-height:1; }
.viewer-nav.prev { left:16px; }
.viewer-nav.next { right:16px; }
.viewer-close { position:absolute; top:12px; right:16px; }
.viewer-count { position:absolute; left:0; right:0; bottom:18px; margin:0; text-align:center; font-size:.88rem; color:var(--color-on-dark-label); }
html.viewer-open { overflow:hidden; }
@media (max-width: 600px) {
  .square-preview { width:96px; height:96px; }
  .shape-row { gap:12px; }
  .viewer { padding:64px 8px 84px; }
  .viewer-nav { top:auto; bottom:12px; }
  .viewer-nav.prev { left:8px; }
  .viewer-nav.next { right:8px; }
  .viewer-close { right:8px; }
  .viewer-count { bottom:30px; left:72px; right:72px; }
}

/* Add several items at once (routes/bulk.ts): the steps, the photos to tap (small, still easy to tap
   on a phone), the item rows while sorting, and one row per item once they're made. */
.bulk-steps { display:flex; flex-wrap:wrap; gap:6px 18px; list-style:none; counter-reset:step; padding:0; margin:0 0 14px; font-size:.88rem; color:var(--color-text-secondary); }
.bulk-steps li { counter-increment:step; }
.bulk-steps li::before { content:counter(step) ". "; font-family:var(--font-family-code); }
.bulk-steps li.now { color:var(--color-text-primary); font-weight:700; }
.bulk-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(76px, 88px)); gap:8px; margin:8px 0; }
.bulk-pick { position:relative; display:block; margin:0; cursor:pointer; border-radius:var(--radius-element); }
.bulk-pick img { width:100%; aspect-ratio:1/1; object-fit:cover; display:block; border-radius:var(--radius-element); background:var(--paper); box-shadow:var(--shadow-low); }
.bulk-pick input { position:absolute; top:5px; left:5px; width:20px; height:20px; margin:0; accent-color:var(--color-accent); }
.bulk-pick.picked img { outline:3px solid var(--color-accent); outline-offset:2px; }
.bulk-num:empty { display:none; }
.bulk-num { position:absolute; bottom:4px; right:4px; padding:1px 6px; border-radius:var(--radius-full); background:var(--color-accent); color:var(--color-on-accent); font-family:var(--font-family-code); font-size:.75rem; font-weight:700; }
.bulk-sets, .bulk-items { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.bulk-set, .bulk-item { padding:8px 10px; background:var(--color-background-surface); border-radius:var(--radius-container); box-shadow:var(--shadow-low); }
.bulk-set-head, .bulk-item-head { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:center; margin-bottom:6px; }
.bulk-set-head form, .bulk-item-head .button, .bulk-set-head button { margin:0 0 0 auto; }
.bulk-set-head button, .bulk-item-head .button { min-height:34px; padding:4px 12px; }
.bulk-thumbs { display:flex; flex-wrap:wrap; gap:6px; }
.bulk-thumbs figure { position:relative; margin:0; }
.bulk-thumbs img { width:56px; height:56px; object-fit:cover; display:block; border-radius:var(--radius-inner); background:var(--paper); }
.bulk-thumbs figcaption { position:absolute; left:3px; bottom:3px; padding:0 4px; border-radius:var(--radius-full); background:var(--color-background-surface); font-size:.65rem; }
.bulk-sku { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:0 0 4px; }
.bulk-sku label { margin:0; font-weight:600; }
.bulk-sku input { flex:1 1 140px; max-width:16rem; min-width:0; font-family:var(--font-family-code); text-transform:uppercase; }
.bulk-sku input::placeholder { text-transform:none; font-family:inherit; }
.bulk-sku-line { margin:0 0 4px; }
.bulk-set .error-text { color:var(--color-error); margin:0 0 4px; }
.bulk-thumbs figure.bulk-tag { display:flex; flex-direction:column; align-items:center; gap:2px; }
.bulk-thumbs figure.bulk-tag img { outline:2px dashed var(--color-text-secondary); outline-offset:1px; }
.bulk-thumbs figure.bulk-tag figcaption { bottom:auto; top:3px; }
.bulk-thumbs .bulk-tag .link { font-size:.72rem; min-height:0; padding:1px 2px; }
.bulk-tags .error-text, .bulk-blank .error-text { color:var(--color-error); }
.bulk-blank input[type="number"] { max-width:8rem; }
.bulk-blank details { margin:8px 0; }
.bulk-blank textarea { width:100%; min-height:3.2em; font-family:var(--font-family-code); }
.bulk-state { font-size:.82rem; padding:1px 8px; border-radius:var(--radius-full); background:var(--color-background-muted); color:var(--color-text-secondary); }
.bulk-item[data-status="drafted"] .bulk-state, .bulk-item.saved .bulk-state { color:var(--color-success); }
.bulk-item[data-status="failed"] .bulk-state, .bulk-item .error-text { color:var(--color-error); }
.bulk-item .body { margin-top:6px; }
.bulk-item .body p { margin:2px 0; }
.bulk-item .title { font-weight:700; overflow-wrap:anywhere; }
.bulk-item .actions { margin:4px 0; }
.ai-notes label { display:block; margin:6px 0 2px; }
.ai-notes textarea { width:100%; min-height:2.6em; }
.bulk-tile { display:flex; flex-direction:column; align-items:center; gap:2px; }
.bulk-tile .link { font-size:.78rem; min-height:0; padding:2px 4px; }
.bulk-row { display:flex; gap:12px; align-items:flex-start; }
.bulk-row-photo { flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:2px; }
.bulk-row-photo img { width:84px; height:84px; object-fit:cover; display:block; border-radius:var(--radius-inner); background:var(--paper); }
.bulk-row .body { flex:1 1 auto; min-width:0; margin-top:0; }
.bulk-item textarea { min-height:0; }
.bulk-hints b { font-weight:700; }
.bulk-item-head a.small { margin-left:auto; }
.photo-status.error-text, .bulk-saveall .error-text { color:var(--color-error); }
.bulk-bar { display:block; width:100%; height:8px; margin:8px 0; accent-color:var(--color-accent); }
.bulk-saveall { margin-top:12px; }
.spin { display:inline-block; width:.9em; height:.9em; margin-right:6px; vertical-align:-1px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration:2.4s; } }
@media (max-width:520px) { .bulk-row { flex-direction:column; } .bulk-row-photo { flex-direction:row; } }
.bulk-warn { margin:12px 0; padding:12px 14px; border-radius:var(--radius-element); background:var(--color-warning-muted); border:1px solid var(--color-warning); }
.bulk-warn p { margin-top:0; }
.bulk-warn p:last-child { margin-bottom:0; }
.bulk-warn .actions form { margin:0; }
.bulk-batch .actions form, .bulk-progress form, .bulk-draft { margin:0; }
/* Capture items one at a time on a phone (routes/capture.ts): big buttons to take photos, the item's
   photos with an x each, one wide Done button, the items done below. Fits a 360px phone. */
.capture-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin-bottom:8px; }
.capture-head h2 { margin:0; }
.capture-picks { position:relative; display:flex; flex-wrap:wrap; gap:10px; margin-bottom:8px; }
.capture-pick { flex:1 1 140px; min-height:56px; font-size:1.05rem; cursor:pointer; }
.capture-file { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.capture-photos { display:grid; grid-template-columns:repeat(auto-fill, minmax(84px, 1fr)); gap:8px; margin:8px 0 12px; }
.capture-photos:empty { display:none; }
.capture-thumb { position:relative; margin:0; }
.capture-thumb img { width:100%; aspect-ratio:1/1; object-fit:cover; display:block; border-radius:var(--radius-inner); background:var(--paper); box-shadow:var(--shadow-low); }
.capture-thumb progress { position:absolute; left:4px; right:4px; bottom:4px; width:calc(100% - 8px); height:6px; accent-color:var(--color-accent); }
.capture-thumb figcaption { position:absolute; left:4px; bottom:4px; padding:0 5px; border-radius:var(--radius-full); background:var(--color-background-surface); font-size:.68rem; }
.capture-thumb .capture-x { position:absolute; top:4px; right:4px; min-height:36px; min-width:36px; padding:0; border-radius:var(--radius-full); font-size:1.2rem; line-height:1; }
.capture textarea { width:100%; min-height:3.2em; }
.capture-next { width:100%; min-height:56px; font-size:1.1rem; }
.capture-where { margin:12px 0 4px; }
.capture-where label.inline { display:flex; align-items:center; gap:8px; min-height:40px; }
.capture-station[data-on="1"] { color:var(--color-success); }
.capture-done { display:flex; flex-direction:column; gap:8px; padding-left:1.4em; margin:0 0 12px; }
.capture-line { padding:8px 10px; background:var(--color-background-surface); border-radius:var(--radius-container); box-shadow:var(--shadow-low); }
.capture-line-text { display:block; overflow-wrap:anywhere; }
.capture-line-note { display:block; color:var(--color-text-secondary); }
.capture-line-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.capture-line-acts button { min-height:40px; padding:6px 14px; }
.capture-finish [data-capture-finish] { width:100%; }
.capture-qr { margin-top:16px; padding-top:16px; border-top:1px dashed var(--color-border); }
.capture-qr summary { cursor:pointer; font-weight:600; }
.capture-start { margin-top:12px; }
/* The print station (routes/station.ts). */
.station-line { font-weight:600; }
.station-shortcut { display:block; padding:8px 10px; border-radius:var(--radius-element); background:var(--color-background-muted); white-space:pre-wrap; overflow-wrap:anywhere; user-select:all; }
.station-help ol { padding-left:1.4em; }
.bulk-place { padding:8px 12px; border-radius:var(--radius-element); background:var(--color-background-muted); }
.work-bar[hidden] { display:none; }
.work-bar { position:relative; display:block; height:6px; margin:10px 0 4px; overflow:hidden; border-radius:var(--radius-full); background:var(--color-background-muted); }
.work-bar span { position:absolute; top:0; bottom:0; left:0; width:35%; border-radius:var(--radius-full); background:var(--color-accent); animation:work-slide 1.4s ease-in-out infinite; }
@keyframes work-slide { 0% { transform:translateX(-100%); } 100% { transform:translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .work-bar span { width:100%; opacity:.45; animation:none; transform:none; } }
.bulk-apply .row { margin-bottom:4px; }
.bulk-apply label.check, .bulk-tick { display:inline-flex; align-items:center; gap:6px; margin:6px 0 2px; font-weight:600; cursor:pointer; }
.bulk-apply label.check input, .bulk-tick input { width:18px; height:18px; margin:0; accent-color:var(--color-accent); }
.bulk-apply textarea { width:100%; min-height:2.6em; }
.bulk-apply .actions { margin-bottom:0; }
.bulk-tick { margin:0; }
.site-needs { color:var(--color-text-secondary); }
.site-need { margin-right:8px; white-space:nowrap; }
.site-need b { color:var(--color-warning); font-weight:700; }
.comparables[hidden] { display:none; }
.comparables { color:var(--color-text-secondary); }
.bulk-check h2 { margin-top:0; }
/* The item page: a compact summary, and one List module (eBay beside the extension's sites) */
.item-summary h1 { margin:0 0 6px; font-size:24px; line-height:1.25; overflow-wrap:anywhere; }
.item-summary .facts { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin:0 0 4px; }
.item-summary .facts .price { font-size:1.35rem; }
.item-summary .facts-more, .item-summary .ai-note { margin:2px 0; }
.item-summary .item-strip { margin:8px 0 4px; }
.item-summary .item-strip img { width:72px; height:72px; object-fit:cover; }
.item-summary .item-desc { margin:6px 0; }
.item-summary .actions { margin-bottom:0; }
.item-summary .archive-note { margin:12px 0 0; }
.item-summary .archive-note p { margin:0 0 6px; }
.item-summary .archive-note p:last-child { margin-bottom:0; }
.item-summary .archive-note .actions { margin-top:8px; }
.item-summary .actions form, .archive-note .actions form { margin:0; }
.item-summary .sale-row { margin-top:12px; padding-top:10px; border-top:1px dashed var(--color-border); }
.item-summary .sale-row h2 { margin:0 0 2px; font-size:1rem; }
.sale-fields { display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 10px; }
.sale-fields label { margin:0 0 2px; font-size:.88rem; }
.sale-fields select { width:auto; max-width:11em; }
.sale-price input { width:7em; }
.sale-qty input { width:5em; }
.sale-note { flex:1 1 10em; }
/* Where it's listed: one tight row per site */
.board > .site-rows { padding-top:0; padding-bottom:0; }
.board > .site-rows > li.site-row { padding:8px 0; }
.board > .site-rows > li.site-row:last-child { border-bottom:0; }
.site-row .site-error { margin:0 0 6px; padding:6px 10px; }
.site-row .site-error p { margin:0; }
.site-line { display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px; }
.site-name { min-width:5.5em; }
.site-job { color:var(--color-text-secondary); }
.site-acts { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
.site-acts form { margin:0; }
.site-acts button { min-height:36px; padding:6px 14px; }
.site-link > summary { font-size:.88rem; font-weight:600; padding:6px 4px; }
.site-link[open] { flex-basis:100%; }
.site-link form { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.site-link select { width:auto; min-height:38px; padding:6px 10px; }
.site-link input[type=url] { flex:1 1 14em; width:auto; min-height:38px; padding:6px 10px; }
.board > .site-foot { padding-top:8px; padding-bottom:10px; }
.list-module h2 { margin-top:0; }
.list-site h3 { margin:0 0 6px; }
.list-site .actions { margin:6px 0 0; }
.list-module .quick-list { margin-top:12px; padding-top:10px; border-top:1px solid var(--color-border); }
.list-module .quick-list h3 { margin:0 0 4px; }
/* The listing jobs page: filter, Cancel selected, tick boxes, and notes after a press */
.job-filter { margin:4px 0 10px; }
.job-bulk { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin:0 0 10px; }
.job-bulk button { min-height:36px; padding:6px 14px; }
td.pick, th.pick { width:2.2em; text-align:center; }
td.pick input { width:auto; min-height:0; margin:0; }
details.sync-before { margin:14px 0; }
details.sync-before > summary { cursor:pointer; font-weight:600; }
.inline-note { margin:8px 0 0; padding:6px 10px; border-left:3px solid var(--color-accent); background:var(--color-accent-muted); border-radius:var(--radius-inner); }
/* A listing check's question: in its site's row on the item page (amber, under the site line), and on Listings to check */
.site-check { margin:6px 0 0; padding:6px 10px; border-left:3px solid var(--color-warning); background:var(--color-warning-muted); border-radius:var(--radius-inner); }
.site-check .site-q { margin:0; }
.site-check .site-acts { margin-top:4px; }
.site-check .site-price { width:7em; min-height:36px; margin:0 6px 0 0; padding:6px 10px; }
.change-form .change-q { margin:0 0 6px; }
.change-form .change-sale { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:0 0 6px; }
.change-form .change-sale label { margin:0; }
.change-form .change-sale input { width:auto; max-width:110px; margin:0; }
.change-form .actions { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.to-check { border-left:3px solid var(--color-warning); }

/* Inbox: conversations, one thread, the reply box */
.nav-count { display:inline-block; min-width:20px; padding:0 6px; margin-left:2px; border-radius:var(--radius-full); background:var(--color-accent); color:var(--color-on-accent);
  font-family:var(--font-family-code); font-size:11px; font-weight:700; line-height:18px; text-align:center; vertical-align:1px; }
/* Settings (views/settingsTabs.ts): one pill per tab, like the Inbox's, wrapping onto more lines on a
   phone; each is a 44px tap target. */
.settings-title { margin-bottom:10px; }
.settings-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.settings-tab { display:inline-flex; align-items:center; min-height:44px; padding:6px 16px; border-radius:var(--radius-full); border:1px solid var(--color-border-emphasized);
  text-decoration:none; color:var(--color-text-primary); font-weight:600; }
.settings-tab.on { background:var(--color-text-primary); color:var(--color-background-surface); }
/* Settings > Printing: the station's state, and the test label's note under its buttons. */
.print-test-note { margin:8px 0 0; }
.inbox-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.inbox-tab { padding:6px 12px; border-radius:var(--radius-full); border:1px solid var(--color-border-emphasized); text-decoration:none; color:var(--color-text-primary); font-weight:600; }
.inbox-tab.on { background:var(--color-text-primary); color:var(--color-background-surface); }
.inbox-tab .count, .inbox-list .count { display:inline-block; min-width:20px; padding:0 6px; border-radius:var(--radius-full); background:var(--color-accent); color:var(--color-on-accent); font-size:11px; line-height:18px; text-align:center; }
.inbox-list { list-style:none; margin:0 0 16px; padding:0; }
.inbox-list li { border-bottom:1px solid var(--color-border-subtle, var(--color-border-emphasized)); }
.inbox-list a { display:grid; gap:2px; padding:10px 4px; color:var(--color-text-primary); text-decoration:none; }
.inbox-list a:hover { background:var(--color-overlay-hover); }
.inbox-list li.unread b { font-weight:800; }
.inbox-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.inbox-when { margin-left:auto; }
.inbox-preview { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.thread { list-style:none; margin:0 0 12px; padding:0; display:grid; gap:10px; }
.thread .msg { display:grid; gap:4px; max-width:min(560px, 92%); }
.thread .msg.out { justify-self:end; text-align:right; }
.thread .bubble { padding:10px 12px; border-radius:var(--radius-container); background:var(--color-background-surface); border:1px solid var(--color-border-emphasized); text-align:left; overflow-wrap:anywhere; }
.thread .msg.out .bubble { background:var(--color-accent-muted); }
.thread .msg.new .bubble { border-color:var(--color-accent); }
.thread .msg.pending .bubble { border-style:dashed; }
.thread .msg .actions { justify-content:flex-end; }
.reply-box textarea { width:100%; }
.warn-text { color:var(--color-warning); }

/* People: a lister's own switches (Inbox, own listing browser) show only while the role picked is
   Lister. Without :has() they simply stay in view; the server ignores them for other roles. */
form:has(select[name=role] option:not([value=lister]):checked) .lister-only { display:none; }

/* LED boards on the ledger and the shop-mode item: a long amount wraps instead of widening the page. */
.ledger-led .led, .shop-price .led { max-width:100%; overflow-wrap:anywhere; }
/* Shop mode: the price board sits inside the item card. */
.shop-price { margin:8px 0 14px; }
/* One sale, printed as a receipt: on a narrow screen the table scrolls inside the ticket. */
.ledger-receipt { overflow-x:auto; }
/* The ledger's tick boxes: a red note about one sale sits in its own row right above that sale. */
.row-error td { padding:6px 0 0; border-bottom:0; }
.row-error .site-error { margin:0; padding:6px 10px; }
.row-error .site-error p { margin:0; }
/* A temporary password or connect code shown once, printed on a ticket: a perforated box on the paper. */
.set-code .secret { box-shadow:none; border:2px dashed var(--paper-ink-soft); }

/* A tag shown at real size (up to 160 mm) scrolls inside its box instead of widening the page. */
.tag-preview { max-width:100%; overflow-x:auto; }
/* An Inbox row's one-line preview is cut with "..." instead of widening the row. */
.inbox-list a { grid-template-columns:minmax(0, 1fr); }

@media (max-width: 640px) {
  /* Long words, links and codes wrap anywhere rather than run off the screen. Tables keep whole
     words: a wide one scrolls inside its .table-wrap. The clip is the last net: nothing on the page
     can make the phone zoom out. */
  main, header.top .bar, .banner .bar { overflow-wrap:anywhere; }
  main { overflow-x:clip; }
  main table:not(.stack-sm) { overflow-wrap:normal; }

  /* Cards and other boxes keep inside the screen, with a little less padding. */
  main :is(.card, .board, .ticket, .table-wrap, .led-board, .flash, .error, .inline-note, .site-check, .bulk-warn, .select-bar, .tag-preview, fieldset, form, details, section) { max-width:100%; min-width:0; }
  .card { padding:16px; }
  .ticket { padding:16px 16px 30px; }
  .board-head { padding:12px 16px; }
  .board > :not(.board-head, table, .table-wrap) { padding-left:16px; padding-right:16px; }
  :is(.row, .filters, .totals, .items, .backup-codes, .bulk-grid, .inbox-list a, .thread) > * { min-width:0; }

  /* Pictures, boxes and buttons never overflow; a button's words wrap inside it. */
  main :is(img, svg, video, canvas, iframe) { max-width:100%; }
  main :is(input, select, textarea) { max-width:100%; min-width:0; }
  main :is(button, .button, .btn-red, .btn-line):not(.link) { max-width:100%; white-space:normal; }
  .actions > *, .site-acts > *, .job-bulk > *, .pick-bar > *, .cluster > * { max-width:100%; min-width:0; }

  /* Pills and the "needs" lines wrap their words on a phone. */
  .pill { white-space:normal; overflow-wrap:anywhere; }
  .site-need { white-space:normal; }
  .secret { max-width:100%; overflow-wrap:anywhere; }
  .totals b { font-size:1.2rem; }

  /* The location switcher wraps under the name. */
  .switcher { flex-wrap:wrap; max-width:100%; }
  .switcher select { flex:1 1 8em; min-width:0; }

  /* The item page's rows of Where it's listed: the site and its status, then the latest job on a
     line of its own, then the buttons, wrapping. */
  .site-line .site-job { flex-basis:100%; }
  .site-acts { gap:8px; }
  .site-link select, .site-link input[type=url] { flex:1 1 100%; }

  /* Stacked tables: one block per row, one line per cell. */
  table.stack-sm, table.stack-sm > tbody { display:block; width:100%; }
  table.stack-sm tr.head { display:none; }
  table.stack-sm > tbody > tr { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:12px 16px; border-bottom:1px dashed var(--color-border); }
  table.stack-sm > tbody > tr:last-child { border-bottom:0; }
  .table-wrap table.stack-sm td { display:block; flex:1 1 100%; min-width:0; padding:0; border:0; text-align:left; overflow-wrap:anywhere; }
  .table-wrap table.stack-sm td:empty { display:none; }
  .table-wrap table.stack-sm td.pick { flex:none; width:auto; }
  .table-wrap table.stack-sm td.lead { flex:1 1 0; font-weight:600; }
  table.stack-sm td[data-label]::before { content:attr(data-label); margin-right:8px; font-family:var(--font-family-code); font-size:11px; font-weight:600;
    letter-spacing:.08em; text-transform:uppercase; color:var(--color-text-secondary); }
  table.stack-sm td.act { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
  table.stack-sm td.act form { margin:0; }
  table.stack-sm td.act button { min-height:40px; padding:6px 16px; }
}
