/* ============================================
   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-10-19 (Lisa): U-M navy, white and black, the colors of the m37auction.com home page
     design Jay approved on 2026-10-08 (read live 2026-10-19). Replaces the 2026-09-21 match to
     the site's old Bootstrap blue (#007BFF). Bright blue is kept only for focus rings. */
  --primary: #00274C;
  --primary-dark: #001B35;
  --accent: #E8EEF5;
  --border: #DCE3EB;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --text: #111418;
  --text-muted: #46505C;
  --success: #27AE60;
  --error: #C0392B;
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* condensed, like the M-37 road sign */

  --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); }

/* Line icons in the side menu (2026-10-19), drawn inline in index.html in place of emoji. */
.ico { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-list a .ico { color: var(--text-muted); }
.nav-list a.active .ico { color: inherit; }

.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);
}
.ini-box { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.ini-box input {
  width: 4.5em; padding: 8px 8px; font-family: var(--font); font-size: 13px; font-weight: 600; text-transform: uppercase;
  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; }
/* The Stein Solutions credit links to our site, and looks like a link at rest (2026-10-19). */
.footer-credit { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit:hover { color: var(--primary-dark); }

/* ---------- 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; }
/* Pictures on a note (2026-11-03): the add button, what is going with the note, and the pictures on a sent one. */
.note-files { margin-bottom: 10px; }
.note-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.note-file-add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.note-file-add[hidden] { display: none; }
.note-file-input:focus-visible + .note-file-add { outline: 2px solid var(--primary); outline-offset: 2px; }
.note-file-hint { margin: 6px 0 0; }
.note-file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.note-file-list:not(:empty) { margin-top: 10px; }
.note-file { position: relative; width: 76px; height: 76px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.note-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-file.is-getting { display: grid; place-items: center; color: var(--text-muted); font-size: 20px; }
.note-file-remove {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; padding: 4px 4px 0 0;
  background: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: flex-end;
  color: #fff; font-size: 13px; line-height: 1;
}
.note-file-x { width: 24px; height: 24px; border-radius: 50%; background: rgba(15, 23, 42, .78); display: grid; place-items: center; }
.note-file-remove:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.note-file-msg:empty { display: none; }
.note-file-msg { margin: 8px 0 0; }
.note-reply-form .note-files, .mine-answer .note-files { margin: 8px 0 0; }
.note-reply .note-pictures, .mine-reply .note-pictures { margin: 8px 0 0; }
.note-pictures { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.note-pictures a { display: block; width: 120px; height: 90px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.note-pictures a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.note-pictures img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-item .note-pictures a { width: 88px; height: 66px; }
.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);
}
/* Replies (2026-10-23, Phil): the reply on a card, the small box to write one, Your notes in the
   Leave a note box, and the new-reply count and dot. */
.note-reply, .note-reply-form { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.note-reply-head { margin: 0 0 4px; font-size: 13.5px; color: var(--text-muted); }
.note-reply-head strong { color: var(--text); }
.note-reply-body {
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; margin: 0;
  padding: 10px 12px; background: var(--accent); border-radius: var(--radius-sm);
}
.note-reply-fine { margin-top: var(--sp-2); }
.note-reply-head .note-reply-edit { margin-left: 4px; padding: 8px 6px; margin-block: -8px; font-size: 13.5px; }
.note-reply-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.note-reply-form textarea {
  width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical; padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm); font: 15px/1.45 var(--font);
}
.note-reply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-2); }
.note-reply-email { display: flex; align-items: center; gap: 6px; font-size: 13.5px; margin-right: auto; cursor: pointer; }
.note-reply-email input { width: 18px; height: 18px; margin: 0; }
.note-reply-form [data-reply-err] { margin-top: var(--sp-2); }
.note-reply-form [hidden] { display: none; }
/* Conversations (2026-10-27, Phil): a card's replies and the person's answers, oldest first, then the
   reply box. An answer nobody has handled marks the card "New response". */
.note-thread { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); display: grid; gap: var(--sp-3); }
.note-thread .note-reply, .note-thread .note-reply-form { margin-top: 0; padding-top: 0; border-top: 0; }
.note-thread > .note-warn { margin: 0; }
.note-reply.is-answer .note-reply-body { background: var(--surface); border: 1px solid var(--border); }
.note-reply.is-answer.is-new .note-reply-body { box-shadow: inset 4px 0 0 var(--primary); }
.note-reply-more { justify-self: start; }
.note-card.has-response { border-left: 4px solid var(--primary); }
.note-new-response {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
}
.note-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
/* The box scrolls once Your notes is in it, so the close button stays pinned to its top. */
.note-modal .sdw-close {
  position: sticky; top: 0; float: right; z-index: 2; margin: -12px -14px 0 8px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}
.note-replies-line[hidden], .note-mine[hidden] { display: none; }
.note-modal .note-replies-line { margin: -6px 0 12px; }
.note-replies-jump {
  border: 0; background: var(--accent); color: var(--primary-dark); border-radius: var(--radius-sm);
  padding: 8px 12px; font: 600 13.5px var(--font); cursor: pointer; text-align: left; width: 100%;
}
.note-mine { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.note-mine h4 { font-size: 16px; margin: 0 0 4px; }
.note-mine-list { list-style: none; margin: 0; padding: 0; }
.mine-item { padding: var(--sp-3) 0; border-top: 1px solid var(--border); }
.mine-item:first-child { border-top: 0; padding-top: 0; }
.note-modal .mine-meta { font-size: 12.5px; margin: 0 0 4px; }
.mine-status { font-weight: 600; color: var(--text); }
.mine-item.is-fixed .mine-status { color: var(--success); }
.note-modal .mine-text {
  font-size: 14px; color: var(--text); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mine-reply { margin-top: var(--sp-2); padding: 10px 12px; background: var(--accent); border-radius: var(--radius-sm); }
.mine-reply.is-new { box-shadow: inset 4px 0 0 var(--primary); }
.note-modal .mine-reply-head { font-size: 12.5px; margin: 0 0 2px; }
.mine-reply-head strong { color: var(--text); }
.mine-new {
  display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700;
}
.note-modal .mine-reply-text { font-size: 14.5px; color: var(--text); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Your own answers under a note, and the box to write one (2026-10-27, Phil). */
.mine-reply.is-mine { background: var(--surface); border: 1px solid var(--border); }
.mine-answer-open { margin-top: var(--sp-2); }
.mine-answer { margin-top: var(--sp-3); }
.mine-answer textarea {
  width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical; padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: var(--radius-sm); font: 15px/1.45 var(--font);
}
.note-modal .mine-answer-fine { margin: 6px 0 0; }
.mine-answer [data-answer-err] { margin-top: var(--sp-2); }
.mine-answer [hidden] { display: none; }
.hamburger { position: relative; }
.hamburger.has-news::after {
  content: ""; position: absolute; top: 2px; right: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--tape, var(--accent)); box-shadow: 0 0 0 2px var(--primary);
}
@media (max-width: 600px) {
  #noteOverlay { padding: 0; align-items: stretch; }
  .note-modal { max-width: none; max-height: 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; }
  .note-reply-actions .btn-primary, .note-reply-actions .lc-btn { flex: 1 1 auto; }
}

/* ---------- 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-prev-lot { font-size: 14px; font-weight: 600; color: var(--text); margin: -8px 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); }
/* Your initials, in the Listed by line of step 1 (2026-10-23): the Team page's small box, inline. */
.lc-ini-mine { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 2px 4px; vertical-align: middle; }
/* The batch form's labels are block with a margin (.lc-form label), which stacked "Your initials" above its box and
   dropped box and button under the sentence's line (Phil, 2026-10-23). Inline here, centred on the line. */
.lc-form .lc-ini-mine .ini-box { display: inline-flex; flex-direction: row; align-items: center; margin: 0; font-size: 12.5px; white-space: nowrap; }
.lc-ini-mine .lc-btn { padding: 7px 12px; font-size: 12.5px; }
@media (max-width: 600px) {
  /* On a phone the phone-wide .btn-inline rule stretched Save initials and squeezed the box to a sliver, so the
     three sit on a row of their own under the sentence: the box keeps its width, the button its own. */
  .lc-form .lc-ini-mine { display: flex; width: 100%; margin: 6px 0; }
  .lc-form .lc-ini-mine .ini-box input { flex: none; width: 4.5em; }
  .lc-form .lc-ini-mine .lc-btn { flex: none; width: auto; }
}
.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-batch-card > .lc-picker { display: block; width: 100%; margin: var(--sp-2) 0 var(--sp-1); }
.lc-show-activated { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sp-2); cursor: pointer; }
.lc-show-activated input { margin: 0; }
.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; }
/* Take pictures is the choice we want (Jeanette, 2026-11-03): a tape-yellow outline, offset so it reads on the navy. */
.lc-photo-actions .lc-cam-open { outline: 3px solid var(--tape, #F2C230); outline-offset: 2px; }
@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-zoom { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0 0; font-size: 14px; font-weight: 600; }
.lc-cam-zoom[hidden] { display: none; }
.lc-cam-zoom input { flex: 1; min-height: 44px; }
.lc-cam-bar { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); padding: var(--sp-2) 0; }
.lc-cam-done { display: block; margin-top: var(--sp-2); 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; }
.lc-batch-go { margin-top: var(--sp-2); }
#lc-sticker-note.bad { color: var(--error); }
.lc-ids-row { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
/* Vehicle or big equipment (2026-10-26): ticked, the shelf and sticker boxes step aside for that item. */
.lc-ids-row.is-vehicle #lc-shelf-wrap, .lc-ids-row.is-vehicle #lc-sticker-wrap, .lc-product-id.is-vehicle .lc-pid-box { display: none; }
.lc-form label.lc-vehicle { display: flex; flex-wrap: wrap; align-items: center; align-self: start; column-gap: 8px; }
.lc-form label.lc-vehicle input[type="checkbox"] { width: auto; margin: 0; flex: none; }
.lc-form label.lc-vehicle .fine { flex-basis: 100%; font-weight: normal; }
@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; }
/* A photo step 2 thinks needs another look (2026-10-16): amber ring and a mark, and the line under the thumbnails says why. */
.lc-thumbs .n.blurry img { outline: 3px solid #B7791F; outline-offset: -3px; }
.lc-thumbs img { cursor: zoom-in; }
.lc-thumb-x { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--text); color: #fff; font: 700 16px/22px var(--font); text-align: center; padding: 0; cursor: pointer; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.lc-thumb-x:hover { background: var(--error); }
/* The cut point (2026-11-04): a scissors button on each photo; a marked photo gets a red bar on its right edge and a red button. */
.lc-thumb-cut { position: absolute; left: 2px; bottom: 2px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.55); color: #fff; font: 14px/22px var(--font); text-align: center; padding: 0; cursor: pointer; z-index: 2; }
.lc-thumbs .n.ends { margin-right: 10px; }
.lc-thumbs .n.ends::after { content: ''; position: absolute; right: -8px; top: -2px; bottom: -2px; width: 4px; border-radius: 2px; background: var(--error); }
.lc-thumbs .n.ends .lc-thumb-cut { background: var(--error); }
.lc-lightbox { border: 0; border-radius: var(--radius-sm); padding: 0; margin: auto; /* the page resets every margin to 0, which would pin the box top-left */ max-width: min(96vw, 900px); min-width: min(96vw, 360px); max-height: 96vh; max-height: 96dvh; background: #111; color: #fff; }
.lc-lightbox::backdrop { background: rgba(0,0,0,.72); }
/* --lc-bar is the bar's height, kept by listings.js, so the photo leaves room for every choice under it (2026-11-02). */
.lc-lightbox img { display: block; max-width: 96vw; max-height: calc(96vh - var(--lc-bar, 64px)); max-height: calc(96dvh - var(--lc-bar, 64px)); width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lc-lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px 14px; }
/* Previous / next (Jeanette, 2026-10-23): a 44px arrow on each side of the big photo; the keyboard's arrows do the same.
   Fixed, not relative, so the arrows have a box to sit in and the big view stays on the screen (Phil's phone test,
   11/2): an open modal dialog that is not fixed is placed at the top of the page, so a person scrolled down to an
   item had to scroll back up to see the photo and was left there after Close. */
.lc-lightbox { position: fixed; inset: 0; }
.lc-lightbox-arrow { position: absolute; top: calc((100% - var(--lc-bar, 64px)) / 2 - 32px); width: 44px; height: 64px; border: 0; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lc-lightbox-arrow.prev { left: 8px; } .lc-lightbox-arrow.next { right: 8px; }
.lc-lightbox-arrow:hover, .lc-lightbox-arrow:focus-visible { background: rgba(255,255,255,.22); outline: 2px solid #fff; }
.lc-lightbox-arrow[hidden] { display: none; }
/* The bar (Phil's phone test, 2026-11-02): which photo on the left with any note smaller under it, Close beside it,
   and the choices on a row of their own as plain outlined buttons, 44px tall for a thumb. */
.lc-lightbox-n { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.3; }
.lc-lightbox-n strong { font-weight: 700; }
.lc-lightbox-note { font-size: 14px; color: rgba(255,255,255,.78); }
.lc-lightbox-close { flex: 0 0 auto; min-height: 44px; padding: 10px 22px; border: 0; border-radius: var(--radius-sm); background: #fff; color: #111; font: 700 15px/1.2 var(--font); cursor: pointer; }
.lc-lightbox-actions { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-lightbox-actions:empty { display: none; }
.lc-lightbox-act { min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-sm); background: transparent; color: #fff; font: 600 14px/1.2 var(--font); text-align: left; cursor: pointer; }
.lc-lightbox-act:hover { background: rgba(255,255,255,.12); }
.lc-lightbox-act:focus-visible, .lc-lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lc-lightbox-remove { color: #ffb4a8; border-color: rgba(255,180,168,.6); }
.lc-add-photos { align-self: center; margin-left: 4px; font-size: 13px; }
/* The Add photos pop-up (2026-10-22). */
dialog.lc-add-photos { border: 0; border-radius: var(--radius-sm); padding: 18px; margin: auto; width: min(96vw, 560px); max-height: 96vh; overflow: auto; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.lc-add-photos::backdrop { background: rgba(0,0,0,.55); }
dialog.lc-add-photos h3 { margin: 0 0 6px; }
dialog.lc-add-photos h3:focus { outline: none; } /* it takes the opening focus (listings.js openAddPhotos) and needs no ring */
.lc-addp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lc-addp-actions .lc-file-btn { cursor: pointer; }
dialog.lc-add-photos textarea { width: 100%; min-height: 56px; }
dialog.lc-add-photos .lc-actions { margin-top: 10px; }
.lc-thumbs .n.blurry::before { content: "!"; font-weight: 700; position: absolute; right: 3px; bottom: 3px; background: #fffbeb; color: #8a5a12; font-size: 12px; line-height: 1.3; padding: 0 3px; border-radius: 3px; z-index: 1; }
.lc-photo-warn:empty, .lc-photo-ok:empty { display: none; }
.lc-edited { margin: var(--sp-1) 0 var(--sp-2); }
.lc-edited .btn-link { white-space: nowrap; }
.lc-photo-ok { margin: 0 0 var(--sp-2); white-space: pre-line; }
.lc-photo-warn { white-space: pre-line; margin: 0 0 var(--sp-2); padding: 6px 10px; font-size: 14px; color: #8a5a12; background: #fffbeb; border: 1px solid #B7791F; border-radius: var(--radius-sm); }
.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-write-raw > summary { cursor: pointer; } /* an owner opens the raw reason a failed write came back with (listings.js writeErrorLines) */
.lc-write-raw-text { margin: 4px 0 0; overflow-wrap: anywhere; }
.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-save-why { flex-basis: 100%; } /* why Save & next item is grey, on its own line under it */
#lc-save-why: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.warn { color: var(--warn, #A76A12); font-weight: 600; } /* past 69: Jay's aim, still allowed (gates.js title-under-70) */
.lc-count.over { color: var(--error); font-weight: 700; } /* past 100: the site's limit, blocks Approve (title-under-100) */
.lc-gates, .lc-flags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
/* Step 4, Activate on the auction site (2026-10-22). */
.lc-activate-steps { margin: var(--sp-3) 0; padding-left: 1.4em; font-size: 15px; line-height: 1.6; }
.lc-activate-steps li { margin: 6px 0; }
.lc-activate-steps a { font-weight: 600; }
/* Item N of M with Previous / Next on every review card (2026-10-22). */
.lc-item-nav { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); margin: -4px 0 4px; }
.lc-item-nav .lc-item-n { font-weight: 700; color: var(--text); }
.lc-item-nav .btn-link.is-off { opacity: .4; cursor: default; text-decoration: none; }
.lc-lot { scroll-margin-top: calc(var(--topbar-h) + 60px); }
/* An approved card folds to one strip: item number, thumbnail, title, state and "Open" on one button;
   a tap opens the whole card again, and the strip then reads "Fold away" (Kate, 2026-10-23). Items
   to review fold too, one open at a time (2026-11-06). listings.js lotCard draws the strip, foldState decides. */
.lc-lot.lc-folded > .lc-lot-photos, .lc-lot.lc-folded > .lc-lot-body, .lc-lot.lc-folded > .lc-item-nav { display: none; }
.lc-fold-strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 4px 6px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lc-fold-strip:hover { background: var(--bg); }
.lc-fold-strip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lc-fold-n { flex: none; font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.lc-fold-thumb { flex: none; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bg); }
.lc-fold-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.lc-fold-state { flex: none; font: 600 11px var(--font-display); text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); white-space: nowrap; }
.lc-fold-word { flex: none; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }
/* Open again: the strip shrinks to a slim "Fold away" bar, so the photo and title are not shown twice. */
.lc-lot:not(.lc-folded) > .lc-fold-strip { min-height: 32px; padding: 2px 6px; }
.lc-lot:not(.lc-folded) > .lc-fold-strip .lc-fold-n, .lc-lot:not(.lc-folded) > .lc-fold-strip .lc-fold-thumb, .lc-lot:not(.lc-folded) > .lc-fold-strip .lc-fold-title, .lc-lot:not(.lc-folded) > .lc-fold-strip .lc-fold-state { display: none; }
@media (max-width: 600px) {
  /* Two rows on a phone: number, thumbnail and title; then the state pill and Open. */
  .lc-fold-strip { gap: 8px; flex-wrap: wrap; }
  .lc-fold-title { flex: 1 1 55%; }
  .lc-fold-state { white-space: normal; max-width: 100%; }
}
/* The review checklist (2026-10-22): one line per thing, the fix on the line. */
.lc-issues { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.lc-issue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.lc-issue-text { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.lc-issue.block { background: var(--error-bg, #FDECEA); color: var(--error); }
.lc-issue.warn { background: var(--warn-bg, #FFF6E0); color: var(--warn, #8a5a12); }
.lc-issue.info { background: #EEF2F6; color: var(--text-muted); }
.lc-issue.ok { background: var(--navy-tint, #E8EEF5); color: var(--navy, var(--primary-dark)); }
.lc-issue::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.lc-issue-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.lc-issue-check { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; background: #fff; color: inherit; font: 700 14px/24px var(--font); padding: 0; cursor: pointer; opacity: .75; }
.lc-issue-check:hover { opacity: 1; background: currentColor; color: #fff; }
.lc-issue.block::before, .lc-issue.ok::before, .lc-issue.folded::before { }
.lc-issue-tools { list-style: none; font-size: 13px; }
.lc-issue.folded { background: transparent; color: var(--text-muted); padding: 2px 0; }
.lc-issue.folded::before { display: none; }
.lc-issues-folded { margin: 0 0 6px 18px; }
.lc-issue.reviewed { opacity: .6; text-decoration: line-through; }
.lc-issue-approve { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
/* A card saving a version (2026-10-22): no second click lands on the old version while it redraws. */
.lc-lot.saving { pointer-events: none; opacity: .7; transition: opacity .15s; }
.lc-issue-fix .lc-issue-input { min-height: 36px; padding: 4px 8px; font-size: 14px; border: 1px solid var(--border-strong, #cfd7e1); border-radius: 6px; color: var(--text); background: #fff; }
.lc-issue-fix .lc-btn { min-height: 36px; padding: 4px 12px; }
.lc-issue-fix .btn-link { color: inherit; text-decoration: underline; }
@media (max-width: 600px) { .lc-issue-fix { margin-left: 0; width: 100%; } }
.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 { margin: 0 0 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; }
}
/* The sale's dates in one sentence above the form (2026-10-21); the date boxes show only on "Change dates". */
.lc-import-when { font-size: 14px; line-height: 1.5; margin: var(--sp-2) 0 var(--sp-3); }
.lc-import-when .btn-link { margin-left: 4px; font-size: 13px; white-space: nowrap; }
#lc-import-event.bad { color: var(--error); }
#lc-shelf-note.bad { color: var(--error); }
.lc-undo-photo { margin: 4px 0 0; font-size: 14px; }
.lc-form input.is-bad, .lc-form select.is-bad, .lc-form textarea.is-bad { border-color: var(--error); box-shadow: 0 0 0 2px color-mix(in srgb, var(--error) 25%, transparent); }
.lc-field-error { display: block; margin-top: 4px; color: var(--error); font-size: 13px; font-weight: 600; }
#lc-batch-error.bad, #lc-item-error.bad { color: var(--error); font-weight: 600; }
.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-step.done { color: var(--primary-dark); }
#page-listings .lc-step.done .lc-step-n::before { content: "\2713"; }
#page-listings .lc-step.done .lc-step-n { font-size: 0; }
#page-listings .lc-step.done .lc-step-n::before { font-size: 13px; }
.lc-batch-strip { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 5; display: block; line-height: 1.4; margin: 0 0 var(--sp-4); padding: 8px 12px; background: var(--accent); border: 1px solid var(--primary); border-radius: var(--radius-sm); font-size: 13px; overflow-wrap: anywhere; }
.lc-batch-strip span:first-child { font-weight: 700; }
.lc-strip-dot { color: var(--text-muted); margin: 0 6px; }
.lc-capture-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
/* The bottom bar lives on phones only (the block below); a computer has everything in view. */
.lc-bottom-bar { display: none; }
@media (max-width: 600px) {
  .lc-bottom-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
  .lc-bottom-bar[hidden] { display: none; }
  .lc-item-state { flex: 1; min-width: 0; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lc-item-state.unsaved { color: var(--text); font-weight: 600; }
  .lc-bar-shutter { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--primary-dark); background: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 16px var(--primary-dark); cursor: pointer; touch-action: manipulation; }
  /* Less bulky camera on a phone (Kate, 2026-11-13): a shorter viewfinder, the zoom slider tighter, and the big in-card shutter
     gone (the bar's shutter is always in reach), so the viewfinder, the zoom and the thumbnails sit on one screen. */
  .lc-cam-view video { max-height: 40vh; }
  .lc-cam-zoom { padding-top: 4px; }
  .lc-cam-zoom input { min-height: 36px; }
  .lc-cam-bar { display: none; }
  .lc-bar-shutter[hidden] { display: none; }
  #lc-bar-save { flex: 0 0 auto; min-height: 44px; }
  body.lc-bar-on #lc-lot-card { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.lc-bar-on .sdw-fab { bottom: calc(14px + 70px + env(safe-area-inset-bottom, 0px)); }
  body.lc-bar-on .sdw-fab-tip { bottom: calc(14px + 70px + 60px + env(safe-area-inset-bottom, 0px)); }
}
#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; }
/* The Back control at the top right of steps 2, 3 and 4 (Phil, 2026-10-23): a real button, not a text
   link, so it stands out. 44 px tall for a thumb; it never wraps mid-word. */
.lc-back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; white-space: nowrap; flex: 0 0 auto; }
#page-listings .lc-review-head .lc-back { align-self: start; }
/* New batch, same seller beside Back at the top of steps 2 and 3 (Kate, 2026-10-28): one row, same height. */
.lc-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.lc-head-actions .lc-btn { min-height: 44px; white-space: nowrap; }
#page-listings .lc-review-head .lc-head-actions { align-self: start; }
#page-listings .lc-same-seller-note { margin: 4px 0 0; }
#page-listings .lc-same-seller-note[hidden] { display: none; }
/* Back buttons on a phone */
@media (max-width: 600px) { .lc-back { width: 100%; } .lc-head-actions { width: 100%; flex-wrap: nowrap; } .lc-head-actions .lc-btn { flex: 1 1 0; width: auto; min-height: 40px; padding: 6px 10px; font-size: 13px; } }
#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-extra > summary { font-size: 14px; font-weight: 600; color: var(--text); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
#page-listings .lc-extra > summary .fine { font-weight: 400; }
#page-listings .lc-extra[open] > summary { margin-bottom: 4px; }
/* The fold starts closed (Phil, 2026-10-22): a chevron says it opens, the hint says what a tap does. */
#page-listings .lc-extra > summary::-webkit-details-marker { display: none; }
#page-listings .lc-extra > summary::before { content: "▶"; font-size: 10px; color: var(--primary); display: inline-block; transition: transform .15s; }
#page-listings .lc-extra[open] > summary::before { transform: rotate(90deg); }
#page-listings .lc-extra[open] > summary .lc-extra-hint { display: none; }
@media (prefers-reduced-motion: reduce) { #page-listings .lc-extra > summary::before { transition: none; } }
#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+10) { 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: 0 0 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-conflict-note { font-size: 13px; color: #6b4a00; background: #fff4d6; border: 1px solid #e0b84a; border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
#page-listings .lc-conflict-note .btn-link { color: #00274C; text-decoration: underline; font-weight: 600; }
#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, #page-listings dialog.lc-add-photos textarea { 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; }
.sl-table td.sl-code { text-align: left; font-weight: 600; font-family: ui-monospace, Consolas, monospace; }
.sl-table th:first-child, .sl-table td.sl-actions { text-align: left; }
.sl-actions .btn-link { margin-right: 8px; }
.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; }
.nav-list li[hidden] { display: none; }   /* the private Seller Leads link (public/leads-link.js) */

/* DIY Hub: the owner's edit form (page-diy-hub). Full-width boxes so a phone can type in them. */
#diyEdit label { display: block; margin-bottom: 14px; font-weight: 600; }
#diyEdit textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--border, #ccd3dc); border-radius: var(--radius-sm); }

/* DIY Hub joke and fact card */
.diy-fun-line { font-size: 16px; line-height: 1.5; margin-bottom: var(--sp-3); }

.diy-hero { background: linear-gradient(135deg, #00274C 0%, #1B5C9C 100%); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5); margin-bottom: var(--sp-5); border-bottom: 6px solid #FFCB05; }
.diy-hero h1 { color: #fff; margin: 0 0 var(--sp-3); }
.diy-logo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 0 var(--sp-4); }
.diy-hero .diy-aka { margin: 0 0 var(--sp-3); font-weight: 600; color: #FFCB05; }
.diy-hero p { margin: 0; font-size: 17px; line-height: 1.55; max-width: var(--readable-text); }
.diy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.diy-stat { background: #FFF6CC; border: 2px solid #FFCB05; border-radius: var(--radius-lg); padding: var(--sp-4); text-align: center; }
.diy-stat b { display: block; font-size: 40px; line-height: 1.1; color: var(--primary); }
.diy-stat span { font-size: 14px; color: var(--text); }
.diy-note { border-left: 6px solid #FFCB05; }
.diy-wins { background: #FFF6CC; border: 2px solid #FFCB05; }
.diy-wins-track { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin: var(--sp-3) 0; }
@media (min-width: 600px) { .diy-wins-track { grid-template-columns: repeat(3, 1fr); } }
.diy-win { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: var(--sp-3); position: relative; display: flex; flex-direction: column; gap: 4px; }
.diy-win img { width: 100%; aspect-ratio: 4 / 3; max-height: 260px; object-fit: cover; border-radius: var(--radius-lg); background: #EAF4FF; }
.diy-win b { font-size: 22px; color: var(--primary); }
.diy-win figcaption { font-size: 14px; line-height: 1.35; }
.diy-win-mine { position: absolute; top: var(--sp-2); left: var(--sp-2); background: #00274C; color: #FFCB05; font-style: normal; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.diy-wins-nav { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); }
.diy-wins-nav button { flex: 0 0 auto; width: auto; min-width: 48px; padding: 8px 16px; }
.diy-wins-dots { display: flex; flex: 1; justify-content: center; flex-wrap: wrap; }
.diy-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #E0C34B; margin: 0 3px; }
.diy-dot.on { background: #00274C; }
.diy-learn h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: 16px; }
.diy-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.diy-links li { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3); background: #F4F8FC; border-radius: var(--radius-lg); }
.diy-links a { font-weight: 600; }
.diy-links span { font-size: 14px; color: var(--text); }
.diy-howto { border-left: 6px solid #00274C; }
.diy-howto .diy-go { display: inline-block; font-size: 18px; padding: var(--sp-3) var(--sp-5); text-decoration: none; }
.diy-howto h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: 16px; }
.diy-steps { padding-left: 1.4em; margin: 0 0 var(--sp-3); }
.diy-steps li { margin-bottom: var(--sp-2); line-height: 1.5; }
.diy-more summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: var(--sp-2) 0; }
#diyFun { background: #EAF4FF; border-color: #BCD9F5; }
#diyDropoffs { list-style: none; padding: 0; margin: 0; }
#diyDropoffs li { background: var(--accent); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); font-size: 16px; }
@media (max-width: 640px) { .diy-stats { grid-template-columns: 1fr; } .diy-stat b { font-size: 34px; } }
.diy-deadline { background: #FFCB05; color: #00274C; font-weight: 700; font-size: 18px; border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-3); }
/* The × on a review card's photos sits inside the frame (2026-11-06). */
#page-listings .lc-lot-photos .lc-thumb-x { right: 2px; top: 2px; }
#page-listings .lc-lot-photos .n:not(:first-child) .lc-thumb-x { width: 20px; height: 20px; font-size: 13px; line-height: 16px; }

/* The Save and Approve bar that stays on screen while an item's edit box is open (Kate, 2026-11-14) */
#lc-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; justify-content: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid rgba(0,0,0,0.15); box-shadow: 0 -2px 8px rgba(0,0,0,0.12); }
#lc-sticky-bar[hidden] { display: none; }
#lc-sticky-bar button { flex: 1 1 0; max-width: 240px; min-height: 48px; font-size: 15px; }
#lc-sticky-bar .lc-sticky-approve { background: var(--primary-dark); color: #fff; }
#lc-sticky-bar button:disabled { opacity: .55; }

/* Title included? (tax-flag.js, 2026-11-15): the step 2 question under Vehicle or big equipment, and the card's line. */
.lc-form .lc-titled { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; }
.lc-form .lc-titled label { font-weight: normal; display: inline-flex; align-items: center; gap: 4px; }
.lc-form .lc-titled input[type="radio"] { width: auto; margin: 0; flex: none; }
.lc-pid-titled.lc-needs-answer .lc-pid-titled-ask { color: var(--danger, #b00020); font-weight: 600; }

/* Staff Picks (2026-11-18) */
.sp-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sp-swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 8px; border: 2px solid var(--border, #cfd6de); border-radius: 999px; background: #fff; cursor: pointer; font: inherit; }
.sp-swatch i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.sp-swatch[aria-pressed="true"] { border-color: #00274C; box-shadow: 0 0 0 2px #00274C inset; }
.sp-lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.sp-lot { position: relative; border: 2px solid #d6dce3; border-radius: 12px; overflow: hidden; background: #fff; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.sp-lot.picked { border-color: #c2210f; }
.sp-lot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f1f3f6; }
.sp-lot .sp-info { padding: 8px 10px 10px; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.sp-star { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #cfd6de; background: #fff; color: #6b7785; font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
.sp-mine-list { display: grid; gap: 8px; }
.sp-mine-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid #c2210f; border-radius: 12px; padding: 10px 12px; background: #fff; overflow-wrap: anywhere; }
.sp-mine-row.held { border-color: #d6dce3; background: #f7f8fa; }
.sp-remove { min-height: 44px; padding: 0 16px; border: 2px solid #c2210f; border-radius: 8px; background: #fff; color: #c2210f; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.sp-held-note { background: #fff6e5; border-radius: 10px; padding: 10px 12px; }
.sp-lot.picked .sp-star { background: #c2210f; border-color: #c2210f; color: #fff; }

/* Staff Picks: Meet the Team bio and photo */
.sp-profile { display: grid; grid-template-columns: 180px 1fr; gap: var(--sp-5); align-items: start; }
.sp-photo { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: var(--sp-3); background: #eef1f5; }
.sp-photo.sm { width: 72px; height: 72px; margin: 0; }
.sp-photo.none { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #4a5b6e; }
.sp-photo-btn { display: inline-block; cursor: pointer; }
.sp-bio textarea { width: 100%; box-sizing: border-box; font: inherit; padding: var(--sp-3); border: 1px solid #c8d0da; border-radius: 8px; margin: var(--sp-2) 0; }
.sp-sub { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid #e3e8ee; }
@media (max-width: 600px) { .sp-profile { grid-template-columns: 1fr; } }
.sp-bio input[type=text] { width: 100%; box-sizing: border-box; font: inherit; padding: var(--sp-2) var(--sp-3); border: 1px solid #c8d0da; border-radius: 8px; margin: var(--sp-1) 0 var(--sp-3); }
.sp-hide { margin-top: var(--sp-2); }
.sp-acc { display: block; padding: var(--sp-2) 0; border-top: 1px solid #e3e8ee; }
.sp-boothphotos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }

/* Text Inbox (2026-11-18) */
.inbox-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: var(--sp-4, 16px); align-items: start; }
@media (max-width: 760px) { .inbox-grid { grid-template-columns: 1fr; } }
.inbox-row { display: block; width: 100%; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; }
.inbox-row.on { background: var(--accent); border-color: var(--primary); }
.inbox-who { font-weight: 600; display: inline-block; }
.inbox-when { float: right; font-size: 12px; color: var(--text-muted); }
.inbox-snip { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.inbox-flag { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--error); }
.inbox-bad { color: var(--error); }
.inbox-msgs { max-height: 380px; overflow-y: auto; padding: 8px 0; }
.inbox-msg { margin-bottom: 10px; }
.inbox-msg.out { text-align: right; }
.inbox-bubble { display: inline-block; max-width: 85%; text-align: left; padding: 8px 12px; border-radius: 14px; background: var(--accent); color: var(--text); }
.inbox-msg.out .inbox-bubble { background: var(--primary); color: #fff; }
.inbox-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* Staff notes 2026-11-05 / 2026-11-14 (Brendan, Kate; Jay 2026-11-20): the Save and Approve buttons stay at the bottom of the
   screen while an item is being edited, and the separate description boxes stay out of sight (one Description box). */
#page-listings .lc-merged-src[hidden] { display: none !important; }
#page-listings .lc-edit-panel[open] .lc-sticky-bar { position: sticky; bottom: 0; z-index: 6; display: flex; flex-wrap: nowrap; gap: 6px; padding: 8px 0; background: var(--surface, #fff); border-top: 1px solid var(--lc-card-line, #d6dbe2); }
#page-listings .lc-sticky-bar > button { flex: 1 1 0; width: auto; margin: 0; min-height: 44px; }
#page-listings .lc-sticky-bar .lc-bar-approve { background: var(--primary-dark, #00274C); color: #fff; min-height: 44px; }
#page-listings .lc-sticky-bar .lc-bar-approve:disabled { background: #e3e7ec; color: #3d4752; }
#page-listings .lc-approve-why { font-size: 13px; color: #6b4a00; background: #fff4d6; border: 1px solid #e0b84a; border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
#page-listings #lc-item-seller-line:empty { display: none; }
#page-listings #lc-item-seller-line { flex-basis: 100%; font-size: 13px; font-weight: 600; color: #00274C; margin: 4px 0; }

/* Crop editor (Kate, 2026-11-09): the box over the whole photo; white on dark so every label reads (4.5:1). */
.lc-crop-stage { position: relative; display: block; width: fit-content; margin: 0 auto; touch-action: none; }
.lc-crop-stage img { display: block; user-select: none; -webkit-user-drag: none; }
.lc-crop-box { position: absolute; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; touch-action: none; }
.lc-crop-box i { position: absolute; width: 28px; height: 28px; background: #fff; border: 2px solid #111; border-radius: 50%; }
.lc-crop-box i[data-h="tl"] { left: -14px; top: -14px; cursor: nwse-resize; } .lc-crop-box i[data-h="tr"] { right: -14px; top: -14px; cursor: nesw-resize; }
.lc-crop-box i[data-h="bl"] { left: -14px; bottom: -14px; cursor: nesw-resize; } .lc-crop-box i[data-h="br"] { right: -14px; bottom: -14px; cursor: nwse-resize; }
.lc-crop { --lc-bar: 150px; overflow: visible; } .lc-crop .lc-crop-stage { margin: 18px auto; } .lc-crop .lc-crop-stage img { max-width: calc(100vw - 44px); max-height: calc(96dvh - 150px); }

/* ---------- Gold Gear Orders (page 'gold', public/gold-orders.js) ---------- */
.gold-order { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-4); background: var(--surface); color: var(--text); }
.gold-order.is-cancelled { opacity: .75; }
.gold-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap; }
.gold-pill { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #E8EEF5; color: #00274C; }
.gold-pill.is-requested { background: #FFF1C2; color: #4A3500; }
.gold-pill.is-shipped { background: #D8F0DF; color: #0F3D1E; }
.gold-pill.is-cancelled { background: #E4E7EB; color: #2B323A; }
.gold-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-3); }
.gold-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin: 0 0 4px; }
.gold-cols p { margin: 0 0 var(--sp-2); font-size: 14.5px; overflow-wrap: anywhere; }
.gold-count.is-over { color: #8A1C12; font-weight: 700; }
.gold-warn { background: #FDE8E6; color: #7A1810; border: 1px solid #7A1810; border-radius: var(--radius-sm); padding: var(--sp-3); margin: var(--sp-3) 0 0; font-weight: 600; }
.gold-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; margin-top: var(--sp-3); }
.gold-track { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); }
.gold-track input { padding: 10px 12px; font: inherit; font-size: 14px; border: 1px solid rgba(0,0,0,.25); border-radius: var(--radius-sm); min-width: 220px; color: var(--text); background: var(--surface); }
@media (max-width: 640px) { .gold-actions .btn-inline, .gold-actions .btn-danger, .gold-track, .gold-track input { flex: 1 1 100%; min-width: 0; } }

/* Appointments page (2026-11-23) */
.appt-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.appt-row { display: grid; grid-template-columns: 90px 1fr; gap: 2px var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--border, #d9dee7); }
.appt-row .appt-time { grid-row: span 2; font-size: 18px; }
.appt-row .fine { grid-column: 2; }
.appt-off { opacity: .6; text-decoration: line-through; }
.appt-empty { font-size: 17px; padding: var(--sp-4) 0; }
.appt-bar .btn-ghost { background: #fff; color: #16233a; border: 2px solid #8a96a8; font-size: 15px; padding: 10px 16px; }
.appt-bar .btn-ghost:hover { background: #eef1f5; }
.appt-bar input[type=date] { font-size: 15px; padding: 9px 10px; border: 2px solid #8a96a8; border-radius: 8px; }

/* My Results page (2026-11-25, public/my-results.js): the same card as the Ops Board's My results, in the dashboard's colors */
.mrp-pick { margin: 0 0 var(--sp-3); }
.mrp-pick select { font-size: 15px; padding: 8px 10px; border: 2px solid #8a96a8; border-radius: 8px; }
.mrp-head h2 { margin: 0 0 4px; font-size: 24px; }
.mrp-head p { margin: 0 0 var(--sp-3); color: var(--text-muted); }
.mrp-body { display: grid; gap: var(--sp-3); }
.mrp-box { background: var(--accent); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.mrp-box h3 { margin: 0 0 var(--sp-2); font-size: 17px; }
.mrp-fact { margin: 0; font-size: 15px; }
.mrp-foot { margin-top: var(--sp-3); }
.sr-mine { margin-top: var(--sp-4); font-size: 15px; }
.mr-tbl { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.mr-tbl th, .mr-tbl td { padding: 5px 8px; text-align: right; border-top: 1px solid var(--border); }
.mr-tbl th:first-child, .mr-tbl td:first-child { text-align: left; }
.mr-tbl th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-top: 0; }
.mr-tbl td.me { font-weight: 700; background: #FFF1C2; }
.mr-rank { margin: var(--sp-2) 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.mr-nobid summary { cursor: pointer; font-weight: 600; }
.mr-nobid ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.mr-nobid li span { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-muted); margin-right: 6px; }
