/* Owl & Twig Vintage: harvest gold and walnut brown on warm paper. Playfair Display + Jost. */
:root {
  --ink: #3d2b1f;
  --ink-soft: #6b5545;
  --gold: #c9a84c;
  --gold-deep: #9c7c2a;
  /* gold and rust dark enough to read as text (4.5:1 or better on paper, white and the washes) */
  --gold-text: #765b15;
  --rust-text: #934222;
  --gold-wash: #f3e6bf;
  --paper: #fffaf0;
  --cream: #f5efe2;
  --rule: #e3d6bb;
  --moss: #5b6b3a;
  --moss-wash: #e5ead6;
  --rust: #a8502e;
  --rust-wash: #f5dfd4;
  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: Jost, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(61, 43, 31, 0.04), 0 12px 32px -18px rgba(61, 43, 31, 0.35);
}

* { box-sizing: border-box; }
/* Bigger text everywhere (Matt, 2026-11-18): 18px base instead of 16px; every size below is in rem, so it all grows. */
html { background: var(--cream); font-size: 112.5%; }
body {
  margin: 0;
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 168, 76, 0.18), transparent 60%),
    radial-gradient(900px 400px at 110% 0%, rgba(168, 80, 46, 0.08), transparent 60%),
    var(--cream);
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.005em; margin: 0; }
p { margin: 0; }
a { color: var(--gold-text); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.warn-text { color: var(--rust-text); }

.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; }

/* masthead */

.owl-mark { flex: none; filter: drop-shadow(0 4px 8px rgba(61, 43, 31, 0.18)); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 500; font-size: 0.9rem; border: 1px solid var(--rule); background: var(--paper); }

.pill--good { color: var(--moss); }
.pill--warn { color: var(--gold-text); }
.pill--bad { color: var(--rust-text); }

/* buttons */
.button {
  font: 500 0.95rem var(--sans);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 2px 0 var(--ink);
}
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button:focus-visible, .link-button:focus-visible, .row-button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.button--primary { background: var(--gold); }
.button--danger { background: var(--rust); color: var(--paper); border-color: var(--bd-7a3519, #7a3519); box-shadow: 0 2px 0 #7a3519; }
.link-button { min-height: 44px; background: none; border: 0; padding: 4px 8px; color: var(--ink-soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* layout */
.layout { display: flex; flex-direction: column; gap: 22px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid__main, .grid__side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; min-width: 0; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.card__head h2 { font-size: 1.35rem; }
.card__head .muted { font-size: 0.92rem; }
.empty { color: var(--ink-soft); font-style: italic; padding: 8px 0; }

/* banners */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; border: 1px solid; }
.banner--warn { background: var(--gold-wash); border-color: var(--bd-e2cc86, #e2cc86); }
.banner--bad { background: var(--rust-wash); border-color: var(--bd-e7b9a4, #e7b9a4); color: var(--fg-6e2d14, #6e2d14); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px 16px; box-shadow: var(--shadow); overflow: hidden; }
.tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rule); }
.tile--moss::before { background: var(--moss); }
.tile--gold::before { background: var(--gold); }
.tile__label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.tile__value { font-family: var(--serif); font-size: 2.3rem; line-height: 1.15; margin-top: 6px; font-variant-numeric: lining-nums tabular-nums; }
.tile__note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }

/* actions */
.actions__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.chip { font-size: 0.88rem; padding: 4px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--rule); color: var(--ink-soft); }
.chip--gold { background: var(--gold-wash); color: var(--ink); }
.actions__status { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.result { margin-top: 16px; padding: 12px 16px; border-radius: 10px; display: flex; justify-content: space-between; gap: 12px; border-left: 4px solid var(--moss); background: var(--moss-wash); }
.result--error, .result--blocked { border-left-color: var(--rust); background: var(--rust-wash); }
.result--skipped { border-left-color: var(--gold); background: var(--gold-wash); }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--gold-deep); animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 60px; color: var(--ink-soft); }

/* plan */
.plan__summary { font: 0.9rem/1.6 var(--mono); background: var(--cream); padding: 12px 14px; border-radius: 10px; white-space: pre-wrap; margin: 0 0 14px; }
.plan__filters { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.plan__filters select, .plan__filters input, .login input {
  font: inherit; padding: 8px 12px; min-height: 44px; border-radius: 9px; border: 1px solid var(--rule); background: var(--bg-fff, #fff); color: var(--ink);
}
.plan__filters input { flex: 1; min-width: 160px; }
.plan__lines { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; border-top: 1px solid var(--rule); }
.plan__lines li { display: flex; gap: 12px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.plan__thumb { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); background: var(--cream); display: block; }
.plan__text { min-width: 0; }

.tag { flex: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid currentColor; min-width: 76px; text-align: center; }
.tag--rust { color: var(--rust-text); background: var(--rust-wash); }
.tag--moss { color: var(--moss); background: var(--moss-wash); }
.tag--gold { color: var(--gold-text); background: var(--gold-wash); }
.tag--plain { color: var(--ink-soft); background: var(--cream); }
.tag--muted { color: var(--ink-soft); background: transparent; border-style: dashed; }

/* runs */
.table-wrap { overflow-x: auto; min-width: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); padding: 0 10px 8px; border-bottom: 2px solid var(--ink); }
.table td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-button { cursor: pointer; }
.row-button:hover, .row-button.is-open { background: var(--bg-fbf3df, #fbf3df); }
.summary-cell { max-width: 360px; }
.log-row td { background: var(--bg-fbf3df, #fbf3df); }
.log { font: 0.9rem/1.55 var(--mono); white-space: pre-wrap; margin: 0; max-height: 280px; overflow: auto; }

.badge { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge--ok { background: var(--moss-wash); color: var(--moss); }
.badge--running { background: var(--gold-wash); color: var(--gold-text); }
.badge--blocked { background: var(--gold-wash); color: var(--fg-7a5d12, #7a5d12); }
.badge--error { background: var(--rust-wash); color: var(--rust-text); }
.badge--skipped { background: var(--cream); color: var(--ink-soft); }

/* change ledger */
.ledger { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow: auto; }
.ledger__row { display: grid; grid-template-columns: 100px 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.ledger__kind { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-text); font-weight: 600; padding-top: 2px; }
.ledger__when { color: var(--ink-soft); font-size: 0.8rem; white-space: nowrap; }
.ledger__detail { grid-column: 2 / -1; font-size: 0.9rem; color: var(--rust-text); word-break: break-word; }
.ledger__row--skipped .ledger__detail { color: var(--ink-soft); }

.errors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.errors li { padding: 12px 14px; border-radius: 10px; background: var(--bg-fdf4ee, #fdf4ee); border: 1px solid var(--bd-f0d5c6, #f0d5c6); }
.errors__head { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; font-weight: 500; flex-wrap: wrap; }
.errors__text { margin-top: 6px; font: 0.85rem/1.5 var(--mono); color: var(--fg-6e2d14, #6e2d14); word-break: break-word; white-space: pre-wrap; }

/* login */
.login { display: grid; place-items: center; padding: 60px 0; }
.login__card { width: min(400px, 100%); background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); padding: 36px 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.login__card h2 { font-size: 1.8rem; }
.login__card label { align-self: stretch; text-align: left; font-size: 0.9rem; font-weight: 500; margin-top: 14px; }
.login__card input { align-self: stretch; }
.login__card .button { align-self: stretch; justify-content: center; margin-top: 6px; }
.login__error { color: var(--rust-text); font-size: 0.9rem; }
.login__note { margin-top: 10px; }

/* dialog */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(61, 43, 31, 0.45); display: grid; place-items: center; padding: 20px; z-index: 10; }
.dialog { background: var(--paper); border-radius: 16px; padding: 26px 28px; max-width: 480px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); border-top: 5px solid var(--gold); }
.dialog h3 { font-size: 1.4rem; margin-bottom: 10px; }
.dialog__body { display: flex; flex-direction: column; gap: 10px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.footer { margin-top: 36px; text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ink-soft); }

@media (max-width: 980px) {
  /* One column: what needs Matt first (errors, the buttons, what changed), the long reference cards last. */
  .grid { display: flex; flex-direction: column; }
  .grid__main, .grid__side { display: contents; }
  /* a card must not grow to the width of a wide table inside it: the table scrolls inside the card */
  .grid__main > *, .grid__side > * { min-width: 0; max-width: 100%; }
  .grid [aria-labelledby='errors-title'] { order: -3; }
  .grid .actions { order: -2; }
  .grid [aria-labelledby='changes-title'] { order: -1; }
  .grid .plan { order: 1; }
  .grid [aria-labelledby='runs-title'] { order: 2; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 520px) {
  .page { padding: 18px 14px 30px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile__value { font-size: 1.8rem; }

}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .button { transition: none; }
}

/* white photos */
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.switch__track { width: 38px; height: 22px; border-radius: 999px; background: var(--rule); position: relative; transition: background 0.15s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: left 0.15s; }
.switch--on { color: var(--moss); }
.switch--on .switch__track { background: var(--moss); }
.switch--on .switch__knob { left: 19px; }
.white__buttons { margin-top: 16px; }
.white__list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 18px; }
.white__item { border-top: 1px dashed var(--rule); padding-top: 14px; }
.white__title { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-weight: 500; margin-bottom: 10px; }
.white__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
.white__pair figure { margin: 0; min-width: 0; }
.white__pair img, .white__blank { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-fff, #fff); border: 1px solid var(--rule); border-radius: 10px; display: block; }
.white__blank { display: grid; place-items: center; padding: 12px; font-size: 0.9rem; color: var(--ink-soft); text-align: center; background: var(--cream); }
.white__pair figcaption { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 6px; }

/* page tabs */
.tabs { display: flex; gap: 4px; margin: -8px 0 22px; border-bottom: 1px solid var(--rule); }

/* inventory */
.tiles--inventory { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.tile--button { font: inherit; text-align: left; cursor: pointer; color: inherit; }
.tile--button:hover { background: var(--bg-fbf3df, #fbf3df); }
.tile--button.is-active { outline: 3px solid var(--gold); outline-offset: -3px; }
.inv-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.inv-toolbar__row { display: flex; gap: 12px; }
.inv-search { flex: 1; min-height: 44px; font: inherit; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--bg-fff, #fff); color: var(--ink); }
.inv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip--button { font: inherit; font-size: 0.9rem; cursor: pointer; min-height: 44px; padding-inline: 14px; display: inline-flex; align-items: center; justify-content: center; }
.chip--button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.sort { font: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; text-align: left; }
.sort.is-on { color: var(--ink); }
.sort__arrow { font-size: 0.8rem; opacity: 0.6; }

.inv-title { min-width: 240px; }

.inv-tag { font-size: 0.8rem; color: var(--ink-soft); background: var(--cream); border-radius: 4px; padding: 1px 6px; }
.mono { font-family: var(--mono); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pager__buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pager select { font: inherit; min-height: 44px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--rule); background: var(--bg-fff, #fff); }
@media (max-width: 980px) { .tiles--inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fix white photos by hand */
.fix { margin-top: 18px; border-top: 1px dashed var(--rule); padding-top: 4px; }
.fix__search { width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; font: inherit; background: var(--bg-fff, #fff); }
.fix__row { display: flex; gap: 12px; align-items: center; min-width: 0; }
.fix__thumb { width: 56px; height: 56px; flex: none; object-fit: contain; background: var(--bg-fff, #fff); border: 1px solid var(--rule); border-radius: 8px; }
.fix__text { flex: 1; min-width: 0; }
.fix__text .white__title { margin-bottom: 2px; overflow-wrap: anywhere; }
.fix__buttons { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.fix__pick { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.fix__photos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.fix__photos li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fix__photo { padding: 0; border: 2px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); cursor: pointer; overflow: hidden; }
.fix__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.fix__photo.is-active { border-color: var(--moss); box-shadow: 0 0 0 2px var(--moss); }
.fix__photo:disabled { cursor: wait; }

/* ---- White photo editor (Fix white photos > Edit any product) ---- */
.edit { margin-top: 14px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.edit__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.edit__title { margin: 0; font-family: var(--serif); font-size: 1.15rem; overflow-wrap: anywhere; min-width: 0; }
.edit__step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.edit__editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .edit__editor { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.edit__stage { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.edit__canvas { position: relative; width: 100%; max-width: 640px; }
.edit__canvas canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--bg-fff, #fff); border: 1px solid var(--rule); border-radius: 10px; }
.edit__canvas canvas.is-drawing { touch-action: none; cursor: crosshair; }
.edit__canvas .edit__overlay { position: absolute; inset: 0; pointer-events: none; background: transparent; border-color: transparent; }
.edit__controls { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.edit__group { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--rule); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.edit__group legend { padding: 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.edit__group .fix__buttons { margin-top: 0; }
.edit__slider { display: flex; flex-direction: column; gap: 4px; }
.edit__slider-label { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.edit__slider input[type='range'] { width: 100%; accent-color: var(--gold-deep); min-height: 44px; }
/* once a photo is being edited, the picker shrinks to a strip so the canvas is near the top on a phone */
.fix__photos.edit__strip { grid-template-columns: repeat(auto-fill, minmax(52px, 64px)); gap: 6px; }
.fix__photos.edit__strip .small { font-size: 0.8rem; }

/* ---- White photos tab ---- */
.wpage__card { display: flex; flex-direction: column; gap: 16px; }
.wpage__head { display: flex; flex-direction: column; gap: 4px; }
.wpage__title { margin: 0; font-family: var(--serif); font-size: 1.6rem; }
.wpage .edit { margin-top: 0; padding: 0; border: 0; background: none; }
.wgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.wgrid li { min-width: 0; display: flex; }
.wtile { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left; font: inherit; color: inherit; background: var(--bg-fff, #fff); border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; min-width: 0; }
.wtile:hover:not(:disabled) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wtile:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.wtile:disabled { cursor: wait; opacity: 0.7; }
.wtile__img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--cream); border-radius: 8px; display: block; }
.wtile__img--none { display: grid; place-items: center; color: var(--ink-soft); font-size: 0.8rem; }
.wtile__title { font-size: 0.92rem; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wtile__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.wtile__tag { font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; }
.wtile__tag--ok { color: var(--moss); background: var(--moss-wash); }
.wtile__tag--warn { color: var(--gold-text); background: var(--gold-wash); }
.wtile__tag--bad { color: var(--rust-text); background: var(--rust-wash); }
.wtile__tag--plain { color: var(--ink-soft); background: var(--cream); }

/* Post to Instagram (ticket 24) */
.igpost { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.igpost__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.igpost__title { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.igpost__preview { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 640px) { .igpost__preview { grid-template-columns: minmax(0, 1fr); } }
.igpost__img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-fff, #fff); border: 1px solid var(--rule); border-radius: 10px; display: block; }
.igpost__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.igpost__label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; font-weight: 500; }
.igpost__caption { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; font: inherit; font-size: 1rem; line-height: 1.4; background: var(--bg-fff, #fff); resize: vertical; min-height: 140px; }
.igpost .button { min-height: 44px; }
.igpost .result { margin-top: 4px; flex-wrap: wrap; }
.ig .button { min-height: 44px; }
.ig .actions__buttons { margin-top: 12px; }
.ig__accounts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.ig__accounts .chip--button { min-height: 44px; padding-inline: 14px; }

/* Instagram compose (ticket 29) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.igc__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.igc__block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.igc__label { margin: 0; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 0.92rem; font-weight: 500; }
.igc__label .muted { font-weight: 400; }
.igc__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.igc__photo { position: relative; width: 100%; padding: 0; border: 2px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); cursor: pointer; overflow: hidden; display: block; }
.igc__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.igc__photo.is-active { border-color: var(--moss); box-shadow: 0 0 0 2px var(--moss); }
.igc__photo:disabled { cursor: default; }
.igc__photo:disabled:not(.is-active) { opacity: 0.45; }
.igc__badge { position: absolute; top: 4px; left: 4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--moss); color: var(--fg-fff, #fff); font-size: 0.9rem; font-weight: 600; display: grid; place-items: center; }
.igc__swipe { min-width: 0; }
.igc__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 10px; scrollbar-width: none; }
.igc__track::-webkit-scrollbar { display: none; }
.igc__slide { flex: 0 0 100%; scroll-snap-align: center; }
.igc__dots { margin: 8px 0 0; display: flex; justify-content: center; gap: 6px; }
.igc__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.igc__dot.is-active { background: var(--ink); }
.igc__check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.95rem; cursor: pointer; }
.igc__check input { width: 22px; height: 22px; flex: none; accent-color: var(--moss); }
.igc__select, .igc__input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; font: inherit; font-size: 1rem; background: var(--bg-fff, #fff); min-width: 0; }
.igc__select { margin-top: 4px; }
.igc__quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--rule); background: var(--cream); border-radius: 0 8px 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.igc__final { font-size: 0.92rem; }
.igc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.igc__chip { min-height: 44px; padding-inline: 14px; }
.igc__chip--word.is-used { color: var(--moss); background: var(--moss-wash); border-color: transparent; cursor: default; }
.igc__add { display: flex; gap: 8px; }
.igc__add .igc__input { flex: 1; }
.igt__details { margin-top: 14px; border-top: 1px dashed var(--rule); padding-top: 12px; }
.igt__details > summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.igt { display: flex; flex-direction: column; gap: 12px; }
.igt__block { margin: 0; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.igt__text { min-height: 84px; }
.igt__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.igt .button, .igt__open, .igt__close { min-height: 44px; }
.igt__row .chip--button { min-height: 44px; padding-inline: 14px; }
.igt__open, .igt__close { align-self: flex-start; }
.igt__panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: 10px; background: var(--paper); }
.igt__details > summary .muted { font-weight: 400; font-size: 0.92rem; }
.igt__details > summary { list-style: none; }
.igt__details > summary::-webkit-details-marker { display: none; }
.igt__details > summary::before { content: '▸'; width: 1em; flex: none; }
.igt__details[open] > summary::before { content: '▾'; }
.igt__details[open] > summary { margin-bottom: 6px; }

/* Instagram schedule (ticket 30) */
.when { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--cream); }
.when .igc__label { flex-direction: column; align-items: stretch; }
.when .button { min-height: 44px; justify-content: center; }
.igq { display: flex; flex-direction: column; gap: 16px; }
.igq__card { display: flex; flex-direction: column; gap: 10px; }
.igq__card .card__head { margin-bottom: 0; }
/* Rabbit Hole pieces on the website (ticket 53) */
.booth__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.booth__row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule); min-width: 0; }
.booth__row:first-child { border-top: 0; padding-top: 0; }
.booth__name { margin: 0; overflow-wrap: anywhere; }
.booth__row .button { min-height: 48px; align-self: flex-start; }
.booth__sure { display: flex; flex-direction: column; gap: 8px; }
.booth__market { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--cream); min-width: 0; }
.booth__words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.booth__wordshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.booth__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; }
.booth__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.booth__photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.booth__tick { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; }
.booth__move { display: flex; flex-direction: column; gap: 8px; }
.booth__to { min-height: 44px; padding-inline: 14px; }
.booth__to[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.booth__find { flex: 1; min-width: 0; }
.booth__found { display: flex; align-items: center; gap: 10px; }
.booth__found img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.booth__price { margin: 0; }
.booth__tick input { width: 24px; height: 24px; flex: none; }
.igq__times { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.igq__time { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-fff, #fff); }
.igq__time .chip--button { min-height: 44px; padding-inline: 14px; }
.igq__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.igq__post { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-fff, #fff); min-width: 0; }
.igq__row { display: flex; gap: 12px; min-width: 0; }
.igq__thumb { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: var(--cream); }
.igq__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.igq__text p { margin: 0; }
.igq__title { font-weight: 500; overflow-wrap: anywhere; }
.igq__caption { max-height: 7.5em; overflow: auto; }
.igq__confirm { padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--gold-wash); }
.igq__confirm p { margin: 0 0 8px; }
.igq .button { min-height: 44px; }
.edit__back, .ignew__back { min-height: 44px; padding-inline: 14px; flex: none; }
.ignew .button { min-height: 44px; }
.ignew .result { flex-wrap: wrap; }
.ignew .edit__head h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ignew__chips { margin-top: 0; }
.ignew__chip { min-height: 44px; padding-inline: 14px; }
.ignew__posted { align-self: flex-start; }

/* Instagram manage list (ticket 31) */
.igm__row { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-fff, #fff); min-width: 0; }
.igm__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px !important; font-size: 0.92rem; }
.igm__tags a { color: var(--gold-text); min-height: 44px; display: inline-flex; align-items: center; }
.igm__shop { margin-top: 6px; padding: 12px; border: 1px dashed var(--rule); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.igm__shop p { margin: 0; }
.igm__address { overflow-wrap: anywhere; }
.igm__address a { color: var(--gold-text); }
.igm__chip { min-height: 44px; padding-inline: 14px; }

/* Instagram closing pictures (ticket 36) */
.igx__new { margin-top: 4px; }
.igx__modes { display: flex; flex-wrap: wrap; gap: 8px; }
.igx__modes .chip--button { min-height: 44px; padding-inline: 14px; }
.igx__modes .chip--button[aria-pressed="true"] { color: var(--moss); background: var(--moss-wash); border-color: transparent; }
.igx__canvas { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; align-self: center; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); }
.igx__remove { align-self: flex-start; min-height: 44px; }

/* Instagram claims and automatic replies (ticket 34) */
.igl__parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.igl__parts .badge { display: inline-block; min-width: 38px; text-align: center; margin-right: 6px; }
.igl__steps { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.igl__claims { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.igl__claim { padding: 10px 12px; border-left: 3px solid var(--rule); background: var(--cream); border-radius: 0 8px 8px 0; min-width: 0; }
.igl__claim p { margin: 0; overflow-wrap: anywhere; }
.igl__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.igl__said { font-size: 0.95rem; margin-top: 2px; }
a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* A card for each piece (ticket 39) */
.igx__look { width: 100%; max-width: 320px; align-self: center; height: auto; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); }
.igx__line { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: start; }
.igx__line[hidden] { display: none; }
@media (max-width: 420px) { .igx__line { grid-template-columns: minmax(0, 1fr); } }
.igx__mini { width: 132px; height: 132px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg-fff, #fff); }
.igx__mark { display: inline-block; align-self: flex-start; margin-top: 4px; }

/* Ticket 41: posts made in the Instagram app */
.igap__suggestion { display: flex; align-items: center; gap: 10px; min-width: 0; }
.igap__nopic { display: grid; place-items: center; text-align: center; font-size: 0.8rem; line-height: 1.1; color: var(--ink-soft); padding: 2px; }
.igap__small { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: var(--cream); display: block; }
.igap__yes { flex: 1; min-width: 0; min-height: 48px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.igap__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.igap__buttons .button { flex: 1 1 150px; min-height: 44px; }
.igap__picker { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.igap__picker .chip--button { align-self: flex-start; min-height: 44px; padding-inline: 14px; }
.igap__found { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.igap__pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 4px 10px 4px 4px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.igap__pick:disabled { opacity: 0.6; cursor: default; }
.live__text { margin: 0; overflow-wrap: anywhere; font-size: 1.05rem; }
.live__claim { border-color: var(--gold); background: var(--gold-wash); }
.live__number { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; overflow-wrap: anywhere; }
.live__number .chip--button, .live__close { min-height: 44px; padding-inline: 14px; align-self: flex-start; }
.live__buyers { padding: 12px; border: 1px solid var(--gold); border-radius: 12px; background: var(--gold-wash); }
.prowl__line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; overflow-wrap: anywhere; }
.prowl__chosen { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.igap__pick[aria-pressed="true"] { border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); }
.igap__decided { border-top: 1px dashed var(--rule); padding-top: 10px; }
.igap__decided summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.igap__decided[open] summary { margin-bottom: 8px; }
.igl__scope { margin-top: 0; font-size: 0.92rem; }

/* Ticket 43: price, search and order in the "Pick a product" grid */
.wtile__tags { align-items: center; }
.wtile__price { font-weight: 700; font-size: 0.95rem; margin-right: auto; }
.ignew__search .button { min-height: 44px; }
.ignew__found { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ignew__sort { display: flex; align-items: center; gap: 10px; }
.ignew__sort .igc__label { margin: 0; flex: none; }
.ignew__sort .igc__select { flex: 1; }

/* Rabbit Hole pieces for sale on Etsy (ticket 44) */
.rhwarn { background: var(--gold-wash); border-color: var(--bd-e2cc86, #e2cc86); display: flex; flex-direction: column; gap: 12px; }
.rhwarn .card__head { margin-bottom: 0; border-bottom-color: var(--bd-e2cc86, #e2cc86); }
.rhwarn p { margin: 0; }
.rhwarn__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rhwarn__item { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--bd-e2cc86, #e2cc86); border-radius: 12px; background: var(--paper); min-width: 0; }
.rhwarn__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.rhwarn__title { font-weight: 500; overflow-wrap: anywhere; }
.rhwarn__links { display: flex; flex-wrap: wrap; gap: 10px; }
.rhwarn__links .button { min-height: 44px; }
/* "Move to Collection" on an Inventory row: a full tap target; what happened, in the row. */

.putback__results { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
/* "Switch on in Etsy" on an Inventory row: under the state tag, a full tap target. */

/* Ticket 46: the List tab */
.list { display: flex; flex-direction: column; gap: 16px; }
.list__message { margin: 0; position: sticky; bottom: 8px; z-index: 2; }
.list__wide { width: 100%; min-height: 48px; white-space: normal; }
.list__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.list__thumbs li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.list__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: var(--cream); display: block; }
.list__thumbs .chip--button { min-height: 44px; padding-inline: 4px; font-size: 0.9rem; }
.list__field { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.list__field > input, .list__field > textarea { flex: 1; min-width: 0; }
.list__text { min-height: 0; }
.list__copy { flex: none; min-height: 44px; min-width: 64px; padding-inline: 10px; }
.list__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .list__pair { grid-template-columns: minmax(0, 1fr); } }
.list__todo ul, .list__review ul { margin: 4px 0 0; padding-left: 20px; }
.list__link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 44px; }
.list__range { margin: 0; font-weight: 600; }
.list__solds, .list__facts, .list__posted { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; overflow-wrap: anywhere; }
.list__review { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; background: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.list__review dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 0.95rem; }
.list__review dt { color: var(--ink-soft); }
.list__review dd { margin: 0; overflow-wrap: anywhere; }
/* Tabs never run off the screen. On a wider screen they wrap if they must. On a phone they are one row of equal
   columns, so all five are in sight and the same size; a longer name ("White photos", "Instagram (2)") takes two lines. */
.tabs { flex-wrap: wrap; row-gap: 0; }

@media (max-width: 520px) {
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }

}

/* Haul mode in the List tab (ticket 47), from the approved design (tickets/out/ux-47). */
.haul { display: flex; flex-direction: column; gap: 14px; padding-bottom: 150px; }
.haul__card { display: flex; flex-direction: column; gap: 10px; }
.haul__title { margin: 0; font-family: var(--serif); font-size: 1.5rem; }
.haul__counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.haul__count { padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--rule); font-size: 0.92rem; }
.haul__count strong { font-variant-numeric: tabular-nums; }
.haul__count--check { background: var(--gold-wash); border-color: var(--bd-e2cc86, #e2cc86); }
.haul__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.haul__filters .chip--button { min-height: 44px; padding-inline: 14px; }
.haul__saved { margin: 0; color: var(--moss); font-size: 0.92rem; }

.haul__item { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.haul__item--check { border-color: var(--bd-e2cc86, #e2cc86); box-shadow: 0 0 0 2px var(--gold-wash); }
.haul__item--rh { background: var(--cream); }
.haul__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.haul__name { margin: 0; font-weight: 600; font-size: 1.02rem; }
.haul__name .muted { font-weight: 400; }
.haul__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.haul__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.haul__photo { position: relative; display: block; width: 100%; padding: 0; border: 2px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); overflow: hidden; cursor: pointer; }
.haul__photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.haul__nothumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; padding: 6px; font-size: 0.8rem; text-align: center; color: var(--ink-soft); }
.haul__photo.is-ticked { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.haul__photo.is-out img { opacity: 0.35; filter: grayscale(1); }
.haul__tick { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bd-fff, #fff); background: rgba(61, 43, 31, 0.35); display: grid; place-items: center; color: var(--fg-fff, #fff); font-size: 0.8rem; font-weight: 700; }
.is-ticked .haul__tick { background: var(--ink); }
.haul__badge { position: absolute; left: 4px; bottom: 4px; padding: 1px 7px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--moss); color: var(--fg-fff, #fff); }
.haul__badge--out { background: var(--ink-soft); }
.haul__cut { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--gold-text); font-size: 0.9rem; font-weight: 600; }
.haul__cut::before, .haul__cut::after { content: ''; flex: 1; border-top: 2px dashed var(--bd-d9b95c, #d9b95c); }
.haul__hint { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--gold-wash); border: 1px solid var(--bd-e2cc86, #e2cc86); }
.haul__hint p { margin: 0; font-size: 0.95rem; }
.haul__hint--flag { background: var(--rust-wash); border-color: var(--bd-e7b9a4, #e7b9a4); }
.haul__row { display: flex; flex-wrap: wrap; gap: 8px; }
.haul__row .button, .haul__bar .button { min-height: 44px; }
.haul__rh { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.95rem; cursor: pointer; }
.haul__rh input { width: 22px; height: 22px; flex: none; accent-color: var(--moss); }
.haul__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--rule); padding-top: 8px; }

/* The bar that stays at the bottom of the screen. */
.haul__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--ink); box-shadow: 0 -12px 28px -18px rgba(61, 43, 31, 0.5); display: flex; flex-direction: column; gap: 8px; }
.haul__bar p { margin: 0; font-size: 0.92rem; }
.haul__bar-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.haul__bar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.haul__bar-grid .button, .haul__wide { justify-content: center; }
.haul__wide { width: 100%; }
.haul__link { font: inherit; background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--gold-text); text-decoration: underline; cursor: pointer; }

/* Sheets (Move to…, and the last check before "These groups are right"). */
.haul__shade { position: fixed; inset: 0; z-index: 9; background: rgba(61, 43, 31, 0.45); display: flex; align-items: flex-end; }
.haul__sheet { width: 100%; max-height: 82vh; overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; border-top: 5px solid var(--gold); padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.haul__sheet h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.haul__sheet p { margin: 0; }
.haul__dest { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px; text-align: left; font: inherit; color: inherit; background: var(--bg-fff, #fff); border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; }
.haul__dest img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.haul__dest--new { border-style: dashed; background: var(--cream); }
.haul__dest small { display: block; color: var(--ink-soft); }
.haul__sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.haul__sum li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--rule); }

/* Upload */
.haul__meter { height: 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--rule); overflow: hidden; }
.haul__meter span { display: block; height: 100%; background: var(--moss); }
.haul__meter--stopped span { background: var(--gold-deep); }
.haul__big { margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.haul__now { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.haul__now li { display: flex; align-items: center; gap: 10px; }
.haul__now img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--rule); }
.haul__now li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.haul__dots { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.haul__dots i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--rule); }
.haul__dots i.s-done { background: var(--moss); }
.haul__dots i.s-now { background: var(--gold); }
.haul__dots i.s-bad { background: var(--rust); }
.haul__key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; color: var(--ink-soft); margin: 0; padding: 0; list-style: none; }
.haul__key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: var(--rule); }
.haul--plain { padding-bottom: 0; }
.haul__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.haul__cell { position: relative; min-width: 0; }
.haul__cell:has(.haul__cut) { display: contents; }
.haul__big-note { font-family: var(--sans); font-size: 1rem; }
.haul__bar-all { grid-column: 1 / -1; }
.haul__link--left { align-self: flex-start; }
.haul__link:disabled { opacity: 0.5; cursor: default; }
.haul__photo:disabled { cursor: default; }
.haul__now li { font-size: 0.92rem; overflow-wrap: anywhere; }
.haul__dots i.s-done, .haul__key i.s-done { background: var(--moss); }
.haul__key i.s-now { background: var(--gold); }
.haul__key i.s-bad { background: var(--rust); }
.haul__bar .warn-text { margin: 0; }

/* Haul drafts (ticket 48). */
.hauld__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; min-height: 56px; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hauld__head img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--rule); }
.hauld__title { flex: 1; min-width: 0; }
.hauld__title small { display: block; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hauld__head .wtile__tag { flex: none; position: static; }

/* Listing videos (ticket 50). */
.lvideo { display: flex; flex-direction: column; gap: 10px; }
.lvideo__title { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.lvideo__player { display: block; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 12px; background: var(--bg-000, #000); border: 1px solid var(--rule); }
.haul__item .lvideo { border-top: 1px dashed var(--rule); padding-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Overview (ticket 51, round 3): long cards fold on a phone */
.fold__toggle { display: none; margin-left: auto; flex: none; min-height: 44px; padding-inline: 14px; align-items: center; }
.fold__toggle.is-folded { display: inline-flex; }
@media (max-width: 980px) { .fold__toggle { display: inline-flex; } }
.actions__help { margin-top: 12px; }

/* Markup (ticket 51, round 5) */
.row-toggle { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.row-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.loading-line { display: flex; align-items: center; gap: 8px; }
/* Instagram tab in three parts (ticket 51, round 4) */
.igjump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.igjump__to { min-height: 44px; padding-inline: 16px; display: inline-flex; align-items: center; }
.igsec { margin-top: 14px; padding: 0 4px 6px; border-bottom: 2px solid var(--ink); scroll-margin-top: 12px; }
.igsec:focus { outline: none; }
.igsec__title { font-size: 1.5rem; }
/* Wide screens: the cards of a part sit two across, so the page is not one long column. */
@media (min-width: 1100px) {
  .igq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .igq > .ignew, .igq .igsec, .igq > .igpost, .igq .loading-line { grid-column: 1 / -1; }
}
/* One button system (ticket 51, round 2) */
/* A chip that does something (Remove, Copy, Close) looks like a small button, not like a filter. */
.chip--action { background: var(--bg-fff, #fff); border-color: var(--ink-soft); border-radius: 10px; color: var(--ink); font-weight: 500; }
.chip--action:disabled { opacity: 0.45; cursor: not-allowed; }
/* Every "Back to ..." control looks the same: a plain link with an arrow, top left. */
.chip.edit__back, .chip.ignew__back, .haul__link--left {
  align-self: flex-start; background: none; border: 0; border-radius: 0; padding: 0 8px 0 0; min-height: 44px;
  color: var(--gold-text, #765b15); font: inherit; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.chip.edit__back::before, .chip.ignew__back::before, .haul__link--left::before { content: '‹'; display: inline-block; margin-right: 6px; text-decoration: none; }
.chip.edit__back:disabled, .chip.ignew__back:disabled { opacity: 0.5; cursor: default; }
/* A gold button that cannot be pressed yet does not look like the next step. */
.button--primary:disabled { background: var(--paper); }
/* Page titles are one size on every tab. */
.haul__title { font-size: 1.6rem; }

/* After the independent walk (ticket 51, round 8) */
/* One focus ring everywhere, dark enough to see on paper and cream (ink is over 11:1 on both). */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.button:focus-visible, .link-button:focus-visible, .row-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .wtile:focus-visible, .row-toggle:focus-visible, .chip--button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fix__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.fix__bar .chips { margin: 0; }
/* Links that stand alone in a table cell or a line are as easy to tap as buttons. */
.igq__post a:not(.button), .igm__address a, .list__posted a, .list__solds a, .result a { display: inline-flex; align-items: center; min-height: 44px; }

/* Inventory on a phone (ticket 51, round 9): the title stays in view while the table is swiped */
.inv-swipe { display: none; margin: 0 0 8px; }
@media (max-width: 700px) {
  .inv-swipe { display: block; }

  .inv-title { min-width: 0; width: 150px; max-width: 150px; overflow-wrap: anywhere; }
}
.tag { white-space: nowrap; }
/* A screen that takes the keyboard when it opens shows no ring around the whole page. */
main[tabindex="-1"]:focus { outline: none; }
.haul__sheet:focus { outline: none; }
/* Phone header at the bigger text size: one line for the name, no wrapped brand line (it is in the footer too). */
.pill { white-space: nowrap; }
/* Recent runs on a phone: the "Calls" count is a developer's number; it is left off where room is short. */
@media (max-width: 700px) {
  [aria-labelledby='runs-title'] .table th:last-child, [aria-labelledby='runs-title'] .table tr:not(.log-row) td:last-child { display: none; }
}

/* Small things from the independent walk (ticket 51, round 15) */
/* The compose buttons stay at the bottom of the screen on a phone while the post is written. */
@media (max-width: 700px) {
  .igc__actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--ink); box-shadow: 0 -12px 28px -18px rgba(61, 43, 31, 0.6); }
  .igc__actions .button { flex: 1 1 auto; justify-content: center; }
  /* room so the end of the compose card can be scrolled clear of the bar */
  .igq:has(.igc__actions) { padding-bottom: 150px; }
}
/* One gold button at a time on a queued post: while its time picker, caption editor or confirm is open, that is the next step. */
.igq__post:has(.when) > .fix__buttons .button--primary, .igq__post:has(.igc__block) > .fix__buttons .button--primary, .igq__post:has(.igq__confirm) > .fix__buttons .button--primary { background: var(--paper); }
/* "On" / "Off" on the White photos card is a label, so it no longer looks like a switch to press. */
.switch { gap: 0; padding: 2px 10px; border: 1px solid currentColor; border-radius: 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; background: var(--cream); }
.switch--on { background: var(--moss-wash); }
.switch__track { display: none; }
/* Room under the List page, so its last button can be scrolled clear of the note pinned to the bottom. */
.list { padding-bottom: 96px; }

/* A half-written post, kept when the compose screen is left (ticket 51, round 16) */
.igdraft { border: 1px solid var(--gold); background: var(--gold-wash); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.igdraft p { margin: 0; }

/* From the second independent walk (ticket 51, round 17) */
/* Phone header: a longer status ("Needs setup") wraps under the name instead of pushing Sign out off the screen. */
/* Inventory search and Export stay inside the card on a narrow phone. */
.inv-toolbar__row { flex-wrap: wrap; }
.inv-search { min-width: 0; flex: 1 1 160px; }
.inv-toolbar__row .button { white-space: nowrap; }
/* Piece names that are links are as easy to tap as buttons. */
.booth__name a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) {
  /* when the status does not fit beside the name, it goes on a line of its own under it */

}

/* Small things from the second walk (ticket 51, round 18) */
.tile__value { white-space: nowrap; }
@media (max-width: 520px) { .tile__value { font-size: 1.5rem; } }
.banner .button { flex: none; min-height: 44px; }
.igsec { position: relative; }
.igsec__top { position: absolute; right: 0; bottom: 0; }

/* Phone sub-menus (Matt, 2026-11-18): a long tab shows one part at a time, picked in a menu that stays under the tabs */
.submenu { display: none; }
.part { display: contents; }
@media (max-width: 700px) {
  .submenu { display: flex; gap: 6px; position: sticky; top: 0; z-index: 6; margin: -6px -14px 0; padding: 8px 14px; background: var(--cream); border-bottom: 1px solid var(--rule); box-shadow: 0 6px 10px -10px rgba(61, 43, 31, 0.6); }
  .submenu__item { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 8px; font: 500 0.95rem var(--sans); color: var(--ink-soft); background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; }
  .submenu__item.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .part:not(.is-on) { display: none; }
  /* with the menu, the long page's own signposts and its intro words are not needed */
  .igjump, .igsec { display: none; }
  .igq > .ignew > .muted.small:first-of-type { display: none; }
}

/* After a dry run (ticket 51, round 19) */
.actions__next { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions__next .button { min-height: 44px; }
@media (max-width: 700px) { main[data-part='changes'] .grid .plan { order: -4; } }

/* From the third independent walk (ticket 51, round 20) */
@media (max-width: 700px) {
  /* a card scrolled to lands below the sub-menu, not behind it */
  main .card, main .tiles { scroll-margin-top: 72px; }
  /* nothing is folded on a phone any more, so the fold buttons are not needed there */
  .fold__toggle:not(.is-folded) { display: none; }
}
#plan-title:focus { outline: none; }

/* the tab names on the narrowest phones stay at 14px or more */
.iganchor { display: block; height: 0; grid-column: 1 / -1; scroll-margin-top: 12px; margin-bottom: -16px; }
.iganchor:focus { outline: none; }
/* "Stock went down with no order", asked inside the piece sheet */
.sheet-ask { padding: 12px; border: 1px solid var(--bd-e2cc86, #e2cc86); border-radius: 12px; }
.sheet-ask p { margin: 0; }

/* The Messages part of the Instagram tab (Instagram direct messages) */
.igdm { display: flex; flex-direction: column; gap: 12px; }
.igdm__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.igdm__thread { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-fff, #fff); font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.igdm__thread.is-new { border-color: var(--gold); background: var(--gold-wash); }
.igdm__thread:disabled { opacity: 0.6; cursor: default; }
.igdm__line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.igdm__name { font-weight: 600; overflow-wrap: anywhere; }
.igdm__when { margin-left: auto; white-space: nowrap; }
.igdm__new { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.igdm__preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.igdm__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.igdm__back { min-height: 44px; }
.igdm__who { margin: 0; overflow-wrap: anywhere; }
.igdm__messages { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--cream); }
.igdm__msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 85%; }
.igdm__msg.is-mine { align-self: flex-end; align-items: flex-end; }
.igdm__bubble { padding: 8px 12px; border-radius: 14px; background: var(--bg-fff, #fff); border: 1px solid var(--rule); white-space: pre-wrap; overflow-wrap: anywhere; }
.igdm__msg.is-mine .igdm__bubble { background: var(--gold-wash); border-color: var(--gold); }
.igdm__bubble--other { font-style: italic; color: var(--ink-soft); }
.igdm__reply { display: flex; flex-direction: column; gap: 8px; }
.igdm__reply .button--primary { min-height: 48px; min-width: 120px; }
/* "Hold a piece for this person" inside a conversation */
.igdmh { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-top: 1px dashed var(--rule); padding-top: 12px; }
.igdmh > * { max-width: 100%; }
.igdmh .button { min-height: 44px; white-space: normal; text-align: left; }
.igdmh__holds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.igdmh__hold { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-fff, #fff); }
.igdmh__hold p, .igdmh__sheet p { margin: 0; }
.igdmh__line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.igdmh__find { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.igdmh__find > .button { align-self: flex-start; }
.igdmh__sheet { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.igdmh__what { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Errors have their own part on a phone (Matt, 2026-11-18) */

.errors__plain { margin-top: 6px; }
.errors__details { margin-top: 4px; }
.errors__details summary, .errors__older summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink-soft); }
.errors__older { margin-top: 12px; border-top: 1px dashed var(--rule); }
.errors__clear { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.errors__clear .button { min-height: 44px; }
@media (max-width: 700px) {
  .submenu__item { padding-inline: 4px; font-size: 0.88rem; }
}

/* From the fifth walk (ticket 51, round 23) */
@media (max-width: 380px) { .submenu__item { font-size: 0.8rem; padding-inline: 2px; overflow-wrap: anywhere; } }
/* A menu with more buttons than fit: it scrolls sideways inside itself, the page does not. */
@media (max-width: 699px) {
  .submenu--scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-inline: 24px; }
  .submenu--scroll::-webkit-scrollbar { display: none; }
  .submenu--scroll .submenu__item { flex: 1 0 auto; padding-inline: 8px; font-size: 0.95rem; white-space: nowrap; overflow-wrap: normal; }
}

/* Inventory: long titles are cut to two lines, with a + to read the rest (Matt, 2026-11-19) */

@media (max-width: 700px) {
  /* a wider title column, and words are no longer broken apart, so they do not stack one to a line */
  .inv-title { width: 45vw; max-width: 45vw; min-width: 150px; overflow-wrap: break-word; }
}

/* Inventory: the sheet for one piece (Matt, 2026-11-19) */

.piece-backdrop { z-index: 9; }
.piece { max-width: 640px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.piece > * { flex-shrink: 0; }
.piece__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -26px; margin: -26px -28px 0; padding: 12px 28px 8px; background: var(--paper); border-bottom: 1px solid var(--rule); z-index: 1; }
.piece .piece__title { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.piece__close { flex: none; min-height: 44px; }
.piece__photos { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 12px; }
.piece__photos li { flex: 0 0 100%; min-height: 200px; scroll-snap-align: center; background: var(--cream); border-radius: 12px; display: grid; place-items: center; }
.piece__photos li:not(:only-child) { flex-basis: 88%; }
.piece__photos img { display: block; max-width: 100%; height: min(40vh, 380px); object-fit: contain; border-radius: 12px; }
.piece__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.piece__price { font-size: 1.25rem; margin-right: 6px; }
.piece__part { font: 600 1.05rem var(--sans); margin: 8px 0 0; padding-top: 12px; border-top: 1px dashed var(--rule); }
.piece__facts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.piece__fact { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 12px; }
.piece__fact dt { color: var(--ink-soft); }
.piece__fact dd { margin: 0; overflow-wrap: anywhere; }
.piece__fact a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 14px; }
.cost { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cost__now { margin: 0; overflow-wrap: anywhere; }
.cost__fields { display: flex; flex-direction: column; gap: 4px; }
.cost__fields label, .cost__pieces label { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; }
.cost__input { min-height: 48px; min-width: 0; width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 0 12px; }
.cost__notes { padding: 10px 12px; }
.cost__ask { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; }
.cost__ask p { margin: 0 0 10px; }
.cost__answers { display: flex; gap: 10px; }
.cost__answers .button, .cost__save { flex: 1; min-height: 48px; }
.cost > .button { min-height: 48px; }
.cost__split { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cost__split label { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.cost__pieces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cost__pieces li { display: flex; flex-direction: column; }
.cost__own { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.cost__own .button { min-height: 48px; }
.cost__audit summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.cost__audit ul { margin: 0; padding-left: 1.2em; }
.inv-costs { display: inline-flex; align-items: center; min-height: 44px; }
.books { display: flex; flex-direction: column; gap: 16px; }
.books__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.books__sale, .books__label { border-top: 1px dashed var(--rule); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.books__head { margin: 0; overflow-wrap: anywhere; }
.books__money { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: 6px 14px; }
.books__money dt { font-size: 0.85rem; color: var(--ink-soft); }
.books__money dd { margin: 0; }
.books__sale > .button, .books__tie .button, .books__label .button { min-height: 48px; align-self: flex-start; }
.books__tie { display: flex; flex-direction: column; gap: 6px; }
.books__tie label, .books label[for="books-file"] { font-size: 0.9rem; color: var(--ink-soft); }
.books__file { padding: 10px 12px; }
.books__tags { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.books__tag { font-size: 0.85rem; border: 1px solid var(--rule); border-radius: 999px; padding: 1px 10px; color: var(--ink-soft); }
.books__tag--off { border-color: var(--ink-soft); color: var(--ink); }
.llink { display: flex; flex-direction: column; gap: 10px; }
.llink h2, .llink h3, .llink p { margin: 0; overflow-wrap: anywhere; }
.llink .button { min-height: 48px; }
.llink__go { align-self: flex-start; }
.llink__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.llink__q { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 10px; }
.llink__cand { display: flex; gap: 10px; align-items: flex-start; }
.llink__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: var(--rule); }
.llink__what { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.llink__tick { width: 28px; height: 28px; flex: none; margin: 4px 0 0; }
.llink__answers { display: flex; flex-wrap: wrap; gap: 8px; }
.llink__made li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.llink__made span { flex: 1 1 12rem; min-width: 0; }
.match { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--rule); border-radius: 8px; padding: 12px; }
.match h3, .match p { margin: 0; overflow-wrap: anywhere; }
.match__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.match__sale { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule); padding-top: 10px; }
.match__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.match__rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.match__rows span { flex: 1 1 12rem; min-width: 0; }
.match .button { min-height: 48px; }
.match__more { display: flex; flex-wrap: wrap; gap: 8px; }
.match__ask { display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--ink-soft); padding-left: 10px; }
.books__back { min-height: 48px; align-self: flex-start; margin-top: 6px; }
.sheets { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--rule); padding-top: 12px; }
.sheets h3 { margin: 0; }
.sheets p { margin: 0; overflow-wrap: anywhere; }
.sheets .button, .sheets__go { min-height: 48px; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sheets .cost__fields .button { margin-top: 8px; }
.books__lines { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.books__lines li { overflow-wrap: anywhere; }
.prices { display: flex; flex-direction: column; gap: 10px; }
.inv-parts { display: flex; gap: 8px; }
.inv-parts .button { flex: 1; min-height: 48px; }
.inv-parts .button.is-on { background: var(--ink); color: var(--paper, #fff); border-color: var(--ink); }
.oldstock { display: flex; flex-direction: column; gap: 10px; }
.oldstock h2, .oldstock p { margin: 0; overflow-wrap: anywhere; }
.oldstock__floor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; max-width: 28rem; }
.oldstock__floor label { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-soft); }
.oldstock__floor .button, .oldstock__see, .oldstock__use { min-height: 48px; }
.oldstock__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.oldstock__piece { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule); }
.oldstock__top { display: flex; gap: 12px; align-items: flex-start; }
.oldstock__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.oldstock__what { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oldstock__title { font-weight: 600; }
.oldstock__see, .oldstock__use { align-self: flex-start; }
.oldstock__open { display: flex; flex-direction: column; gap: 10px; }
.prices__side { display: flex; flex-direction: column; gap: 6px; }
.prices__now { margin: 0; }
.prices__name { display: inline-block; min-width: 4.5em; color: var(--ink-soft); }
.prices__edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.prices__edit label { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-soft); }
.prices__input { min-height: 48px; min-width: 0; width: 100%; font: inherit; font-size: 1rem; padding: 0 12px; }
.prices__edit .button { min-height: 48px; }
.prices__ask { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; }
.prices__ask p { margin: 0 0 10px; }
.prices__answers { display: flex; gap: 10px; }
.prices__answers .button { flex: 1; min-height: 48px; }
.prices__discounts p, .prices__discounts ul { margin: 0; }
.prices__discounts ul { padding-left: 1.2em; }
@media (max-width: 480px) {
  .prices__edit { grid-template-columns: 1fr; }
}
.piece__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.piece__actions > .button, .piece__actions .booth__move > .button { width: 100%; min-height: 48px; }
@media (max-width: 699px) {
  .piece-backdrop { padding: 0; place-items: end stretch; }
  .piece { max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; border-top-width: 5px; padding: 18px 16px 28px; }
  .piece__bar { top: -18px; margin: -18px -16px 0; padding: 8px 16px; }
  .piece__fact { grid-template-columns: 1fr; gap: 0; }
  .piece__fact dt { font-size: 0.9rem; }
}

/* Books: the Ledger (Matt, 2026-11-19): search, filter pills, a panel for each row */
.lgr__find { display: flex; gap: 8px; align-items: stretch; }
.lgr__find .cost__input { flex: 1 1 auto; min-width: 0; min-height: 48px; font-size: 1.05rem; }
.lgr__find .button { flex: none; min-height: 48px; }
/* the pills scroll sideways inside their own row; the page does not */
.lgr__pills { flex: none; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 10px -4px 4px; padding: 2px 4px 6px; }
.lgr__pills::-webkit-scrollbar { display: none; }
.lgr__pills .chip--button { flex: none; white-space: nowrap; }
.lgr__rows { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.lgr__rows.is-loading { opacity: 0.6; }
.lgr__rows li { border-top: 1px solid var(--rule); }
.lgr__row { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 64px; padding: 10px 4px; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.lgr__row:hover { background: var(--cream); }

.biz__sums { margin: 4px 0; padding-left: 18px; }

.ship__head { margin: 12px 0 4px; }
.ship__list { list-style: none; margin: 0; padding: 0; }
.ship__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); }
.ship__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.ship__do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ship__more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.lgr__row.is-picked { background: var(--cream); box-shadow: inset 4px 0 0 var(--moss); }
.lgr__bins { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.lgr__bins-default summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

.tl__list { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.tl__item { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }

.xp__list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.xp__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.lgr__name { font-weight: 600; overflow-wrap: anywhere; }
.lgr__meta { font-size: 0.9rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.lgr__wide { width: 100%; min-height: 48px; margin-top: 10px; }
@media (min-width: 700px) { .lgr__pills { flex-wrap: wrap; overflow: visible; } }
.lgr__add { margin: 6px 0 14px; }
.lgr__form { margin: 6px 0 14px; }

.lgr__form .cost__input, .piece .cost__input { min-height: 48px; font-size: 1.05rem; }
.lgr__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lgr__pair > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lgr__pair .cost__input { width: 100%; min-width: 0; }
.lgr__check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink) !important; font-size: 1rem !important; }
.lgr__check input { width: 22px; height: 22px; }
.lgr__download { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.lgr__download .button { min-height: 44px; display: inline-flex; align-items: center; }

/* "Open" buttons and cross-links (Matt, 2026-11-19: "I need a button to go to Instagram ... link to the Etsy inventory") */

.go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.go__label { flex: 0 0 100%; }
.go__to { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
.go__wide { width: 100%; min-height: 48px; }
.pledger { display: flex; flex-direction: column; gap: 8px; }
.pledger__row { display: flex; flex-direction: column; gap: 8px; }
.pledger p { margin: 0; }
@media (max-width: 699px) { .go__to { flex: 1 1 calc(50% - 4px); } }

/* Books, Reports */
.rep h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.rep__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.rep__pills .chip--button { min-height: 44px; padding-inline: 14px; }
.rep__pills .chip--button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rep__figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.rep__fig { margin: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); min-width: 0; }
.rep__fig dt { font-size: 0.85rem; color: var(--ink-soft); }
.rep__fig dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.rep__fig strong { font-size: 1.3rem; font-family: var(--serif); }
.rep__note { display: block; }
.rep__warn { margin: 8px 0 0; padding: 10px 12px; border-left: 4px solid var(--gold); background: var(--gold-wash); border-radius: 0 8px 8px 0; }
.rep__checks, .rep__sales, .rep__ages { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rep__checks li { padding: 10px 12px; border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--bg-fff, #fff); }
.rep__checks p { margin: 0 0 6px; }
.rep__checks .button { min-height: 44px; }
.rep__sale { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.rep__sale:disabled { cursor: default; opacity: 0.7; }
.rep__name { font-weight: 500; overflow-wrap: anywhere; }
.rep__bar { display: block; height: 6px; border-radius: 3px; background: var(--cream); overflow: hidden; }
.rep__bar i { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--gold-deep); }
.rep__scroll { overflow-x: auto; max-width: 100%; }
.rep__table { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.rep__table th, .rep__table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.rep__table th:first-child { text-align: left; white-space: normal; min-width: 110px; }
.rep__table thead th { font-weight: 500; color: var(--ink-soft); }
.rep__chart { margin: 0; min-width: 0; }
.rep__svg { display: block; width: 100%; height: auto; max-height: 260px; }
.rep__grid { stroke: var(--rule); stroke-width: 1; }
.rep__axis { stroke: var(--ink-soft); stroke-width: 1; }
.rep__tick { font-size: 9px; fill: var(--ink-soft); font-family: var(--sans); }
.rep__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 0.9rem; margin-bottom: 4px; }
.rep__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.rep__legend [role='status'] { flex-basis: 100%; min-height: 1.4em; }
.rep__more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
/* On a phone a wide table becomes one card a row, each figure with its name beside it: nothing to scroll sideways. */
@media (max-width: 640px) {
  .rep__table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rep__table--stack, .rep__table--stack tbody, .rep__table--stack tr, .rep__table--stack th, .rep__table--stack td { display: block; }
  .rep__table--stack tr { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); }
  .rep__table--stack th:first-child { padding: 0 0 4px; border: 0; font-size: 1rem; min-width: 0; }
  .rep__table--stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .rep__table--stack td::before { content: attr(data-label); color: var(--ink-soft); text-align: left; }
}
.rep__fig dd span { display: block; }

/* "Share this flip" (Matt, 2026-11-20): the picture of one sold piece, its choices and its buttons */
.flip { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--cream); min-width: 0; }
.flip__card { display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto; border-radius: 8px; box-shadow: 0 10px 24px -14px rgba(61, 43, 31, 0.6); background: var(--paper); }
.flip__card--story { max-width: 260px; }
.flip__set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.flip__set legend { padding: 0; margin-bottom: 4px; font-size: 0.9rem; color: var(--ink-soft); }
.flip__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flip__buttons .button { flex: 1 1 140px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ==========================================================================================================
   "Owl Sync OS": the new look (Matt's design, docs/design/owl-sync-os.html, 2026-11-20), the only look since the old one was taken out.
   Everything here is under html.os, which is set while signed in. The scope stays on purpose: these rules then win
   over the older ones above, and the sign-in page keeps its own look (taking it off changed 18 of 32 screenshots).
   1. the design's tokens, mapped onto the names the whole stylesheet already uses, so every existing card,
      table and form takes the new colours at once;  2. the frame (side menu, top bar);  3. the components.
   ========================================================================================================== */
html.os {
  /* the design's tokens */
  --os-bg: #f4f5f7;
  --os-surface: #ffffff;
  --os-surface-alt: #f8fafc;
  --os-border: #e2e8f0;
  --os-border-strong: #cbd5e1;
  --os-text: #0f172a;
  --os-muted: #55637a; /* the design's #64748b, a shade darker so small grey text reads (5.9:1 on white) */
  --os-primary: #2563eb;
  --os-primary-hover: #1d4ed8;
  --os-primary-soft: #eff6ff;
  --os-success: #047857; /* the design's #059669, darker so it reads as text (5.5:1) */
  --os-success-soft: #ecfdf5;
  --os-warning: #b45309; /* the design's #d97706, darker so it reads as text (5:1) */
  --os-warning-soft: #fffbeb;
  --os-danger: #b91c1c;
  --os-danger-soft: #fef2f2;
  --os-ig: #c2255c; /* the design's #e1306c, darker so white text on it reads (5.4:1) */
  --os-ig-soft: #fdf2f8;
  --os-side: #0f172a;
  --os-side-text: #cbd5e1;
  --os-side-on: #1e293b;
  /* ...and the same, under the names the existing rules use */
  --ink: var(--os-text);
  --ink-soft: var(--os-muted);
  --gold: var(--os-primary);
  --gold-deep: var(--os-primary-hover);
  --gold-text: var(--os-primary-hover);
  --gold-wash: var(--os-primary-soft);
  --paper: var(--os-surface);
  --cream: var(--os-bg);
  --rule: var(--os-border);
  --moss: var(--os-success);
  --moss-wash: var(--os-success-soft);
  --rust: var(--os-danger);
  --rust-text: var(--os-danger);
  --rust-wash: var(--os-danger-soft);
  --serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --os-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.14);
  background: var(--os-bg);
  /* The design is drawn at 13 px; Matt asked for bigger text (2026-11-18), so the type scale is kept and set a
     little larger: 15 px on a computer, 17 px on a phone. Every size is in rem, so it all follows. */
  font-size: 93.75%;
}
@media (max-width: 899px) { html.os { font-size: 106.25%; } }
html.os body { background: var(--os-bg); line-height: 1.45; }
html.os h1, html.os h2, html.os h3 { font-weight: 700; letter-spacing: -0.02em; }

/* ---- 2. the frame ---- */
.os-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.os-side { background: var(--os-side); color: var(--os-side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--os-side-on); }
.os-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid var(--os-side-on); }
.os-brand__name { font-weight: 700; font-size: 1rem; color: var(--fg-fff, #fff); letter-spacing: -0.02em; line-height: 1.2; }
.os-brand__shop { font-size: 0.75rem; color: var(--fg-94a3b8, #94a3b8); line-height: 1.2; }
.os-side__close { display: none; }
.os-nav { padding: 12px 10px 4px; }
.os-nav__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-94a3b8, #94a3b8); padding: 0 10px 6px; font-weight: 600; }
.os-nav__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 6px; color: var(--os-side-text); font-weight: 500; text-decoration: none; margin-bottom: 2px; }
.os-nav__item:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg-fff, #fff); }
.os-nav__item.is-on { background: var(--os-primary); color: var(--fg-fff, #fff); }
.os-nav__count { font-size: 0.78rem; background: rgba(255, 255, 255, 0.14); padding: 1px 7px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.os-side__foot { margin-top: auto; padding: 12px 14px 16px; border-top: 1px solid var(--os-side-on); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.8rem; color: var(--fg-94a3b8, #94a3b8); }
.os-side__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--os-side-text); font: inherit; text-decoration: underline; cursor: pointer; }
.os-side__keys { flex: 0 0 100%; }
.os-side__keys kbd, .os-search__key { font: 600 0.75rem var(--mono); border: 1px solid var(--os-border-strong); border-radius: 4px; padding: 0 5px; }
.os-side__keys kbd { border-color: var(--bd-475569, #475569); color: var(--os-side-text); }
.os-side :focus-visible { outline: 3px solid var(--bd-fff, #fff); outline-offset: 2px; }
.os-scrim { display: none; }

.os-main { min-width: 0; display: flex; flex-direction: column; }
.os-top { position: sticky; top: 0; z-index: 8; min-height: 56px; background: var(--os-surface); border-bottom: 1px solid var(--os-border); padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.os-menu { display: none; }
.os-search { position: relative; flex: 1 1 260px; max-width: 460px; min-width: 0; }
.os-search__input { width: 100%; min-height: 40px; padding: 7px 36px 7px 12px; border: 1px solid var(--os-border-strong); border-radius: 6px; font: inherit; background: var(--os-surface-alt); color: var(--os-text); }
.os-search__input:focus { background: var(--bg-fff, #fff); border-color: var(--os-primary); }
.os-search__key { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--os-muted); background: var(--bg-fff, #fff); pointer-events: none; }
.os-search__panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--os-surface); border: 1px solid var(--os-border); border-radius: 8px; box-shadow: var(--os-shadow-lg); max-height: min(70vh, 520px); overflow-y: auto; min-width: min(92vw, 320px); }
.os-search__status { padding: 8px 12px; font-size: 0.85rem; color: var(--os-muted); border-bottom: 1px solid var(--os-border); }
.os-search__list { list-style: none; margin: 0; padding: 4px; }
.os-search__hit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.os-search__hit.is-at { background: var(--os-primary-soft); }
.os-search__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-search__about { grid-column: 2; font-size: 0.85rem; color: var(--os-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.os-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 7px 12px; border-radius: 6px; font: 600 0.87rem var(--sans); cursor: pointer; border: 1px solid var(--os-border-strong); background: var(--os-surface); color: var(--os-text); white-space: nowrap; text-decoration: none; }
.os-btn:hover { background: var(--os-surface-alt); }
.os-btn--primary { background: var(--os-primary); color: var(--fg-fff, #fff); border-color: var(--os-primary); }
.os-btn--primary:hover { background: var(--os-primary-hover); }
.os-btn--ig { background: var(--os-ig); color: var(--fg-fff, #fff); border-color: var(--os-ig); }
.os-btn--ig:hover { background: var(--os-ig); opacity: 0.92; }
.os-toast { position: fixed; right: 18px; bottom: 18px; z-index: 100; max-width: min(92vw, 420px); background: var(--os-side); color: var(--fg-fff, #fff); padding: 10px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; box-shadow: var(--os-shadow-lg); }
.os-content { padding: 20px; min-width: 0; }
.os-head { margin-bottom: 14px; }
.os-head__title { font-size: 1.3rem; }
.os-head__about { font-size: 0.9rem; color: var(--os-muted); }
.os-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--os-border); padding-bottom: 10px; }
.os-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 5px 12px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; color: var(--os-muted); text-decoration: none; }
.os-tab:hover { background: var(--os-border); color: var(--os-text); }
.os-tab.is-on { background: var(--os-text); color: var(--fg-fff, #fff); }
.os-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.os-pill--green { background: var(--os-success-soft); color: var(--os-success); }
.os-pill--amber { background: var(--os-warning-soft); color: var(--os-warning); }
.os-pill--red { background: var(--os-danger-soft); color: var(--os-danger); }
.os-pill--blue { background: var(--os-primary-soft); color: var(--os-primary-hover); }
.os-pill--ig { background: var(--os-ig-soft); color: var(--os-ig); }
.os-pill--gray { background: var(--bg-f1f5f9, #f1f5f9); color: var(--fg-475569, #475569); }
.os-side .os-pill--green { background: rgba(16, 185, 129, 0.18); color: var(--fg-6ee7b7, #6ee7b7); }
.os-side .os-pill--amber { background: rgba(245, 158, 11, 0.18); color: var(--fg-fcd34d, #fcd34d); }
.os-side .os-pill--red { background: rgba(239, 68, 68, 0.2); color: var(--fg-fca5a5, #fca5a5); }

/* ---- 3. today's pages inside the frame, in the design's components ---- */
html.os .page { max-width: none; margin: 0; padding: 0; }
html.os .footer { margin-top: 28px; text-align: left; letter-spacing: 0; }
html.os .layout { gap: 16px; }
html.os .card, html.os .tile { border-radius: 8px; padding: 16px; }
html.os .card__head { margin-bottom: 12px; padding-bottom: 10px; border-bottom-style: solid; }
html.os .card__head h2, html.os .cost > h2 { font-size: 1.1rem; }
html.os .tile::before { display: none; }
html.os .tile__label { font-size: 0.78rem; letter-spacing: 0.04em; }
html.os .tile__value { font-size: 1.6rem; font-weight: 700; }
/* buttons: flat, 6 px corners, the design's blue for the main one */
html.os .button { border: 1px solid var(--os-border-strong); border-radius: 6px; box-shadow: none; background: var(--os-surface); color: var(--os-text); font-weight: 600; transform: none; }
html.os .button:hover:not(:disabled), html.os .button:active:not(:disabled) { transform: none; box-shadow: none; background: var(--os-surface-alt); }
html.os .button--primary { background: var(--os-primary); border-color: var(--os-primary); color: var(--fg-fff, #fff); }
html.os .button--primary:hover:not(:disabled) { background: var(--os-primary-hover); }
html.os .button--primary:disabled { background: var(--os-surface-alt); color: var(--os-muted); border-color: var(--os-border-strong); opacity: 1; }
html.os .button--danger { background: var(--os-danger); border-color: var(--os-danger); color: var(--fg-fff, #fff); box-shadow: none; }
html.os .button--danger:hover:not(:disabled) { background: var(--bg-991b1b, #991b1b); }
html.os a { color: var(--os-primary-hover); }
html.os a.button, html.os a.os-btn, html.os a.os-nav__item, html.os a.os-tab { color: inherit; }
html.os a.os-nav__item { color: var(--os-side-text); }
html.os a.os-nav__item.is-on, html.os a.os-nav__item:hover, html.os a.os-tab.is-on { color: var(--fg-fff, #fff); }
html.os a.os-tab { color: var(--os-muted); }
html.os a.os-btn--primary, html.os a.button--primary { color: var(--fg-fff, #fff); }
/* pills and tags */
html.os .tag { border: 0; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: 0.8rem; min-width: 0; padding: 2px 8px; }
html.os .tag--plain, html.os .tag--muted { background: var(--bg-f1f5f9, #f1f5f9); color: var(--fg-475569, #475569); border: 0; }
html.os .chip { border-color: var(--os-border-strong); background: var(--os-surface-alt); }
html.os .chip--button.is-active, html.os .submenu__item.is-on { background: var(--os-text); color: var(--fg-fff, #fff); border-color: var(--os-text); }
html.os .pill { border-color: var(--os-border); }
/* tables: a grey head, light rules */
html.os .table th { background: var(--os-surface-alt); padding: 9px 10px; font-size: 0.78rem; letter-spacing: 0.04em; border-bottom: 1px solid var(--os-border); }
html.os .table td { padding: 8px 10px; vertical-align: middle; }
html.os .table tbody tr:hover td { background: var(--os-surface-alt); }
html.os .table-wrap { border: 1px solid var(--os-border); border-radius: 8px; }
/* forms */
html.os input:not([type='checkbox']):not([type='radio']):not([type='file']):not(.os-search__input), html.os select, html.os textarea { border: 1px solid var(--os-border-strong); border-radius: 6px; background: var(--bg-fff, #fff); color: var(--os-text); }
html.os .banner { border-radius: 8px; }
html.os .banner--warn { background: var(--os-warning-soft); border-color: var(--bd-fde68a, #fde68a); color: var(--fg-78350f, #78350f); }
html.os .banner--bad { background: var(--os-danger-soft); border-color: var(--bd-fecaca, #fecaca); color: var(--fg-7f1d1d, #7f1d1d); }
html.os .result { border-radius: 8px; }
html.os .result--skipped { border-left-color: var(--os-warning); background: var(--os-warning-soft); }
html.os .booth__market, html.os .flip { border-radius: 8px; background: var(--os-surface-alt); }
/* the confirm sheet is the design's modal; a piece or a ledger row opens as the design's drawer, from the right */
html.os .dialog-backdrop { background: rgba(15, 23, 42, 0.5); }
html.os .dialog { border-radius: 10px; border-top: 0; box-shadow: var(--os-shadow-lg); padding: 22px; }
html.os .dialog h3 { font-size: 1.15rem; }
@media (min-width: 700px) {
  html.os .piece-backdrop { place-items: stretch end; padding: 0; background: rgba(15, 23, 42, 0.45); }
  html.os .piece { width: 540px; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
}
/* the frame's menu and tabs stand in for the old tab row and the pages' own part menus */
/* the Overview shows one part at a time at every width: Today and Changes (Dashboard); Settings, Runs, Errors (Manage) */
html.os main[data-part]:not([data-part='status']) > :is(.tiles, .rhwarn) { display: none; }
html.os main[data-part='status'] .grid :is(.grid__main, .grid__side) > :not(.actions) { display: none; }
html.os main[data-part='changes'] .grid :is(.grid__main, .grid__side) > :not(.plan):not([aria-labelledby='changes-title']) { display: none; }
html.os main[data-part='runs'] .grid :is(.grid__main, .grid__side) > :not([aria-labelledby='runs-title']) { display: none; }
html.os main[data-part='setup'] .grid :is(.grid__main, .grid__side) > :not(.white):not(.ig):not(.appset):not(.pw):not(.tfa):not(.ebay):not(.betas):not(.privacy):not(.people):not(.lookcard) { display: none; }
html.os main[data-part='errors'] .grid :is(.grid__main, .grid__side) > :not([aria-labelledby='errors-title']) { display: none; }

/* Automation Rules */
.rules { list-style: none; margin: 10px 0 0; padding: 0; }
.rules__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.rules__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rules__name { font-weight: 600; }
.rules__link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; margin-top: 4px; }

/* ---- a phone: the side menu slides in; the search and the quick buttons each get their own row ---- */
@media (max-width: 899px) {
  .os-shell { display: block; }
  .os-side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(86vw, 300px); height: 100dvh; transform: translateX(-102%); transition: transform 0.18s ease; visibility: hidden; }
  .os-shell.is-menu .os-side { transform: none; visibility: visible; box-shadow: var(--os-shadow-lg); }
  .os-shell.is-menu .os-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(15, 23, 42, 0.5); }
  .os-side__close { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--bd-475569, #475569); border-radius: 6px; background: none; color: var(--fg-fff, #fff); font: 600 0.9rem var(--sans); cursor: pointer; }
  .os-nav__item { min-height: 48px; font-size: 1rem; }
  .os-top { position: static; padding: 8px 12px; gap: 8px; }
  .os-menu { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--os-border-strong); border-radius: 6px; background: var(--os-surface); color: var(--os-text); font: 600 0.95rem var(--sans); cursor: pointer; }
  .os-search { flex: 1 1 0; max-width: none; }
  .os-search__input { min-height: 44px; font-size: 1rem; padding-right: 12px; }
  .os-search__key { display: none; }
  .os-search__panel { position: fixed; left: 8px; right: 8px; top: 62px; }
  /* the quick buttons: one compact row that scrolls sideways inside itself */
  .os-actions { flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
  .os-actions::-webkit-scrollbar { display: none; }
  /* the most used press first: on a phone the row scrolls sideways, and the last ones start off-screen (daily path, 2026-11-27) */
  .os-actions > .os-act-sale { order: -1; }
  .os-btn { flex: none; min-height: 44px; }
  .os-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .os-content { padding: 12px; }
  .os-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 0 12px 8px; }
  .os-tabs::-webkit-scrollbar { display: none; }
  .os-tab { flex: none; min-height: 44px; }
  html.os .card, html.os .tile { padding: 14px; }
  .rules__row { flex-direction: column; }
  /* the pages' own phone menus sit under the top bar, not under the old tab row */
  html.os .submenu { top: 0; background: var(--os-bg); }
}
@media (prefers-reduced-motion: reduce) { .os-side { transition: none; } }
/* the new look, after the first look at it: the owl keeps its own gold; warnings are amber, not blue; one column per part */
.os-brand .owl-mark { --gold: #c9a84c; --ink: #3d2b1f; --paper: #fffaf0; flex: none; }
html.os .os-side a.os-side__link { color: var(--os-side-text); }
html.os .rhwarn { background: var(--os-warning-soft); border-color: var(--bd-fde68a, #fde68a); }
html.os .rhwarn__item { border-color: var(--bd-fde68a, #fde68a); background: var(--os-surface); }
html.os main[data-part] .grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { html.os .submenu { margin: -6px -12px 0; padding-inline: 12px; } }

/* ---- Owl Sync OS, phase 2: the Dashboard (needs-you queue, the last 30 days, newest sales) ---- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; margin: 0; }
.kpi__label { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--os-muted); margin: 0; }
.kpi__value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi__value--good { color: var(--os-success); }
.kpi__value--bad { color: var(--os-danger); }
.kpi__value--warn { color: var(--os-warning); }
.kpi__note { font-size: 0.82rem; color: var(--os-muted); margin: 0; }
.dash__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash__two > :only-child { grid-column: 1 / -1; }
.dash__two > .card { margin: 0; }
.triage__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.triage__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; background: var(--os-surface-alt); border-left: 4px solid var(--os-border-strong); }
.triage__row p { margin: 0; }
.triage__text { min-width: 0; }
.triage__row .button { flex: none; white-space: nowrap; }
.triage__row--red { background: var(--os-danger-soft); border-left-color: var(--os-danger); }
.triage__row--amber { background: var(--os-warning-soft); border-left-color: var(--os-warning); }
.triage__row--blue { background: var(--os-primary-soft); border-left-color: var(--os-primary); }
.triage__row--ig { background: var(--os-ig-soft); border-left-color: var(--os-ig); }
.recent td, .recent th { vertical-align: top; }
.recent { table-layout: fixed; width: 100%; }
.recent th:nth-child(2) { width: 6.5em; }
.recent th.num { width: 6.2em; }
.recent__title { display: block; overflow-wrap: break-word; }
.recent__day { display: block; }
.recent .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recent__left { font-weight: 700; }
.recent__left.is-good { color: var(--os-success); }
.recent__left.is-bad { color: var(--os-danger); }
.dash__anchor { scroll-margin-top: 72px; outline: none; }
.dash__anchor:empty { display: none; }
.dash__section { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--os-muted); margin: 8px 0 0; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash__two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .kpi { padding: 12px; }
  .kpi__value { font-size: 1.3rem; }
  .triage__row { flex-direction: column; align-items: stretch; }
  .triage__row .button { min-height: 44px; }
  .recent th:nth-child(2), .recent td:nth-child(2) { display: none; }
}
@media (max-width: 899px) { html.os .dash .button { min-height: 44px; } }

/* ---- Owl Sync OS, phase 2: the Inventory grid (tick boxes, cells typed straight into, the bulk bar) ---- */
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.invgrid { width: 100%; }
.invgrid td, .invgrid th { vertical-align: middle; }
.invgrid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invgrid__tick { width: 44px; text-align: center; padding-inline: 4px; }
.invgrid__tick input { width: 20px; height: 20px; margin: 12px; accent-color: var(--os-primary); cursor: pointer; }
.invgrid tr.is-ticked td { background: var(--os-primary-soft); }
.invgrid__piece { min-width: 200px; max-width: 420px; }
.invgrid .mono { white-space: nowrap; }
.invgrid__last { position: sticky; right: 0; background: var(--os-surface); box-shadow: -1px 0 0 var(--os-border); }
.invgrid tr.is-ticked .invgrid__last { background: var(--os-primary-soft); }
.invgrid th, .invgrid td { padding-inline: 10px; }
.invgrid__who { display: flex; align-items: center; gap: 10px; }
.invgrid__thumb { flex: none; width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--os-surface-alt); border: 1px solid var(--os-border); }
.invgrid__thumb--none { display: block; }
.invgrid__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: inherit; font-weight: 600; color: var(--os-text); text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; overflow-wrap: anywhere; }
.invgrid__title:hover { color: var(--os-primary); text-decoration: underline; }
.invgrid__sub { display: block; font-size: 0.82rem; }
.invgrid__sub a { color: inherit; }
.invgrid__price { font-weight: 700; }
.invgrid__do { display: flex; gap: 6px; }
.invgrid__do .button { min-height: 36px; padding: 4px 12px; }
.gridcell { display: inline-flex; align-items: center; min-height: 36px; min-width: 64px; padding: 4px 8px; font: inherit; color: var(--os-text); background: none; border: 1px dashed transparent; border-radius: 4px; cursor: text; white-space: nowrap; }
.gridcell:hover, .gridcell:focus-visible { background: var(--bg-fffbeb, #fffbeb); border-color: var(--os-warning); }
.gridcell.is-missing { color: var(--os-danger); font-style: italic; }
.gridcell:disabled { color: var(--os-muted); cursor: progress; }
.gridcell__box { font: inherit; width: 7.5em; min-height: 36px; padding: 4px 8px; border: 2px solid var(--os-primary); border-radius: 4px; background: var(--bg-fff, #fff); color: var(--os-text); }
td.num .gridcell { justify-content: flex-end; }
td.num .gridcell__box { text-align: right; width: 6em; }
.bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: 8px 0; background: var(--os-primary-soft); border: 1px solid var(--bd-bfdbfe, #bfdbfe); border-radius: 8px; }
.bulkbar__do { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulkbar__bin { width: 9em; }
.button--ig { background: var(--os-ig); border-color: var(--os-ig); color: var(--fg-fff, #fff); }
@media (max-width: 899px) {
  /* a phone: each piece is a card, not a row of a wide table */
  .grid-wrap { overflow: visible; border: 0; background: none; }
  .invgrid, .invgrid tbody { display: block; }
  .invgrid thead tr { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .invgrid thead th { display: none; border: 0; background: none !important; padding: 0 !important; }
  .invgrid thead th.invgrid__tick, .invgrid thead th[aria-sort] { display: block; }
  .invgrid thead th.invgrid__tick::after { content: 'All'; font-size: 0.85rem; color: var(--os-muted); margin-left: -6px; padding-right: 6px; }
  .invgrid thead th.invgrid__tick { width: auto; display: flex; align-items: center; }
  .invgrid thead .sort { min-height: 44px; padding: 0 10px; border: 1px solid var(--os-border); border-radius: 6px; background: var(--os-surface); }
  .invgrid tbody tr { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 2px 8px; align-items: center; padding: 8px 10px 10px 2px; margin: 8px 0; background: var(--os-surface); border: 1px solid var(--os-border); border-radius: 8px; }
  .invgrid tbody tr.is-ticked { background: var(--os-primary-soft); border-color: var(--bd-bfdbfe, #bfdbfe); }
  .invgrid tbody td { display: block; border: 0; padding: 0; background: none !important; text-align: left !important; min-width: 0; }
  .invgrid tbody td.invgrid__tick { grid-row: 1 / span 2; align-self: start; }
  .invgrid__piece { grid-column: 2 / -1; min-width: 0; max-width: none; }
  .invgrid__status { grid-column: 2 / -1; }
  .invgrid__bin, .invgrid__etsy { grid-column: 2; }
  .invgrid__cost, .invgrid__web { grid-column: 3; }
  .invgrid__price { grid-column: 4; }
  .invgrid__web { grid-column: 3 / -1; }
  .invgrid tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--os-muted); }
  .invgrid tbody td[data-label]:empty { display: none; }
  .invgrid__sku { grid-column: 2 / -1 !important; overflow-wrap: anywhere; }
  .invgrid__last { grid-column: 2 / -1; padding-top: 6px !important; position: static; box-shadow: none; }
  .invgrid__title { min-height: 44px; }
  td.num .gridcell { justify-content: flex-start; }
  td.num .gridcell__box { text-align: left; }
  .gridcell { min-width: 0; padding-inline: 6px; margin-left: -6px; border-color: var(--os-border-strong); }
  .gridcell__box { width: 100%; box-sizing: border-box; }
  .gridcell, .gridcell__box, .invgrid__do .button { min-height: 44px; }
  .invgrid__do .button { flex: 1; }
  .invgrid__tick input { width: 22px; height: 22px; margin: 11px; }
  .bulkbar { align-items: stretch; flex-direction: column; position: sticky; top: 0; z-index: 3; }
  .bulkbar__do .button, .bulkbar__bin { min-height: 44px; }
}
/* Schedule C sheet */
.schedc__method { border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.schedc__method label { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.schedc__line { width: 3.5em; font-variant-numeric: tabular-nums; }
.schedc__sum td { font-weight: 700; }
.schedc__band th { text-align: left; background: var(--cream); }
.schedc__notes { margin: 4px 0 8px; padding-left: 18px; }
.schedc__notes-head { margin: 12px 0 2px; }
@media print {
  body * { visibility: hidden; }
  .schedc, .schedc * { visibility: visible; }
  .schedc { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; }
  .schedc__noprint { display: none !important; }
}

/* ---- Owl Sync OS, phase 2: the bulk "mark" question, and the piece's timeline as a line of dots ---- */
.bulkbar--ask { background: var(--os-warning-soft); border-color: var(--bd-fde68a, #fde68a); }
.bulkbar--ask p { margin: 2px 0 0; }
html.os .tl__list { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--os-border); display: flex; flex-direction: column; gap: 12px; }
html.os .tl__item { position: relative; display: flex; flex-direction: column; gap: 2px; }
html.os .tl__item::before { content: ''; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--os-surface); border: 2px solid var(--os-primary); }
html.os .tl__item:first-child::before { background: var(--os-primary); }
html.os .tl__when { font-size: 0.8rem; }

/* ---- Owl Sync OS, phase 2: Sold & Orders (three parts; the pick list with its bin up front) ---- */
.os-tabs--page { margin: 0 0 4px; }
.os-tabs--page .os-tab { font: inherit; font-weight: 600; cursor: pointer; border: 0; }
html.os .ship__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html.os .ship__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--os-border); border-radius: 8px; background: var(--os-surface); }
html.os .ship__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
html.os .ship__do { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
html.os .ship__do .tag { font-size: 0.95rem; font-weight: 700; padding: 6px 12px; border-radius: 6px; }
html.os .ship__head { font-size: 1rem; margin: 12px 0 0; }
html.os .ship__more { margin-top: 12px; }
html.os .ship__more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 899px) {
  html.os .ship__line { flex-direction: column; align-items: stretch; }
  html.os .ship__do { justify-content: flex-start; }
  html.os .ship__do .button { flex: 1; min-height: 44px; }
  .os-tabs--page { overflow-x: auto; flex-wrap: nowrap; }
  .os-tabs--page .os-tab { white-space: nowrap; min-height: 44px; }
}
.os-tabs--page .os-tab:not(.is-on) { background: none; }
@media (max-width: 899px) { html.os .ship__what { flex: none; } }
@media (min-width: 900px) { html.os .cost > .button { align-self: flex-start; min-height: 40px; } }
@media (max-width: 899px) { html.os .button, html.os a.button { min-height: 44px; } }

/* ---- Owl Sync OS, phase 2: Ledger, Insights and Settings tidied (one heading size, tool buttons not full width) ---- */
html.os .card > h2, html.os .card h2 { font-size: 1.1rem; }
@media (min-width: 900px) {
  html.os .lgr__add, html.os .lgr__bins > .button { width: auto; align-self: flex-start; min-height: 40px; }
  html.os .lgr__wide { width: auto; }
}
.biz__hint { grid-column: 1 / -1; margin: 0; }

/* ---- Owl Sync OS, phase 2: going through the ticked pieces' prices, one at a time ---- */
.pwalk { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; background: var(--os-primary-soft, #eff6ff); border: 1px solid var(--bd-bfdbfe, #bfdbfe); }
.pwalk__where { margin: 0; min-width: 0; flex: 1 1 240px; }
.pwalk__do { display: flex; gap: 8px; }
.pwalk__do .button { min-height: 44px; }
.piece__anchor { scroll-margin-top: 70px; }

/* ---- Owl Sync OS, phase 2: the sales as a table of orders, each opening in a side panel ---- */
.orders { width: 100%; }
.orders td, .orders th { vertical-align: top; }
.orders .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.orders__title { display: block; overflow-wrap: anywhere; }
.orders__day { display: block; }
.orders td .os-pill + .os-pill { margin-left: 4px; }
.orders__net { font-weight: 700; }
.orders__net.is-good { color: var(--os-success); }
.orders__net.is-bad { color: var(--os-danger); }
.orders tr.is-off td { background: var(--os-surface-alt); }
.orders tr.is-off .orders__title { font-weight: 500; }
.orders__one { list-style: none; margin: 0; padding: 0; }
@media (max-width: 899px) {
  .orders__more, .orders th:nth-child(2), .orders td:nth-child(2) { display: none; }
  .orders__ship { display: block; }
  .orders td, .orders th { padding-inline: 8px; }
  .orders .button { min-height: 44px; }
}
@media (max-width: 899px) {
  .orders { table-layout: fixed; }
  .orders th:nth-child(3), .orders th:nth-child(7) { width: 5.4em; }
  .orders th:nth-child(8) { width: 5em; }
  .orders .num { white-space: normal; }
  .orders .button { padding-inline: 10px; }
}
@media (max-width: 899px) {
  .orders td, .orders th { padding-inline: 5px; }
  .orders th:nth-child(3), .orders th:nth-child(7) { width: 4.7em; }
  .orders th:nth-child(8) { width: 4.2em; }
  .orders .button { padding-inline: 8px; width: 100%; }
}
@media (max-width: 899px) {
  .orders td, .orders th { padding-inline: 4px; }
  .orders td:first-child, .orders th:first-child { padding-left: 10px; }
  .orders th:nth-child(3) { width: 4.4em; }
  .orders th:nth-child(7) { width: 4.9em; }
  .orders th:nth-child(8) { width: 4.4em; }
  .orders .button { padding-inline: 2px; font-size: 0.92rem; justify-content: center; }
}
.orders__title { font: inherit; font-weight: 600; color: var(--os-text); text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.orders__title:hover { color: var(--os-primary); text-decoration: underline; }
@media (max-width: 899px) {
  /* a phone: the title opens the sale, so the Open column is not needed */
  .orders .orders__open { display: none; }
  .orders__title { min-height: 44px; }
  .orders th:nth-child(3) { width: 5.2em; }
  .orders th:nth-child(7) { width: 5.6em; }
  .orders td, .orders th { padding-inline: 8px; }
}

/* ---- Owl Sync OS: faults found by the stress walk (2026-11-20) ---- */
/* a part that is hidden stays hidden, whatever its own display says (.cost and .card are flex) */
html.os [hidden] { display: none !important; }
/* words for screen readers inside a table that scrolls sideways must not widen the page */
html.os .table-wrap, html.os .grid-wrap { position: relative; }
@media (min-width: 900px) { .orders__title { display: inline-flex; align-items: center; min-height: 24px; } }
/* Settings card */
.appset__head { margin: 14px 0 4px; }
.appset__more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.appset__tables { margin: 4px 0; padding-left: 18px; columns: 2; }
.appset__tables a { display: inline-block; min-height: 32px; }

/* ---- Instagram composer: the saved caption template and hashtag bank (Settings) ---- */
.igc__saved { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.igc__saved .button, .igc__bank { min-height: 44px; }
.igc__bank { margin: 6px 0; }

/* ---- Owl Sync OS, phase 2: every piece once, in tabs (ledger + Etsy + website) ---- */
.pcs__search { max-width: 520px; }
.pcs__lacks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.pcs__missing { display: block; color: var(--os-warning); }
.pcs__none { color: var(--os-danger); font-style: italic; }
.pcs__extra { display: block; }
html.os .inv-parts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 899px) {
  .pcs__tabs { overflow-x: auto; flex-wrap: nowrap; }
  .pcs__lacks .chip { min-height: 44px; }
  .pcs__table thead th:not(.invgrid__tick) { display: none; }
}
.pcs__table .invgrid__sub { overflow-wrap: anywhere; }
.pcs__table .invgrid__piece { max-width: 360px; }
/* "Post your own pictures" (Instagram tab) */
.upost { display: flex; flex-direction: column; gap: 12px; }
.upost__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.upost__field input[type="file"] { min-height: 44px; max-width: 100%; }
.upost__list { list-style: none; margin: 0; padding: 0; }
.upost__item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); }
.upost__item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--cream); flex: none; }
.upost__words { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.upost__do { display: flex; flex-wrap: wrap; gap: 8px; }
.upost__do .button { min-height: 44px; min-width: 44px; }
.upost__check { align-items: flex-start; }
.upost__when { display: flex; flex-wrap: wrap; gap: 10px; border: 1px solid var(--rule); border-radius: 8px; padding: 10px; margin: 0; min-width: 0; }
.upost__when .upost__field { flex: 1 1 140px; }
.upost__past { margin: 8px 0 0; font-size: 1rem; }
.upost__posts { margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.upost__field input[type="file"]::file-selector-button { min-height: 44px; padding: 0 14px; margin-right: 10px; border: 1px solid var(--ink, #3b2a20); border-radius: 8px; background: transparent; font: inherit; cursor: pointer; }

/* ---- Instagram claims: a post of several pieces, a line for each piece, and "which piece?" ---- */
.igl__pieces { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.igl__piece { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; }
.igl__piece--ask { background: var(--bg-fffbeb, #fffbeb); border-color: var(--bd-fde68a, #fde68a); }
.igl__piecehead { margin: 0 0 4px; }
.igl__num { display: inline-block; min-width: 1.6em; text-align: center; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--bg-eff6ff, #eff6ff); color: var(--fg-1d4ed8, #1d4ed8); }
.igl__pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.igl__picks { display: flex; gap: 6px; flex-wrap: wrap; }
.igl__picks .button { min-height: 44px; }

/* ---- One Instagram post of several pieces: the sheet ---- */
.mpost__list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mpost__piece { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 8px; }
.mpost__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mpost__do { display: flex; gap: 4px; flex: none; }
.mpost__do .button { min-height: 44px; min-width: 44px; padding-inline: 10px; }
.mpost .igc__radio { display: flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 520px) { .mpost__piece { flex-wrap: wrap; } .mpost__do { width: 100%; } .mpost__do .button { flex: 1; } }
.igl__pick > span:first-child, .igl__piecehead { min-width: 0; overflow-wrap: anywhere; }

/* Automation Rules: the markdown ladder and the reminders */
.ladder { display: flex; flex-direction: column; gap: 10px; }
.ladder__settings summary, .ladder__changes summary, .ladder details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.ladder__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.ladder__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ladder__list { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ladder__items, .ladder__changes ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.ladder__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); }
.ladder__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.ladder__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; white-space: nowrap; }
.ladder .button { min-height: 44px; }

/* ---- Pop-up forms and spreadsheet lists (Matt, 2026-11-20: "a pop up for these forms … an excel list") ---- */
.fsheet-backdrop { align-items: center; justify-content: center; }
.fsheet { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 0; display: flex; flex-direction: column; }
.fsheet--wide { width: min(760px, calc(100vw - 32px)); }
.fsheet__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--os-border, var(--rule)); position: sticky; top: 0; background: var(--os-surface, var(--paper)); z-index: 1; }
.fsheet__title { margin: 0; font-size: 1.1rem; }
.fsheet__close { min-height: 40px; }
.fsheet__body { padding: 16px 20px 20px; }
@media (max-width: 699px) {
  .fsheet-backdrop { align-items: stretch; padding: 0; }
  .fsheet, .fsheet--wide { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .fsheet__close { min-height: 44px; }
}
.biz__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.biz__year { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.biz__adds { display: flex; gap: 8px; flex-wrap: wrap; }
.biz__inline { min-height: 36px; padding: 4px 10px; }
.biz__find { display: flex; gap: 8px; flex-wrap: wrap; }
.biz__find input { flex: 1 1 220px; max-width: 420px; }
.biz__find select { flex: 0 1 240px; }
.sheet-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--os-border, var(--rule)); border-radius: 8px; }
.sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.sheet thead th { position: sticky; top: 0; z-index: 1; background: var(--os-surface-alt, var(--cream)); }
.sheet tfoot th, .sheet tfoot td { position: sticky; bottom: 0; background: var(--os-surface-alt, var(--cream)); border-top: 2px solid var(--os-border-strong, var(--rule)); text-align: left; }
.sheet tfoot .num { text-align: right; }
.sheet td, .sheet th { padding: 6px 10px; vertical-align: top; }
.sheet tbody tr:nth-child(even) td { background: var(--os-surface-alt, transparent); }
.sheet .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet .nowrap { white-space: nowrap; }
.sheet__text { min-width: 140px; overflow-wrap: anywhere; }
.sheet__do { width: 1%; white-space: nowrap; }
.sheet__do .button { min-height: 32px; padding: 2px 10px; }
@media (max-width: 899px) { .sheet__do .button, .biz__inline { min-height: 44px; } .sheet-wrap { max-height: none; } }
@media (max-width: 699px) { .fsheet-backdrop .fsheet { margin: 0; inset: 0; border: 0; box-shadow: none; } }
.sheet thead th { vertical-align: middle; }
.sheet thead th:not([aria-sort]) { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
/* the pop-up keeps its own spacing and width over the dialog's own (old and new look) */
.dialog.fsheet, html.os .dialog.fsheet { padding: 0; max-width: none; width: min(560px, calc(100vw - 32px)); }
.dialog.fsheet--wide, html.os .dialog.fsheet--wide { width: min(760px, calc(100vw - 32px)); }
@media (max-width: 699px) {
  .dialog-backdrop.fsheet-backdrop { padding: 0; place-items: stretch; }
  .dialog.fsheet, html.os .dialog.fsheet, .dialog.fsheet--wide, html.os .dialog.fsheet--wide { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
.fsheet .booth__market { border: 0; padding: 0; background: none; margin: 0; }

/* ---- Instagram Studio: one section at a time behind a tab bar, at every width (Matt, 2026-11-20:
   "a submenu with tabs for each section instead of scrolling down all the way") ---- */
html.os .igq > .submenu { display: flex; flex-wrap: nowrap; gap: 6px; position: sticky; top: 56px; z-index: 6; margin: 0 0 4px; padding: 8px 0 10px; background: var(--os-bg); border-bottom: 1px solid var(--os-border); box-shadow: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
html.os .igq > .submenu::-webkit-scrollbar { display: none; }
html.os .igq > .submenu .submenu__item { flex: 0 0 auto; min-width: 0; min-height: 40px; padding: 5px 14px; border: 0; border-radius: 6px; background: none; color: var(--os-muted); font: 600 0.92rem var(--os-sans, inherit); white-space: nowrap; cursor: pointer; }
html.os .igq > .submenu .submenu__item:hover { background: var(--os-border); color: var(--os-text); }
html.os .igq > .submenu .submenu__item.is-on { background: var(--os-text); color: var(--fg-fff, #fff); }
html.os .igq .part:not(.is-on) { display: none; }
html.os .igq .igjump, html.os .igq .igsec__top { display: none; }
@media (max-width: 899px) {
  html.os .igq > .submenu { top: 0; margin: -6px -12px 4px; padding: 8px 12px; }
  html.os .igq > .submenu .submenu__item { min-height: 44px; }
}
html.os .igq > .submenu { grid-column: 1 / -1; }
.sheet__do { display: table-cell; }
.sheet__do .button + .button { margin-left: 6px; }
@media (max-width: 699px) {
  /* a phone: the note and the rate stay in the pop-up; the buttons sit one under the other */
  .sheet thead th:nth-child(5), .sheet tbody td:nth-child(5) { display: none; }
  .sheet[aria-label='Expenses'] thead th:nth-child(3), .sheet[aria-label='Expenses'] tbody td:nth-child(3) { display: none; }
  .sheet tfoot td:last-child { display: none; }
  .sheet__do { white-space: normal; }
  .sheet__do .button { display: block; width: 100%; padding-inline: 8px; }
  .sheet__do .button + .button { margin: 6px 0 0; }
  .sheet td, .sheet th { padding: 6px; }
  .sheet .nowrap { white-space: normal; }
  .sheet__text { min-width: 0; }
}
@media (max-width: 699px) { .sheet__kindcell { display: none; } }
.login__field { align-self: stretch; display: flex; align-items: center; gap: 8px; }
.login__field input { flex: 1; min-width: 0; }
.login__show { min-width: 64px; min-height: 44px; }
/* Dashboard Trends (Matt, 2026-11-20: "line graphs on my dashboard for critical metrics"). Colours checked with the
   data-viz validator (colour-blind separation and contrast on white); the dashboard has no dark look yet. */
html.os .trends { --viz-now: #2a78d6; --viz-prev: #94a3b8; --viz-etsy: #eb6834; --viz-website: #2a78d6; --viz-other: #1baf7a; --viz-ebay: #7c3aed; margin-top: 18px; }
html.os .trends__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
html.os .trends__head h2 { margin: 0; }
html.os .trends__range { margin: 0; }
html.os .trends__range .os-tab { min-height: 40px; }
html.os .trends__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html.os .trends__grid.is-loading { opacity: 0.6; }
@media (max-width: 899px) { html.os .trends__grid { grid-template-columns: minmax(0, 1fr); } }
html.os .trends__empty { padding: 18px; }
html.os .trend { margin: 0; min-width: 0; padding: 16px; }
html.os .trend__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.os .trend__title { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--os-muted); }
html.os .trend__split { min-height: 36px; padding: 4px 12px; font-size: 0.85rem; }
html.os .trend__split[aria-pressed='true'] { background: var(--os-primary-soft); border-color: var(--os-primary); color: var(--os-primary-hover); }
html.os .trend__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 4px; }
html.os .trend__big { font-size: 1.6rem; font-weight: 700; color: var(--os-text); font-variant-numeric: tabular-nums; }
html.os .trend__pct { font-size: 0.85rem; color: var(--os-muted); }
html.os .trend__pct--good { color: var(--os-success); }
html.os .trend__pct--bad { color: var(--os-danger); }
html.os .trend__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0 0 4px; padding: 0; font-size: 0.8rem; color: var(--os-muted); }
html.os .trend__legend li { display: inline-flex; align-items: center; gap: 6px; }
html.os .trend__key { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--viz-now); }
html.os .trend__key--prev { border-top: 2px dashed var(--viz-prev); }
html.os .trend__key--etsy { border-top-color: var(--viz-etsy); }
html.os .trend__key--website { border-top-color: var(--viz-website); }
html.os .trend__key--other { border-top-color: var(--viz-other); }
html.os .trend__key--ebay { border-top-color: var(--viz-ebay); }
html.os .trend__plot { position: relative; }
html.os .trend__svg { display: block; max-width: 100%; overflow: visible; touch-action: pan-y; cursor: crosshair; }
html.os .trend__svg:focus-visible { outline: 2px solid var(--os-primary); outline-offset: 2px; border-radius: 4px; }
html.os .trend__grid { stroke: var(--os-border); stroke-width: 1; }
html.os .trend__base { stroke: var(--os-border-strong); stroke-width: 1; }
html.os .trend__tick { fill: var(--os-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
html.os .trend__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
html.os .trend__line--now { stroke: var(--viz-now); }
html.os .trend__line--prev { stroke: var(--viz-prev); stroke-width: 1.5; stroke-dasharray: 4 4; }
html.os .trend__line--etsy { stroke: var(--viz-etsy); }
html.os .trend__line--ebay { stroke: var(--viz-ebay); }
html.os .trend__line--website { stroke: var(--viz-website); }
html.os .trend__line--other { stroke: var(--viz-other); }
html.os .trend__cross line { stroke: var(--os-muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
html.os .trend__dot { stroke: var(--os-surface); stroke-width: 2; fill: var(--viz-now); }
html.os .trend__dot--prev { fill: var(--viz-prev); }
html.os .trend__dot--etsy { fill: var(--viz-etsy); }
html.os .trend__dot--ebay { fill: var(--viz-ebay); }
html.os .trend__dot--other { fill: var(--viz-other); }
html.os .trend__tip { position: absolute; top: 0; transform: translateX(12px); background: var(--os-surface); border: 1px solid var(--os-border-strong); border-radius: 8px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); padding: 6px 10px; font-size: 0.8rem; color: var(--os-text); pointer-events: none; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; z-index: 2; }
html.os .trend__tip--left { transform: translateX(calc(-100% - 12px)); }
html.os .trend__tipline { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
html.os .trend__table { margin-top: 6px; font-size: 0.85rem; }
html.os .trend__table summary { cursor: pointer; color: var(--os-muted); min-height: 32px; display: flex; align-items: center; }
html.os .trend__table .sheet { width: 100%; }
html.os .trends__notes { margin: 10px 0 0; padding-left: 18px; }
html.os .trend__foot { margin: 4px 0 0; }
html.os .trend__views { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
html.os .trend__views .os-tab { min-height: 36px; padding: 4px 12px; font-size: 0.85rem; }
html.os .pw form { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
html.os .pw__row { display: flex; flex-direction: column; gap: 4px; }
html.os .pw__row label { font-weight: 500; }
html.os .pw form > .button { align-self: flex-start; min-height: 44px; }
html.os .find__taken { color: var(--os-warning); font-weight: 600; }
html.os .pcs__find { margin-left: 8px; min-height: 32px; }
html.os .haul__listrow { display: flex; align-items: stretch; gap: 8px; }
html.os .haul__listrow .haul__dest { flex: 1; min-width: 0; }
html.os .haul__del { min-height: 44px; }
html.os .haul__cell { position: relative; }
html.os .haul__x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--os-border-strong); background: var(--os-surface); color: var(--os-danger); font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
html.os .haul__x::before { content: ''; position: absolute; inset: -6px; }
.match__search { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.match__search label { font-weight: 500; }
.match__search input { min-height: 44px; font-size: 16px; width: 100%; }
.match__rows li.is-off { opacity: 0.6; }
.match__why { display: block; color: var(--ink-soft); font-style: italic; }
.match__tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-text); }
/* Haul photos (Matt: "bigger images are hard to see"): 2 to a row on a phone, 3 on a tablet, more on a computer.
   A tap opens the photo big; the round corner (or a long press) ticks it. */
.haul__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .haul__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .haul__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.haul__photo { cursor: default; }
.haul__view { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-touch-callout: none; user-select: none; }
.haul__view img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-user-drag: none; }
.haul__photo.is-out .haul__view img { opacity: 0.35; filter: grayscale(1); }
.haul__photo .haul__tick { top: 6px; left: 6px; right: auto; width: 32px; height: 32px; padding: 0; cursor: pointer; font-size: 1rem; }
.haul__photo .haul__tick::before { content: ''; position: absolute; inset: -6px; }
.haul__photo .haul__tick[aria-pressed='true'] { background: var(--ink); }
.haul__failed { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 8px; border: 0; background: var(--cream); color: var(--ink-soft); font-size: 0.85rem; text-align: center; cursor: pointer; }
.haul__viewer { position: fixed; inset: 0; z-index: 1000; background: var(--bg-0a0a0a, #0a0a0a); display: flex; flex-direction: column; touch-action: pan-y; outline: none; }
.haul__viewbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--fg-fff, #fff); padding-top: max(10px, env(safe-area-inset-top)); }
.haul__viewbar .button { min-height: 44px; }
.haul__big { flex: 1; min-height: 0; width: 100%; object-fit: contain; user-select: none; }
.haul__viewnav { display: flex; justify-content: space-between; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.haul__viewnav .button { min-width: 64px; min-height: 48px; font-size: 1.4rem; }
.haul__ask { border-left: 4px solid var(--gold, #d9a400); margin: 8px 0; }
.haul__ask p { margin: 0 0 4px; }
.haul__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.haul__answers .button { min-height: 48px; }
.haul__checktag { border: 0; cursor: pointer; min-height: 32px; font: inherit; }
.haul__calm { margin: 0; color: var(--ink-soft); }
.haul__calm .link-button { padding: 4px 2px; min-height: 32px; }
.is-flash { animation: haul-flash 1.6s ease-out; }
@keyframes haul-flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(217, 164, 0, 0.55); } 100% { box-shadow: 0 0 0 0 rgba(217, 164, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .is-flash { animation: none; outline: 3px solid rgba(217, 164, 0, 0.8); } }
.haul__nowrap { white-space: nowrap; }
/* A piece's photos at the drafts step: look, order, main, and add more (phone first). */
.pphotos { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.pphotos__head { margin: 0; }
.pphotos__strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .pphotos__strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pphotos__cell { position: relative; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--bg-fff, #fff); }
.pphotos__cell img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pphotos__ismain { display: grid; place-items: center; min-height: 36px; margin: 0 4px; border-radius: 6px; background: var(--moss, #047857); color: var(--fg-fff, #fff); font-size: 0.8rem; font-weight: 600; }
.pphotos__main { min-height: 36px; margin: 0 4px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font: inherit; font-size: 0.8rem; cursor: pointer; }
.pphotos__move { display: grid; grid-template-columns: 1fr 1fr; }
.pphotos__move button { min-height: 40px; border: 0; border-top: 1px solid var(--rule); background: none; font-size: 1.2rem; cursor: pointer; }
.pphotos__move button + button { border-left: 1px solid var(--rule); }
.pphotos__move button:disabled { color: var(--rule); cursor: default; }
.pphotos__add { display: flex; flex-wrap: wrap; gap: 8px; }
.pphotos__add .button { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.pphotos__add .is-disabled { opacity: 0.5; pointer-events: none; }
.hauld__todo { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hauld__todo label { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; }
.hauld__todo input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.hauld__todo .is-done span { text-decoration: line-through; color: var(--ink-soft); }
.hauld__suggest { border: 1px solid var(--gold, #d9a400); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.hauld__suggest dl { margin: 0; }
.hauld__suggest dt { font-weight: 600; font-size: 0.85rem; }
.hauld__suggest dd { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.haul__back { font-weight: 400; color: var(--ink-soft); }
.appset__preview { border: 1px dashed var(--rule); border-radius: 8px; padding: 8px 10px; }
.appset__preview p { margin: 0; }
.appset__previewtext { white-space: pre-wrap; overflow-wrap: anywhere; }
/* "What I paid" and "Storage location" on a haul piece: side by side, even on a phone. */
.pcb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; margin: 6px 0; }
.pcb__field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcb__field label { font-size: 0.85rem; font-weight: 600; }
.pcb__field .cost__input { min-height: 44px; font-size: 16px; width: 100%; }
.pcb__about { color: var(--ink-soft); }
.pcb__said { grid-column: 1 / -1; margin: 0; }
.pcb__said--ok { color: var(--moss); }
.igx__logobuttons { display: flex; flex-wrap: wrap; gap: 8px; }
.igx__logobuttons .button { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.igx__logobuttons .is-disabled { opacity: 0.5; pointer-events: none; }
.haul__allweb { margin: 4px 0; }
.list__web { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
/* Press and hold to move a piece (Matt, 2026-11-22) */
.reorder { transition: transform 0.16s ease; -webkit-touch-callout: none; }
.reorder--lifted { position: relative; z-index: 20; transition: none; }
.reorder--lifted > .card { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28); transform: scale(1.02); outline: 2px solid var(--accent, #2563eb); }
body.is-reordering { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.reorder__moves { display: inline-flex; gap: 6px; }
.reorder__moves .button { min-height: 44px; }
.reorder__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.reorder__undo { display: flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .reorder { transition: none; } .reorder--lifted > .card { transform: none; } }
/* Crop and turn a haul photo (Matt, 2026-11-22) */
.pedit { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg-111, #111); color: var(--fg-fff, #fff); }
.pedit__top { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
.pedit__top .muted { color: var(--fg-bbb, #bbb); }
.pedit__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden; }
.pedit__frame { position: relative; flex: none; touch-action: none; user-select: none; }
.pedit__clip { position: absolute; inset: 0; overflow: hidden; }
.pedit__img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; pointer-events: none; }
.pedit__crop { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55); outline: 2px solid var(--bd-fff, #fff); cursor: move; touch-action: none; }
.pedit__handle { position: absolute; width: 44px; height: 44px; margin: -22px; touch-action: none; }
.pedit__handle::after { content: ''; position: absolute; inset: 14px; background: var(--bg-fff, #fff); border-radius: 50%; box-shadow: 0 0 0 2px #111; }
.pedit__handle--nw { left: 0; top: 0; cursor: nwse-resize; }
.pedit__handle--ne { right: 0; top: 0; margin-right: -22px; margin-left: 0; cursor: nesw-resize; }
.pedit__handle--sw { left: 0; bottom: 0; margin-bottom: -22px; margin-top: 0; cursor: nesw-resize; }
.pedit__handle--se { right: 0; bottom: 0; margin: 0 -22px -22px 0; cursor: nwse-resize; }
.pedit__handle:focus-visible::after { box-shadow: 0 0 0 3px #4da3ff; }
.pedit__tools { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-1b1b1b, #1b1b1b); }
.pedit__tools .muted { color: var(--fg-bbb, #bbb); }
.pedit__row { display: flex; gap: 8px; }
.pedit__row > .button { flex: 1; min-height: 44px; }
.pphotos__kind { font-size: 12px; color: var(--muted, #666); }
.pphotos__white { margin: 6px 0 2px; }
/* "Already sold" haul pieces (Matt, 2026-11-22) */
.haul__item--sold { opacity: 0.72; }
.haul__item--sold .hsold__line strong { color: var(--ok, #047857); }
.hsold { margin-top: 8px; }
.hsold__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.hsold__where { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.hsold__count { margin: 4px 0; }
.dash__hauls { margin-bottom: 16px; }
.dash__haul-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* Quick turn / crop on a haul photo (Matt, 2026-11-22) */
.pphotos__pic { position: relative; display: block; }
.qedit { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; z-index: 2; }
.qedit__btn { position: relative; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(17, 24, 39, 0.62); color: var(--fg-fff, #fff); font-size: 1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.qedit__btn::before { content: ''; position: absolute; inset: -6px; }
.qedit__btn:disabled { opacity: 0.45; }
.qedit__spin { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(255, 255, 255, 0.55); border-radius: inherit; }
.lvideo__progress { width: 100%; height: 10px; }
/* Two videos per piece (Etsy takes 2) */
.lvideo__slot { border-top: 1px dashed var(--os-border, #ddd); padding-top: 10px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.lvideo__name { margin: 0; font-size: 1rem; }
.lvideo__on { color: var(--ok, #047857); font-weight: 600; }
.lvideo__row { display: flex; flex-wrap: wrap; gap: 8px; }
.lvideo__row .button { min-height: 44px; }
/* Side menu with sub-items (Matt, 2026-11-22) */
.os-nav__row { display: flex; align-items: center; gap: 2px; }
.os-nav__row .os-nav__item { flex: 1; margin-bottom: 0; }
.os-nav__entry { margin-bottom: 2px; }
.os-nav__fold { width: 44px; height: 44px; flex: none; border: 0; border-radius: 6px; background: transparent; color: var(--os-side-text); font-size: 1rem; cursor: pointer; }
.os-nav__fold:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg-fff, #fff); }
.os-nav__sub { list-style: none; margin: 2px 0 6px; padding: 0 0 0 14px; border-left: 1px solid rgba(255, 255, 255, 0.12); margin-left: 16px; }
.os-nav__subitem { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: 6px; color: var(--os-side-text); text-decoration: none; font-size: 0.95rem; }
html.os a.os-nav__subitem { color: var(--os-side-text); }
html.os a.os-nav__subitem:hover, html.os a.os-nav__subitem.is-on { color: var(--fg-fff, #fff); background: rgba(255, 255, 255, 0.08); }
html.os a.os-nav__subitem.is-on { font-weight: 600; }
@media (max-width: 900px) { .os-nav__subitem { min-height: 44px; } }
/* Help (Matt, 2026-11-22) */
.help { display: flex; flex-direction: column; gap: 12px; }
.help__search { display: flex; flex-direction: column; gap: 6px; }
.help__toc { display: flex; flex-wrap: wrap; gap: 6px; }
.help__toc .chip { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.help__item { border-top: 1px solid var(--os-border, #e5e7eb); padding: 10px 0; }
.help__item summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.help__item p { margin: 8px 0; }
/* Insights: where your buyers are (Matt, 2026-11-22) */
.insights__period { display: flex; flex-wrap: wrap; gap: 6px; }
.bmap { position: relative; margin: 8px 0; }
.bmap__tools { display: flex; gap: 6px; margin-bottom: 6px; }
.bmap__tools .button { min-width: 44px; min-height: 40px; }
.bmap__svg { width: 100%; height: auto; display: block; background: var(--bg-f1f5f9, #f1f5f9); border-radius: 8px; touch-action: pan-y; }
.bmap__svg.is-zoomed { cursor: grab; touch-action: none; }
.bmap__land { fill: var(--bg-dde3ea, #dde3ea); stroke: var(--bg-fff, #fff); stroke-width: 0.6; }
.bmap__land.is-sold { fill: var(--bg-c8d9ef, #c8d9ef); }
.bmap__bubble { fill: rgba(37, 99, 235, 0.55); stroke: var(--bg-1d4ed8, #1d4ed8); stroke-width: 1; }
.blist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.blist h3 { font-size: 1rem; margin: 0 0 6px; }
.blist__list { margin: 0; padding-left: 20px; }
.blist__list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--os-border, #eee); }
@media (prefers-color-scheme: dark) { html.os:not([data-theme='light']) .bmap__land { fill: #334155; stroke: #1e293b; } html.os:not([data-theme='light']) .bmap__land.is-sold { fill: #3b5a86; } }
/* Insights: your best places to buy */
.srcs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.srcs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name money' 'bar bar' 'detail detail'; gap: 2px 10px; }
.srcs__name { grid-area: name; min-width: 0; overflow-wrap: anywhere; }
.srcs__money { grid-area: money; font-weight: 700; font-variant-numeric: tabular-nums; }
.srcs__money.is-loss { color: var(--os-danger, #b91c1c); }
.srcs__bar { grid-area: bar; height: 12px; background: var(--bg-f1f5f9, #f1f5f9); border-radius: 6px; position: relative; overflow: hidden; }
.srcs__fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--os-primary, #2563eb); border-radius: 6px; }
.has-loss .srcs__fill { left: 50%; border-radius: 0 6px 6px 0; }
.has-loss .srcs__fill.is-loss { left: auto; right: 50%; background: var(--os-danger, #b91c1c); border-radius: 6px 0 0 6px; }
.has-loss .srcs__bar::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--bg-94a3b8, #94a3b8); }
.srcs__detail { grid-area: detail; margin: 0; }
/* Insights: tax report */
.tax__year { display: flex; align-items: center; gap: 8px; }
.tax__note { margin-top: 8px; }
.tax__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tax__check { display: flex; gap: 10px; align-items: flex-start; }
.tax__mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--fg-fff, #fff); background: var(--bg-64748b, #64748b); }
.tax__check--ok .tax__mark { background: var(--ok, #047857); }
.tax__check--todo .tax__mark { background: var(--bg-b45309, #b45309); }
.tax__lines { margin: 0; }
.tax__line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--os-border, #eee); }
.tax__line dt { min-width: 0; overflow-wrap: anywhere; }
.tax__line dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tax__line.is-total { font-weight: 700; border-bottom-width: 2px; }
.tax__line.is-muted { color: var(--os-muted, #64748b); }
.tax__table-wrap { overflow-x: auto; margin-top: 10px; }
.tax__table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tax__table th, .tax__table td { padding: 6px 8px; border-bottom: 1px solid var(--os-border, #eee); text-align: right; white-space: nowrap; }
.tax__table th[scope='row'], .tax__table thead th:first-child { text-align: left; white-space: normal; }
.tax__cell-note { display: block; white-space: normal; max-width: 16em; margin-left: auto; }
/* Settings → Security: two-factor sign-in */
.tfa__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tfa__row p { margin: 4px 0 0; }
.tfa__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tfa__steps { display: flex; flex-direction: column; gap: 12px; }
.tfa__qr { width: 200px; height: 200px; align-self: center; background: var(--bg-fff, #fff); padding: 8px; border-radius: 8px; border: 1px solid var(--os-border, #e5e7eb); }
.tfa__open { align-self: center; }
@media (hover: hover) and (pointer: fine) { .tfa__open { display: none; } }
.tfa__key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tfa__key span { flex-basis: 100%; }
.tfa__key code, .tfa__codes code { font-size: 1.05rem; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.tfa__code, .login__code { font-size: 1.4rem; letter-spacing: 0.2em; text-align: center; max-width: 14em; }
.tfa__codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; padding-left: 1.6em; }
.login__code { width: 100%; min-height: 48px; }
.login__alt { align-self: center; }
.login__remember { display: flex; align-items: center; gap: 8px; min-height: 44px; }
/* A seller's copy that is only planning (founder beta) */
.writes { flex-wrap: wrap; }
.writes__go { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.setup__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.setup__step { display: flex; gap: 12px; align-items: flex-start; }
.setup__step p { margin: 2px 0 6px; }
.setup__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--os-border, #cbd5e1); display: grid; place-items: center; font-weight: 700; color: var(--fg-fff, #fff); }
.setup__step.is-done .setup__mark { background: var(--ok, #047857); border-color: var(--ok, #047857); }
.setup__step.is-done strong { color: var(--os-muted, #64748b); }
/* Tester sign-ups (Instagram) and the founder-beta waiting list (Settings) */
.tester__msg { margin: 0; padding: 10px 12px; border-left: 3px solid var(--os-border, #cbd5e1); background: var(--os-bg, #f8fafc); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tester__posts .igq__post { display: flex; gap: 10px; align-items: flex-start; }
.betas__list { list-style: none; margin: 0; padding: 0; }
.betas__row { padding: 10px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.betas__row p { margin: 2px 0; }
.betas__who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.betas__who a { overflow-wrap: anywhere; }
.writes__stale { flex-basis: 100%; font-weight: 600; }
.writes__lines { margin: 0 0 12px; padding-left: 1.2em; max-height: 50vh; overflow: auto; }
.writes__lines li { margin: 4px 0; overflow-wrap: anywhere; }
.tax__zip { margin-left: 8px; }
@media (max-width: 520px) { .tax__zip { margin: 8px 0 0; } }
/* A seller's copy: first look at the shop and how pieces were paired */
.flook__nums { margin: 8px 0; display: grid; gap: 8px; }
.flook__nums div { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.flook__nums dt { font-weight: 600; }
.flook__nums dd { margin: 0; text-align: right; }
.flook__notes { margin: 8px 0; padding-left: 1.2em; }
.flook__matches { margin-top: 16px; }
.flook__list { list-style: none; margin: 10px 0; padding: 0; }
.flook__pair { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.flook__pair.is-doubt { border-left: 3px solid var(--bd-b45309, #b45309); padding-left: 8px; }
.flook__pair p { margin: 2px 0; }
.flook__pic { flex: none; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--os-bg, #f1f5f9); }
.flook__links { display: flex; gap: 14px; }
.flook__links a { min-height: 44px; display: inline-flex; align-items: center; }
.flook__ok { margin-left: 8px; }
.shopc__row { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.shopc__row input { flex: 1; min-width: 0; }
.tax__go { display: inline-flex; padding-left: 0; font-weight: 600; }
.tax__sales { list-style: none; margin: 0; padding: 0; }
.tax__sale { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--os-border, #e5e7eb); background: none; cursor: pointer; }
.tax__open { color: var(--os-accent, #1d4ed8); font-weight: 600; font-size: 0.9rem; }
.tax__two { margin-top: 14px; }
.tax__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 8px 0; }
.tax__way { border: 1px solid var(--os-border, #e5e7eb); border-radius: 10px; padding: 10px 12px; }
.tax__way p { margin: 0 0 4px; }
.tax__way-name { font-weight: 700; }
.tax__way-sum { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Repeating expenses */
.recur__list { list-style: none; margin: 0; padding: 0; }
.recur__rule { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.recur__rule.is-off { opacity: 0.75; }
.recur__rule p { margin: 2px 0 0; }
.recur__amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.recur__presets { list-style: none; margin: 0 0 10px; padding: 0; }
.recur__preset { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.recur__tick { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.recur__tick input { width: 1.2rem; height: 1.2rem; margin-top: 2px; }
.recur__amount-in { width: 7em; flex: none; text-align: right; }
.biz__rule { margin-left: 8px; font-size: 0.8rem; }
.fees__missing { display: block; font-weight: 400; }
.fees__sub { margin: 14px 0 6px; font-size: 1rem; }
.fees__kinds { margin: 0; }
.fees__kinds div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.fees__kinds dd { margin: 0; font-variant-numeric: tabular-nums; }
.fees__open { padding: 0 4px; }
.fees__split { display: block; margin-top: 4px; }
.fees__mini { border-collapse: collapse; font-size: 0.9rem; }
.fees__mini th, .fees__mini td { padding: 2px 8px 2px 0; text-align: left; font-weight: 400; }
.fees__mini td { text-align: right; font-variant-numeric: tabular-nums; }
.privacy__list { list-style: none; margin: 0; padding: 0; }
.privacy__row { padding: 10px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.privacy__row p { margin: 4px 0; }
.privacy__row.is-due { border-left: 3px solid var(--bd-b91c1c, #b91c1c); padding-left: 10px; }
/* Insights: buyers by year, the US by state */
.byear__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 10px; }
.byear__year, .byear__us { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.usmap { margin: 8px 0; }
.usmap__svg { width: 100%; height: auto; display: block; }
.usmap__state { stroke: var(--bg-fff, #fff); stroke-width: 1; fill: var(--bg-e2e8f0, #e2e8f0); }
.usmap__state--1 { fill: var(--bg-c7dbf7, #c7dbf7); }
.usmap__state--2 { fill: var(--bg-93bbee, #93bbee); }
.usmap__state--3 { fill: var(--bg-5b95e2, #5b95e2); }
.usmap__state--4 { fill: var(--bg-2f6fd0, #2f6fd0); }
.usmap__state--5 { fill: var(--bg-1d4ea3, #1d4ea3); }
.usmap__key { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.usmap__swatch { display: inline-block; width: 18px; height: 12px; border-radius: 2px; }
.usmap__list { list-style: none; margin: 8px 0; padding: 0; }
.usmap__row { display: flex; justify-content: space-between; width: 100%; min-height: 44px; padding: 6px 4px; background: none; border: 0; border-bottom: 1px solid var(--os-border, #e5e7eb); font: inherit; text-align: left; cursor: pointer; }
.usmap__row:disabled { cursor: default; color: inherit; }
.usmap__cities { list-style: none; margin: 0 0 8px; padding: 0 0 0 16px; }
.usmap__cities li { display: flex; justify-content: space-between; padding: 4px 4px; color: var(--os-muted, #64748b); }
.usmap__swatch.usmap__state--1 { background: var(--bg-c7dbf7, #c7dbf7); }
.usmap__swatch.usmap__state--2 { background: var(--bg-93bbee, #93bbee); }
.usmap__swatch.usmap__state--3 { background: var(--bg-5b95e2, #5b95e2); }
.usmap__swatch.usmap__state--4 { background: var(--bg-2f6fd0, #2f6fd0); }
.usmap__swatch.usmap__state--5 { background: var(--bg-1d4ea3, #1d4ea3); }
/* Reports: Etsy sales of earlier years */
.sbf__year { border-top: 1px solid var(--os-border, #e5e7eb); padding-top: 10px; margin-top: 10px; }
.sbf__facts { margin: 4px 0 8px; padding-left: 1.2em; }
.sbf__doubts { list-style: none; margin: 8px 0; padding: 0; }
.sbf__doubt { padding: 10px 0; border-bottom: 1px solid var(--os-border, #e5e7eb); }
.sbf__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.sbf__pair p { margin: 2px 0; overflow-wrap: anywhere; }
.haul__total { margin: 4px 0; font-size: 1.1rem; }
.cost__share { margin-top: 8px; border-top: 1px solid var(--os-border, #e5e7eb); padding-top: 6px; }
.cost__share > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }

/* Haul piece lists on desktop (Matt 2026-11-23: "closer together, or larger text so it has enough contrast"). */
@media (min-width: 900px) {
  .haul__list { gap: 8px; }
  .haul__item { padding: 10px 14px; gap: 8px; }
  .hauld__head { gap: 14px; min-height: 0; }
  .hauld__head img { width: 72px; height: 72px; }
  .hauld__title strong { font-size: 1.0625rem; color: var(--ink, #1f2937); }
  .hauld__title .muted { color: var(--fg-475569, #475569); }
  .hauld__title small { font-size: 0.95rem; color: var(--fg-334155, #334155); margin-top: 2px; }
  .hauld__head .wtile__tag { font-size: 0.875rem; font-weight: 600; padding: 4px 10px; }
  .hauld__head .wtile__tag--ok { background: var(--bg-d1fae5, #d1fae5); color: var(--fg-065f46, #065f46); }
  .hauld__head .wtile__tag--warn { background: var(--bg-fef3c7, #fef3c7); color: var(--fg-92400e, #92400e); }
  .hauld__head .wtile__tag--bad { background: var(--bg-fee2e2, #fee2e2); color: var(--fg-991b1b, #991b1b); }
  .hauld__head .wtile__tag--plain { background: var(--bg-e2e8f0, #e2e8f0); color: var(--fg-334155, #334155); }
}

/* "What I paid" right on a compact piece row (Matt, 2026-11-23). */
.paidbox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.95rem; }
.paidbox__label { color: var(--fg-334155, #334155); font-weight: 600; }
.paidbox__money { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--bd-94a3b8, #94a3b8); border-radius: 8px; padding: 0 8px; background: var(--bg-fff, #fff); color: var(--fg-334155, #334155); }
html .paidbox__money input, html .paidbox__money input:focus { padding: 0 2px; outline: none; box-shadow: none; width: 6.5em; min-height: 40px; border: 0 !important; background: transparent; font: inherit; color: var(--ink, #1f2937); }
.paidbox__money:focus-within { outline: 2px solid var(--bd-2563eb, #2563eb); outline-offset: 1px; }
.paidbox__said { color: var(--fg-065f46, #065f46); font-size: 0.875rem; }
.paidbox__said--bad { color: var(--fg-991b1b, #991b1b); }
@media (min-width: 900px) { .haul__item > .paidbox { padding-left: 86px; } }

/* New listings step bar: 1 Photos · 2 Pieces · 3 Check & post. */
.steps ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 6px; }
.steps__item { flex: 1; min-width: 0; }
.steps__go { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid var(--bd-cbd5e1, #cbd5e1); border-radius: 10px; background: var(--bg-fff, #fff); color: var(--fg-334155, #334155); font: inherit; font-size: 0.95rem; text-align: left; }
button.steps__go { cursor: pointer; }
button.steps__go:hover { border-color: var(--bd-2563eb, #2563eb); }
.steps__n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-e2e8f0, #e2e8f0); font-weight: 700; font-size: 0.85rem; }
.steps__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps__item--now .steps__go { border-color: var(--bd-2563eb, #2563eb); background: var(--bg-eff6ff, #eff6ff); color: var(--fg-1e3a8a, #1e3a8a); font-weight: 700; }
.steps__item--now .steps__n { background: var(--bg-2563eb, #2563eb); color: var(--fg-fff, #fff); }
.steps__item--done .steps__n { background: var(--bg-d1fae5, #d1fae5); color: var(--fg-065f46, #065f46); }
@media (max-width: 480px) {
  .steps__go { gap: 6px; padding: 6px 8px; font-size: 0.875rem; }
  .steps__n { width: 22px; height: 22px; }
  .steps__label { white-space: normal; line-height: 1.15; }
}

/* The lot line on "Check & post" (Matt, 2026-11-23). */
.lot { display: flex; flex-direction: column; gap: 10px; }
.lot__title { margin: 0; font-size: 1.05rem; }
.lot__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.lot__field { display: flex; flex-direction: column; gap: 4px; color: var(--fg-334155, #334155); font-weight: 600; font-size: 0.95rem; }
.lot__where { min-width: 14em; }
.lot__each { margin: 0 0 10px; color: var(--fg-1e3a8a, #1e3a8a); font-weight: 700; }
.lot__sum { margin: 0; color: var(--fg-334155, #334155); }
/* Owl Sync's suggested price, red until Matt checks it (Matt, 2026-11-23: "Mark it RED"). */
.pricechk { border: 2px solid var(--bd-dc2626, #dc2626); border-radius: 10px; background: var(--bg-fef2f2, #fef2f2); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pricechk__head { margin: 0; color: var(--fg-7f1d1d, #7f1d1d); }
.pricechk__why { margin: 0; color: var(--fg-7f1d1d, #7f1d1d); }
.pricechk__chip.wtile__tag--bad, .hauld__head .pricechk__chip { background: var(--bg-dc2626, #dc2626); color: var(--fg-fff, #fff); font-weight: 700; }
.pricechk__list { margin: 8px 0 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }


/* A promo's posts (Matt, 2026-11-24: "Build multi-post, include TESTER too"). */
.campaign { display: flex; flex-direction: column; gap: 8px; }
.campaign__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.campaign__post { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); }
.campaign__words { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.campaign__words strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign__post .button { flex: none; }
.campaign__from { margin: 0; color: var(--fg-334155, #334155); }


/* Sold list: the days picked and a totals row that stays in view (master, 2026-11-25, from Flipwise). */
.srange { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.srange__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.srange__days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.srange__days .cost__input { width: auto; }
.stotals { position: sticky; top: 0; z-index: 5; background: var(--bg-fff, #fff); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; margin: 8px 0; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); }
html.os .stotals { top: 64px; }
.stotals__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
@media (min-width: 900px) { .stotals__row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stotals__row dt { font-size: 0.8rem; color: var(--fg-475569, #475569); }
.stotals__row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink, #1f2937); }
.stotals__profit dd { color: var(--fg-065f46, #065f46); }
.stotals__profit dd.stotals__loss { color: var(--fg-991b1b, #991b1b); }
.stotals__short { margin: 6px 0 0; color: var(--fg-475569, #475569); }

/* Inventory: how long listed (words first, colour repeats it) and where it is live (master, 2026-11-25). */
.invgrid__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; }
.agechip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.agechip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.agechip--fresh { background: var(--bg-d1fae5, #d1fae5); color: var(--fg-065f46, #065f46); }
.agechip--settled { background: var(--bg-e0f2fe, #e0f2fe); color: var(--fg-075985, #075985); }
.agechip--old { background: var(--bg-fef3c7, #fef3c7); color: var(--fg-92400e, #92400e); }
.agechip--stale { background: var(--bg-fee2e2, #fee2e2); color: var(--fg-991b1b, #991b1b); }
.agelegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; color: var(--fg-334155, #334155); }
.agelegend__title { font-weight: 600; }
.chan { display: inline-flex; gap: 3px; }
.chan__badge { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 5px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; }
.chan__badge--etsy { background: var(--bg-ffedd5, #ffedd5); color: var(--fg-9a3412, #9a3412); }
.chan__badge--web { background: var(--bg-dbeafe, #dbeafe); color: var(--fg-1e3a8a, #1e3a8a); }
.chan__badge--ebay { background: var(--bg-ede9fe, #ede9fe); color: var(--fg-5b21b6, #5b21b6); }
/* the ticked-pieces bar stays in view on a computer too, not only on a phone */
@media (min-width: 900px) { .bulkbar { position: sticky; top: 64px; z-index: 3; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); } }

/* Home: the stats strip (master, 2026-11-25, from Flipwise's "My stats"). Phone first: 2 across, 4 on a computer. */
.stats__tabs { margin: 4px 0 10px; }
.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats__cell { border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); overflow: hidden; }
.stats__cell.is-open { border-color: var(--bd-2563eb, #2563eb); }
.stats__fig { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 88px; padding: 10px 12px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.stats__fig:focus-visible { outline: 2px solid var(--bd-2563eb, #2563eb); outline-offset: -2px; }
.stats__label { font-size: 0.85rem; color: var(--fg-475569, #475569); }
.stats__value { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink, #1f2937); }
.stats__value--loss { color: var(--fg-991b1b, #991b1b); }
.stats__change { font-size: 0.82rem; font-weight: 600; }
.stats__change--up { color: var(--fg-065f46, #065f46); }
.stats__change--down { color: var(--fg-991b1b, #991b1b); }
.stats__change--same { color: var(--fg-475569, #475569); }
.stats__split { border-top: 1px solid var(--rule); padding: 8px 12px; background: var(--bg-f8fafc, #f8fafc); }
.stats__split dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.stats__split dl > div { display: flex; justify-content: space-between; gap: 8px; }
.stats__split dt { color: var(--fg-334155, #334155); }
.stats__split dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.stats__change--none { color: var(--fg-475569, #475569); }
.agechip--unknown { background: var(--bg-e2e8f0, #e2e8f0); color: var(--fg-334155, #334155); }

/* Inventory age chips that filter (feat/bulk-ageing): the colour repeats the words; picked = dark ring. */
.inv-ages { align-items: center; }
.inv-ages__title { font-weight: 600; color: var(--fg-334155, #334155); }
.chip.agechip-btn { gap: 6px; border: 1px solid transparent; font-weight: 600; }
.chip.agechip-btn.is-active { outline: 2px solid var(--ink, #1f2937); outline-offset: 1px; }
.bulkbar__all { margin-left: 8px; }
/* Home: the morning briefing (App dev feat/morning-briefing). */
.brief__notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.brief__note { border-left: 3px solid var(--os-primary, #2563eb); padding: 2px 0 2px 12px; }
.brief__kind { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--os-primary-hover, #1d4ed8); text-transform: uppercase; letter-spacing: 0.03em; }
.brief__text { margin: 2px 0 0; color: var(--ink); }

/* "Open Pirate Ship" beside the orders to ship (Matt, 2026-11-26). Phone: full width under the title. */
.ship__top { flex-wrap: wrap; gap: 8px; }
.triage__do { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 600px) { .ship__top .pirate { width: 100%; justify-content: center; } .triage__do { width: 100%; } .triage__do .button { flex: 1; } }

/* The website's photo order (Matt, 2026-11-26: "Rearrange on website only"). */
.webord__more { margin: 10px 0; }
.webord__more > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.webord__title { margin: 6px 0 4px; font-size: 1rem; }
.webord__list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.webord__row { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-fff, #fff); touch-action: pan-y; user-select: none; }
.webord__img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; pointer-events: none; }
.webord__pos { flex: 1; min-width: 0; font-weight: 600; color: var(--fg-334155, #334155); }
.webord__img--wait { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.7rem; background: var(--rule, #e5e7eb); color: var(--fg-334155, #334155); }

/* Inventory: Etsy videos to the website (2026-11-26). */
html.os .evid__progress { font-weight: 600; margin: 6px 0; }
@media (max-width: 600px) { html.os .evid .fix__buttons .button { width: 100%; } }
/* Reports: the Ads card (master, 2026-11-26). Phone first: two figures a row, bars scroll sideways if many. */
html.os .ads__sums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
@media (min-width: 900px) { html.os .ads__sums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html.os .ads__sums dt { font-size: 0.85rem; color: var(--muted, #475569); }
html.os .ads__sums dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; }
html.os .ads__legend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; }
html.os .ads__dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
html.os .ads__bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; overflow-x: auto; padding-bottom: 2px; }
html.os .ads__col { flex: 1 0 22px; display: flex; flex-direction: column; align-items: center; height: 100%; }
html.os .ads__stack { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
html.os .ads__seg { display: block; width: 100%; min-height: 2px; }
html.os .ads__lab { font-size: 0.7rem; color: var(--muted, #475569); white-space: nowrap; margin-top: 2px; }
html.os .ads__k--etsy { background: var(--bg-f97316, #f97316); }
html.os .ads__k--offsite { background: var(--bg-2563eb, #2563eb); }
html.os .ads__k--typed { background: var(--bg-94a3b8, #94a3b8); }
html.os .ads__add { margin-top: 12px; }
html.os .ads__add > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
html.os .ads__form { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 700px) { html.os .ads__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html.os .ads__form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
html.os .ads__form input { min-height: 44px; }

/* Haul: "How did this haul do?" (Matt, 2026-11-26). Phone first. */
html.os .hrev__summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
html.os .hrev__title { margin: 0; font-size: 1.1rem; display: inline; }
html.os .hrev__sums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
@media (min-width: 900px) { html.os .hrev__sums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html.os .hrev__sums dt, html.os .hrev__facts dt { font-size: 0.85rem; color: var(--muted, #475569); }
html.os .hrev__sums dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 700; }
html.os .hrev__loss { color: var(--fg-b91c1c, #b91c1c); }
html.os .hrev__counts { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
html.os .hrev__list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
html.os .hrev__piece { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; }
html.os .hrev__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
html.os .hrev__num { font-weight: 700; color: var(--muted, #475569); }
html.os .hrev__name { flex: 1; min-width: 0; font-weight: 600; }
html.os .hrev__st { font-size: 0.85rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--rule, #e5e7eb); }
html.os .hrev__st--ok { background: var(--bg-dcfce7, #dcfce7); color: var(--fg-166534, #166534); }
html.os .hrev__st--warn { background: var(--bg-fef3c7, #fef3c7); color: var(--fg-92400e, #92400e); }
html.os .hrev__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; }
html.os .hrev__facts dd { margin: 0; }
html.os .hrev__do { margin-top: 8px; }
@media (max-width: 600px) { html.os .hrev__do .button { width: 100%; } }
html.os .etsyed__form { display: grid; gap: 8px; margin-top: 8px; }
html.os .etsyed__form label { display: flex; flex-direction: column; gap: 4px; }
html.os .etsyed__form input, html.os .etsyed__form textarea { min-height: 44px; width: 100%; }
html.os .etsyed__diff { margin-bottom: 8px; }
html.os .etsyed__diff p { margin: 2px 0; }
html.os .etsyed__old { color: var(--muted, #475569); text-decoration: line-through; }
html.os .etsyed__new { font-weight: 600; }
html.os .hrev__do { display: flex; flex-wrap: wrap; gap: 6px; }
html.os .hrev__thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
html.os .etsyed__pick { max-width: 100%; max-height: 240px; border-radius: 8px; display: block; margin: 0 auto 8px; }
html.os .etsyed__tick { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
html.os .webtog { margin: 8px 0; }
@media (max-width: 600px) { html.os .webtog .button { width: 100%; } }

/* Clothes in a haul, Copy for Depop / Mercari (Matt, 2026-11-26). Phone first. */
html.os .clo__switch { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 10px 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--os-surface, #fff); }
html.os .clo__switch input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
html.os .clo { margin: 8px 0; }
html.os .clo > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
html.os .clo__form { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 700px) { html.os .clo__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html.os .clo__wide, html.os .clo__measures { grid-column: 1 / -1; }
html.os .clo__field { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
html.os .clo__field input, html.os .clo__field select, html.os .clo__field textarea { min-height: 44px; width: 100%; }
html.os .clo__field--ai input { border: 2px solid var(--bd-dc2626, #dc2626); background: var(--bg-fef2f2, #fef2f2); }
html.os .clo__ai { color: var(--fg-b91c1c, #b91c1c); font-weight: 700; font-size: 0.85rem; }
html.os .clo__ok { align-self: flex-start; }
html.os .clo__measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; }
@media (min-width: 700px) { html.os .clo__measures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html.os .clo__sites { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
html.os .clo__site { display: flex; flex-direction: column; gap: 6px; }
html.os .clo__posted { display: flex; align-items: center; gap: 8px; min-height: 44px; }
html.os .clo__sheet { max-height: 90vh; overflow-y: auto; }
html.os .clo__part { margin: 10px 0; }
html.os .clo__part h3 { margin: 0 0 4px; font-size: 1rem; }
html.os .clo__desc { white-space: pre-wrap; }
html.os .clo__facts { display: grid; gap: 6px; margin: 8px 0; }
html.os .clo__facts dt { font-size: 0.85rem; color: var(--muted, #475569); }
html.os .clo__facts dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html.os .clo__photos { list-style: none; padding: 0; margin: 6px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
html.os .clo__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
html.os .clo__downs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html.os .clo__downs .button { display: block; margin-top: 6px; }
html.os .clo__read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 10px; }

/* "Which piece": search as you type (Matt, 2026-11-27). */
html.os .pick { display: contents; }
html.os .pick__list { list-style: none; margin: 4px 0 8px; padding: 4px; border: 1px solid var(--rule); border-radius: 10px; background: var(--os-surface, #fff); max-height: 320px; overflow-y: auto; grid-column: 1 / -1; }
html.os .pick__opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
html.os .pick__opt.is-on, html.os .pick__opt:hover { background: var(--bg-eff6ff, #eff6ff); }
html.os .pick__img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: var(--rule, #e5e7eb); }
html.os .pick__text { display: flex; flex-direction: column; min-width: 0; }
html.os .pick__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.os .pick__own { color: var(--muted, #475569); font-style: italic; }
html.os .pick__tied { grid-column: 1 / -1; margin: 0; }
/* "Where it goes": one place per haul piece, Etsy + website by default (Matt, 2026-11-27). */
html.os .place { border: 1px solid var(--rule); border-radius: 10px; padding: 6px 10px 8px; margin: 0 0 8px; flex-basis: 100%; }
html.os .place legend { font-weight: 700; padding: 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html.os .place__opt { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border-radius: 8px; }
html.os .place__opt.is-on { background: var(--bg-eff6ff, #eff6ff); font-weight: 600; }
html.os .place__opt input { width: 20px; height: 20px; flex: none; }
html.os .place__goes { display: inline-flex; flex-wrap: wrap; gap: 4px; font-weight: 600; }
html.os .place__badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-dcfce7, #dcfce7); color: var(--fg-166534, #166534); }
html.os .place__badge--rh, html.os .place__badge--collection { background: var(--bg-fef3c7, #fef3c7); color: var(--fg-92400e, #92400e); }
html.os .place__badge--ebay { background: var(--bg-dbeafe, #dbeafe); color: var(--fg-1e40af, #1e40af); }

/* New listings flow: steps and the one next button (Matt, 2026-11-27). */
html.os .flow { margin: 8px 0 12px; }
html.os .flow__steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 10px; overflow-x: auto; }
html.os .flow__steps li { flex: 1 0 auto; text-align: center; font-size: 0.78rem; font-weight: 700; padding: 8px 6px; border-bottom: 3px solid var(--rule, #e5e7eb); color: var(--muted, #475569); white-space: nowrap; }
html.os .flow__steps li.is-done { border-color: var(--bd-22c55e, #22c55e); color: var(--fg-166534, #166534); }
html.os .flow__steps li.is-now { border-color: var(--os-primary, #2563eb); color: var(--os-primary, #2563eb); }
html.os .flow__next { display: flex; flex-direction: column; gap: 8px; background: var(--bg-eff6ff, #eff6ff); border: 1px solid var(--bd-bfdbfe, #bfdbfe); border-radius: 12px; padding: 12px; }
html.os .flow__next .button { width: 100%; }
html.os .flow__detail { display: block; }
@media (min-width: 900px) { html.os .flow__next { flex-direction: row; align-items: center; justify-content: space-between; } html.os .flow__next .button { width: auto; } }
html.os .hauld__need { margin: 6px 0 0; font-size: 0.85rem; color: var(--fg-b91c1c, #b91c1c); background: var(--bg-fef2f2, #fef2f2); border-radius: 8px; padding: 6px 8px; }
@media (min-width: 900px) { html.os .hauld__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; } }
/* Batch list progress (Matt, 2026-11-27: "what hasn't been posted yet"). */
html.os .bprog { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
html.os .bprog__head { font-weight: 800; color: var(--fg-92400e, #92400e); }
html.os .bprog__head.is-done { color: var(--fg-166534, #166534); }
html.os .bprog__bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--rule, #e5e7eb); }
html.os .bprog__seg { display: block; height: 100%; }
html.os .bprog__seg--live, html.os .bprog__seg--sold { background: var(--bg-22c55e, #22c55e); }
html.os .bprog__seg--draft { background: var(--bg-3b82f6, #3b82f6); }
html.os .bprog__seg--ready { background: var(--bg-f59e0b, #f59e0b); }
html.os .bprog__seg--booth { background: var(--bg-a855f7, #a855f7); }
html.os .bprog__seg--gone { background: var(--bg-ef4444, #ef4444); }
html.os .bprog__seg--none { background: transparent; }
html.os .bprog__chips { display: flex; flex-wrap: wrap; gap: 4px; }
html.os .bprog__chip { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--rule, #e5e7eb); color: var(--fg-334155, #334155); }
html.os .bprog__chip--live, html.os .bprog__chip--sold { background: var(--bg-dcfce7, #dcfce7); color: var(--fg-166534, #166534); }
html.os .bprog__chip--draft { background: var(--bg-dbeafe, #dbeafe); color: var(--fg-1e40af, #1e40af); }
html.os .bprog__chip--ready { background: var(--bg-fef3c7, #fef3c7); color: var(--fg-92400e, #92400e); }
html.os .bprog__chip--gone { background: var(--bg-fef2f2, #fef2f2); color: var(--fg-b91c1c, #b91c1c); }
html.os .bprog__tabs { margin: 6px 0 10px; }
html.os .bprog__done > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
html.os .hauld__video { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: var(--fg-334155, #334155); }
html.os .hauld__video--ready { color: var(--fg-166534, #166534); }
html.os .hauld__video--failed { color: var(--fg-b91c1c, #b91c1c); }
html.os .hauld__vprev { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--bg-000, #000); }
/* Settings → People (PEOPLE_ENABLED) */
.people__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.people__person { border-top: 1px solid var(--line, #e3d6bb); padding: 0.75rem 0; }
.people__ticks { border: 0; margin: 0.25rem 0; padding: 0; display: grid; gap: 0.35rem; }
.people__ticks label { display: flex; gap: 0.5rem; align-items: center; min-height: 44px; }
.people__link { display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.people__link input { width: 100%; box-sizing: border-box; }
.people form { display: grid; gap: 0.5rem; }

/* Reports: Google search (SEO part 1). */
html.os .seo__list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; }
html.os .seo__row { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; }
html.os .seo__row p { margin: 2px 0; }
html.os .seo__kind { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-fef3c7, #fef3c7); color: var(--fg-92400e, #92400e); }
html.os .seo__kind--almost-page-one { background: var(--bg-dcfce7, #dcfce7); color: var(--fg-166534, #166534); }
html.os .seo__kind--slipping { background: var(--bg-fef2f2, #fef2f2); color: var(--fg-b91c1c, #b91c1c); }
html.os .seo__more > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
html.os .seo__words, html.os .seo__site { display: grid; gap: 8px; }
html.os .seo__words label, html.os .seo__site label { display: flex; flex-direction: column; gap: 4px; }
html.os .seo__words input, html.os .seo__words textarea, html.os .seo__site input { min-height: 44px; width: 100%; }
html.os .seo__ai { font-weight: 700; color: var(--fg-b91c1c, #b91c1c); background: var(--bg-fef2f2, #fef2f2); border-radius: 8px; padding: 6px 8px; font-size: 0.85rem; }
html.os .seo__issues { margin: 4px 0; padding-left: 18px; font-size: 0.85rem; color: var(--fg-92400e, #92400e); }
html.os .seo__funnel dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 6px 0; }
html.os .seo__funnel dt { font-size: 0.8rem; color: var(--muted, #475569); }
html.os .seo__funnel dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
html.os .seo__funnel h3 { margin: 10px 0 0; font-size: 1rem; }
html.os .seo__kind--weak-seo { background: var(--bg-e0e7ff, #e0e7ff); color: var(--fg-3730a3, #3730a3); }
/* Reports: sheet sales tied to their Etsy orders (ticket 57). */
html.os .sheetr__counts { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
html.os .sheetr__more > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
html.os .sheetr__list { padding-left: 18px; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 6px; }
html.os .sheetr__why { display: block; }
html.os .ads__k--meta { background: var(--bg-8b5cf6, #8b5cf6); }

/* Inventory: website pieces with no Etsy tie */
html.os .untied__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
html.os .untied__row { border-top: 1px solid var(--os-border); padding-top: 12px; overflow-wrap: anywhere; }
html.os .untied__row:first-child { border-top: 0; padding-top: 0; }
html.os .untied__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html.os .untied__side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html.os .untied__side p { margin: 0; }
html.os .untied__side img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
html.os .untied__side a { display: inline-flex; align-items: center; min-height: 44px; }
html.os .untied__presses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
html.os .untied__presses .button { min-height: 44px; }
/* List tab: "Needs a look" strip */
html.os .look__list, html.os .look__cands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
html.os .look__row { border-top: 1px solid var(--os-border); padding-top: 12px; overflow-wrap: anywhere; }
html.os .look__row:first-child { border-top: 0; padding-top: 0; }
html.os .look__title { margin: 0 0 4px; }
html.os .look__cands { gap: 8px; margin: 8px 0; }
html.os .look__cands li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
html.os .look__cands a { display: inline-flex; align-items: center; min-height: 44px; }
html.os .look__presses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
html.os .look__presses .button, html.os .look__cands .button { min-height: 44px; }
html.os .look__other { display: block; width: 100%; font-weight: 600; color: var(--warn-ink, #8a4b00); }
/* Haul: add to the open batch, merge batches, needs a price */
html.os .haul__join { border-top: 1px solid var(--os-border); margin-top: 12px; padding-top: 12px; }
html.os .haul__join .button, html.os .haul__merge .button, html.os .haul__merge select { min-height: 44px; }
html.os .haul__needs { color: var(--warn-ink, #8a4b00); font-weight: 600; }
html.os .haul__merge { margin-top: 12px; }
html.os .haul__merge summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
html.os .haul__merge label { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
html.os .haul__merge select { width: 100%; max-width: 100%; }
html.os .haul__merge ul { list-style: none; padding-left: 12px; }

/* Overview: the Today card */
html.os .today__lines { list-style: none; margin: 0; padding: 0; }
html.os .today__lines li + li { border-top: 1px solid var(--os-border); }
html.os .today__line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
html.os .today__words { flex: 1; min-width: 0; overflow-wrap: anywhere; }
html.os .today__go { color: var(--muted, #777); font-size: 1.3rem; }
html.os .today__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-8a8a8a, #8a8a8a); }
html.os .today__dot--ok { background: var(--bg-2e7d32, #2e7d32); }
html.os .today__dot--todo { background: var(--bg-b26a00, #b26a00); }
html.os .today__dot--alert { background: var(--bg-c62828, #c62828); }
html.os .look__row > p a { display: inline-flex; align-items: center; min-height: 44px; }
html.os .today__quiet { min-height: 44px; display: flex; align-items: center; }

/* ==========================================================================================================
   Dark look (master, 2026-11-27): follows the phone's dark setting. The tokens above, and each colour typed
   into a rule (var(--bg-…/--fg-…/--bd-…, <the light colour>)), take their dark values here; unset, a rule keeps
   its light colour, so the light look is unchanged. data-theme="light" on <html> keeps light; "dark" forces dark.
   ========================================================================================================== */
html.os[data-theme='dark'] {
  --warn-ink: #fbbf24;
  --os-bg: #0b1220;
  --os-surface: #151d2e;
  --os-surface-alt: #1c2638;
  --os-border: #2c3a52;
  --os-border-strong: #41526e;
  --os-text: #e6ebf2;
  --os-muted: #a7b3c6;
  --os-primary: #2563eb;
  --os-primary-hover: #93c5fd;
  --os-primary-soft: #172554;
  --os-success: #4ade80;
  --os-success-soft: #0b2e1d;
  --os-warning: #fbbf24;
  --os-warning-soft: #2e2108;
  --os-danger: #f87171;
  --os-danger-soft: #331316;
  --os-ig: #c2255c;
  --os-ig-soft: #2e0f1f;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --os-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
  --bg-fff: var(--os-surface);
  --bd-fff: var(--os-surface);
  --bg-f8fafc: var(--os-surface-alt);
  --bg-f1f5f9: var(--os-surface-alt);
  --bg-dde3ea: var(--os-surface-alt);
  --bg-e2e8f0: var(--os-surface-alt);
  --bg-eff6ff: #1e2b4a;
  --bg-dbeafe: #1e2b4a;
  --bg-e0e7ff: #1e2b4a;
  --bg-e0f2fe: #1e2b4a;
  --bg-c7dbf7: #1e2b4a;
  --bg-c8d9ef: #1e2b4a;
  --bg-93bbee: #3b5a86;
  --bg-fef2f2: #3a1518;
  --bg-fee2e2: #3a1518;
  --bg-fef3c7: #33260a;
  --bg-fffbeb: #33260a;
  --bg-ffedd5: #33260a;
  --bg-fbf3df: #33260a;
  --bg-fdf4ee: #33260a;
  --bg-dcfce7: #0d3324;
  --bg-d1fae5: #0d3324;
  --bg-ede9fe: #2a1f4a;
  --bd-cbd5e1: var(--os-border-strong);
  --bd-bfdbfe: #2c4a7a;
  --bd-fde68a: #6b5414;
  --bd-e2cc86: #6b5414;
  --bd-d9b95c: #6b5414;
  --bd-fecaca: #6b2a2a;
  --bd-e7b9a4: #6b2a2a;
  --bd-f0d5c6: #6b2a2a;
  --fg-065f46: #6ee7b7;
  --fg-166534: #6ee7b7;
  --fg-075985: #7dd3fc;
  --fg-1d4ed8: #93c5fd;
  --fg-1e3a8a: #93c5fd;
  --fg-1e40af: #93c5fd;
  --fg-334155: var(--os-text);
  --fg-475569: var(--os-muted);
  --fg-3730a3: #c4b5fd;
  --fg-5b21b6: #c4b5fd;
  --fg-6e2d14: #fdba74;
  --fg-9a3412: #fdba74;
  --fg-78350f: #fcd34d;
  --fg-7a5d12: #fcd34d;
  --fg-92400e: #fcd34d;
  --fg-7f1d1d: #fca5a5;
  --fg-991b1b: #fca5a5;
  --fg-b91c1c: #fca5a5;
  color-scheme: dark;
}
/* the primary button keeps white on blue; its hover stays dark enough (links take --os-primary-hover) */
html.os[data-theme='dark'] .os-btn--primary:hover, html.os[data-theme='dark'] .button--primary:hover { background: #1d4ed8; }
/* a QR code needs its white paper to scan */
html.os[data-theme='dark'] .tfa__qr { background: #fff; }
/* the picked tab is blue (white text 5.2:1); a tab that is a <button> loses the browser's grey */
html.os[data-theme='dark'] .os-tab.is-on { background: var(--os-primary); }
html.os[data-theme='dark'] .chip--button.is-active, html.os[data-theme='dark'] .submenu__item.is-on, html.os[data-theme='dark'] .igq > .submenu .submenu__item.is-on { background: var(--os-primary); border-color: var(--os-primary); }
html.os[data-theme='dark'] button.os-tab:not(.is-on) { background: var(--os-surface-alt); border-color: var(--os-border); }
@media (prefers-color-scheme: dark) {
html.os:not([data-theme='light']) {
  --warn-ink: #fbbf24;
  --os-bg: #0b1220;
  --os-surface: #151d2e;
  --os-surface-alt: #1c2638;
  --os-border: #2c3a52;
  --os-border-strong: #41526e;
  --os-text: #e6ebf2;
  --os-muted: #a7b3c6;
  --os-primary: #2563eb;
  --os-primary-hover: #93c5fd;
  --os-primary-soft: #172554;
  --os-success: #4ade80;
  --os-success-soft: #0b2e1d;
  --os-warning: #fbbf24;
  --os-warning-soft: #2e2108;
  --os-danger: #f87171;
  --os-danger-soft: #331316;
  --os-ig: #c2255c;
  --os-ig-soft: #2e0f1f;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --os-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
  --bg-fff: var(--os-surface);
  --bd-fff: var(--os-surface);
  --bg-f8fafc: var(--os-surface-alt);
  --bg-f1f5f9: var(--os-surface-alt);
  --bg-dde3ea: var(--os-surface-alt);
  --bg-e2e8f0: var(--os-surface-alt);
  --bg-eff6ff: #1e2b4a;
  --bg-dbeafe: #1e2b4a;
  --bg-e0e7ff: #1e2b4a;
  --bg-e0f2fe: #1e2b4a;
  --bg-c7dbf7: #1e2b4a;
  --bg-c8d9ef: #1e2b4a;
  --bg-93bbee: #3b5a86;
  --bg-fef2f2: #3a1518;
  --bg-fee2e2: #3a1518;
  --bg-fef3c7: #33260a;
  --bg-fffbeb: #33260a;
  --bg-ffedd5: #33260a;
  --bg-fbf3df: #33260a;
  --bg-fdf4ee: #33260a;
  --bg-dcfce7: #0d3324;
  --bg-d1fae5: #0d3324;
  --bg-ede9fe: #2a1f4a;
  --bd-cbd5e1: var(--os-border-strong);
  --bd-bfdbfe: #2c4a7a;
  --bd-fde68a: #6b5414;
  --bd-e2cc86: #6b5414;
  --bd-d9b95c: #6b5414;
  --bd-fecaca: #6b2a2a;
  --bd-e7b9a4: #6b2a2a;
  --bd-f0d5c6: #6b2a2a;
  --fg-065f46: #6ee7b7;
  --fg-166534: #6ee7b7;
  --fg-075985: #7dd3fc;
  --fg-1d4ed8: #93c5fd;
  --fg-1e3a8a: #93c5fd;
  --fg-1e40af: #93c5fd;
  --fg-334155: var(--os-text);
  --fg-475569: var(--os-muted);
  --fg-3730a3: #c4b5fd;
  --fg-5b21b6: #c4b5fd;
  --fg-6e2d14: #fdba74;
  --fg-9a3412: #fdba74;
  --fg-78350f: #fcd34d;
  --fg-7a5d12: #fcd34d;
  --fg-92400e: #fcd34d;
  --fg-7f1d1d: #fca5a5;
  --fg-991b1b: #fca5a5;
  --fg-b91c1c: #fca5a5;
  color-scheme: dark;
}
/* the primary button keeps white on blue; its hover stays dark enough (links take --os-primary-hover) */
html.os:not([data-theme='light']) .os-btn--primary:hover, html.os:not([data-theme='light']) .button--primary:hover { background: #1d4ed8; }
/* a QR code needs its white paper to scan */
html.os:not([data-theme='light']) .tfa__qr { background: #fff; }
/* the picked tab is blue (white text 5.2:1); a tab that is a <button> loses the browser's grey */
html.os:not([data-theme='light']) .os-tab.is-on { background: var(--os-primary); }
html.os:not([data-theme='light']) .chip--button.is-active, html.os:not([data-theme='light']) .submenu__item.is-on, html.os:not([data-theme='light']) .igq > .submenu .submenu__item.is-on { background: var(--os-primary); border-color: var(--os-primary); }
html.os:not([data-theme='light']) button.os-tab:not(.is-on) { background: var(--os-surface-alt); border-color: var(--os-border); }
}
html.os .untied__gone { margin: 0 0 6px; font-weight: 600; color: var(--warn-ink, #8a4b00); }

/* Books: Etsy label ties */
html.os .books__etsylabel { display: block; }
html.os .etsylab { border-top: 1px solid var(--os-border); margin-top: 16px; padding-top: 12px; }
html.os .etsylab h3 { margin: 0 0 4px; font-size: 1.05rem; }
html.os .etsylab__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
html.os .etsylab__row { border: 1px solid var(--os-border); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
html.os .etsylab__row p { margin: 0 0 4px; }
html.os .etsylab__presses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
html.os .etsylab__presses .button { min-height: 44px; }
html.os .books__untie { min-height: 44px; margin-top: 4px; }
/* Instagram queue: a post skipped because its piece sold first, greyed with the reason (still readable) */
html.os .igm__row--skipped { background: var(--os-surface-alt); }
html.os .igm__row--skipped .igq__thumb { filter: grayscale(1); opacity: 0.6; }
html.os .igm__row--skipped .igq__title { color: var(--os-muted); }
html.os .igm__note { margin: 2px 0; color: var(--os-text); font-weight: 600; }
html.os .result > .button { align-self: center; flex: none; height: auto; min-height: 44px; }

/* Overview: What's new (dismissable) */
html.os .whatsnew__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.os .whatsnew__head h2 { margin: 0; }
html.os .whatsnew__head .button { min-height: 44px; flex: none; }
html.os .whatsnew__lines { list-style: none; margin: 8px 0 0; padding: 0; }
html.os .whatsnew__lines li + li { border-top: 1px solid var(--os-border); }
html.os .whatsnew__lines a, html.os .whatsnew__lines span { display: flex; align-items: center; min-height: 44px; padding: 6px 0; overflow-wrap: anywhere; }
html.os .etsylab__choices { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html.os .etsylab__choices > li + li { border-top: 1px dashed var(--os-border); padding-top: 8px; }
/* a long list: rows off-screen are not laid out or painted until they come near (Inventory speed, 2026-11-27) */
html.os .pcs tbody tr, html.os .invgrid tbody tr { content-visibility: auto; contain-intrinsic-size: auto 96px; }
/* windowed Every-piece list (INV_WINDOW_ENABLED): rows are measured, so each one's space is below it only, nothing is
   skipped by the browser (the window does that), and the spacer rows have no card look */
html.os .pcs__table--window tbody tr { content-visibility: visible; margin-top: 0; }
@media (max-width: 899px) { html.os .pcs__table--window tbody tr:not(.pcs__pad) { margin: 0 0 8px; } }
html.os .pcs__table--window tbody tr.pcs__pad { display: block; padding: 0; margin: 0; border: 0; background: none; }
html.os .pcs__table--window tbody tr.pcs__pad td { display: block; padding: 0; border: 0; }
html.os .pcs__hint { margin: 4px 0 8px; }

/* SP2: shared progress bar */
.jobs { display: grid; gap: 10px; margin: 12px 0; }
.jobs__head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; overflow-wrap: anywhere; }
.jobs__label { font-weight: 600; }
.jobs__count { color: var(--ink-soft); }
.jobs__track { height: 10px; border-radius: 999px; background: var(--moss-wash); overflow: hidden; }
.jobs__fill { height: 100%; border-radius: inherit; background: var(--moss); transition: width 600ms ease-out; background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); background-size: 200% 100%; animation: jobs-shine 1.6s linear infinite; }
.jobs__row--done .jobs__fill, .jobs__row--waiting .jobs__fill { animation: none; }
.jobs__row--failed .jobs__fill { background-color: var(--rust); }
.jobs__note { margin: 4px 0 0; font-size: 0.85rem; }
.jobs__note--error { color: var(--rust); }
@keyframes jobs-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .jobs__fill { transition: none; animation: none; } }

/* FB1: shared press notice, plus a short arrival for every notice */
.press-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); overflow-wrap: anywhere; }
.result, .press-notice { animation: notice-in 220ms ease-out; }
@keyframes notice-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result, .press-notice { animation: none; } }

/* Videos ready for Etsy (bulk) */
/* tick lists: Publish all checked (and Videos ready for Etsy, same classes) */
.bulkv__list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 4px; }
.bulkv__row { display: flex; align-items: center; gap: 10px; min-height: 44px; overflow-wrap: anywhere; }
.bulkv__row input { width: 22px; height: 22px; flex: none; }
.bulkv__row img { border-radius: 6px; object-fit: cover; flex: none; }
.bulkv__go { width: 100%; min-height: 44px; }
.bulkv__nothumb { width: 44px; height: 44px; border-radius: 6px; background: var(--moss-wash); flex: none; }
.pubc { margin: 12px 0; }
.pubc__ok { color: var(--moss); font-weight: 600; }
.pubc__fix { color: var(--rust); }

/* Look: day or night (Auto / Light / Dark) */
.look { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.look__choice { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--os-border, var(--rule)); background: var(--os-surface, var(--paper)); color: inherit; font: inherit; cursor: pointer; }
.look__choice.is-on { border-color: var(--os-primary, var(--gold-deep)); box-shadow: inset 0 0 0 1px var(--os-primary, var(--gold-deep)); font-weight: 600; }
.look__step { padding: 0; justify-content: center; flex: none; }

/* The Ledger (LEDGER_RITUAL_ENABLED): her sheet, made satisfying */
.ledr__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ledr__title { flex: 1; min-width: 160px; }
.ledr__title h2 { margin: 0; }
.ledr__sound { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.ledr__streak { color: var(--os-success, var(--moss)); font-weight: 600; }
.ledr__ring { position: relative; width: 64px; height: 64px; flex: none; }
.ledr__ring svg { display: block; }
.ledr__ring-track { fill: none; stroke: var(--os-border, var(--rule)); stroke-width: 7; }
.ledr__ring-fill { fill: none; stroke: var(--os-success, var(--moss)); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 500ms ease-out; }
.ledr__ring-words { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 0.85rem; }
.ledr__totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.ledr__total { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--os-border, var(--rule)); border-radius: 10px; background: var(--os-surface-alt, var(--cream)); min-width: 0; }
.ledr__total-label { font-size: 0.8rem; color: var(--os-muted, var(--ink-soft)); }
.ledr__total-sales { font-size: 1.25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ledr__total-profit { font-size: 0.85rem; color: var(--os-success, var(--moss)); font-variant-numeric: tabular-nums; }
.ledr__scroll { overflow-x: auto; margin: 0 -4px; }
.ledr__grid { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ledr__grid th { position: sticky; top: 0; text-align: left; font-weight: 600; font-size: 0.8rem; color: var(--os-muted, var(--ink-soft)); background: var(--os-surface-alt, var(--cream)); padding: 6px 8px; border: 1px solid var(--os-border, var(--rule)); white-space: nowrap; }
.ledr__grid td { border: 1px solid var(--os-border, var(--rule)); padding: 4px 6px; vertical-align: middle; }
.ledr__row { transition: background-color 400ms ease-out; }
.ledr__row.is-logged { background: var(--os-success-soft, var(--moss-wash)); }
.ledr__row.is-new .ledr__check { animation: ledr-pop 420ms cubic-bezier(0.2, 1.6, 0.4, 1); }
.ledr__row.is-new { animation: ledr-fill 700ms ease-out; }
.ledr__state { width: 34px; text-align: center; }
.ledr__check { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--os-success, var(--moss)); color: #fff; font-weight: 700; }
.ledr__dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--os-border-strong, var(--rule)); }
.ledr__known { min-width: 180px; }
.ledr__item { display: flex; align-items: center; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.ledr__item img { border-radius: 6px; object-fit: cover; flex: none; }
.ledr__meta { display: block; font-size: 0.8rem; color: var(--os-muted, var(--ink-soft)); }
.ledr__input { width: 100%; min-width: 60px; min-height: 40px; border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 4px 6px; font: inherit; color: inherit; }
.ledr__input:hover { border-color: var(--os-border, var(--rule)); }
.ledr__input:focus { outline: 2px solid var(--os-primary, var(--gold-deep)); outline-offset: -1px; background: var(--os-surface, var(--paper)); }
.ledr__cell--cost .ledr__input { min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.ledr__cell--notes .ledr__input { min-width: 110px; }
.ledr__cell--sourcing .ledr__input, .ledr__cell--category .ledr__input { min-width: 100px; }
.ledr__cell--purchasedOn .ledr__input { min-width: 128px; }
.ledr__go { width: 1%; }
.ledr__profit { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledr__loss { color: var(--os-danger, var(--rust)); }
.ledr__go { white-space: nowrap; }
.ledr__go .button { min-height: 44px; }
.ledr__problem { margin: 4px 0 0; font-size: 0.8rem; color: var(--os-danger, var(--rust)); white-space: normal; }
.ledr__done { position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 12px; border-radius: 10px; background: var(--os-success-soft, var(--moss-wash)); border: 1px solid var(--os-success, var(--moss)); overflow: hidden; animation: notice-in 300ms ease-out; }
.ledr__done strong { color: var(--os-success, var(--moss)); font-size: 1.05rem; }
.ledr__burst { position: absolute; inset: 0; pointer-events: none; }
.ledr__burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--os-success, var(--moss)); opacity: 0; animation: ledr-burst 900ms ease-out forwards; transform: rotate(calc(var(--i) * 36deg)) translateY(0); }
.ledr__burst i:nth-child(odd) { background: var(--gold, #c9a84c); }
@keyframes ledr-pop { 0% { transform: scale(0.3); } 100% { transform: scale(1); } }
@keyframes ledr-fill { 0% { background-color: transparent; } 100% { background-color: var(--os-success-soft, var(--moss-wash)); } }
@keyframes ledr-burst { 0% { opacity: 1; transform: rotate(calc(var(--i) * 36deg)) translateY(0); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 36deg)) translateY(-60px); } }
@media (prefers-reduced-motion: reduce) {
  .ledr__row, .ledr__ring-fill { transition: none; }
  .ledr__row.is-new, .ledr__row.is-new .ledr__check, .ledr__done, .ledr__burst i { animation: none; }
  .ledr__burst { display: none; }
}
/* phone: each sale is a small card of labelled boxes, in the same order as the sheet */
@media (max-width: 720px) {
  .ledr__totals { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .ledr__total { padding: 8px; }
  .ledr__total-sales { font-size: 1rem; }
  .ledr__grid thead { display: none; }
  .ledr__grid, .ledr__grid tbody, .ledr__grid tr, .ledr__grid td { display: block; width: 100%; }
  .ledr__grid tr { border: 1px solid var(--os-border, var(--rule)); border-radius: 10px; margin: 0 0 10px; padding: 8px; position: relative; }
  .ledr__grid td { border: 0; padding: 3px 0; }
  .ledr__grid td.ledr__state { position: absolute; right: 8px; top: 8px; width: auto; padding: 0; }
  .ledr__known { min-width: 0; padding-right: 34px !important; }
  .ledr__cell, .ledr__profit { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 8px; text-align: left; }
  .ledr__cell::before, .ledr__profit::before { content: attr(data-label); font-size: 0.8rem; color: var(--os-muted, var(--ink-soft)); }
  .ledr__input { min-width: 0; min-height: 44px; border-color: var(--os-border, var(--rule)); }
  .ledr__go .button { width: 100%; }
  .ledr__scroll { overflow: visible; margin: 0; }
}

/* fireworks over the screen after "Log it": never takes a tap or a key */
.fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
/* with less motion: a gentle glow on the row just logged, instead of fireworks */
@media (prefers-reduced-motion: reduce) {
  .ledr__row.is-new { box-shadow: inset 0 0 0 2px #f2b632, 0 0 14px rgba(242, 182, 50, 0.55); }
}
.ledr__undo { margin-left: 6px; min-height: 44px; }

/* Refunds to match (on the Ledger) */
.refm__list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.refm__item { border: 1px solid var(--os-border, var(--rule)); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.refm__what { margin: 0 0 4px; }
.refm__buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.refm__buttons .button, .refm__item > .button { min-height: 44px; }
.refm__pick { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.refm__pick select { min-height: 44px; max-width: 100%; }
.refm__applied summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

/* Ledger subtabs: counts on the tabs */
.ledtabs__count { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--os-primary-soft, var(--gold-wash)); color: var(--os-primary, var(--gold-text)); font-size: 0.8rem; font-weight: 700; }
.os-tab.is-on .ledtabs__count { background: rgba(255, 255, 255, 0.25); color: inherit; }
@media (max-width: 720px) { .ledtabs { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 32px; scroll-padding-inline: 16px; } }
/* Receipts: snap, see, take off your own; and the PDF export */
.rcpt { margin: 10px 0; display: grid; gap: 8px; }
.rcpt__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.rcpt__buttons .button { min-height: 44px; }
.rcpt__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rcpt__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rcpt__item img, .rcpt__pdf { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--os-border, var(--rule)); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; background: var(--os-surface-alt, var(--cream)); }
.rcpt__x { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.2rem; }
.rcpt__sure { display: flex; gap: 4px; }
.rcpt__sure .button { min-height: 44px; }
.rcpt-export__range { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.rcpt-export__range input { min-height: 44px; }
.rcpt-export__go { display: inline-flex; align-items: center; min-height: 44px; }
.rcpt-export__parts { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.rcpt-export__parts .button { min-height: 44px; width: 100%; text-align: left; }

/* Find on Etsy: how long after the purchase, and the search */
.find__days { color: var(--os-success, var(--moss)); font-weight: 600; }
.find__search { margin-top: 14px; display: grid; gap: 6px; }
.find__searchrow { display: flex; gap: 8px; }
.find__searchrow input { flex: 1; min-width: 0; min-height: 44px; }
.find__searchrow .button { min-height: 44px; }

/* Inventory, one navigation (Matt, 2026-11-28): on a computer the side menu carries the parts and kinds of piece,
   so the page's own rows hide; on a phone (no side menu) they show. */
@media (min-width: 900px) { html.os .inv-dup { display: none; } }
/* the one-off jobs strip: one line, folded; gone when none of its cards has anything to show */
.inv-todo { margin: 0 0 12px; border: 1px solid var(--os-border); border-radius: 10px; padding: 0 12px; background: var(--os-surface); color: var(--os-text); }
.inv-todo > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.inv-todo__body > * { margin-bottom: 12px; }
.inv-todo[hidden] { display: none; }

/* List on eBay (Matt, 2026-11-28: "a big form with no ui"): a review card first, one press; the details grouped behind it. */
.ebay__sheet { display: grid; gap: 12px; }
.ebay__sheet h3 { margin: 0; }
.ebay__review { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--os-border); border-radius: 12px; background: var(--os-surface); color: var(--os-text); }
.ebay__review-title { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.ebay__review-price { margin: 0; font-weight: 700; font-size: 1.35rem; }
.ebay__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ebay__chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 999px; background: var(--os-surface-alt); border: 1px solid var(--os-border); font-size: 0.875rem; max-width: 100%; }
.ebay__chip-k { color: var(--os-muted); }
.ebay__chip-v { font-weight: 600; overflow-wrap: anywhere; }
.ebay__chip--need { background: var(--os-warning-soft); border-color: var(--os-warning); }
.ebay__chip--need .ebay__chip-v { color: var(--os-warning); }
.ebay__go { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ebay__press { flex: 1 1 100%; min-height: 52px; font-size: 1.05rem; }
.ebay__go .button { min-height: 44px; }
.ebay__fee { margin: 0; }
.ebay__groups { display: grid; gap: 12px; }
.ebay__group { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--os-border); border-radius: 12px; background: var(--os-surface); color: var(--os-text); }
.ebay__group h4 { margin: 0; font-size: 1rem; }
.ebay__pick { display: grid; gap: 4px; }
.ebay__row { display: flex; gap: 8px; }
.ebay__row .cost__input { flex: 1; min-width: 0; }
.ebay__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ebay__cat { display: grid; gap: 2px; width: 100%; min-height: 52px; padding: 10px 12px; text-align: left; border: 1px solid var(--os-border); border-radius: 10px; background: var(--os-surface); color: var(--os-text); font: inherit; cursor: pointer; }
.ebay__cat[aria-pressed='true'] { border-color: var(--os-primary); background: var(--os-primary-soft); box-shadow: inset 0 0 0 1px var(--os-primary); }
.ebay__cat-name { font-weight: 600; }
.ebay__seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--os-border-strong); border-radius: 10px; overflow: hidden; }
.ebay__seg-opt { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; cursor: pointer; background: var(--os-surface); color: var(--os-text); font-weight: 600; border-right: 1px solid var(--os-border); }
.ebay__seg-opt:last-child { border-right: 0; }
.ebay__seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ebay__seg-opt.is-on { background: var(--os-primary); color: var(--os-surface); }
.ebay__seg-opt:focus-within { outline: 2px solid var(--os-primary); outline-offset: -2px; }
.ebay__more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.ebay__more { display: grid; gap: 10px; }
.ebay__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; }
.ebay__steps li { display: inline-flex; align-items: center; gap: 6px; color: var(--os-muted); }
.ebay__steps li.is-done { color: var(--os-success); }
.ebay__done { display: grid; gap: 10px; justify-items: start; padding: 16px; border: 1px solid var(--os-success); border-radius: 12px; background: var(--os-success-soft); color: var(--os-text); }
.ebay__done-title { margin: 0; font-size: 1.2rem; font-weight: 700; }
.ebay__done .button { min-height: 48px; }
@media (min-width: 700px) { .ebay__press { flex: 0 1 auto; min-width: 220px; } .ebay__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ebay__photos { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.ebay__photos img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--os-border); background: var(--os-surface-alt); }
.ebay__price-line { margin: -6px 0 0; }
.ebay__steps li.is-now { color: var(--os-text); }
.ebay__pkg { display: flex; flex-wrap: wrap; gap: 8px 12px; border: 0; padding: 0; margin: 0; }
.ebay__pkg legend { font-weight: 700; margin-bottom: 6px; }
.ebay__pkg label { display: grid; gap: 4px; font-size: 0.875rem; }
.ebay__pkg .cost__input { width: 5.5em; }

/* Ready to ship, each row and its panel (Matt, 2026-11-28: "picture, link, popup") */
.ship__line--open { align-items: flex-start; }
.ship__thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--os-surface-alt); border: 1px solid var(--os-border); }
.ship__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ship__open { all: unset; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--os-border-strong); text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.ship__open:focus-visible { outline: 2px solid var(--os-primary); outline-offset: 2px; border-radius: 4px; }
.ship__facts { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.ship__late { color: var(--os-danger); font-weight: 600; }
.shipc { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--os-surface-alt); color: var(--os-text); border: 1px solid var(--os-border); }
.shipc--etsy { background: var(--os-warning-soft); color: var(--os-warning); border-color: transparent; }
.shipc--website { background: var(--os-primary-soft); color: var(--os-primary); border-color: transparent; }
.shipc--ebay { background: var(--os-success-soft); color: var(--os-success); border-color: transparent; }
.shipc--instagram { background: var(--os-ig-soft); color: var(--os-ig); border-color: transparent; }
.shipp { display: grid; gap: 12px; }
.shipp__photos { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.shipp__photos img { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--os-border); }
.shipp__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.shipp__money { display: grid; gap: 4px; margin: 0; padding: 12px; border-radius: 10px; background: var(--os-surface-alt); }
.shipp__money > div { display: flex; justify-content: space-between; gap: 12px; }
.shipp__money dt { color: var(--os-muted); }
.shipp__money dd { margin: 0; font-variant-numeric: tabular-nums; }
.shipp__money .is-net { border-top: 1px solid var(--os-border); padding-top: 6px; font-weight: 700; }
.shipp__money .is-warn { color: var(--os-warning); background: var(--os-warning-soft); margin: 2px -6px 0; padding: 4px 6px; border-radius: 6px; }
.shipp__money .is-warn dt { color: inherit; font-weight: 600; }
.shipp__money .is-net dt { color: var(--os-text); }
.shipp__total { margin: 0; font-weight: 700; }
.shipp__go { display: flex; flex-wrap: wrap; gap: 8px; }
.shipp__go .button { min-height: 44px; }
.shipp__box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--os-border); border-radius: 10px; }
.shipp__box h4 { margin: 0; }
.shipp__row { display: flex; flex-wrap: wrap; gap: 8px; }
.shipp__row label { display: grid; gap: 4px; flex: 1 1 140px; }
.shipp__undo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* on a computer the panel sits at the right, like Etsy's order panel; on a phone it fills the screen */
@media (min-width: 900px) {
  html.os .fsheet-backdrop:has(.shipp) { justify-content: flex-end; align-items: stretch; }
  html.os .fsheet:has(.shipp) { height: 100vh; max-height: 100vh; width: 520px; max-width: 100vw; border-radius: 0; margin: 0; }
}

/* OpenSEO card */
.oseo__wrap { overflow-wrap: anywhere; }
.oseo__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.oseo__actions .button { min-height: 44px; }
.shipp__tick { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; }

/* Piece photos in every list (Matt, 2026-11-28: "make the pictures much larger, 15% of the bar"): about 15% of the
   list's width, never under 72px or over 180px, square, cropped to fill; the row's words wrap beside it. The lists
   are size containers so 15cqi means 15% of the list itself, not of the screen. */
html.os .pcs, html.os .inv-head, html.os .ship, html.os .bulkv, html.os .oldstock, html.os .ebay-look { container-type: inline-size; }
html.os .pthumb { flex: none; width: clamp(72px, 15cqi, 180px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--os-surface-alt); border: 1px solid var(--os-border); display: block; }
html.os .ship__thumb.pthumb { overflow: hidden; }
html.os .ship__thumb.pthumb img { width: 100%; height: 100%; object-fit: cover; }
html.os .invgrid__who { align-items: flex-start; gap: 12px; }
html.os .invgrid__who > div { min-width: 0; flex: 1; }
html.os .bulkv__row:has(.pthumb) { align-items: flex-start; }

/* the Sold list's photos match the other lists */
html.os .orders__wrap { container-type: inline-size; }
html.os .orders__who { display: flex; align-items: flex-start; gap: 12px; }
html.os .orders__who > div { min-width: 0; flex: 1; display: grid; gap: 2px; }

/* Packing photos (PACKING_PHOTOS_ENABLED): three big camera buttons in the order panel, the gallery on a sale, and the
   ask before Mark shipped. Each tap 44 px or more; the strip wraps at phone width. */
.packph { display: grid; gap: 8px; margin: 12px 0; }
.packph__title { margin: 0; }
.packph__strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.packph__slot { display: grid; gap: 4px; justify-items: center; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.packph__take { display: grid; place-items: center; gap: 4px; width: 100%; min-height: 88px; padding: 8px; border: 2px dashed var(--os-border, var(--rule)); border-radius: 12px; background: var(--os-surface-alt, var(--cream)); color: var(--os-text, var(--ink)); font-weight: 600; cursor: pointer; }
.packph__take.is-done { border-style: solid; border-color: var(--os-success, var(--moss)); }
.packph__take:focus-within { outline: 3px solid var(--os-success, var(--moss)); outline-offset: 2px; }
.packph__take img, .packph__gallery img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.packph__saved { color: var(--os-success, var(--moss)); font-weight: 600; animation: packph-in 0.3s ease-out; }
@keyframes packph-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.packph__gallery { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.packph__gallery li { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.packph__gallery a { display: inline-flex; min-height: 44px; min-width: 44px; }
.packph__pdf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.packph__pdf .button { min-height: 44px; }
.packph__ask { display: grid; gap: 8px; }
.packph__ask p { margin: 0; }
.packph__ask-do { display: flex; flex-wrap: wrap; gap: 8px; }
.packph__ask .button { min-height: 44px; }

/* Boxes (BOXES_ENABLED): "Ships in" on a piece, and Settings → Shipping → My boxes. Phone first: taps of 44 px or more. */
.shipsin { display: grid; gap: 8px; margin: 12px 0; }
.shipsin__line { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; text-align: left; font: inherit; color: var(--os-text, var(--ink)); background: var(--os-surface-alt, var(--cream)); border: 1px solid var(--os-border, var(--rule)); border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.shipsin__line > span:first-child { min-width: 0; }
.shipsin__tap { flex: none; font-weight: 600; color: var(--os-primary, var(--moss)); }
.shipsin__big { color: var(--os-warning, var(--gold-text)); font-weight: 600; }
.shipsin__form { display: grid; gap: 8px; }
.shipsin__form select, .shipsin__form input, .boxes__fields input { min-height: 48px; }
.shipsin__form .button, .boxes .button { min-height: 44px; }
.shipsin__pair, .shipsin__three { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.shipsin__pair { grid-template-columns: 1fr 1fr; }
.shipsin__three { grid-template-columns: repeat(3, 1fr); }
.shipsin__pair legend, .shipsin__three legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.shipsin__pair label, .shipsin__three label { display: grid; gap: 4px; min-width: 0; }
.boxes__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.boxes__row { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--os-border, var(--rule)); min-width: 0; }
.boxes__name { margin: 0; overflow-wrap: anywhere; }
.boxes__fields { display: grid; gap: 8px; }
.boxes__settings summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.shipp__shipsin { margin: 6px 0; font-weight: 600; overflow-wrap: anywhere; }
