/* ============================================
   M37 Dashboard — styles
   Base: web-brand tokens (app-build/web-brand/templates/tokens.css).
   Per-client values below come from clients/m37-auction/brand-kit.md —
   never Stein defaults, never invented.
   ============================================ */

:root {
  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* Radius scale — --radius from brand-kit corner style */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);

  /* Readable-width caps (MANDATORY — do not remove) */
  --readable-text: 720px;
  --readable-ui: 900px;

  /* Gutters */
  --gutter-mobile: 12px; --gutter-tablet: 24px; --gutter-desktop: 32px;

  /* Brand — from brand-kit.md. Admin Settings > Branding overrides at runtime. */
  /* 2026-09-21 (Phillip): match the live site's theme, not the kit's promo-block red. The site
     is white ground, slate greys, near-black headings and Bootstrap-blue buttons/links. */
  --primary: #007BFF;
  --primary-dark: #0062CC;
  --accent: #E7F3FF;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --success: #27AE60;
  --error: #C0392B;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* the site sets no heading face */

  --sidebar-w: 240px;
  --topbar-h: 60px;
  /* Shell content cap. Wider than --readable-ui because a dashboard holds data
     tables, not prose — the sidebar already eats 240px. Prose inside stays
     capped at --readable-text via .page-intro and .card-text (see below), so
     the readable-width rule is honored where it actually matters: line length. */
  --shell-max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--text); font-weight: 700; }

.readable { max-width: var(--readable-text); margin: 0 auto; padding: 0 var(--gutter-desktop); width: 100%; }
.readable-wide { max-width: var(--readable-ui); margin: 0 auto; padding: 0 var(--gutter-desktop); width: 100%; }
@media (max-width: 900px) { .readable, .readable-wide { padding: 0 var(--gutter-tablet); } }
@media (max-width: 600px) { .readable, .readable-wide { padding: 0 var(--gutter-mobile); } }

button, a.btn, [role="button"] { min-height: 44px; min-width: 44px; }

/* ---------- Header ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-4);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.topbar-logo { height: 34px; width: auto; border-radius: var(--radius-sm); }
/* brand-kit.md: the wordmark exists only as black-on-transparent and must never be inverted,
   so on the blue bar it sits on a white chip instead. */
.topbar-logo { height: 36px; background: #fff; padding: 3px 8px; } /* black wordmark on a white chip; the kit forbids inverting the PNG */
.topbar-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-who { font-size: 13px; opacity: 0.85; white-space: nowrap; }
@media (max-width: 600px) { .topbar-who { display: none; } }
.hamburger { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.btn-ghost { background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: var(--radius-sm); padding: 6px 14px; font-family: var(--font); font-size: 13px; cursor: pointer; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ---------- Layout ---------- */
.layout { display: flex; flex: 1; min-height: 0; }

.sidebar {
  width: var(--sidebar-w);
  background: #F8FAFC;
  border-right: 1px solid var(--border);
  padding: var(--sp-5) 0;
  display: flex; flex-direction: column;
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  flex-shrink: 0;
}
.nav-list { list-style: none; flex: 1; }
.nav-list a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  color: var(--text); text-decoration: none; font-size: 14.5px;
  border-left: 3px solid transparent;
}
.nav-list a:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.nav-list a.active {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  font-weight: 600; color: var(--primary);
}

.sidebar-contact {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: var(--sp-4) var(--sp-5) 0;
}
.contact-head { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: var(--sp-2); }
.contact-link {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 13.5px; color: var(--primary); text-decoration: none;
  padding: var(--sp-2) 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font); text-align: left; width: 100%;
}
.contact-link:hover { color: var(--accent); }

.sidebar-scrim { display: none; }

/* ---------- Content ---------- */
.content { padding: var(--sp-6) var(--gutter-desktop); flex: 1; min-width: 0; max-width: var(--shell-max); margin: 0 auto; width: 100%; }
/* Text-only cards keep prose at a readable line length. Data cards (tables,
   scoreboards, forms) use the full width. */
.card-text { max-width: var(--readable-text); }
.page { display: none; }
.page.active { display: block; }
.page h1 { font-size: 26px; margin-bottom: var(--sp-2); }
.page-intro { color: var(--text-muted); margin-bottom: var(--sp-5); max-width: var(--readable-text); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.card h2 { font-size: 18px; margin-bottom: var(--sp-3); }
/* Overview cards: plain lists of what is here and what is next. */
.overview-list { margin: 0; padding-left: 1.3em; }
.overview-list li { margin-bottom: var(--sp-2); line-height: 1.55; }
.overview-list li:last-child { margin-bottom: 0; }
.overview-list a { color: var(--primary); font-weight: 600; text-decoration: none; }
.overview-list a:hover { text-decoration: underline; }

/* ---------- Overview welcome card ----------
   Spec: clients/m37-auction/project/welcome-card-handoff.md §3 (approved 2026-09-23).
   Every colour is a token above: --primary-dark falling into --text, lit by --primary,
   --accent doing the on-dark type. System stack, same as the rest of the dashboard. */
.welcome {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 34% 90% at 30% 40%, rgba(0, 123, 255, 0.22), transparent 70%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--text) 100%);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}
.welcome-shields { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.welcome-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.welcome-hello {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.welcome-hello strong { font-size: 58px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.welcome-date { margin-top: var(--sp-3); font-size: 13px; color: #CBD5E1; }
.welcome-tiles { display: flex; gap: var(--sp-3); flex-shrink: 0; }
.welcome-tiles[hidden] { display: none; }
.welcome-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  min-height: 74px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.welcome-tile:hover { background: rgba(255, 255, 255, 0.14); }
.welcome-tile-value { font-size: 20px; font-weight: 600; line-height: 1.2; }
.welcome-tile-cap { font-size: 11px; color: #CBD5E1; margin-top: 2px; }
@media (max-width: 900px) {
  .welcome-hello { font-size: 30px; }
  .welcome-hello strong { font-size: 44px; }
}
@media (max-width: 600px) {
  .welcome { padding: var(--sp-5); }
  .welcome-main { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .welcome-hello { font-size: 26px; }
  .welcome-hello strong { font-size: 36px; }
  .welcome-tiles { width: 100%; }
  .welcome-tile { flex: 1 1 0; width: auto; }
}

.btn-primary {
  background: var(--primary); color: #fff; border: 0;
  border-radius: var(--radius-sm); padding: 12px 22px;
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Team page (staff + permissions) ---------- */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.card-head h2 { margin: 0; }

.invite-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.invite-form input, .invite-form select {
  flex: 1 1 160px; min-width: 0; padding: 10px 12px; font-family: var(--font); font-size: 14px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
.btn-inline { width: auto; flex: 0 0 auto; padding: 10px 18px; font-size: 14px; }
.invite-result:not(:empty) { margin-top: var(--sp-3); }
.invite-ok { background: color-mix(in srgb, var(--success) 8%, transparent); border-radius: var(--radius-sm); padding: var(--sp-3); }
.invite-ok p { margin: 0 0 var(--sp-2); font-size: 14px; }
.invite-link { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.invite-link code {
  flex: 1 1 240px; background: var(--surface); border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm); padding: 9px 11px; font-size: 12.5px; word-break: break-all;
}
.invite-err { color: var(--error); font-size: 13.5px; margin-top: var(--sp-2); }
.fine { font-size: 12.5px; color: var(--text-muted); margin-top: var(--sp-3); line-height: 1.5; }
.login-help { text-align: center; }

.team-row { border-top: 1px solid rgba(0,0,0,0.08); padding: var(--sp-4) 0; }
.team-row:first-child { border-top: 0; padding-top: 0; }
.team-row.is-off { opacity: 0.55; }
.team-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.team-name { font-weight: 700; font-size: 15px; }
.team-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.team-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.role-select, .perm-select {
  padding: 8px 10px; font-family: var(--font); font-size: 13px; color: var(--text);
  border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm); background: var(--surface);
}
.perm-select.is-override { border-color: var(--accent); border-width: 2px; font-weight: 600; }
.tag-off {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;
  background: rgba(0,0,0,0.08); color: var(--text-muted); padding: 2px 7px; border-radius: 999px; vertical-align: middle;
}
.btn-danger {
  background: none; border: 1px solid var(--error); color: var(--error);
  border-radius: var(--radius-sm); padding: 8px 14px; font-family: var(--font); font-size: 13px; cursor: pointer;
}
.btn-danger:hover { background: color-mix(in srgb, var(--error) 10%, transparent); }
.btn-link {
  background: none; border: 0; color: var(--primary); text-decoration: underline;
  font-family: var(--font); font-size: 13px; cursor: pointer; padding: 0; min-height: 0; min-width: 0;
}
.invite-pending {
  margin-top: var(--sp-2); font-size: 13px; color: var(--text-muted);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: var(--radius-sm); padding: 8px 11px;
  display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap;
}
.team-perms { margin-top: var(--sp-3); }
.team-perms summary { cursor: pointer; font-size: 13px; color: var(--primary); font-weight: 600; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3); }
.perm { display: flex; flex-direction: column; gap: 4px; }
.perm-name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }

/* Access levels grid (team.js), laid out like the Dinks & Dingers Team page.
   Scrolls sideways inside its card on a phone; the level column stays put. */
.levels-intro { margin: 0 0 var(--sp-4); font-size: 15px; color: var(--text-muted); }
.levels-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--primary); }
.levels-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.levels-table th, .levels-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.levels-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted);
  font-weight: 700; line-height: 1.3; min-width: 84px; max-width: 110px; background: var(--accent);
}
.levels-table th .lv-col-icon { font-size: 14px; margin-right: 5px; letter-spacing: 0; }
.levels-table th.lv-name-head, .levels-table td.lv-name-cell { text-align: left; }
.levels-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.levels-table th:first-child, .levels-table td.lv-name-cell { position: sticky; left: 0; z-index: 1; }
.levels-table td.lv-name-cell { background: var(--surface); }
.levels-table input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }
.lv-name-cell { min-width: 170px; }
.lv-name {
  display: block; width: 100%; max-width: 190px; padding: 7px 9px; font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--text);
  border: 1px solid #94A3B8; border-radius: var(--radius-sm); background: var(--surface);
}
.lv-count { display: block; margin-top: 5px; font-size: 13px; color: var(--text-muted); }
.lv-view {
  display: block; width: max-content; margin: 6px auto 0; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); background: var(--surface);
}
.lv-delete { color: var(--error); }
.level-add { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin-top: var(--sp-4); }
.level-add input {
  flex: 0 1 300px; min-width: 0; padding: 10px 12px; font-family: var(--font); font-size: 14px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
.level-add .fine { margin: 0; }
.levels-status { min-height: 18px; }
.view-only-note {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13.5px; margin-bottom: var(--sp-4);
}
@media (max-width: 600px) {
  .invite-form input, .invite-form select, .btn-inline { flex: 1 1 100%; }
  .team-head { flex-direction: column; }
}

/* ---------- Footer ---------- */
.footer { padding: var(--sp-5); text-align: center; font-size: 12.5px; color: var(--text-muted); }
.stealth-link { color: inherit; text-decoration: none; }

/* ---------- Login page ---------- */
.login-body { justify-content: center; align-items: center; padding: var(--sp-4); }
.login-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border-top: 5px solid var(--primary);
  box-shadow: var(--shadow-lg);
  max-width: 420px; width: 100%; padding: var(--sp-7) var(--sp-6);
  text-align: center;
}
.login-logo { max-height: 60px; max-width: 220px; margin-bottom: var(--sp-4); }
.login-card h1 { font-size: 22px; margin-bottom: var(--sp-2); }
.login-sub { color: var(--text-muted); font-size: 14px; margin-bottom: var(--sp-5); }
.login-card input {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font);
  border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm);
  margin-bottom: var(--sp-3);
}
.login-err { color: var(--error); font-size: 13px; min-height: 18px; margin-bottom: var(--sp-2); }
.login-ok { color: var(--text); font-size: 13.5px; line-height: 1.5; min-height: 18px; margin-bottom: var(--sp-3); }
.login-forgot { margin-top: var(--sp-3); text-align: center; }
.login-card [hidden] { display: none !important; }
.login-foot { position: fixed; bottom: var(--sp-4); left: 0; right: 0; text-align: center; font-size: 12px; color: var(--text-muted); }

/* ---------- Secure key-drop widget ---------- */
.sdw-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 2px solid #fff;
  font-size: 22px; cursor: pointer; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s, box-shadow 0.12s;
}
.sdw-fab:hover { transform: translateY(-2px); }
.sdw-fab-tip {
  position: fixed; right: 84px; bottom: 33px; z-index: 9000;
  background: var(--primary); color: #fff; font-size: 12.5px;
  padding: 6px 12px; border-radius: var(--radius-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
  font-family: var(--font);
}
.sdw-fab:hover + .sdw-fab-tip { opacity: 1; }
.sdw-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.sdw-overlay.open { display: flex; }
.sdw-modal {
  background: var(--surface); border-top: 5px solid var(--primary);
  border-radius: var(--radius); max-width: 480px; width: 100%;
  padding: 24px 26px; font-family: var(--font); color: var(--text);
  box-shadow: var(--shadow-lg); position: relative;
}
.sdw-modal h3 { font-size: 19px; margin: 0 0 8px; }
.sdw-modal p { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0 0 14px; }
.sdw-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 20px; color: var(--text-muted); cursor: pointer; line-height: 1; min-height: 0; min-width: 0; }
.sdw-modal input, .sdw-modal textarea {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm); padding: 11px 13px; font-family: inherit;
  font-size: 14px; margin-bottom: 10px;
}
.sdw-modal textarea { min-height: 110px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.sdw-send {
  width: 100%; padding: 12px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--primary); color: #fff; font-family: var(--font);
  font-size: 15px; font-weight: 600;
}
.sdw-send:hover { background: var(--primary-dark); }
.sdw-send:disabled { opacity: 0.6; cursor: wait; }
.sdw-done { display: none; text-align: center; padding: 10px 0 4px; }
.sdw-done.show { display: block; }
.sdw-done .big { font-size: 34px; }
.sdw-done p { color: var(--success); font-size: 14px; margin-top: 8px; }
.sdw-err { display: none; color: var(--error); font-size: 12.5px; margin: -2px 0 10px; line-height: 1.4; }
.sdw-err.show { display: block; }
.sdw-fine { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.45; }

/* ---------- Leave a note + Staff Notes (2026-10-15; public/notes.js) ---------- */
.contact-note { font-weight: 600; }
.contact-sub { font-size: 12.5px; color: var(--text-muted); margin: -6px 0 var(--sp-2); line-height: 1.4; }
.contact-link[hidden], .sdw-fab[hidden], .nav-count[hidden] { display: none; }
.nav-count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.5;
}
.note-modal textarea { font-family: var(--font); font-size: 16px; line-height: 1.45; min-height: 150px; margin-bottom: 0; }
.note-mic-wrap { margin-bottom: 10px; }
.note-modal .lc-mic-wrap textarea { padding-right: 58px; }
.note-modal .lc-mic { width: 44px; height: 44px; font-size: 20px; }
.note-another { margin-top: 14px; }
.notes-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.notes-filter {
  border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: 6px 14px; font: 500 13.5px var(--font); cursor: pointer;
}
.notes-filter span { color: var(--text-muted); margin-left: 4px; }
.notes-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.notes-filter.active span { color: #fff; }
.note-card { max-width: var(--readable-ui); }
.note-card.is-new { border-left: 4px solid var(--primary); }
.note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--sp-3); margin-bottom: var(--sp-2); }
.note-when { color: var(--text-muted); font-size: 13.5px; }
.note-chip { margin-left: auto; font-size: 12.5px; background: var(--accent); color: var(--primary-dark); border-radius: 999px; padding: 2px 10px; }
.note-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.55; margin: 0 0 var(--sp-2); }
.note-details { margin-top: 0; }
.note-warn { color: var(--error); font-size: 13px; margin: var(--sp-2) 0 0; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.note-status { display: flex; align-items: center; gap: var(--sp-2); font-size: 13.5px; color: var(--text-muted); }
.note-status select {
  min-height: 44px; padding: 8px 10px; border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm);
  font: 14px var(--font); background: var(--surface); color: var(--text);
}
.note-marked { margin-top: var(--sp-2); }
.note-copy-fallback {
  width: 100%; min-height: 160px; margin-top: var(--sp-3); padding: 10px; box-sizing: border-box;
  font: 13px ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
@media (max-width: 600px) {
  #noteOverlay { padding: 0; align-items: stretch; }
  .note-modal { max-width: none; border-radius: 0; padding: 22px 18px; overflow-y: auto; }
  .note-chip { margin-left: 0; }
  .note-status, .note-actions .lc-btn { flex: 1 1 100%; }
  .note-status select { flex: 1; }
}

/* ---------- Responsive: sidebar → hamburger drawer ---------- */
@media (max-width: 900px) {
  .hamburger { display: block; }
  .sidebar {
    position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
    transform: translateX(-100%); transition: transform 0.2s ease;
    z-index: 200; box-shadow: var(--shadow-lg); height: auto;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim {
    display: none; position: fixed; inset: var(--topbar-h) 0 0 0;
    background: rgba(0,0,0,0.35); z-index: 150;
  }
  .sidebar-scrim.show { display: block; }
  .content { padding: var(--sp-5) var(--gutter-tablet); }
}
@media (max-width: 600px) {
  .content { padding: var(--sp-4) var(--gutter-mobile); }
  #lc-review-card .card-head h2 { flex: 1 1 100%; }
  .topbar-title { display: none; }
  .sdw-fab { right: 14px; bottom: 14px; }
  .topbar-title { font-size: 15px; }
}

/* ---------- Listing Creator page (pulled in 2026-09-18 from the standalone
   listing-creator build; re-tokened onto the shell's variables per the scaffold's
   Phase 3.5). Everything is scoped under #page-listings / .lc-* so it cannot leak
   into the other pages. ---------- */
#page-listings .lc-status { font-size: 13px; color: var(--text-muted); margin: -12px 0 var(--sp-4); }
#page-listings .lc-status.ok { color: var(--success); }
#page-listings .lc-status.bad { color: var(--error); }
.lc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.lc-grid > *, .lc-lot > *, .lc-row > * { min-width: 0; }
.lc-card { margin-bottom: var(--sp-5); }
.lc-form label, .lc-lot label { display: block; font-size: 13px; color: var(--text-muted); margin: var(--sp-2) 0; }
.lc-form input, .lc-form select, .lc-form textarea, .lc-lot input, .lc-lot select, .lc-lot textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; margin-top: 3px; padding: 8px 10px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm);
}
.lc-form label[hidden] { display: none; }
/* The small print under a label sits on its own line, so it never reads as part of the label (Jay, 9/29). */
.lc-form label > .fine { display: block; margin: 2px 0 var(--sp-2); }
.lc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--sp-3); }
#page-listings .fine, #page-listings .lc-status, #page-listings .lc-lot-status,
#page-listings .lc-current, #page-listings .lc-chip, #page-listings .lc-thumb-why {
  min-width: 0; max-width: 100%; overflow-wrap: anywhere;
}
#lc-progress, #lc-queue { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.lc-row[hidden] { display: none; } /* the grid above outranks the hidden attribute; a sent batch's upload form must go */
/* The Product ID boxes on a review card, and the line that shows the ID as the site will print it. */
.lc-product-id { margin: var(--sp-3) 0; }
.lc-product-id .lc-pid-preview { margin: 4px 0 0; font-family: ui-monospace, Consolas, Menlo, monospace; }
.lc-product-id .lc-no-sticker { display: block; margin-top: 6px; font-size: 13px; }
.lc-description-details, .lc-update-details, .lc-measurement-details { margin: var(--sp-3) 0; padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lc-description-details summary, .lc-update-details summary, .lc-measurement-details summary { cursor: pointer; font-weight: 600; }
.lc-update-details[hidden] { display: none; }
.lc-update-thumbs button { padding: 2px; }
.lc-mic-wrap { position: relative; }
.lc-mic-wrap textarea { padding-right: 48px; }
.lc-mic { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; min-width: 0; min-height: 0; border: 1px solid rgba(0,0,0,0.15); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; }
.lc-mic.recording { background: var(--primary); color: #fff; animation: lc-pulse 1s infinite; }
@keyframes lc-pulse { 50% { opacity: .55; } }
.lc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: var(--sp-3); }
.lc-btn { background: var(--surface); border: 1px solid var(--primary-dark); color: var(--primary-dark); border-radius: var(--radius-sm); padding: 10px 16px; font: 600 14px var(--font); cursor: pointer; }
.lc-btn.ghost { border-color: rgba(0,0,0,0.15); color: var(--text-muted); }
.lc-btn:disabled, .btn-primary.btn-inline:disabled, .btn-inline.is-off { opacity: .5; cursor: not-allowed; }
.lc-picker { padding: 9px 10px; border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm); font: inherit; background: var(--surface); }
.lc-file-label input { display: none; }
/* One line under the downloads (the failsafe behind Upload to auction site), with the by-hand
   steps folded into it as a small inline toggle rather than a box of their own (Phillip, 9/30). */
.lc-failsafe { margin: var(--sp-2) 0 var(--sp-3); }
.lc-howto { display: inline; font-size: 13px; color: var(--text-muted); }
.lc-howto summary { display: inline; cursor: pointer; color: var(--primary); font-weight: 600; margin-left: 4px; }
.lc-howto ol { margin: var(--sp-2) 0 0 var(--sp-4); padding: 0; }
.lc-howto li { margin: 4px 0; }
.lc-dropzone { border: 2px dashed transparent; border-radius: var(--radius); padding: var(--sp-2); margin: 0 calc(-1 * var(--sp-2)); transition: border-color 0.15s, background 0.15s; }
.lc-dropzone.over { border-color: var(--primary); background: var(--accent); }
.lc-drop-hint { display: none; margin-left: var(--sp-2); }
@media (hover: hover) and (pointer: fine) {
  .lc-dropzone { border-color: var(--border); }
  .lc-drop-hint { display: inline; }
}
.lc-file-btn { display: inline-block; cursor: pointer; }
/* Rapid camera (2026-10-02): a viewfinder in the lot card; each shutter tap drops a photo into the lot. */
.lc-photo-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--sp-2); scroll-margin-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + var(--sp-3)); }
.lc-form .lc-photo-actions .lc-file-label { display: flex; margin: 0; }
.lc-photo-actions .lc-file-btn, .lc-photo-actions .lc-cam-open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; line-height: 1.25; }
.lc-photo-actions .lc-drop-hint { align-self: center; margin: 0; }
.lc-photo-actions .lc-cam-open[hidden] { display: none; }
@media (max-width: 600px) {
  .lc-photo-actions { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
  .lc-form .lc-photo-actions .lc-file-label, .lc-photo-actions .lc-cam-open { flex: 1 1 0; min-width: 0; }
  .lc-photo-actions .lc-file-btn { width: 100%; padding-inline: 8px; }
  .lc-photo-actions .lc-cam-open { padding-inline: 8px; }
  .lc-photo-actions .lc-drop-hint { flex-basis: 100%; }
}
.lc-cam { margin: var(--sp-2) 0; }
.lc-cam-view { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.lc-cam-view video { width: 100%; max-height: 62vh; object-fit: contain; background: #000; }
.lc-cam-view.shot::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; animation: lc-shot 0.18s ease-out 1; pointer-events: none; }
@keyframes lc-shot { from { opacity: 0.85; } to { opacity: 0; } }
.lc-cam-count { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,0.65); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; padding: 2px 10px; border-radius: 999px; }
.lc-cam-bar { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); padding: var(--sp-2) 0; }
.lc-cam-done { flex: 0 0 auto; min-height: 44px; padding: 0 var(--sp-4); font: inherit; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid rgba(0,0,0,0.25); border-radius: var(--radius-sm); cursor: pointer; }
.lc-cam-shutter { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; border: 5px solid var(--primary); background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 40px var(--primary); cursor: pointer; touch-action: manipulation; }
.lc-cam-shutter:active { transform: scale(0.94); }
.lc-cam-shutter:disabled { opacity: 0.4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .lc-cam-view.shot::after { animation: none; opacity: 0; } }
.lc-current { margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3); background: var(--accent); border: 1px solid var(--primary); border-radius: var(--radius-sm); font-size: 13px; }
/* A batch just started: the line flashes once and leads with what to do next (Jay, 9/29). */
.lc-current.is-new { animation: lc-flash 1.8s ease-out 1; }
@keyframes lc-flash { 0%, 35% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.lc-started { font-weight: 700; font-size: 14px; color: color-mix(in srgb, var(--success) 70%, black); margin-bottom: var(--sp-1); }
.btn-primary.btn-inline.is-done:disabled { opacity: 1; cursor: default; background: color-mix(in srgb, var(--success) 70%, black); }
@media (prefers-reduced-motion: reduce) { .lc-current.is-new { animation: none; } }
.lc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-2) 0; }
.lc-thumbs img, .lc-lot-photos img { width: 72px; height: 72px; object-fit: cover; border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius-sm); background: var(--surface); }
.lc-thumbs .n, .lc-lot-photos .n { position: relative; display: inline-block; line-height: 0; }
.lc-thumbs .n::after, .lc-lot-photos .n::after { content: attr(data-n); position: absolute; left: 3px; top: 3px; background: var(--text); color: #fff; font-size: 10px; line-height: 1.4; white-space: nowrap; padding: 1px 4px; border-radius: 3px; }
.lc-lots { display: flex; flex-direction: column; gap: var(--sp-3); }
.lc-lot { display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-3); background: var(--surface); border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius); padding: var(--sp-3); }
.lc-lot.approved { border-color: var(--success); }
.lc-lot.failed { border-color: var(--error); }
.lc-lot.lc-uploading { border-style: dashed; } /* this page's upload still on its way (Next item) */
#lc-uploads:empty { display: none; }
#lc-queue:empty { display: none; }
.lc-lot-photos { display: flex; flex-wrap: wrap; gap: 4px; align-content: start; }
.lc-lot-photos img.hero { width: 152px; height: 152px; }
.lc-lot-photos .n.out img { opacity: .5; }
.lc-lot-photos .n.pick { cursor: pointer; border-radius: var(--radius-sm); }
.lc-lot-photos .n.pick:hover img { outline: 2px solid var(--primary); outline-offset: 1px; }
.lc-lot-photos .n.pick:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lc-lot-photos.busy { opacity: .6; pointer-events: none; }
.lc-thumb-why { flex: 1 1 100%; margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.lc-thumb-why .btn-link { font-size: 12px; }
.lc-lot label.lc-check { display: inline-flex; align-items: center; gap: 6px; }
.lc-lot label.lc-check input { width: auto; display: inline; margin: 0; }
.lc-count { float: right; font-variant-numeric: tabular-nums; }
.lc-count.over { color: var(--error); font-weight: 700; }
.lc-gates, .lc-flags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.lc-chip { font-size: 12px; padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.12); background: var(--bg); color: var(--text-muted); }
.lc-chip.block { border-color: var(--error); color: var(--error); background: color-mix(in srgb, var(--error) 8%, transparent); }
.lc-chip.warn { border-color: #B7791F; color: #B7791F; background: #fffbeb; }
.lc-chip.ok { border-color: var(--success); color: var(--success); background: color-mix(in srgb, var(--success) 8%, transparent); }
.lc-chip.human { border-color: var(--primary-dark); color: var(--primary-dark); background: var(--accent); font-weight: 600; }
.lc-lot-status { font: 600 13px var(--font-display); text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.lc-push { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 var(--sp-2); }
.lc-push.ok { color: var(--success); }
.lc-push.bad { color: var(--error); }
.lc-push .btn-link { margin-left: 6px; font-size: 12.5px; }
.lc-import { border-top: 1px solid rgba(0,0,0,0.08); margin: var(--sp-3) 0; padding-top: var(--sp-3); }
.lc-import h3 { font: 600 15px var(--font-display); margin: 0 0 4px; }
.lc-import-form { align-items: flex-end; }
.lc-import-form label { font-size: 12.5px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.lc-import-form input, .lc-import-form select { font: inherit; padding: 6px 8px; border: 1px solid rgba(0,0,0,0.18); border-radius: var(--radius-sm); background: var(--surface); }
/* iOS Safari sizes a datetime-local input to its own text and will not shrink it to the grid
   cell unless the native appearance is dropped and a width is set; the fields then ran past
   the card's edge on an iPhone in portrait (2026-10-08). */
.lc-import-form input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; }
.lc-import-form input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; }
@media (max-width: 600px) {
  #page-listings form.lc-import-form { grid-template-columns: minmax(0, 1fr); } /* must outrank #page-listings .lc-row, which comes later in this file */
  .lc-import-form #lc-import-go { grid-column: 1 / -1; width: 100%; padding: 14px 18px; font-size: 15px; }
}
#lc-import-note.ok { color: var(--success); }
#lc-import-note.bad, #lc-import-event.bad { color: var(--error); }
.lc-preview { grid-column: 1 / -1; width: 100%; height: 520px; border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius-sm); background: #fff; }
@media (max-width: 900px) {
  .lc-grid { grid-template-columns: minmax(0, 1fr); }
  .lc-lot { grid-template-columns: 1fr; }
  .lc-lot-photos .n:first-child { flex: 1 1 100%; }
  .lc-lot-photos img.hero { width: 100%; height: auto; max-height: 260px; object-fit: contain; }
}

/* ---- Product ID Standard reference page (static sheet; tape-yellow chips for codes) ---- */
.pid{--pid-paper:#fff;--pid-ink:#1d2228;--pid-muted:#5b6570;--pid-line:#d9dde2;--pid-tape:#f2c230;--pid-flag:#b4462b;color:var(--pid-ink);font-size:15px;line-height:1.55}
.pid .sheet{max-width:820px;background:var(--pid-paper);border:1px solid var(--pid-line);border-radius:6px;padding:28px clamp(16px,4vw,40px);display:grid;gap:28px}
.pid header{display:grid;gap:6px;border-bottom:3px solid var(--pid-tape);padding-bottom:18px}
.pid .eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--pid-muted)}
.pid h1{font-size:clamp(26px,5vw,36px);line-height:1.1;margin:0;text-wrap:balance}
.pid h2{font-size:18px;line-height:1.2;margin:0 0 10px;text-wrap:balance}
.pid p{margin:0;max-width:68ch}
.pid .job{font-size:17px}
.pid code{font:600 14px/1 ui-monospace,Menlo,monospace;background:var(--pid-tape);color:#1d2228;padding:3px 6px;border-radius:3px;white-space:nowrap}
.pid .format{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font:600 clamp(18px,4vw,26px)/1 ui-monospace,Menlo,monospace}
.pid .format span{background:var(--pid-tape);color:#1d2228;padding:10px 14px;border-radius:4px}
.pid .format i{font-style:normal;color:var(--pid-muted);font-size:13px}
.pid ul{margin:0;padding-left:20px;display:grid;gap:6px}
.pid .wrap{overflow-x:auto}
.pid table{border-collapse:collapse;width:100%;font-size:14px}
.pid th,.pid td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--pid-line);vertical-align:top}
.pid th{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--pid-muted)}
.pid td.old{font-family:ui-monospace,Menlo,monospace;font-size:13px;color:var(--pid-muted)}
.pid .br{color:var(--pid-flag)}
.pid .two{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.pid .two>*{min-width:0}
.pid footer{border-top:1px solid var(--pid-line);padding-top:14px;color:var(--pid-muted);font-size:13px;display:flex;flex-wrap:wrap;gap:6px 20px}
/* Listing workflow: compact decisions, mobile-safe controls, recovery last. */
#page-listings { --lc-card-line: color-mix(in srgb, var(--text) 12%, transparent); }
#page-listings [hidden] { display: none !important; }
#lc-review-card, #lc-batch-card { scroll-margin-top: calc(var(--topbar-h) + 12px); }
#page-listings .lc-workflow { display: flex; gap: 8px; margin: 0 0 var(--sp-4); }
#page-listings .lc-step { flex: 1; min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid var(--lc-card-line); border-radius: 999px; color: var(--primary-dark); background: var(--surface); font: 600 14px var(--font); cursor: pointer; }
#page-listings .lc-step.active { background: var(--primary-dark); color: #fff; }
#page-listings .lc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
#page-listings #lc-batch-card { padding: var(--sp-3) var(--sp-4); }
#page-listings #lc-batch-card h2 { font-size: 18px; }
#page-listings #lc-batch-setup > summary { cursor: pointer; color: var(--primary-dark); font-size: 14px; padding: 8px 0; }
#page-listings .lc-capture-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#page-listings .lc-help { margin: 8px 0; }
#page-listings .lc-help > summary { cursor: pointer; font-size: 13px; color: var(--text-muted); padding: 8px 0; }
#page-listings .lc-review-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#page-listings .lc-review-tools[hidden] { display: none; }
#page-listings .lc-review-tools button { min-height: 44px; font-size: 13px; }
#page-listings .lc-review-head { align-items: start; }
#page-listings .lc-lot { grid-template-columns: 100px minmax(0,1fr); padding: 16px; gap: 16px; }
#page-listings .lc-lot-body { min-width: 0; }
#page-listings .lc-review-title { font: 600 18px/1.35 var(--font-display); margin: 6px 0; overflow-wrap: anywhere; }
#page-listings .lc-review-essential { margin: 0 0 6px; }
#page-listings .lc-review-description { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 4px 0 8px; overflow-wrap: anywhere; }
#page-listings .lc-lot-photos { min-width: 0; gap: 4px; }
#page-listings .lc-lot-photos img.hero { width: 100px; height: 100px; object-fit: cover; }
#page-listings .lc-lot-photos .n:first-child { flex: 0 0 100%; }
#page-listings .lc-lot-photos .n:not(:first-child) img { width: 44px; height: 44px; }
#page-listings .lc-lot-photos:not(.expanded) .n:nth-child(n+4) { display: none; }
#page-listings .lc-lot-photos .lc-thumb-why { font-size: 11px; overflow-wrap: anywhere; }
#page-listings .lc-lot-photos:not(.expanded) .lc-thumb-why { display: none; }
#page-listings .lc-photos-toggle { padding: 8px 0; font-size: 12px; min-height: 44px; }
#page-listings .lc-review-item-actions { margin: 8px 0; gap: 6px; }
#page-listings .lc-review-item-actions button { min-height: 44px; padding: 9px 12px; font-size: 13px; }
#page-listings .lc-review-item-actions .approve { margin-left: auto; background: var(--primary-dark); color: #fff; }
#page-listings .approved .lc-review-item-actions .approve { background: var(--surface); color: var(--primary-dark); }
#page-listings .lc-select-label { display: flex; gap: 7px; align-items: center; min-height: 44px; font-size: 12px; margin: 0; }
#page-listings .lc-select-label input { width: 18px; height: 18px; margin: 0; }
#page-listings .lc-edit-panel { margin: 8px 0; border-top: 1px solid var(--lc-card-line); }
#page-listings .lc-edit-panel > summary, #page-listings .lc-history > summary { cursor: pointer; padding: 9px 0; color: var(--text-muted); font-size: 13px; }
#page-listings .lc-edit-panel[open] { padding-top: 8px; }
#page-listings .lc-history { margin: 0; }
#page-listings .lc-chip, #page-listings .lc-push, #page-listings .lc-meta, #page-listings .lc-current, #page-listings .lc-failsafe, #page-listings #lc-import-note { max-width: 100%; overflow-wrap: anywhere; }
#page-listings .lc-row { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
#page-listings .lc-row > *, #page-listings .lc-form > *, #page-listings input, #page-listings select, #page-listings textarea { min-width: 0; max-width: 100%; }
#page-listings .lc-preview { width: 100%; max-width: 100%; height: 480px; }
#page-listings .lc-recovery { border-top: 1px solid var(--lc-card-line); margin-top: var(--sp-4); padding-top: var(--sp-3); }
#page-listings .lc-recovery > summary { cursor: pointer; font-size: 14px; color: var(--text-muted); min-height: 44px; }
#page-listings .lc-import { padding: var(--sp-3); background: var(--accent); border-radius: var(--radius); margin-top: var(--sp-4); }
#page-listings #lc-import-go { min-height: 46px; }
#page-listings .lc-unsaved-note { font-size: 12px; color: #8a651d; margin: 6px 0; }
#page-listings .lc-lot.dirty { border-style: dashed; }
@media (max-width: 600px) {
  #page-listings .card { padding: 16px; }
  #page-listings #lc-batch-card { padding: 14px 16px; }
  #page-listings .lc-lot { grid-template-columns: 72px minmax(0,1fr); gap: 10px; padding: 12px; }
  #page-listings .lc-lot-photos img.hero { width: 72px; height: 72px; }
  #page-listings .lc-lot-photos .n:not(:first-child) img { width: 32px; height: 32px; }
  #page-listings .lc-review-title { font-size: 16px; }
  #page-listings .lc-review-description { font-size: 13px; }
  #page-listings .lc-review-item-actions .approve { margin-left: 0; }
  #page-listings .lc-review-head { flex-wrap: wrap; gap: 8px; }
  #page-listings .lc-lot input, #page-listings .lc-lot select, #page-listings .lc-lot textarea, #page-listings .lc-form input, #page-listings .lc-form select, #page-listings .lc-form textarea, #page-listings .lc-import-form input, #page-listings .lc-import-form select { font-size: 16px; }
  #page-listings .lc-edit-panel[open] { margin-left: -82px; width: calc(100% + 82px); margin-top: 16px; }
  #page-listings .lc-lot-status { font-size: 11px; letter-spacing: .2px; }
  #page-listings .lc-import { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- Listings by Staff (public/staff-report.js) ---------- */
.sr-wrap { overflow-x: auto; }
.sr-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.sr-table th, .sr-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.sr-table th:first-child, .sr-table td:first-child { text-align: left; white-space: normal; }
.sr-table th { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.sr-table tfoot td { font-weight: 700; border-bottom: 0; }
.sr-range { font-size: 13.5px; color: var(--text-muted); font-weight: 400; margin-left: var(--sp-2); }
@media (max-width: 600px) {
  .sr-table { font-size: 14px; }
  .sr-table th, .sr-table td { padding: 8px 6px; }
  .sr-table th { white-space: normal; font-size: 11.5px; }
  .sr-table th:first-child, .sr-table td:first-child { padding-left: 0; }
  #page-staff-report .card-head { flex-wrap: wrap; }
  .sr-range { display: block; margin: 2px 0 0; }
}

/* Also credit on a review card (2026-10-16): "Listed by Jay · Also credit [Nobody else]", wrapping on a phone. */
#page-listings .lc-credit { margin-top: var(--sp-2); }
#page-listings .lc-credit label { display: inline; font-weight: inherit; }
#page-listings .lc-credit input { display: inline-block; width: 14em; max-width: 100%; padding: 2px 6px; font-size: 13px; }
