/* The app pages (home and item). Ant Design does the components; this is the frame and a few layouts. */
:root { --ink: rgb(0 0 0 / .88); --line: #e4e4e0; --muted: #6b6b66; --you: #c4610f; --on: #1f5fd1; --done: #2f8a4f; --bad: #c8321e; --bar: rgb(255 255 255 / .9); --raised: #fff; --lift: 0 6px 24px rgb(0 0 0 / .12), 0 1px 3px rgb(0 0 0 / .08); --scrim: rgb(245 245 243 / .84);
  --paper: #f5f5f3; --learn: #722ed1; --fill: rgb(0 0 0 / .045);
  --t-title-size: 24px; --t-title-line: 32px; --t-head-size: 18px; --t-head-line: 26px; --t-body-size: 14px; --t-body-line: 22px;
  --t-small-size: 13px; --t-small-line: 20px; --t-tiny-size: 12px; --t-tiny-line: 18px; --t-number-size: 22px; --t-number-line: 28px; }
@media (prefers-color-scheme: dark) {
  :root { --ink: rgb(255 255 255 / .88); --line: #2e2e2c; --muted: #9a9a94; --you: #f0a35e; --on: #6a9cf5; --done: #6fc28f; --bad: #ff7a5c; --bar: rgb(20 20 20 / .9); --raised: #1f1f1f; --lift: 0 8px 28px rgb(0 0 0 / .6), 0 1px 3px rgb(0 0 0 / .4); --scrim: rgb(20 20 20 / .84);
    --paper: #141414; --learn: #a987e6; --fill: rgb(255 255 255 / .07); }
}
* { box-sizing: border-box; }
/* The page's own colour from the first paint (Ant Design's Layout, colorBgLayout, in each scheme), so nothing white
   shows before a page draws itself or past its end. */
html { background: #f5f5f5; }
@media (prefers-color-scheme: dark) { html { background: #000; } }
/* Pages drawn on --paper instead (the sign-in page, .signin) say so on <html>. */
html.paper { background: var(--paper); }
body { margin: 0; }

.bar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--bar); backdrop-filter: blur(8px); }
.barin { max-width: 880px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; }
.brand img { display: block; flex: none; }
/* The logo's lettering (Sora 600, outlined): one colour, the text colour, so it follows light and dark. */
.wordmark { display: block; width: 134.1px; height: 19.7px; background: currentColor; -webkit-mask: url(/wordmark.svg) center / contain no-repeat; mask: url(/wordmark.svg) center / contain no-repeat; }
@media (forced-colors: active) { .wordmark { forced-color-adjust: none; background: CanvasText; } }
@media (max-width: 430px) { .wordmark { display: none; } } /* room for the bar icons on a phone */
.back { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.back-label { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .back-parent { display: none; } }
.page { width: 100%; max-width: 880px; margin: 0 auto; padding: 20px 16px 96px; }
/* Wider pages: "wide" for pages of tables, "full" for dashboards that use the whole screen. */
.page.wide, .bar.wide .barin { max-width: 1280px; }
.page.full, .bar.full .barin { max-width: none; }
/* The seller frame (docs/seller-design.md 3; opted into page by page with <Shell seller>): 1280 px of content,
   centred, with 12 px gutters on a phone, 16 on a tablet and 24 from 1100 px, and the bar's ends lined up with it. */
.page.seller { max-width: 1328px; padding: 4px 12px 96px; }
@media (min-width: 640px) { .page.seller { padding-inline: 16px; } }
@media (min-width: 1100px) { .page.seller { padding: 8px 24px 64px; } .bar.seller .barin { max-width: 1328px; padding-inline: 24px 12px; } }
/* The top bar, the same on every screen: only what's used every visit stays in the bar (search, Activity,
   the menu, and chips while something is going on); Your sales, Settings, Help, Admin, Out of inventory and
   the credit are in the menu (public/ui.js BarMenu). Every icon there is a 44 px square, the size a thumb
   hits without aiming. Search reads as a field where there's room, and is its icon alone on a phone or
   narrow tablet (820 px and under, iPad portrait included). */
.barmenu { display: inline-flex; }
.bar .barin { padding-block: 2px; gap: 2px; min-height: 52px; }
.bar .nav, .bar .alertchip { justify-content: center; width: 44px; height: 44px; padding: 0; font-size: 20px; flex: none; }
.bar .jobs, .bar .savechip, .bar .postchip, .bar .salechip, .bar .find { margin-inline: 4px; }
.barmenu-btn, .alerts-btn { border: 0; background: none; color: inherit; cursor: pointer; border-radius: 10px; }
.bar .nav:hover, .barmenu-btn:hover { background: rgb(127 127 127 / .08); border-radius: 10px; }
.bar .nav:active, .bar .alertchip:active, .bar .find:active, .barmenu-btn:active { background: rgb(127 127 127 / .14); border-radius: 10px; }
.barmenu-btn:focus-visible, .bar .nav:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; border-radius: 10px; }
@media (max-width: 820px) {
  .bar .barin { padding: 2px 4px 2px 12px; }
  .bar .find { justify-content: center; width: 44px; height: 44px; padding: 0; font-size: 20px; flex: none; min-width: 0; border: 0; color: inherit; margin-inline: 0; }
  .bar .find .find-word, .bar .find kbd { display: none; }
}
/* The chips (public/ui.js useBarFit): in the bar's row while they fit; .tight when they don't, so they drop their
   words and search becomes its icon; .two-row when even that doesn't fit, so they take a row of their own under
   the brand, search and menu, wrapping if they must. Nothing is hidden or runs off the edge. */
.bar .bar-chips { display: flex; align-items: center; gap: 2px; flex: none; min-width: 0; }
.bar .bar-chips:not(:has(> *)) { display: none; }
.bar .barin.tight .find { justify-content: center; width: 44px; height: 44px; padding: 0; font-size: 20px; flex: none; min-width: 0; border: 0; color: inherit; margin-inline: 0; }
.bar .barin.tight .find .find-word, .bar .barin.tight .find kbd,
.bar .barin.tight .savechip:not(.bad) > span:last-child, .bar .barin.tight .postchip-more, .bar .barin.tight .salechip-more,
.bar .barin.tight .jobchip.all .job-label, .bar .barin.tight .jobs-each { display: none; }
.bar .barin.tight .jobs-all { display: inline-flex; }
.bar .chip-n { display: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar .barin.tight .chip-n { display: inline; }
.bar .barin.two-row { flex-wrap: wrap; }
.bar .barin.two-row .bar-chips { order: 10; flex: 1 0 100%; flex-wrap: wrap; gap: 4px 2px; justify-content: flex-start; padding-bottom: 4px; }
/* The menu (public/ui.js BarMenu, docs/seller-design.md 4.1): a sheet on a phone, a 440 px panel under its button from
   640 px. The credit for drafting as its first row, then "Your shop" and "Help" side by side, Admin and Service last. */
.barmenu-panel .ant-popover-inner { width: 440px; max-width: calc(100vw - 16px); padding: 0 0 8px; }
.console-sheet.barmenu-sheet .ant-drawer-body { padding-inline: 0; }
.barmenu-credit { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px 4px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.barmenu-credit:hover { background: var(--fill); color: var(--ink); }
.barmenu-credit:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.barmenu-credit-note { display: block; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); }
.barmenu-credit.low .barmenu-credit-note { color: var(--you); }
.barmenu-credit-label { flex: 1; min-width: 0; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); }
.barmenu-credit b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.barmenu-credit.low b { color: var(--you); }
.barmenu-chev { font-size: 12px; color: var(--muted); }
.barmenu-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; padding: 0 8px; }
.barmenu-group { min-width: 0; }
.barmenu-group h2 { margin: 0; height: 32px; padding: 8px 8px 0; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); font-weight: 500; color: var(--muted); }
.barmenu-admin { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.barmenu-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink);
  font: inherit; font-size: var(--t-body-size); line-height: 18px; text-align: left; text-decoration: none; cursor: pointer; }
.barmenu-row:hover, .barmenu-row:active { background: var(--fill); color: var(--ink); }
.barmenu-row:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.barmenu-ico { flex: none; font-size: 16px; color: var(--muted); }
.barmenu-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.barmenu-count { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--you); color: var(--paper);
  font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

/* Your items (pages/home.tsx, docs/seller-design.md 6.1): the identity row, the issues list, the path, the tool line,
   then the list, each a fixed gap apart. */
.home-stack { gap: 12px; }
.home-stack > .phead { margin-bottom: 0; }
.home-stack > .tline, .home-stack #fill > .tline { margin-bottom: 0; }
@media (max-width: 639.98px) {
  .home-stack .list-head { flex-wrap: nowrap; gap: 8px; }
  /* Draft 3 now ~$0.37 and Queue ~$0.23 on one line at 360 px. */
  .tline-main .now-queue { flex-wrap: nowrap; gap: 6px; }
  .tline-main .now-queue .ant-btn { padding-inline: 10px; }
}
/* The identity row's tools as plain buttons from 640 px, at the primary's height (the mockups' 32 px). */
@media (min-width: 640px) { .phead-end .sp-tool.ant-btn { height: 32px; padding-inline: 11px; } }
/* An empty stage is one muted line; a new account's first item is one dashed row. */
.list-empty { padding: 12px 8px; color: var(--muted); font-size: var(--t-body-size); line-height: var(--t-body-line); }
.list-empty .ant-btn-link { padding-inline: 0; height: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* The path: Your items' four stages in one strip at every width, 56 px when narrow (count over name), 48 px once the
   strip is 720 px wide (count beside name). A count waiting on the seller is orange (docs/seller-design.md 6.1, call 1). */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden;
  container-type: inline-size; }
.step { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; height: 56px; padding: 0 2px; border: 0; border-left: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); cursor: pointer; min-width: 0; }
.step:first-child { border-left: 0; }
.step:hover { background: var(--fill); }
.step:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.step.on { background: color-mix(in srgb, var(--on) 14%, transparent); color: var(--on); }
.step .n { font-size: var(--t-head-size); line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step.you .n { color: var(--you); }
.step.on .n { color: var(--on); }
/* Name and the missing count stack in one column under (narrow strip) or beside (720 px strip) the count, so a big count, the
   name and "83 missing" never share one line; each line ellipsizes inside the step and the height never changes. */
.step .label { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.step .name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step .label > * { line-height: 16px; }
.step .label .miss { font-size: 11px; } /* one below --t-tiny-size so "883 missing" fits a quarter of a 360 px strip */
/* Count beside name only once the strip itself has room for a four-digit count, the name and "883 missing" side by
   side in each quarter (a container query, so a narrow window or a side panel keeps count over name). */
@container (min-width: 720px) {
  .step { flex-direction: row; gap: 8px; height: 48px; padding: 0 8px; font-size: var(--t-body-size); }
  .step .n { flex: none; font-size: var(--t-number-size); line-height: var(--t-number-line); }
  .step .label { align-items: flex-start; }
  .step .label > * { line-height: 20px; }
  .step .label .miss { font-size: var(--t-tiny-size); line-height: 18px; }
}

.items .row { cursor: pointer; padding: 10px 8px !important; border-radius: 8px; }
.row-state { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-top: 2px; }
/* Now and Queue under a row's line that says a redraft is called for (pages/home.tsx statusLine redraft). */
.row-redraft { margin-top: 6px; }
/* On a phone the line above says what it's for, so the first says "Now" alone; the pair wraps rather than run past the row. */
@media (max-width: 600px) {
  .row-redraft .now-queue { gap: 6px; }
  .row-redraft .now-queue .ant-btn { padding-inline: 6px; }
  .row-redraft .now-queue .price { margin-inline: 4px 0 !important; padding-inline: 4px; }
  .row-redraft .now-queue .nq-long { display: none; }
  .row-redraft .now-queue .nq-short { display: inline; }
}
.row-state .ant-tag { font-size: 12px; line-height: 18px; padding-inline: 6px; }
/* Notes to self on a Pending Draft row: as many lines as the row has room for beside its photo. */
.row-note { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (min-width: 640px) { .row-note { -webkit-line-clamp: 3; } }
.hold-label { display: block; margin: 12px 0 4px; font-weight: 600; }
.hold-label:first-child { margin-top: 0; }
.items .row:hover { background: rgb(127 127 127 / .08); }
.items .row:focus-visible { outline: 2px solid var(--on); }
.thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: cover; background: var(--line); }
.thumb.none { display: grid; place-items: center; color: var(--muted); font-size: 20px; }
/* A cover in a list (ui.js CoverThumb): tap for the full-size photo. */
.thumb.zoom { display: inline-block; overflow: hidden; line-height: 0; cursor: zoom-in; }
.thumb.zoom .ant-image, .thumb.zoom .ant-image-img { width: 100%; height: 100%; object-fit: cover; }
.thumb.zoom .ant-image-mask { font-size: 20px; }

/* Item screen */
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-weight: 500; }
.stock-chosen, .stock-found { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.stock-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stock-card .ant-checkbox-wrapper { font-size: 12px; }
/* Listing photos: every one shows, in rows that wrap (no scrolling). The cover takes two rows and two columns. */
.strip { --cell: 96px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); }
@media (min-width: 641px) { .strip { --cell: 120px; } }
.strip > * { width: 100% !important; height: auto !important; aspect-ratio: 1; }
.strip > :first-child { grid-column: span 2; grid-row: span 2; }
.strip .ant-image, .strip .ant-image-img { display: block; width: 100% !important; height: 100% !important; }
.grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tile { position: relative; aspect-ratio: 1; }
.tile .ant-image, .tile .ant-image-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0;
  border-radius: 99px; background: rgb(0 0 0 / .55); color: #fff; cursor: pointer; }
.remove:focus-visible { outline: 2px solid #fff; }
.needs.open { border-color: var(--you); }
/* The draft wasn't sure what the item is: the note is where the seller says (pages/loose/item.tsx). */
.field.id-unsure textarea { border-color: var(--you); }
.pending-card { border-color: var(--on); }
.pending-card .tight { margin-bottom: 8px; }
.pending-card .ant-card-head-title { white-space: normal; }
.pending-card.settled { border-color: var(--done); }
/* Each change waiting for a redraft: why, and the fields to change yourself (pages/loose/item.tsx PendingLine). */
.pending-lines { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pending-line { display: flex; gap: 10px; align-items: flex-start; }
.pending-line > .mark { font-size: 16px; line-height: 22px; color: var(--on); }
.pending-line.done > .mark { color: var(--done); }
.pending-line.done { color: var(--muted); }
.pending-fields { margin-top: 4px; }
.pending-fields ul { margin: 2px 0 0; padding-left: 18px; font-size: 13px; }
.pending-fields li { margin: 2px 0; }
.pending-fields li.done { color: var(--done); list-style: none; margin-left: -18px; }
.pending-fields .hint { color: var(--muted); }
.pending-fields .was { color: var(--you); font-size: 12px; }
.pending-fields .need { margin-inline: 0 6px; font-size: 11px; line-height: 16px; padding-inline: 5px; }
.pending-fields .site-group { margin: 6px 0 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pending-fields .site-group ul { list-style: none; padding-left: 0; }
.pending-fields .site-group li.done { margin-left: 0; }
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.todo .mark { font-size: 18px; line-height: 24px; color: var(--line); }
.todo.done .mark { color: var(--done); }
.todo-label { display: block; font-weight: 500; margin-bottom: 4px; }
.tight { margin: 0; padding-left: 18px; }
/* Shipping on the item screen (public/shipping.js): field rows like the listing's, each part edited in place. */
.shipping.open { border-color: var(--you); }
.ship-l { display: inline-flex; align-items: center; gap: 4px; }
.ship-team { display: inline-flex; color: var(--on); cursor: help; }
.ship-x { font-size: 13px; color: var(--muted); padding: 0 1px; }
.frow-v .ant-input-number.ship-num { flex: none; }
.frow-v .ant-input-number.ship-num .ant-input-number-input { padding-inline: 2px; text-align: center; font-variant-numeric: tabular-nums; }
.ship-size { color: var(--muted); }
.ship-val { flex: 1; min-width: 0; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: right; cursor: text; }
.ship-val::placeholder { color: var(--you); opacity: 1; }
.ship-val:focus { outline: none; }
.ship-add, .ship-warn { color: var(--you); }
.ship-quiet { color: var(--muted); }
.ship-saving { font-size: 12px; font-weight: 400; margin-inline-start: 6px; }
/* Ship it / Local pickup, at the top of Shipping (public/shipping.js HowItGoes). */
.ship-local { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 0 10px; }
.ship-big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ship-title { display: inline-flex; align-items: center; gap: 6px; }
.shipping .frow-acc { gap: 6px; }
/* A field a photo request pointed to: a brief ring so the eye lands on it. */
.flash { animation: flash 1.6s ease-out; border-radius: 8px; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--you); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 2px solid var(--you); } }
/* "It's already in a photo": pick the photo. */
.pickphoto { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, 72px); max-width: 320px; }
.pickphoto button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; width: 72px; height: 72px; }
.pickphoto button:hover, .pickphoto button:focus-visible { border-color: var(--you); outline: none; }
.pickphoto img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
/* The one next step, pinned to the bottom: a solid raised bar, what happens next on the left, the buttons together on the right
   with the main one last. On a phone the line sits above the buttons and the main button takes the full width. */
.actions.sticky { position: sticky; bottom: calc(12px - var(--screen-gap, 0px)); z-index: 5; gap: 12px 20px; justify-content: space-between; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); box-shadow: var(--lift); }
.actions .next { flex: 1 1 260px; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.actions .buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.actions .buttons .ant-btn { white-space: nowrap; }
/* Everything pinned to the bottom of the screen (sticky or fixed: a bar, a sheet, a full-screen layer) sits at
   calc(0px - var(--screen-gap, 0px)), never a bare 0: iOS and iPadOS can leave the page's bottom short of the screen's
   (public/app-shell.js measures it), and a bare 0 floats mid-page. scripts/pinned-bottom.test.mjs holds every rule to it.
   Ant's drawers (the bottom sheets), modals and the photo viewer are fixed layers of their own. */
:root .ant-drawer, :root .ant-modal-root .ant-modal-mask, :root .ant-modal-root .ant-modal-wrap,
:root .ant-image-preview-root .ant-image-preview-mask, :root .ant-image-preview-root .ant-image-preview-wrap { bottom: calc(0px - var(--screen-gap, 0px)); }
/* The phone's keyboard is open (public/app-shell.js): the bar would float over the field being typed in, and Begin
   review's tag would cover it in what little the keyboard leaves. Both come back when the keyboard closes. */
.keyboard-open .actions.sticky, .keyboard-open .review-tag { display: none; }
@media (max-width: 600px) {
  .actions.sticky { bottom: calc(8px - var(--screen-gap, 0px)); padding: 12px; }
  .actions .buttons { width: 100%; }
  .actions .buttons .ant-btn { flex: 1 1 auto; }
  .actions .buttons .ant-btn-primary { flex-basis: 100%; }
}
/* Beside Ready Enough when the item isn't passing its checks: scrolls to what's left. */
.actions .buttons .issues-alert { flex: none; color: var(--you); }
.actions .buttons .issues-alert .anticon { font-size: 18px; }
/* New photos under the photo requests. */
.newphotos { display: flex; flex-direction: column; gap: 6px; }
.newphotos .thumbs { display: grid; gap: 8px; margin-top: 4px; grid-template-columns: repeat(auto-fill, 88px); }
.newphotos .ant-image-img { cursor: zoom-in; }
.newphotos .remove { width: 24px; height: 24px; font-size: 12px; }

/* Prices on buttons that spend credit (the credit itself is in the top bar's menu). */
.price { margin-inline: 8px 0 !important; font-variant-numeric: tabular-nums; }
/* Changes kept on this device until they're saved (public/outbox.js), beside the credit. */
.savechip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 13px; color: var(--muted);
  border: 1px solid transparent; background: none; font: inherit; font-size: 13px; cursor: default; white-space: nowrap; }
.savechip.off { color: var(--you); border-color: var(--you); }
.savechip.bad { color: #c0392b; border-color: #c0392b; cursor: pointer; }
.savechip.ok { color: var(--done); }
.savechip.held { cursor: pointer; border-color: var(--line); }
.savechip.keep { white-space: nowrap; }
.save-list { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.save-row { display: flex; flex-direction: column; gap: 4px; }
.save-why { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .savechip:not(.bad):not(.off):not(.keep) span:last-child { display: none; } }

/* What's running in the background (public/ui.js RunningChips): a chip each beside the credit, folded into one
   that lists them on a narrow screen or when more than two are going. */
.jobs { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.jobs-each { display: inline-flex; gap: 6px; min-width: 0; }
.jobs-all { display: none; }
.jobs.many .jobs-each { display: none; }
.jobs.many .jobs-all { display: inline-flex; }
@media (max-width: 900px) { .jobs .jobs-each { display: none; } .jobs .jobs-all { display: inline-flex; } }
.jobchip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--on); border-radius: 999px; background: none;
  color: var(--on); font: inherit; font-size: 13px; white-space: nowrap; text-decoration: none; cursor: pointer; flex: none; }
.jobchip:hover { background: color-mix(in srgb, var(--on) 8%, transparent); }
.jobchip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.jobchip .job-label { overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.jobchip .job-count, .job-row .job-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.jobchip .job-ring { line-height: 0; }
.jobchip .job-ring .ant-progress-circle-trail { stroke: color-mix(in srgb, var(--on) 20%, transparent) !important; }
/* A phone's bar is tight: a little less space between its parts, and the search icon keeps its size. */
@media (max-width: 560px) { .jobchip.all .job-label { display: none; } .jobchip { padding: 2px 8px; } .barin { gap: 8px; } .find { flex: none; } }
.job-list { display: flex; flex-direction: column; gap: 14px; width: min(300px, calc(100vw - 48px)); }
.job-row { display: flex; flex-direction: column; gap: 4px; }
.job-row + .job-row { border-top: 1px solid var(--line); padding-top: 12px; }
.job-row-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.job-row .ant-progress { margin: 0; }
.job-note { color: var(--muted); font-size: 12px; }
.job-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.job-items a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-go { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
button.job-go { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--on); font: inherit; font-size: 13px; cursor: pointer; }
button.job-go:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
/* The drafting run's sheet, from the top bar's Drafting chip on any page (public/draft-run.js). */
.run-sheet-list { margin: 0; padding: 0; list-style: none; max-height: none; }
.run-sheet-list .row { display: block; color: inherit; border-radius: 8px; }
.run-sheet-list .row:hover { background: color-mix(in srgb, var(--on) 6%, transparent); }
.run-sheet-list .run-more { padding: 6px 8px; }
.run-sheet-wait { display: flex; justify-content: center; padding: 24px 0; }
.job-row .job-stop { align-self: flex-start; margin-top: 4px; }

/* Drafts, across items: a group's items, each ticked to take the group's answer. */
.members { display: flex; flex-direction: column; }
.member { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .ant-checkbox-wrapper { margin-top: 8px; }
.wrapany { overflow-wrap: anywhere; }
@media print {
  .bar, .noprint, .ant-segmented { display: none !important; }
  .page { padding: 0; max-width: none; }
  html, body, .page, .ant-app { background: #fff !important; }
  /* The shot list on paper: a tick box per shot, compact, black on white. */
  .shot { break-inside: avoid; box-shadow: none !important; border: 1px solid #999 !important; margin-bottom: 8px; }
  .shot .ant-card-head { min-height: 0; padding: 0 10px; }
  .shot .ant-card-body { padding: 4px 10px 8px; }
  .shot .todo { padding: 2px 0; }
  .shot .todo .mark .anticon { display: none; }
  .shot .todo .mark::before { content: ""; display: inline-block; width: 13px; height: 13px; border: 1.5px solid #000; vertical-align: -2px; }
  .shot .todo.done .mark::before { content: "✓"; border: 0; height: auto; }
  .shot .thumb { width: 28px !important; height: 28px !important; }
  .shot .thumb .ant-image-mask { display: none; }
  .shot a { color: #000 !important; }
}
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs .ant-segmented { min-width: max-content; }

/* Settings (pages/settings.tsx, docs/seller-design.md 6.5): under 1100 px the index (the groups as cards, two across
   on a tablet) is its own screen and a section opens in its place; from 1100 px the list is a 264 px column that stays
   in place beside the open section. */
.settings { display: block; }
.settings[data-picked="1"] .rail, .settings[data-picked="0"] .settings-main { display: none; }
.rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rail > .phead { margin-bottom: 0; }
.rail-find .ant-input-affix-wrapper { min-height: 44px; border-radius: 10px; }
.rail-groups > .rail-group + .rail-group { margin-top: 12px; }
@media (min-width: 640px) {
  .rail-find .ant-input-affix-wrapper { min-height: 36px; }
  .rail-groups { columns: 2; column-gap: 16px; }
  .rail-groups > .rail-group { break-inside: avoid; margin: 0 0 16px; }
  .rail-groups > .rail-group + .rail-group { margin-top: 0; }
}
.rail-group { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.rail-label { padding: 12px 14px 6px; font-size: var(--t-small-size); line-height: var(--t-small-line); font-weight: 500; color: var(--muted); }
.rail-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px 6px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rail-label + .rail-item { border-top: 0; }
.rail-item:hover { background: var(--fill); color: var(--ink); }
.rail-item:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.rail-ico { flex: none; font-size: 16px; color: var(--muted); }
.rail-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rail-name { font-size: var(--t-body-size); line-height: 20px; font-weight: 500; }
.rail-status { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-status.you { color: var(--you); }
.rail-dot { display: none; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--you); }
.rail-go { flex: none; margin-right: 6px; font-size: 12px; color: var(--muted); }
.rail-none { margin: 0; padding: 0 4px; font-size: var(--t-small-size); color: var(--muted); }
@media (min-width: 1100px) {
  .settings { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
  .settings[data-picked] .rail, .settings[data-picked] .settings-main { display: flex; }
  .settings-main { flex-direction: column; min-width: 0; }
  .rail { position: sticky; top: var(--bar-h, 53px); max-height: calc(100vh - var(--bar-h, 53px)); max-height: calc(100dvh - var(--bar-h, 53px)); overflow-y: auto;
    overscroll-behavior: contain; scrollbar-width: thin; gap: 0; padding: 4px 0 24px; }
  .rail-find { margin-bottom: 8px; }
  .rail-find .ant-input-affix-wrapper { min-height: 32px; border-radius: 8px; }
  .rail-groups { columns: auto; }
  .rail-groups > .rail-group, .rail-groups > .rail-group + .rail-group { margin: 0; }
  .rail-group { border: 0; border-radius: 0; background: none; overflow: visible; display: flex; flex-direction: column; gap: 2px; }
  .rail-label { height: 28px; padding: 8px 8px 0; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); }
  .rail-item { gap: 10px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; white-space: nowrap; }
  .rail-item.on { background: color-mix(in srgb, var(--on) 14%, transparent); color: var(--on); }
  .rail-item.on .rail-ico { color: var(--on); }
  .rail-status, .rail-go { display: none; }
  .rail-dot { display: block; margin-right: 4px; }
}

/* A section in the frame: its identity row, then its cards of rows, one across on a phone and two from 640 px. */
.settings-main > section > .phead { margin-bottom: 8px; }
.set-cards { display: grid; gap: 12px; align-items: start; }
@media (min-width: 640px) { .set-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.set-cards > .rec-card { margin: 0; min-width: 0; }
.set-cards > .span2 { grid-column: 1 / -1; }
.set-card > .rec-card-head { min-height: 52px; padding: 10px 6px 6px 14px; }
.set-card > .rec-card-head .rec-card-title { font-size: var(--t-body-size); line-height: 20px; }
.set-card-help { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
.set-card-help .help-icon { padding: 6px; font-size: 16px; }
.set-card .arow, .set-card .arow-head { padding-left: 14px; }
.set-ctl > .ant-input-number .ant-input-number-input { text-align: right; }
/* Every number box with up/down arrows keeps its value clear of them. The arrows show only on hover and focus,
   over the box's end, so only then is the end padded by their width (antd's 22 px) plus a 4 px gap. */
.ant-input-number:has(> .ant-input-number-handler-wrap):is(:hover, .ant-input-number-focused) .ant-input-number-input { padding-inline-end: 26px; }
.set-card .arow-set .arow-label { flex: 1 1 0; }
.set-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; flex: 0 1 auto; min-width: 0; }
.set-unit { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); white-space: nowrap; }
.set-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line);
  font-size: var(--t-body-size); line-height: var(--t-body-line); color: var(--muted); }
.set-line.you { color: var(--you); } .set-line.bad { color: var(--bad); }
.set-line .ant-btn { flex: none; }
/* 44 px to touch on a phone: a segment, a card's ? and a tag reach past their drawn edge, within their row. */
@media (max-width: 639.98px) {
  .set-card .ant-segmented-item-label, .set-card-help .help-icon { position: relative; }
  .set-card .ant-segmented-item-label::after, .set-card-help .help-icon::after { content: ""; position: absolute; inset: -6px 0; }
}
.rec-card-head + .set-line { border-top: 0; }
/* A row that opens what is behind it (a site's fees, a site's shipping rule): the whole row is the button. */
.set-go { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 6px 8px 14px; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.set-go:hover { background: var(--fill); }
.set-go:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.set-go.slim { min-height: 44px; }
.set-go-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-go-name { font-size: var(--t-body-size); line-height: 20px; overflow-wrap: anywhere; }
.set-go.slim .set-go-name { color: var(--muted); font-size: var(--t-small-size); }
.set-go-sub { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.set-go-sub.you { color: var(--you); }
.set-go-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.set-go-end small { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.set-go-chev { flex: none; margin: 0 6px 0 2px; font-size: 12px; color: var(--muted); }
/* A pick of one of a few (Posting's four ways): a radio a row, the picked one's settings as rows under it. */
.set-pick { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.set-pick .ant-radio-wrapper { flex: 1; display: flex; align-items: center; min-height: 48px; margin: 0; padding: 6px 14px; }
.rec-card-head + .ant-radio-group > .set-pick:first-child { border-top: 1px solid var(--line); }
.set-days.ant-checkbox-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 0; }
.set-wait { padding: 4px 14px 14px; }
.set-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 12px; }
/* How you list (public/how-you-list.js): the service and its sites at the left, Direct at the right from 900 px, one column under. */
.route-halves { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .route-halves { grid-template-columns: repeat(2, minmax(0, 1fr)); } .route-halves > div + div { border-left: 1px solid var(--line); } }
.route-halves > div > .arow-head:first-child { border-top: 0; }
.route-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 12px; }
.route-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.route-chip.on { border-color: color-mix(in srgb, var(--on) 55%, transparent); background: color-mix(in srgb, var(--on) 12%, transparent); color: var(--on); font-weight: 500; }
.route-chip.locked { cursor: default; }
.route-chip.locked .anticon { color: var(--muted); }
.route-chip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.route-chip[aria-disabled="true"]:not(.locked) { opacity: .6; cursor: progress; }
.set-tags .ant-tag { margin: 0; }
.rec-card-head + .set-tags { padding-top: 2px; }
.set-steps { margin: 6px 0 0; padding-left: 18px; }
.set-steps li + li { margin-top: 4px; }
.set-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.set-go-tag.ant-tag { margin: 0 0 0 6px; font-size: var(--t-tiny-size); line-height: 16px; }
/* The Drafts group's sections (docs/seller-design.md 6.6): a card's count, a column of cards beside another card, a card's
   add chip and its buttons, a form opened in a Detail. */
.set-card-count { margin-left: 6px; font-weight: 400; color: var(--muted); }
.phead-under .you { color: var(--you); }
.set-stack { display: flex; flex-direction: column; gap: 12px; }
.set-stack > .issues { margin: 0; }
.set-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.set-col > .rec-card { margin: 0; }
@media (min-width: 640px) { .set-stack, .set-col { gap: 16px; } }
.set-add { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.set-add .add-chip { color: var(--on); }
.set-add .add-chip > .anticon { color: var(--on); }
.set-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.set-fold.set-go { min-height: 44px; }
.set-form { padding: 12px 16px; }
.set-go-end .set-go-tag.ant-tag { margin: 0; }
/* Shipping supplies' stock: Low or Out, then the stepper; 44 px to touch on a phone. */
.stock { display: inline-flex; align-items: center; gap: 8px; flex: none; }
/* The Low or Out tag's slot, kept when there's no tag, so the steppers line up down a card. */
.stock-flag { display: inline-flex; justify-content: flex-end; width: 44px; flex: none; }
.stock-flag .ant-tag { margin: 0; }
.stock-step .ant-input-number { width: 48px; }
/* A supply's Reorder link (public/restock.js), beside its size; bolder when the supply is Low or Out. */
.restock-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; white-space: nowrap; }
.restock-link.restock-now { font-weight: 600; }
.usps-see { margin-left: 8px; white-space: nowrap; font-size: 13px; }
.restock-note { font-size: 12px; color: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.55)); }
.set-note { font-size: 12px; color: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.55)); margin: 4px 2px 0; }
@media (pointer: coarse) { .restock-link { padding: 12px 0; margin-block: -12px; } }
.stock-step .ant-input-number-input { text-align: center; }
@media (max-width: 639.98px) {
  .stock-step .ant-btn { width: 44px; height: 44px; }
  .stock-step .ant-input-number, .stock-step .ant-input-number-input { height: 44px; }
}
/* A marketplace search rule's name opens why it is (a popover, a sheet on a phone). */
.rule-name { position: relative; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  text-decoration: underline dotted color-mix(in srgb, var(--muted) 70%, transparent); text-underline-offset: 3px; }
.rule-name:hover { color: var(--on); }
.rule-name:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 2px; }
.rule-name.off { color: var(--muted); }
@media (max-width: 639.98px) { .rule-name::after { content: ""; position: absolute; inset: -12px -4px; } }
.why-pop { max-width: 340px; }
.why-pop p { margin: 0 0 8px; }
.why-source { font-size: var(--t-small-size); color: var(--muted); }
.why-foot { margin-top: 4px; }
.why-built { font-size: var(--t-small-size); color: var(--muted); }
.why-back.ant-btn { padding: 0; height: auto; }
.why-sheet .why-pop { max-width: none; padding: 12px 8px 0; }
.why-sheet .ant-drawer-footer { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.why-sheet .detail-bar .why-built, .why-sheet .detail-bar .why-back.ant-btn { align-self: center; padding: 0 4px; }
.seen-list { padding: 6px 16px 10px; }
.seen-list ul { margin: 4px 0 0; padding-left: 18px; }
.arow-sub.you { color: var(--you); }
.lede { margin: 4px 0 0; max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-body { display: flex; flex-direction: column; gap: 36px; }
.sub-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sub-head h3 { margin: 0; font-size: 16px; font-weight: 600; }

/* One bordered panel per list; rows inside it are divided by hairlines. */
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.panel.pad { padding: 16px; }
.learn-icon { flex: none; color: #722ed1; font-size: 16px; line-height: 1.5; }
.srow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.panel > .srow:first-child { border-top: 0; }
.srow-text { flex: 1 1 200px; min-width: 0; }
.srow-sub { display: block; font-size: 13px; color: var(--muted); }
.srow-end { margin-left: auto; }
/* Settings > Bring in your listings (public/imports.js) */
.import-progress, .import-done { padding: 0 16px 12px; margin: 0; }
.panel > .ant-alert { margin: 0 16px 12px; }
/* USPS Ground Advantage: supply size notes, the common-supplies picker and the rules (public/usps.js) */
.usps-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.usps-tags .ant-tag { margin: 0; font-size: 12px; cursor: help; }
.srow-sub + .usps-tags { display: flex; }
.usps-group { display: flex; flex-direction: column; gap: 4px; }
.usps-pick { display: flex; flex-direction: column; }
.usps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.usps-row:last-child { border-bottom: 0; }
.usps-row .usps-tags { margin: 0; }
.usps-row.have { padding-left: 24px; color: var(--muted); }
.usps-why { color: var(--muted); font-size: 13px; margin-left: 4px; }
.usps-have { font-size: 13px; color: var(--done); }
.usps-list { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.usps-list dt { font-weight: 600; }
.usps-list dd { margin: 0; }
.mrow.off .srow-text .ant-typography { color: var(--muted); }


/* Top bar links (Sales, Settings, Help, Admin): icons alone, named in their tooltips. */
.nav { display: inline-flex; align-items: center; white-space: nowrap; font-size: 18px; color: inherit; }
@media (max-width: 560px) { .envtag { display: none; } }
/* Automatic posting's count in the top bar (public/ui.js PostingChip): the number stays on a phone, the time goes. */
.postchip { text-decoration: none; font-variant-numeric: tabular-nums; }
.postchip .ant-tag { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 560px) { .postchip .postchip-more { display: none; } }
/* An alert icon in the top bar with a flyout (public/ui.js ExtensionUpdateAlert). */
.alertchip { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; flex: none; }
.alertchip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 4px; }
/* The top bar's Sales chip and its flyout (public/sale-alerts.js). */
.salechip { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; flex: none; font-variant-numeric: tabular-nums; min-height: 44px; }
.salechip .ant-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.salechip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 6px; }
.salealert-fly { display: flex; flex-direction: column; gap: 12px; width: min(360px, calc(100vw - 56px)); }
.salealert-sheet .salealert-fly { width: auto; padding: 0 16px 16px; }
.salealert-part { display: flex; flex-direction: column; gap: 4px; }
.salealert-lede { margin: 0; color: var(--muted); font-size: 13px; }
.salealert-list { display: flex; flex-direction: column; max-height: 40vh; overflow-y: auto; margin-inline: -8px; }
.salealert-row { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.salealert-row:hover, .salealert-row:focus-visible { background: rgb(127 127 127 / .1); color: inherit; }
/* A sale's line: the row, and Print label beside it where its email brought one (public/sale-label.js). */
.salealert-line { flex: none; display: flex; align-items: center; gap: 2px; }
.salealert-line > .salealert-row { flex: 1; min-width: 0; }
.salealert-label { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; font-size: 18px; color: var(--muted); }
.salealert-label:hover, .salealert-label:focus-visible { background: rgb(127 127 127 / .1); color: inherit; }
.salealert-thumb { flex: none; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: rgb(127 127 127 / .12); font-size: 18px; }
.salealert-thumb.you { color: var(--you); background: rgb(250 140 22 / .12); }
.salealert-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.salealert-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.salealert-sub, .salealert-why { font-size: 12px; color: var(--muted); }
.salealert-why { white-space: normal; }
.salealert-go { flex: none; opacity: .5; font-size: 12px; }
/* The top bar's alerts summary (public/ui.js AlertsMenu): Offers and each other kind waiting, a row each like the menu's,
   then "Drafting improved" as a card, then See all activity. A popover under the bell from 640 px, a sheet on a phone. */
.alerts, .alerts-anchor { display: inline-flex; }
.barmenu-panel.alerts-panel .ant-popover-inner { width: 360px; padding: 8px 0; }
.alerts-body { display: flex; flex-direction: column; gap: 8px; }
.alerts-rows { display: flex; flex-direction: column; padding: 0 8px; }
.alerts-none { flex: none; font-size: var(--t-small-size); color: var(--muted); }
.alerts-card { margin: 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.alerts-card .improved-fly { width: auto; }
.improved-head { display: flex; align-items: center; gap: 8px; }
.improved-head > .anticon { color: var(--on); font-size: 16px; }
.alerts-all { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0 8px; padding: 4px 8px; border-top: 1px solid var(--line);
  color: var(--on); font-weight: 500; text-decoration: none; }
.alerts-all:hover { color: var(--on); background: var(--fill); border-radius: 8px; }
.alerts-all:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; border-radius: 8px; }
.alerts-all .anticon { font-size: 12px; }
.alerts-sheet .alerts-body { padding-bottom: 16px; }
.alerts-card:empty { display: none; }
.improved-fly { display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 56px)); }
@media (max-width: 420px) { .barin { gap: 6px; padding-inline: 12px; } }
.improved-fly p { margin: 0; }
.improved-list { margin: 0; padding-left: 18px; max-height: 40vh; overflow-y: auto; }
.improved-after { border-top: 1px solid rgb(127 127 127 / .2); padding-top: 8px; }
.improved-fly > .improved-after:first-child { border-top: 0; padding-top: 0; }
/* Re-Drafting Complete (public/redrafts.js): what Draft again changed, item by item. */
.redraft-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.redraft-item { padding: 10px 0; border-bottom: 1px solid rgb(127 127 127 / .15); }
.redraft-item:last-child { border-bottom: 0; }
.redraft-head { display: flex; gap: 10px; align-items: flex-start; }
.redraft-what { flex: 1; min-width: 0; }
.redraft-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.redraft-changes { margin: 8px 0 0 58px; display: flex; flex-direction: column; gap: 8px; }
.redraft-changes dt { font-size: 12px; color: var(--muted, #888); display: flex; align-items: center; gap: 4px; }
.redraft-changes dt .ant-tag { margin-inline-end: 0; font-size: 11px; line-height: 16px; }
.redraft-changes dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.redraft-arrow { color: var(--muted, #888); }
@media (max-width: 640px) { .redraft-changes { margin-left: 0; } }
/* The item page's Drafts (public/draft-history.js): each draft and what it changed. */
.drafts-drawer .redraft-changes { margin: 0; }
.drafts-head { display: flex; flex-direction: column; min-width: 0; }
.drafts-said { font-size: 12px; }
.drafts-drawer .ant-collapse-header { align-items: flex-start !important; }
.drafts-drawer .drafts-flat > .ant-collapse-header { padding-inline-start: 40px !important; cursor: default; }
/* A redraft's outcome (public/redrafts.js RedraftOutcome): what the releases could fill, filled or not; other
   changes; the rewording folded away. */
.redraft-outcome { display: flex; flex-direction: column; gap: 14px; }
.redraft-item-body { margin: 8px 0 0 58px; }
.redraft-item-body .redraft-changes, .redraft-outcome .redraft-changes { margin: 6px 0 0; }
.redraft-promise-head { display: flex; align-items: center; gap: 6px; }
.redraft-promise-head .anticon { color: var(--muted, #888); cursor: help; }
.redraft-promise { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.redraft-promise li { display: flex; gap: 8px; align-items: flex-start; }
.redraft-promise li > .anticon { margin-top: 4px; flex: none; }
.redraft-promise li.is-filled > .anticon { color: var(--ant-color-success, #52c41a); }
.redraft-promise li.is-empty > .anticon { color: var(--muted, #888); }
.redraft-promise-what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.redraft-reworded-toggle { padding-inline: 0 !important; height: auto; color: var(--muted, #888) !important; white-space: normal; text-align: start; }
@media (max-width: 640px) { .redraft-item-body { margin-left: 0; } }

/* The Vendoo step page */
ol.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
pre.prompt { white-space: pre-wrap; font-size: 12px; max-height: 360px; overflow: auto; margin: 0; }
/* Under the hood (public/under-hood.js): the long ones (prompts, rules, raw JSON) get more room. */
pre.prompt.uh-tall { max-height: 640px; }

/* Add many items (pages/sort.tsx) */
.sortpreview { display: flex; flex-wrap: wrap; gap: 4px; }
.sortpreview img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.sortgroup.over { outline: 2px dashed var(--on); }
.sortgroup.flag { border-color: #f5222d; }
/* Add many items' photos: twice the old 84 px; two to a row on a narrow phone (each with its 22 px scissors). */
.sortstrip { --thumb: 168px; display: flex; flex-wrap: wrap; gap: 6px 2px; align-items: center; }
.sortcell { position: relative; display: inline-flex; align-items: center; }
.sortthumb { position: relative; width: var(--thumb, 168px); height: var(--thumb, 168px); padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--line); cursor: pointer; }
.sortthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sortthumb.on { border-color: var(--on); }
.sortthumbwrap { position: relative; display: inline-block; }
.sortthumbwrap .zoom { position: absolute; bottom: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 13px; cursor: pointer; }
.sortthumbwrap .zoom:hover, .sortthumbwrap .zoom:focus-visible { background: rgba(0,0,0,.8); }
.sortthumbwrap .drop { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 12px; cursor: pointer; }
.sortthumbwrap .drop:hover, .sortthumbwrap .drop:focus-visible { background: #d4380d; }
.sortthumbwrap .drop.back:hover, .sortthumbwrap .drop.back:focus-visible { background: var(--on); }
.sortthumb .tick { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--on); color: #fff; display: grid; place-items: center; font-size: 12px; }
.sortthumb .noprev { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 18px; }
.sortthumb .noprev small { font-size: 10px; word-break: break-all; padding: 0 4px; }
.stickertag { position: absolute; bottom: 4px; right: 4px; padding: 0 5px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font: 11px/18px ui-monospace, monospace; pointer-events: none; }
.sortthumb .copytag { position: absolute; left: 6px; bottom: 6px; padding: 0 6px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; line-height: 18px; pointer-events: none; }
/* A photo that looks like an item already made (Add many items): ringed, so the warning's photos can be found in a big item. */
.sortcell.alike .sortthumb:not(.on) { border: 3px dashed #d48806; }
.sortcell .cut { width: 22px; height: var(--thumb, 168px); padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; opacity: .45; }
.sortcell .cut:hover, .sortcell .cut:focus-visible { opacity: 1; color: inherit; }
@media (max-width: 480px) { .sortstrip { --thumb: min(168px, calc(50vw - 60px)); } }
.sortbar { position: sticky; bottom: calc(0px - var(--screen-gap, 0px)); z-index: 5; padding: 12px 0; border-top: 1px solid var(--line); background: var(--bar); backdrop-filter: blur(8px); }

/* A linked section (/settings#supplies) clears the sticky top bar. */
[id] { scroll-margin-top: 72px; }

/* The photo editor (public/photo-editor.js, docs/item-page-design.md 4.9): full screen, above the page and its bar.
   Phone and tablet: top bar, photo, panel (while a tool is open), tool bar. A computer: tools on a rail at the
   left, the panel at the right. It follows the theme: the photo sits on near-black in dark, a light gray in light. */
.pe { --pe-stage: #ecece8; --pe-card: #fff; --pe-chip: rgb(31 95 209 / .1); position: fixed; inset: 0 0 calc(0px - var(--screen-gap, 0px)); z-index: 999; display: flex; flex-direction: column;
  background: var(--pe-card); color: var(--ink); overscroll-behavior: contain;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; }
@media (prefers-color-scheme: dark) { .pe { --pe-stage: #000; --pe-card: #161616; --pe-chip: rgb(106 156 245 / .2); } }
.pe-top { flex: none; display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 10px 0 4px; padding-top: env(safe-area-inset-top);
  box-sizing: content-box; border-bottom: 1px solid var(--line); background: var(--pe-card); }
.pe-gap { flex: 1; }
.pe .pe-ib { width: 44px; height: 44px; font-size: 18px; }
.pe .pe-close { height: 40px; }
.pe .pe-save { margin-left: 6px; height: 40px; padding-inline: 18px; font-weight: 600; }
.pe-from { margin-left: 8px; }
.pe-zoom { display: flex; align-items: center; gap: 2px; margin-inline: 6px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 8px; }
.pe-zoom-v { min-width: 44px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.pe-body { flex: 1; min-height: 0; display: flex; }
.pe-stage { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; background: var(--pe-stage); }
.pe-canvas { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.pe-layer { position: absolute; inset: 0; }
.pe-over { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.pe-over.pe-dim { background: var(--scrim); }
.pe-spin-box { width: 120px; height: 60px; }
.pe-toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
  max-width: calc(100% - 32px); min-height: 40px; padding: 0 6px 0 16px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line);
  box-shadow: var(--lift); font-size: 13px; white-space: nowrap; }
.pe-toast > span { overflow: hidden; text-overflow: ellipsis; }
.pe-toast:not(:has(.ant-btn)) { padding-right: 16px; }
/* The panel: every control of the chosen tool in view, under the photo (two across on a tablet). */
.pe-panel { flex: none; padding: 8px 16px 6px; background: var(--pe-card); border-top: 1px solid var(--line); }
.pe-panel-h { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 4px; }
.pe-panel-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.pe .pe-reset { padding-inline: 4px; }
.pe-rows { display: flex; flex-direction: column; }
.pe-row { display: flex; align-items: center; gap: 8px; min-height: 44px; flex-wrap: wrap; padding: 4px 0; }
.pe .pe-wide { flex: 1; }
.pe .pe-link { padding-inline: 0; }
.pe-chips { flex-wrap: nowrap; gap: 6px; }
.pe-chips .ant-btn { padding-inline: 4px; }
.pe-chip { flex: none; height: 32px; padding: 0 11px; border-radius: 16px; border: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: 13px;
  white-space: nowrap; cursor: pointer; }
.pe-chip.on { background: var(--pe-chip); border-color: transparent; color: var(--on); font-weight: 500; }
.pe-chip:focus-visible, .pe-tool:focus-visible, .pe-act:focus-visible, .pe-mrow:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.pe-sl { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.pe-sl-l { width: 84px; flex: none; font-size: 13px; color: var(--muted); }
.pe .pe-sl-s { flex: 1; margin: 0 6px; }
.pe-sl-v { width: 40px; flex: none; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.pe-sl-v.zero { color: var(--muted); }
.pe-acts { justify-content: space-between; flex-wrap: nowrap; }
.pe-act { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1; min-width: 0; height: 52px; padding: 0 4px;
  border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.pe-act .anticon { font-size: 18px; }
/* A touch screen keeps :hover after a tap, so only a real pointer gets it (a tapped Auto mustn't look picked). */
@media (hover: hover) { .pe-act:hover:not(:disabled), .pe-tool:hover:not(:disabled):not(.on), .pe-mrow:hover:not(:disabled) { background: rgb(127 127 127 / .08); } }
.pe-tool:focus:not(:focus-visible) { outline: none; }
.pe-act:disabled, .pe-tool:disabled, .pe-chip:disabled, .pe-mrow:disabled { opacity: .45; cursor: default; }
/* The tools: five across the bottom, icon over label, a dot on one that has changed the photo. */
.pe-tools { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--pe-card); border-top: 1px solid var(--line); }
.pe-tool { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 52px; padding: 0;
  border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.pe-tool.on { color: var(--on); background: var(--pe-chip); font-weight: 500; }
.pe-dot { position: absolute; top: 6px; left: calc(50% + 12px); width: 6px; height: 6px; border-radius: 50%; background: var(--on); }
.pe-tool-spin { position: absolute; top: 4px; right: 8px; }
/* More, on a phone: a sheet of rows. */
.pe-sheet .ant-drawer-content { border-radius: 16px 16px 0 0; }
.pe-sheet .ant-drawer-body { padding: 8px 0 calc(16px + env(safe-area-inset-bottom)); }
.pe-mrow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-top: 1px solid var(--line);
  background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.pe-mrow:first-child { border-top: 0; }
.pe-mrow .anticon { color: var(--muted); font-size: 18px; }
.pe-asks { display: flex; flex-direction: column; gap: 8px; }
.pe-asks .ant-btn { height: auto; min-height: 40px; white-space: normal; text-align: left; }
@media (min-width: 640px) and (max-width: 1099px) {
  .pe-panel .pe-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .pe-panel .pe-row { grid-column: 1 / -1; }
  .pe-panel { padding-inline: 24px; }
}
/* A computer: the rail (92 px) at the left, the panel (340 px) at the right. */
.pe.pe-wide .pe-tools { grid-template-columns: 1fr; align-content: start; gap: 4px; width: 92px; padding: 12px 8px; border-top: 0; border-right: 1px solid var(--line); }
.pe.pe-wide .pe-tool { height: 60px; }
.pe.pe-wide .pe-panel { width: 340px; padding: 8px 20px; border-top: 0; border-left: 1px solid var(--line); overflow-y: auto; }
.pe.pe-wide .pe-sl { min-height: 44px; }
.pe.pe-wide .pe-chips { flex-wrap: wrap; }
/* Previous, "1 of 7", next; and in a mode the top bar is Cancel, its name, Reset and Done. */
.pe-step { display: flex; align-items: center; margin-left: 2px; }
.pe .pe-ib-s { width: 36px; }
.pe-step-v { min-width: 44px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.pe-title { flex: 1; margin: 0; font-size: 15px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-top-mode { padding-left: 6px; }
.pe:not(.pe-wide).pe-moded .pe-tools { display: none; }
/* A mode, Touch up or Room's preview, drawn over the photo. */
.pe-slot { display: none; }
.pe-slot.on { display: block; position: absolute; inset: 0; background: var(--pe-stage); }
.pe-mode { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pe-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 6px 14px; border-radius: 16px;
  background: rgb(0 0 0 / .62); color: #fff; font-size: 13px; pointer-events: none; text-align: center; }
.pe-hint.bad { background: var(--bad); }
.pe-hint.warn { background: var(--you); color: var(--pe-card); font-weight: 500; }
.pe-panel .pe-note { margin: 4px 0; }
@media (min-width: 640px) and (max-width: 1099px) { .pe-panel .pe-note { grid-column: 1 / -1; } }
/* Perspective: four handles on the photo, the frame between them, a grid inside. */
.pe-persp-stage { position: relative; flex: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.pe-persp-stage canvas { display: block; }
.pe-persp-lines { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.pe-persp-shade { fill: rgb(0 0 0 / .4); }
.pe-persp-grid { stroke: rgb(255 255 255 / .75); stroke-width: 1; stroke-dasharray: 4 4; }
.pe-persp-frame { fill: none; stroke: var(--on); stroke-width: 2; }
.pe-persp-frame.bad { stroke: var(--bad); }
.pe-persp-handle { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%;
  border: 3px solid var(--on); background: rgb(255 255 255 / .85); box-shadow: 0 1px 4px rgb(0 0 0 / .4); cursor: grab; touch-action: none; }
.pe-persp-handle::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.pe-persp-handle:active { cursor: grabbing; background: #fff; }
.pe-persp-handle:focus-visible { outline: 3px solid var(--on); outline-offset: 2px; }
/* White and black point: tap the photo; the magnifier follows the pointer, a ring stays on each spot. */
.pe-point { position: relative; flex: none; }
.pe-point-stage { display: block; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.pe-ring { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; border: 2px solid #fff; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000; }
/* The black point's ring is the other way round: dark, outlined in white, so the two can't be mixed up. */
.pe-ring.black { border-color: #000; box-shadow: 0 0 0 1px #fff, inset 0 0 0 1px #fff; }
.pe-loupe { position: absolute; border-radius: 50%; pointer-events: none; border: 2px solid #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .3); }
/* Room: the photo on white, as the slider has it. */
.pe-room { display: block; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
/* Touch up: the cut-out over a checkerboard, the part taken out faint; zoomed in, it scrolls. */
.pe-touch { display: flex; overflow: auto; justify-content: flex-start; align-items: flex-start; }
.pe-touch > .ant-spin { margin: auto; }
.pe-touch-canvas { margin: auto; flex: none; touch-action: none; cursor: none; background: repeating-conic-gradient(#d9d9d9 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; }
/* The item's photos along the bottom, on a computer: the open one outlined, a check on each saved in this visit. */
.pe-strip { flex: none; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); overflow-x: auto; border-top: 1px solid var(--line); background: var(--pe-card); }
.pe-film { position: relative; flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--pe-stage); cursor: pointer; overflow: hidden; }
.pe-film img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pe-film.on { border-color: var(--on); }
.pe-film:disabled { cursor: default; opacity: .6; }
.pe-film:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.pe-film-ok { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--on); color: #fff; font-size: 11px; }
/* Drag to reorder: the photo being moved, and the full-size viewer's own tools. */
.strip > *, .grid > .tile { cursor: grab; }
/* A photo you took that isn't a listing photo (a tape or SKU sticker shot, say): dimmed, with why. */
.tile.left-out .ant-image-img { opacity: .5; }
.dragging { opacity: .4; }

/* A photo card (item screen: listing photos and Your photos). Nothing sits on the photo: a thin strip above it holds
   what the photo is (cover, why it's left out) and what undoes or removes it; a strip below holds edit, move and turn.
   Labels are icons, their words in the tooltip; colour marks the one to notice (undo an edit), red is delete. */
.photo-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--raised); overflow: hidden; }
.strip > .photo-card, .grid > .photo-card, .thumbs > .photo-card { aspect-ratio: auto; }
.photo-card .photo-img { position: relative; aspect-ratio: 1; min-height: 0; }
/* Leave out on its way to the server: dimmed under a spinner, then gone once the server has it. */
.photo-card.going { pointer-events: none; }
.photo-card.going .photo-bar { opacity: .4; }
.photo-going { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim); }
/* The cover spans two rows of cards, so its photo takes the height left between its strips, still whole. */
.strip > .photo-card:first-child .photo-img { flex: 1; aspect-ratio: auto; }
.strip > .photo-card:first-child .photo-img .ant-image-img { object-fit: contain !important; }
.photo-card .photo-img .ant-image, .photo-card .photo-img .ant-image-img { display: block; width: 100% !important; height: 100% !important; border-radius: 0; }
.photo-card.tile .photo-img .ant-image-img { object-fit: cover; }
.photo-bar { display: flex; align-items: center; gap: 0; height: 26px; padding: 0 1px; flex: none; }
.photo-bar .gap { flex: 1; min-width: 0; }
.photo-bar .pb.ant-btn { width: 24px; min-width: 0; height: 24px; padding: 0; color: var(--muted); }
.photo-bar .pb.ant-btn:not(:disabled):hover { color: var(--ink); }
.photo-bar .pb.on.ant-btn { color: var(--on); background: color-mix(in srgb, var(--on) 12%, transparent); }
.photo-bar .pb.on.ant-btn:not(:disabled):hover { color: var(--on); background: color-mix(in srgb, var(--on) 20%, transparent); }
.photo-bar .pb.bad.ant-btn:not(:disabled):hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.pmark { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--muted); font-size: 14px; cursor: help; border-radius: 6px; }
.pmark:focus-visible { outline: 2px solid var(--on); }
.pmark.you { color: var(--you); }
.turnable .photo-bar .anticon-star { color: var(--ink); }
@media (max-width: 640px) { .photo-bar .pb.ant-btn, .pmark { width: 22px; } }
.viewer-tools { padding: 0 24px; color: #fff; font-size: 20px; background: rgb(0 0 0 / .1); border-radius: 100px; }
.viewer-tools .anticon { padding: 12px; cursor: pointer; }

/* Drafting progress on Home: one bar for the run, a chip per stage, each item's line. */
:root { --s-waiting: #b9b9b2; --s-photos: #7fa7ea; --s-claude: #1f5fd1; --s-batch: #8a5cd6; --s-saving: #2b8fa3; --s-retrying: #c98a1b; --s-held: #a0527a; --s-done: #2f8a4f; --s-failed: #cf3b32; }
@media (prefers-color-scheme: dark) {
  :root { --s-waiting: #55554f; --s-photos: #3d5f9c; --s-claude: #6a9cf5; --s-batch: #a987e6; --s-saving: #4fb3c7; --s-retrying: #e0a841; --s-held: #d283ad; --s-done: #6fc28f; --s-failed: #ef6b62; }
}
.runbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); gap: 2px; }
.runbar .seg { min-width: 6px; transition: flex-grow .4s ease; }
.s-waiting { background: var(--s-waiting); } .s-photos { background: var(--s-photos); } .s-claude { background: var(--s-claude); }
.s-batch { background: var(--s-batch); } .s-saving { background: var(--s-saving); } .s-retrying { background: var(--s-retrying); } .s-held { background: var(--s-held); } .s-done { background: var(--s-done); } .s-failed { background: var(--s-failed); }
.runbar .s-claude, .runbar .s-photos, .runbar .s-saving { animation: runpulse 1.6s ease-in-out infinite; }
@keyframes runpulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .runbar .seg { animation: none; transition: none; } }
/* One draft's steps (public/ui.js DraftSteps): a bar of 4 parts with "Step 3 of 4" beside it. Done parts filled, the one
   it's on pulsing in its state's colour, ones it had done before going back striped, the rest empty. */
.dsteps { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-width: 0; max-width: 100%; font-size: 13px; color: var(--muted); }
.dsteps .dbar { display: inline-flex; gap: 3px; flex: none; width: 96px; }
.dsteps .dseg { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.dsteps .dseg.done { background: var(--s-done); }
.dsteps .dseg.now { background: var(--s-claude); animation: runpulse 1.6s ease-in-out infinite; }
.dsteps .dseg.redo { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--s-done) 55%, transparent) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-done) 55%, transparent); }
.dsteps.st-sent .dseg.now { background: var(--s-batch); }
.dsteps.st-back .dseg.now, .dsteps.st-retrying .dseg.now { background: var(--s-retrying); }
.dsteps.st-held .dseg.now { background: var(--s-held); animation: none; }
.dsteps.st-failed .dseg.now { background: var(--s-failed); animation: none; }
.dsteps.st-retrying .dseg.now { animation: none; }
.dsteps .dtext { min-width: 0; }
.dsteps .dhead { color: var(--ink); }
.dsteps.st-back .dhead, .dsteps.st-retrying .dhead { color: var(--you); }
.dsteps.st-failed .dhead { color: var(--bad); }
.dsteps .dtime { white-space: nowrap; }
.dsteps .dhelp { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.dsteps .dhelp .help-icon { margin: 0; }
/* The item page: the bar across, each part named under it. */
.dsteps.wide { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
.dsteps.wide .dbar { width: 100%; max-width: 480px; gap: 4px; }
.dsteps.wide .dseg { height: 8px; position: relative; margin-bottom: 18px; }
.dsteps.wide .dname { position: absolute; top: 12px; left: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dsteps.wide .dseg.now .dname { color: var(--ink); font-weight: 600; }
.dsteps.wide .dtext { display: block; }
@media (prefers-reduced-motion: reduce) { .dsteps .dseg { animation: none; } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.runchip { display: inline-flex; align-items: center; gap: 0; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px;
  background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.runchip b { margin-left: 6px; font-variant-numeric: tabular-nums; }
.runchip:hover { border-color: var(--on); }
.runchip.on { border-color: var(--on); box-shadow: inset 0 0 0 1px var(--on); }
.runchip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.runlist { max-height: 360px; overflow-y: auto; }
.runlist .row { padding: 6px 8px !important; }

/* Every text box on a touch screen: iPhone Safari zooms the page in on focusing a box whose text is under 16px
   (and stays zoomed), so on a touch screen every kind of box types at 16px. A select's search box and its picked
   value alike, so the two line up. Important: the UI library's small and affixed boxes set their own size with
   stronger rules, and none of them may win here. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
  textarea, select, .ant-select .ant-select-selector { font-size: 16px !important; }
}

/* Category dropdown: as wide as its paths need, never narrower than the picker (Ant sets that as min-width, which
   wins over the cap), up to a cap; past it options wrap instead of cutting off the end of long paths. */
.cat-popup.ant-select-dropdown { width: max-content; max-width: min(440px, calc(100vw - 32px), var(--pop-room, 100vw)); }
.cat-popup .ant-select-item-option-content { white-space: normal; overflow: visible; text-overflow: clip; }
.cat-popup .ant-select-item { padding-block: 7px; }
.cat-opt-leaf { font-weight: 600; line-height: 1.35; }
.cat-opt-path { font-weight: 400; font-size: 12.5px; line-height: 1.35; opacity: 0.65; overflow-wrap: anywhere; }

/* The first-run window (public/first-run.js): a sheet on a phone, a dialog from 640 px. Its answers are whole rows to tap. */
.fr-head { display: flex; flex-direction: column; }
.fr-count { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); font-weight: 400; color: var(--muted); }
.fr-title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.fr-steps { display: flex; gap: 4px; margin-top: 10px; }
.fr-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.fr-steps i.on { background: var(--on); }
.fr-pick { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 44px; padding: 11px 16px; border: 0; border-radius: 0; background: transparent;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fr-pick:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.fr-pick.on { background: color-mix(in srgb, var(--on) 8%, transparent); }
.fr-pick:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.fr-pick.gap { border-top: 1px solid var(--line); margin-top: 6px; }
.fr-box, .fr-dot { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--muted); border-radius: 5px; position: relative; }
.fr-dot { border-radius: 50%; }
.fr-pick.on .fr-box { border-color: var(--on); background: var(--on); }
.fr-pick.on .fr-box::after { content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 10px; border: solid var(--raised); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fr-pick.on .fr-dot { border-color: var(--on); }
.fr-pick.on .fr-dot::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--on); }
.fr-text { flex: 1; min-width: 0; }
.fr-text b { display: block; font-weight: 500; line-height: 22px; }
.fr-text small { display: block; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
/* Which shipping supplies they have (public/supply-ask.js): the first run's rows, edge to edge in the sheet. */
.supply-ask { position: relative; }
.supply-ask .fr-pick { width: calc(100% + 32px); margin: 0 -16px; }
.supply-ask-head { margin: 14px 0 2px; }
.supply-ask-all { position: absolute; right: -7px; top: -4px; }
/* Reorder sits beside the tick row, not in it: a link can't go inside the row's button. The row takes the tick's color. */
.supply-ask-row { display: flex; align-items: stretch; margin: 0 -16px; }
.supply-ask-row.on { background: color-mix(in srgb, var(--on) 8%, transparent); }
.supply-ask .supply-ask-row .fr-pick { flex: 1; min-width: 0; width: auto; margin: 0; }
.supply-ask-row.on .fr-pick { background: transparent; }
.supply-ask-links { flex: none; max-width: 140px; padding: 11px 16px 11px 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: var(--t-small-size); text-align: right; }
.supply-ask-heavy { color: var(--muted); font-size: var(--t-tiny-size); display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 6px; align-items: baseline; }
.supply-ask-note { margin-top: 12px; }
.fr-under { margin: 0; padding: 0 16px 6px 48px; }
.fr-note { margin: 0; padding: 8px 16px 4px; color: var(--muted); font-size: 13px; line-height: 20px; }
.fr-under > div { display: flex; align-items: baseline; gap: 12px; min-height: 36px; padding: 7px 0; border-top: 1px solid var(--line); }
.fr-under dt { flex: none; }
.fr-under dd { flex: 1; min-width: 0; margin: 0; text-align: right; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); }
.fr-why { min-width: 0; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.fr-bar .ant-btn { min-height: 40px; }
.first-run.ant-modal .ant-modal-content { padding: 16px 0 12px; }
.first-run.ant-modal .ant-modal-header { padding: 0 16px; margin-bottom: 10px; }
.first-run.ant-modal .ant-modal-footer { padding: 0 12px; margin-top: 12px; }
.first-run.ant-modal .ant-modal-body { max-height: min(60vh, 520px); overflow-y: auto; }
.first-run .ant-drawer-header { padding: 14px 16px 10px; }
.first-run .ant-spin { display: block; margin: 24px auto; }
@media (max-width: 639.98px) { .fr-bar .ant-btn { min-height: 44px; } }
/* A two-column tick list (pages/guide.tsx: what you sell) */
.picker-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.picker-sites .ant-checkbox-wrapper { margin: 0; }
.picker-note { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .picker-sites { grid-template-columns: 1fr; } }

/* Prices (public/prices.js): one price with the suggested one under it, refresh and the sold listings beside it.
   Each marketplace gets its own row only when the seller prices them one by one, label and input side by side,
   so nothing is cut off at any width. */
.price-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* The price rows of the Pricing tab (docs/pricing-design.md 4.2 to 4.5): rows of field-row.js, the value at the right, its
   one small line under it, at most two small buttons (two go on a line of their own under the words). */
.price-rows { gap: 0; }
.price-rows .frow-v .pr-fig { font-size: var(--t-head-size, 18px); line-height: var(--t-head-line, 26px); font-weight: 600; font-variant-numeric: tabular-nums; }
.price-rows .frow-v .ant-input-number.pr-fig { flex: 0 1 160px; }
.price-rows .frow-v .ant-input-number.pr-fig input { text-align: right; font-size: var(--t-head-size, 18px); font-weight: 600; padding-inline-end: 0; }
.price-rows .ant-input-number.pr-follows input:not(:focus)::placeholder { color: var(--ink); opacity: 1; }
.price-rows .pr-fig.muted { font-size: 14px; font-weight: 400; color: var(--muted); }
.pr-val { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; line-height: 20px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.pr-val b { font-weight: 600; }
.pr-val small { font-size: 13px; line-height: 18px; color: var(--muted); }
.pr-muted { color: var(--muted); }
.pr-warn { color: var(--you); }
.pr-muted .ant-spin { margin-right: 6px; }
.pr-acts { display: flex; gap: 8px; flex: none; margin-inline-start: 8px; }
/* The Segment row (public/segment-ui.js): its count opens the sold listings; the words wrap rather than widen the row. */
.price-row-seg .pr-val small { text-align: right; overflow-wrap: anywhere; }
.price-row-seg .seg-count { padding: 0; height: auto; font-size: 13px; line-height: 18px; }
.seg-sold { list-style: none; margin: 0; padding: 0; }
.seg-sold li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.seg-sold-t { min-width: 0; overflow-wrap: anywhere; }
.seg-sold-p { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-variant-numeric: tabular-nums; }
.seg-sold-p small { color: var(--muted); font-size: 12px; }
.field.frow > .pr-acts-line { grid-column: 1 / -1; justify-content: flex-end; margin: 0; padding: 0 0 8px; }
/* A state dot on a tab (docs/style-guide.md): after the label, 7 px. */
.tab-dot { display: inline-block; width: 7px; height: 7px; margin-inline-start: 6px; border-radius: 50%; vertical-align: middle; background: var(--you); }
.tab-dot.bad { background: var(--bad); }
.tab-dot.info { background: var(--on); }
.price-own { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.price-own .ant-input-number { width: 120px; font-variant-numeric: tabular-nums; }
/* Each marketplace (docs/pricing-design.md 4.4): a row, then a grid sized to fit 360 px. Two across from 640 px:
   the price rows on the left, each marketplace open on the right. */
.price-field { gap: 0; }
.pr-col, .price-markets { min-width: 0; }
.price-markets-row.foldable { cursor: pointer; }
.pr-chev { font-size: 12px; color: var(--muted); }
.mk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px 84px; align-items: center; column-gap: 8px; }
.mk-grid > .mk-tr { display: contents; }
.mk-tr > * { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mk-tr > .mk-h { min-height: 28px; border-top: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.mk-tr > .r { justify-content: flex-end; white-space: nowrap; }
.mk-tr > .mk-name { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 18px; overflow-wrap: anywhere; }
.mk-name small { font-size: 12px; line-height: 16px; color: var(--muted); }
.mk-grid .mk-in { width: 100%; }
.mk-grid .mk-in input { text-align: right; }
/* A marketplace's own pricing controls (eBay's Best Offer), as rows under its line: indented, no rule between them and it. */
.mk-sub { grid-column: 1 / -1; display: flex; flex-direction: column; padding-bottom: 4px; }
.mk-sub-in { display: flex; flex-direction: column; }
.mk-sub:not(:has(.field)) { display: none; }
.mk-sub .field.frow { min-height: 36px; border-top: 0; }
.mk-sub.solo .field.frow.frow-site > .frow-l { padding-left: 0; gap: 6px; }
.mk-sub .mk-default { font-size: 12px; margin-inline-end: 8px; }
.price-row-min .frow-v > .ant-input-number.price-input { flex: none; width: 112px; }
.mk-sub .frow-v > .ant-input-number.price-input { flex: 0 1 188px; width: 188px; min-width: 0; }
.mk-sub .field.frow { grid-template-columns: fit-content(62%) minmax(0, 1fr) auto; }
.mk-sub .field.frow > .frow-l { white-space: nowrap; }
.mk-sub .site-badge { flex: none; overflow: visible; }
.price-row-min .ant-input-number input, .mk-sub .ant-input-number input { text-align: right; font-variant-numeric: tabular-nums; }
.mk-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 16px; padding: 6px 0 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.mk-foot .first { margin-right: auto; }
@media (min-width: 640px) {
  .mk-tr > * { min-height: 40px; }
  /* A wide page: the price rows two to a line, then every marketplace across the page in two tables, so nothing stands empty beside or under them. */
  .pr-col, .mk-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .mk-cols { align-items: start; }
  .pr-col > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.price-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-summary .big { font-size: 32px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.price-source { padding-top: 12px; border-top: 1px solid var(--line); }
/* Sold-price searches (public/searches.js) */
.money-badge { display: inline-flex; line-height: 1; }
.money-badge.ready { color: var(--done); }
.money-badge.issue { color: #ff4d4f; }
.money-badge.stale { color: var(--you); }
@media (prefers-color-scheme: dark) { .money-badge.issue { color: #dc4446; } }
/* The price on each list row (with its $ badge, .row-money), first on its state line under the title so the title keeps the row's width (Jonathan,
   2026-11-25: the price column at the right was crowding the title). Suggested ones look unsettled: dashed, with the word. */
.row-money { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.row-money:has(> *) { margin-right: 8px; }
.row-price { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; line-height: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-price .v { font-weight: 600; }
.row-price .k { font-size: 12px; color: var(--muted); }
.row-price.suggested .v, .row-price.ballpark .v { font-weight: 500; color: var(--muted); border-bottom: 1px dashed currentColor; line-height: 1.15; }
/* The list's totals line, beside its "Pick all": "Total $1,284.00 · 3 without a price". */
.price-total { display: block; margin-left: auto; font-size: var(--t-small-size); line-height: var(--t-small-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.price-total .ant-typography { font-size: inherit; }
.price-total .v { font-variant-numeric: tabular-nums; }

/* Set SKUs: each picked item's SKU now, struck through, and the one it gets. */
.sku-picks { list-style: none; margin: 0; padding: 0; max-height: min(50vh, 420px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.sku-picks li + li { border-top: 1px solid var(--line); }
.sku-pick { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.sku-pick.on { background: color-mix(in srgb, var(--on) 8%, transparent); }
.sku-pick .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sku-pick .skus { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; line-height: 1.35; }
.sku-pick .skus b { color: var(--on); font-weight: 600; font-size: 14px; }
.sku-pick .skus .was { color: var(--muted); }
.sku-pick .skus .note { color: var(--muted); font-size: 12px; }
.sku-pick .skus b, .sku-pick .skus .was, .sku-pick .skus .had { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.thumb.sm { width: 40px; height: 40px; border-radius: 6px; font-size: 16px; }

/* Check categories (public/bulk-category.js): items grouped by eBay top level, each with its price clue. */
.cat-move label { display: block; font-weight: 600; margin-bottom: 6px; }
.cat-group header { padding: 2px 4px 6px; }
.cat-picks { max-height: none; overflow: visible; }
.cat-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; }
.cat-map-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cat-map-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cat-map-row.waits { border-color: #faad14; }
.cat-map-row.focus { box-shadow: 0 0 0 2px var(--ant-color-primary, #1677ff); }
.cat-map-main { min-width: 0; flex: 1 1 240px; }
.cat-map-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 12px; margin-top: 8px; }
.cat-map-site label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.cat-map-note { display: block; font-size: 12px; margin-top: 2px; }
.cat-mapped-path { overflow-wrap: anywhere; }
.cat-clue { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.4; }
.cat-clue.good { color: var(--done); }
.cat-clue.weak { color: #ad6800; }
.cat-clue.bad { color: #cf1322; }
.cat-clue.none { color: var(--muted); }
@media (prefers-color-scheme: dark) { .cat-clue.weak { color: #e8b339; } .cat-clue.bad { color: #f0686a; } }
.cat-clue-btn { padding: 0; border: 0; background: none; font: inherit; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; color: inherit; }
.cat-clue-btn:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 3px; }
.cat-sold { margin: 0; padding-left: 16px; font-size: 13px; }
.cat-opt { display: flex; flex-direction: column; line-height: 1.3; padding: 2px 0; white-space: normal; }
.cat-opt span { font-size: 12px; color: var(--muted); }
.cat-sold li + li { margin-top: 4px; }

/* Search, in the top bar of every page (public/ui.js ItemSearch). Looks like a field; on a phone, the icon alone. */
.find { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; min-width: 200px; border: 1px solid var(--line);
  border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.find:hover { border-color: var(--on); color: inherit; }
.find:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.find .find-word { flex: 1; text-align: left; }
.find kbd, .finder-foot kbd { font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
@media (max-width: 640px) {
  .find { min-width: 0; border: 0; padding: 0 4px; font-size: 18px; color: inherit; }
  .find .find-word, .find kbd { display: none; }
}
.finder .ant-modal-content { padding: 0; overflow: hidden; }
.finder-in { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.finder-in .ant-input-affix-wrapper { padding-inline: 6px; }
.finder-icon { color: var(--muted); margin-inline-end: 4px; }
.finder-body { max-height: min(60vh, 520px); overflow-y: auto; padding: 6px; }
.finder-head { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); }
.finder-note { padding: 18px 12px; color: var(--muted); text-align: center; }
.finder-note.small { padding: 8px 12px 10px; font-size: 13px; }
.finder-list { list-style: none; margin: 0; padding: 0; }
.finder-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.finder-list li.on { background: rgb(127 127 127 / .1); box-shadow: inset 3px 0 0 var(--on); }
.finder-thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; background: var(--line); }
.finder-thumb.none { display: grid; place-items: center; color: var(--muted); }
.finder-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.finder-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-sku { font-weight: 500; margin-inline-end: 8px; color: var(--muted); }
.finder-meta { display: flex; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; min-width: 0; }
.finder-meta > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.finder-stage { flex: none; font-weight: 500; color: inherit; }
.finder-stage.you, .finder-flaw { color: var(--you); }
.finder-stage.done { color: var(--done); }
.finder-flaw { flex: none; }
.finder mark { background: rgb(31 95 209 / .14); color: inherit; border-radius: 2px; padding: 0 1px; }
@media (prefers-color-scheme: dark) { .finder mark { background: rgb(106 156 245 / .25); } }
.finder-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.finder-foot kbd { margin-inline-end: 3px; }
@media (max-width: 640px) { .finder.ant-modal { max-width: calc(100vw - 16px); } }
/* The key hints only where there's a keyboard to speak of: from 1100 px (docs/seller-design.md 4.1). */
@media (max-width: 1099.98px) { .finder-foot { display: none; } }
/* A row: a 44 px photo, the title on two lines at most, then the SKU sticker, the stage and how long ago. */
.finder-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 20px; }
.finder-meta { align-items: center; }
.finder-meta .finder-sku { flex: none; margin: 0; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; line-height: 18px; color: var(--ink); }
/* On a phone the finder fills the screen as a sheet, Close in its head. */
.finder-in { display: flex; align-items: center; gap: 4px; }
.finder-in > .ant-input-affix-wrapper { flex: 1; min-width: 0; }
.finder-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 18px; cursor: pointer; }
.finder-close:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.finder-full.ant-modal { top: 0; width: 100vw !important; max-width: 100vw; margin: 0; padding: 0; }
.finder-full .ant-modal-content { display: flex; flex-direction: column; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
.finder-full .ant-modal-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.finder-full .finder-in { padding: 4px 4px 4px 8px; }
.finder-full .finder-body { flex: 1; max-height: none; }
/* Accept beside a field (public/listing.js Accept) and the other accept-style buttons: green, as confirming
   something is right; purple and the bulb are kept for the Learns mark alone (Jonathan, 2026-11-25), so the two
   never read as one. Accept is one square check button in a field; Accepted is the same button filled. */
.ai-btn.ant-btn { color: var(--ant-purple-7, #531dab); border-color: var(--ant-purple-3, #d3adf7); }
.ai-btn.ant-btn:not(:disabled):hover { color: var(--ant-purple-6, #722ed1) !important; border-color: var(--ant-purple-5, #9254de) !important; background: var(--ant-purple-1, #f9f0ff) !important; }
.accept-btn.ant-btn { color: var(--ant-green-7, #389e0d); border-color: var(--ant-green-3, #b7eb8f); }
.accept-btn.ant-btn:disabled { opacity: .45; }
.accept-btn.ant-btn:not(:disabled):hover { color: var(--ant-green-8, #237804) !important; border-color: var(--ant-green-5, #73d13d) !important; background: var(--ant-green-1, #f6ffed) !important; }
.accepted { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.accepted-mark { color: var(--ant-green-7, #389e0d); font-weight: 500; }
/* A search marked wrong (public/searches.js): plain, never the green of right. */
.verdict-wrong { color: var(--muted); font-weight: 500; }
.accept-btn.accept-icon.ant-btn { flex: none; }
.accept-btn.accept-icon.is-accepted.ant-btn { color: #fff; background: var(--ant-green-7, #389e0d); border-color: var(--ant-green-7, #389e0d); }
.accept-btn.accept-icon.is-accepted.ant-btn:not(:disabled):hover { color: #fff !important; background: var(--ant-green-6, #52c41a) !important; border-color: var(--ant-green-6, #52c41a) !important; }
/* The Learns mark (public/ui.js): a button, so a tap says what it learns. */
.learns-btn { display: inline-flex; padding: 0; border: 0; background: none; font: inherit; line-height: inherit; vertical-align: middle; cursor: pointer; border-radius: 4px; }
.learns-mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; font-size: 14px; cursor: pointer; color: var(--ant-purple-6, #722ed1); }
.learns-btn:focus-visible, .learns-mark:focus-visible { outline: 2px solid var(--ant-purple-5, #9254de); outline-offset: 1px; }
@media (prefers-color-scheme: dark) {
  .ai-btn.ant-btn { color: #d3adf7; border-color: #3e2069; }
  .ai-btn.ant-btn:not(:disabled):hover { color: #efdbff !important; border-color: #642ab5 !important; background: #22075e !important; }
  .accept-btn.ant-btn { color: #95de64; border-color: #274916; }
  .accept-btn.ant-btn:not(:disabled):hover { color: #b7eb8f !important; border-color: #49aa19 !important; background: #162312 !important; }
  .accepted-mark { color: #95de64; }
  .accept-btn.accept-icon.is-accepted.ant-btn { color: #0b1a05; background: #73d13d; border-color: #73d13d; }
  .accept-btn.accept-icon.is-accepted.ant-btn:not(:disabled):hover { color: #0b1a05 !important; background: #95de64 !important; border-color: #95de64 !important; }
  .learns-mark { color: #d3adf7; }
}
/* Removing backgrounds from several photos: picking them, then checking each in a popup. */
.pickable { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.pickable img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.pickable.picked { border-color: #1677ff; }
.pickable .check { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #fff; background: rgb(0 0 0 / .3); color: #fff; font-size: 12px; }
.pickable.picked .check { background: #1677ff; }
.strip > .pickable { cursor: pointer; }
.grid > .pickable { cursor: pointer; aspect-ratio: 1; }
.bulk-bar { padding: 8px 12px; border-radius: 8px; background: rgb(22 119 255 / .08); }
.bulk-results { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.bulk-result { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bulk-result .ant-image { flex: 1 1 0; min-width: 0; }
.bulk-result .ant-image-img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid rgb(0 0 0 / .08); }
.bulk-result .bulk-failed { flex: 1 1 0; display: grid; place-items: center; padding: 8px; aspect-ratio: 1; }
.square-stage { position: relative; width: min(100%, 460px, 52vh); aspect-ratio: 1; margin: 0 auto; overflow: hidden; touch-action: none; user-select: none;
  border-radius: 8px; background: repeating-conic-gradient(rgb(0 0 0 / .06) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.square-stage img { pointer-events: none; }
.square-frame { position: absolute; cursor: move; outline: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 0 0 9999px rgb(0 0 0 / .45); }
.square-handle { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .4); }
.square-handle.tl { left: -11px; top: -11px; cursor: nwse-resize; } .square-handle.br { right: -11px; bottom: -11px; cursor: nwse-resize; }
.square-handle.tr { right: -11px; top: -11px; cursor: nesw-resize; } .square-handle.bl { left: -11px; bottom: -11px; cursor: nesw-resize; }
.square-preview { width: 120px; height: 120px; border-radius: 6px; border: 1px solid rgb(0 0 0 / .1); }

/* Sales reports (pages/sales.tsx, sales-admin.js): one thin bar per row, scaled to the row with the most. */
.bar-track { flex: 1; min-width: 60px; max-width: 160px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--on); }

/* Tours (public/tours.js): the tour bubbles, What's new and the getting-started list. */
.tour-body { line-height: 1.5; }
.tour-count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.ant-tour { max-width: calc(100vw - 32px); }
.whatsnew { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.whatsnew-date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.whatsnew-title { font-weight: 600; margin: 2px 0; }
.whatsnew-body { color: inherit; line-height: 1.5; margin-bottom: 4px; }
.whatsnew-where { font-size: 13px; color: var(--muted); }
.gs-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.gs-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.gs-list a { color: inherit; text-decoration: none; }
.gs-list a, .gs-act { flex: 1; min-width: 0; }
.gs-act { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gs-act:hover .gs-title { color: var(--on); text-decoration: underline; }
.gs-act:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 4px; }
/* What an import left to settle, as lines under its step (public/tours.js GettingStarted imports). */
.gs-list li.gs-head { padding: 8px 0 0 30px; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); font-weight: 600; color: var(--muted); }
.gs-list li.sub { padding-left: 30px; }
.gs-list li.sub .gs-mark { width: 16px; height: 20px; }
.gs-list li.sub .gs-dot { width: 8px; height: 8px; border: 0; background: var(--you); }
.gs-list li.sub.wait .gs-dot { background: var(--on); }
.gs-list li.sub.later .gs-dot { background: var(--line); }
.gs-list li.sub.later .gs-title { color: var(--muted); }
.gs-list li.gs-note { padding: 4px 0 4px 30px; font-size: 13px; line-height: 20px; color: var(--muted); }
.gs-list li.sub:not(:has(a, button)) .gs-title { color: var(--muted); }
.gs-sub.you { color: var(--you); }
.issue-fixes .ant-btn-primary { margin-left: auto; }
/* The extension step on a phone (public/link-to-computer.js): where the link goes, and what works until then. */
.ext-link-to { color: var(--muted); overflow-wrap: anywhere; }
.ext-link-head { margin: 12px 0 4px; font-weight: 600; }
.ext-link-until { list-style: none; margin: 0; padding: 0; }
.ext-link-until li { display: flex; gap: 10px; padding: 5px 0; color: var(--muted); }
.ext-link-until li.ok { color: var(--ink); }
.ext-link-until li span { flex: none; width: 16px; text-align: center; }
.ext-link-until li.ok span { color: var(--done); }
/* Getting started as a card of its own, and the one big invitation above it: Your items before the first item (pages/home.tsx). */
.gs-card { margin: 0; padding: 4px 14px 12px; }
.gs-card-head { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.gs-card-head h2 { flex: 1; margin: 0; font-size: var(--t-body-size); line-height: 20px; font-weight: 600; }
.gs-count { margin-left: 6px; font-weight: 400; color: var(--muted); font-size: var(--t-small-size); }
.invite { padding: 20px 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); text-align: left; }
.invite h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.invite p { margin: 6px 0 14px; color: var(--muted); line-height: 20px; }
.invite .ant-btn { min-height: 44px; }
.first-item.invite-drop.ant-upload-wrapper .ant-upload-drag { border: 0; background: none; text-align: left; }
.first-item.invite-drop .ant-upload-btn { padding: 0 !important; }
.gs-list a:hover .gs-title { color: var(--on); text-decoration: underline; }
.gs-mark { flex: none; width: 20px; height: 20px; display: grid; place-items: center; font-size: 18px; }
.gs-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; display: grid; place-items: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.gs-list li.done .gs-mark { color: var(--done); }
.gs-list li.done .gs-title { color: var(--muted); }
.gs-list li.now .gs-dot { border-color: var(--on); color: var(--on); font-weight: 600; }
.gs-list li.now .gs-title { font-weight: 600; }
.gs-text { display: flex; flex-direction: column; }
.gs-sub { font-size: 13px; color: var(--muted); }

/* Your automations (public/automations.js, in Getting started's place while help.automations is on). */
.ya-count { margin-left: 6px; font-weight: 600; color: var(--done); font-size: var(--t-small-size); }
.ya-list { list-style: none; margin: 4px 0 0; padding: 0; }
.ya-list > li + li:not(.ya-head) { border-top: 1px solid var(--line); }
.ya-goal { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ya-goal:hover .ya-title { color: var(--on); text-decoration: underline; }
.ya-goal:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 4px; }
.ya-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ya-title { font-weight: 600; }
.ya-sub { font-size: 13px; line-height: 18px; color: var(--muted); }
.ya-state { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; line-height: 18px; color: var(--muted); text-align: right; }
.ya-on { color: var(--on); font-weight: 600; }
.ya-you { color: var(--you); font-weight: 600; }
.ya-list li.ya-head { padding: 10px 0 2px; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; border-top: 1px solid var(--line); }
.ya-goal.ya-done { min-height: 36px; padding: 6px 0; gap: 10px; }
.ya-goal.ya-done .ya-title { font-weight: 400; }
.ya-mark { color: var(--done); font-size: 16px; display: inline-flex; }
.ya-goal.ya-done .ya-state { margin-left: auto; }
.ya-off .ya-mark { width: 16px; justify-content: center; align-items: center; }
.ya-off .ya-mark .ya-chip-dot { border: 0; background: var(--line); }
.ya-off .ya-title { color: var(--muted); }
.ya-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.ya-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: 999px; border: 1px dashed var(--line); font-size: 13px; }
.ya-chip.on { border-style: solid; }
.ya-chip-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); box-sizing: border-box; }
.ya-chip.on .ya-chip-dot { border: 0; background: var(--done); }
.ya-chip.you .ya-chip-dot { border-color: var(--you); }
.ya-chip.gray { border-style: solid; opacity: .7; }
.ya-chip.gray .ya-chip-dot { border: 0; background: var(--line); }
.ya-chip-note { color: var(--muted); }
.ya-step-act { margin-top: 8px; }
.ya-notfor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; font-size: 13px; }

/* The getting-started guide (pages/guide.tsx). */
.guide-section { scroll-margin-top: 72px; display: flex; flex-direction: column; gap: 4px; }
.guide-section > h4 { margin-top: 0; }
.guide-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.guide-card h5 { margin: 0; }
.guide-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-lines li { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--line); }
.guide-line { font-weight: 500; }
.guide-why { font-size: 13px; color: var(--muted); }
.guide-warn { font-size: 12px; color: var(--you); }
.guide-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.guide-terms { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.guide-terms dt { font-weight: 600; }
.guide-terms dd { margin: 0; color: inherit; }
@media (max-width: 560px) { .guide-terms { grid-template-columns: 1fr; } .guide-terms dd { margin-bottom: 8px; } }
.guide-kit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-kit li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.guide-kit li:last-child { border-bottom: 0; }
.guide-kit .guide-why { grid-column: 1; }
.guide-have { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--done); white-space: nowrap; }
.guide-kit li.have .guide-kit-name { color: var(--muted); }
.guide-gotit { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.guide-next { display: inline-flex; align-items: center; gap: 6px; }
.nav .ant-badge { color: inherit; font-size: inherit; }

/* Where items came from (sources.js), out of inventory (inventory.js), Intelligent Insights (sales.js) */
.source-line { display: inline-flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
/* Tags (public/tags.js): the seller's own labels, one quiet look on the item screen, the rows and the bulk dialog. */
.tag-line { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.tag-line .ant-tag, .row-tags .ant-tag { margin: 0; }
.item-tag.ant-tag { background: color-mix(in srgb, var(--muted) 12%, transparent); color: inherit; font-size: 12px; }
.item-tag.ant-tag.on { background: color-mix(in srgb, var(--on) 16%, transparent); color: var(--on); }
.item-tag.auto.ant-tag:not(.on) { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 30%, transparent); }
.row-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-inline-start: 8px; }
.row-tags .ant-tag { cursor: pointer; line-height: 18px; padding-inline: 6px; }
.row-tags .ant-tag:hover, .row-tags .ant-tag:focus-visible { background: color-mix(in srgb, var(--on) 12%, transparent); }
.tag-n { opacity: 0.6; margin-inline-start: 2px; }
/* An upload: the first row of Upload (pages/home.tsx UploadRows, docs/seller-design.md 6.2): its photo, "Uploading 4 of 7
   photos" with its bar, Open at the right, and where it came from as two chips. */
.upload-rows { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.upload-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; }
.upload-row + .upload-row { border-top: 1px solid var(--line); }
.upload-thumb { flex: none; width: 56px; height: 56px; border-radius: 8px; background: var(--fill); display: grid; place-items: center; color: var(--muted); font-size: 20px; overflow: hidden; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.upload-line { font-size: var(--t-body-size); line-height: var(--t-body-line); overflow-wrap: anywhere; }
.upload-main .ant-progress { margin: 0; }
.upload-source { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.upload-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.upload-chips .fchip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* The back link above a person's page (pages/people.tsx), until People moves onto the seller frame. */
.side-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-body-size); }
.fchip.dashed { border-style: dashed; color: var(--on); }
/* A chip's choices (pages/home.tsx ChipChoices: Sort, Tags): a list of rows, a tick on the chosen one. */
.chip-choices { display: flex; flex-direction: column; min-width: 220px; max-width: min(320px, calc(100vw - 32px)); }
.console-sheet .chip-choices { max-width: none; padding: 0 8px 8px; }
.cc-head { padding: 8px 8px 2px; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.cc-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink);
  font: inherit; font-size: var(--t-body-size); text-align: left; cursor: pointer; }
.cc-row:hover { background: var(--fill); }
.cc-row:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.cc-row.on { color: var(--on); }
.cc-tick { flex: none; width: 16px; font-size: 13px; }
.cc-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cc-note { flex: none; font-size: var(--t-small-size); color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.chip-anchor { display: inline-flex; }
@media (max-width: 639.98px) { .cc-row { min-height: 44px; } }
/* Getting started's steps, in its issue row's detail. */
.issue-body.getting-started .gs-list { margin-top: 0; }
.run-detail { display: flex; flex-direction: column; gap: 10px; }
.run-detail p { margin: 0; }
.group-source { max-width: 260px; }
.group-source-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; display: inline-block; vertical-align: bottom; }
.insight { padding: 2px 0 2px 12px; display: flex; flex-direction: column; }
/* Fees: Settings > Fees, minimums as what you keep. */
.fee-note { margin: 0; padding: 8px 16px; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); }
.min-price { display: flex; align-items: center; gap: 6px; flex: none; }
.min-price .ant-select { flex: none; }
.mrow .srow-text { flex-basis: 100px; }
.fee-calc { padding: 10px 12px; border-radius: 8px; background: var(--panel-alt, rgba(127, 127, 127, 0.08)); }
/* Subscription (pages/subscription.tsx): plan cards to pick from, and add-on rows. */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--raised); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.plan:hover { border-color: var(--on); }
.plan:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.plan.on { border-color: var(--on); box-shadow: inset 0 0 0 1px var(--on); }
.plan-head { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: space-between; }
.plan-name { font-weight: 650; font-size: 16px; }
.plan-price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.plan-features { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.plan-features .anticon { color: var(--done); margin-right: 4px; }
.addon { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.addon:first-child { border-top: 0; }
.addon-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.addon-name { font-weight: 600; }
.addon-desc { font-size: 13px; color: var(--muted); }
.addon-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.touch-up .ant-modal-content { padding: 12px 16px; }
.touch-up-note { display: block; margin-bottom: 8px; }
.touch-up-tools { margin-bottom: 8px; }
.touch-up-model { margin-bottom: 8px; }
.touch-up-view { height: min(62vh, 640px); overflow: auto; display: flex; border-radius: 8px; background: var(--line, #e5e5e5); }
.touch-up-view > .ant-spin { margin: auto; }
.touch-up-canvas { margin: auto; flex: none; touch-action: none; cursor: none;
  background: repeating-conic-gradient(#d9d9d9 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; }
.touch-up-view.moving .touch-up-canvas { cursor: grab; }
.touch-up-view.moving .touch-up-canvas:active { cursor: grabbing; }

/* Draft again (public/draft-again.js): what's improved in drafting, release by release. */
.again-releases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.again-releases .again-hidden .ant-typography, .again-releases .again-hidden .again-v { opacity: .7; }
.again-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--on) 12%, transparent); color: var(--on); }
@media (prefers-color-scheme: dark) { .savechip.bad { color: #ec7063; border-color: #ec7063; } }

/* Look alike (public/look-alike.js, pages/sort.tsx) */
.alike-card .ant-card-head-title { white-space: normal; }
.alike-item { display: flex; align-items: center; padding: 6px 10px 6px 6px; border: 1px solid var(--ant-color-border-secondary, rgba(128,128,128,.25)); border-radius: 8px; color: inherit; min-width: 0; max-width: 100%; }
/* SKUs from an import that look like boxes (public/import-boxes.js): one row a SKU, with a few of its items under it. */
.box-asks { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 12px; }
.box-ask { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.box-ask-body { flex: 1; min-width: 0; }
.vd-set-row { cursor: default; }
.vd-has { font-size: 13px; line-height: 20px; }
.vd-answers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vd-why { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.vd-whole { padding-left: 0; margin-top: 8px; }
.box-ask-items { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.box-ask-item { display: flex; gap: 10px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.box-ask-item .thumb { flex: none; }
/* Names in full, on as many lines as they need: two look-alikes often differ only in their last words. */
.alike-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.alike-name { display: block; overflow-wrap: anywhere; }
.alike-facts { display: block; font-size: 13px; overflow-wrap: anywhere; }
a.alike-item:hover { border-color: var(--ant-color-primary, #1677ff); }
.alike-item.here { border-style: dashed; }
.alike-note .alike-cover { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; margin-right: 8px; }
.alike-note .alike-shots { margin: 4px 0 6px; }
.alike-note .alike-shot { padding: 0; border: 1px solid var(--ant-color-border, #d9d9d9); border-radius: 4px; background: none; cursor: zoom-in; line-height: 0; }
.alike-note .alike-shot img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; }
@media (max-width: 600px) { .alike-note { flex-wrap: wrap; } .alike-note .ant-alert-action { margin: 8px 0 0; width: 100%; } }

/* Moving photos to another item (public/move-photos.js): the move icon sits on the photo, between edit and turn. */
.move-picks { display: grid; gap: 6px; margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.move-picks > .pickable { aspect-ratio: 1; }
.move-targets { display: flex; flex-direction: column; gap: 4px; }
.move-target { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; text-align: left; font: inherit; color: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.move-target:hover { border-color: #1677ff; }
.move-target.on { border-color: #1677ff; background: rgb(22 119 255 / .08); box-shadow: inset 0 0 0 1px #1677ff; }
.move-target .what { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.moved-out li a { font-weight: 500; }

/* Selling for others (public/consign.js, pages/people.tsx) */
.sells-for { margin-top: 4px; }
.terms-form .terms-label { font-weight: 600; margin-bottom: 6px; }
.terms-costs { display: grid; gap: 8px; margin-bottom: 6px; }
.terms-cost-name { display: inline-block; min-width: 140px; border-bottom: 1px dotted var(--muted); cursor: help; }
.consign-example { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--on) 6%, transparent); display: flex; flex-direction: column; gap: 4px; }
.consign-split { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
@media print {
  .no-print, header.bar { display: none !important; }
  .person-page .ant-card { break-inside: avoid; }
}

/* A Vendoo sign-in's steps while it runs (settings.js VendooProgress). */
.vendoo-progress.fill { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; max-width: none; }
.vendoo-progress.fill .ant-progress { margin: 0; }
.vendoo-progress { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 4px; background: var(--ant-color-fill-quaternary, rgba(0,0,0,.02)); max-width: 520px; }
.vendoo-progress .ant-steps-item-description { font-size: 13px; color: var(--ant-color-text-secondary, rgba(0,0,0,.55)) !important; }

/* What you paid (public/paid.js): the price, coupon and final amount. */
.paid-field { display: flex; flex-direction: column; gap: 4px; }
.paid-note { flex: 1 1 180px; min-width: 0; }

/* Deleted photos under Your photos: faded, each with Put back on it. */
.deleted-photos { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--ant-color-border, rgb(0 0 0 / .15)); }
.deleted-photos .toggle { padding-inline: 0; }
.deleted-photos .grid > .tile { cursor: default; }
.tile.gone .ant-image-img { opacity: .55; filter: grayscale(.6); }
.tile .putback { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 12px; }
/* "Drafting improved" on the item page (public/draft-again.js AgainCard): one row per part it would change. */
.again-rows { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
.again-rows > div { display: contents; }
.again-rows dt { color: var(--muted); }
.again-rows dd { margin: 0; }
.again-rows .mine dd { color: var(--muted); }
.again-specifics { margin: 4px 0; padding-left: 18px; }
/* Opened, the item page's row lists every field drafting again could fill: what it needs to list, then what eBay recommends. */
.again-fill-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.again-fill-label { color: var(--muted); font-size: 12px; }
.again-fills { margin: 2px 0 0; padding-left: 18px; }
.again-fills > li { margin: 1px 0; }
.again-fill-why { display: block; color: var(--muted); font-size: 12px; }
.again-teach { border-left: 3px solid var(--on); padding: 4px 10px; }
@media (max-width: 600px) {
  .again-rows { grid-template-columns: 1fr; gap: 2px; }
  .again-rows dt { margin-top: 6px; font-weight: 500; color: inherit; }
}

/* An issue's fix can name a category with its parents ("Keep it in …", public/prices.js BetterCategory): the button
   wraps its words instead of running past the popover. */
.better-cat .issue-fixes .ant-btn { white-space: normal; height: auto; min-height: 24px; max-width: 100%; text-align: start; }

/* Another item's photos mixed in (public/mixed-photos.js): tap the ones that stay, send each other one where it belongs. */
.mixed { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.mixed-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-width: 640px; }
.mixed-grid > .pickable { aspect-ratio: 1; }
.mixed-grid > .pickable.goes img { opacity: .45; filter: grayscale(.6); }
.mixed-grid > .pickable.goes { border-color: #d4380d; border-style: dashed; }
.pickable .goes-tag { position: absolute; left: 4px; bottom: 4px; right: 4px; padding: 1px 4px; border-radius: 4px; font-size: 11px; line-height: 16px;
  background: rgb(0 0 0 / .65); color: #fff; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mixed-send { display: flex; flex-direction: column; gap: 8px; }
.mixed-row { display: flex; align-items: center; gap: 10px; }
.mixed-row .thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.mixed-row.done .thumb { width: 40px; height: 40px; opacity: .7; }
.mixed-row .thumbs { display: flex; gap: 4px; flex: none; }
.mixed-pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; align-items: flex-start; }
.mixed-pick .ant-select { width: 100%; }
.send-opt { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.send-opt .send-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.thumb.xs { width: 24px; height: 24px; border-radius: 4px; font-size: 12px; object-fit: cover; flex: none; }
@media (prefers-color-scheme: dark) { .mixed-grid > .pickable.goes { border-color: #d87a16; } }
/* Sold prices (docs/pricing-design.md 4.6 to 4.8): the head with its age, the two tools (in the head from 640 px,
   a line under it on a phone), the reason Look up can't run beside them; then the search words and the four
   switches as rows, two switches across on a phone and four from 640 px. */
.sp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; }
.sp-title { font-size: 15px; font-weight: 600; }
.sp-age { font-size: 13px; color: var(--muted); }
.sp-why { margin-left: auto; }
/* Look up, after what it looks up with (the words, the switches): the button last, at the end of its line. */
.sp-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; padding-top: 12px; }
.sp-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
@media (max-width: 639.98px) { .sp-acts > * { flex: 1 1 auto; } .sp-acts .ant-btn { padding-inline: 10px; } }
.sp-acts .ant-btn { min-width: 0; max-width: 100%; }
.sp-acts .ant-btn > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.sp-reason { font-size: 13px; line-height: 18px; }
/* A combo's head (public/combo.js) keeps its buttons in the head: a line of their own on a phone, at its end from 640 px. */
.sp-head > .sp-acts { order: 3; flex-basis: 100%; justify-content: flex-start; }
.sp-head > .sp-reason { order: 4; flex-basis: 100%; }
@media (min-width: 640px) {
  .sp-head > .sp-acts { order: 0; flex-basis: auto; margin-left: auto; justify-content: flex-end; }
  .sp-head > .sp-acts + .sp-why { margin-left: 0; }
  .sp-head > .sp-reason { order: 0; text-align: right; margin-top: -4px; }
}
@media (max-width: 639.98px) { .sp-go > .sp-acts { flex: 1 1 100%; } }
.sp-help-btn.ant-btn { color: var(--muted); }
.sp-help { max-width: 300px; font-size: 13px; line-height: 20px; }
.sp-help p { margin: 0; }
.combo-parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.combo-part { border-bottom: 1px solid var(--line); }
.combo-part-head { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; min-height: 48px; padding: 8px 0; }
.combo-part-head:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; border-radius: 4px; }
.combo-part-name { flex: 1 1 200px; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.combo-part-kind { color: var(--muted); font-weight: 400; }
.combo-part-price { font-size: 14px; }
.combo-part-body { padding: 0 0 16px; }
.combo-sum { margin: 0; font-size: 13px; }
.combo-seen { display: flex; flex-direction: column; gap: 4px; }
.combo-seen-title { font-weight: 500; }
.combo-seen-next { margin: 0; font-size: 13px; }
.combo-seen-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.combo-edit { display: flex; flex-direction: column; gap: 12px; }
.combo-edit-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 8px; align-items: center; }
@media (max-width: 479.98px) { .combo-edit-row { grid-template-columns: 1fr 1fr auto; } .combo-edit-row > :nth-child(3) { grid-column: 1 / 3; grid-row: 2; } }
.sp-help p + p { margin-top: 6px; }
.sp-tools { display: flex; flex-direction: column; }
.search-editor { display: flex; flex-direction: column; }
.field.frow.sw-row > .frow-v { gap: 8px; }
.field.frow.sw-row { padding-block: 6px; }
.sw-row .sw-in.ant-input-affix-wrapper { flex: 1 1 auto; min-width: 0; }
.sw-row .sw-in .ant-input-prefix { color: var(--muted); }
.sw-row .sw-in input { text-align: left; }
.sw-row .sw-rule { font-size: 12px; color: var(--muted); white-space: nowrap; }
.field.frow.sw-row > .frow-note { padding: 8px 0 2px; }
.sw-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-pick { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; min-width: 0; max-width: 100%; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; line-height: 18px; overflow-wrap: anywhere; }
.sw-pick small { font-size: 12px; line-height: 16px; color: var(--muted); }
.sw-pick:hover { border-color: var(--on); }
.sw-pick:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.sw-pick.rule { border-color: color-mix(in srgb, var(--on) 55%, var(--line)); }
.sw-pick.on { border-color: var(--on); background: color-mix(in srgb, var(--on) 14%, transparent); }
@media (max-width: 639.98px) { .sw-pick { min-height: 44px; justify-content: center; } }
@media (max-width: 639.98px) { .field.frow.sw-row > .frow-v { grid-row: 2; grid-column: 1 / -1; padding-bottom: 2px; } .field.frow.sw-row > .frow-l { min-height: 32px; } }
.sp-switches { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.sp-sw { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sp-sw:nth-child(odd) { padding-right: 8px; border-right: 1px solid var(--line); }
.sp-sw:nth-child(even) { padding-left: 8px; }
.sp-sw-l { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 20px; }
.sp-sw-l small { font-size: 12px; line-height: 16px; color: var(--muted); }
.sp-sw-l small.pr-warn, .sp-age.pr-warn { color: var(--you); }
.sp-sw .ant-switch { flex: none; }
@media (max-width: 639.98px) { .sp-sw { gap: 6px; } .sp-sw-l .rule-name { font-size: 14px; } }
.sw-rule-row .pr-val { display: flex; flex-direction: column; align-items: flex-end; }
.sw-rule-row .pr-val small { font-size: 12px; color: var(--muted); }
@media (max-width: 639.98px) { .field.frow.sw-rule-row > .frow-v { flex-wrap: wrap; row-gap: 4px; padding-block: 6px; } .sw-rule-row .pr-val { flex: 1 1 100%; } .sw-rule-row .pr-acts { margin-inline-start: 0; } }
.set-sheet-body .rule-seen { width: auto; }
.rule-seen { display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 64px)); font-size: 13px; line-height: 20px; }
.rule-seen-head { margin: 0; font-weight: 600; }
.rule-seen dl { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rule-seen-line { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rule-seen-line dt { color: var(--muted); }
.rule-seen-line dd { margin: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.rule-seen-line dd b { font-weight: 500; }
.rule-seen-line.changed dd b { color: var(--on); }
.rule-seen-line dd small { font-size: 12px; line-height: 16px; color: var(--muted); }
.rule-seen-note { margin: 0; }
.rule-seen-acts { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.rule-seen-back { margin-inline-end: auto; }
.rule-seen-sw { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rule-seen-sw .ant-switch { flex: none; }
.rule-seen-line dt label { cursor: default; }
.rule-say .sp-sw, .rule-say .sp-sw:nth-child(odd), .rule-say .sp-sw:nth-child(even) { padding: 0; border: 0; }
@media (min-width: 640px) {
  .sp-switches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-sw, .sp-sw:nth-child(odd), .sp-sw:nth-child(even) { padding: 6px 12px; border-right: 1px solid var(--line); }
  .sp-sw:first-child { padding-left: 0; }
  .sp-sw:last-child { padding-right: 0; border-right: 0; }
}
.sp-small { font-size: 13px; }
.sp-searches { display: flex; flex-direction: column; }
.sp-section { margin: 0; padding: 8px 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
/* Searches as rows (docs/pricing-design.md 4.9): a state dot, the site over its words, the price over how many
   counted, the Right price check; a lookup not finished as a row above them; the rest under one fold. */
.sp-count { color: var(--muted); font-weight: 400; }
.srch { border-bottom: 1px solid var(--line); }
.srch-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 0; }
.srch-open { all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; align-self: stretch; cursor: pointer; }
.srch-open:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 4px; }
.srch-open:hover .srch-site { color: var(--on); }
.srch-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.srch-dot.on { background: var(--ant-green-6, #52c41a); border-color: var(--ant-green-6, #52c41a); }
.srch-dot.run { background: var(--on); border-color: var(--on); }
.srch-dot.warn { background: var(--you); border-color: var(--you); }
.srch-dot.bad { background: var(--bad); border-color: var(--bad); }
.srch-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 20px; }
.srch-site { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 500; }
.srch-site .ant-tag { margin-inline-end: 0; font-weight: 400; }
.srch-words { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.srch-scope { display: none; }
.srch-bar { display: block; height: 2px; margin-top: 6px; overflow: hidden; border-radius: 1px; background: var(--line); }
.srch-bar i { display: block; width: 40%; height: 100%; background: var(--on); animation: srch-bar 1.4s ease-in-out infinite; }
@keyframes srch-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .srch-bar i { animation: none; width: 100%; opacity: .5; } }
.srch-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.srch-end small { font-size: 12px; line-height: 16px; color: var(--muted); }
.srch.wrong .srch-end b { text-decoration: line-through; opacity: .6; }
.srch-chk.ant-btn { flex: none; }
.srch-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 0 10px 18px; font-size: 13px; color: var(--muted); }
.pr-bad, .srch-words.pr-bad { color: var(--bad); }
.srch-words.pr-warn { color: var(--you); }
.srch-fold-head { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; font-weight: 500; border-bottom: 1px solid var(--line); }
.srch-fold-head:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; border-radius: 4px; }
.srch-none { margin: 0; padding: 8px 0; }
.srch-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.srch-title .ant-tag { margin-inline-end: 0; }
.srch-title small { flex-basis: 100%; font-size: 12px; font-weight: 400; color: var(--muted); }
/* Sold listings (docs/pricing-design.md 4.10): one list under a fold, rows with the listing's photo under 1100 px,
   a table from 1100 px; a listing opened shows its photo beside the item's. */
.sold-fold .rec-fold { border-top: 0; border-bottom: 1px solid var(--line); }
.sold-fold .rec-fold-head { padding: 0; }
.sold-fold .rec-fold-body > .sold-list > .rec-card { border: 0; border-radius: 0; margin: 0; background: none; }
.sold-list .rec-filters { padding: 8px 0; flex-wrap: wrap; }
.sold-list .rec-search { flex: 1 1 140px; }
.sold-list .rec-row.rec-has-photo { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 10px 0; cursor: default; }
.rec-photo { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--fill); color: var(--muted); font-size: 18px; }
.rec-photo img { width: 100%; height: 100%; object-fit: cover; }
.sold-list .rec-meta .ant-tag { margin-inline-end: 6px; }
.sold-list .rec-end { display: flex; flex-direction: column; align-items: flex-end; }
.sold-list .rec-end small { font-size: 12px; color: var(--muted); }
.sold-list .rec-open { all: unset; cursor: pointer; }
.sold-list .rec-open:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 2px; }
.sold-list .rec-table { border-top: 0; }
.sold-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sold-acts { display: inline-flex; gap: 2px; }
.sold-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 8px; }
.sold-pic { margin: 0; min-width: 0; }
.sold-pic img, .sold-pic-none { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--fill); color: var(--muted); font-size: 28px; }
.sold-pic figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); }
.sold-title-t { flex-basis: 100%; overflow-wrap: anywhere; }
.web-prices { list-style: none; margin: 8px 0 0; padding: 0; }
.web-prices li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.web-price-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.web-price-t small { font-size: 12px; color: var(--muted); }
.web-price-t small .ant-tag { margin-inline-end: 6px; }
.web-prices b { flex: none; font-variant-numeric: tabular-nums; }
.srch-rows .pr-val { display: flex; flex-direction: column; align-items: flex-end; text-align: right; overflow-wrap: anywhere; }
.srch-rows .pr-val small { font-size: 12px; line-height: 16px; color: var(--muted); }
@media (min-width: 640px) { .srch-scope { display: inline; } }
.likely { border-color: #d4a017 !important; }
.likely .anticon { color: #d4a017; }
.check-tag { margin-inline-start: 6px; }
.review-holds li, .required-missing li { margin: 4px 0; }
.required-missing .rq-cat { flex: 1 1 100%; max-width: 520px; }
/* Begin review (pages/loose/item.tsx GuidedReview): the field being checked, outlined where it is, and its tag beside it. */
.review-target { outline: 2px solid var(--you); outline-offset: 4px; border-radius: 6px; scroll-margin: 96px; }
.review-tag { position: absolute; z-index: 1040; padding: 10px 12px; border-radius: 10px; background: var(--raised); color: var(--ink);
  border: 1px solid var(--you); box-shadow: var(--lift); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.review-tag::before { content: ""; position: absolute; width: 10px; height: 10px; background: var(--raised); border: 1px solid var(--you); transform: rotate(45deg); }
.review-tag.right::before { left: -6px; top: 14px; border-right: 0; border-top: 0; }
.review-tag.below::before { right: 24px; top: -6px; border-right: 0; border-bottom: 0; }
.review-tag.above::before { right: 24px; bottom: -6px; border-left: 0; border-top: 0; }
.review-tag.over::before { display: none; }
.review-tag-head { display: flex; align-items: baseline; gap: 8px; }
.review-tag-head > :first-child { flex: 1; }
.review-tag-why { font-size: 13px; line-height: 1.4; }
.review-tag-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 4px; }
.review-tag-x:hover, .review-tag-x:focus-visible { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .review-tag { transition: top .2s ease, left .2s ease; } }
/* The item's feedback card (pages/loose/item.tsx Section): what holds it back, required fields, fields to check, then the questions. */
.feedback-part { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.feedback-head { display: flex; gap: 8px; align-items: baseline; }
.feedback-icon { color: var(--on); }
.feedback-part.warn .feedback-icon { color: var(--you); }
.feedback-part .tight { margin: 0; }
/* The seller's own records on the Listing tab (pages/loose/item.tsx records). */
.records .tag-line { min-height: 32px; }

/* Your items: filters on one line, a checkbox per row, and the bar for picked items (pages/home.tsx SelectionBar). */
.list-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.list-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* Home's sort levels (pages/home.tsx SortBar): a row of their own above the list's head. */
.sort-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 8px 8px; }
.sort-bar .sort-level { margin: 0; display: inline-flex; align-items: center; font-size: 13px; padding: 2px 8px; }
.sort-bar .sort-flip { all: unset; cursor: pointer; }
.sort-bar .sort-flip:focus-visible { outline: 2px solid var(--ant-color-primary, #1d39c4); outline-offset: 2px; border-radius: 4px; }
.sort-bar .sort-then, .sort-bar .sort-dir { opacity: 0.65; }
@media (max-width: 600px) { .sort-bar .sort-dir { display: none; } }
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 0 8px; }
.row-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 40px; min-height: 40px; cursor: pointer; flex: none; }
/* Picking (pages/home.tsx, pages/parts/swipe-pick.ts): rows have no checkbox. A circle on the photo picks a row: with a
   mouse it shows on hover or keyboard focus, and stays, filled, once picked. On a touch screen a swipe either way or a
   hold picks; the row's contents follow the finger and a check shows in the gap left behind, filled once far enough. */
.row-thumb { position: relative; display: inline-flex; flex: none; }
.row-check { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #fff; background: rgb(0 0 0 / .35); color: transparent; font-size: 14px; cursor: pointer; opacity: 0; transition: opacity .12s; }
@media (hover: hover) { .row-check:hover { background: rgb(0 0 0 / .55); color: #fff; } .items .row:hover .row-check { opacity: 1; } }
.row-check:focus-visible, .items:has(.row.picked) .row-check { opacity: 1; }
.row-check:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.row-check.on { opacity: 1; background: var(--on); border-color: var(--raised); color: var(--raised); }
.items .row.picked { background: color-mix(in srgb, var(--on) 14%, transparent); }
@media (hover: none) and (pointer: coarse) {
  .items .row { position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .items .row img { -webkit-user-drag: none; }
  .items .row .row-body { transition: transform .18s ease-out; }
  .items .row.swiping .row-body { transition: none; }
  .items .row.swiping::before { content: "\2713"; position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 16px; font-weight: 700; color: var(--on); border: 2px solid var(--on); box-sizing: border-box; }
  .items .row.swiping[data-swipe="right"]::before { left: 20px; }
  .items .row.swiping[data-swipe="left"]::before { right: 20px; }
  .items .row.swiping.armed::before { background: var(--on); color: var(--raised); }
}
@media (prefers-reduced-motion: reduce) { .items .row .row-body, .row-check { transition: none; } }
.selection-bar .picked-count { font-weight: 600; flex: 1 1 auto; }
@media (max-width: 600px) { .selection-bar .buttons .ant-btn { flex: 1 1 auto; } }
.gs-read { margin-top: 8px; font-size: 13px; }
/* A brand-new account: one invitation instead of a path of zeros (pages/home.tsx). */
.first-item.ant-upload-wrapper .ant-upload-drag { border-radius: 12px; background: var(--raised); }
.first-item .ant-upload-btn { padding: 16px !important; }

/* The message stack (public/messages.js, docs/style-guide.md section 4): one style for every message,
   kept until closed. Top of the window under the top bar, centred; full width on a phone. */
#messages .msg-stack { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 1100;
  width: min(520px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.msg { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px 10px 14px;
  border-radius: 12px; border-left: 3px solid var(--msg-tone, var(--on)); background: var(--raised); box-shadow: var(--lift);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }
.msg-success { --msg-tone: var(--done); }
.msg-info, .msg-loading { --msg-tone: var(--on); }
.msg-warning { --msg-tone: var(--you); }
.msg-error { --msg-tone: var(--bad); }
.msg-icon { color: var(--msg-tone); font-size: 16px; padding-top: 2px; }
.msg-text { flex: 1; min-width: 0; padding-top: 1px; overflow-wrap: anywhere; user-select: text; }
.msg-from { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.msg-close { flex: none; width: 40px; height: 40px; margin: -9px 0 -9px 0; border: 0; background: none; color: var(--muted);
  cursor: pointer; border-radius: 8px; font-size: 13px; }
.msg-close:hover { color: inherit; background: var(--line); }
.msg-close:focus-visible, .msg-more button:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.msg-more { pointer-events: auto; align-self: center; display: flex; gap: 4px; padding: 2px; border-radius: 999px;
  background: var(--raised); box-shadow: var(--lift); }
.msg-more button { border: 0; background: none; color: var(--ink); font: 13px system-ui, -apple-system, "Segoe UI", sans-serif; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.msg-more button + button { color: var(--muted); }
.msg-more button:hover { background: var(--line); }
@media (max-width: 600px) { #messages .msg-stack { top: 58px; width: calc(100vw - 16px); } }
/* The whole-page cover for work that needs this page open (public/keep-open.js, docs/style-guide.md
   "Work that needs this page open"): over everything, dialogs included, but under the message stack. */
.keep-open { position: fixed; inset: 0 0 calc(0px - var(--screen-gap, 0px)); z-index: 1050; display: grid; place-items: center; padding: 16px;
  background: var(--scrim); backdrop-filter: blur(3px); }
.keep-open-card { width: min(460px, 100%); max-height: calc(100vh - 96px); overflow: auto; display: flex; flex-direction: column;
  align-items: stretch; gap: 12px; padding: 24px; border-radius: 12px; background: var(--raised); box-shadow: var(--lift);
  font: 14px/1.57 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }
.keep-open-card > .ant-spin { align-self: center; margin-bottom: 4px; }
.keep-open-title { font-size: 18px; line-height: 26px; font-weight: 600; text-align: center; }
.keep-open-text { color: var(--muted); font-size: 13px; line-height: 20px; }
.keep-open-count { color: var(--ink); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.keep-open-card .ant-progress { margin: 0; }
/* The bar jumps to its value: photo work right after each step keeps the page busy and froze the slide part way. */
.keep-open-card .ant-progress.ant-progress-line .ant-progress-bg { transition: none; }
.keep-open-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.keep-open-cancel { justify-content: flex-start; gap: 12px; }
.keep-open-note { flex: 1 1 200px; color: var(--muted); font-size: 13px; line-height: 20px; }
.keep-open-label { font-weight: 600; }
.keep-open-list ul { margin: 2px 0 0; padding-left: 20px; }
.keep-open-none { color: var(--muted); }
/* An upload under the cover (public/upload-progress.js): the whole upload, then each photo, then the details. */
.up { display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.up-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.up-count { font-weight: 600; }
.up-clock, .up-numbers { color: var(--muted); font-size: 13px; line-height: 20px; }
.up-quiet { color: var(--you); font-size: 13px; line-height: 20px; padding-left: 8px; border-left: 2px solid var(--you); }
.up-list { list-style: none; margin: 4px 0 0; padding: 0; max-height: min(30vh, 320px); overflow: auto; display: flex; flex-direction: column;
  border-top: 1px solid var(--line); }
.up-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.up-thumb { flex: none; width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: var(--line); }
.up-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.up-line { display: flex; gap: 8px; justify-content: space-between; font-size: 12px; line-height: 16px; }
.up-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-state { flex: none; color: var(--muted); text-align: right; }
.up-bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.up-bar > span { display: block; height: 100%; background: var(--on); }
.up-done .up-bar > span { background: var(--done); }
.up-done .up-state { color: var(--done); }
.up-retry .up-state, .up-failing .up-state, .up-later .up-state { color: var(--you); }
.up-retry .up-bar > span, .up-later .up-bar > span { background: var(--you); }
.up-failed .up-state, .up-error { color: var(--bad); }
.up-failed .up-bar > span { background: var(--bad); }
.up-error { font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.up-details { font-size: 13px; line-height: 20px; color: var(--muted); }
.up-details summary { cursor: pointer; padding: 4px 0; }
.up-details dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 4px 0 8px; }
.up-details dt { color: var(--ink); }
.up-details dd { margin: 0; }

/* The admin frame (public/console.js, docs/admin-design.md 3 and 4): full width, one header row, the menu as a
   column from 1100 px, a panel under its button on a tablet and a sheet on a phone. */
.page.console { padding: 0 12px 96px; }
.bar.console .barin { max-width: none; }
@media (min-width: 640px) { .page.console { padding-inline: 16px; } }
@media (min-width: 1100px) { .page.console { padding: 0 24px 64px 0; } }
.console-frame { display: flex; align-items: flex-start; }
.console-main { flex: 1; min-width: 0; }
.console-nav { position: sticky; top: var(--bar-h, 53px); flex: none; width: 208px; max-height: calc(100vh - var(--bar-h, 53px)); overflow-y: auto; padding: 12px 8px 16px 12px; margin-right: 12px; }
.console-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 48px; padding: 2px 0; }
@media (min-width: 1100px) { .console-head { min-height: 56px; padding: 4px 0; } }
.console-title { margin: 0; min-width: 0; font-size: var(--t-head-size); line-height: var(--t-head-line); font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.console-count { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.console-extra { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.console-gap { flex: 1; }
.console-head > .ant-btn { flex: none; }
/* Under 400 px a page's main button with an icon shows its icon alone (its words still read out), so it and the ?
   stay on the title's line. */
@media (max-width: 399px) {
  .console-head > .ant-btn:not(.ant-btn-loading):has(> .ant-btn-icon) { width: 44px; padding-inline: 0; }
  .console-head > .ant-btn:not(.ant-btn-loading):has(> .ant-btn-icon) > span:not(.ant-btn-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.console-head > .help-icon:last-child { margin-right: -4px; padding: 6px; font-size: 16px; }
.console-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; min-width: 44px; height: 44px; margin-left: -10px;
  padding: 0 8px 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 18px; cursor: pointer; }
.console-menu-btn:hover { background: var(--fill); }
.console-menu-btn:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.console-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--you); color: var(--paper); font-size: 11px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* The menu's entries: 32 px rows in the column (both groups fit a 768 px screen), 44 px in the sheet and panel. */
.console-menu.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.console-menu h2 { margin: 0; height: 28px; padding: 6px 8px 0; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.console-menu.column .console-group + .console-group h2 { margin-top: 12px; }
.console-menu.two h2 { height: 32px; padding-top: 8px; }
.console-menu a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 8px; color: var(--ink); font-size: 14px; text-decoration: none; }
.console-menu.two a { height: auto; min-height: 44px; padding: 4px 8px; line-height: 18px; }
.console-menu a:hover { background: var(--fill); }
.console-menu a:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.console-menu .console-ico { color: var(--muted); font-size: 16px; flex: none; }
.console-menu .console-entry { flex: 1; min-width: 0; }
.console-menu.column .console-entry { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-menu a.sel { background: color-mix(in srgb, var(--on) 14%, transparent); color: var(--on); font-weight: 500; }
.console-menu a.sel .console-ico { color: var(--on); }
.console-panel .ant-popover-inner { width: 440px; max-width: calc(100vw - 32px); padding: 4px 8px 8px; }
.console-sheet .ant-drawer-content { border-radius: 16px 16px 0 0; }
.console-sheet .ant-drawer-header { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
.console-sheet .ant-drawer-body { padding: 0 8px calc(12px + env(safe-area-inset-bottom)); }
/* A sheet that says what it is (Your items' Update menu, Sort, Tags): its title shows. */
.console-sheet.titled .ant-drawer-header { position: static; width: auto; height: auto; padding: 12px 16px; overflow: visible; clip-path: none; border-bottom: 1px solid var(--line); }
.console-sheet.titled.up-sheet .ant-drawer-body { padding-inline: 0; }
.console-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 4px; }
/* Tabs: pages under one menu entry, or the parts of one page. Under 1100 px the row under the header, stuck
   under the app bar; from 1100 px in the header row beside the title. Never behind "…": they wrap instead. */
.console-tabs { display: flex; flex-wrap: wrap; column-gap: 24px; min-width: 0; }
.console-main > .console-tabs { position: sticky; top: var(--bar-h, 53px); z-index: 4; margin: 0 -12px 12px; padding: 0 12px; background: var(--bar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .console-main > .console-tabs { margin-inline: -16px; padding-inline: 16px; column-gap: 28px; } }
.console-head > .console-tabs { margin-left: 16px; align-self: stretch; }
.console-tabs .tab { display: inline-flex; align-items: center; gap: 6px; height: 44px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 14px; white-space: nowrap; text-decoration: none; }
.console-head > .console-tabs .tab { height: 100%; min-height: 48px; }
.console-tabs .tab:hover { color: var(--ink); }
.console-tabs .tab.sel { color: var(--on); border-bottom-color: var(--on); font-weight: 500; }

/* Records (public/admin-blocks.js, docs/admin-design.md 5.2): a card with its filter line, a table from 1100 px and
   one row a record under it, then paging. */
.rec-card { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; margin-bottom: 12px; }
.rec-filters { display: flex; gap: 8px; padding: 10px 12px; }
.rec-filters:empty { display: none; }
.rec-search { flex: 1 1 160px; min-width: 0; max-width: 360px; }
.rec-pick { flex: none; min-width: 112px; }
.rec-n { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.rec-rows { list-style: none; margin: 0; padding: 0; }
.rec-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; column-gap: 12px; padding: 12px; border-top: 1px solid var(--line); }
.rec-dot { display: block; flex: none; align-self: start; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--on); }
.rec-dot.bad { background: var(--bad); } .rec-dot.you { background: var(--you); } .rec-dot.done { background: var(--done); }
.rec-words { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rec-title { color: var(--ink); font-size: 15px; line-height: 21px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rec-why { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; color: var(--muted); }
.rec-why.bad { color: var(--bad); } .rec-why.you { color: var(--you); }
.rec-meta { font-size: 12px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.rec-meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); }
.rec-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rec-act .ant-btn-sm { height: 32px; padding-inline: 12px; }
.rec-more { margin-top: 8px; font-size: 13px; line-height: 19px; }
.rec-more ul { margin: 0; padding-left: 18px; }
.rec-end { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-empty { margin: 0; padding: 14px 12px; color: var(--muted); }
.rec-filters + .rec-empty { border-top: 1px solid var(--line); }
.rec-paging { display: flex; justify-content: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.rec-table { border-top: 1px solid var(--line); }
.rec-table .ant-table-wrapper .ant-table { background: transparent; }
.rec-table .ant-table-pagination.ant-pagination { margin: 10px 12px; }
.rec-fold { border-top: 1px solid var(--line); }
.rec-fold-head { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.rec-fold-head:hover { background: var(--fill); }
.rec-fold-head:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.rec-fold-ico { margin-left: auto; color: var(--muted); font-size: 12px; }
.rec-fold-body > .rec-card { border: 0; border-radius: 0; margin: 0; }
.rec-failed { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.rec-failed > span:not(.rec-dot) { flex: 1; min-width: 0; }
.rec-failed .rec-dot { margin-top: 0; flex: none; }
.rec-loading { padding: 16px; }
/* Numbers (5.1) and rows of facts (5.4). */
.nums { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; margin-bottom: 12px; }
@media (min-width: 640px) { .nums { grid-template-columns: repeat(4, 1fr); } }
/* Two, three or six cells fill the card's width: two or three across, and six three across, one line from 1100 px. */
@media (min-width: 640px) {
  /* :where keeps these at .nums's own weight, so a page's own layout (Errors' two across) still wins. */
  .nums:where(:has(> :nth-child(2):last-child)) { grid-template-columns: repeat(2, 1fr); }
  .nums:where(:has(> :nth-child(3):last-child), :has(> :nth-child(6):last-child)) { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) { .nums:where(:has(> :nth-child(6):last-child)) { grid-template-columns: repeat(6, 1fr); } }
.nums-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; box-shadow: -1px -1px 0 var(--line); color: inherit; text-decoration: none; }
a.nums-cell:hover { background: var(--fill); }
.nums-label { font-size: 12px; line-height: 18px; color: var(--muted); }
.nums-value { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 1100px) { .nums-value { font-size: var(--t-number-size); line-height: var(--t-number-line); } }
.nums-under { font-size: 12px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.nums-under.bad { color: var(--bad); } .nums-under.you { color: var(--you); } .nums-under.done { color: var(--done); }
/* fold (a phone): four cells, then "More numbers" across the card's width. wide: from 1100 px every cell on one line,
   up to eight; :where keeps it at .nums's weight, after the count rules above, so it wins over them and a page's own
   layout (Errors' two across) still wins over it. */
.nums-more { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none;
  box-shadow: -1px -1px 0 var(--line); color: var(--muted); font: inherit; font-size: var(--t-small-size); text-align: left; cursor: pointer; }
.nums-more:hover { background: var(--fill); }
.nums-more:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.nums-more > span:first-child { color: var(--ink); }
.nums-more-n { font-variant-numeric: tabular-nums; }
.nums-more .anticon { margin-left: auto; font-size: 12px; }
@media (min-width: 1100px) { .nums:where(.nums-wide) { grid-template-columns: repeat(var(--nums-across, 4), minmax(0, 1fr)); } }
.arow { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .arow { min-height: 40px; } }
.arow-label { flex: 1; min-width: 0; color: var(--muted); display: flex; flex-direction: column; }
.arow-sub { font-size: 12px; line-height: 18px; }
.arow-value { min-width: 0; text-align: right; color: var(--ink); overflow-wrap: anywhere; }
/* A row whose value is a box to type in and its button: the box takes the room, under the name where it's narrow. */
.arow-input { flex-wrap: wrap; row-gap: 6px; }
.arow-input > .arow-label { flex: 0 0 140px; }
.arow-input-box { display: flex; gap: 8px; flex: 1 1 280px; min-width: 0; max-width: 560px; margin-left: auto; }
.arow-input-box > .ant-input { flex: 1; min-width: 0; }
.arow > .ant-btn { flex: none; }
.arow-head { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px 4px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.arow-head > span:first-child { flex: 1; }
.rec-card > .arow:first-child, .rec-card > .arow-head:first-child { border-top: 0; }
.rec-title a { color: inherit; }
.figure.low { color: var(--you); }
.rec-end .figure { display: flex; flex-direction: column; align-items: flex-end; font-weight: 500; }

.person-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.person-account { position: sticky; top: calc(var(--bar-h, 53px) + 12px); max-height: calc(100vh - var(--bar-h, 53px) - 24px); overflow-y: auto; }
.admin-issues { margin-bottom: 12px; }
.person-tabs > .ant-tabs-nav { margin-bottom: 8px; }
.person-tabs .rec-card { margin-bottom: 0; }
.inbox-what { display: flex; gap: 10px; min-width: 0; }
.inbox-what .rec-dot { flex: none; }
.inbox-more summary { cursor: pointer; color: var(--on); font-size: 13px; }
.inbox-more ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.rec-line { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Health (docs/admin-design.md 5.6, 5.7, 6.11): the status list, then the chart cards; on a computer the list is a
   400 px column with each row's trend, the charts two across beside it (three from 1680 px). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rec-dot.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.health { display: grid; gap: 12px; align-items: start; }
@media (min-width: 1100px) { .health { grid-template-columns: 400px minmax(0, 1fr); gap: 16px; } }
.status-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.status-list > li + li { border-top: 1px solid var(--line); }
@media (min-width: 640px) and (max-width: 1099px) {
  .status-list { display: grid; grid-template-columns: 1fr 1fr; }
  .status-list > li { box-shadow: -1px -1px 0 var(--line); }
  .status-list > li + li { border-top: 0; }
}
.status-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px 8px 12px; color: var(--ink); text-decoration: none; }
.status-row:hover { background: var(--fill); }
.status-row:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.status-row > .rec-dot { align-self: center; margin-top: 0; }
.status-words { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.status-name { font-weight: 500; overflow-wrap: anywhere; }
.status-trend { flex: none; width: 64px; }
.status-fig { flex: none; max-width: 50%; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.status-fig > b { font-size: 15px; font-weight: 600; color: var(--ink); }
.status-chev { flex: none; color: var(--muted); font-size: 12px; }
.health-charts { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 640px) { .health-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1680px) { .health-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chart-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.chart-card-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px 0; }
.chart-card-title { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 21px; font-weight: 600; }
.chart-card-title a { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chart-card-title a .anticon { color: var(--muted); font-size: 11px; }
.chart-card-body { padding: 4px 12px 12px; min-width: 0; }
.chart-card-body > .rec-empty { padding: 8px 0; }
.chart-card-body > .rec-failed { padding: 8px 0; border-bottom: 0; }
.chart-card-body > .rec-rows { margin: 0 -12px -12px; }
.chart-card-body > .rec-rows .rec-row { padding: 10px 12px; }

/* One record, opened (docs/admin-design.md 5.3): Detail and its parts; Records' open and marked rows. */
.rec-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rec-open:hover { color: var(--on); }
.rec-open:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 2px; }
.rec-row.rec-picked, .rec-table .ant-table-row.rec-picked > td { background: var(--fill); }
.rec-table .ant-table-row.rec-click { cursor: pointer; }
.rec-table .ant-table-row.rec-click:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.rec-filters { flex-wrap: wrap; align-items: center; }
.rec-filters-more { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.rec-card > .rec-fold:first-child { border-top: 0; }
.detail .ant-drawer-header { padding: 12px 8px 10px 16px; }
.detail .ant-drawer-header-title { min-width: 0; }
.detail .ant-drawer-body { padding: 0 0 12px; }
.detail .ant-drawer-footer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
/* A bottom sheet is as tall as what's in it, up to its wrapper's limit: past that its body scrolls and its bar stays in
   view (without this a long sheet ran off the bottom of the screen, bar and all). */
.detail-sheet .ant-drawer-content { border-radius: 16px 16px 0 0; max-height: inherit; }
.detail-head { display: flex; align-items: flex-start; gap: 8px; }
.detail-title { flex: 1; min-width: 0; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; font-weight: 400; }
.detail-tags .ant-tag { margin: 0; }
.detail .nums { border-width: 0 0 1px; border-radius: 0; margin: 0; }
.detail-part { border-bottom: 1px solid var(--line); padding: 12px 0 4px; }
.detail-part-title { margin: 0 16px 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.detail-part > .arow { padding-inline: 16px; }
.detail-part > .arow:first-of-type { border-top: 0; }
.detail-said { padding: 0 16px 10px; overflow-wrap: anywhere; }
.detail-said-label { font-size: 12px; line-height: 18px; color: var(--muted); }
.detail-said ol { margin: 0; padding-inline-start: 18px; }
.detail .rec-fold-body { padding: 0 16px 12px; }
.detail .rec-fold-head { padding-inline: 16px; }
.detail pre.prompt { margin: 0; max-height: 420px; overflow: auto; }
.detail-bar { display: flex; align-items: center; gap: 8px; }
.detail-bar > .ant-btn { flex: none; }
.detail-bar-gap { flex: 1; min-width: 0; }
/* Fills (6.14): Start a run's choice of kind, and a run's trace in its wide Detail. */
.start-what { display: flex; flex-direction: column; padding: 0 16px 8px; }
.start-what .ant-radio-wrapper { display: flex; align-items: flex-start; min-height: 44px; padding: 6px 0; margin: 0; }
.start-what .ant-radio-wrapper > span:last-child { display: flex; flex-direction: column; }
.start-what-label { color: var(--ink); }
.detail-part > .arow .arow-label { flex: 0 1 auto; min-width: 72px; }
.detail-part > .arow .arow-label > span:first-child { white-space: nowrap; }
.detail-part > .arow .arow-value { flex: 1 1 60%; }
.detail-part .arow-value .ant-select, .detail-part .arow-value .ant-input { text-align: left; }
.detail-part .detail-part-title .ant-segmented { font-weight: 400; }
.trace-parts { padding: 0 16px; overflow-wrap: anywhere; }
.trace-parts > div:first-child { border-top: 0 !important; }
@media (max-width: 639px) { .trace-parts .trace-line { grid-template-columns: 1fr !important; gap: 2px !important; } }

/* Errors (6.12): the numbers and the chart per day side by side from 1100 px. */
.errors-top { display: grid; gap: 12px; margin-bottom: 12px; }
.errors-top > .nums, .errors-top > .chart-card, .errors-top > .rec-card { margin: 0; }
@media (min-width: 1100px) {
  .errors-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .errors-top > .nums { grid-template-columns: 1fr 1fr; }
}

/* The sign-in page (pages/signin.tsx): one card, centred, phone first. */
.signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 16px 24px; background: var(--paper); }
.signin-brand { display: flex; align-items: center; gap: 8px; }
.signin-card { width: 100%; max-width: 400px; padding: 24px; }
.signin-foot { font-size: 13px; }

/* A source's place on the map (public/geo.js). */
.place-map { height: 320px; border-radius: 8px; border: 1px solid var(--line); z-index: 0; }
.place-results { max-height: 220px; overflow: auto; }
@media (max-width: 600px) { .place-map { height: 260px; } }

/* Activity (pages/activity.tsx): an item in a row, its cover beside its title. */
.act-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; min-width: 0; }
.act-item img { flex: none; border-radius: 6px; object-fit: cover; }

/* A feature switched off for this seller (public/ui.js Lock): its control stays in place, dimmed, and can't be used. */
.lockwrap { display: inline-flex; align-items: center; cursor: not-allowed; }
.lockwrap a.locked, .lockwrap button.locked { opacity: 0.45; pointer-events: none; }

/* The listing style editor (/rich-text.js): the app's own font, real lists, a small toolbar above. */
.rich { border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.rich:focus-within { border-color: var(--on); box-shadow: 0 0 0 2px color-mix(in srgb, var(--on) 18%, transparent); }
.rich-bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.rich-bar .ant-btn[aria-pressed="true"] { color: var(--on); background: color-mix(in srgb, var(--on) 12%, transparent); }
.rich-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.rich-text { padding: 8px 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; max-height: 60vh; overflow-y: auto; }
.rich-text p { margin: 0; }
.rich-text ul, .rich-text ol { margin: 2px 0; padding-left: 22px; }
.rich-text li { margin: 1px 0; }
.rich-text li::marker { color: var(--muted); }
.rich-view { padding: 0; max-height: 50vh; }

/* /reset (public/reset.js) */
.reset-note { font: 14px/22px system-ui, -apple-system, "Segoe UI", sans-serif; margin: 20vh auto; max-width: 32em; padding: 0 16px; text-align: center; color: var(--muted); }

/* The phone app (public/app-shell.js): "App update ready" floating on the top bar's bottom edge, and the offer to add it to the home screen. */
/* Centered on the bar's bottom edge, half over the bar and half over the page (public/app-shell.js sets how far it
   lifts). It's placed against the sticky bar, so it stays with it on scroll; nothing in the bar moves when it comes. */
.newversion-at { position: absolute; top: 100%; left: 0; right: 0; height: 0; display: flex; align-items: flex-start; justify-content: center; padding: 0 16px; pointer-events: none; z-index: 1; }
.newversion-card { pointer-events: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; width: min(560px, 100%); box-sizing: border-box;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); box-shadow: var(--lift); }
.newversion-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.newversion-text p { margin: 0; }
.newversion-card > .ant-btn { margin-left: auto; }
@media (max-width: 480px) { .newversion-card { padding: 10px 12px; gap: 6px 12px; } .newversion-text { flex-basis: 180px; } .newversion-text p { font-size: 13px; line-height: 18px; } }
.install-offer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.install-offer img { border-radius: 9px; flex: none; }
.install-offer-text { flex: 1 1 220px; min-width: 0; }
.notification-kind { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.notification-settings .ant-radio-group { flex-wrap: wrap; }
.notification-settings .sub { margin-top: 24px; }
.notification-settings .sub:first-child { margin-top: 0; }
.install-offer-how { color: var(--muted); }

/* ---- In-app camera (public/camera.js): dark in both themes, like a phone's camera ---- */
.camera { position: fixed; inset: 0 0 calc(0px - var(--screen-gap, 0px)); z-index: 1100; display: flex; flex-direction: column; background: #000; color: #fff;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.camera-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }
.camera-count { font-size: 14px; opacity: .85; }
.camera-icon-button, .camera-text-button { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; }
.camera-icon-button { width: 44px; height: 44px; border-radius: 50%; font-size: 20px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.camera-text-button { min-height: 44px; padding: 0 10px; font-size: 15px; }
.camera-text-button:disabled { opacity: .35; cursor: default; }
.camera-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.camera-video.mirrored { transform: scaleX(-1); }
/* The square the listing photo is cut to: the shortest side of the view, centered. */
.camera-square { position: absolute; inset: 0; margin: auto; box-sizing: border-box; width: calc(min(100cqw, 100cqh) - 16px); height: calc(min(100cqw, 100cqh) - 16px); border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); border-radius: 4px; pointer-events: none; }
.camera-stage { container-type: size; }
.camera-flash { position: absolute; inset: 0; background: #fff; opacity: .7; pointer-events: none; }
.camera-review { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.camera-note { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; padding: 24px; text-align: center; background: rgba(0,0,0,.7); }
.camera-note p { max-width: 32em; margin: 0; }
.camera-prompt { position: absolute; left: 0; right: 0; top: 0; padding: 10px 16px 18px; background: linear-gradient(rgba(0,0,0,.65), transparent); text-align: center; pointer-events: none; }
.camera-shot { font-size: 18px; font-weight: 600; line-height: 1.3; }
.camera-why { font-size: 13px; opacity: .8; margin-top: 2px; }
.camera > * { min-width: 0; }
.camera-bottom { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.camera-checklist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; min-width: 0; max-width: 100%; }
.camera-step { flex: none; min-width: 36px; height: 32px; padding: 0 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.4); background: none;
  color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.camera-step.on { border-color: #fff; background: rgba(255,255,255,.2); }
.camera-step.got { border-color: #52c41a; color: #95de64; }
.camera-step.skipped { opacity: .65; font-style: italic; }
.camera-strip { display: flex; gap: 6px; overflow-x: auto; min-width: 0; max-width: 100%; padding-top: 6px; }
.camera-thumb { position: relative; flex: none; }
.camera-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; display: block; }
.camera-thumb button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #333; color: #fff;
  font-size: 11px; display: grid; place-items: center; cursor: pointer; }
.camera-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.camera-controls > :first-child { justify-self: start; }
.camera-controls > :last-child { justify-self: end; }
.camera-shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.9); cursor: pointer;
  box-shadow: inset 0 0 0 3px #000; }
.camera-shutter:active { transform: scale(.94); }
.camera-shutter:disabled { opacity: .4; cursor: default; }
.camera-macro { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; min-height: 44px; }
.camera-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 14px; }
.camera-all-done { opacity: .85; }
.camera-finish { display: flex; gap: 8px; }
.camera-finish .ant-btn { flex: 1; height: 44px; }
/* The first screen (docs/seller-design.md 6.2): Close and the photo count in the bar, the question at --t-title, the
   eight kinds two across (four from 640 px, centred), Skip as a quiet button; the line under the question is the bar's ?. */
.camera-top.picking { gap: 4px; padding-right: 8px; }
.camera-close { display: inline-flex; align-items: center; gap: 8px; padding-left: 4px; }
.camera-top.picking .camera-count { padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); opacity: 1; font-size: var(--t-small-size); }
.camera-help.camera-icon-button { background: none; font-size: 18px; }
.camera-kinds { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.camera-kinds h2 { color: inherit; margin: 0; font-size: var(--t-title-size); line-height: var(--t-title-line); font-weight: 700; }
.camera-kind-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.camera-kind { min-height: 56px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: none;
  color: inherit; font: inherit; font-size: var(--t-body-size); line-height: 18px; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.camera-kind:active { background: rgba(255,255,255,.08); }
.camera-kind.skip { align-self: center; min-height: 44px; min-width: 88px; margin-top: 8px; border: 0; color: color-mix(in srgb, var(--on) 60%, white); }
@media (min-width: 640px) {
  .camera-kinds { width: 100%; max-width: 640px; margin: 0 auto; padding: 96px 16px 16px; gap: 16px; }
  .camera-kind-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.camera-ask { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px;
  background: rgba(0,0,0,.92); }
.camera-ask h2 { color: #fff; margin: 0; font-size: 20px; }
.camera-ask p { margin: 0 0 8px; opacity: .85; }
.camera-problem { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 8px; background: #a8071a; color: #fff; }
.camera-problem button { background: none; border: 0; color: #fff; min-width: 32px; min-height: 32px; cursor: pointer; }
.camera-top-right { display: flex; gap: 8px; }
.camera-icon-button.on { background: #ffd666; color: #000; }
/* After a shot that looks soft, dark or glary: advisory, Keep is one tap. */
.camera-check { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; padding: 12px; border-radius: 10px; background: rgba(20,20,20,.92); color: #fff; }
.camera-check p { margin: 0 0 10px; font-size: 15px; }
.camera-check-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* The level guide: a line along the true level, or a dot in a ring held flat; green when level. */
.camera-level { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; --level: rgba(255,255,255,.75); }
.camera-level.level { --level: #52c41a; }
.camera-level-line { width: 60%; height: 2px; background: var(--level); box-shadow: 0 0 2px rgba(0,0,0,.6); }
.camera-level-ring { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--level); display: grid; place-items: center; box-shadow: 0 0 2px rgba(0,0,0,.6); }
.camera-level-ring span { width: 14px; height: 14px; border-radius: 50%; background: var(--level); }
.camera-chip { position: absolute; right: 12px; top: 50%; z-index: 1; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.5); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
/* A barcode read live, as read (it shows a few seconds after it was last seen). */
.camera-code { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px); display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 18px; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; pointer-events: none; }
.camera-code span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.camera-thumb-code { position: absolute; left: 2px; bottom: 2px; width: 18px; height: 18px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff;
  font-size: 12px; display: grid; place-items: center; }
/* Where focus was tapped, for a moment. */
.camera-focus-ring { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 2px solid #ffd666; border-radius: 50%; pointer-events: none;
  animation: camera-focus .9s ease-out forwards; }
@keyframes camera-focus { from { transform: scale(1.4); opacity: 1; } 70% { transform: scale(1); opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .camera-focus-ring { animation: none; } }
/* The camera is always dark: antd's light-theme disabled buttons and an off switch would vanish on it. */
.camera .ant-btn:disabled { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.2); background: transparent; }
.camera .ant-switch:not(.ant-switch-checked) { background: rgba(255,255,255,.35); }

/* "Measure this" (public/measure.js): the AR overlay over the camera view. */
.measure-ar { position: fixed; inset: 0 0 calc(0px - var(--screen-gap, 0px)); z-index: 2000; color: #fff; background: #111; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.measure-ar.live { background: transparent; } /* the camera view shows through once the session runs */
.measure-draw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.measure-draw .side { stroke: #fff; stroke-width: 3; }
.measure-draw .side.live { stroke-dasharray: 8 6; }
.measure-draw .end { fill: #1f5fd1; stroke: #fff; stroke-width: 2; }
.measure-draw .aim { fill: none; stroke: #fff; stroke-width: 3; }
.measure-live { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.7); font-weight: 600; pointer-events: none; margin-left: -28px; }
.measure-top { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; right: 16px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.6); text-align: center; }
.measure-bar { position: absolute; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.measure-sizes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.measure-sizes span { opacity: 0.6; }
.measure-sizes span.on { opacity: 1; font-weight: 600; }
.measure-bar .measure-note { font-size: 13px; opacity: 0.85; text-align: center; }

/* Tooltips never on a phone (docs/style-guide.md): a tap there is turned into a pretend hover, which popped
   tips up over the controls being tapped. The app's own tooltips already ignore taps (public/tooltip.js); this
   keeps off the ones Ant builds into its components (copy icons, table sorters, clipped text). The slider's
   value while dragging stays. */
@media (hover: none) and (pointer: coarse) { .ant-tooltip:not(.ant-slider-tooltip) { display: none !important; } }
/* Fill's lists (public/fill.js ModeList, WaitList) and its Update menu: a row per update mode with how many changed and
   its button, then the rows that open what ModeList holds (docs/seller-design.md 6.1). */
.fill-list .ant-list-item { padding-inline: 0; }
.up-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-head { font-size: var(--t-small-size); line-height: var(--t-small-line); font-weight: 400; color: var(--ink); }
.up-menu .ant-drawer-body { padding: 0; }
.up-rows { display: flex; flex-direction: column; }
.up-row { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 16px; border: 0; border-top: 1px solid var(--line); background: none;
  color: var(--ink); font: inherit; font-size: var(--t-body-size); text-align: left; width: 100%; }
.up-row:first-child { border-top: 0; }
.up-row.sub { min-height: 44px; color: var(--muted); font-size: var(--t-small-size); cursor: pointer; }
.up-row.sub:hover { background: var(--fill); }
.up-row.sub:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.up-name { flex: 1; min-width: 0; }
.up-count { border: 0; background: none; padding: 8px 0; color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
.up-count:hover { color: var(--on); }
.up-none { color: var(--muted); white-space: nowrap; }
.up-n { font-variant-numeric: tabular-nums; color: var(--ink); }
.up-go { font-size: 12px; }
.lockwrap:has(> .up-row) { display: block; }
/* Fill/Update on Your items' tool line (public/fill.js): its badge is how many of the picked items it takes. A
   disabled button lets its tooltip (why it's off) show from the span around it. */
.fill-pick { display: inline-block; }
.fill-pick .ant-btn[disabled] { pointer-events: none; }
.btn-n { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 10px; font-size: 12px; line-height: 20px;
  font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, 0.25); color: inherit; }

/* The Admin inbox's fills to run again: each seller's items and why, folded under the count. */
.inbox-fill summary { cursor: pointer; }
.inbox-fill ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; max-width: 72ch; }
.inbox-fill li + li { margin-top: 4px; }
/* A supply too small for the item size, in the container picker (public/todos.js SupplyPick): still pickable, said so. */
/* Too small: muted name (still readable), the words "Too small for the item size" carry it. */
.supply-small { color: var(--muted); }
.heavy-chip { margin-inline: 6px 0; font-size: 11px; line-height: 18px; padding-inline: 6px; vertical-align: 1px; }
.set-heavy { padding-top: 10px; border-top: 1px solid var(--line); }
.set-heavy-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-left: 8px; }
.set-heavy-line .heavy-chip { margin-inline: 0; }
.usps-heavy { margin-left: 4px; }
.supply-item { padding: 6px 12px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.supply-item b { color: var(--ink); font-weight: 500; }

/* Pick list (pages/pick-list.tsx): sales to pull from the shelves, phone first and one-handed. Each row is one tap. */
.pk { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.pk-tools { display: flex; gap: 8px; }
.pk-waiting { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none;
  background: rgb(250 140 22 / .12); }
.pk-waiting > span { flex: 1; }
.pk-waiting > .anticon:first-child { color: var(--you); }
.pk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pk-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 88px; padding: 8px 12px 8px 8px; text-align: start; font: inherit; color: var(--ink);
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pk-row:hover, .pk-row:focus-visible { border-color: var(--on); }
.pk-row:active { transform: scale(.99); }
.pk-row.done { border-color: var(--done); }
/* A sale's label: one small printer icon beside its row (public/sale-label.js), never inside the row's one tap. */
.pk-item.with-label { display: flex; align-items: center; gap: 4px; }
.pk-item.with-label > .pk-row { flex: 1; min-width: 0; }
.pk-label { flex: none; display: grid; place-items: center; width: 40px; height: 44px; border-radius: 8px; font-size: 18px; color: var(--muted); }
.pk-label:hover, .pk-label:focus-visible { color: var(--ink); background: rgb(127 127 127 / .1); }
.pk-row.done .pk-photo, .pk-row.done .pk-text, .pk-row.done .pk-box { opacity: .45; }
.pk-row.done .pk-name { text-decoration: line-through; }
.pk-photo { flex: none; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--line); display: block; }
.pk-photo.none { display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.pk-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.pk-name { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pk-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pk-sku { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pk-units { color: var(--you); font-weight: 600; }
.pk-box { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; max-width: 96px; padding: 4px 8px;
  border-radius: 10px; background: color-mix(in srgb, var(--on) 12%, transparent); color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.1;
  text-align: center; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pk-box small { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pk-box.some { background: color-mix(in srgb, var(--you) 14%, transparent); font-size: 16px; }
.pk-tick { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); color: #fff; font-size: 20px; }
.pk-row.done .pk-tick { background: var(--done); border-color: var(--done); }
.pk-all { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--done); }

/* What is it? (pages/identify.tsx): Draft Review items drafting couldn't name, one at a time. Phone: one column, the photo
   first. From 900 px the photos at the left, the guess, the note and the actions at the right. */
.idf { display: flex; flex-direction: column; gap: 12px; max-width: 1120px; margin: 0 auto; }
.idf-nav { display: flex; align-items: center; gap: 8px; }
.idf-name { flex: 1; min-width: 0; text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idf-body { display: flex; flex-direction: column; gap: 16px; }
.idf-photos, .idf-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.idf-big { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-height: 70vh; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--fill); overflow: hidden; cursor: zoom-in; }
.idf-big img { width: 100%; height: 100%; object-fit: contain; display: block; }
.idf-big.none { cursor: default; color: var(--muted); font-size: 32px; }
.idf-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.idf-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; line-height: 0; }
.idf-thumbs button.on { border-color: var(--on); }
.idf-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--line); }
.idf-look { display: flex; flex-direction: column; gap: 6px; }
.idf-look-head, .idf-label { font-size: var(--t-small-size); color: var(--muted); display: flex; align-items: center; gap: 4px; }
.idf-look-row { display: flex; flex-wrap: wrap; gap: 8px; }
.idf-look-err { font-size: var(--t-small-size); color: var(--bad); }
.idf-guess { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.idf-title { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.idf-cat, .idf-sku { font-size: var(--t-small-size); color: var(--muted); overflow-wrap: anywhere; }
.need-note.idf-note { margin: 0; padding: 0; border-top: 0; gap: 6px; }
.idf-state { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--done); }
.idf-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.idf-all { display: inline-flex; align-items: center; gap: 6px; color: var(--done); }
.idf-none { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--done); }
@media (min-width: 900px) {
  .idf-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); align-items: start; gap: 24px; }
  .idf-side { position: sticky; top: 72px; }
}
@media (max-width: 639px) {
  /* The note and Redraft within reach of a thumb: the actions stay at the bottom of the screen. */
  .idf-acts { position: sticky; bottom: calc(0px - var(--screen-gap, 0px)); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--bar); backdrop-filter: blur(8px); z-index: 2; }
  .idf-look-row .ant-btn { flex: 1 1 auto; }
}
.need-warn-go { margin-inline-start: auto; font-weight: 500; }
@media (max-width: 380px) { .pk-photo { width: 60px; height: 60px; } .pk-row { gap: 10px; } .pk-box { min-width: 48px; font-size: 20px; } }

/* Put away (pages/put-away.tsx): at a box with a pile of items, phone first. Big tap targets, the box always in view. */
.pa { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.pa-pick { max-width: 560px; margin: 0 auto; }
.pa-head { position: sticky; top: calc(var(--pa-top, 52px) + 8px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.pa-box { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pa-box-label { font-size: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-box-count { color: var(--muted); white-space: nowrap; }
.pa-find { display: flex; gap: 8px; }
.pa-find .ant-input-affix-wrapper { flex: 1; }
.pa-note { display: block; }
.pa-sec.ant-typography { margin: 4px 0 8px; }
.pa-results, .pa-list { display: flex; flex-direction: column; gap: 6px; }
.pa-row, .pa-line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; text-align: start; font: inherit; color: var(--ink);
  background: var(--raised); border: 1px solid var(--line); border-radius: 10px; }
.pa-row { cursor: pointer; min-height: 80px; }
.pa-row:hover:not(:disabled), .pa-row:focus-visible { border-color: var(--on); }
.pa-row.here { cursor: default; opacity: .75; }
.pa-line { padding: 6px 8px; }
.pa-line.failed { border-color: var(--bad); cursor: pointer; }
.pa-row-text, .pa-line-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pa-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-row-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.pa-sticker { color: var(--ink); font-variant-numeric: tabular-nums; }
.pa-in { color: var(--done); }
.pa-put { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--on); border: 1px solid var(--on); font-size: 18px; }
.pa-photo { flex: none; border-radius: 8px; object-fit: cover; background: var(--line); display: block; }
.pa-photo.none { display: grid; place-items: center; color: var(--muted); font-size: 20px; aspect-ratio: 1; }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pa-tile { display: flex; flex-direction: column; gap: 4px; padding: 0; text-align: start; font: inherit; font-size: 12px; color: var(--ink);
  background: none; border: 0; cursor: pointer; min-width: 0; }
.pa-tile .pa-photo { aspect-ratio: 1; height: auto !important; }
.pa-tile:focus-visible .pa-photo { outline: 2px solid var(--on); outline-offset: 2px; }
.pa-tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-scan { position: fixed; inset: 0 0 calc(0px - var(--screen-gap, 0px)); z-index: 1000; background: #000; display: flex; flex-direction: column; }
.pa-scan video { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.pa-scan-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--raised); color: var(--ink); }
@media (max-width: 430px) { .pa-find .long { display: none; } .pa-grid { grid-template-columns: repeat(3, 1fr); } }

/* Check listings against your search rules (public/search-rules-page.js): a change, word by word. */
.rule-change { white-space: pre-wrap; line-height: 1.5; max-height: 12em; overflow: auto; }
.rule-before { color: var(--muted); }
.rule-del { color: var(--bad); text-decoration: line-through; }
.rule-add { color: var(--done); text-decoration: none; background: color-mix(in srgb, currentColor 10%, transparent); border-radius: 2px; }

/* Helpers (src/helpers.ts): the helper's own page (pages/helper.tsx) and the seller's Helpers page (pages/helpers.tsx). */
.helper-page { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.helper-page .ant-typography { margin: 0; }
.helper-totals { display: flex; gap: 32px; flex-wrap: wrap; }
.helper-note { display: block; }
.helper-link { display: flex; gap: 8px; }
.helper-link .ant-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Invites (pages/invites.tsx): the QR code first, then the ways to send it from the person's own apps. */
.invite-shown { display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin: 0 auto; }
.invite-shown .ant-typography { margin: 0; }
.invite-qr { align-self: center; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.invite-lede { text-align: center; }
.invite-send { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.invite-credits { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; }
.invite-credits ul { margin: 0; padding-left: 20px; }
.helper-sales-pick { display: flex; flex-direction: column; gap: 8px; }
.helper-sales-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.helper-sale { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; min-height: 56px; }
.helper-sale.picked { background: color-mix(in srgb, var(--on) 8%, transparent); }
.helper-sale img, .helper-sale-none { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, currentColor 6%, transparent); }
.helper-sale-text { display: flex; flex-direction: column; min-width: 0; }
.helper-sale-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-list { display: flex; flex-direction: column; gap: 8px; }
.ship-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.ship-card.done { opacity: .6; }
.ship-card img, .ship-card .helper-sale-none { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; flex: none; }
.ship-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ship-card .ant-checkbox-wrapper { min-height: 40px; align-items: center; }

/* The item page's shell (public/item-glance.js, docs/item-page-design.md 3 and 4): the identity row, one Issues list,
   the photos and the work, and the bar stuck to the bottom. One column under 1100 px; from there the photos are a
   pane pinned on the left (440 px) and the work runs beside it, the page up to 1280 px. */
.item-page { display: flex; flex-direction: column; gap: 16px; }
.page:has(> .item-page) { padding-bottom: 0; }
/* A short page (the listing folded) keeps its bar at the bottom of the screen, so opening the fold never moves it: the
   page takes what's left of the screen under the app's bar (public/ui.js Layout), and the item's bar the last of that. */
.page:has(> .item-page) { flex: 1 0 auto; display: flex; flex-direction: column; }
.page > .item-page { flex: 1 0 auto; }
.item-page > .item-bar { margin-top: auto; }

/* Identity: the name, the state and SKU, the tools and the pager. On a phone the cover leads and the pager is in the
   app bar; the title takes two lines at most (18 px), the state, SKU and tools share the row under it. */
.identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title end" "meta end"; align-items: start; gap: 4px 16px; }
.id-cover { display: none; grid-area: cover; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--line); }
.id-title { grid-area: title; margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; text-wrap: pretty; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.id-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.id-meta .ant-tag { margin: 0 !important; }
.id-meta > [data-tour="item-state"] { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* The SKU and its help icon wrap together: the icon never sits on a line of its own. */
.id-sku { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.id-line { display: contents; }
.id-end { grid-area: end; display: flex; align-items: center; gap: 8px; }
.id-tools { display: inline-flex; align-items: center; }
.id-tools .item-menu { gap: 6px; }
.id-tools .item-menu .anticon-down { font-size: 10px; color: var(--muted); }
/* On a phone the state, SKU and tools share one row under the title, the tools at its end (on a row of their own
   when the tags need the room). */
@media (max-width: 639.98px) {
  .identity { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "line"; gap: 8px; }
  .identity.has-cover { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "cover title" "line line"; column-gap: 12px; }
  .identity.has-cover .id-cover { display: block; }
  .id-title { font-size: 18px; line-height: 24px; align-self: center; }
  .id-line { grid-area: line; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .id-meta { flex: 1 1 auto; }
  .id-end { margin-inline-start: auto; }
  .id-tools .item-menu { height: 36px; }
}
@media (min-width: 1100px) { .id-title { font-size: 20px; line-height: 26px; -webkit-line-clamp: 1; } }
/* After Review: one photo always in view for reference, 120 px, leading the row on a phone and tablet; a tap opens
   every photo. Its column holds the title, then the state and SKU, then the tools at the bottom (phone). */
.identity.ref { display: flex; align-items: stretch; gap: 12px; }
.id-ph { position: relative; flex: none; width: 120px; height: 120px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--line); cursor: zoom-in; }
.id-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.id-ph:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.id-cnt { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: rgb(0 0 0 / .66); color: #fff; font-size: 12px; font-weight: 500; }
.id-tt { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title end" "meta end"; align-content: start; gap: 4px 16px; }
@media (max-width: 639.98px) {
  .id-tt { display: flex; flex-direction: column; gap: 8px; }
  .identity.ref .id-title { align-self: auto; }
  .identity.ref .id-line { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; }
  .identity.ref .id-end { margin: auto 0 -4px -8px; }
}
@media (min-width: 1100px) {
  .identity.ref { display: block; }
  .identity.ref .id-ph { display: none; }
}
.sku-tag { font-size: 12px; line-height: 18px; letter-spacing: .02em; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }

/* The pager: beside the tools from 640 px, in the app bar on a phone (public/ui.js Shell's #bar-slot). */
.pager { display: inline-flex; align-items: center; }
.pager-at { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-inline: 2px; white-space: nowrap; }
.bar-slot { display: inline-flex; align-items: center; }
.bar-slot:empty { display: none; }
@media (min-width: 640px) { .bar-slot { display: none; } }

/* The photos, Issues and the work. */
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "issues" "photos" "work"; }
.ig-issues { grid-area: issues; min-width: 0; }
.ig-issues:has(.issue-list > li) { margin-bottom: 16px; }
.ig-photos { grid-area: photos; min-width: 0; margin-bottom: 16px; }
.ig-photos:empty { display: none; }
.ig-work { grid-area: work; min-width: 0; }
@media (min-width: 1100px) {
  .item-grid { grid-template-columns: 440px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "photos issues" "photos work"; column-gap: 24px; }
  .item-grid:has(> .ig-photos:empty) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "issues" "work"; }
  /* Between the app bar and the item's bar, 16 px from each (shell-parts.js ItemBar sets --item-bar-h on .item-page): taller, its top
     went under the app bar or its end (Photo tools, the picker's button) under the item's bar. */
  .ig-photos { position: sticky; top: 68px; align-self: start; margin-bottom: 0; overflow-y: auto; overscroll-behavior: contain;
    max-height: calc(100vh - 84px - var(--item-bar-h, 0px)); max-height: calc(100dvh - 84px - var(--item-bar-h, 0px)); }
}
.item-lines:empty { display: none; }
.records-owner:empty { display: none; }
.stage-interim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.live-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.live-links a { white-space: nowrap; }
.live-links a .anticon { font-size: 11px; margin-inline-start: 2px; }
.stage-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stage-direct:empty { display: none; }
.stage-facts { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.stage-interim:not(:has(.stage-facts, .live-links, .stage-direct > *)) { display: none; }

/* Selling (pages/parts/selling.tsx, docs/item-page-design.md 4.5.3): four numbers with the aging row under them, then
   Buyers and Where it's live. One column under 1100 px; from there Buyers and Where it's live sit side by side. */
.selling { display: flex; flex-direction: column; gap: 12px; }
.sell-card { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; min-width: 0; }
.sell-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sell-stat { display: flex; flex-direction: column; min-width: 0; padding: 10px 8px 12px 14px; }
.sell-stat + .sell-stat { border-inline-start: 1px solid var(--line); }
.sell-k, .sell-s { font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sell-s.warn { color: var(--you); }
.sell-narrow { display: none; }
@media (max-width: 639.98px) { .sell-wide { display: none; } .sell-narrow { display: inline; } }
/* A value is never cut short (spec 4.5.3 Fit): a day count's unit is small beside it, and a value too long for four
   across on a phone sends the four two by two (.long). */
.sell-v { font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sell-u { margin-inline-start: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }
.sell-aging { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px 12px 14px; border-top: 1px solid var(--line); }
.sell-aging .sell-t { flex: 1 1 auto; }
.sell-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--you); }
.sell-acts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 639.98px) {
  .sell-stat { padding: 8px 4px 10px 10px; }
  .sell-stats.long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-stats.long > :nth-child(3) { border-inline-start: 0; }
  .sell-stats.long > :nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sell-v { font-size: 16px; line-height: 22px; }
  .sell-s { white-space: normal; overflow-wrap: anywhere; }
  .sell-aging .sell-acts { flex-basis: 100%; }
  .sell-acts .ant-btn { height: 36px; }
}
.sell-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 1100px) { .sell-cols:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sell-ch { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px 4px 14px; }
.sell-ch h2 { flex: 1; margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.sell-ch > a { padding-inline-end: 6px; font-size: 13px; }
.sell-n { color: var(--muted); font-weight: 400; }
.sell-rows { list-style: none; margin: 0; padding: 0; }
.sell-row { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 6px 6px 14px; border-top: 1px solid var(--line); }
.sell-row.col { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 6px 10px 14px; }
.sell-head { display: flex; align-items: flex-start; gap: 8px; }
.sell-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sell-t b { display: block; font-weight: 500; }
.sell-t small { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.sell-t small.warn { color: var(--you); }
.sell-t small a { cursor: pointer; }
.sell-quote::before { content: "\201C"; }
.sell-quote::after { content: "\201D"; }
.sell-site { flex: none; margin-top: 1px; padding: 0 6px; border-radius: 4px; background: rgb(127 127 127 / .14); font-size: 12px; line-height: 20px; font-weight: 600; }
.sell-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sell-gap { width: 32px; flex: none; }
.sell-extra { padding: 8px 14px 12px; border-top: 1px solid var(--line); }
.sell-extra:not(:has(.stage-direct > *)) { display: none; }
@media (min-width: 640px) { .sell-row { min-height: 44px; } .sell-v { font-size: 20px; line-height: 28px; } }

/* Sale (pages/parts/sale.tsx, docs/item-page-design.md 4.5.4): the money under its header, then To finish and Buyer, which
   sit side by side from 1100 px as Selling's cards do. A To finish line leads with its mark: a green check when done, a
   spinner while under way, an orange ring to do, a dash for a standing fact. */
.sale .sell-ch + .sell-stats { border-top: 1px solid var(--line); }
.sale .sell-ch > a { cursor: pointer; }
.sale-split { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.fin-mark { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; }
.fin-mark.done { background: var(--done); color: var(--raised); }
.fin-mark.going { color: var(--on); font-size: 16px; }
.fin-mark.todo { border: 2px solid var(--you); }
.fin-mark.info::before { content: ""; width: 10px; height: 2px; border-radius: 1px; background: var(--muted); }
.fin-row .sell-t small > span { display: block; }
.fin-row .sell-t b .help-icon { vertical-align: -2px; }
.fin-row > .ant-space, .fin-row > .ant-btn { flex: none; }

/* List it and Finish in Vendoo (pages/parts/list-it.tsx, docs/item-page-design.md 4.5.2): Selling's card, a row per site
   with its price and state. Ready to list says how each site gets there; in Vendoo a mark leads each row. A fill that
   stopped is the first row, in red. */
.list-it .sell-ch { min-height: 48px; }
.li-tag { flex: none; padding: 1px 8px; border-radius: 6px; background: rgb(127 127 127 / .14); color: var(--muted); font-size: 12px; line-height: 20px; white-space: nowrap; }
.li-tag.bad { margin-inline-end: 6px; border: 1px solid var(--bad); background: none; color: var(--bad); }
.sell-ch > .li-tag:not(.bad) { margin-inline-end: 6px; }
.li-when { flex: none; padding-inline-end: 6px; font-size: 13px; color: var(--muted); }
.li-label { padding: 10px 14px 2px; border-top: 1px solid var(--line); font-size: 12px; line-height: 18px; font-weight: 600; color: var(--muted); }
.li-label + .sell-row { border-top: 0; }
.li-row { padding-inline-end: 10px; }
.li-row .sell-amt { padding-inline-start: 4px; }
.li-state { flex: none; display: inline-flex; justify-content: flex-end; }
.li-state:empty { display: none; }
.li-state .ant-btn { height: 32px; }
.sell-dot.bad { background: var(--bad); }
.li-line { display: block; }
.li-under { padding: 0 14px 10px; }
.li-under:not(:has(*)) { display: none; }
.li-state .ant-btn-icon-only { width: 32px; }
.sell-dot.info { background: var(--on); }
.list-it .li-edits .sell-dot, .list-it .li-stop .sell-dot { margin-inline: 8px; }
.list-it:not(:has(.marked)) .li-stop .sell-dot { margin-inline: 0; }
.li-stop .ant-btn-link, .li-edits .ant-btn { flex: none; }

/* Listing, photos and shipping, folded (pages/parts/fold.tsx, docs/item-page-design.md 4.6): one row with its summary; a tap
   opens the same tabs and photos under it. On a phone it runs edge to edge, as the listing panel does. */
.lfold { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lfold.on { gap: 0; }
.lfold.on.open { gap: 12px; }
.lfold-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lfold-body[hidden] { display: none; }
/* Ready's listing, locked (pages/item.tsx ReadyLock): one line with Edit above the form it covers. */
.ready-lock { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ready-lock-line { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--fill); color: var(--muted); }
.ready-lock-text { flex: 1; min-width: 0; }
.ready-lock-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ready-lock-body a, .ready-lock-body [role=button]:not(.ant-collapse-header):not(.help-icon) { color: var(--muted) !important; cursor: default; }
/* A control given its own disabled={false} still looks it, though the lock stops a press on it. */
.ready-lock-body .ant-switch:not(.ant-switch-disabled), .ready-lock-body .ant-btn:not(:disabled), .ready-lock-body .ant-select:not(.ant-select-disabled) { opacity: .5; cursor: not-allowed; }
.lfold-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--raised); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lfold-row:hover { background: color-mix(in srgb, var(--raised), rgb(127 127 127) 8%); }
.lfold-row:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.lfold-t { flex: 1; min-width: 0; }
.lfold-t b { display: block; font-size: 15px; line-height: 22px; font-weight: 600; }
.lfold-t small { display: block; font-size: 13px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.lfold-t small .warn { color: var(--you); }
.lfold-chev { flex: none; font-size: 12px; color: var(--muted); transition: transform .15s; }
.lfold.open > .lfold-row .lfold-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .lfold-chev { transition: none; } }
/* A fold whose body is its own card (parts/fold.tsx FoldSection): Original photos, under the listing photos. */
.lfold-body.fold-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.ig-photos > .ofold { margin-top: 16px; }
.lfold-body > .ofold { margin-top: 0; }
@media (max-width: 639.98px) {
  .lfold-row { margin-inline: -16px; width: calc(100% + 32px); border-radius: 0; border-inline: 0; padding-inline: 16px; }
}

/* Issues: one list, on screen only while there's something in it. A line each: a dot (orange needs you, red failed,
   blue information), the title, a chevron; the detail opens in a popover, or a sheet on a phone. */
.issues { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.issues:not(:has(.issue-list > li)) { display: none; }
.issue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.issue-list > li + li { border-top: 1px solid var(--line); }
.issue-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 14px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; line-height: 20px; text-align: left; cursor: pointer; }
.issue-row:hover { background: rgb(127 127 127 / .08); }
.issue-row:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
@media (pointer: coarse) { .issue-row { min-height: 44px; } }
.issue-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tone-warn .issue-dot { background: var(--you); }
.tone-bad .issue-dot { background: var(--bad); }
.tone-info .issue-dot { background: var(--on); }
.issue-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.issue-who { flex: none; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 4px; color: var(--muted); background: rgb(127 127 127 / .1); }
.issue-go { flex: none; font-size: 10px; color: var(--muted); }
.issue-pop { max-width: min(400px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; }
.issue-body { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 20px; }
.issue-body p, .issue-body ul { margin: 0; }
.issue-whose { display: flex; align-items: center; gap: 6px; color: var(--muted); }
/* Work under way: a thin bar under the row's words (docs/seller-design.md 4.3). */
.issue-bar { display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.issue-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--on); }
/* fold: on a phone, over three rows show the first two and "3 more", which opens the rest in place. */
.issue-list.folded > li:not(.issue-more):nth-child(n+3) { display: none; }
.issue-more .issue-row { color: var(--muted); font-size: var(--t-small-size); }
.tone-more .issue-dot { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
/* across: two columns from 640 px, divided by hairlines; an odd last row takes the whole width. */
@media (min-width: 640px) {
  .issues.across .issue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issues.across .issue-list > li + li { border-top: 0; }
  .issues.across .issue-list > li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .issues.across .issue-list > li:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .issues.across .issue-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .issues.across .issue-row { min-height: 44px; }
}
.issue-fixes { display: flex; flex-wrap: wrap; gap: 8px; }
.issue-pop .again-row, .issue-drawer .again-row { padding-top: 0; border-top: 0; }
.needs-optional-label { font-size: 12px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* The bar: what waits on the left, at most two buttons and More on the right, no sentence. It runs the width of the
   screen (the background reaches past the page's edges without widening it) and stays put at the bottom. */
.item-bar { position: sticky; bottom: calc(0px - var(--screen-gap, 0px)); z-index: 5; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: var(--raised); box-shadow: 0 0 0 100vmax var(--raised); clip-path: inset(-1px -100vmax 0);
  border-top: 1px solid var(--line); border-image: linear-gradient(var(--line) 0 0) 1 0 0 / 1px 0 0 / 0 100vmax; }
.item-bar-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-inline-start: auto; min-width: 0; }
.item-bar-buttons .ant-btn { white-space: nowrap; }
.keyboard-open .item-bar { display: none; }
.item-bar .pending-link { padding: 6px 12px; border-color: transparent; background: rgb(106 156 245 / .14); }
.item-bar .pending-link.bad { background: rgb(200 50 30 / .12); }
.menu-check { display: inline-block; width: 14px; }
@media (max-width: 639.98px) {
  /* One line on a phone (public/item-glance.js ItemBar works out what fits); only buttons that can't go into More wrap. */
  .item-bar { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); min-height: 56px; }
  .item-bar-buttons { flex: 0 0 auto; }
  .item-bar.wraps { flex-wrap: wrap; }
  .item-bar.wraps .item-bar-buttons { flex: 1 1 auto; flex-wrap: wrap; row-gap: 8px; }
  .item-bar .pending-link.small { flex: none; justify-content: center; width: 32px; height: 32px; padding: 0; font-variant-numeric: tabular-nums; }
  .item-bar-buttons > .ant-btn-primary, .item-bar-buttons > .now-queue { flex: 0 1 auto; }
  .item-bar-buttons .now-queue { flex-wrap: nowrap; gap: 6px; }
  /* Skip, Now and Queue on one line in 360 px (the item page's bar has no More: Jonathan, 2026-11-27). */
  .item-bar-buttons .now-queue .ant-btn { padding-inline: 8px; }
  .item-bar-buttons > .ant-btn-text { padding-inline: 6px; }
  .item-bar-buttons .now-queue .nq-long { display: none; }
  .item-bar-buttons .now-queue .nq-short { display: inline; }
}

.help-icon { display: inline-flex; align-items: center; padding: 2px; border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; border-radius: 4px; }
.help-icon.warn { color: var(--you); }
/* A help icon's popover (public/ui.js HelpIcon): long help scrolls within it rather than running off a phone. */
.help-pop { max-width: 300px; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
.help-icon:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
/* A field that syncs with Vendoo (public/sync-mark.js): a small mark after its label, its words behind a tap. Inline and
   the size of a help icon, so it takes no room of its own and moves nothing. Two arrows: both ways; one: to Vendoo only. */
.sync-mark { display: inline-flex; flex: none; align-items: center; margin-inline-start: 4px; padding: 2px; border: 0; background: none; color: var(--on); font-size: 12px; line-height: 1; cursor: pointer; border-radius: 4px; vertical-align: middle; }
.sync-mark.one-way { color: var(--muted); }
.sync-mark:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.sync-pop p { margin: 0 0 6px; }
.sync-pop p:last-child { margin-bottom: 0; }

.glance-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); font-size: 13px; line-height: 20px; }
/* Units: the counts are the card. */
.glance-units { gap: 8px; }
.units-counts { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; font-variant-numeric: tabular-nums; }
.units-counts b { font-size: 18px; font-weight: 650; }
.units-counts .muted { color: var(--muted); }
.glance-units .glance-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* Which ones are shipping (public/units.js ShipPicks): one batch per row, a tick or a count, a full-height tap target. */
.ship-picks { display: flex; flex-direction: column; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; }
.ship-pick { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 8px 12px; cursor: pointer; }
.ship-pick + .ship-pick { border-top: 1px solid var(--line, #e3e6ea); }
.ship-pick.on { background: var(--pick-bg, rgba(29, 95, 209, 0.07)); }
.ship-pick-what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }

.again-row { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.again-line { color: var(--muted); }
.again-line b { font-weight: 600; color: var(--ink); }
.again-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* Two buttons on one line, the label and its count in the first ("Draft 3 now ~$0.37", "Queue ~$0.23"). Where the
   label has a line of its own (below), the first says "Now" alone. */
.now-queue { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.now-queue-state { font-weight: 500; color: var(--muted); }
.now-queue-label { display: none; font-weight: 500; }
.now-queue .nq-short { display: none; }
/* Now and Queue where the page says a redraft would help (pages/item.tsx offer): under what it says. */
.redraft-offer { margin-top: 8px; }
.need-chips .redraft-offer { align-self: center; }
.picked-refill { display: flex; flex-direction: column; align-items: flex-start; }
/* On a phone the label takes its own line and Now and Queue share the row under it, instead of two stacked
   full-width bars. */
@media (max-width: 600px) {
  .actions .buttons .now-queue { flex: 1 1 100%; flex-wrap: wrap; }
  .actions .buttons .now-queue > .now-queue-label { display: block; flex: 1 1 100%; }
  .actions .buttons .now-queue .nq-long { display: none; }
  .actions .buttons .now-queue .nq-short { display: inline; }
  .actions .buttons .now-queue > .ant-btn, .actions .buttons .now-queue .ant-btn-primary { flex: 1 1 0; }
}

/* Mark listed by hand (public/item-glance.js MarkListed): the day it went live and each site's link, label beside field. */
.mark-listed-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 8px 12px; }
.mark-listed-row > span { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .mark-listed-row { grid-template-columns: 1fr; gap: 4px; } }

/* What waits on an item (pages/loose/item.tsx PendingRail): a drawer, opened from the item's top row or the bottom bar. */
/* The drawer is narrow: an alert's button goes under its text, never squeezing it to a word a line. */
.pending-drawer .ant-alert { flex-wrap: wrap; }
.pending-drawer .ant-alert-content { min-width: 0; flex: 1 1 0; }
.pending-drawer .ant-alert-action { flex: 1 1 100%; margin: 10px 0 0; padding-inline-start: 22px; }
.pending-drawer .ant-alert-with-description .ant-alert-action { padding-inline-start: 36px; }
.pending-drawer .pending-card .ant-card-head { min-height: 40px; }
.pending-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--on);
  background: none; color: var(--on); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pending-link.bad { border-color: var(--bad); color: var(--bad); }
.pending-link:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }

/* A fill's note in the side box (item.js WaitingUpdate): what happened, the stop's own words, then what it was carrying. */
.fill-note p { margin: 0 0 6px; }
.fill-note .fill-note-why { color: var(--muted, rgba(0,0,0,.65)); font-size: 13px; }
.fill-note .fill-note-what { font-size: 13px; margin: 0; }

/* --- The listing form's Required / Optional / Pricing tabs (public/listing.js; Jonathan, 2026-11-19) --- */
/* The sites it goes on, as chips that wrap (never sideways), and the Sites button at the end of the row; every
   site with its switch is in the Sites sheet (phone) or popover (640 px and up). */
.site-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 12px; }
.site-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.site-chip > .anticon { color: var(--done); font-size: 12px; }
.site-chip .mark-dot { margin: 0 2px; }
.sites-btn.ant-btn { margin-inline-start: auto; min-height: 44px; }
@media (min-width: 640px) { .sites-btn.ant-btn { min-height: 32px; } }
.site-list { display: flex; flex-direction: column; }
.site-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-top: 1px solid var(--line); }
.site-row:first-child { border-top: 0; }
.site-row-t { flex: 1; min-width: 0; }
.site-row-name { font-weight: 500; }
.site-row-why { font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The reasons are written to follow a site's name ("Depop: not fashion"); alone on their line they start with a capital. */
.site-row-why::first-letter { text-transform: uppercase; }
.site-row-why.waits { color: var(--you); }
.site-row-fix { flex: none; font-size: 13px; }
.site-row-fix a { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.sites-sheet .ant-drawer-content { border-radius: 12px 12px 0 0; }
/* As tall as its sites, up to most of the screen: past that its list scrolls, and Done stays in reach. */
.sites-sheet .ant-drawer-content-wrapper, .sites-sheet .ant-drawer-content, .sites-sheet .ant-drawer-wrapper-body { max-height: 85vh; max-height: 85dvh; }
.sites-sheet .ant-drawer-wrapper-body { display: flex; flex-direction: column; }
.sites-sheet .ant-drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sites-sheet .ant-drawer-body { padding: 0 0 12px; }
.sites-sheet .ant-drawer-header { padding: 8px 8px 8px 16px; }
.sites-pop .ant-popover-inner { padding: 8px 0 4px; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 160px); overflow-y: auto; }
.sites-pop .ant-popover-title { padding: 0 16px 4px; margin: 0; }
.sites-pop .site-row { padding: 6px 16px; min-height: 52px; }
.sites-pop .site-row-fix a { min-height: 32px; }

/* --- Field rows (public/field-row.js; docs/item-page-design.md 4.6) ---
   A short field is one row: label on the left (its own width, up to 36%), its value on the right and right-aligned, a hairline between
   rows. The control is Ant's own, borderless; the row fills faintly while focus is in it, with a line down its
   left edge, so keyboard focus stays plain to see. ".field.frow" outranks the stacked .field it also is. */
.field.frow { position: relative; display: grid; grid-template-columns: fit-content(36%) minmax(0, 1fr) auto; align-items: center; column-gap: 0; row-gap: 0; min-height: 44px;
  padding: 2px 0; border-top: 1px solid var(--line); }
.field.frow > .frow-l { grid-row: 1; grid-column: 1; display: flex; align-items: center; gap: 0; min-width: 0; padding-right: 8px; font-weight: 400; font-size: 13px; line-height: 18px; color: var(--muted); }
.frow-l-in { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.frow-l-in > .nowrap { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.field.frow > .frow-v { grid-row: 1; grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; text-align: right; }
/* The Accept slot keeps its width whether it holds Accept, Accepted, the Learns mark or nothing (while the field
   has unsaved changes), so the value beside it never moves. */
.field.frow > .frow-acc { grid-row: 1; grid-column: 3; display: flex; align-items: center; justify-content: center; min-width: 24px; margin-inline-start: 8px; }
/* A row's dropdown (public/field-row.js rowPopup): its options' own width, up to a cap; past it they wrap. */
.frow-pop.ant-select-dropdown { width: max-content; min-width: min(var(--pop-ctl, 0px), 100%); max-width: min(480px, calc(100vw - 32px), var(--pop-room, 100vw)); }
.frow-pop .ant-select-item-option-content { white-space: normal; overflow-wrap: anywhere; }
.field.frow > .frow-note, .field.frow > .frow-more { grid-column: 1 / -1; padding: 0 0 8px; font-size: 13px; }
.field.frow > .frow-more { display: flex; flex-direction: column; gap: 4px; }
/* Nothing to offer for this field: no gap opens under the row as focus comes in. */
.field.frow > .frow-more:not(:has(*)) { display: none; }
/* The fill reaches 8 px past the row on each side, so it doesn't stop at the text's edge. */
.field.frow:focus-within::before { content: ""; position: absolute; inset: 0 -8px; border-left: 2px solid var(--on); background: color-mix(in srgb, var(--ink) 5%, transparent); pointer-events: none; }
/* A phone's row with an Accept button: the label takes only its own width, so the value isn't cut short. */
@media (max-width: 639px) { .field.frow:has(> .frow-acc) { grid-template-columns: max-content minmax(0, 1fr) auto; } }
/* Room for the value: the text sits at the right, so nothing is needed at the control's left. */
.frow-v .ant-select-borderless .ant-select-selector { padding-inline-start: 0 !important; }
@media (min-width: 640px) { .field.frow { min-height: 40px; } }
/* A site's own version of the field above it: indented, the site's badge as its label. */
.field.frow.frow-site > .frow-l { padding-left: 16px; }
/* A row labelled by a site's badge and a name (Poshmark Original price): the label takes its own width, so the two
   stay on one line beside a short value. */
.field.frow:has(> .frow-l > .frow-l-in), .field.frow:has(> .frow-l > .frow-l-lab > .frow-l-in) { grid-template-columns: fit-content(64%) minmax(0, 1fr) auto; }
/* A value that isn't on the site's list: said in a few words, the why behind its help icon. */
.off-list { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
/* Blank, and buyers filter by it (public/search-check.js): the chips' magnifier, after the row's label. */
.frow-hot { display: inline-flex; flex: none; margin-inline-start: 6px; font-size: 12px; color: var(--on); }
.mark-dot { display: inline-block; flex: none; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%; background: var(--you); }
.site-chip .mark-dot, .site-row .mark-dot { width: 8px; height: 8px; margin-inline-end: 0; }
.frow-v > .ant-select, .frow-v > .ant-input-number, .frow-v > .ant-input-number-affix-wrapper, .frow-v > div:not([class]) { flex: 1; min-width: 0; }
.frow-v .ant-select-single .ant-select-selection-item, .frow-v .ant-select-single .ant-select-selection-placeholder,
.frow-v .ant-select-selection-search-input, .frow-v .ant-input-number-input, .frow-v .ant-input, .frow-v textarea { text-align: right; }
.frow-v .ant-select-selection-overflow { justify-content: flex-end; }
.frow-v .ant-input-number-affix-wrapper .ant-input-number-prefix { margin-inline-start: auto; color: var(--muted); }
.frow-v .ant-input-number-affix-wrapper .ant-input-number { flex: 0 1 88px; }
.frow-need .frow-v .ant-select-selection-placeholder, .frow-need .frow-v input::placeholder, .frow-need .frow-v textarea::placeholder { color: var(--you); opacity: 1; }
.frow-text { font-size: 14px; color: var(--ink); }
.frow-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow-fix { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--you); }
.frow-fix .anticon { font-size: 12px; }
.frow-tag.ant-tag { margin: 0; }
.frow-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.frow-hint { font-size: 12px; }
.frow-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.frow-links .ant-btn-link { padding: 0; height: auto; }
/* A long field: its label line (label, counter, Accept) over a full-width box. */
.field.fstk { display: block; padding: 8px 0 12px; border-top: 1px solid var(--line); }
.fstk-head { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.fstk-head > label, .fstk-l > label { flex: 1; min-width: 0; display: flex; align-items: center; font-weight: 400; font-size: 13px; color: var(--muted); }
/* A label line with a sync mark (public/field-row.js Stack): the label and its mark together take the room the label alone would. */
.fstk-l { flex: 1; min-width: 0; display: flex; align-items: center; }
.fstk-l > label { flex: 0 1 auto; }
/* A row's label with a sync mark beside it (public/field-row.js Row). */
.frow-l-lab { display: inline-flex; align-items: center; min-width: 0; }
.fstk-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fstk-head .site-badge { vertical-align: 0; }
/* Rows two across from 640 px, as two stacks; one column on a phone, in the order given. */
.fcols { display: flex; flex-direction: column; }
.fcols > .fstack { display: contents; }
.fgroup { min-width: 0; }
.fstk-pair { display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .fcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .fcols > .fstack { display: flex; flex-direction: column; min-width: 0; }
  .fstk-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .fstk-pair > :only-child { grid-column: 1 / -1; }
}
/* Blank optional fields as chips that add them; "hot" ones (buyers filter by them) are solid, with a magnifier.
   36 px to see, 44 px to tap: the hit area reaches into the gap between rows of chips. */
.add-chips-wrap { padding: 4px 0 12px; border-top: 1px solid var(--line); }
.fcols:empty + .add-chips-wrap, .form-group-top + .add-chips-wrap { border-top: 0; }
.add-chips-head { display: flex; align-items: center; gap: 4px; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--muted); }
.add-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.add-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border: 1px dashed color-mix(in srgb, var(--muted) 70%, transparent);
  border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.add-chip::after { content: ""; position: absolute; inset: -4px 0; }
.add-chip > .anticon { color: var(--muted); font-size: 12px; }
.add-chip.hot { border-style: solid; border-color: color-mix(in srgb, var(--on) 60%, transparent); }
.add-chip.hot > .anticon { color: var(--on); }
.add-chip:hover:not(:disabled) { border-color: var(--on); }
.add-chip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.add-chip:disabled { opacity: .5; cursor: not-allowed; }
.listing-note { padding: 0 0 12px; }
/* The reword button on "Your answers aren't in the title or description yet": on a narrow phone its words wrap
   inside the card rather than run past its edge. */
.behind-reword { align-self: flex-start; max-width: 100%; }
.behind-reword .ant-btn { max-width: 100%; height: auto; min-height: 32px; white-space: normal; text-align: left; }
/* The tab row sticks under the app's top bar while the form scrolls. */
/* Its background is the card's own (Ant's), handed down, so it covers what scrolls under it in either theme. */
.listing-tabs > .ant-tabs-nav { position: sticky; top: var(--bar-h, 53px); z-index: 6; background: var(--raised); }
#listing-card > .ant-card-body, #listing-card > .ant-card-body > .ant-flex, #listing-card .listing-tabs, #listing-card .listing-tabs > .ant-tabs-nav { background: inherit; }
.ant-card .listing-tabs > .ant-tabs-nav { margin-inline: -12px; padding-inline: 12px; }
/* On a phone the three tabs share the row's width, so none is cut off or pushed into a "more" menu when the Pricing
   tab carries a price (docs/item-page-design.md 4.6). */
@media (max-width: 639.98px) {
  .listing-tabs > .ant-tabs-nav .ant-tabs-nav-list { flex: 1 1 100%; width: 100%; min-width: 0; }
  .listing-tabs > .ant-tabs-nav .ant-tabs-tab { flex: 1 1 auto; min-width: 0; justify-content: center; margin: 0; }
  /* Narrower than the three names (under 360 px with a long price): a name shortens rather than a tab leaving the row. */
  .listing-tabs > .ant-tabs-nav .ant-tabs-tab-btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* The underline is the tab's own here: the library's is placed by measuring, and a name that changes width under it
     (a price typed, a count going up) would leave it behind. */
  .listing-tabs > .ant-tabs-nav .ant-tabs-ink-bar { display: none; }
  .listing-tabs > .ant-tabs-nav .ant-tabs-tab-active { box-shadow: inset 0 -2px 0 var(--ant-color-primary, var(--on)); }
}
/* Under 360 px the tabs take the row's side padding too, so the usual names still fit whole. */
@media (max-width: 359.98px) { .ant-card .listing-tabs > .ant-tabs-nav { padding-inline: 0; } }
.listing-pane > .form-group, .listing-pane > .shipping.inline { margin-top: 12px; }
/* A site's own title, description or tags under the field it's the site's own of: blank ones as chips right under it. */
.site-words .add-chips-wrap { padding-top: 0; border-top: 0; }
.site-words .add-chips { padding-top: 0; }
.site-badge { display: inline-block; max-width: 100%; padding: 0 7px; border-radius: 4px; font-size: 11.5px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); vertical-align: 1px; }
/* Each marketplace in its own brand color (Jonathan, 2026-11-30): a site's badge, chip and name. --site is the brand's
   color; --site-fg the text, lifted in dark mode so a dark brand still reads. Grailed and Vestiaire are black, so ink. */
[data-site] { --site: var(--muted); --site-fg: var(--site); }
[data-site="ebay"] { --site: #0064d2; }
[data-site="poshmark"] { --site: #7f0353; }
[data-site="mercari"] { --site: #5356ee; }
[data-site="depop"] { --site: #ff2300; --site-fg: #d81e00; }
[data-site="grailed"], [data-site="vestiaire"] { --site: #000; --site-fg: var(--ink); }
[data-site="facebook"] { --site: #0866ff; }
[data-site="ksl"] { --site: #0b3a6e; }
@media (prefers-color-scheme: dark) {
  [data-site] { --site-fg: color-mix(in srgb, var(--site) 55%, #fff); }
  [data-site="depop"] { --site-fg: #ff6a52; }
  [data-site="grailed"], [data-site="vestiaire"] { --site-fg: var(--ink); }
}
.site-name[data-site] { color: var(--site-fg); }
/* A site not switched on for this route: muted, as the chip is. */
.route-chip:not(.on) .site-name { color: inherit; }
.site-name.strong { font-weight: 600; }
.site-chip[data-site] { color: var(--site-fg); background: color-mix(in srgb, var(--site) 12%, transparent); }
.site-chip[data-site] > .anticon { color: var(--site-fg); }
.site-badge[data-site], .sell-site[data-site], .ant-tag[data-site] { color: var(--site-fg); background: color-mix(in srgb, var(--site) 12%, transparent); }
/* A group inside a tab: its own heading, a rule above. */
.form-group { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-group-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.form-group-head { margin: 0; font-size: 14px; font-weight: 600; }
.tab-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; color: var(--raised); background: var(--you); vertical-align: 1px; }
/* Pricing: its own tab, the sold prices under the price instead of a dialog. */
.pricing-tab { display: flex; flex-direction: column; gap: 12px; }
.sold-prices.inline { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
/* The SKU in the Status card: tap to change. */
.sku-edit { cursor: pointer; background: none; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.sku-edit .anticon { font-size: 10px; opacity: .6; }
.sku-edit:hover { border-color: var(--on); color: var(--ink); }
.sku-add { border: 1px dashed var(--line); border-radius: 4px; background: none; color: var(--muted); font-size: 12px; line-height: 18px; padding: 0 6px; cursor: pointer; }
.sku-add:hover { border-color: var(--on); color: var(--on); }
.sku-input { width: 140px; }
.ant-tabs-tabpane > .ant-flex > .form-group:first-child { border-top: 0; padding-top: 0; }
/* Count units in a box (public/put-away.js): minus, count, plus beside each item in the box. */
.pa-units { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pa-units .ant-input-number { width: 56px; }
.pa-units .ant-input-number-input { text-align: center; font-variant-numeric: tabular-nums; }
.pa-units-wait { flex: none; white-space: nowrap; }
.pa-count-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pa-count-switch label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* The item's photos (docs/item-page-design.md 4.4). Narrower than 1100 px: one row of thumbnails that scrolls sideways
   (64 px on a phone, 104 px from 640 px) with Photo tools at its end; a tap opens the viewer. */
.ph-strip-row { display: flex; align-items: center; gap: 8px; }
.ph-strip { --th: 64px; display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.ph-strip::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .ph-strip { --th: 104px; } }
.ph-th { position: relative; flex: none; width: var(--th, 100%); aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: rgb(127 127 127 / .12); cursor: pointer; scroll-snap-align: start; }
.ph-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-th:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.ph-th.going img { opacity: .4; }
.ph-th.dragging { opacity: .5; }
.ph-going { position: absolute; inset: 0; display: grid; place-items: center; }
.ph-stock, .ph-stock-add { padding: 0; border: 0; font: inherit; }
.ph-stock:focus-visible, .ph-stock-add:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
/* Stock photos after the listing photos: the tag says they're the maker's, not the item's. */
.ph-stock-tag { position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px; background: rgb(0 0 0 / .62); color: #fff; font-size: 10px; line-height: 16px; }
.ph-stock-add { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px dashed var(--line); background: var(--raised);
  color: var(--muted); font-size: 11px; line-height: 1.2; text-align: center; }
.ph-stock-add .anticon { font-size: 18px; }
.ph-stock-add:hover { color: var(--ink); border-color: var(--muted); }
.ph-grid .ph-stock-add .anticon { font-size: 16px; }
.ph-grid .ph-stock-add span:not(.anticon) { font-size: 10px; }
.ph-tools-tile, .ph-count { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 52px; height: 64px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.ph-tools-tile .anticon { font-size: 18px; }
.ph-count { flex-direction: row; gap: 4px; border: 0; background: none; width: auto; height: auto; cursor: default; }
@media (min-width: 640px) { .ph-tools-tile { width: 64px; height: 104px; } }
.ph-tools-tile:hover { color: var(--ink); }
.ph-tools-tile:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.ph-tools-menu { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.ph-tools-menu .ant-upload-wrapper, .ph-tools-menu .ant-upload { display: block; width: 100%; }
.ph-tools-menu .ant-btn { width: 100%; justify-content: flex-start; }
.ph-cuts { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.ph-cuts img { border-radius: 6px; object-fit: cover; }
.ph-cuts .ant-btn { width: auto; }

/* From 1100 px: the photo pane. One big photo, the thumbnails under it, then the selected photo's tools, "1 of 7" and
   Photo tools. */
.ph-pane { display: flex; flex-direction: column; }
.ph-hero { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: rgb(127 127 127 / .12); cursor: zoom-in; }
.ph-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-hero:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.ph-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.ph-grid .ph-th { border-radius: 6px; }
.ph-grid .ph-th.on { outline: 2px solid var(--on); outline-offset: 1px; }
.ph-bar { display: flex; align-items: center; gap: 2px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.ph-bar .gap { flex: 1; }
.ph-bar .pb.ant-btn { width: 36px; height: 36px; color: var(--muted); }
.ph-bar .pb.ant-btn:not(:disabled):hover { color: var(--ink); }
.ph-bar .pb.on.ant-btn { color: var(--you); }
.ph-at { padding-inline: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The photo viewer (4.8, public/photo-viewer.js): full screen above the bar and the pending pill. Close, "2 of 7" and
   Edit at the top; this photo's actions and every photo under it. Black in both themes, like any photo viewer. */
/* Ant puts the class on both the picture's root and the controls' wrapper (each its own layer). */
.ant-image-preview-root.pv .ant-image-preview-mask, .ant-image-preview-root.pv .ant-image-preview-wrap { z-index: 1100; }
.ant-image-preview-root.pv .ant-image-preview-mask { background: #000; }
.ant-image-preview-operations-wrapper.pv { z-index: 1101; }
.pv .ant-image-preview-progress, .pv .ant-image-preview-close { display: none; }
.pv .ant-image-preview-footer { position: fixed; inset: 0 0 calc(0px - var(--screen-gap, 0px)); transform: none; width: auto; pointer-events: none; display: block; }
.pv .ant-image-preview-body .ant-image-preview-img-wrapper { top: 56px; bottom: 140px; }
.pv .ant-image-preview-img { max-height: 100%; }
.pv-pic { display: contents; }
.pv-chrome { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; color: rgb(255 255 255 / .88); pointer-events: none; }
.pv-chrome > * { pointer-events: auto; }
.pv-top { display: flex; align-items: center; gap: 8px; height: 56px; padding: env(safe-area-inset-top) 12px 0 4px; }
.pv-ib { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; font-size: 20px; cursor: pointer; }
.pv-ib:focus-visible, .pv-act:focus-visible, .pv-thumbs button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pv-count { font-size: 14px; color: rgb(255 255 255 / .65); font-variant-numeric: tabular-nums; }
.pv-gap { flex: 1; }
.pv-top .ant-btn { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.pv-bottom { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / .6) 24px); }
.pv-acts { display: flex; justify-content: space-around; max-width: 560px; width: 100%; margin: 0 auto; }
.pv-act { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; height: 52px; padding: 0 6px;
  border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.pv-act .anticon { font-size: 20px; }
.pv-act:not(:disabled):hover { background: rgb(255 255 255 / .1); }
.pv-act:disabled { opacity: .45; cursor: default; }
.pv-act.on { opacity: 1; color: #f0a35e; }
.pv-thumbs { display: flex; gap: 6px; padding: 6px 4px 0; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.pv-thumbs::-webkit-scrollbar { display: none; }
.pv-thumbs button { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: none; opacity: .6; cursor: pointer; }
.pv-thumbs button.on { opacity: 1; outline: 2px solid #fff; outline-offset: 1px; }
.pv-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639.98px) { .pv .ant-image-preview-switch-left, .pv .ant-image-preview-switch-right { display: none; } }

/* The Needs you card (4.5.1): what holds the item back first, a row each (a dot, a short name, what answers it); then
   Optional or To check. */
.need-card { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.need-card.open { border-color: var(--line); }
.need-title { display: flex; align-items: baseline; gap: 6px; margin: 0; min-height: 48px; padding: 14px 14px 6px; font-size: 14px; font-weight: 600; line-height: 20px; }
.need-n { font-weight: 400; color: var(--muted); margin-inline-start: 6px; }
.need-title .need-n { margin: 0; }
.nrow, .need-card .nrow-todo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 48px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); }
.ndot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--you); }
.ndot.bad { background: var(--bad); }
.nlabel { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.nlabel .help-icon { vertical-align: -1px; }
.nctl { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-inline-start: auto; }
.nctl .rq-cat { min-width: 220px; }
.need-price.ant-input-number { width: 104px; }
.need-price-row { display: inline-flex; align-items: center; gap: 2px; }
.need-price input::placeholder { color: var(--you); opacity: 1; }
.flaw-answers { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.seg-answer:focus { outline: none; }
.need-sub, .need-sub-inline { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.need-sub { min-height: 36px; padding: 10px 14px 2px; border-top: 1px solid var(--line); }
.need-sub .need-n, .need-sub-inline .need-n { margin: 0; }
.need-sub.miss { color: var(--bad); }
.need-sub + .nrow, .need-sub + .nrow-todo { border-top: 0; }
.need-check { align-items: center; }
.need-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 240px; min-width: 0; }
.need-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgb(127 127 127 / .12); color: var(--ink); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
span.need-pill { cursor: default; }
.need-pill:hover { background: rgb(127 127 127 / .2); }
.need-pill:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
/* A question or flaw as a row: the dot where the clock was, the control under its name. */
.need-card .nrow-todo { align-items: flex-start; }
.need-card .nrow-todo .mark { display: flex; align-items: center; justify-content: center; width: 8px; height: 20px; font-size: 14px; line-height: 20px; color: var(--done); }
.need-card .nrow-todo .todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.need-card .nrow-todo .todo-head { display: flex; align-items: center; gap: 4px; }
.need-card .nrow-todo .todo-label { margin: 0; font-weight: 400; }
.need-card .nrow-todo .todo-sub { margin-top: -6px; font-size: 12px; color: var(--muted); }
.need-card .nrow-todo.flaw { align-items: flex-start; }
.flaw-ph { flex: none; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.need-card .nrow-todo.done .todo-label { color: var(--muted); }
.need-card .newphotos { padding: 10px 14px; border-top: 1px solid var(--line); }
.need-card .newphotos:empty { display: none; }
.need-note { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.need-note-head { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; min-height: 24px; }
/* Now and Queue on the note's line and beside its chip, at the end: the line is there either way, so nothing moves
   when a redraft starts waiting. On a phone the first says "Now" alone, so the pair stays on that line. */
.need-note-head .redraft-offer, .need-chips .redraft-offer { margin: 0 0 0 auto; }
/* On a phone the item's bar, always in view, has the same two buttons: there's no room for them on the note's line. */
@media (max-width: 600px) { .need-note-head .redraft-offer, .need-chips .redraft-offer { display: none; } }
.need-warn { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--you); }
.need-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.need-chips .add-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.need-card .holding .nlabel { color: var(--ink); }
@media (pointer: coarse) { .nrow { min-height: 52px; } }

/* Upload (docs/item-page-design.md 4.4, 4.5): the grid three across on a phone, Add photos and Photo tools as tiles at its
   end; under it the notes, then Source and Paid as rows and add chips for Tag and Owner. */
@media (max-width: 639.98px) { .upload-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }
.upload-grid > .add-tile-upload, .upload-grid > .add-tile-upload .ant-upload { display: block; width: 100%; height: 100%; }
.add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; min-height: 96px; aspect-ratio: auto;
  border: 1px dashed var(--line); border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.add-tile .anticon { font-size: 18px; }
.grid > .add-tile, .grid .add-tile { cursor: pointer; }
.add-tile:hover { color: var(--ink); border-color: var(--muted); }
.add-tile:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.ph-tools-menu > .ant-btn-dangerous { margin-top: 4px; }
.item-records { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.rec-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px 8px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.item-records > :first-child { border-top: 0; }
.rec-row:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.rec-l { flex: none; min-width: 30%; color: var(--muted); }
.rec-v { flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.rec-v.blank { color: var(--muted); }
.rec-go { flex: none; font-size: 10px; color: var(--muted); }
.rec-tags { cursor: default; }
.rec-tags .rec-v { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; white-space: normal; }
.item-records { flex-flow: row wrap; }
.item-records > * { flex: 1 0 100%; }
.item-records > .add-chip { flex: none; order: 1; margin: 10px 0 10px 14px; }
.item-records > .add-chip + .add-chip { margin-left: 6px; }
.item-records .add-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }

/* Words that matter in a string (public/terms-ui.js): every word taps; the ones read as mattering are underlined,
   dotted for a rule's reading, solid for the seller's own mark. */
.term-words { line-height: 1.9; overflow-wrap: anywhere; }
.term-word { font: inherit; color: inherit; background: none; border: 0; padding: 0 1px; margin: 0; cursor: pointer; border-radius: 3px; }
.term-word.found { text-decoration: underline dotted var(--muted); text-underline-offset: 4px; }
.term-word.mine { text-decoration: underline solid var(--learn); text-underline-offset: 4px; }
.term-word.on, .term-word:focus-visible { background: var(--line); outline: none; }
.term-pick { padding-top: 6px; border-top: 1px solid var(--line); }
/* A card's title line, and a switch or setting row (docs/admin-design.md 5.4): the name in the text colour. */
.rec-card-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px 6px; }
.rec-card-title { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--ink); }
.rec-card-head + .arow, .rec-card-head + .rec-failed, .rec-card-head + .rec-filters { border-top: 1px solid var(--line); }
.rec-card-head + .rec-failed { border-bottom: 0; }
.rec-card-head + .rec-table, .rec-card-head + .rec-rows, .rec-card-head + .rec-empty { border-top: 1px solid var(--line); }
/* A warning at the end of a card's title line that opens where it's listed (the boxes near their limits). */
.rec-warn-link { flex: none; max-width: 50%; color: var(--you); font-size: var(--t-small-size); line-height: var(--t-small-line); text-align: right; }
.arow-set { align-items: center; }
.arow-set .arow-label { gap: 2px; }
.arow-name { color: var(--ink); overflow-wrap: anywhere; }
.arow-name .rec-open { display: inline; }
.arow-chev { margin-left: 4px; font-size: 10px; color: var(--muted); }
.arow-sub.bad { color: var(--bad); } .arow-sub.you { color: var(--you); } .arow-sub.done { color: var(--done); } .arow-sub.on { color: var(--on); }
.arow > .ant-switch, .arow > .ant-dropdown-trigger { flex: none; }
.rec-card > .rec-failed:last-child { border-bottom: 0; }
/* Fills: Switches (switches beside the sellers from 1100 px) and Forms and lists (two columns of cards from 640 px). */
.fills-split { display: grid; gap: 12px; align-items: start; }
.fills-split > * > .rec-card:last-child, .fills-split > .rec-card { margin-bottom: 0; }
@media (min-width: 1100px) { .fills-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; } }
.fills-cards { display: grid; gap: 12px; align-items: start; }
.fills-cards > .rec-card, .fills-cards > * > .rec-card:last-child { margin: 0; }
@media (min-width: 640px) { .fills-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.detail .rec-card { border-width: 0 0 1px; border-radius: 0; margin: 0; }
.detail .rec-empty, .detail .rec-line, .detail .rec-loading { padding-inline: 16px; }
.detail-part > .rec-empty { padding-block: 4px 10px; }
/* Money > Subscriptions (6.6): the segments, a segment's dot when it needs the admin, two cards across from 1100 px. */
.money-seg { margin-bottom: 12px; max-width: 100%; overflow-x: auto; }
.seg-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--you); vertical-align: middle; }
.money-split { display: grid; gap: 12px; align-items: start; }
.money-split > .rec-card { margin: 0; }
@media (min-width: 1100px) { .money-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.detail-part .arow-value .ant-input-number, .detail-part .arow-value .ant-picker, .detail-part .arow-value .ant-checkbox-group { text-align: left; }
.detail-part .arow-value .ant-form-item-explain { text-align: left; }
.money-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow: visible; }
.rec-end .figure .rec-meta { font-weight: 400; }
.money-filters-end { margin-left: auto; }
.chart-card-gap { margin-bottom: 12px; }
/* A chart card straight on the page (not in a split) is spaced like a records card. */
.console-main > .chart-card { margin-bottom: 12px; }
/* Settings for everyone, Shared facts, Features (6.7 to 6.9): two cards side by side from 640 px; the grid (5.4), a
   small fixed table that fits 360 px: the first column takes the room left and wraps, numbers keep their width. */
.two-cards { display: grid; gap: 12px; align-items: start; margin-bottom: 12px; }
.two-cards > .rec-card { margin: 0; }
@media (min-width: 640px) { .two-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agrid-wrap { border-top: 1px solid var(--line); }
.agrid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.agrid th, .agrid td { padding: 6px 12px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); font-weight: 400; line-height: 20px; }
.agrid thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.agrid tbody th { width: 100%; color: var(--ink); overflow-wrap: anywhere; }
.agrid td { white-space: nowrap; }
.agrid .num { text-align: right; }
.agrid th + th, .agrid th + td, .agrid td + td { padding-left: 4px; }
.agrid-input { width: 72px; }
.agrid-changed, .agrid-changed:hover { border-color: var(--ant-color-primary); box-shadow: 0 0 0 1px var(--ant-color-primary); }
.rec-fold-body > .arow + .rec-card { border-top: 1px solid var(--line); }
.detail-form { padding: 0 16px 12px; min-width: 0; }
.detail-part .arow-value .ant-input-textarea, .detail-part .arow-value textarea { text-align: left; }
.feat-core { margin: 0; padding: 0 12px 12px 32px; line-height: 22px; }
.rec-fold-body > .arow { border-top: 1px solid var(--line); }
.facts-field { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.facts-decide { flex: none; }
.col-help { white-space: nowrap; }
.detail-part > .arow-set .arow-label { flex: 1 1 auto; }
.detail-part > .arow-set .arow-label > span:first-child { white-space: normal; }
.kind-changed > div + div { margin-top: 2px; } .kind-changed { text-align: left; }

/* Answer across items (pages/review-across.tsx, docs/review-across-design.md): a row a field, each opening to its
   values; a value opens its items in a sheet (phone) or a drawer. */
.ra-help p { margin: 0 0 8px; }
.ra-help-lines { color: var(--muted); }
.ra-help-lines b { font-weight: 500; color: var(--ink); margin-right: 4px; }
.ra-tabs { position: sticky; top: var(--bar-h, 53px); z-index: 3; display: flex; margin: 0 -16px 12px; background: var(--bar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ra-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 4px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.ra-tab.sel { color: var(--on); border-bottom-color: var(--on); font-weight: 500; }
@media (min-width: 640px) { .ra-tabs { margin-inline: 0; } .ra-tab { flex: none; padding: 0 12px; } }
.ra-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--you); color: var(--raised); font-size: 11px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ra-card { margin-bottom: 12px; }
.ra-frow, .ra-vrow, .ra-fact { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.ra-card > :first-child { border-top: 0; }
.ra-frow { min-height: 56px; padding: 6px 2px 6px 14px; }
.ra-t { flex: 1; min-width: 0; }
.ra-frow .ra-t b { display: block; font-weight: 500; line-height: 22px; }
.ra-frow .ra-t small { display: block; font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-frow.open .ra-t b { font-weight: 600; }
.ra-frow.open .ra-t small { display: none; }
.ra-n { flex: none; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-of { color: var(--muted); }
.ra-ok { color: var(--done); font-size: 18px; }
.ra-chev { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; color: var(--muted); flex: none; font-size: 12px; }
.ra-vrow { min-height: 48px; padding: 2px 2px 2px 28px; }
.ra-vrow .ra-t { overflow-wrap: anywhere; }
.ra-vrow.top, .ra-card > .ra-vrow { padding-left: 14px; }
.ra-vrow.ones .ra-t, .ra-vrow.more .ra-t { color: var(--muted); }
.ra-empty { padding: 14px; color: var(--muted); }
a.ra-fact { min-height: 48px; padding: 4px 2px 4px 14px; border: 1px solid var(--line); color: var(--ink); }
a.ra-fact .ra-t { color: var(--muted); }
.ra-title { font-size: 17px; line-height: 24px; }
.ra-fld { font-weight: 400; color: var(--muted); }
.ra-under { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 16px; font-size: 13px; line-height: 20px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ra-gap { flex: 1; min-width: 0; }
.ra-link { background: none; border: 0; padding: 0; min-height: 36px; color: var(--on); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ra-link:disabled { opacity: .5; cursor: default; }
small .ra-link { min-height: 0; font-size: 12px; }
.ra-seg { padding: 10px 14px 10px 16px; }
.ra-fields { border-bottom: 1px solid var(--line); }
.ra-f { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 16px; border-top: 1px solid var(--line); }
.ra-fl { flex: none; width: 30%; font-size: 13px; line-height: 18px; color: var(--muted); }
.ra-fv { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.ra-fv .ant-select { width: 100%; }
.ra-num { width: 92px; }
.ra-irow { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 8px 2px 8px 14px; border-top: 1px solid var(--line); cursor: pointer; content-visibility: auto; contain-intrinsic-size: auto 75px; }
.ra-rows > .ra-irow:first-child { border-top: 0; }
.ra-irow.on { background: color-mix(in srgb, var(--on) 10%, transparent); }
.ra-irow.done, .ra-irow.off { cursor: default; }
.ra-irow .ant-checkbox-wrapper { flex: none; }
.ra-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; }
.ra-irow .ra-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; line-height: 20px; overflow-wrap: anywhere; }
.ra-irow .ra-t b.ra-val { display: block; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ra-ttl { display: block; font-size: 13px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 20px; }
.ra-irow .ra-t small { display: block; margin-top: 1px; font-size: 12px; line-height: 18px; color: var(--muted); }
/* The whole ask behind a ? beside its few words, outside their two-line clamp (pages/review-across.tsx Ask). */
.ra-ask { display: flex; align-items: flex-start; }
.ra-ask > b { min-width: 0; }
.ra-ask-help { flex: none; display: inline-flex; height: 20px; align-items: center; }
.ra-ask-help .help-icon { margin-left: 2px; padding: 0 4px; font-size: 14px; color: var(--muted); position: relative; }
.ra-ask-help .help-icon::after { content: ""; position: absolute; inset: -12px -8px; }
.ra-you { color: var(--you); }
.ra-done { color: var(--done); }
.ra-sku { display: inline-block; margin-right: 6px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; font: 400 11px/15px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); vertical-align: 1px; }
.ra-ed { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); }
.ra-end { flex: none; min-width: 64px; padding-right: 12px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-end b { display: block; font-weight: 500; line-height: 20px; }
.ra-end small { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.ra-bar { display: flex; align-items: center; gap: 8px; }
.ra-bar > .ant-btn { flex: none; }
@media (max-width: 639.98px) { .ra-bar > .ant-btn { height: 44px; } }
.detail .ra-under + .ra-rows, .detail .ra-rows { border-top: 0; }
.ra-f.stack { flex-wrap: wrap; padding-block: 8px; }
.ra-f.stack .ra-fl { width: 100%; }
.ra-f.stack .ra-fv { justify-content: flex-start; flex-wrap: nowrap; }
.ra-f.stack .ra-num { flex: 1; min-width: 0; width: auto; }
.ra-frow.sel, .ra-vrow.sel { background: color-mix(in srgb, var(--on) 14%, transparent); }
.ra-vrow.sel .ra-t { color: var(--on); font-weight: 500; }
/* Draft Review: Missing (required info left blank) first in a tab's list, then To check. */
.ra-sec { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--muted); }
.ra-sec.miss { color: var(--bad); font-weight: 600; }
.ra-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.ra-secn { font-weight: 400; font-variant-numeric: tabular-nums; }
.ra-sec .ra-secn { margin-left: 2px; }
/* Four tabs at 360 px: a tab not picked shows a dot for what it has (docs/review-across-design.md 0). */
.ra-pip { width: 7px; height: 7px; border-radius: 50%; background: var(--you); flex: none; }
.ra-pip.miss { background: var(--bad); }
/* The camera where other rows have the pencil (Photos). */
.ra-cam { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.ra-cam .ant-btn { width: 44px; height: 44px; color: var(--muted); }
a.ra-irow { color: var(--ink); }
.ra-f.ra-guide { justify-content: flex-end; min-height: 36px; }
.ra-f.ra-guide:not(:has(a)) { display: none; }
/* Redraft, while something waits for it: a bar at the foot of the screen under 1100 px (from 1100 px it's the identity row's primary). */
.ra-redraft { position: sticky; bottom: calc(12px - var(--screen-gap, 0px)); z-index: 5; display: flex; justify-content: flex-end; margin-top: 12px; padding: 10px 12px;
  background: var(--bar); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift); }
.ra-redraft .now-queue { display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; }
.ra-redraft .now-queue > .ant-btn { flex: 2 1 0; min-width: 0; }
.ra-redraft .now-queue > .ant-btn-primary { flex-grow: 3; }
.ra-redraft .now-queue .ant-btn { width: 100%; padding-inline: 10px; }
.keyboard-open .ra-redraft { display: none; }
@media (min-width: 640px) { .ra-redraft .now-queue { width: auto; } .ra-redraft .now-queue > .ant-btn { flex: none; } }
/* 1100 px and up: the list at the left, the open list beside it, in view. */
@media (min-width: 1100px) {
  .ra-two { display: flex; align-items: flex-start; gap: 16px; }
  .ra-side { flex: none; width: 400px; }
  .ra-frow { min-height: 52px; padding-block: 4px; }
  .ra-vrow { min-height: 40px; }
  .ra-chev { height: 36px; }
  .ra-pane { position: sticky; top: calc(var(--bar-h, 53px) + 56px); flex: 1; min-width: 0; display: flex; flex-direction: column;
    max-height: calc(100vh - var(--bar-h, 53px) - 160px); border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
  .ra-pane-head { margin: 0; padding: 12px 16px 4px; font-weight: 600; }
  /* max-content rows: auto ones shrink to a row's min-height once the list outgrows the pane, and its lines ran into the next row. */
  .ra-pane .ra-rows { flex: 1; min-height: 0; overflow: hidden auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; }
  .ra-pane .ra-irow:nth-child(-n+2) { border-top: 0; }
  .ra-pane .ra-irow:nth-child(odd) { border-right: 1px solid var(--line); }
  .ra-pane-bar { padding: 10px 12px; border-top: 1px solid var(--line); }
}
/* Public site (6.10): the editor, and from 1100 px the preview beside it, sticky; a card a section; the page bar (5.10)
   at the foot of the page column only, so it doesn't reach over the menu. */
.site-split { display: grid; gap: 12px; align-items: start; }
@media (min-width: 1100px) { .site-split { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 16px; } }
.site-edit { min-width: 0; padding-bottom: 12px; }
.site-preview { position: sticky; top: calc(var(--bar-h, 53px) + 56px); }
.site-preview > .rec-card { margin-bottom: 8px; }
.site-sec-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.site-sec-tools { display: inline-flex; flex: none; }
.site-sec-body { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; min-width: 0; }
.site-sec-body .EasyMDEContainer { min-width: 0; }
.console-main > .item-bar { box-shadow: none; clip-path: none; border-image: none; margin-inline: -12px; padding-inline: 12px; background: var(--bar); backdrop-filter: blur(8px); }
@media (min-width: 640px) { .console-main > .item-bar { margin-inline: -16px; padding-inline: 16px; } }
.site-edit .arow-label { flex: 0 0 auto; } .site-edit .arow-label > span:first-child { white-space: nowrap; } .site-edit .arow-value { flex: 1 1 auto; text-align: left; }
/* Feedback (6.4): a note's first two lines in a row; in full when opened. */
.fb-two { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fb-body { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Surveys (6.5): the rules over the campaigns, their rows two across from 900 px. */
.srv-stack > .rec-card { margin-bottom: 12px; }
@media (min-width: 900px) {
  .srv-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv-rules > .rec-card-head { grid-column: 1 / -1; }
  .srv-rules > .arow:nth-child(even) { border-right: 1px solid var(--line); }
}
.srv-act { display: inline-flex; align-items: center; gap: 4px; }
.srv-ans { display: flex; flex-direction: column; min-width: 0; font-weight: 400; }
.srv-ans .rec-meta { font-size: 12px; }
.srv-pay { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 12px 12px; }
.srv-audit { margin: 0; padding: 0 12px 12px 28px; font-size: 13px; line-height: 20px; }
.srv-audit code { font-size: 11px; overflow-wrap: anywhere; }
.pending-link.still { cursor: default; }

/* Jobs (6.16): eBay's lookups as a meter row: the figure, the meter, when they start again. */
.jobs-ebay { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.jobs-ebay-figure { font-size: var(--t-number-size); line-height: var(--t-number-line); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Database (6.19): a JSON column's parts sit in under it. */
.db-key { padding-left: 16px; }
.nums-under .ant-progress { display: block; margin: 4px 0 0; }
/* Model tests (6.17): a form's last row (what it means, then its main button), a way's three controls, a run's tables. */
.mt-go { flex-wrap: wrap; row-gap: 8px; }
.mt-go > .arow-label { flex: 1 1 240px; }
.mt-go > .ant-btn { flex: none; margin-left: auto; }
.arow-input-box > .ant-select, .arow-input-box > .ant-input-number-group-wrapper { flex: 1 1 140px; min-width: 0; }
.mt-way .arow-input-box { flex-wrap: wrap; }
.mt-table { overflow-x: auto; }
.mt-finds { display: flex; flex-direction: column; gap: 12px; }
.mt-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-width: 0; }
.mt-item-found { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mt-way-found { display: inline-flex; align-items: center; gap: 2px; }
.mt-way-n { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- The seller frame's parts (public/seller-parts.js, docs/seller-design.md 4.2, 4.4, 5) ---- */
/* The identity row: the name at --t-head, two lines at most, a muted count beside it, one --t-tiny line of state
   under it; at the right the tools, the one primary and the ?. 48 px tall on a phone, 56 from 640 px. When the
   right end has no room beside the name, it takes the next line, at the right. */
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 48px; padding: 2px 0; margin-bottom: 8px; }
@media (min-width: 640px) { .phead { min-height: 56px; padding: 4px 0; margin-bottom: 12px; } }
.phead-text { flex: 1 1 0%; min-width: min(88px, 100%); }
.phead-title { margin: 0; font-size: var(--t-head-size); line-height: var(--t-head-line); font-weight: 600; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phead.alone .phead-title { font-size: var(--t-title-size); line-height: var(--t-title-line); font-weight: 700; }
.phead-count { margin-left: 6px; font-size: 16px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.phead-under { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.phead-under .ant-tag { margin: 0; }
.phead-end { display: flex; align-items: center; gap: 6px; flex: none; max-width: 100%; margin-left: auto; }
.phead-end > .ant-btn { flex: none; }
.phead-why, .tline-why { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); min-width: 0; }
.phead-why { white-space: nowrap; }
.phead-help .help-icon { padding: 6px; font-size: 16px; }
/* Touch: every tool, the primary, More and the ? a 44 px target, drawn at the row's size. */
.sp-tool-icon.ant-btn { width: 44px; height: 44px; padding: 0; color: var(--muted); font-size: 18px; }
@media (max-width: 639.98px) {
  .phead { gap: 4px; }
  .phead-end { gap: 2px; }
  .phead-end > .sp-primary { margin-left: 2px; }
  .phead-help { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; margin-right: -6px; }
}
/* More (⋯): a 44 px square on a phone, a 32 px one from 640 px. */
.sp-more.ant-btn { width: 44px; height: 44px; padding: 0; color: var(--muted); font-size: 18px; }
@media (min-width: 640px) { .sp-more.ant-btn { width: 32px; height: 32px; font-size: 16px; } }
.sp-sheet-list { display: flex; flex-direction: column; padding: 0 8px; }
.sp-sheet-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink);
  font: inherit; font-size: var(--t-body-size); text-align: left; cursor: pointer; }
.sp-sheet-row:hover, .sp-sheet-row:active { background: var(--fill); }
.sp-sheet-row:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.sp-sheet-row:disabled { color: var(--muted); cursor: not-allowed; }
.sp-sheet-row.danger { color: var(--bad); }
.sp-sheet-ico { color: var(--muted); font-size: 16px; }
/* The tool line: the one thing done to the list (and a second way, and More) on the left; filters and sort as chips
   on the right. On a phone the chips take the next line when they don't fit beside the buttons. */
.tline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 8px; }
.tline-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tline-why a { white-space: nowrap; }
.tline-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: none;
  color: var(--ink); font: inherit; font-size: var(--t-small-size); white-space: nowrap; cursor: pointer; }
.fchip:hover { border-color: var(--on); }
.fchip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.fchip.on { border-color: var(--on); color: var(--on); background: color-mix(in srgb, var(--on) 10%, transparent); }
.fchip.bare { justify-content: center; width: 44px; height: 44px; padding: 0; border-color: transparent; font-size: 18px; }
.fchip-caret { font-size: 10px; color: var(--muted); }
@media (max-width: 639.98px) { .fchip:not(.bare) { height: 36px; } .tline-main > .ant-btn { min-height: 36px; } }
/* A row's choice of three or four: segments from 640 px, a select on a phone. */
.choice-select { min-width: 112px; max-width: 100%; }
.choice-seg { max-width: 100%; }
/* On a phone a button drawn shorter than 44 px still takes a 44 px tap: its hit area reaches above and below it. */
@media (max-width: 639.98px) {
  .phead-end > .ant-btn:not(.sp-tool-icon):not(.sp-more), .tline-main > .ant-btn, .tline-main .now-queue > .ant-btn, .fchip:not(.bare) { position: relative; }
  .phead-end > .ant-btn:not(.sp-tool-icon):not(.sp-more)::after, .tline-main > .ant-btn::after, .tline-main .now-queue > .ant-btn::after, .fchip:not(.bare)::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}
.set-tag { position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--fill); color: var(--ink);
  font: inherit; font-size: var(--t-small-size); cursor: pointer; }
.set-tag:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.set-tag:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
@media (max-width: 639.98px) { .set-tag::after { content: ""; position: absolute; inset: -8px -3px; } }
/* Your sales (pages/sales.tsx, docs/seller-design.md 6.4): the identity row, the issues, the filter line, Numbers,
   Insights and By (side by side from 1100 px), then the sales as records with Returns folded at their foot. */
.sales-stack { display: flex; flex-direction: column; gap: 12px; }
.sales-stack > .phead, .sales-stack > .rec-card, .sales-stack > .nums, .sales-stack > .sales-list > .rec-card { margin-bottom: 0; }
.sales-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sales-filters .ant-segmented { max-width: 100%; }
.sales-pair { display: grid; gap: 12px; align-items: start; }
.sales-pair > .rec-card { margin: 0; min-width: 0; }
@media (min-width: 1100px) { .sales-pair { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.sales-muted { color: var(--muted); }
.sales-neg, .sales-bad { color: var(--bad); }
.sales-ship { color: var(--you); }
/* Print label on a sale (public/sale-label.js): an icon in the desk table, icon and words in the opened sale. */
.sales-label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.sales-nowrap { white-space: nowrap; }
.sales-under { display: block; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.sales-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sales-said { margin: 0 16px 8px; overflow-wrap: anywhere; }
.sales-sku { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: var(--t-small-size); line-height: 20px; }
.detail-tags .sales-muted { align-self: center; font-size: var(--t-small-size); }
.rec-end .figure small { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); font-weight: 400; color: var(--muted); }
/* A group's share of what sold: a thin bar under its words, or under its figure in the table. */
.sales-share { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sales-share > i { display: block; height: 100%; border-radius: 2px; background: var(--on); }
.sales-sold { display: inline-flex; flex-direction: column; align-items: stretch; min-width: 112px; }
.sales-sold .sales-share { margin-top: 4px; }
.sales-by { list-style: none; margin: 0; padding: 0; }
.sales-by-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px 12px 14px; border-top: 1px solid var(--line); }
.sales-by-words { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sales-by-name { font-weight: 500; overflow-wrap: anywhere; }
/* The page's ?: what the page is, then what each number means. */
.sales-help p { margin: 0 0 8px; }
.sales-help dl { margin: 0; }
.sales-help dt { font-weight: 600; }
.sales-help dd { margin: 0 0 6px; color: var(--muted); }
/* A sale's row opens the sale from anywhere on it: its title's button reaches over the whole row (44 px and more). */
/* The item page's .rec-row (a flex line of facts) comes later in this file; a sale's row keeps Records' three columns. */
.sales-list .rec-row { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; min-height: 56px; padding: 12px; font-size: inherit; cursor: default; }
.sales-list .rec-row .rec-open::after { content: ""; position: absolute; inset: 0; }
.sales-list .rec-row .rec-title a { position: relative; z-index: 1; }
.sales-list .rec-table .ant-table-cell-ellipsis a { display: block; overflow: hidden; text-overflow: ellipsis; }
/* Activity (pages/activity.tsx, docs/seller-design.md 6.3): the identity row, the issues, one card of records (rows
   under 1100 px, a table from there) with Load older at its foot, and a record opened in a 480 px drawer or a sheet. */
.act-stack { display: flex; flex-direction: column; gap: 12px; }
.act-stack > .phead, .act-list > .rec-card { margin-bottom: 0; }
.act-muted { color: var(--muted); }
.act-nowrap { white-space: nowrap; }
/* The filter line: from 1100 px the state's segments come first, as the table's own filters follow the search. */
.act-list .rec-search { flex-basis: 120px; }
.act-list .act-states { order: -1; max-width: 100%; }
.act-list .act-states .rec-n { margin-left: 6px; }
.act-filter.fchip.bare { color: var(--muted); }
.act-filter.fchip.bare.on { color: var(--on); border-color: var(--on); }
@media (min-width: 640px) { .act-filter.fchip.bare { width: 36px; height: 36px; font-size: 16px; } }
@media (min-width: 640px) { .act-list .rec-search { max-width: none; } }
@media (min-width: 1100px) { .act-list .rec-search { flex: 0 1 280px; } }
/* A row (under 1100 px) opens the record from anywhere on it; Done at its end stays its own 44 px button. The item
   page's .rec-row (a flex line of facts) comes earlier in this file, so a row here keeps Records' three columns. */
.act-list .rec-row { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; min-height: 56px; padding: 10px 4px 10px 14px; font-size: inherit; cursor: default; }
.act-list .rec-row .rec-open::after { content: ""; position: absolute; inset: 0; }
.act-list .rec-row .rec-end { position: relative; z-index: 1; align-self: center; }
.act-list .rec-row .rec-meta { display: flex; flex-direction: column; }
.act-it { color: var(--ink); font-size: var(--t-small-size); line-height: var(--t-small-line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.act-mark.ant-btn { color: var(--muted); }
.act-mark.ant-btn:hover { color: var(--ink); }
.act-list .rec-row .act-mark.ant-btn { width: 44px; height: 44px; }
/* The table: what happened, with how long an offer stays open under it; Open on the site and Done at the end. */
.act-what { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.act-what .ant-tag { margin-inline-end: 6px; }
.act-under { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.act-do { display: inline-flex; gap: 2px; }
.act-list .rec-table a.act-item { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.act-list .rec-table a.act-item:hover { color: var(--on); }
.act-older { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-top: 1px solid var(--line); background: none;
  color: var(--on); font: inherit; text-align: left; cursor: pointer; }
.act-older:hover { background: var(--fill); }
.act-older:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.act-older:disabled { cursor: default; }
/* The opened record: the item as a row, its facts, what they wrote as a bubble, and notes. */
.act-item-line { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
a.act-item-line:hover { background: var(--fill); color: var(--ink); }
.act-thumb { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--fill); color: var(--muted); object-fit: cover; }
.act-item-name { flex: 1; min-width: 0; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.act-item-go { flex: none; color: var(--muted); font-size: 12px; }
.act-bubble { margin: 0 16px 10px; max-width: 85%; padding: 8px 12px; border-radius: 12px; background: var(--fill); white-space: pre-wrap; overflow-wrap: anywhere; }
.act-bubble small { display: block; margin-top: 2px; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); white-space: normal; }
.act-thread { padding: 0 16px 8px; }
.act-said { padding: 0 16px 10px; overflow-wrap: anywhere; }
.act-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 0 16px 10px; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); overflow-wrap: anywhere; }
.act-note:first-child { padding-top: 10px; }
.act-note.you { color: var(--you); }
.act-note-do { display: inline-flex; gap: 6px; }
.act-counter { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.act-bar .act-box { flex: 1 1 auto; min-width: 0; }
.act-bar .act-left { flex: none; align-self: center; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); font-variant-numeric: tabular-nums; }
.act-bar .act-left.full { color: var(--bad); }
.detail .detail-tags .act-muted { align-self: center; font-size: var(--t-small-size); }
@media (max-width: 639.98px) { .act-bar > .ant-btn { min-height: 44px; } }
.act-links { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 8px 0; }
@media (max-width: 639.98px) { .act-links > .ant-btn { min-height: 44px; } }
/* Your stores (pages/store.tsx, docs/seller-design.md 6.7): the identity row, the issues, then the cards: Store,
   Vacation (while its switch is on), In stock now, Logo, banner and color, Each site. One column on a phone; from 640 px the look sits at the right of
   the rest, and from 1100 px the store and its look at the left (5 of 12), Each site at the right. The DOM order
   stays the phone's; a last 1fr row takes the spanning card's height, so the short column keeps no gaps. */
.st-page { display: flex; flex-direction: column; gap: 12px; }
.st-page > .phead, .st-page > .issues { margin-bottom: 0; }
.st-grid { display: flex; flex-direction: column; gap: 12px; }
.st-area { min-width: 0; }
.st-area > .rec-card { margin: 0; }
@media (min-width: 640px) {
  .st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; gap: 16px; align-items: start; }
  .st-store { grid-column: 1; grid-row: 1; } .st-stock { grid-column: 1; grid-row: 2; } .st-sites { grid-column: 1; grid-row: 3; }
  .st-art { grid-column: 2; grid-row: 1 / span 4; }
  /* With Vacation (only then, so no empty row adds a gap): it sits under Store and the rest move down a row. */
  .st-grid.has-away { grid-template-rows: auto auto auto auto 1fr; }
  .has-away .st-away { grid-column: 1; grid-row: 2; } .has-away .st-stock { grid-row: 3; } .has-away .st-sites { grid-row: 4; }
  .has-away .st-art { grid-row: 1 / span 5; }
}
@media (min-width: 1100px) {
  .st-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .st-art { grid-column: 1; grid-row: 3; } .st-sites { grid-column: 2; grid-row: 1 / span 4; }
  .has-away .st-art { grid-row: 4; } .has-away .st-sites { grid-row: 1 / span 5; }
}
/* Vacation (pages/parts/vacation-card.tsx): the two days side by side (stacked under 360 px), eBay's way, then each site
   with what buyers see, its limit, the days it's set, and its own page. */
.vac-days { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.vac-day-box { flex: 1 1 140px; min-width: 0; }
.vac-day-box .ant-input { min-height: 40px; }
.vac-ebay { margin-top: 10px; }
.vac-ebay .ant-radio-group { display: flex; flex-direction: column; gap: 6px; }
.vac-ebay .ant-radio-wrapper { align-items: baseline; min-height: 32px; }
.vac-muted { color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.vac-sites { border-top: 1px solid var(--line); }
.vac-site { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.vac-site:first-child { border-top: 0; }
.vac-site-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.vac-steps { margin: 4px 0 0; padding-left: 18px; font-size: var(--t-small-size); line-height: var(--t-small-line); }
.vac-day { font-weight: 500; font-variant-numeric: tabular-nums; }
.vac-link.ant-btn { align-self: flex-start; height: auto; min-height: 32px; padding: 0; white-space: normal; text-align: left; }
@media (max-width: 639.98px) { .vac-link.ant-btn { min-height: 44px; } }
.st-n { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-muted { color: var(--muted); }
.st-none { margin: 0; padding: 2px 14px 12px; color: var(--muted); }
/* A box with its label over it, and the line under it. */
.st-field { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.rec-card-head + .st-field, .st-field.first { border-top: 0; }
.st-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); }
.st-label > label { flex: 1; min-width: 0; }
.st-label .help-icon { padding: 0 4px; }
.st-by { flex: none; padding: 0 6px; border-radius: 4px; background: var(--fill); font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.st-link.ant-btn { height: auto; min-height: 32px; margin-top: 4px; padding: 0; }
.st-why { font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); }
.st-why.warn { margin-top: 4px; color: var(--you); }
.st-why-end { margin-top: 4px; text-align: right; }
.st-under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.st-count { flex: 1 1 auto; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-count.bad { color: var(--bad); }
.st-acts-end { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.st-chips .add-chip { color: var(--on); }
.st-chips .add-chip > .anticon { color: var(--on); }
/* A small muted heading in a card, with what it is at its end (the Logo's size). */
.st-sub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-height: 40px; padding: 10px 14px 4px; border-top: 1px solid var(--line); }
.st-sub.first { border-top: 0; padding-top: 0; min-height: 28px; }
.st-sub h3 { flex: 1; margin: 0; font-size: var(--t-small-size); line-height: var(--t-small-line); font-weight: 600; color: var(--muted); }
.st-sub > span { font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 12px; }
.st-tag { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; min-height: 24px; padding: 2px 8px; border: 0; border-radius: 4px; background: var(--fill);
  font: inherit; font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); overflow-wrap: anywhere; white-space: normal; }
.st-tag b { flex: none; font-weight: 500; }
button.st-tag { cursor: pointer; color: var(--on); }
button.st-tag:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
@media (max-width: 639.98px) { button.st-tag { position: relative; } button.st-tag::after { content: ""; position: absolute; inset: -10px -2px; } }
/* Color: swatches in a row (44 px targets on a phone), and any other colour. */
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px; padding: 4px 14px; }
.rec-card-head + .st-row { border-top: 0; }
.st-row-label { flex: 1 0 auto; font-size: var(--t-small-size); color: var(--muted); }
.st-swatches { display: flex; flex-wrap: wrap; align-items: center; }
.st-swatch, .st-color { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.st-swatch::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 40%, transparent); }
.st-swatch.on::before { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--on); }
.st-swatch:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; border-radius: 8px; }
.st-color { position: relative; color: var(--muted); font-size: 16px; cursor: pointer; }
.st-color:hover { color: var(--ink); }
.st-color > input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.st-color:focus-within { outline: 2px solid var(--on); outline-offset: -2px; border-radius: 8px; }
@media (max-width: 639.98px) { .st-row { padding-inline: 8px; } .st-row-label { padding-left: 6px; } }
@media (min-width: 640px) { .st-swatch, .st-color { width: 36px; height: 36px; } }
/* Tiles: the logos three across, the billboards one a line. */
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 14px 12px; }
.st-tiles.one { grid-template-columns: minmax(0, 1fr); }
.st-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; background: none;
  font: inherit; font-size: var(--t-tiny-size); line-height: 16px; color: var(--muted); text-align: center; cursor: pointer; }
.st-tile.wide { align-items: stretch; padding: 6px; }
.st-tile.on { border-color: var(--on); color: var(--on); background: color-mix(in srgb, var(--on) 8%, transparent); }
.st-tile:hover { border-color: var(--on); }
.st-tile:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.st-tile img, .st-tile-wait { display: block; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--fill); }
.st-tile img.round, .st-tile:not(.wide) .st-tile-wait { border-radius: 50%; }
.st-tile.wide img, .st-tile.wide .st-tile-wait { width: 100%; height: auto; border-radius: 6px; }
.st-tile-name { overflow-wrap: anywhere; }
.st-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.st-acts .lockwrap { display: inline-flex; }
@media (max-width: 639.98px) {
  .st-acts .ant-btn, .st-under .ant-btn, .st-site .arow .ant-btn { min-height: 44px; }
  .st-icon.ant-btn { width: 44px; }
}
/* Each site: the tabs inside the card, the text, then rows. */
.st-tabs > .ant-tabs-nav { margin: 0; padding: 0 14px; }
.st-tabs > .ant-tabs-nav .ant-tabs-tab { min-height: 44px; }
.st-site .arow { padding-left: 14px; padding-right: 8px; }
.st-site .arow-label { flex: 1 1 auto; }
.st-site .arow-value { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.st-site .arow-label .help-icon { padding: 0 4px; }
.st-thumb { display: block; width: 32px; height: 32px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.st-thumb.round { border-radius: 50%; }
.st-thumb.wide { width: 72px; height: auto; border-radius: 4px; }
.st-thumb-wait { background: var(--fill); }
.st-steps { margin: 0; padding: 12px 16px 4px 36px; }
.st-steps li + li { margin-top: 6px; }
.st-note { margin: 0; padding: 8px 16px 12px; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); }

/* ---- Settings: the Connections and Your account groups (docs/seller-design.md 6.6, seller restyle part 2c) ---- */
/* Steps to follow and confirms (seller-parts.js Sheet, SheetConfirm): a sheet as tall as what it holds on a phone, a
   drawer from 640 px; the text read at the moment it's needed, the button in the bar with why beside it. */
.set-sheet .ant-drawer-body { padding: 0; }
.set-sheet-body { padding: 12px 16px 16px; font-size: var(--t-body-size); line-height: var(--t-body-line); color: var(--ink); }
.set-sheet-body > p { margin: 0 0 10px; }
.set-sheet-body > p:last-child { margin-bottom: 0; }
.set-sheet-muted, .set-sheet-body > .set-sheet-muted { color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.set-sheet-list, .set-help-list { margin: 0 0 10px; padding-left: 20px; }
.set-sheet-list li + li, .set-help-list li + li { margin-top: 6px; }
.set-steps-list { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.set-steps-list li { padding-left: 2px; overflow-wrap: anywhere; }
.set-sheet-why { align-self: center; max-width: 50%; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); }
.set-sheet .detail-bar { align-items: center; gap: 8px; }
.set-sheet .detail-bar .ant-btn { min-height: 40px; }
.set-tick { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.set-tick.on { border-color: var(--on); }
.set-tick .ant-checkbox-wrapper, .set-tick .ant-checkbox { margin-top: 2px; }
.set-sheet-label { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; color: var(--muted); font-size: var(--t-small-size); }
.set-code { margin-top: 6px; overflow-wrap: anywhere; }
.set-address-line { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--fill); overflow-wrap: anywhere; }
@media (max-width: 639.98px) {
  .set-sheet .detail-bar .ant-btn { min-height: 44px; }
  .set-tick { min-height: 44px; }
}

/* A card's rows: a muted line in a Detail, its buttons, the button at a row's end, a box in a row. */
.detail-line { margin: 0; padding: 10px 16px; font-size: var(--t-body-size); line-height: var(--t-body-line); color: var(--ink); }
.detail-line.you { color: var(--you); } .detail-line.bad { color: var(--bad); }
/* Which item sold, in a sale email's detail: each title whole, a line each. */
.sale-pick { display: flex; flex-direction: column; padding: 0 16px 6px; }
.sale-pick .ant-radio-wrapper { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; font-size: var(--t-body-size); line-height: var(--t-body-line); }
.sale-pick .ant-radio-wrapper:first-child { border-top: 0; }
.sale-pick .ant-radio { align-self: flex-start; margin-top: 3px; }
.detail-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; }
.arow > .set-row-btn.ant-btn { margin-left: 4px; }
.set-progress { min-width: 120px; margin: 0; }
.set-card .arow-value { font-variant-numeric: tabular-nums; }
.set-name-box.ant-input, .set-box.ant-input, .set-box.ant-input-affix-wrapper { width: min(240px, 52vw); }
.set-address { justify-content: space-between; }
.set-address .ant-typography { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.set-add.set-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.set-way { display: inline-flex; align-items: center; gap: 8px; }
.set-way > .anticon { color: var(--muted); }
.set-act .set-unit { white-space: normal; }
.set-link.ant-btn { padding: 0; height: auto; }

/* Vendoo's "Code Vendoo sent": its orange dot, the box and Check code on a line under it, then what to do. */
.set-code-row { flex-wrap: wrap; row-gap: 8px; padding-bottom: 10px; }
.set-code-row > .arow-label { flex: 1 1 100%; }
.set-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--you); vertical-align: middle; }
.set-code-ctl { display: flex; gap: 8px; flex: 1 1 100%; min-width: 0; }
.set-code-ctl > .ant-input { flex: 1; min-width: 0; }
.set-code-ctl > .ant-btn { flex: none; }
.set-code-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; flex: 1 1 100%; }

/* Your own Claude API key: the box and Check and save on one line, "Paste a key first." under them. */
.set-key { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 14px; }
.set-key-ctl { display: flex; gap: 8px; min-width: 0; }
.set-key-ctl > .ant-input-affix-wrapper { flex: 1; min-width: 0; }
.set-key-ctl > .ant-btn { flex: none; }
@media (max-width: 639.98px) {
  .set-code-ctl > .ant-btn, .set-key-ctl > .ant-btn, .set-act .ant-btn, .arow > .set-row-btn.ant-btn { min-height: 44px; }
  .set-code-ctl > .ant-input, .set-key-ctl > .ant-input-affix-wrapper { min-height: 44px; }
}
/* A fact's name keeps its room beside a long value. */
.set-card .arow:not(.arow-set) > .arow-label { flex: 1 1 auto; min-width: 72px; }
/* Sale emails' address: the address, broken anywhere, then Copy. */
.set-address-text { flex: 1; min-width: 0; font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--ink); overflow-wrap: anywhere; }
.set-address > .set-copy.ant-btn { flex: none; width: 44px; height: 44px; margin-right: -8px; }
/* On a phone a confirm's bar takes two lines when it must: why above, the buttons under it at the right. */
@media (max-width: 639.98px) {
  .set-sheet .detail-bar { flex-wrap: wrap; row-gap: 6px; }
  .set-sheet .detail-bar .set-sheet-why { flex: 1 1 100%; max-width: none; order: -1; }
  .set-sheet .detail-bar .ant-btn { flex: 1 1 auto; min-width: 0; }
  .set-sheet .detail-bar .ant-btn > span { overflow: hidden; text-overflow: ellipsis; }
}
/* Sign-in's ways: the way's name keeps its room, and its buttons go under it when they don't fit beside it. */
.set-ways > .arow-set { flex-wrap: wrap; row-gap: 6px; }
.set-ways > .arow-set > .arow-label { flex: 1 1 160px; }
.set-ways > .arow-set > .set-ctl { margin-left: auto; }

/* ---- Settings: the Your stock group (docs/seller-design.md 6.6, seller restyle part 2d) ---- */
/* Sources: a row a source, the ones under another set in under it. */
.set-sources > .set-indent:first-child > .set-go { border-top: 0; }
.set-indent > .set-go { padding-left: calc(14px + var(--depth, 0) * 20px); }
.set-indent .set-way > .anticon { font-size: 14px; }
/* Bring in your listings: how a pick or a run went, as the lines under its row. */
.set-imports > .arow:first-child { border-top: 0; }
.set-imports .arow-set { flex-wrap: wrap; row-gap: 6px; }
.set-imports .arow-set > .arow-label { flex: 1 1 160px; }
.set-imports .arow-set > .ant-btn { margin-left: auto; }
.set-imports .arow-label a { color: var(--on); }
.set-imports .import-progress, .set-said { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; }
.set-said a { align-self: flex-start; color: var(--on); }
.set-said.bad > span { color: var(--bad); }
/* Selling for others: a set of terms opens from its name; its More (⋯) at the end. */
.set-term { gap: 4px; padding: 0 4px 0 0; }
.set-term-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; min-height: 56px; padding: 8px 6px 8px 14px; border: 0;
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.set-term-open:hover { background: var(--fill); }
.set-term-open:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.set-term > .sp-more { flex: none; }
.detail-line .consign-example { margin: 0; }
.set-card .arow.set-term { padding: 0 4px 0 0; }

/* ---- People you sell for, and one person (pages/people.tsx, docs/seller-design.md 6.8, seller restyle part 6a) ---- */
.ppl-stack { display: flex; flex-direction: column; gap: 12px; }
.ppl-stack > .phead, .ppl-stack .rec-card, .ppl-stack > .nums, .ppl-stack .issues { margin-bottom: 0; }
/* A row opens its person or item from anywhere on it (its title's link reaches over the row); the buttons under the
   words stay their own. The item page's .rec-row (a flex line of facts) comes earlier; these keep Records' columns. */
.ppl-list .rec-row { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; min-height: 56px; padding: 10px 6px 10px 12px; font-size: inherit; cursor: default; }
.ppl-list .rec-row .rec-title a::after { content: ""; position: absolute; inset: 0; }
.ppl-list .rec-row .rec-act, .ppl-list .rec-row .rec-meta .ant-tag { position: relative; z-index: 1; }
.ppl-list .rec-row .rec-act { margin-top: 6px; }
.ppl-list .rec-row:hover { background: var(--fill); }
.ppl-list .rec-row .rec-dot.none { visibility: hidden; }
.ppl-list .rec-table .ant-table-cell-ellipsis a { display: block; overflow: hidden; text-overflow: ellipsis; }
.ppl-end { display: inline-flex; align-items: center; gap: 4px; }
.ppl-end .figure { gap: 2px; }
.ppl-end .figure .ant-tag { margin: 0; }
.ppl-chev { color: var(--muted); font-size: 12px; }
.ppl-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ppl-meta .ant-tag { margin: 0; }
.ppl-card-end { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.ppl-payouts { list-style: none; margin: 0; padding: 0; }
.ppl-payout { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--line); }
.ppl-payout-words { flex: 1; min-width: 0; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.ppl-payout .sales-under { overflow-wrap: anywhere; }
@media (max-width: 639.98px) { .ppl-payout > .ant-btn { min-height: 44px; } .ppl-card-end > .ant-btn { min-height: 44px; } }
/* Desktop: Terms and Payouts in a 360 px column at the left, In stock and Sales as tables at the right. Tablet: Terms
   and Payouts side by side, then the two lists. */
.ppl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ppl-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.ppl-side, .ppl-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ppl-stack .set-card .arow-label { flex: none; max-width: 45%; }
.ppl-stack .set-card .arow-value { flex: 1 1 0; }
.ppl-contact { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppl-stack .phead-under { flex-wrap: nowrap; min-width: 0; }
.ppl-list .rec-row .rec-end .sp-more { position: relative; z-index: 1; margin: -10px -2px 0 0; }
.ppl-list .rec-table th { white-space: nowrap; }
@media print {
  .phead-end, .phead-help { display: none !important; }
  .ppl-stack .rec-card { break-inside: avoid; }
}

/* ---- Helpers, and a helper's link (pages/helpers.tsx, helper.tsx, docs/seller-design.md 6.9, seller restyle part 6b) ---- */
.hl-meta { display: flex; flex-direction: column; }
.hl-list .rec-row .rec-end .sp-more { position: relative; z-index: 1; margin: -10px -2px 0 0; }
/* The invite: rows of a name and its control, the pay rate a chip until it's wanted. */
.hl-form { display: flex; flex-direction: column; }
.hl-field { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.hl-label { color: var(--ink); font-size: var(--t-body-size); }
.hl-field > .hl-label { color: var(--muted); font-size: var(--t-small-size); }
.hl-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 12px 16px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 999px;
  background: none; color: var(--ink); font: inherit; font-size: var(--t-small-size); cursor: pointer; }
.hl-chip:hover { border-color: var(--on); }
.hl-chip:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
@media (max-width: 639.98px) { .hl-chip { min-height: 44px; } }
.hl-error { margin: 12px 16px; color: var(--bad); }
.set-sheet .detail-bar .help-icon { padding: 10px; font-size: 16px; }
/* A sale to give a shipper: the whole row picks it, a plus or a tick at its end says so. No checkbox. */
button.helper-sale { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.helper-sale:hover { background: var(--fill); }
button.helper-sale:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.helper-sale-text { flex: 1; }
.helper-sale-tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.helper-sale.picked .helper-sale-tick { background: var(--on); color: var(--raised); }
/* A helper's own page stands alone: the name at --t-title, Numbers, then Take photos (in the bar at the foot of a
   phone) or the sales to ship as records with the Shipped tick. */
.helper-page { max-width: 592px; gap: 12px; }
.helper-page > .phead, .helper-page .rec-card, .helper-page > .nums { margin-bottom: 0; }
.helper-bar > .ant-btn { min-width: 160px; }
@media (max-width: 639.98px) {
  .helper-bar { position: sticky; bottom: calc(0px - var(--screen-gap, 0px)); z-index: 5; margin: 0 -12px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--raised); }
  .helper-bar > .ant-btn { width: 100%; }
}
.helper-page .ship-list { list-style: none; margin: 0; padding: 0; gap: 0; }
.helper-page .ship-card { align-items: flex-start; gap: 10px; padding: 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.helper-page .ship-card img, .helper-page .ship-card .helper-sale-none { width: 56px; height: 56px; }
.ship-title { color: var(--ink); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ship-where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--t-small-size); color: var(--muted); }
.ship-line { font-size: var(--t-small-size); line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.ship-line.you { color: var(--you); }
.helper-page .ship-card .ship-tick { flex: none; min-height: 44px; margin: -10px 0 0; }
@media (max-width: 639.98px) { .helper-page .nums:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.helper-page .rec-failed { align-items: flex-start; }
.helper-page .rec-failed .rec-dot { margin-top: 7px; }

/* ---- Add many (pages/sort.tsx, docs/seller-design.md 6.10, seller restyle part 6c) ---- */
.sort-stack { display: flex; flex-direction: column; gap: 12px; }
.sort-stack > .phead, .sort-stack .rec-card, .sort-stack .issues { margin-bottom: 0; }
.sort-narrow { max-width: 760px; }
.sort-help p { margin: 0 0 8px; }
.sort-help p:last-child { margin: 0; }
/* Pick: the one switch as a row, then the drop target. */
.sort-auto { cursor: pointer; min-height: 56px; }
.sort-auto .arow-name { color: var(--ink); }
.sort-auto .arow-sub .price { margin: 0; }
.sort-drop.ant-upload-wrapper .ant-upload-drag { border-radius: 12px; background: transparent; }
.sort-drop .ant-upload-btn { padding: 40px 16px !important; }
.sort-drop .ant-upload-text { color: var(--ink) !important; font-size: var(--t-body-size) !important; font-weight: 500; }
.sort-drop .ant-upload-hint { color: var(--muted) !important; font-size: var(--t-small-size) !important; }
/* Reading and separating: one blue row with its bar, a Free tag, Cancel. */
.sort-work { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sort-work > .rec-dot { margin-top: 0; align-self: center; }
.sort-work-words { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); overflow-wrap: anywhere; }
.sort-work .sort-free { margin: 0; }
.issue-bar.busy > i { width: 30%; animation: sort-busy 1.4s ease-in-out infinite; }
@keyframes sort-busy { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .issue-bar.busy > i { animation: none; width: 100%; opacity: .5; } }
@media (max-width: 639.98px) { .sort-work > .ant-btn { min-height: 44px; } }
/* Check: an item a card (two across from 1100 px): its number and name, the count or the red tag, More; the photo
   strip with the scissors; a look-alike as a row; the two chips. */
.sort-cards { display: grid; gap: 12px; align-items: start; }
@media (min-width: 1100px) { .sort-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sortgroup.flag { border-color: var(--bad); }
.sort-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 4px 6px 14px; }
.sort-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; font-size: var(--t-body-size); }
.sort-name .ant-typography { margin: 0 !important; color: var(--ink); overflow-wrap: anywhere; }
.sort-n { color: var(--muted); font-weight: 400; }
.sort-count { flex: none; font-size: var(--t-small-size); color: var(--muted); }
.sort-flag { margin: 0; }
.sortgroup .sortstrip { padding: 4px 14px 12px; }
.sort-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.sort-chips .group-source.ant-btn-dashed { border-radius: 999px; color: var(--on); }
@media (max-width: 639.98px) { .sort-chips .group-source { min-height: 40px; } }
.sort-alikes { border-top: 1px solid var(--line); margin-bottom: 12px; }
.sort-alike { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); }
.sort-alike > .rec-dot { margin-top: 0; }
.sort-alike-words { flex: 1 1 140px; min-width: 0; display: inline-flex; align-items: center; gap: 2px; color: var(--ink); overflow-wrap: anywhere; }
.sort-alike-words a { color: var(--on); }
.sort-alike-acts { display: flex; gap: 6px; margin-left: auto; }
@media (max-width: 639.98px) { .sort-alike-acts .ant-btn { min-height: 40px; } }
.sort-help .alike-shots img, .help-pop .alike-shots img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.help-pop .alike-shot { padding: 0; border: 0; background: none; cursor: zoom-in; }
.help-pop .alike-cover { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; float: right; margin-left: 8px; }
.sort-move { min-width: 120px; }
.sort-sep { display: inline-flex; align-items: center; gap: 6px; }
.sort-sep .price { margin: 0; }
.sort-auto .arow-sub .price, .sort-sep .price { margin-inline: 0 2px !important; }
@media (max-width: 639.98px) { .sort-chips .group-source.ant-btn-dashed { padding-inline: 12px; } .sort-chips .group-source.ant-btn-dashed .anticon { display: none; } }

/* ---- Put items in boxes (pages/put-away.tsx, docs/seller-design.md 6.11, seller restyle part 6d) ---- */
.pa-stack { display: flex; flex-direction: column; gap: 12px; }
.pa-stack > .phead, .pa-stack .rec-card, .pa-stack .issues { margin-bottom: 0; }
.pa.pa-stack { max-width: none; margin: 0; }
.pa-two { display: grid; gap: 12px; align-items: start; }
@media (min-width: 640px) { .pa-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Pick a box: the label and Start, what holds Start back under them; the boxes to carry on with as rows. */
.pa-new { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; }
.pa-new-line { display: flex; gap: 8px; }
.pa-new-line > .ant-input { flex: 1; min-width: 0; }
.pa-new-why { font-size: var(--t-small-size); color: var(--muted); }
.pa-new-why.bad { color: var(--bad); }
@media (max-width: 639.98px) { .pa-new-line > .ant-input, .pa-new-line > .ant-btn { min-height: 44px; } }
.pa-boxes { list-style: none; margin: 0; padding: 0; }
.pa-tag { margin: 0 0 0 8px; }
/* A box: the identity row stays in view under the bar; the two modes, the search line, then cards of rows. */
.pa-top { position: sticky; top: var(--pa-top, 52px); z-index: 5; margin: 0 -12px; padding: 0 12px; background: var(--bar); backdrop-filter: blur(8px); }
@media (min-width: 640px) { .pa-top { margin: 0 -16px; padding: 0 16px; } }
@media (min-width: 1100px) { .pa-top { margin: 0 -24px; padding: 0 24px; } }
.pa-top .phead { margin-bottom: 0; }
.pa-modes { align-self: flex-start; max-width: 100%; }
@media (max-width: 639.98px) { .pa-modes .ant-segmented-item-label { min-height: 40px; line-height: 40px; } }
.pa-find .ant-input-affix-wrapper, .pa-find > .ant-btn { min-height: 40px; }
@media (max-width: 639.98px) { .pa-find .ant-input-affix-wrapper, .pa-find > .ant-btn { min-height: 44px; } }
.pa-note { margin: 0; color: var(--muted); font-size: var(--t-small-size); }
.pa-rows { list-style: none; margin: 0; padding: 0; }
.pa-rows > li { border-top: 1px solid var(--line); }
.pa-stack .pa-line, .pa-stack .pa-row { min-height: 64px; padding: 10px 8px 10px 14px; border: 0; border-radius: 0; background: none; gap: 12px; }
.pa-stack li.pa-line { border-top: 1px solid var(--line); }
.pa-stack li.pa-line.counting { flex-wrap: wrap; }
.pa-stack .pa-tap { cursor: pointer; }
.pa-stack .pa-tap:hover, .pa-stack .pa-row:hover:not(:disabled) { background: var(--fill); }
.pa-stack .pa-tap:focus-visible, .pa-stack .pa-row:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.pa-stack .pa-line-text { flex: 1 1 0; }
.pa-stack .pa-line.counting .pa-line-text { flex-basis: 140px; }
.pa-stack .pa-line > .ant-btn { flex: none; }
.pa-stack .pa-row-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--ink); font-weight: 500; }
.pa-stack .pa-sticker { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 400; font-size: 12px; line-height: 18px; }
.pa-stack .pa-row-sub.bad { color: var(--bad); }
.pa-stack .pa-photo { border-radius: 6px; }
.pa-sign { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); font-size: 16px; }
.pa-stack .pa-line > .rec-dot { margin: 0 -4px 0 0; align-self: center; }
.pa-stack .pa-results { gap: 0; }
.pa-stack .pa-results > .pa-row + .pa-row { border-top: 1px solid var(--line); }
.pa-stack .pa-put { width: 32px; height: 32px; border: 0; color: var(--muted); font-size: 16px; }
.pa-stack .pa-line.counting .pa-units { margin-left: auto; }
.pa-stack .rec-card-head .pa-count-switch { margin-left: auto; padding-right: 6px; font-size: var(--t-small-size); }
.pa-stack .rec-card .rec-fold { border-top: 0; }
.pa-stack .rec-fold-body .pa-rows > li:first-child, .pa-stack .rec-fold-body .pa-rows > li.pa-line:first-child { border-top: 1px solid var(--line); }

/* ---- Check listings (pages/ranking-rules-page.tsx, docs/seller-design.md 6.12, seller restyle part 6e) ---- */
.rr-stack { display: flex; flex-direction: column; gap: 12px; }
.rr-stack > .phead, .rr-stack .rec-card, .rr-stack .issues { margin-bottom: 0; }
.rr-help p { margin: 0 0 8px; } .rr-help p:last-child { margin: 0; }
.rr-filters { flex-wrap: wrap; }
.rr-filters .choice-seg { flex: none; }
.sp-primary .price { margin-inline: 6px 0 !important; }
/* A change: the old text struck through, then the new, with what was put in marked. */
.rr-stack .rule-change { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; font-size: var(--t-small-size); line-height: var(--t-small-line); }
.rr-stack .rule-old .rule-del { color: var(--muted); text-decoration: line-through; background: none; }
.rr-stack .rule-new { color: var(--ink); }
.rr-stack .rule-add { color: inherit; text-decoration: none; background: none; }
.rr-acts { display: inline-flex; gap: 6px; }
/* A row under 1100 px: the circle (with a mouse), the listing, where and why, the change, then Approve, Edit, Reject. */
.rr-row { position: relative; border-top: 1px solid var(--line); }
.rr-body { display: flex; gap: 10px; padding: 12px; }
.rr-body > .rec-words { flex: 1; min-width: 0; gap: 4px; }
.rr-row.picked { background: color-mix(in srgb, var(--on) 14%, transparent); }
.rr-list.picking .rr-row { cursor: pointer; }
.rr-check.row-check { position: static; flex: none; width: 24px; height: 24px; margin-top: 1px; border-color: var(--muted); background: transparent; opacity: 1; }
.rr-check.row-check.on { background: var(--on); border-color: var(--on); color: var(--raised); }
@media (hover: none) and (pointer: coarse) {
  .rr-row .rr-check:not(.on) { display: none; }
  .rr-row { overflow: hidden; touch-action: pan-y pinch-zoom; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .rr-row .row-body { transition: transform .18s ease-out; }
  .rr-row.swiping .row-body { transition: none; }
  .rr-row.swiping::before { content: "\2713"; position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 16px; font-weight: 700; color: var(--on); border: 2px solid var(--on); box-sizing: border-box; }
  .rr-row.swiping[data-swipe="right"]::before { left: 20px; }
  .rr-row.swiping[data-swipe="left"]::before { right: 20px; }
  .rr-row.swiping.armed::before { background: var(--on); color: var(--raised); }
  .rr-row .rec-act .ant-btn { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .rr-row .row-body { transition: none; } }
.rr-list .rec-table .ant-table-cell { vertical-align: middle; }
.rr-list .rec-table .ant-table-cell-ellipsis a { display: block; overflow: hidden; text-overflow: ellipsis; }

/* Your subscription (seller restyle part 6f, docs/seller-design.md 6.13). Under 1100 px the plans are pick rows and
   the add-ons tick rows, the total and the primary in the sticky bar; from 1100 px the plans are cards side by side
   and "Your change" is a card at the right. */
.sub-stack { display: flex; flex-direction: column; gap: 12px; }
.sub-stack > .phead, .sub-stack .rec-card, .sub-stack .issues { margin-bottom: 0; }
.sub-under { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sub-tag.ant-tag { margin: 0; }
.sub-help p { margin: 0 0 8px; } .sub-help p:last-child { margin: 0; }
.sub-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 64px; padding: 12px; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.sub-row:focus-visible, .sub-plan:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.sub-row .ant-checkbox-wrapper, .sub-row > .ant-checkbox { margin-top: 2px; }
.sub-radio { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--muted); border-radius: 50%; }
.on > .sub-radio, .on .sub-plan-head > .sub-radio { border: 5px solid var(--on); }
.sub-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-body-size); line-height: var(--t-body-line); }
.sub-line { color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); overflow-wrap: anywhere; }
.sub-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: var(--t-body-size); line-height: var(--t-body-line); }
.sub-per { color: var(--muted); font-weight: 400; font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sub-field { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.sub-label { color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sub-code { display: flex; gap: 8px; }
.sub-code > .ant-input-affix-wrapper, .sub-code > .ant-input { flex: 1; min-width: 0; min-height: 44px; }
.sub-code .ant-btn { flex: none; min-height: 44px; }
/* A promo code that came with an invite: shown, not editable. */
.sub-code .sub-code-fixed { background: var(--fill); cursor: default; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }
.sub-note { color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sub-found { color: var(--done); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sub-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 44px; padding: 11px 12px; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums; }
.sub-kv > span:first-child { color: var(--muted); }
.sub-kv > span:last-child { text-align: end; }
.sub-total > span:last-child { font-weight: 600; }
.sub-change .rec-card-head + .sub-kv { border-top: 0; }
.sub-change .sub-field { border-top: 1px solid var(--line); }
.sub-go { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px; border-top: 1px solid var(--line); }
.sub-why { color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sub-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 16px; align-items: start; }
.sub-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sub-plan { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--raised); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.sub-plan:hover { border-color: var(--muted); }
.sub-plan.on { border-color: var(--on); box-shadow: inset 0 0 0 1px var(--on); }
.sub-plan-head { display: flex; align-items: center; gap: 8px; }
.sub-plan-head .sub-radio { margin-top: 0; }
.sub-plan-price { font-size: var(--t-number-size); line-height: var(--t-number-line); font-weight: 700; font-variant-numeric: tabular-nums; }
.sub-plan-price .sub-per { margin-inline-start: 6px; }
.sub-features { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sub-features .anticon { color: var(--done); margin-inline-end: 6px; }
/* AI credit and your own Claude key on the Subscription page (pages/parts/ai-credit.tsx): the balance big, the amounts as
   pick tiles with what each covers (two across on a phone, five on a wide screen), the refill line as words with boxes
   in them, and the last entries as key-value rows. */
.cr-balance { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 12px; }
.cr-amount { font-size: var(--t-number-size); line-height: var(--t-number-line); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.cr-amount[data-low] { color: var(--bad); }
.cr-buy, .cr-refill, .cr-history { border-top: 1px solid var(--line); }
.cr-history { display: flex; flex-direction: column; padding-top: 12px; }
.cr-history > .sub-label { padding: 0 12px 4px; }
.cr-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .cr-presets { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cr-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--raised); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.cr-preset:hover { border-color: var(--muted); }
.cr-preset.on { border-color: var(--on); box-shadow: inset 0 0 0 1px var(--on); }
.cr-preset:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.cr-preset-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-other.ant-input-number, .cr-other.ant-input-number-affix-wrapper { width: 160px; }
.cr-go { padding: 0; border-top: 0; }
.cr-refill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-refill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cr-refill-row .ant-input-number, .cr-refill-row .ant-input-number-affix-wrapper { width: 110px; }
.cr-card { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cr-card .anticon { color: var(--muted); }
.cr-plus { color: var(--done); }
.cr-sum { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cr-sum > .sub-kv:first-child { border-top: 0; }
.cr-fees-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0; border: 0; background: none; color: var(--on); font: inherit; cursor: pointer; }
.cr-fees-btn:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.cr-fees-pop { display: flex; flex-direction: column; max-width: 300px; }
.cr-fees-pop > .sub-kv { padding: 6px 0; min-height: 0; }
.cr-fees-pop > .sub-kv:first-child { border-top: 0; }
.cr-fees-pop > .sub-line { padding-top: 6px; }
.cr-minus { color: var(--muted); }
@media (max-width: 640px) {
  .cr-refill-row .ant-input-number-affix-wrapper, .cr-other.ant-input-number-affix-wrapper { min-height: 44px; align-items: center; }
  .cr-go .ant-btn { min-height: 44px; flex: 1; }
}

/* Sign in (seller restyle part 6g, docs/seller-design.md 6.14): the brand, a 400 px card, the title at --t-title,
   one muted line, 44 px boxes and buttons, and the two links on one line. */
.signin-card { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.signin-title { margin: 0; color: var(--ink); font-size: var(--t-title-size); line-height: var(--t-title-line); font-weight: 600; }
.signin-lead { margin: 4px 0 16px; color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.signin-title + .signin-alert, .signin-title + .ant-flex, .signin-title + .ant-form { margin-top: 16px; }
.signin-card .ant-btn-lg, .signin-card .ant-form-item-control-input-content > .ant-input-lg, .signin-card .ant-input-affix-wrapper-lg { min-height: 44px; font-size: var(--t-body-size); }
.signin-card .ant-input-affix-wrapper-lg { padding-block: 0; }
.signin-card > .signin-alert { margin: 0 0 12px; }
.signin-brand .wordmark { display: block; }
.signin-card .ant-form-item { margin-bottom: 16px; }
.signin-card .ant-form-item-label { padding-bottom: 4px; }
.signin-card .ant-form-item-label > label { color: var(--muted); font-size: var(--t-small-size); }
.signin-or.ant-divider { margin: 8px 0; color: var(--muted); font-size: var(--t-small-size); }
.signin-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.signin-links .ant-btn-link { padding: 0; min-height: 44px; }
.signin-links .ant-btn-link:only-child { margin-inline: auto; }
@media (max-width: 430px) { .signin { padding-top: 32px; } .signin-card { padding: 20px 16px; } }

/* The help pages (seller restyle part 7, docs/seller-design.md 6.15): Getting started (pages/guide.tsx) and How
   crosslistr works (pages/help.tsx). The contents are chips that wrap under 1100 px, and from there a 220 px column
   that stays at the left; text holds to 72 characters whatever the width, cards and the costs to 720 px. */
.hdoc { display: flex; flex-direction: column; gap: 16px; }
.hdoc-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.hdoc-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: var(--t-small-size); line-height: var(--t-small-line); }
.hdoc-nav a:hover { border-color: var(--muted); }
.hdoc-nav a[aria-current] { border-color: transparent; background: color-mix(in srgb, var(--on) 16%, transparent); color: var(--on); }
.hdoc-nav a.done .anticon { color: var(--done); }
.hdoc-nav a:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
@media (max-width: 639.98px) { .hdoc-nav a { min-height: 44px; } }
.hdoc-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; max-width: 720px; }
.hdoc-main.guide { gap: 36px; }
.hdoc-main section { scroll-margin-top: 72px; min-width: 0; }
.hdoc-main section > h4.ant-typography { margin: 0 0 8px; font-size: var(--t-head-size); line-height: var(--t-head-line); }
.hdoc-main section > h5.ant-typography { margin: 0 0 8px; }
/* Prose only: a row of a card's list (the supplies, the costs) runs to the card's edge. */
.hdoc-main :where(p, dd, .guide-why, .guide-line, .guide-steps > li, .help-free > li) { max-width: 72ch; }
.hdoc-main .ant-typography:last-child { margin-bottom: 0; }
.hdoc-lede.ant-typography { margin: 0; }
@media (min-width: 1100px) {
  .hdoc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
  .hdoc-nav { position: sticky; top: 72px; flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .hdoc-nav a { border: 0; border-radius: 6px; padding: 6px 10px; font-size: var(--t-body-size); }
  .hdoc-nav a:hover { background: var(--fill); }
}
/* The kinds of item: segments that wrap from 640 px, never sideways; a select on a phone. */
.guide-kinds .ant-segmented { overflow: visible; max-width: 100%; }
.guide-kinds .ant-segmented-group { flex-wrap: wrap; }
.guide-kinds .choice-select { width: 100%; }
@media (max-width: 639.98px) { .guide-kinds .choice-select.ant-select { height: 44px; } }
.guide-kit li { min-width: 0; }
.guide-kit .guide-kit-name { overflow-wrap: anywhere; }
/* What each tap costs: the tap with its cost at the right, what it does on the line under both. */
.help-costs { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); padding: 4px 14px; margin-bottom: 12px; }
.help-costs-head { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: var(--t-tiny-size); line-height: var(--t-tiny-line); color: var(--muted); }
.help-costs ul { list-style: none; margin: 0; padding: 0; }
.help-cost { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.help-cost:last-child { border-bottom: 0; }
.help-cost-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.help-cost-price { justify-self: end; text-align: end; white-space: nowrap; }
.help-cost-price .ant-tag { margin-inline-end: 0; font-variant-numeric: tabular-nums; }
.help-cost-per { font-size: var(--t-tiny-size); color: var(--muted); }
.help-cost-what { font-size: var(--t-small-size); line-height: var(--t-small-line); color: var(--muted); max-width: 72ch; }
.help-cost-basis { justify-self: end; text-align: end; font-size: var(--t-tiny-size); line-height: var(--t-small-line); color: var(--muted); }
@media (max-width: 639.98px) {
  .help-cost-what { grid-column: 1 / -1; }
  .help-cost-basis { grid-column: 1 / -1; justify-self: start; text-align: start; }
}
.help-free { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.help-free li { display: flex; gap: 8px; align-items: baseline; }
.help-free .anticon { color: var(--done); flex: none; }

/* Draft Review (Drafts and Review as one stage, 2026-11-25): what's missing required info, in red. */
.miss-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.step .miss { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; color: var(--bad); font-weight: 600; white-space: nowrap; overflow: hidden; }
.step .miss-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.miss-chip .fchip.on { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
/* Listed's Draft / Selling / Not shipped / Sold show-hide chips (pages/home.tsx kindChips): one group, wrapping inside itself only when a narrow phone or a long translation needs it. */
.kind-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
/* On a phone the chips flow with Tags and Sort, so a wrapped line doesn't leave Sort alone on one of its own. */
@media (max-width: 639.98px) { .kind-chips { display: contents; } }
.kind-chips .fchip { gap: 4px; padding: 0 8px; }
.kind-chips .kind-tick { font-size: 11px; }
.kind-chips .kind-n { margin-left: 5px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.kind-chips .fchip.on .kind-n { color: inherit; }
.item-group + .item-group { margin-top: 8px; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px; font-size: var(--t-small-size); line-height: var(--t-small-line); font-weight: 600; color: var(--muted); }
.group-head .n { font-weight: 400; font-variant-numeric: tabular-nums; }
.item-group.miss .group-head { color: var(--bad); }

/* Quick answers beside a Draft Review row, desktop only (pages/parts/quick-answers.tsx): a control to settle the field,
   ✓ says the value shown is right, the arrow opens the item there. Dashed until settled: nothing reads as confirmed. */
.quick { flex: 0 1 58%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.qc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 34px; padding: 0 4px 0 10px; border: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 8px;
  background: var(--raised); font-size: var(--t-small-size); color: var(--ink); white-space: nowrap; cursor: default; }
.qc .k { color: var(--muted); flex: none; }
.qc .v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qc.miss { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.qc.miss .k { color: var(--bad); }
.qc > button:not(.qbtn), .qc > a { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 6px; padding: 0;
  background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.qc button.ok { color: var(--muted); border: 1px solid var(--line); background: none; }
.qc > button:not(.qbtn):hover, .qc > a:hover { background: var(--fill); color: var(--ink); }
.qc button.ok:hover { background: color-mix(in srgb, var(--done) 16%, transparent); border-color: color-mix(in srgb, var(--done) 50%, transparent); color: var(--done); }
.qc .qsel { min-width: 90px; max-width: 220px; margin-inline: -7px -2px; }
.qc .qsel .ant-select-selector { padding-inline: 7px !important; }
.qc .qsel .ant-select-selection-item { font-weight: 500; }
.qc .qbtn { flex: none; }
.qc .qspin { color: var(--muted); }
.qc > button:focus-visible, .qc > a:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.qc.done { border-style: solid; border-color: color-mix(in srgb, var(--done) 45%, transparent); color: var(--done); padding-right: 10px; }
.qc.done .k { color: var(--done); }
.qmore { flex: none; font-size: var(--t-small-size); color: var(--on); padding: 0 4px; }
@media (max-width: 1099.98px) { .quick { display: none; } }

/* Answer across items: the photos to take, on paper only (pages/review-across.tsx ShotPrint). */
.ra-print { display: none; }
@media print {
  .ra-tabs, .ra-two, .ra-redraft { display: none !important; }
  .ra-print { display: block; color: #000; }
  .ra-print h2 { font-size: 18px; margin: 0 0 12px; }
  .ra-print-it { break-inside: avoid; margin-bottom: 12px; }
  .ra-print-it ul { margin: 4px 0 0; padding-left: 20px; list-style: "\2610  "; }
}

/* Look up prices (public/prices.js BulkResearch, docs/pricing-design.md 5.4) and the other sheets that pick one of a few:
   pick rows with a count or a muted line at the end, then facts as rows. */
.sheet-title { display: inline-flex; align-items: center; gap: 4px; }
.sheet-picks.ant-radio-group { display: flex; flex-direction: column; margin: -12px -16px 0; }
.sheet-pick.ant-radio-wrapper { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.sheet-pick.ant-radio-wrapper > span:last-child { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; padding-inline-end: 0; }
.sheet-pick-l { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sheet-pick-l small { display: block; color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sheet-pick-n { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet-facts .field.frow:first-child { border-top: 0; }
/* A sheet's own fields (public/seller-parts.js Sheet): a muted label over the field, one after another. */
.sheet-field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sheet-picks + .sheet-field { margin-top: 16px; }
.sheet-field:first-child { margin-top: 0; }
.sheet-field-l { color: var(--muted); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sheet-field-bad { color: var(--bad); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.sheet-after { margin: 12px 0 0; }
.sheet-warn { color: var(--you); font-size: var(--t-small-size); line-height: var(--t-small-line); }
.set-tick small { display: block; margin-top: 4px; }
.set-sheet-body .sku-picks { margin-top: 12px; }
div.sku-pick { cursor: default; }
.set-sheet-body .rec-fold-head { padding: 0; }
.set-sheet-body .rec-fold-body { padding-bottom: 12px; }
/* Check categories (public/bulk-category.js): moved items waiting for a redraft, as a line with its button. */
.cat-moved { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-moved > span { display: inline-flex; align-items: center; gap: 4px; color: var(--you); }
.cat-tab .cat-group { margin-top: 12px; }
.cat-tabs.ant-tabs { margin-top: -8px; }
/* Group as variations (public/look-alike.js GroupPicker): results scroll inside the sheet and never run past it. */
.group-pick { min-width: 0; }
.group-pick .ant-tag { max-width: 100%; white-space: normal; }
.group-results { max-height: 40vh; overflow-y: auto; min-width: 0; }
.group-results .ant-checkbox-wrapper, .sheet-pick .alike-item { max-width: 100%; min-width: 0; }
.group-results .ant-checkbox-wrapper > span:last-child { min-width: 0; }
.sheet-pick .alike-item { border: 0; padding: 0; background: none; }

/* Tab reaches every dropdown (public/tab-select.js): Safari on an iPhone or iPad moves Tab and the keyboard's
   next/previous arrows only to a box whose middle is the box itself, and a one-value dropdown draws its value
   (or its placeholder) over its box. Taps and that check go through the value to the box under it, which opens
   the list just as a tap on the value did. Only on an iPhone or iPad (public/tab-select.js sets apple-touch), so a
   mouse hovering a value elsewhere still gets its tip (a category's whole path). */
.apple-touch .ant-select-single .ant-select-selection-item, .apple-touch .ant-select-single .ant-select-selection-placeholder { pointer-events: none; }

/* Your items' rows, drawn only near the view (pages/parts/item-rows.tsx): the line between rows Ant Design's list drew,
   and the pick circles all shown while any item is picked, drawn or not (it was .items:has(.row.picked)). */
.vrows .row { display: flex; align-items: center; border-block-end: 1px solid var(--line); }
.vrows [role="listitem"]:last-child .row { border-block-end: 0; }
.items.picking .row-check { opacity: 1; }
.vrows .group-head.rest { margin-top: 8px; }
.vrows .group-head.miss { color: var(--bad); }
.list-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; color: var(--muted); font-size: var(--t-small-size); }
/* The Item menu's Listing links (pages/item.tsx ListingLinksSheet): one row per site. */
.listing-link-row + .listing-link-row { border-top: 1px solid var(--line); padding-top: 14px; }
.listing-link-has { display: inline-flex; align-items: center; gap: 4px; }

/* Tidy up your import (public/tidy-steps.js): one column of plain cards, big tap targets, the reassurance in a quiet box. */
.tidy { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.45; }
.tidy-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.tidy-card > p { margin: 0; }
.tidy-h { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; }
.tidy-muted { color: var(--muted); font-size: 14px; }
.tidy-back { align-self: flex-start; min-height: 32px; }
.tidy-notes { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--ant-color-fill-quaternary, rgba(128,128,128,.08)); font-size: 15px; }
.tidy-piles, .tidy-items, .tidy-table, .tidy-picks.ant-radio-group { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tidy-pile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.tidy-pile + .tidy-pile, .tidy-items > label + label, .tidy-table > div + div, .tidy-picks > label + label { border-top: 1px solid var(--line); }
.tidy-pile:disabled { opacity: .5; cursor: default; }
.tidy-pile:not(:disabled):hover { background: var(--ant-color-fill-quaternary, rgba(128,128,128,.08)); }
.tidy-pile-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tidy-pile-text > span { color: var(--muted); font-size: 14px; }
.tidy-pile-n { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.tidy-items > label { display: block; cursor: pointer; }
.tidy-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; }
.tidy-item.off { opacity: .55; }
.tidy-item-text { flex: 1; min-width: 0; }
.tidy-answers { display: flex; flex-direction: column; gap: 10px; }
.tidy-answer { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 16px; border: 1px solid var(--ant-color-border, #c9ced6); border-radius: 10px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.tidy-answer > span { color: var(--muted); font-size: 14px; }
.tidy-answer.primary { border-color: var(--ant-color-primary, #1d5fd1); background: var(--ant-color-primary, #1d5fd1); color: #fff; }
.tidy-answer.primary > span { color: rgba(255,255,255,.9); }
.tidy-answer:disabled { opacity: .5; cursor: default; }
.tidy-answer:focus-visible, .tidy-pile:focus-visible { outline: 2px solid var(--ant-color-primary, #1d5fd1); outline-offset: 2px; }
.tidy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tidy-stays { border: 2px solid var(--ant-color-primary, #1d5fd1); border-radius: 10px; }
.tidy-stays-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 0 14px 8px; }
.tidy-picks .ant-radio-wrapper { display: flex; align-items: center; margin: 0; padding-inline-start: 14px; }
.tidy-picks .ant-radio-wrapper > span:last-child { flex: 1; min-width: 0; padding: 0; }
.tidy-table > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 14px; }
.tidy-table > div > b { flex: none; width: 110px; }
.tidy-table > div > div { flex: 1; min-width: min(220px, 100%); }
.tidy-yours { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ant-color-warning-text, #8a5200); }
.tidy-ours { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ant-color-success-text, #1a7f4b); }

/* Fills > Runs, what a run was given; Fills > Issues, a stop's page and facts (pages/parts/fills-trace.tsx Json). */
.given-json { margin: 4px 0 8px; font-size: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Settings > Prices > Price research rules (public/research-rules.js): a rule's row is a button opening it. */
.resrule-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.resrule-row:hover { background: var(--fill); }
.resrule-field { margin-bottom: 14px; }
.resrule-field > label { display: block; font-weight: 600; margin-bottom: 6px; }
/* The segment's picks (public/segment-ui.js SegmentPicks): the item's specifics as chips, on when the segment says them. */
.seg-words { margin: 0 0 8px; }
.seg-words small { opacity: .75; }
.seg-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.seg-pick { margin: 0; padding: 4px 10px; font-size: 14px; border: 1px solid var(--line); }
.seg-pick.busy { opacity: .6; }
.seg-pick-n { opacity: .75; }
