@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root, [data-theme="light"] {
  --paper: #f7f6f3;
  --sheet: #ffffff;
  --gold: #d4ac5a;
  --gold-text: #7a5c10;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #75716a;
  --hair: #e2dfd8;
  --surface-alt: #eeece7;
  --row-hover: #f0eee8;
  --sidebar: #ffffff;
  --sidebar-text: #1c1917;
  --accent: #7a5c10;
  --accent-on: #ffffff;
  --accent-soft: #f6ebd0;
  --link: #7a5c10;
  --button-bg: var(--gold);
  --button-text: #1c1917;
  --button-border: #7a5c10;
  --button-hover: #b8923e;
  --focus: #7a5c10;
  --mark-bg: #eeece7;
  --mark-text: #44403c;
  --owned-bg: #dcfce7;
  --owned-text: #166534;
  --listed-bg: #fef3c7;
  --listed-text: #92400e;
  --sold-bg: #eeece7;
  --sold-text: #1c1917;
  --metric-bg: #fbf7f1;
  --clay: #991b1b;
  --delete: #b42318;
  --notice-bg: #f6ebd0;
  --notice-text: #6b4f12;
  --shadow: 0 10px 30px rgba(26, 23, 20, 0.05);
  --focus-edge: #1c1917;
}

[data-theme="dark"] {
  --paper: #121211;
  --sheet: #1c1b1a;
  --gold-text: #d4ac5a;
  --ink: #f5f5f4;
  --muted: #a8a29e;
  --line: #a8a29e;
  --hair: #34322f;
  --surface-alt: #262524;
  --row-hover: #2a2927;
  --sidebar: #1c1b1a;
  --sidebar-text: #f5f5f4;
  --accent: #d4ac5a;
  --accent-on: #1c1917;
  --accent-soft: #3d3420;
  --link: #d4ac5a;
  --button-bg: var(--gold);
  --button-text: #1c1917;
  --button-border: #d4ac5a;
  --button-hover: #d4ac5a;
  --focus: #e0bc6a;
  --mark-bg: #3a3835;
  --mark-text: #d6d3d1;
  --owned-bg: #14532d;
  --owned-text: #86efac;
  --listed-bg: #78350f;
  --listed-text: #fcd34d;
  --sold-bg: #262524;
  --sold-text: #f5f5f4;
  --metric-bg: #262524;
  --clay: #fca5a5;
  --delete: #f97066;
  --notice-bg: #3d3420;
  --notice-text: #e6c36a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --focus-edge: #f5f5f4;
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --paper: #121211;
    --sheet: #1c1b1a;
    --gold-text: #d4ac5a;
    --ink: #f5f5f4;
    --muted: #a8a29e;
    --line: #a8a29e;
    --hair: #34322f;
    --surface-alt: #262524;
    --row-hover: #2a2927;
    --sidebar: #1c1b1a;
    --sidebar-text: #f5f5f4;
    --accent: #d4ac5a;
    --accent-on: #1c1917;
    --accent-soft: #3d3420;
    --link: #d4ac5a;
    --button-bg: var(--gold);
    --button-text: #1c1917;
    --button-border: #d4ac5a;
    --button-hover: #d4ac5a;
    --focus: #e0bc6a;
    --mark-bg: #3a3835;
    --mark-text: #d6d3d1;
    --owned-bg: #14532d;
    --owned-text: #86efac;
    --listed-bg: #78350f;
    --listed-text: #fcd34d;
    --sold-bg: #262524;
    --sold-text: #f5f5f4;
    --metric-bg: #262524;
  --clay: #fca5a5;
  --delete: #f97066;
  --notice-bg: #3d3420;
  --notice-text: #e6c36a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --focus-edge: #f5f5f4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--sheet);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}
.skip:focus { top: 0.75rem; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.body { flex: 1; min-height: 0; }
.brand-lockup { width: 204px; flex: none; }
.workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--paper); }
.wrap { width: min(100%, calc(100% - 1.5rem)); margin: 0 auto; }
main { flex: 1; padding: 1rem 0 2rem; }

.sidebar {
  display: none;
  background: var(--sidebar);
  color: var(--sidebar-text);
  border-right: 1px solid var(--hair);
  padding: 0.75rem 0.5rem 0.75rem;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  color: var(--sidebar-text);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
}
.sidebar nav a:hover { background: var(--surface-alt); }
.sidebar nav a[aria-current="page"],
.sidebar nav a[aria-current="page"]:hover {
  background: var(--surface-alt);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar .count { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.35rem; padding: 0.5rem; }
.sidebar .logout { margin: 0; }
.sidebar button.secondary { width: 100%; }

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--sheet);
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  position: sticky;
  top: 0;
  z-index: 4;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.logo-wordmark { height: 28px; width: auto; display: block; }
.logo-for-dark { display: none; }
html[data-theme="dark"] .logo-for-light { display: none; }
html[data-theme="dark"] .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .logo-for-light { display: none; }
  html[data-theme="system"] .logo-for-dark { display: block; }
}
.logo-mark { height: 28px; width: 28px; display: block; }
.brand-mark { display: none; }
.mobile-brand { display: none; }
.global-search {
  flex: 1;
  max-width: 36rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.global-search input { margin: 0; height: 40px; background: var(--paper); }
.global-search .kbd { position: absolute; right: 0.55rem; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.top-right form { margin: 0; }
.iconbtn, .textbtn {
  margin: 0;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font-size: 13px;
}
html[data-theme="light"] button.iconbtn,
html[data-theme="light"] button.iconbtn .kbd {
  background: #ffffff;
  color: #1c1917;
  border-color: #75716a;
}
html[data-theme="dark"] button.iconbtn,
html[data-theme="dark"] button.iconbtn .kbd {
  background: #262524;
  color: #f5f5f4;
  border-color: #a8a29e;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] button.iconbtn,
  html[data-theme="system"] button.iconbtn .kbd {
    background: #262524;
    color: #f5f5f4;
    border-color: #a8a29e;
  }
}
.textbtn { background: transparent; border-color: transparent; color: var(--muted); height: auto; min-height: 36px; text-align: left; }
.kbd {
  font-size: 13px;
  line-height: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--muted);
  background: var(--sheet);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.mobile-nav { position: relative; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(247, 242, 232, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] { position: absolute; right: 0.75rem; top: 0.55rem; z-index: 4; }
.mobile-nav[open] summary { background: var(--sidebar); color: var(--sidebar-text); }
.mobile-nav nav, .mobile-nav .logout {
  display: none;
}
.mobile-nav[open] nav, .mobile-nav[open] .logout {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.45rem;
  padding: 0.7rem;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 12rem;
}
.mobile-nav nav a { color: var(--ink); text-decoration: none; padding: 0.4rem 0.2rem; border-radius: 6px; }
.mobile-nav nav a:hover, .mobile-nav nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.mobile-nav button.secondary { color: var(--accent); border-color: var(--accent); margin-top: 0.4rem; }

h1, h2, h3, .empty h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
h2 { margin: 24px 0 8px; font-size: 17px; line-height: 24px; font-weight: 600; }
h3 { font-size: 15px; line-height: 22px; font-weight: 600; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.count { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.85rem; }
.actions { display: flex; gap: 0.45rem; margin: 0; }
.actions .button { margin: 0; }

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)) auto;
  gap: 0.45rem;
  align-items: end;
  margin: 0 0 0.75rem;
}
.filters .search { grid-column: auto; }
.filters label, form.stack label { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.filter-actions { display: flex; align-items: center; gap: 0.6rem; }
.filter-actions button, .filter-actions a { margin: 0; }

input, select, button, .button { font: inherit; }
input, select {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.48rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  font: 600 15px/20px Inter, "Segoe UI", sans-serif;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid var(--button-border);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--button-hover); }
.button.secondary, button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.button.secondary:hover, button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.sidebar button.secondary:hover {
  background: var(--surface-alt);
  color: var(--accent);
}

.summary, .sold-costs, .costs, .estimate, .detail, .auth, .empty, .item-row {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.summary, .sold-costs { padding: 0.75rem; margin: 0 0 0.75rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.help summary { cursor: pointer; color: var(--accent); font-size: 0.9rem; }
.help summary:hover { text-decoration: underline; }
.help p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.metric-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin-top: 0.55rem;
  padding-bottom: 0.15rem;
}
.metric {
  flex: 1 0 12.5rem;
  min-width: 12.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: var(--metric-bg);
  border: 1px solid var(--line);
}
.metric-currency { margin: 0; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.metric-figure { margin: 0.15rem 0 0.35rem; font-size: 1.2rem; font-weight: 600; }
.metric-figure span, .metric-line, .metric-missing, .metric-note { font-size: 0.9rem; }
.metric-line, .metric-missing, .metric-note { margin: 0.12rem 0; color: var(--muted); }
.metric-note { margin-top: 0.55rem; }

.item-list { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
.item-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem;
  align-items: start;
}
.card-media {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 5.4rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mark-bg);
  color: var(--mark-text);
  border: 1px solid var(--mark-text);
  text-decoration: none;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; max-height: none; }
.card-mark { font-size: 1.25rem; font-weight: 600; }
.card-body { min-width: 0; }
.item-row-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; }
.item-row h2 { font-size: 1.05rem; }
.item-row h2 a { color: inherit; text-decoration: none; }
.card-meta, .card-prices { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.card-prices { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; }
.card-more { margin-top: 0.35rem; color: var(--ink); }
.card-more summary { cursor: pointer; font-size: 0.9rem; color: var(--accent); }
.card-more summary:hover { text-decoration: underline; }
.item-row:hover { border-color: var(--accent); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sold-bg);
  color: var(--sold-text);
  border: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.status-owned { background: var(--owned-bg); color: var(--owned-text); }
.status-listed { background: var(--listed-bg); color: var(--listed-text); }
.status-sold { background: var(--sold-bg); color: var(--sold-text); }

dl.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 0.7rem 0 0;
}
.span { grid-column: 1 / -1; }
dt { margin: 0; color: var(--muted); font-size: 13px; line-height: 16px; letter-spacing: 0.04em; font-weight: 500; text-transform: uppercase; }
dd { margin: 2px 0 12px; font-size: 15px; }

.detail, .costs, .estimate, .auth, .empty { padding: 0.9rem 1rem; margin: 0.75rem 0; }
.empty { border-style: dashed; box-shadow: none; }
.difference { margin: 0.65rem 0 0; padding: 0.55rem 0.7rem; border-radius: 10px; background: var(--notice-bg); color: var(--notice-text); }
.field-error { margin: 0.3rem 0 0; color: var(--clay); }
.hint, .hint-inline, .eyebrow { color: var(--muted); }
.hint { margin: 0.2rem 0 0; font-size: 13px; line-height: 20px; }
form.stack label { display: block; margin-top: 0.65rem; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
form.stack label.plain { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
fieldset { margin: 0.75rem 0 0; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; }
label.choice { display: flex; align-items: center; gap: 8px; margin: 0.35rem 0; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--ink); }
label.choice input { width: auto; margin: 0; }
input[type="checkbox"], input[type="radio"] {
  appearance: auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 0;
  max-width: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}
label.choice input[type="checkbox"],
label.choice input[type="radio"] {
  appearance: auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 0;
  max-width: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}
.sale-box, .photos { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.preview img, .photo-list img {
  display: block;
  max-width: min(100%, 16rem);
  max-height: 14rem;
  margin-top: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.checks, .plain { margin: 0.35rem 0 0.6rem; padding-left: 1.1rem; }
.back { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.8rem; }
body:not(:has(.sidebar)) main .wrap {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100vh - 8rem);
}
.auth { width: min(26rem, 100%); margin: 0; }
.social-auth { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; }
.social-auth form { margin: 0; }
.social-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  gap: 12px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0;
  justify-content: center;
}
.social-logo { width: 18px; height: 18px; flex: none; display: block; }
.social-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.social-apple { background: #000; color: #fff; border: 1px solid #000; }
html[data-theme="dark"] .social-google:not(:disabled) { background: #131314; color: #e3e3e3; border-color: #8e918f; }
html[data-theme="dark"] .social-apple:not(:disabled) { background: #fff; color: #000; border-color: #fff; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .social-google:not(:disabled) { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  html[data-theme="system"] .social-apple:not(:disabled) { background: #fff; color: #000; border-color: #fff; }
}
html[data-theme="dark"] .social-apple:disabled .social-logo path,
html[data-theme="dark"] .social-apple.social-disabled .social-logo path { fill: #fff; }
html[data-theme="dark"] .social-apple:not(:disabled) .social-logo path { fill: #000; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .social-apple:disabled .social-logo path { fill: #fff; }
  html[data-theme="system"] .social-apple:not(:disabled) .social-logo path { fill: #000; }
}
.social-btn { flex-direction: column; gap: 2px; }
.social-row { display: inline-flex; align-items: center; gap: 12px; }
.social-hint { font-size: 13px; font-weight: 500; line-height: 16px; }
button.social-btn:disabled,
button.social-disabled:disabled {
  opacity: 1;
  background: transparent;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  border: 1.5px solid var(--ink);
  cursor: not-allowed;
}
.social-or { margin: 14px 0; color: var(--muted); font-size: 14px; text-align: center; }
.sign-in-methods ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sign-in-methods li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.sign-in-methods form { margin: 0; }
.sign-in-methods .social-btn { width: auto; min-width: 12rem; }
.notice { margin: 0.4rem 0; padding: 0.45rem 0.6rem; background: var(--notice-bg); color: var(--notice-text); border: 1px solid var(--accent); border-radius: 8px; }

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
/* var(--link) does not repaint when the theme attribute changes, so these stayed #7A5C10 on dark surfaces. */
html[data-theme="dark"] .back a:not(.button),
html[data-theme="dark"] .auth a:not(.button),
html[data-theme="dark"] .hint a:not(.button),
html[data-theme="dark"] .empty a:not(.button),
html[data-theme="dark"] .prose a:not(.button),
html[data-theme="dark"] .policy a:not(.button),
html[data-theme="dark"] .text-link:not(.button),
html[data-theme="dark"] .texty,
html[data-theme="dark"] .ledger > summary,
html[data-theme="dark"] .help summary,
html[data-theme="dark"] .card-more summary,
html[data-theme="dark"] .qa-top a:not(.button) {
  color: #d4ac5a;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .back a:not(.button),
  html[data-theme="system"] .auth a:not(.button),
  html[data-theme="system"] .hint a:not(.button),
  html[data-theme="system"] .empty a:not(.button),
  html[data-theme="system"] .prose a:not(.button),
  html[data-theme="system"] .policy a:not(.button),
  html[data-theme="system"] .text-link:not(.button),
  html[data-theme="system"] .texty,
  html[data-theme="system"] .ledger > summary,
  html[data-theme="system"] .help summary,
  html[data-theme="system"] .card-more summary,
  html[data-theme="system"] .qa-top a:not(.button) {
    color: #d4ac5a;
  }
}
html[data-theme="dark"] a.button:not(.secondary),
html[data-theme="light"] a.button:not(.secondary),
html[data-theme="system"] a.button:not(.secondary) {
  color: #1c1917;
  background: #d4ac5a;
}
.auth form.stack > button[type="submit"] { width: 100%; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
::placeholder { color: var(--muted); opacity: 1; }
select option { background: var(--sheet); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .brand-lockup:focus-visible {
  outline: 3px solid var(--focus, #8a6914);
  outline-offset: 0;
  border-color: var(--focus-edge);
  box-shadow: inset 0 0 0 2px var(--focus-edge);
}
.opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--ink);
}
.filters label.opt { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
.opt input[type="radio"],
.opt input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; }
.facet { margin: 0.4rem 0 0; padding: 0.45rem 0.6rem; }
.facet legend { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.facet-collapse { border-top: 1px solid var(--hair); padding: 0.15rem 0; }
.facet-collapse summary { cursor: pointer; padding: 0.55rem 0; font-size: 13px; color: var(--ink); }
.facets .filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.sub { display: block; color: var(--muted); font-size: 13px; line-height: 16px; }
.titlecell { width: auto; }
.title-lock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  height: 40px;
}
.title-lock .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.title-lock .tx > a { color: inherit; font-weight: 500; text-decoration: none; font-size: 14px; line-height: 18px; }
.title-lock .tx > a,
.title-lock .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inspect-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}
.inspect-icon:hover { background: var(--surface-alt); color: var(--ink); }
.thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--mark-bg);
  color: var(--mark-text);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: 0.35rem 0.7rem; color: var(--ink); text-decoration: none; background: var(--sheet); }
.seg a + a { border-left: 1px solid var(--line); }
.seg a[aria-current="page"] { background: var(--surface-alt); font-weight: 600; }

@media (min-width: 960px) {
  [data-density="compact"] main { padding-top: 0.35rem; }
  [data-density="compact"] .card,
  [data-density="compact"] .metric,
  [data-density="compact"] .stack { padding: 0.45rem 0.6rem; }
}

footer.site { color: var(--muted); font-size: 0.85rem; padding-bottom: 4.5rem; }
.nav-burger { display: none; min-height: 44px; min-width: 44px; }
.app-drawer[hidden] { display: none; }
.app-drawer { position: fixed; inset: 0; z-index: 40; }
button.app-drawer-scrim {
  position: absolute; inset: 0; border: 0; border-radius: 0; padding: 0; margin: 0;
  min-height: 0; width: 100%; height: 100%; box-shadow: none;
  background: rgba(18, 18, 17, 0.55); color: transparent; cursor: pointer; opacity: 0;
  transition: opacity 200ms ease;
}
.app-drawer.is-open .app-drawer-scrim { opacity: 1; }
.app-drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, calc(100% - 48px));
  display: flex; flex-direction: column; gap: 2px; padding: 12px;
  background: var(--sheet); color: var(--ink); overflow: auto;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 200ms ease;
}
.app-drawer.is-open .app-drawer-panel { transform: translateX(0); }
.app-drawer-panel form { margin: 8px 0 0; }
.app-drawer-panel form button { width: 100%; min-height: 44px; }
.app-drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.app-drawer-head p { margin: 0; font-weight: 600; }
.app-drawer-panel a {
  min-height: 44px; display: flex; align-items: center; padding: 0 10px;
  border-radius: 8px; color: var(--ink); text-decoration: none;
}
.app-drawer-panel a[aria-current="page"] { background: var(--surface-alt); font-weight: 600; }
body.drawer-lock, body.sheet-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .app-drawer-panel, .facets.is-sheet, .pills a, .filters-open { transition: none; }
}
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  background: var(--sheet);
  color: var(--muted);
  border-top: 1px solid var(--hair);
  padding: 0.2rem 0.2rem calc(0.2rem + env(safe-area-inset-bottom));
}
.tabbar a {
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  padding: 0.45rem 0.2rem;
  border-radius: 10px;
  font-size: 13px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tabbar .tab-add .plus {
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-on);
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}
.inventory-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; background: var(--sheet); }
.inventory-table th, .inventory-table td {
  text-align: left;
  height: 52px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inventory-table th {
  height: 40px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 13px;
}
.inventory-table tbody tr { cursor: pointer; }
.inventory-table tbody tr:hover td { background: var(--row-hover); }
.inventory-table .num, .num { text-align: right; font-variant-numeric: tabular-nums; }
.inventory-table tr.is-selected td { background: var(--accent-soft); color: var(--ink); }
.inventory-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.col-check { width: 36px; text-align: center; }
.col-status { width: 104px; }
.col-money { width: 88px; }
.col-condition, .col-value { display: none; }
.browse-main { container-type: inline-size; }
@container (min-width: 560px) {
  .col-condition { display: table-cell; width: 96px; }
  .col-value { display: table-cell; width: 96px; }
}
.inspect-jump {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ledger { margin: 0.75rem 0 0; }
.ledger > summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.toolbar h1 { font-size: 22px; line-height: 28px; }
.toolbar .count { margin: 0; }
.toolbar .button { margin: 0; }
.saved-views { position: relative; }
.saved-views summary { list-style: none; cursor: pointer; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; background: var(--sheet); }
.saved-views summary::-webkit-details-marker { display: none; }
.saved-views[open] .inline-form, .saved-views[open] .chips { position: absolute; z-index: 3; right: 0; top: 40px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-width: 16rem; }
.filter-toggle { display: none; }
.nav-ic { width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 4px; flex: none; }
.sidebar nav a[aria-current="page"] .nav-ic { border-color: var(--accent); }
.inspector-head { display: flex; align-items: flex-start; gap: 8px; }
.inspector-head h2 { flex: 1; font-size: 18px; line-height: 24px; }
.close-inspector { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; text-decoration: none; color: var(--ink); }
.hero { height: 160px; border-radius: 8px; background: var(--mark-bg); color: var(--mark-text); display: grid; place-items: center; margin: 8px 0; object-fit: cover; width: 100%; }
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 6px 8px; font-size: 13px; margin: 8px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.inspector-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inspector-actions form, .inspector-actions .button { margin: 0; }
.qa-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(16rem, 1fr); gap: 32px; align-items: start; }
.qa-note { color: var(--muted); font-size: 14px; line-height: 22px; }
.qa-note ol { margin: 8px 0 0; padding-left: 1.2rem; }
.table-form { min-width: 0; max-width: 100%; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.col-more { display: none; }
@media (min-width: 1680px) {
  .browse:not(.with-inspector) .col-more { display: table-cell; }
}
.browse { display: block; }
.facets { margin-bottom: 0.8rem; }
.inspector {
  margin-top: 0.8rem;
  padding: 1rem;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.chips a, .choice-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: var(--sheet);
  color: var(--ink);
}
.choice-list { list-style: none; padding: 0; }
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: end;
  margin-top: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.bulk-bar[hidden] { display: none; }
.bulk-count { margin: 0; font-size: 13px; font-weight: 600; }
.bulk-bar label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.bulk-bar input, .bulk-bar select { width: auto; min-width: 8rem; margin: 0; }
.bulk-bar button { margin: 0; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.error-summary { border: 2px solid var(--clay); padding: 0.6rem 0.8rem; border-radius: 10px; margin-bottom: 0.8rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.portfolio { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin: 0 0 1rem; }
.portfolio-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.portfolio-total { margin: 0.15rem 0; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.portfolio-note { margin: 0.35rem 0 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.chart-dot { fill: #d4ac5a; stroke: var(--sheet); stroke-width: 2; }
.chart-label { fill: var(--ink); font-size: 13px; font-weight: 600; }
.delta { margin: 0; font-weight: 600; }
.delta-up { color: #166534; }
.delta-down { color: #991b1b; }
.delta-flat, .delta-unknown { color: var(--muted); font-weight: 400; }
[data-theme="dark"] .delta-up { color: #86efac; }
[data-theme="dark"] .delta-down { color: #fca5a5; }
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .delta-up { color: #86efac; }
  [data-theme="system"] .delta-down { color: #fca5a5; }
  [data-theme="system"] .line-1 { stroke: #d4ac5a; }
  [data-theme="system"] .area-1 { fill: #d4ac5a; }
  [data-theme="system"] .line-2 { stroke: #86efac; }
  [data-theme="system"] .area-2 { fill: #86efac; }
}
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0; }
.pills a { color: #1c1917; text-decoration: none; border: 1px solid #75716a; border-radius: 999px; padding: 0.35rem 0.7rem; background: #ffffff; }
.pills a[aria-current="page"] { background: #1c1917; color: #f5f5f4; border-color: #1c1917; }
html[data-theme="light"] .pills a {
  background: #ffffff;
  color: #1c1917;
  border-color: #75716a;
}
html[data-theme="light"] .pills a[aria-current="page"] {
  background: #1c1917;
  color: #f5f5f4;
  border-color: #1c1917;
}
html[data-theme="dark"] .pills a {
  background: #262524;
  color: #f5f5f4;
  border-color: #a8a29e;
}
html[data-theme="dark"] .pills a[aria-current="page"] {
  background: #f5f5f4;
  color: #1c1917;
  border-color: #f5f5f4;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .pills a {
    background: #262524;
    color: #f5f5f4;
    border-color: #a8a29e;
  }
  html[data-theme="system"] .pills a[aria-current="page"] {
    background: #f5f5f4;
    color: #1c1917;
    border-color: #f5f5f4;
  }
}
.scan-page { max-width: 1100px; }
.scan-upload, .scan-bulk, .scan-card { border: 1px solid var(--hair); border-radius: 12px; padding: 12px; margin: 12px 0; background: var(--sheet); }
.scan-tools, .scan-pair { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scan-cards { display: grid; gap: 12px; }
.scan-photos { display: flex; gap: 8px; }
.scan-thumb { width: 120px; height: 160px; object-fit: cover; border-radius: 8px; background: var(--mark-bg); }
.scan-links { display: flex; flex-wrap: wrap; gap: 8px; }
.coming { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin: 12px 0; }
.area-chart { width: 100%; height: auto; display: block; }
.area-chart .chart-axis { font-size: 11px; fill: var(--muted); }
.area-1 { fill: var(--gold-text); opacity: 0.18; }
.line-1 { stroke: var(--gold-text); stroke-width: 3; }
.area-2 { fill: #166534; opacity: 0.12; }
.line-2 { stroke: #166534; stroke-width: 2; stroke-dasharray: 5 4; }
[data-theme="dark"] .area-1 { fill: #d4ac5a; }
[data-theme="dark"] .line-1 { stroke: #d4ac5a; }
[data-theme="dark"] .area-2 { fill: #86efac; }
[data-theme="dark"] .line-2 { stroke: #86efac; }
.swatch { display: inline-block; width: 1.1rem; height: 0.35rem; margin-right: 0.25rem; vertical-align: middle; }
.swatch-1 { background: var(--gold-text); }
html[data-theme="dark"] .area-1 { fill: #d4ac5a; }
html[data-theme="dark"] .line-1 { stroke: #d4ac5a; }
html[data-theme="dark"] .swatch-1 { background: #d4ac5a; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .area-1 { fill: #d4ac5a; }
  html[data-theme="system"] .line-1 { stroke: #d4ac5a; }
  html[data-theme="system"] .swatch-1 { background: #d4ac5a; }
}
.swatch-2 { background: #166534; }
[data-theme="dark"] .swatch-1 { background: #d4ac5a; }
[data-theme="dark"] .swatch-2 { background: #86efac; }
.spark { display: inline-block; vertical-align: middle; margin: 0 0 0 0.35rem; color: var(--accent); }
.inventory-table input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; }
dialog { border: 1px solid var(--line); background: var(--sheet); color: var(--ink); border-radius: 12px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  max-width: min(640px, calc(100% - 32px));
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--sheet);
}
.toast p, .toast form { margin: 0; }
.toast a, .toast button { color: var(--sheet); }
.toast button { background: transparent; border: 1px solid currentColor; }
.bin-list { margin-top: 16px; }
.bin-list li { height: auto; min-height: 44px; padding: 8px; }
@media (max-width: 1023px) {
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
dialog a { display: block; margin: 0.35rem 0; }
@media (min-width: 1180px) {
  .browse { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0; align-items: start; }
  .browse.with-inspector { grid-template-columns: 248px minmax(0, 1fr) 320px; }
  .facets { border-right: 1px solid var(--hair); padding-right: 0.8rem; margin: 0; }
  .browse-main { padding: 0 0.9rem; min-width: 0; }
  .inspector { width: 320px; max-width: 320px; margin-top: 0; position: sticky; top: 0.6rem; border-radius: 0; border-top: 0; border-bottom: 0; border-right: 0; }
}
@media (max-width: 959px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar { display: none !important; }
  .mobile-brand { display: inline-flex; }
  .browse-main { display: flex; flex-direction: column; }
  .browse-main .table-form,
  .browse-main .item-list,
  .browse-main .line-list,
  .browse-main .stock-list,
  .browse-main .empty { order: 1; }
  .browse-main .chips { order: 2; }
  .browse-main .summary { order: 4; }
  .browse-main .sold-costs { order: 5; }
  .browse-main .inline-form { order: 6; }
  #open-palette { display: none; }
  footer.site { padding-bottom: 5.5rem; }
  .bulk-bar {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
    z-index: 7;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bulk-bar .bulk-count,
  .bulk-bar .bulk-actions { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  .tabbar a { font-size: 0.75rem; padding: 0.45rem 0.1rem; }
  .page-head { flex-direction: column; }
}
@media (min-width: 960px) {
  [data-density="compact"] .inventory-table tbody td { height: 48px; padding: 4px 8px; }
  .bulk-bar { position: sticky; bottom: 0.75rem; z-index: 3; }
}
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem 3rem;
}
.auth-brand .logo-wordmark { height: 48px; }
#game-matches { margin-top: 0.35rem; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); max-height: 16rem; overflow: auto; }
#game-matches button { width: 100%; margin: 0; text-align: left; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent; color: var(--ink); }
#game-matches button:hover { background: var(--row-hover); }
form.stack.qa {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  max-width: 40rem;
  box-shadow: var(--shadow);
}
@media (min-width: 960px) {
  .item-list .item-row {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
  }
  .item-list .card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3.2;
    border: 0;
    border-radius: 0;
  }
  .item-list .card-body { padding: 0.65rem 0.75rem 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
footer.site p { margin: 0.35rem 0 0; }

@media (min-width: 960px) {
  .body { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  [data-density="compact"] .body { grid-template-columns: 184px minmax(0, 1fr); }
  html[data-nav="collapsed"] .body { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
  }
  .facet-drawer > summary { display: none; }
  .facet-drawer:not([open]) > form.filters { display: flex; }
  .item-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  html[data-nav="collapsed"] .brand-word { display: none; }
  html[data-nav="collapsed"] .topbar .brand-mark { display: inline-flex; }
  html[data-nav="collapsed"] .sidebar .nav-label,
  html[data-nav="collapsed"] .sidebar .count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html[data-nav="collapsed"] .sidebar nav a { justify-content: center; }
  html[data-nav="collapsed"] .sidebar nav a::before { content: attr(data-short); font-weight: 600; font-size: 13px; }
  .auth-brand .logo-wordmark { height: 52px; }
}

@media (max-width: 959px) {
  main .wrap { display: flex; flex-direction: column; }
  .page-head { order: 1; }
  .filters { order: 2; }
  .item-list, .line-list, .stock-list, .empty { order: 3; }
  .summary { order: 4; }
  .sold-costs { order: 5; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search, .filter-actions { grid-column: 1 / -1; }
  .page-head { align-items: flex-start; }
  .page-head .button { padding: 0.4rem 0.7rem; }
  dl.facts { grid-template-columns: 1fr; }
}

/* Handoff: shell, table, mobile list, and the filter rail. */
.topbar { min-height: 56px; height: 56px; border-bottom: 1px solid var(--hair); }
.sidebar nav a::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--nav-icon) center / 20px 20px no-repeat;
  mask: var(--nav-icon) center / 20px 20px no-repeat;
}
.sidebar nav a[href="/home"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/inventory"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/items/new"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/scan"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 6V4h4v2H6v2H4zm12-2h4v2h-2v2h-2V4zM4 18v2h4v-2H6v-2H4zm16-2h-2v2h-2v2h4v-4zM7 8h2v8H7zm4 0h2v8h-2zm4 0h2v8h-2z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/sales"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 7h13l-1.2 6.2a2 2 0 0 1-2 1.6H8.2a2 2 0 0 1-2-1.6L5 7H3zm5 12a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM18 6h3v2h-2.2l-.8 4h2v2h-3.2a1 1 0 0 1-1-.8L15.2 8H18z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/accounting"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 3h9l5 5v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm8 1.5V9h4.5zM8 13h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E"); }
.nav-beta { margin-left: auto; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-alt); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; line-height: 18px; text-transform: uppercase; }
html[data-nav="collapsed"] .nav-beta { display: none; }
.sidebar nav a[href="/packing"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 7.5 12 3l9 4.5v9L12 21l-9-4.5zm9 1.2L6.2 6.2 12 4.2l5.8 2zM5 8.7v6.2l6 3v-6.2zm8 9.2 6-3V8.7l-6 3z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/valuations"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 19h16v2H4zm2-3 4-5 3 3 5-7 2 1.4-6.5 9.1-3.2-3.2L8 16.2z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/import"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3v10.2l3.3-3.3 1.4 1.4L12 16.3 7.3 11.3l1.4-1.4 3.3 3.3V3zM5 18h14v2H5z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/deleted"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 3h6l1 2h4v2H4V5h4zm1 6h2v8h-2zm4 0h2v8h-2zM7 9h2v8H7z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/account"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4 0-7 2-7 4v2h14v-2c0-2-3-4-7-4z'/%3E%3C/svg%3E"); }
.sidebar nav a[href="/more"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 8.5A1.5 1.5 0 1 0 12 5.5 1.5 1.5 0 0 0 12 8.5zm0 5A1.5 1.5 0 1 0 12 10.5a1.5 1.5 0 0 0 0 3zm0 5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E"); }
.sidebar nav a[aria-current="page"]::before { background-color: var(--accent); }
.inventory-table tbody td { height: 48px; padding: 0 12px; }
.browse.with-inspector .inventory-table td,
.browse.with-inspector .inventory-table th { padding-left: 10px; padding-right: 10px; }
.inventory-table th { border-bottom: 1px solid var(--line); }
.inventory-table td { border-bottom: 1px solid var(--hair); }
.inventory-table td.num, .inventory-table th.num {
  overflow: visible;
  text-overflow: clip;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.browse-main { display: flex; flex-direction: column; }
.browse-main .toolbar { order: 1; }
.browse-main .chips { order: 2; }
.browse-main .table-form,
.browse-main .item-list,
.browse-main .line-list,
.browse-main .stock-list,
.browse-main .empty { order: 3; }
.browse-main .ledger { order: 4; }
.status::before { content: "● "; }
.status-listed::before { content: "◆ "; }
.status-sold::before { content: "■ "; }
.card-media.none, .thumb.none {
  background: repeating-linear-gradient(45deg, var(--surface-alt) 0 8px, var(--sheet) 8px 16px);
  border: 1px dashed var(--line);
  color: var(--muted);
}
.more-mark { display: none; align-items: center; margin-right: 8px; }
.more-mark .logo-mark { height: 24px; width: 24px; }
.more-title { display: flex; align-items: center; }
.navsep { height: 1px; background: var(--hair); margin: 8px 4px; }
.facets h3 { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fsearch { width: 100%; height: 32px; margin: 0 0 8px; border-radius: 6px; }
.opt { width: 100%; }
.opt .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.opt input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: none; }
.opt.child { padding-left: 22px; }
.more-roots, .facet-collapse summary { background: transparent; border: 0; color: var(--ink); margin: 0; min-height: 36px; padding: 8px 0; font-size: 13px; }
.shown-line { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.mobile-head { display: none; }
.add-menu { position: relative; }
.add-menu summary { list-style: none; }
.add-menu summary::-webkit-details-marker { display: none; }
.add-menu[open] a { display: block; position: relative; background: var(--sheet); border: 1px solid var(--line); padding: 8px 12px; color: var(--ink); text-decoration: none; }
.add-menu[open] a:first-of-type { border-radius: 8px 8px 0 0; margin-top: 4px; }
.add-menu[open] a:last-of-type { border-radius: 0 0 8px 8px; border-top: 0; }
.ph-icon { width: 18px; height: 18px; }
.inspector h3 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 639px) {
  .toolbar { display: none; }
  .topbar { display: flex; height: 56px; padding: 0 8px; gap: 8px; }
  .topbar .global-search, .topbar .top-right { display: none; }
  .mobile-head { display: block; padding: 4px 16px 0; }
  .mobile-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-title h1 { font-size: 22px; line-height: 28px; }
  .m-search input { height: 44px; border-radius: 10px; }
  .facets { display: flex; gap: 8px; overflow: auto; padding: 8px 16px 0; border: 0; background: transparent; }
  .facet-block, .facet-collapse { position: relative; flex: 0 0 auto; width: auto; }
  .facet-block > summary, .facet-collapse > summary { display: inline-flex; align-items: center; width: auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); font-size: 13px; white-space: nowrap; }
  .facet-block[open] .facet, .facet-collapse[open] > :not(summary) { position: absolute; top: calc(100% + 6px); left: 0; z-index: 8; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 220px; }
  .facet-block:not([open]) .facet { display: none; }
}
@media (min-width: 1024px) {
  .body { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .browse { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
  .browse.with-inspector { grid-template-columns: 248px minmax(0, 1fr); }
  .facets { display: block; padding: 16px; border-right: 1px solid var(--hair); background: var(--paper); }
  .browse-main { padding: 12px 8px 16px; min-width: 0; }
  .filter-toggle { display: none; }
}
@media (min-width: 1280px) {
  .browse.with-inspector { grid-template-columns: 248px minmax(0, 1fr) 320px; }
  .inspector { width: 320px; max-width: 320px; position: sticky; top: 16px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .inspector {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    width: 320px;
    z-index: 5;
    overflow: auto;
    border-left: 1px solid var(--line);
    background: var(--sheet);
  }
}
@media (max-width: 1023px) {
  .sidebar { display: none !important; }
  .nav-burger { display: inline-flex; }
  .topbar .global-search, .topbar .top-right { display: none; }
  .body { display: block; }
  .tabbar { display: grid; }
  .more-mark { display: inline-flex; }
  .facets.is-open {
    display: block;
    position: fixed;
    z-index: 8;
    inset: 56px 0 80px 0;
    overflow: auto;
    background: var(--paper);
    padding: 16px;
  }
  .filter-toggle { display: inline-flex; min-height: 44px; margin: 0; }
}
@media (max-width: 639px) {
  .inventory-table thead { position: static; }
  .inventory-table, .inventory-table tbody { display: block; width: 100%; }
  .inventory-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title price" "title status";
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
    height: 64px;
    max-height: 64px;
    overflow: hidden;
    padding: 8px 12px;
    border-bottom: 1px solid var(--hair);
    background: var(--sheet);
  }
  .inventory-table tbody td, .inventory-table th {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .inventory-table thead { display: none; }
  .inventory-table tbody td.col-check { display: none; }
  .inventory-table.is-selecting tr { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "check title price" "check title status"; }
  .inventory-table.is-selecting tbody td.col-check { display: block; grid-area: check; align-self: center; width: 36px; }
  .inventory-table tbody td.col-money { grid-area: price; justify-self: end; }
  .inventory-table tbody td.col-status { grid-area: status; justify-self: end; }
  .inventory-table input[type="checkbox"] { width: 1.15rem; height: 1.15rem; align-self: center; }
  .titlecell { grid-area: title; width: auto; }
  .col-money { grid-area: price; text-align: right; overflow: visible; }
  .col-status { grid-area: status; text-align: right; width: auto; }
  .col-condition, .col-value, .col-more { display: none !important; }
  .title-lock { height: auto; }
  .title-lock .tx > a { font-size: 15px; line-height: 20px; }
  input, select { min-height: 48px; }
  .bulk-bar { bottom: calc(88px + env(safe-area-inset-bottom)); background: var(--sheet); }
}
@media (min-width: 1024px) {
  [data-density="compact"] .inventory-table tbody td { height: 36px; }
  [data-density="compact"] .body { grid-template-columns: 184px minmax(0, 1fr); }
}
html[data-nav="collapsed"] .sidebar nav a::before {
  content: attr(data-short);
  background: none;
  mask: none;
  -webkit-mask: none;
  width: auto;
  height: auto;
  border: 0;
  font-size: 13px;
  font-weight: 600;
}
.hero { width: 100%; aspect-ratio: 4 / 3; height: auto; min-height: 0; border-radius: 8px; background: #d6d3cd; color: #44403c; }
[data-theme="dark"] .hero { background: #3a3835; color: #d6d3d1; }
.facets input[type="checkbox"] {
  appearance: auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  border-radius: 3px;
  accent-color: var(--accent);
}
@media (min-width: 1024px) {
  .facet-block > summary { display: none; }
  .facets { width: 248px; max-width: 248px; box-sizing: border-box; padding: 16px; }
  .facet, .facet-block, .opt { margin-left: 0; padding-left: 0; }
  .opt.child { padding-left: 18px; }
}
.density-foot { margin-top: auto; padding: 8px; }
.density-foot p { margin: 0; color: var(--muted); font-size: 13px; line-height: 16px; }
.density-foot button { margin: 0; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; font-size: 13px; min-height: 0; height: auto; }
.avatar-menu { position: relative; }
.avatar-menu summary { list-style: none; cursor: pointer; }
.avatar-menu summary::-webkit-details-marker { display: none; }
.avatar-menu[open] { position: absolute; right: 12px; top: 10px; z-index: 8; }
.avatar-menu[open] a, .avatar-menu[open] button {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 12px;
  text-decoration: none;
  min-height: 40px;
}
.tab-ic { width: 22px; height: 22px; border: 0; border-radius: 0; display: block; margin: 0 auto 2px; background: currentColor; -webkit-mask: var(--nav-icon) center / 22px 22px no-repeat; mask: var(--nav-icon) center / 22px 22px no-repeat; }
.tabbar a[href="/inventory"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E"); }
.tabbar a[href="/sales"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 7h13l-1.2 6.2a2 2 0 0 1-2 1.6H8.2a2 2 0 0 1-2-1.6L5 7H3zm5 12a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E"); }
.tabbar a[href="/more"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 7h14v2H5zm0 4h14v2H5zm0 4h14v2H5z'/%3E%3C/svg%3E"); }
.tabbar a[aria-current="page"] .tab-ic { background: var(--accent); }
.tabbar a { font-size: 13px; line-height: 16px; }
@media (max-width: 639px) {
  .wrap { width: 100%; margin: 0; padding: 0 16px; box-sizing: border-box; }
  .browse, .browse-main, .table-scroll { padding-left: 0; padding-right: 0; margin: 0; }
  .facet-form, .browse-main { display: contents; }
  .browse { display: flex; flex-direction: column; }
  .mobile-head { order: 1; width: 100%; padding: 8px 0 0; }
  .facets {
    order: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    position: static;
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0 0;
    margin: 0;
    border: 0;
    background: transparent;
  }
  .facets .filters { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; gap: 8px; width: 100%; }
  .facets .filters > details { flex: 0 0 auto; width: auto; }
  .facets .facet-collapse:not(:last-of-type) { display: none; }
  .facets .filters > details > summary { width: auto; white-space: nowrap; }
  .list-meta { order: 3; }
  .table-form, .item-list, .line-list, .stock-list, .empty { order: 4; width: 100%; }
  .ledger { order: 5; }
  .facet-block, .facet-collapse { position: relative; flex: none; }
  .facet-block > summary, .facet-collapse > summary {
    position: static;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--sheet);
    font-size: 13px;
    line-height: 18px;
  }
  .facet-block .facet, .facet-collapse[open] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 8;
    min-width: 220px;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
  }
  .inventory-table tr { padding-left: 0; padding-right: 0; }
}

.wrap { width: 100%; margin: 0; }
main { padding: 0; }
.body { gap: 0; }
.sidebar { border-right: 1px solid var(--hair); }
[hidden] { display: none !important; }
.browse-main .toolbar { order: 1; }
.browse-main .list-meta { order: 2; }
.browse-main .table-form,
.browse-main .item-list,
.browse-main .line-list,
.browse-main .stock-list,
.browse-main .empty { order: 3; }
.browse-main .ledger { order: 4; }
.toolbar h1 { font-size: 22px; line-height: 28px; font-weight: 600; }
.qa-heading { font-size: 24px; line-height: 32px; font-weight: 600; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  background: var(--sheet);
  white-space: nowrap;
}
table.import-preview { table-layout: auto; }
table.import-preview th,
table.import-preview td {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  height: auto;
}
.chips .filter-chip .chip-x {
  position: static;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 16px;
  line-height: 16px;
  text-decoration: none;
}
.inventory-table { width: 100%; table-layout: fixed; }
.inventory-table .col-check { width: 40px; }
.inventory-table .col-condition { width: 9rem; white-space: normal; overflow: visible; text-overflow: unset; }
.inventory-table .col-status { width: 104px; }
.inventory-table .col-money,
.inventory-table .col-value { width: 8rem; white-space: normal; overflow: visible; text-overflow: unset; }
.facet-collapse { width: 100%; border-top: 1px solid var(--hair); }
.facet-collapse > summary, .qa-fold > summary {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  list-style: none;
  cursor: pointer;
}
.facet-collapse > summary::-webkit-details-marker,
.qa-fold > summary::-webkit-details-marker,
.facet-block > summary::-webkit-details-marker { display: none; }
.facet-collapse > summary::after, .qa-fold > summary::after { content: "▸"; margin-left: auto; }
.facet-collapse[open] > summary::after, .qa-fold[open] > summary::after { content: "▾"; }
.facets .opt {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  box-sizing: border-box;
  font-size: 14px;
}
.facets .opt.child { padding-left: 16px; }
.facets .opt { height: auto; max-height: none; align-items: start; }
.facets .opt span:not(.n) { min-width: 0; overflow: visible; text-overflow: unset; white-space: normal; }
.facets .opt .n {
  white-space: nowrap;
  text-align: right;
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.card-row { flex-wrap: nowrap; max-width: 100%; }
.card-row .status { max-width: 100%; white-space: normal; }
.card-cost {
  margin: 4px 0 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.line-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.line-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto minmax(72px, auto);
  column-gap: 16px;
  align-items: center;
  height: 44px;
  margin: 0;
  padding: 0 8px;
  border-bottom: 1px solid var(--hair);
  min-width: 0;
}
.line-list a, .line-list li > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-list .num { text-align: right; font-variant-numeric: tabular-nums; }
.facets .facet { padding: 0; margin: 0; max-width: 100%; min-width: 0; }
.facet-nested { margin: 8px 0 0; padding-left: 16px; box-sizing: border-box; max-width: 100%; min-width: 0; }
.facet-nested h3 { margin-top: 8px; }
@media (min-width: 1024px) {
  .facets {
    width: 248px;
    min-width: 248px;
    max-width: 248px;
    box-sizing: border-box;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
    align-self: start;
    position: sticky;
    top: 56px;
  }
  .browse.with-inspector .browse-main { padding-left: 0; padding-right: 0; }
  .facets h3, .facets .fsearch, .facets .facet-block, .facets .hint { max-width: 100%; min-width: 0; }
  .fsearch { box-sizing: border-box; }
}
@media (min-width: 1024px) {
  .browse.with-inspector { min-height: calc(100vh - 56px); align-items: stretch; }
  .inspector {
    margin: 0;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    width: 320px;
    max-width: 320px;
    min-height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
  }
  .item-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
  .item-list .item-row { display: flex; flex-direction: column; min-height: 220px; overflow: hidden; min-width: 0; }
  .item-list .card-media { width: 100%; aspect-ratio: 4 / 3; min-height: 112px; height: auto; }
  .item-list h2 { font-size: 14px; line-height: 20px; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 0; }
  .no-photo { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; line-height: 16px; }
}
.qa-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(220px, 1fr); gap: 32px; align-items: start; justify-content: center; padding: 24px 32px 48px; }
.qa-card { display: flex; flex-direction: column; max-width: 640px; padding: 20px 24px; border: 1px solid var(--hair); border-radius: 10px; background: var(--sheet); box-shadow: none; }
form.qa-card > * { order: 5; }
form.qa-card > .qa-heading { order: 1; }
form.qa-card > .qa-lead { order: 2; }
form.qa-card > .qa-title { order: 3; }
form.qa-card > .qa-pickers { order: 4; }
form.qa-card > .qa-photo { order: 6; }
form.qa-card > .qa-tags { order: 7; }
form.qa-card > .qa-condition { order: 8; }
form.qa-card > .qa-more { order: 9; }
form.qa-card > .qa-actions { order: 10; }
.qa-heading { order: 1; margin: 0 0 4px; }
.qa-lead { order: 2; margin: 0 0 8px; }
.qa-title { order: 3; }
.qa-pickers { order: 4; display: flex; flex-direction: column; gap: 8px; }
form.qa-card > nav.pills { order: 4; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
form.qa-card > nav.pills a { min-height: 28px; padding: 4px 10px; font-size: 13px; }
.qa-photo { order: 5; }
.qa-tags { order: 6; }
.qa-condition { order: 7; }
.qa-more { order: 8; }
.qa-actions { order: 9; display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.qa-actions button { height: 40px; margin: 0; }
.qa-actions .secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.qa-actions .kbd { margin-left: 8px; font-size: 12px; font-weight: 500; opacity: 0.85; }
form.qa-card.stack label, .qa-screen label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.qa-fold { margin: 0; border-top: 1px solid var(--hair); }
.qa-fold > :not(summary) { margin-top: 8px; }
.facets details { margin: 0; padding: 0; }
.toolbar .count { display: none; }
.search-ic { width: 18px; height: 18px; }
.qa-note h2 { font-size: 18px; line-height: 24px; }
.qa-note { color: var(--muted); font-size: 14px; line-height: 22px; }
.qa-top { display: none; }
.signed-choice { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.signed-choice { font-size: 14px; font-weight: 600; }
.signed-choice input { appearance: auto; width: 20px; height: 20px; min-width: 20px; min-height: 0; max-width: 20px; margin: 0; padding: 0; flex: 0 0 20px; accent-color: var(--accent); }
.photo-drop { display: flex; align-items: center; justify-content: center; min-height: 120px; margin: 8px 0; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--muted); font-weight: 400; text-transform: none; }
.qa-label { margin: 8px 0 0; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.qa-label .optional { font-weight: 400; color: var(--muted); }
.combo { position: relative; }
.combo-input { height: 48px; min-height: 48px; }
.combo-list {
  position: static;
  z-index: 6;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 240px;
  overflow: auto;
}
.combo-item, .combo-list button {
  display: block;
  width: 100%;
  margin: 0;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 6px;
}
.combo-item:hover, .combo-list button:hover { background: var(--surface-alt); }
.combo-name { display: block; font-size: 14px; font-weight: 600; }
.combo-path { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.combo-backing { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#name:focus,
#name:focus-visible,
#name.focus-ring {
  outline: 3px solid var(--focus, #7a5c10);
  outline-offset: 2px;
  border-color: var(--focus, #7a5c10);
  box-shadow: none;
}
.qa-photo input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.m-search { position: relative; }
.search-ic { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.m-search input { padding-left: 36px; }
@media (max-width: 639px) {
  .qa-layout { display: block; padding: 0 16px 120px; }
  .qa-photo > summary { display: none; }
  form.qa-card > .qa-photo { order: 4; }
  form.qa-card > .qa-pickers { order: 5; }
  .qa-photo { order: 4; }
  .qa-pickers { order: 5; }
  form.qa-card > nav.pills { order: 5; }
  .qa-card, .qa-screen { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .qa-actions .kbd { display: none; }
  form.qa-card label.photo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    min-height: 120px;
    gap: 2px;
    text-align: center;
  }
  .photo-drop .cam { width: 24px; height: 24px; }
  .photo-drop .photo-name { font-size: 15px; font-weight: 600; color: var(--ink); }
  .photo-drop .photo-opt, .photo-drop .photo-src { font-size: 13px; font-weight: 400; color: var(--muted); }
  .qa-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; margin: 0; padding: 12px 16px 30px; background: var(--sheet); border-top: 1px solid var(--hair); }
  .qa-actions button { height: 48px; flex: 1; }
  .qa-card { max-width: none; border: 0; padding: 0; }
  .qa-note, .qa-heading { display: none; }
  .qa-top { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; height: 56px; }
  .qa-top h1 { text-align: center; font-size: 18px; line-height: 24px; margin: 0; }
  .qa-top a { color: var(--accent); text-decoration: none; }
  body:has(.qa-screen) .tabbar { display: none; }
  .qa-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    gap: 10px;
    padding: 12px 16px 30px;
    background: var(--sheet);
    border-top: 1px solid var(--hair);
  }
  .qa-actions button { height: 48px; flex: 1; margin: 0; }
  .facet-block > summary::after, .facet-collapse > summary::after { content: " ▾"; margin-left: 4px; }
  .facets .facet-collapse { border-top: 0; }
}
@media (pointer: coarse) {
  .qa-actions .kbd { display: none; }
}
.source-line { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); font-weight: 400; text-align: left; white-space: normal; overflow: visible; text-overflow: unset; }
.inventory-table td.titlecell { height: auto; min-height: 52px; white-space: normal; overflow: visible; }
.title-lock { height: auto; min-height: 40px; }
.title-lock .row-line2 { display: block; margin-top: 2px; font-size: 13px; line-height: 16px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estimate-note { display: block; margin-top: 2px; font-size: 13px; line-height: 16px; color: var(--muted); font-weight: 400; text-align: right; white-space: nowrap; overflow: visible; text-overflow: clip; }
.inventory-table .col-status, .inventory-table .col-money, .inventory-table .col-value, .price-figure { white-space: nowrap; overflow: visible; text-overflow: clip; }
.inventory-table .col-status { width: 148px; max-width: none; }
#region-select, .region-select, #marketplace_region { margin-bottom: 16px; }
#listing_description { width: 100%; max-width: 100%; box-sizing: border-box; display: block; }
.title-count, .ebay-line { font-size: 13px; }
.place-row { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 12px; align-items: end; }
.browse.with-inspector .inventory-table { min-width: 640px; width: 100%; }
.browse.with-inspector .col-condition,
.browse.with-inspector .col-money,
.browse.with-inspector .col-value { display: table-cell !important; }
.browse.with-inspector .inventory-table .col-money,
.browse.with-inspector .inventory-table td.col-money { width: 96px; min-width: 96px; max-width: none; }
.browse.with-inspector .inventory-table .col-value,
.browse.with-inspector .inventory-table td.col-value,
.browse.with-inspector .inventory-table th.col-value { width: 120px; min-width: 96px; max-width: none; }
.browse.with-inspector .estimate-note { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
form.edit-panel { padding-bottom: 88px; }
@media (max-width: 1023px) {
  .sticky-save { bottom: calc(72px + env(safe-area-inset-bottom)); }
  button, .button, input, select, textarea, summary, .tabbar a {
    min-height: 44px;
  }
  .inspector-actions .button, .inspector-actions button, .today-shortcut {
    height: 44px;
    min-height: 44px;
  }
}
.checklist { list-style: none; padding: 0; }
.checklist li { margin: 8px 0; padding: 12px; }
.checklist li.missing { border: 1px dashed var(--hair); }
.checklist li.owned { border: 1px solid var(--hair); }
.call-head, .call-check { margin: 0; font-weight: 400; }
.call-check { display: block; margin-top: 4px; }
.call-check strong { font-weight: 700; }
form.stack label, form.edit-panel label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.optional { font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; text-transform: none; }
form.edit-panel {
  max-width: 640px;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--hair);
  background: var(--sheet);
  box-sizing: border-box;
}
.date-parts { border: 0; margin: 0.7rem 0 0; padding: 0; }
.date-parts legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.date-row { display: grid; grid-template-columns: 4.5rem 4.5rem 6.5rem; gap: 8px; }
.date-row label { font-size: 13px; font-weight: 400; color: var(--muted); }
form.stack label.choice, form.edit-panel label.choice, form.qa-card label.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
}
.inspector-actions { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.inspector-actions form { display: flex; margin: 0; }
.inspector-actions .button, .inspector-actions button {
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
}
.inventory-table .col-money { width: 96px; min-width: 96px; max-width: none; }
.inventory-table .col-value { width: 148px; min-width: 0; max-width: none; }
.table-scroll { overflow-x: hidden; }
.price-figure { white-space: nowrap; }
.muted-figure {
  display: inline-block;
  max-width: 88px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  white-space: normal;
  text-align: right;
}
.missing-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0;
  padding: 10px 12px;
  border: 1px dashed var(--hair);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.checklist-chip { display: inline-flex; margin: 0; }
.checklist-create { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.checklist-create input { width: 12rem; margin: 0; height: 36px; }
.checklist-create button { margin: 0; height: 36px; }
.browse-main > .checklist-results { order: 3; }
.browse-main > .toolbar { order: 1; width: 100%; }
.inventory-table .col-check {
  width: 40px;
  max-width: 40px;
  padding-left: 8px;
  padding-right: 8px;
  overflow: visible;
  text-overflow: clip;
}
.inventory-table .col-condition {
  width: 112px;
  max-width: 112px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.inventory-table td.col-status {
  width: 168px;
  min-width: 112px;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.inventory-table td.col-money,
.inventory-table td.col-value {
  width: 96px;
  min-width: 96px;
  max-width: none;
  padding-right: 16px;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.inventory-table th.col-value,
.inventory-table td.col-value,
.inventory-table .col-value {
  width: 148px;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: clip;
}
.inventory-table th.col-value,
.inventory-table td.col-value .price-figure {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.browse:not(.with-inspector) .estimate-note {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.browse:not(.with-inspector) .table-scroll { overflow-x: hidden; }
.browse.with-inspector .inventory-table th.col-value,
.browse.with-inspector .inventory-table td.col-value {
  width: 120px;
  min-width: 112px;
}
.inventory-table td.col-money .price-figure,
.inventory-table td.col-value .price-figure,
.inventory-table td.col-status .status {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.table-scroll { overflow-x: auto; }
.inventory-table tbody td {
  height: 52px;
  max-height: 52px;
  box-sizing: border-box;
}
.browse-main { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
@media (max-width: 1023px) {
  main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
.sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding: 12px 0;
  background: var(--sheet);
  border-top: 1px solid var(--hair);
}
@media (max-width: 1023px) {
  .sticky-save { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
.sticky-save button { margin: 0; }
.today-shortcut { margin-left: 8px; height: 32px; min-height: 32px; }
#scan-video { width: 100%; max-height: 360px; background: #111; }
dialog { border: 1px solid var(--hair); background: var(--sheet, #fff); color: inherit; max-width: 28rem; padding: 16px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.region-line { margin: 16px 0 0; }

body.site {
  background: #fff;
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.site img, body.site svg, body.site figure { max-width: 100%; }
body.site main { padding: 0; max-width: none; }
.site-bar, .hero, .band, .trust, .prose, .site-foot { width: min(1120px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 12px 0;
  background: #fff;
}
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #e5e5e7; }
.scroll-progress span { display: block; height: 100%; width: 0; background: #1d1d1f; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; }
.site-logo { flex: none; }
.site-wordmark { height: 32px; width: auto; max-width: none; flex: none; display: block; object-fit: contain; }
.site-wordmark.logo-for-dark { display: none; }
html[data-theme="dark"] .site-wordmark.logo-for-light { display: none; }
html[data-theme="dark"] .site-wordmark.logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .site-wordmark.logo-for-light { display: none; }
  html[data-theme="system"] .site-wordmark.logo-for-dark { display: block; }
}
.header-login {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.header-login-phone { display: none; }
.site-menu { display: flex; align-items: center; }
.site-gem .logo-mark { width: 28px; height: 28px; display: block; }
.site-name { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.site-links { display: flex; gap: 18px; margin-left: 12px; }
.site-links a, .site-foot-links a, .site-login, .header-login, .text-link { color: #1d1d1f; text-decoration: none; }
.site-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.site-login { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.site-join, .waitlist button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 980px;
  background: #d4ac5a;
  color: #1c1917;
  text-decoration: none;
  border: 1px solid #7a5c10;
  font: inherit;
  font-size: 15px;
}
.site-drawer { display: none; }
body.site .hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  height: auto;
  aspect-ratio: auto;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  place-items: stretch;
  object-fit: unset;
}
body.site .hero-plain { display: block; padding-top: 48px; background: transparent; }
.eyebrow { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.site h1 { margin: 0 0 16px; font-size: clamp(40px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.01em; font-weight: 700; }
.site h2 { margin: 0 0 28px; font-size: clamp(32px, 4vw, 36px); line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; }
.site h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; font-weight: 600; }
.lede { font-size: 19px; color: #3a3a3c; margin: 0 0 24px; transition: opacity 200ms ease-out; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.picker-label { width: 100%; margin: 0; font-size: 14px; color: #6e6e73; }
.picker button, .chart-toggles button, .demo-suggestions button, #demo-suggestions button {
  min-height: 44px;
  border-radius: 980px;
  border: 1px solid #d2d2d7;
  background: #fff;
  color: inherit;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
}
.picker button[aria-pressed="true"], .chart-toggles button[aria-pressed="true"] { background: #1d1d1f; color: #fff; }
.demo { border: 1px solid #e5e5e7; border-radius: 18px; padding: 16px; background: #f5f5f7; }
.demo-label, .kicker { margin: 0 0 8px; color: #6e6e73; font-size: 13px; }
.demo input, .collects, .share-box input { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid #d2d2d7; padding: 0 12px; font: inherit; background: #fff; color: inherit; }
#demo-suggestions { list-style: none; margin: 8px 0; padding: 0; }
#demo-suggestions button { width: 100%; text-align: left; }
.demo-card { background: #fff; border-radius: 14px; padding: 12px; margin-top: 12px; }
.demo-photo { height: 72px; border-radius: 10px; background: #121211; color: #f5f5f4; display: grid; place-items: center; margin-bottom: 8px; }
.demo-value { color: #6e6e73; font-size: 14px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.demo-grid span {
  min-height: 36px;
  border-radius: 8px;
  background: #e7e5e4;
  color: #1c1917;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.demo-grid span.is-on { background: #7a5c10; color: #ffffff; }
.story article { padding: 48px 0; }
.still { display: flex; gap: 16px; height: 128px; align-items: flex-end; }
.still span { display: block; position: relative; }
.still-box { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6e7c3, #d4ac5a 42%, #7a5c10 78%); box-shadow: inset 0 0 0 6px #1c1917; }
.still-binder { width: 54px; height: 112px; border-radius: 4px 8px 8px 4px; background: #1c1917; box-shadow: inset -10px 0 0 #d4ac5a; }
.still-sheet { width: 88px; height: 88px; border-radius: 50%; background: repeating-radial-gradient(circle, #1c1917 0 2px, #efe8da 3px 6px); box-shadow: inset 0 0 0 18px #efe8da, inset 0 0 0 22px #d4ac5a; }
.chart-panel { margin: 0 0 72px; padding: 20px; border-radius: 18px; background: #f5f5f7; }
.chart-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.chart-toggles { display: flex; gap: 8px; margin: 12px 0; }
#estimate-chart { width: 100%; height: auto; color: #1d1d1f; }
.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.compact-grid article, .soon-row article { background: #f5f5f7; border-radius: 18px; padding: 20px; }
.cards article.is-lit { outline: 2px solid #1d1d1f; }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { animation: rise-in 280ms ease-out; }
}
@keyframes rise-in {
  from { transform: translateY(8px); }
  to { transform: none; }
}
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; display: none; gap: 8px; align-items: center; z-index: 30; }
.sticky-cta[hidden] { display: none !important; }
.sticky-cta .site-join { flex: 1; }
#sticky-dismiss { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid #d2d2d7; background: #fff; }
.share-box { margin-top: 12px; }
@media (max-width: 800px) {
  .sticky-cta:not([hidden]) { display: flex; }
  .compact-grid, .soon-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lede { transition: none; }
  .feature img, .story img { transform: none !important; }
}
.soon-row { grid-template-columns: 1fr 1fr; }
html[data-theme="dark"] body.site,
html[data-theme="dark"] body.site .site-bar,
html[data-theme="dark"] body.site .site-drawer nav {
  background: #121211;
  color: #f5f5f4;
}
html[data-theme="dark"] body.site .site-links a,
html[data-theme="dark"] body.site .site-foot-links a,
html[data-theme="dark"] body.site .site-login,
html[data-theme="dark"] body.site .header-login,
html[data-theme="dark"] body.site .text-link,
html[data-theme="dark"] body.site .lede,
html[data-theme="dark"] body.site .faq p { color: #f5f5f4; }
html[data-theme="dark"] body.site .demo,
html[data-theme="dark"] body.site .chart-panel,
html[data-theme="dark"] body.site .compact-grid article,
html[data-theme="dark"] body.site .soon-row article,
html[data-theme="dark"] body.site .cards article,
html[data-theme="dark"] body.site .pill { background: #1c1b1a; color: #d6d3d1; }
html[data-theme="dark"] body.site .demo-card,
html[data-theme="dark"] body.site .picker button,
html[data-theme="dark"] body.site .demo input,
html[data-theme="dark"] body.site .collects,
html[data-theme="dark"] body.site .waitlist input,
html[data-theme="dark"] body.site #sticky-dismiss { background: #262524; color: #f5f5f4; border-color: #3a3835; }
.price-switches { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; }
.price-switches div { display: flex; flex-wrap: wrap; gap: 8px; }
.price-switches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.price-switches label { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 980px; border: 1px solid #d2d2d7; cursor: pointer; }
.price-switches input:checked + label { background: #1d1d1f; color: #fff; }
.price-switches input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.year-note { font-size: 13px; }
.built-list { margin: 0 0 20px; padding-left: 1.1rem; }
.plan-grid { display: grid; gap: 16px; }
.group-collectors { grid-template-columns: repeat(3, 1fr); }
.group-business { display: none; grid-template-columns: repeat(4, 1fr); }
.price-board:has(.audience-business:checked) .group-collectors { display: none; }
.price-board:has(.audience-business:checked) .group-business { display: grid; }
.amount-year { display: none; }
.price-board:has(.bill-year:checked) .amount-month { display: none; }
.price-board:has(.bill-year:checked) .amount-year { display: block; }
.plan-card { background: #f5f5f7; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-amount { font-size: 32px; letter-spacing: -0.03em; margin: 0; }
.plan-card .site-join { margin-top: auto; }
.coming-list { list-style: none; padding: 0; }
.pricing-note { color: #6e6e73; font-size: 14px; }
@media (max-width: 800px) {
  .group-collectors, .price-board:has(.audience-business:checked) .group-business { grid-template-columns: 1fr; }
}
html[data-theme="dark"] body.site .site-join,
html[data-theme="dark"] body.site .picker button[aria-pressed="true"] { background: #d4ac5a; color: #1c1917; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] { color-scheme: dark; }
}
.hero-copy { position: relative; }
.hero-copy::before { content: none; }
.hero-stage { position: relative; margin: 0; }
.hero-stage img, .feature img, .product-shot img { width: 100%; border-radius: 18px; border: 1px solid #e5e5e7; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12); background: #121211; }
.product-shot { display: block; }
.shot-dark, .shot-phone { display: none; }
html[data-theme="dark"] .product-shot .shot-light { display: none; }
html[data-theme="dark"] .product-shot .shot-desk.shot-dark { display: block; }
@media (max-width: 700px) {
  .product-shot .shot-desk { display: none !important; }
  .product-shot .shot-phone.shot-light { display: block; }
  html[data-theme="dark"] .product-shot .shot-phone.shot-light { display: none; }
  html[data-theme="dark"] .product-shot .shot-phone.shot-dark { display: block; }
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .product-shot .shot-light { display: none; }
  html[data-theme="system"] .product-shot .shot-desk.shot-dark { display: block; }
}
@media (prefers-color-scheme: dark) and (max-width: 700px) {
  html[data-theme="system"] .product-shot .shot-desk { display: none !important; }
  html[data-theme="system"] .product-shot .shot-phone.shot-dark { display: block; }
}
.hero-phone { position: absolute; width: 28% !important; right: -4%; bottom: -8%; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist input[type="email"] { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid #d2d2d7; padding: 0 14px; font: inherit; font-size: 17px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; line-height: 1.4; color: #3a3a3c; }
.consent input { width: 20px; height: 20px; margin-top: 2px; }
.micro, .site-note, .site-legal { color: #6e6e73; font-size: 14px; }
.band { padding: 72px 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 0 0 72px; }
.feature-flip img { order: -1; }
.pill { display: inline-block; margin: 0 0 10px; padding: 2px 8px; border-radius: 980px; background: #f5f5f7; color: #6e6e73; font-size: 12px; letter-spacing: 0.02em; }
.pill-soon { background: #d4ac5a; color: #1c1917; }
.soon-row { display: grid; grid-template-columns: 1fr; }
.soon-row article, .cards article { background: #f5f5f7; border-radius: 18px; padding: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing .cards { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px 0 64px; color: #6e6e73; font-size: 15px; }
.trust p { margin: 0; }
.faq details { border-top: 1px solid #e5e5e7; padding: 8px 0; }
.faq details:last-child { border-bottom: 1px solid #e5e5e7; }
.faq summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.faq p { margin: 0 0 12px; color: #3a3a3c; }
.prose { padding: 24px 0 48px; }
.prose li { margin: 8px 0; }
.closing { padding-top: 12px; }
.site-foot { padding: 48px 0 64px; text-align: center; }
.site-logo-foot { justify-content: center; }
.site-tag { margin: 8px 0 16px; }
.site-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 16px; }
.site-foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.legal-entity { display: inline-block; min-width: 0; }
.site :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .site-links, .site-login { display: none; }
  .header-login-desk { display: none; }
  .header-login-phone { display: inline-flex; }
  .site-bar { flex-wrap: nowrap; gap: 8px; }
  .site-drawer { display: block; margin-left: 0; }
  .site-menu { margin-left: auto; gap: 8px; flex: none; }
  .site-actions { margin-left: 0; }
  .site-actions .site-join { padding: 0 12px; white-space: nowrap; }
  .site-drawer summary { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; cursor: pointer; }
  .site-drawer nav { display: grid; background: #fff; border: 1px solid #e5e5e7; border-radius: 12px; padding: 8px; }
  .site-drawer a { min-height: 44px; display: flex; align-items: center; padding: 0 8px; color: inherit; text-decoration: none; }
  body.site .hero, .feature, .feature-flip, .cards, .pricing .cards, .trust { display: block; }
  .feature { margin-bottom: 48px; }
  .feature img, .cards article, .trust p { margin-top: 16px; }
  .hero-phone { position: static; width: 46% !important; margin-top: 16px; }
  .waitlist-row { flex-direction: column; }
  body.site .hero, .site-bar, .band, .trust, .prose, .site-foot { width: min(1120px, calc(100% - 32px)); }
}
@media (max-width: 639px) {
  input, select, textarea, button, .button {
    min-height: 48px;
  }
  .inspector-actions .button, .inspector-actions button {
    height: 48px;
    min-height: 48px;
  }
}

.inventory-table .col-condition,
.inventory-table td.col-condition {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  width: auto;
  min-width: 9.5rem;
  max-width: none;
}
.inventory-table td.col-value,
.inventory-table .col-value {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  width: 112px;
  min-width: 112px;
  max-width: none;
}
@media (min-width: 1280px) {
  .inventory-table th.col-value,
  .inventory-table td.col-value {
    position: sticky;
    right: 0;
    background: var(--sheet);
    z-index: 1;
  }
}
.estimate-note {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.inventory-table tbody tr { height: 56px; }
.inventory-table td, .inventory-table th { padding: 10px 12px; }
.title-lock .tx > a, .inventory-table td a { font-size: 15px; font-weight: 500; }
.inventory-table td.titlecell, .inventory-table th.titlecell { width: 180px; min-width: 140px; }
.browse.with-inspector .inventory-table { min-width: 920px; }
.inventory-table tbody td {
  height: auto;
  max-height: none;
  vertical-align: middle;
}
.mob-price { display: none; }
.back { align-items: center; }
.back .inline-form,
.back form { display: inline-flex; align-items: center; margin: 0; }
.back a, .back button { margin: 0; }
article.detail > section,
main .wrap > section { margin-top: 1.75rem; }
.line-list li > span { text-align: left; }
.top-right { position: relative; }
.avatar-menu[open] {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 11rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.photo-form { position: relative; max-width: 36rem; }
.photo-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.photo-form .photo-drop { flex-direction: column; gap: 4px; cursor: pointer; }
.status-archived { background: var(--mark-bg); color: var(--mark-text); }
.tbc {
  display: inline-block;
  margin: 0 0.15rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.4;
}
html[data-theme="dark"] .tbc { background: #78350f; color: #fcd34d; }
@media (min-width: 960px) {
  .sidebar {
    align-self: stretch;
    height: auto;
    min-height: calc(100vh - 56px);
  }
}
@media (max-width: 639px) {
  .inventory-table tbody tr {
    height: auto;
    min-height: 64px;
    max-height: none;
    overflow: visible;
    align-items: center;
    padding: 10px 12px;
  }
  .inventory-table tbody td {
    min-height: 0;
    white-space: normal;
    overflow: visible;
  }
  .title-lock { height: auto; min-height: 40px; align-items: center; }
  .title-lock .tx > a,
  .title-lock .row-line2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .inventory-table tbody tr { grid-template-columns: minmax(0, 1fr) max-content; }
  .inventory-table tbody td.col-money,
  .inventory-table tbody td.col-status {
    overflow: visible;
    width: auto;
    max-width: none;
    white-space: nowrap;
  }
  .desk-cost { display: none; }
  .mob-price { display: inline; white-space: nowrap; }
  .mob-label { margin-right: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .inventory-table tbody tr { margin-bottom: 0; }
}

/* Centre every page. The box is centred; tables and forms stay left-aligned. */
.workspace .wrap {
  width: min(1200px, 100%);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}
.workspace .wrap:has(> .auth),
.workspace .wrap:has(.more-title),
.workspace .wrap:has(.photo-form),
.workspace .wrap:has(.edit-panel),
.workspace .wrap:has(> .stack):not(:has(.inventory-table)):not(:has(.qa-layout)):not(:has(.scan-grid)):not(:has(.browse)) {
  width: min(760px, 100%);
  max-width: 760px;
}
.workspace .wrap > h1,
.workspace .wrap > p:first-of-type,
.detail-head,
.more-title,
.scan-page > h1,
.scan-page > p,
.toolbar h1,
.toolbar p {
  text-align: left;
}
.workspace .wrap > p:first-of-type,
.scan-page > p,
.toolbar p {
  max-width: 68ch;
}
.toolbar,
.toolbar h1,
.inventory-table,
.line-list,
.stock-list,
.item-list,
.scan-grid,
.scan-card,
.scan-upload,
.scan-bulk,
.facts,
.detail section,
.costs,
.estimate {
  text-align: left;
}
.auth,
.empty {
  margin-inline: auto;
}
.auth h1,
.empty,
.empty h2,
.empty p {
  text-align: center;
}
.auth form,
.auth label {
  text-align: left;
}
.scan-page {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.site .site-bar,
body.site .hero,
body.site .band,
body.site .trust,
body.site .site-foot,
body.site .story {
  width: min(1200px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
body.site .prose,
body.site .hero.hero-plain,
body.site .policy {
  width: min(760px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
body.site .hero-copy,
body.site .hero.hero-plain,
body.site .band > h1,
body.site .band > h2,
body.site .band > .lede,
body.site .prose > h1,
body.site .policy > h1,
body.site #waitlist {
  text-align: center;
}
body.site .hero-copy .picker,
body.site .hero-copy .waitlist-row,
body.site #waitlist .waitlist-row {
  justify-content: center;
}
body.site #waitlist {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
body.site .prose h2,
body.site .prose h3,
body.site .prose p,
body.site .prose li,
body.site .policy h2,
body.site .policy h3,
body.site .policy p,
body.site .policy li,
body.site .policy table {
  text-align: left;
}
body.site .policy-table { max-width: 100%; }
body.site .policy table { width: 100%; border-collapse: collapse; }
body.site .policy th, body.site .policy td { padding: 8px 10px; vertical-align: top; }
@media (max-width: 800px) {
  body.site .policy table,
  body.site .policy tbody,
  body.site .policy tr,
  body.site .policy th,
  body.site .policy td { display: block; width: auto; }
  body.site .policy tr {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  body.site .policy tr:first-child { display: none; }
  body.site .policy td { padding: 6px 0; }
  body.site .policy td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}
@media (max-width: 800px) {
  body.site .site-bar,
  body.site .hero,
  body.site .band,
  body.site .trust,
  body.site .site-foot {
    width: min(1200px, calc(100% - 32px));
  }
  body.site .prose,
  body.site .hero.hero-plain,
  body.site .policy {
    width: min(760px, calc(100% - 32px));
  }
}

/* Inventory stays full width, as it was before pages were centred. */
.workspace .wrap:has(.browse) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-inline: 0;
}
@media (max-width: 639px) {
  .workspace .wrap:has(.browse) { padding-inline: 16px; }
}
.browse .empty,
.browse .empty h2,
.browse .empty p {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.facet-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin: 8px 0 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.facet-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: none;
}
.facet-toggle[aria-expanded="true"] .facet-chevron { transform: rotate(45deg); margin-top: -3px; }
.facet-active {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.facet-group .facet-panel { margin: 0 0 8px; }
@media (max-width: 639px) {
  .facets .filters { display: block; overflow: visible; width: 100%; }
  .facet-group { display: block; width: 100%; position: static; }
  .facet-panel {
    position: static;
    min-width: 0;
    border: 0;
    padding: 0 0 8px 16px;
    background: transparent;
  }
}

html[data-theme="light"] { color-scheme: light; accent-color: var(--accent); }
[data-theme="dark"],
html[data-theme="dark"] { color-scheme: dark; accent-color: var(--accent); }
@media (prefers-color-scheme: dark) {
  [data-theme="system"] { color-scheme: dark; accent-color: var(--accent); }
}

.costs .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 24px; }
article.detail { border: 0; padding: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; gap: 16px; }
article.detail > section, .costs, .estimate { border-radius: 12px; padding: 16px 20px; margin: 0; }
.sold-costs { border: 0; padding: 0; background: transparent; box-shadow: none; }
.sold-costs .metric { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--sheet); }
.metric-figure { font-size: 20px; line-height: 28px; }
.metric-line { font-size: 13px; line-height: 18px; }
.estimate-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.estimate-actions button { min-height: 40px; }
.estimate-form summary { cursor: pointer; font: 600 15px/22px Inter, "Segoe UI", sans-serif; }
@media (min-width: 1024px) {
  .estimate-form .date-fields, .estimate-form form.stack { }
  .estimate form, .estimate-form form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; align-items: end; }
  .estimate-form form .estimate-actions { grid-column: 1 / -1; }
}
label { font: 600 14px/20px Inter, "Segoe UI", sans-serif; }
.optional { font-size: 13px; font-weight: 400; }
input, select, textarea { min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 16px; }
input[type="checkbox"], input[type="radio"] { min-height: 16px; width: 16px; height: 16px; padding: 0; }
@media (max-width: 1023px) {
  label.choice, label.opt, .stock-menu summary, .facet-toggle, .site-links a, .header-login, .faq summary,
  .plain a, .qa-top a, .stock-menu-panel a, .stock-menu-panel button, .chip-x, .text-link, .more-roots {
    min-height: 44px;
    min-width: 44px;
  }
  label.choice, label.opt { display: flex; align-items: center; gap: 12px; }
  label.choice input, label.opt input[type="checkbox"], label.opt input[type="radio"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    flex: none;
  }
  .stock-menu summary, .chip-x { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .plain a, .qa-top a, .stock-menu-panel a, .stock-menu-panel button, .text-link {
    display: inline-flex;
    align-items: center;
  }
}
.stock-copy { min-width: 0; }
.stock-title { display: block; overflow-wrap: anywhere; }
.import-preview td, .import-preview th { white-space: normal; overflow-wrap: anywhere; }
#list-delete { width: min(420px, calc(100% - 32px)); border: 0; border-radius: 12px; padding: 16px; }
@media (max-width: 700px) {
  .import-preview thead { display: none; }
  .import-preview, .import-preview tbody, .import-preview tr, .import-preview td { display: block; width: auto; }
  .import-preview tr { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
  .import-preview td { padding: 4px 0; }
  .import-preview td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
}
label.opt, label.choice, label.filters-sort { display: flex; font-weight: 500; }
.facets h3, .facet-toggle { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.opt { min-height: 28px; font-size: 13px; line-height: 20px; }
.opt[data-count="0"] { display: none; }
.facets.show-all-conditions .opt[data-count="0"] { display: flex; }
.facet-group[data-live="0"] { display: none; }
.facets.show-all-conditions .facet-group[data-live="0"] { display: block; }
.texty { background: none; border: 0; color: var(--link); padding: 0; min-height: 28px; }
.filters-bar, .filters-close, .sheet-head, .filter-scrim { display: none; }
.item-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-body h2 { margin: 0; font-size: 15px; line-height: 20px; }
.card-body h2 a { display: block; font-size: 15px; line-height: 20px; font-weight: 600; white-space: normal; }
.card-cost, .card-body .source-line, .card-body .sub, .no-photo { font-size: 13px; line-height: 18px; }
.card-cost { font-size: 15px; font-weight: 600; order: -1; margin: 0; }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; }
.card-media { aspect-ratio: 4 / 5; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.recent-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-alt); overflow: hidden; flex: none; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-name { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.empty { padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.empty h2 { font-size: 17px; line-height: 24px; margin: 0 0 8px; }
.empty p { font-size: 15px; }
.chart-frame { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; align-items: stretch; }
.chart-y, .chart-x { display: flex; justify-content: space-between; font-size: 13px; line-height: 16px; color: var(--muted); }
.chart-y { flex-direction: column; width: max-content; align-items: flex-end; }
.chart-plot { min-width: 0; }
.area-chart { width: 100%; height: 220px; }
#portfolio-change { margin-top: 12px; }
body.site .story h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
body.site .policy, body.site .prose.policy { font-size: 17px; line-height: 28px; max-width: 68ch; }
body.site .policy h2, body.site .prose.policy h2 { font-size: 22px; line-height: 28px; }
body.site .text-link { color: var(--gold-text); }
@media (max-width: 639px) {
  .area-chart { height: 160px; }
  .filters-bar {
    display: flex; align-items: center; gap: 8px; order: 2; width: 100%;
    position: sticky; top: 56px; z-index: 5; padding: 8px 0; background: var(--paper);
  }
  .filters-open {
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    white-space: nowrap;
    font: 600 15px/44px Inter, "Segoe UI", sans-serif;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }
  .filters-sort { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 14px/20px Inter, "Segoe UI", sans-serif; }
  .filters-sort select { width: auto; min-height: 40px; margin: 0; }
  .facets {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    width: auto;
    height: auto;
    overflow: auto;
    flex-direction: column;
    background: var(--sheet);
    padding: 16px;
    border: 0;
  }
  button.filter-scrim {
    display: block;
    position: fixed; inset: 0; z-index: 39; border: 0; border-radius: 0; padding: 0; margin: 0;
    min-height: 0; width: 100%; height: 100%; box-shadow: none; color: transparent;
    background: rgba(18, 18, 17, 0.55); opacity: 0; pointer-events: none;
    transition: opacity 200ms ease;
  }
  .filter-scrim.is-on { opacity: 1; pointer-events: auto; }
  .facets.is-sheet {
    display: flex;
    flex-direction: column;
    top: auto;
    height: auto;
    max-height: min(82vh, 720px);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
    transform: translateY(100%);
    transition: transform 220ms ease;
  }
  .facets.is-sheet.is-shown { transform: translateY(0); }
  .item-list .item-row { display: flex; flex-direction: column; }
  .item-list .card-media { width: 100%; height: auto; aspect-ratio: 1 / 1; min-height: 160px; }
  .sheet-head { display: flex; align-items: center; gap: 8px; }
  .sheet-head h2 { margin: 0; font-size: 18px; }
  .sheet-count { margin: 0; color: var(--muted); }
  .sheet-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: var(--sheet);
  }
  .sheet-foot .button, .sheet-foot button { min-height: 44px; flex: 1; }
  .pills a { min-height: 44px; transition: background-color 180ms ease, color 180ms ease; }
  .seg a { min-height: 44px; display: inline-flex; align-items: center; }
  .card-media { aspect-ratio: 1 / 1; }
  .filters-close { display: inline-flex; margin-bottom: 12px; }
  .facet-form, .browse-main { display: block; }
  .facets .facet-panel { display: block; }
  .facet-panel[hidden] { display: none !important; }
  .inventory-table tr {
    height: auto;
    max-height: none;
    overflow: visible;
    align-items: start;
    grid-template-areas: "title title" "meta price";
    row-gap: 4px;
  }
  .inventory-table tbody td.col-status { grid-area: meta; justify-self: start; }
  .title-lock { align-items: flex-start; }
  .title-lock .tx > a {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .title-lock .row-line2 {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* Public pages in dark mode, including when the computer itself is in dark mode. */
html[data-theme="dark"] body.site,
html[data-theme="dark"] body.site .site-bar,
html[data-theme="dark"] body.site .site-drawer nav {
  background: #121211;
  color: #f5f5f4;
}
html[data-theme="dark"] body.site .site-links a,
html[data-theme="dark"] body.site .site-foot-links a,
html[data-theme="dark"] body.site .site-login,
html[data-theme="dark"] body.site .header-login,
html[data-theme="dark"] body.site .site-drawer a,
html[data-theme="dark"] body.site .text-link,
html[data-theme="dark"] body.site .lede,
html[data-theme="dark"] body.site .eyebrow,
html[data-theme="dark"] body.site .picker-label,
html[data-theme="dark"] body.site .faq summary,
html[data-theme="dark"] body.site .faq p,
html[data-theme="dark"] body.site .trust,
html[data-theme="dark"] body.site .trust strong,
html[data-theme="dark"] body.site .micro,
html[data-theme="dark"] body.site .site-note,
html[data-theme="dark"] body.site .site-legal,
html[data-theme="dark"] body.site .pricing-note,
html[data-theme="dark"] body.site .consent,
html[data-theme="dark"] body.site .demo-label,
html[data-theme="dark"] body.site .kicker,
html[data-theme="dark"] body.site .demo-value,
html[data-theme="dark"] body.site #chart-caption,
html[data-theme="dark"] body.site #chart-tip {
  color: #f5f5f4;
}
html[data-theme="dark"] body.site .lede,
html[data-theme="dark"] body.site .pricing-note,
html[data-theme="dark"] body.site .micro,
html[data-theme="dark"] body.site .demo-value,
html[data-theme="dark"] body.site .kicker,
html[data-theme="dark"] body.site .demo-label { color: #d6d3d1; }
html[data-theme="dark"] body.site .text-link { color: #d4ac5a; }
html[data-theme="dark"] body.site .demo,
html[data-theme="dark"] body.site .chart-panel,
html[data-theme="dark"] body.site .compact-grid article,
html[data-theme="dark"] body.site .soon-row article,
html[data-theme="dark"] body.site .cards article,
html[data-theme="dark"] body.site .plan-card,
html[data-theme="dark"] body.site .pill {
  background: #1c1b1a;
  color: #f5f5f4;
}
html[data-theme="dark"] body.site .demo-card,
html[data-theme="dark"] body.site .picker button,
html[data-theme="dark"] body.site .chart-toggles button,
html[data-theme="dark"] body.site .demo input,
html[data-theme="dark"] body.site select.collects,
html[data-theme="dark"] body.site .waitlist input,
html[data-theme="dark"] body.site .price-switches label,
html[data-theme="dark"] body.site #sticky-dismiss {
  background: #262524;
  color: #f5f5f4;
  border-color: #3a3835;
}
html[data-theme="dark"] body.site .picker button[aria-pressed="true"],
html[data-theme="dark"] body.site .chart-toggles button[aria-pressed="true"],
html[data-theme="dark"] body.site .price-switches input:checked + label {
  background: #d4ac5a;
  color: #1c1917;
  border-color: #7a5c10;
}
html[data-theme="dark"] body.site .demo-grid span {
  background: #3a3835;
  color: #f5f5f4;
}
html[data-theme="dark"] body.site .demo-grid span.is-on {
  background: #d4ac5a;
  color: #1c1917;
}
html[data-theme="dark"] body.site #estimate-chart { color: #e0bc6a; }
html[data-theme="dark"] body.site .faq details { border-color: #3a3835; }
html[data-theme="dark"] body.site .scroll-progress { background: #3a3835; }
html[data-theme="dark"] body.site .scroll-progress span { background: #d4ac5a; }
html[data-theme="dark"] body.site :focus-visible,
html[data-theme="dark"] #name:focus-visible {
  outline-color: #e0bc6a;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] body.site,
  html[data-theme="system"] body.site .site-bar,
  html[data-theme="system"] body.site .site-drawer nav {
    background: #121211;
    color: #f5f5f4;
  }
  html[data-theme="system"] body.site .site-links a,
  html[data-theme="system"] body.site .site-foot-links a,
  html[data-theme="system"] body.site .site-login,
  html[data-theme="system"] body.site .header-login,
  html[data-theme="system"] body.site .site-drawer a,
  html[data-theme="system"] body.site .faq summary,
  html[data-theme="system"] body.site .faq p,
  html[data-theme="system"] body.site .trust,
  html[data-theme="system"] body.site .trust strong,
  html[data-theme="system"] body.site .site-note,
  html[data-theme="system"] body.site .site-legal,
  html[data-theme="system"] body.site .eyebrow,
  html[data-theme="system"] body.site .picker-label,
  html[data-theme="system"] body.site .consent,
  html[data-theme="system"] body.site #chart-caption,
  html[data-theme="system"] body.site #chart-tip { color: #f5f5f4; }
  html[data-theme="system"] body.site .lede,
  html[data-theme="system"] body.site .pricing-note,
  html[data-theme="system"] body.site .micro,
  html[data-theme="system"] body.site .demo-value,
  html[data-theme="system"] body.site .kicker,
  html[data-theme="system"] body.site .demo-label { color: #d6d3d1; }
  html[data-theme="system"] body.site .text-link { color: #d4ac5a; }
  html[data-theme="system"] body.site .demo,
  html[data-theme="system"] body.site .chart-panel,
  html[data-theme="system"] body.site .compact-grid article,
  html[data-theme="system"] body.site .soon-row article,
  html[data-theme="system"] body.site .cards article,
  html[data-theme="system"] body.site .plan-card,
  html[data-theme="system"] body.site .pill {
    background: #1c1b1a;
    color: #f5f5f4;
  }
  html[data-theme="system"] body.site .demo-card,
  html[data-theme="system"] body.site .picker button,
  html[data-theme="system"] body.site .chart-toggles button,
  html[data-theme="system"] body.site .demo input,
  html[data-theme="system"] body.site select.collects,
  html[data-theme="system"] body.site .waitlist input,
  html[data-theme="system"] body.site .price-switches label,
  html[data-theme="system"] body.site #sticky-dismiss {
    background: #262524;
    color: #f5f5f4;
    border-color: #3a3835;
  }
  html[data-theme="system"] body.site .picker button[aria-pressed="true"],
  html[data-theme="system"] body.site .chart-toggles button[aria-pressed="true"],
  html[data-theme="system"] body.site .price-switches input:checked + label {
    background: #d4ac5a;
    color: #1c1917;
    border-color: #7a5c10;
  }
  html[data-theme="system"] body.site .demo-grid span { background: #3a3835; color: #f5f5f4; }
  html[data-theme="system"] body.site .demo-grid span.is-on { background: #d4ac5a; color: #1c1917; }
  html[data-theme="system"] body.site #estimate-chart { color: #e0bc6a; }
  html[data-theme="system"] body.site .faq details { border-color: #3a3835; }
  html[data-theme="system"] body.site :focus-visible { outline-color: #e0bc6a; }
}
.trial-line { margin: 8px 12px; color: var(--muted); font-size: 13px; line-height: 18px; }
.notice a { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  button, .button, a, .inventory-table tbody tr, .item-row, .trial-line {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }
  .pills a, button.iconbtn, button.iconbtn .kbd { transition: none; }
  button:active, .button:active { transform: translateY(1px); }
  .no-photo {
    background-image: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thumb, .no-photo, .card-media { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
@keyframes skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 639px) {
  .line-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 44px;
    padding: 10px 8px;
    gap: 2px;
  }
  .line-list a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: unset;
    width: 100%;
  }
  .line-list li > span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    width: 100%;
  }
  .checklist-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .checklist-toolbar .checklist-create { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .checklist-results .inventory-table,
  .checklist-results .inventory-table tbody,
  .checklist-results .inventory-table tr,
  .checklist-results .inventory-table td { display: block; width: 100%; }
  .missing-tile { width: 100%; min-width: 0; box-sizing: border-box; }
  .filters-desk { display: none; }
}
.browse.with-inspector .inventory-table td.col-condition,
.browse.with-inspector .inventory-table td.col-value,
.browse.with-inspector .estimate-note,
.inventory-table td.col-condition,
.inventory-table td.col-value,
.estimate-note {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}
.table-scroll { overflow-x: auto; }
.inventory-table { width: max-content; min-width: 100%; }
.inventory-table th.titlecell,
.inventory-table td.titlecell {
  width: 34%;
  min-width: 18rem;
  max-width: 36rem;
  white-space: normal;
  text-overflow: unset;
}
.title-lock { height: auto; min-height: 44px; align-items: flex-start; }
.title-lock .tx > a,
.title-lock .row-line2,
.title-lock .sub {
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
}
.inventory-table td.col-type,
.inventory-table td.col-status,
.inventory-table th.col-type,
.inventory-table th.col-status {
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
}
.line-list { align-items: center; }
.line-list .thumb { width: 36px; height: 48px; flex: none; display: block; }
.line-list .thumb img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; }
.inventory-table th { position: relative; }
.col-resize { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; }
.acct-intro { margin-bottom: 20px; }
.acct-intro h1 { margin-bottom: 8px; }
.acct-block { margin: 12px 0; padding: 4px 0 12px; border-top: 1px solid var(--hair); }
.acct-block > summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; list-style: none; }
.acct-block > summary::-webkit-details-marker { display: none; }
.acct-block > summary::marker { content: ""; }
.acct-title { font-size: 1.15rem; font-weight: 650; }
.acct-hint { flex: 1 1 14rem; color: var(--muted); font-weight: 450; }
.acct-block > summary::after { content: "▸"; margin-left: auto; font-size: 1.1rem; color: var(--ink); }
.acct-block[open] > summary::after { content: "▾"; }
.acct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: stretch; }
.acct-card { display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 16px; border: 1px solid var(--hair); border-radius: 16px; background: var(--sheet); }
.acct-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.acct-card h2, .acct-card h3 { margin: 0; font-size: 1.05rem; }
.acct-card p { margin: 0; flex: 1; }
.acct-card .button, .acct-card button { margin-top: auto; }
.acct-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: #d4ac5a; color: #1c1917; font-weight: 700; }
.acct-card .status { align-self: flex-start; background: var(--surface-alt); color: var(--ink); }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.export-actions .button { min-height: 40px; }
button.button:disabled,
button.secondary:disabled {
  opacity: 1 !important;
  background: transparent !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  border: 1.5px solid var(--ink);
  cursor: not-allowed;
}
@media (max-width: 639px) {
  .acct-cards { grid-template-columns: 1fr; }
  .export-actions .button { width: 100%; }
}
@media (max-width: 1023px) {
  .lane-edge { display: none; }
}
@media (min-width: 1024px) {
  .filters-desk { display: inline-flex; align-items: center; min-height: 36px; }
  .lane-edge { display: flex; justify-content: flex-end; margin: 0 0 8px; }
  .lane-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--sheet);
    color: var(--ink);
  }
  .lane-toggle:hover { background: var(--row-hover); color: var(--ink); }
  .lane-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(135deg);
  }
  .browse.filters-hidden .lane-chevron { transform: rotate(-45deg); }
  .lane-rail-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .browse.filters-hidden,
  .browse.with-inspector.filters-hidden { grid-template-columns: 44px minmax(0, 1fr); }
  .browse.filters-hidden > .facets {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 8px 4px;
    overflow: hidden;
  }
  .browse.filters-hidden .facet-form { display: none; }
  .browse.filters-hidden .lane-edge { width: 100%; margin: 0; justify-content: center; }
  .browse.filters-hidden .lane-toggle {
    width: 36px;
    height: auto;
    min-height: 148px;
    padding: 12px 0;
    flex-direction: column;
    gap: 10px;
  }
  .browse.filters-hidden .lane-rail-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--ink);
  }
}
@media (min-width: 1280px) {
  .browse.with-inspector.filters-hidden { grid-template-columns: 44px minmax(0, 1fr) 320px; }
}
button.facet-toggle {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
  width: 100%;
  padding: 4px 0;
  min-height: 36px;
}
button.facet-toggle:hover { background: transparent; color: var(--ink); }
.stock-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--hair); container-type: inline-size; }
.stock-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(4.5rem, 8rem) max-content max-content 36px;
  align-items: center;
  justify-items: start;
  gap: 8px 12px;
  min-height: 76px;
  height: auto;
  padding: 10px 8px;
  border-bottom: 1px solid var(--hair);
  background: transparent;
}
.stock-row:hover { background: var(--row-hover); }
.stock-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-alt);
  color: var(--mark-text);
  display: grid;
  place-items: center;
}
.stock-thumb img { width: 56px; height: 56px; object-fit: cover; display: block; }
.stock-copy { min-width: 0; }
.stock-title {
  display: block;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
}
.stock-set, .stock-condition, .stock-status { margin: 2px 0 0; text-align: left; color: var(--muted); }
.stock-status { margin: 0; }
.stock-money { justify-self: end; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.stock-money p { margin: 0; white-space: nowrap; }
.stock-money .k { color: var(--muted); font-size: 13px; font-weight: 600; margin-right: 4px; }
.stock-menu { position: relative; justify-self: end; }
.stock-menu > summary {
  list-style: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.stock-menu > summary::-webkit-details-marker { display: none; }
.stock-menu[open] > summary { background: var(--surface-alt); }
.stock-menu-panel {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 6;
  min-width: 168px;
  padding: 4px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.stock-menu-panel a,
.stock-menu-panel button {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.stock-menu-panel a:hover,
.stock-menu-panel button:hover { background: var(--row-hover); color: var(--ink); }
@container (max-width: 680px) {
  .stock-row {
    grid-template-columns: 56px minmax(0, 1fr) max-content 36px;
    grid-template-areas:
      "thumb copy copy menu"
      "thumb cond status menu"
      "money money money money";
    align-items: start;
  }
  .stock-thumb { grid-area: thumb; }
  .stock-copy { grid-area: copy; }
  .stock-condition { grid-area: cond; margin: 0; white-space: normal; }
  .stock-status { grid-area: status; justify-self: end; }
  .stock-money { grid-area: money; justify-self: stretch; display: flex; flex-wrap: wrap; gap: 8px 16px; text-align: left; }
  .stock-menu { grid-area: menu; }
}
@media (max-width: 720px) {
  .stock-row {
    grid-template-columns: 56px minmax(0, 1fr) max-content 36px;
    grid-template-areas:
      "thumb copy copy menu"
      "thumb cond status menu"
      "money money money money";
    align-items: start;
  }
  .stock-thumb { grid-area: thumb; }
  .stock-copy { grid-area: copy; }
  .stock-condition { grid-area: cond; margin: 0; white-space: normal; }
  .stock-status { grid-area: status; justify-self: end; }
  .stock-money { grid-area: money; justify-self: stretch; display: flex; flex-wrap: wrap; gap: 8px 16px; text-align: left; }
  .stock-menu { grid-area: menu; }
}
.body, .browse, .browse-main { min-width: 0; }
.toolbar { flex-wrap: wrap; }
.browse .table-scroll { max-width: 100%; overflow-x: auto; }
@media (min-width: 1280px) {
  .browse:not(.filters-hidden) .browse-main { min-width: 0; overflow-x: auto; }
}
a.stock-title,
.sidebar nav a,
.sidebar .nav-label,
button.facet-toggle,
button.facet-toggle > span {
  color: var(--ink);
}
html[data-theme="dark"] a.stock-title,
html[data-theme="dark"] .sidebar nav a,
html[data-theme="dark"] .sidebar .nav-label,
html[data-theme="dark"] button.facet-toggle,
html[data-theme="dark"] button.facet-toggle > span,
html[data-theme="dark"] .brand-lockup {
  color: #f5f5f4;
}
html[data-theme="dark"] .sidebar {
  background: #1c1b1a;
}
html[data-theme="dark"] .sidebar nav a[aria-current="page"],
html[data-theme="dark"] .sidebar nav a[aria-current="page"]:hover {
  background: #2a2927 !important;
  color: #f5f5f4;
}
html[data-theme="dark"] .logo-wordmark path[fill="currentColor"] {
  fill: #f5f5f4;
}
html[data-theme="dark"] .stock-set {
  color: #d6d3d1;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] a.stock-title,
  html[data-theme="system"] .sidebar nav a,
  html[data-theme="system"] .sidebar .nav-label,
  html[data-theme="system"] button.facet-toggle,
  html[data-theme="system"] button.facet-toggle > span,
  html[data-theme="system"] .brand-lockup {
    color: #f5f5f4;
  }
  html[data-theme="system"] .logo-wordmark path[fill="currentColor"] {
    fill: #f5f5f4;
  }
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px;
}
.nav-burger span { position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }
.hero-photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.hero-photos img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; scroll-snap-align: start; flex: none; }
.hero-empty { margin: 0; padding: 28px 16px; border-radius: 12px; background: var(--surface-alt); }
.detail-price { margin: 0; font-size: 22px; font-weight: 650; }
.detail-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--sheet); border-top: 1px solid var(--line); z-index: 40;
}
.detail-actions button, .detail-actions a { flex: 1; min-height: 44px; }
body:has(.detail-actions) .tabbar { display: none; }
body:has(.detail-actions) { padding-bottom: 72px; }
.task-sheet { border: 0; padding: 0; background: transparent; width: 100%; max-width: none; }
.task-sheet::backdrop { background: rgba(18, 18, 17, 0.55); }
.task-sheet form, .task-sheet .sale-box {
  position: fixed; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto;
  margin: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--sheet); color: var(--ink); border-radius: 16px 16px 0 0;
}
.sheet-actions { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--sheet); padding-top: 8px; }
.sheet-actions button { flex: 1; min-height: 48px; }
.qa-photo-first { min-height: 120px; }
.qa-thumbs { display: flex; gap: 8px; list-style: none; margin: 8px 0; padding: 0; overflow-x: auto; }
.qa-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
label.opt span { flex: 1; min-width: 0; }
@media (max-width: 1023px) {
  button.facet-toggle,
  .stock-menu-panel a,
  .stock-menu-panel button,
  .today-shortcut,
  .plain a,
  .text-link,
  .qa-top a,
  details.qa-fold > summary,
  .estimate-form > summary,
  .detail-fold > summary,
  a.stock-title {
    min-height: 44px;
  }
  .stock-menu-panel a, .stock-menu-panel button { min-height: 48px; }
  .stock-delete { color: var(--delete); margin-top: 8px; }
  .stock-menu[open]::before {
    content: ""; position: fixed; inset: 0; background: rgba(18, 18, 17, 0.55); z-index: 28;
  }
  .stock-menu-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30;
    min-width: 0; border-radius: 16px 16px 0 0;
    padding: 8px 8px calc(12px + env(safe-area-inset-bottom));
  }
  .stock-row {
    grid-template-columns: 48px minmax(0, 1fr) auto 44px;
    grid-template-areas: "thumb copy status menu" "thumb money money menu";
    min-height: 64px;
    padding: 4px 4px;
    gap: 2px 8px;
  }
  .stock-thumb, .stock-thumb img { width: 48px; height: 48px; }
  .stock-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.25;
  }
  .stock-set { display: none; }
  .stock-condition { display: none; }
  .stock-status { grid-area: status; margin: 0; justify-self: end; }
  .stock-money { grid-area: money; margin: 0; justify-self: start; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
  .stock-menu-panel button.stock-delete,
  .stock-menu-panel button.stock-delete:hover { color: var(--delete); }
  .stock-menu { grid-area: menu; }
  .filters-bar { position: sticky; top: 56px; z-index: 6; background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  .facets.is-sheet, button.filter-scrim, .app-drawer-panel, button.app-drawer-scrim, .task-sheet form {
    transition: none !important;
  }
}
.camera-frame { position: relative; width: min(100%, 420px); margin: 8px 0; }
.camera-frame video { width: 100%; max-height: 70vh; border-radius: 12px; background: #111; display: block; }
.card-guide {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72%; aspect-ratio: 5 / 7; max-height: 72%;
  border: 2px solid #d4ac5a; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
}
.card-guide::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  border-top: 1px dashed #d4ac5a;
}
.camera-frame { position: relative; width: min(100%, 420px); margin: 8px 0; }
.camera-frame video { width: 100%; max-height: 70vh; border-radius: 12px; background: #111; display: block; }
.card-guide {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72%; aspect-ratio: 5 / 7; max-height: 72%;
  border: 2px solid #d4ac5a; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
}
.card-guide::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  border-top: 1px dashed #d4ac5a;
}
form.qa-card { display: flex; flex-direction: column; }
form.qa-card > label.photo-drop { order: 2; }
form.qa-card > .qa-thumbs { order: 3; }
form.qa-card > .qa-title { order: 4; }
form.qa-card > .qa-prices { order: 5; }
form.qa-card > .qa-pickers { order: 6; }
form.qa-card > .qa-actions { order: 30; }
form.qa-card > input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.qa-prices { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.qa-prices label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.qa-prices input:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.qa-prices label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.qa-prices input:nth-of-type(2) { grid-column: 2; grid-row: 2; }
form.qa-card > input[type="file"] { opacity: 0; pointer-events: none; }
label.opt { display: grid !important; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: start; min-height: 44px; }
label.opt > input { grid-column: 1; grid-row: 1; }
label.opt > span { grid-column: 2; grid-row: 1; min-width: 0; }
.stock-menu-panel button.stock-delete { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--delete); }
@media (max-width: 1023px) {
  a.stock-title { display: block !important; line-height: 22px; max-height: 44px; overflow: hidden; white-space: normal; }
  .inspect-jump { display: none; }
  .thumb, .recent-thumb { width: 44px; height: 44px; }
  main a, main button:not(.filter-scrim):not(.app-drawer-scrim), .portfolio-note a, article.detail a, .pills a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
.scan-preview { width: min(100%, 420px); height: auto; border-radius: 12px; margin: 8px 0; background: var(--surface-alt); }
.match-box { margin-top: 12px; }
.match-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.match-pick { width: 100%; min-height: 44px; text-align: left; }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.match-actions .button, .match-actions a.button { min-height: 44px; }
@media (max-width: 639px) {
  .match-actions { flex-direction: column; }
  .match-actions .button, .match-actions a.button { width: 100%; }
}
