:root {
  color-scheme: dark;
  --ink: #F5F6F7;
  --muted: #A7AFB8;
  --soft-muted: #737D88;
  --paper: #0D1117;
  --surface: #141A22;
  --surface-2: #1B232D;
  --line: #29323D;
  --line-strong: #3A4653;
  --brand: #D4AF37;
  --brand-2: #E6C566;
  --mint: #D4AF37;
  --mint-soft: rgba(212, 175, 55, .14);
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, .14);
  --danger: #FF7A7A;
  --danger-soft: rgba(171, 58, 58, .20);
  --warning: #E7B85B;
  --warning-soft: rgba(187, 126, 33, .18);
  --info: #7DB4E8;
  --info-soft: rgba(67, 120, 170, .20);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.34), 0 8px 24px rgba(0,0,0,.18);
  --shadow-md: 0 20px 48px rgba(0,0,0,.42);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --topbar-h: 74px;
  --bottom-nav-h: 78px;
  --status-h: 38px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(131, 214, 189, .12), transparent 32rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg {
  width: 1.4em;
  height: 1.4em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell { min-height: 100dvh; }
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 28px) 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: rgba(20, 59, 54, .97);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.brand-lockup { display: flex; align-items: center; min-width: 0; gap: 11px; }
.brand-mark {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: var(--mint);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.brand-copy { min-width: 0; line-height: 1.1; }
.brand-copy > strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.auction-switcher {
  max-width: min(54vw, 290px);
  margin: 4px 0 0 -4px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  border: 0;
  color: rgba(255,255,255,.72);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}
.auction-switcher span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.auction-switcher svg { flex: none; width: 16px; height: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .round-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: inherit;
}
.topbar .icon-button { background: rgba(255,255,255,.1); }
.icon-button:active, .round-button:active { transform: scale(.96); }
.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.09);
  white-space: nowrap;
}
.network-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #f6c45a; }
.network-pill.online .dot { background: var(--mint); }
.network-pill.offline .dot { background: #f38b82; }

.main-content {
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 22px) clamp(16px, 4vw, 28px) calc(var(--bottom-nav-h) + var(--status-h) + var(--safe-bottom) + 34px);
}
.view { display: none; animation: fade-up .22s ease both; }
.view.active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.capture-heading, .view-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.view-heading h1, .capture-heading h1 { margin: 0; font-size: clamp(28px, 7vw, 42px); letter-spacing: -.045em; line-height: 1; }
.lot-heading-row { display: flex; align-items: baseline; gap: 10px; }
.lot-heading-row > span { font-size: clamp(22px, 5vw, 30px); font-weight: 800; letter-spacing: .03em; }
.lot-number-input {
  width: min(55vw, 270px);
  min-width: 72px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: clamp(38px, 12vw, 64px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.055em;
}
.lot-number-input:focus { border-bottom-color: var(--mint); }
.consignor-line { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.consignor-line > span { font-size: 13px; font-weight: 700; }
.consignor-line input {
  min-width: 0;
  width: min(58vw, 320px);
  padding: 2px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  font-weight: 650;
}
.consignor-line input:focus { border-bottom-color: var(--brand-2); }
.round-button {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.round-button svg { width: 23px; height: 23px; }

.camera-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.camera-card {
  min-height: 190px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: rgba(255,255,255,.7);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.camera-card-primary { border-color: rgba(30, 85, 77, .55); background: linear-gradient(155deg, #ffffff, #effaf6); }
.camera-card:active { transform: scale(.985); }
@media (hover:hover) { .camera-card:hover { transform: translateY(-2px); border-color: var(--brand-2); box-shadow: var(--shadow-sm); } }
.camera-card strong { font-size: 18px; }
.camera-card small { color: var(--muted); font-size: 12px; }
.camera-icon-wrap {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 20px;
  color: var(--brand);
  background: var(--mint-soft);
}
.camera-card:not(.camera-card-primary) .camera-icon-wrap { background: var(--surface-2); }
.queue-camera-card {
  border-style: solid;
  border-color: rgba(30, 85, 77, .72);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 12px 25px rgba(20,59,54,.2);
}
.queue-camera-card .camera-icon-wrap { color: #fff; background: rgba(255,255,255,.16) !important; }
.queue-camera-card small { color: rgba(255,255,255,.82); }
.queue-camera-card:disabled {
  pointer-events: none;
  border-color: var(--line-strong);
  color: #8d9693;
  background: #e2e6e4;
  box-shadow: none;
}
.queue-camera-card:disabled .camera-icon-wrap { color: #8d9693; background: rgba(255,255,255,.5) !important; }
.queue-camera-card:disabled small { color: #8d9693; }
.camera-icon-wrap svg { width: 32px; height: 32px; }
.add-photo-action { width: 100%; min-height: 52px; margin-top: 18px; }
.add-photo-action svg { width: 22px; height: 22px; }

.photo-strip-wrap, .details-card, .field-card, .select-card, .settings-section, .export-hero, .notice-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.photo-strip-wrap {
  margin-top: 15px;
  padding: 16px;
  border-radius: var(--radius);
}
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-title-row h2, .settings-section h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-title-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.text-button { padding: 5px 0; border: 0; color: var(--brand-2); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.danger-text { color: var(--danger); }
.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 138px);
  gap: 10px;
  margin-top: 12px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
}
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 15px;
  background: var(--surface-2);
  scroll-snap-align: start;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20,59,54,.88);
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.photo-order-controls {
  position: absolute;
  inset: auto 6px 6px 6px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.photo-order-controls button {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(16, 25, 24, .7);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.photo-order-controls button:disabled { opacity: .25; }
.photo-order-controls svg { width: 17px; height: 17px; }
.helper-copy { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.details-card { margin-top: 14px; padding: 15px 16px; border-radius: var(--radius); }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.field-label-row label, .field-card > span, .select-card > span, .settings-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.voice-button {
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-2);
  background: var(--mint-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.voice-button.listening { color: #fff; background: var(--danger); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(163,63,63,.12); } }
.voice-button svg { width: 17px; height: 17px; }
textarea, input, select { border-radius: 10px; }
.details-card textarea, .settings-field textarea {
  width: 100%;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  line-height: 1.45;
}
.details-card textarea::placeholder { color: #a3aba9; }

.form-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; }
.select-card, .field-card { padding: 13px 15px; border-radius: var(--radius); }
.mode-card { grid-column: 1 / -1; }
.field-card select, .select-card select, .field-card input {
  width: 100%;
  margin-top: 4px;
  padding: 2px 24px 2px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}
.select-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.compact-field { grid-column: 2; grid-row: 2; }
.category-field { grid-column: 1; grid-row: 2; }

.primary-action {
  width: 100%;
  min-height: 68px;
  margin-top: 18px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 12px 25px rgba(20,59,54,.22);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.primary-action:active { transform: translateY(1px) scale(.993); }
.primary-action:disabled, .primary-action.disabled, .link-action.disabled {
  pointer-events: none;
  color: #8d9693;
  background: #e2e6e4;
  box-shadow: none;
}
.button-label { font-size: 17px; font-weight: 820; letter-spacing: -.01em; }
.button-meta { margin-top: 2px; font-size: 11px; opacity: .74; }
.queue-reassurance { max-width: 480px; margin: 9px auto 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }

.view-heading { align-items: center; }
.view-heading h1 { margin: 0; }
.secondary-button {
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.secondary-button svg { width: 18px; height: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric-card {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.metric-card strong { display: block; font-size: 25px; letter-spacing: -.04em; }
.metric-card span { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
.lot-list { display: grid; gap: 10px; }
.lot-row {
  position: relative;
  min-height: 108px;
  padding: 12px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.lot-row-thumb { width: 82px; height: 82px; overflow: hidden; border-radius: 13px; background: var(--surface-2); }
.lot-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-row-thumb.placeholder { display: grid; place-items: center; color: var(--soft-muted); }
.lot-row-thumb.placeholder svg { width: 28px; height: 28px; }
.lot-row-copy { min-width: 0; }
.lot-row-topline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.lot-row-topline strong { font-size: 17px; }
.lot-row-copy h3 { margin: 5px 0 3px; overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.lot-row-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.status-badge.ready { color: #175c49; background: var(--mint-soft); }
.status-badge.working { color: var(--info); background: var(--info-soft); }
.status-badge.review { color: var(--warning); background: var(--warning-soft); }
.status-badge.failed { color: var(--danger); background: var(--danger-soft); }
.status-badge.neutral { color: var(--muted); background: var(--surface-2); }
.lot-row-actions { display: grid; gap: 6px; }
.lot-row-action {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--brand);
  background: var(--surface-2);
  cursor: pointer;
}
.lot-row-action svg { width: 18px; height: 18px; }
.lot-row-action.danger-action { color: var(--danger); background: var(--danger-soft); }
.progress-track { position: absolute; inset: auto 0 0 0; height: 4px; background: #edf0ee; }
.progress-track span { display: block; height: 100%; background: var(--mint); transition: width .4s ease; }
.local-pending-row { border-style: dashed; }

.empty-state {
  min-height: 250px;
  padding: 40px 24px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}
.empty-state > div { max-width: 320px; }
.empty-state-icon { width: 62px; height: 62px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; color: var(--brand-2); background: var(--mint-soft); }
.empty-state-icon svg { width: 30px; height: 30px; }
.empty-state h2 { margin: 0 0 7px; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0; font-size: 12px; line-height: 1.5; }

.segmented-control { padding: 3px; display: inline-flex; border-radius: 12px; background: #e9ecea; }
.segmented-control button { padding: 7px 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.segmented-control button.active { color: var(--brand); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.review-grid { display: grid; gap: 12px; }
.review-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
}
.review-card-image { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.review-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-card-image .status-badge { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.review-card-content { padding: 14px 15px 16px; }
.review-card-lot { display: flex; justify-content: space-between; gap: 10px; color: var(--brand-2); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.review-card h3 { margin: 7px 0 5px; overflow: hidden; font-size: 16px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.review-card p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.export-hero { padding: 20px; display: flex; align-items: center; gap: 15px; border-radius: var(--radius-lg); }
.export-mark { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 20px; color: var(--brand); background: var(--mint-soft); }
.export-mark svg { width: 29px; height: 29px; }
.export-hero h2 { margin: 0; font-size: 20px; }
.export-hero p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.export-metrics { margin-top: 14px; }
.export-actions { margin-top: -2px; }
.secondary-download {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  color: var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.secondary-download.disabled { pointer-events: none; opacity: .45; }
.notice-card { margin-top: 14px; padding: 16px; border-radius: var(--radius); border-left: 4px solid var(--gold); }
.notice-card strong { font-size: 14px; }
.notice-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.settings-section { margin-bottom: 14px; padding: 17px; border-radius: var(--radius); }
.settings-section > h2 { margin-bottom: 14px; }
.settings-grid { display: grid; gap: 12px; }
.settings-field { display: block; }
.settings-field > span { display: block; margin-bottom: 6px; }
.settings-field input, .settings-field select, .settings-field textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
.settings-field textarea { min-height: 120px; line-height: 1.45; }
.settings-field input:focus, .settings-field select:focus, .settings-field textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(30,85,77,.1); }
.settings-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.key-field-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; cursor: pointer; }
.toggle-field span { min-width: 0; }
.toggle-field strong { display: block; font-size: 14px; }
.toggle-field small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-field i { position: relative; flex: none; width: 47px; height: 27px; border-radius: 999px; background: #cfd5d2; transition: background .18s ease; }
.toggle-field i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .18s ease; }
.toggle-field input:checked + i { background: var(--brand-2); }
.toggle-field input:checked + i::after { transform: translateX(20px); }
.advanced-settings summary { color: var(--brand); font-size: 14px; font-weight: 800; cursor: pointer; }
.advanced-settings[open] summary { margin-bottom: 15px; }
.advanced-settings .settings-field + .settings-field { margin-top: 14px; }

.live-status-bar {
  position: fixed;
  z-index: 35;
  inset: auto 0 calc(var(--bottom-nav-h) + var(--safe-bottom)) 0;
  height: var(--status-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 5vw, 32px);
  color: rgba(255,255,255,.86);
  background: #0d2824;
  font-size: 11px;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06);
}
.live-status-bar strong { color: var(--mint); font-size: 13px; }
.bottom-nav {
  position: fixed;
  z-index: 40;
  inset: auto 0 0 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding: 6px 8px calc(6px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(21,47,43,.09);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 -8px 26px rgba(20,35,32,.08);
}
.nav-button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 13px;
  color: #7b8683;
  background: transparent;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}
.nav-button svg { width: 23px; height: 23px; }
.nav-button.active { color: var(--brand); background: var(--mint-soft); }
.nav-icon-wrap { position: relative; line-height: 0; }
.nav-badge {
  position: absolute;
  top: -7px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--info);
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}
.nav-badge.alert { background: var(--warning); }

.app-dialog {
  width: min(calc(100% - 24px), 620px);
  max-height: min(90dvh, 850px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(10,27,24,.35);
}
.app-dialog::backdrop { background: rgba(8, 22, 20, .54); backdrop-filter: blur(3px); }
.dialog-card { max-height: min(90dvh, 850px); padding: 20px; overflow-y: auto; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog-header h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.dialog-close { color: var(--muted); background: var(--surface-2); }
.dialog-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0; color: var(--soft-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dialog-divider::before, .dialog-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.dialog-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auction-list { display: grid; gap: 8px; }
.auction-item {
  width: 100%;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.auction-item.active { border-color: var(--brand-2); background: var(--mint-soft); }
.auction-item strong { display: block; font-size: 14px; }
.auction-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.auction-item svg { flex: none; width: 18px; height: 18px; }

.review-dialog { width: min(calc(100% - 18px), 760px); }
.review-dialog-card { padding-top: 0; }
.sticky-dialog-header { position: sticky; top: 0; z-index: 5; margin: 0 -20px 14px; padding: 16px 20px 12px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.review-photo-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%); gap: 10px; margin-bottom: 14px; overflow-x: auto; scroll-snap-type: inline mandatory; }
.review-photo-item { scroll-snap-align: start; }
.review-photo-frame { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 16px; background: var(--surface-2); }
.review-photo-frame img { width: 100%; height: 100%; object-fit: contain; display: block; background: #f4f4f1; }
.photo-kind-badge { position: absolute; top: 8px; left: 8px; padding: 5px 7px; border-radius: 999px; color: #fff; background: rgba(20,59,54,.85); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.review-photo-item p { margin: 5px 2px 0; color: var(--muted); font-size: 10px; }
.warning-box { margin-bottom: 14px; padding: 12px; border: 1px solid #ecd2a7; border-radius: 13px; color: #70490f; background: var(--warning-soft); font-size: 11px; line-height: 1.45; }
.warning-box ul { margin: 6px 0 0; padding-left: 18px; }
.review-dialog .settings-field { margin-bottom: 12px; }
.review-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.danger-button, .primary-small {
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.danger-button { margin-right: auto; border: 1px solid #e3b4b0; color: var(--danger); background: var(--danger-soft); }
.primary-small { border: 0; color: #fff; background: var(--brand); }

.toast-region { position: fixed; z-index: 100; inset: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 10px) 12px auto; display: grid; justify-items: center; pointer-events: none; }
.toast {
  max-width: min(92vw, 480px);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  color: #fff;
  background: rgba(16, 39, 35, .95);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  line-height: 1.35;
  animation: toast-in .24s ease both;
}
.toast.error { background: rgba(132, 43, 43, .96); }
.toast.success { background: rgba(22, 88, 69, .96); }
.toast + .toast { margin-top: 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.busy-overlay { position: fixed; z-index: 110; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #fff; background: rgba(10, 28, 25, .66); backdrop-filter: blur(4px); }
.busy-overlay p { margin: 0; font-size: 13px; font-weight: 700; }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 680px) {
  :root { --bottom-nav-h: 74px; }
  .camera-card { min-height: 220px; }
  .form-grid { grid-template-columns: minmax(0, 1fr) 150px; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .csv-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .toggle-field { grid-column: 1 / -1; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  :root { --bottom-nav-h: 0px; --status-h: 44px; --topbar-h: 78px; }
  body { padding-left: 96px; }
  .topbar { left: 96px; }
  .main-content { padding-bottom: calc(var(--status-h) + 32px); }
  .bottom-nav {
    inset: 0 auto 0 0;
    width: 96px;
    height: 100dvh;
    padding: calc(var(--topbar-h) + 18px) 9px 16px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 74px);
    align-content: start;
    border-top: 0;
    border-right: 1px solid rgba(21,47,43,.09);
  }
  .nav-button { gap: 6px; font-size: 10px; }
  .nav-button svg { width: 25px; height: 25px; }
  .live-status-bar { left: 96px; bottom: 0; }
  .camera-grid { gap: 16px; }
  .camera-card { min-height: 240px; }
  .review-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 410px) {
  .network-pill span:last-child { display: none; }
  .network-pill { width: 28px; justify-content: center; padding: 0; }
  .camera-card { min-height: 170px; }
  .camera-card small { display: none; }
  .lot-row { grid-template-columns: 70px minmax(0,1fr) auto; gap: 10px; }
  .lot-row-thumb { width: 70px; height: 70px; }
  .dialog-two-col { grid-template-columns: 1fr; }
  .review-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .review-dialog-actions .danger-button { margin-right: 0; }
  .review-dialog-actions .primary-small { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* v0.2.2 continuous camera */
.camera-dialog-card { max-width: 680px; }
.live-camera-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
}
.live-camera-frame video { width: 100%; height: 100%; object-fit: cover; }
.camera-session-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.camera-session-actions .primary-small { justify-self: end; }
.camera-shutter {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 4px solid var(--accent, #111);
  background: transparent;
  display: grid;
  place-items: center;
  padding: 5px;
}
.camera-shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent, #111);
}
.camera-shutter:disabled { opacity: .45; }
@media (max-width: 520px) {
  .camera-session-actions { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .camera-session-actions .secondary-button { padding-inline: 10px; font-size: .85rem; }
  .camera-shutter { width: 64px; height: 64px; }
}


.cover-rescue-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft, rgba(127,127,127,.06));
}
.cover-rescue-panel h3 { margin: 2px 0 4px; font-size: 1rem; }
.cover-rescue-help { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.cover-rescue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-rescue-actions button { flex: 1 1 145px; }
@media (max-width: 560px) {
  .cover-rescue-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cover-rescue-actions button { width: 100%; }
  #review-cover-force-ai { grid-column: 1 / -1; }
}

/* v0.5.0 production-editing upgrades */
.metric-filter {
  width: 100%;
  appearance: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.metric-filter:hover { border-color: var(--brand-2); }
.metric-filter:active { transform: translateY(1px); }
.metric-filter.active {
  border-color: var(--brand-2);
  background: var(--mint-soft);
  box-shadow: 0 0 0 2px rgba(30,85,77,.09), var(--shadow-sm);
}
.queue-filter-copy { margin: -8px 0 14px; text-align: center; }
.first-photo-instruction-card label { display: block; margin-bottom: 7px; font-weight: 800; }
.first-photo-instruction-card label small { color: var(--muted); font-weight: 650; }
.first-photo-instruction-card textarea { width: 100%; min-height: 64px; resize: vertical; }

.photo-manager-panel {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(245,247,246,.75);
}
.photo-manager-panel h3 { margin: 2px 0 4px; font-size: 1rem; }
.review-photo-open {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}
.review-photo-frame:focus-visible { outline: 3px solid rgba(30,85,77,.25); outline-offset: 2px; }
.review-cover-badge { position: absolute; top: 8px; right: 8px; left: auto; }
.review-photo-controls { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 6px; margin-top: 7px; }
.mini-photo-button {
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--brand);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.mini-photo-button:disabled { opacity: .38; cursor: default; }

.photo-editor-dialog { width: min(calc(100% - 14px), 1000px); max-height: 96dvh; }
.photo-editor-card { max-height: 96dvh; }
.photo-editor-stage-wrap {
  width: 100%;
  max-height: 62dvh;
  overflow: auto;
  display: block;
  border-radius: 16px;
  background: #151817;
  touch-action: none;
  overscroll-behavior: contain;
}
.photo-editor-canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  transform-origin: top left;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
.photo-editor-crop-box { pointer-events: none; }
.photo-editor-toolbar, .photo-editor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.photo-editor-toolbar .secondary-button.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.photo-zoom-control {
  flex: 1 1 180px;
  min-height: 40px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.photo-zoom-control input { flex: 1; min-width: 80px; }
.photo-editor-nav .secondary-button { flex: 1 1 120px; }

@media (max-width: 560px) {
  .review-photo-gallery { grid-auto-columns: 86%; }
  .photo-editor-toolbar .secondary-button { flex: 1 1 42%; }
  .photo-editor-stage-wrap { max-height: 52dvh; }
  .photo-editor-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .photo-editor-nav #photo-editor-original { grid-column: 1 / -1; }
}


/* v0.5.2 UI reliability corrections */
.build-version { display:inline-flex; align-items:center; min-height:28px; padding:5px 8px; border-radius:999px; color:rgba(255,255,255,.78); background:rgba(255,255,255,.08); font-size:10px; font-weight:800; }
#queue-summary .metric-filter { pointer-events:auto !important; cursor:pointer !important; touch-action:manipulation; }
#queue-summary .metric-filter strong, #queue-summary .metric-filter span { pointer-events:none; }
.review-photo-open { cursor:zoom-in !important; touch-action:manipulation; }
.photo-editor-dialog { z-index:120 !important; }
.photo-editor-dialog::backdrop { background:rgba(9,18,16,.74); backdrop-filter:blur(4px); }


/* v0.5.3 LOTDONE BRAND EDITION — same workflow, new commercial identity */
html, body { background: #0D1117; }
body {
  background:
    radial-gradient(circle at 82% -8%, rgba(212,175,55,.13), transparent 34rem),
    radial-gradient(circle at -12% 45%, rgba(37,62,92,.16), transparent 32rem),
    linear-gradient(180deg, #0D1117 0%, #10151C 100%);
}
.topbar {
  background: rgba(8, 11, 16, .96);
  border-bottom: 1px solid rgba(212,175,55,.20);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.brand-lockup { gap: 10px; }
.brand-mark {
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(212,175,55,.12), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.18), 0 7px 18px rgba(0,0,0,.24);
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy > strong {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.035em;
}
.brand-lot { color: #F7F8FA; }
.brand-done {
  color: #D4AF37;
  background: linear-gradient(180deg, #F4DA8A, #C9962B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auction-switcher { color: rgba(235,238,242,.64); }
.topbar .icon-button, .network-pill, .build-version { border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.055); }
.network-pill.online .dot { background: #D4AF37; box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
.build-version { color: rgba(244,222,160,.8); }

.eyebrow, .review-card-lot { color: var(--brand-2); }
.lot-heading-row > span { color: #D4AF37; }
.lot-number-input { color: #F9FAFB; }
.lot-number-input:focus, .consignor-line input:focus { border-bottom-color: #D4AF37; }
.consignor-line input { color: #F5F6F7; }

.camera-card {
  border-color: #34404C;
  color: #F5F6F7;
  background: linear-gradient(155deg, rgba(25,32,42,.96), rgba(18,24,32,.96));
}
.camera-card-primary {
  border-style: solid;
  border-color: rgba(212,175,55,.48);
  background: linear-gradient(145deg, rgba(212,175,55,.10), rgba(20,26,34,.96) 52%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), var(--shadow-sm);
}
.camera-card:hover { border-color: #D4AF37 !important; }
.camera-icon-wrap { color: #D4AF37; background: rgba(212,175,55,.12); }
.queue-camera-card {
  border-color: #E1BF60;
  color: #11151B;
  background: linear-gradient(135deg, #F1D787, #D4AF37 48%, #B98521);
  box-shadow: 0 14px 30px rgba(192,142,35,.22);
}
.queue-camera-card .camera-icon-wrap { color: #11151B; background: rgba(255,255,255,.24) !important; }
.queue-camera-card small { color: rgba(17,21,27,.72); }
.queue-camera-card:disabled, .primary-action:disabled, .primary-action.disabled, .link-action.disabled {
  color: #707985;
  border-color: #2C3540;
  background: #1B222B;
}
.queue-camera-card:disabled .camera-icon-wrap { color: #68717A; background: #222A34 !important; }

.photo-strip-wrap, .details-card, .field-card, .select-card, .settings-section, .export-hero, .notice-card,
.metric-card, .lot-row, .review-card, .photo-manager-panel {
  border-color: #2B3541;
  background: linear-gradient(155deg, rgba(22,29,38,.98), rgba(18,24,32,.98));
  box-shadow: var(--shadow-sm);
}
.details-card textarea::placeholder, input::placeholder, textarea::placeholder { color: #6F7884; }
.voice-button { color: #E7C566; background: rgba(212,175,55,.12); }

.primary-action {
  color: #12161B;
  background: linear-gradient(135deg, #F0D47C, #D4AF37 52%, #B88322);
  box-shadow: 0 13px 28px rgba(184,131,29,.24);
}
.primary-action .button-meta { color: rgba(18,22,27,.72); opacity: 1; }
.secondary-button, .secondary-download, .mini-photo-button {
  color: #E5C461;
  border-color: #3A4653;
  background: #171E27;
}
.secondary-button:hover, .secondary-download:hover, .mini-photo-button:hover { border-color: rgba(212,175,55,.55); background: #1B232D; }

.metric-filter.active {
  border-color: #D4AF37;
  background: linear-gradient(145deg, rgba(212,175,55,.17), rgba(22,29,38,.98));
  box-shadow: 0 0 0 1px rgba(212,175,55,.20), var(--shadow-sm);
}
.status-badge.ready { color: #F1D787; background: rgba(212,175,55,.14); }
.status-badge.working { color: #9FCBEE; background: rgba(70,127,173,.18); }
.status-badge.review { color: #F0C56C; background: rgba(187,126,33,.16); }
.status-badge.failed { color: #FF9A9A; background: rgba(171,58,58,.18); }

.segmented-control { background: #11171F; border: 1px solid #29323D; }
.segmented-control button.active { color: #161A20; background: linear-gradient(135deg, #F2D987, #D4AF37); box-shadow: none; }

.settings-field input, .settings-field select, .settings-field textarea {
  color: #F5F6F7;
  border-color: #394552;
  background: #10161E;
}
.settings-field input:focus, .settings-field select:focus, .settings-field textarea:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212,175,55,.11);
}
.brand-fixed-field input { color: #E9C96D; font-weight: 850; letter-spacing: .02em; }
.toggle-field i { background: #313B46; }
.toggle-field input:checked + i { background: #D4AF37; }
.toggle-field i::after { background: #F7F8FA; }

.live-status-bar {
  color: rgba(245,246,247,.78);
  background: rgba(7,10,14,.96);
  border-top: 1px solid rgba(212,175,55,.16);
}
.live-status-bar strong { color: #D4AF37; }
.bottom-nav {
  border-color: rgba(212,175,55,.13);
  background: rgba(10,14,19,.97);
  box-shadow: 0 -8px 28px rgba(0,0,0,.28);
}
.nav-button { color: #7F8994; }
.nav-button.active { color: #F0CF73; background: rgba(212,175,55,.12); }
.nav-badge { border-color: #0A0E13; }

.app-dialog { color: #F5F6F7; border: 1px solid #2C3540; background: #121820; box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.app-dialog::backdrop { background: rgba(3,5,8,.76); }
.dialog-close { color: #AAB1BA; background: #1B232D; }
.auction-item { color: #F5F6F7; border-color: #2B3541; background: #161D26; }
.auction-item.active { border-color: #D4AF37; background: rgba(212,175,55,.12); }
.sticky-dialog-header { background: rgba(14,19,26,.96); border-color: #2B3541; }
.review-photo-frame img { background: #0B0F14; }
.photo-kind-badge, .cover-badge { background: rgba(9,12,17,.88); color: #EACB70; border: 1px solid rgba(212,175,55,.25); }
.photo-manager-panel { background: #141B24; }
.photo-editor-stage-wrap { background: #070A0E; }
.photo-zoom-control { color: #A7AFB8; border-color: #394552; background: #11171F; }
.photo-editor-toolbar .secondary-button.active { color: #11151B; border-color: #D4AF37; background: #D4AF37; }

.toast { background: rgba(12,16,22,.97); border: 1px solid rgba(212,175,55,.18); }
.toast.success { background: rgba(45,39,18,.97); color: #F5E3A6; }
.busy-overlay { background: rgba(4,7,10,.78); }
.spinner { border-color: rgba(255,255,255,.15); border-top-color: #D4AF37; }

.lotdone-brand-story {
  margin: 18px 0 0;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212,175,55,.10), rgba(15,20,27,.96));
}
.lotdone-brand-story img { width: 54px; height: 54px; flex: none; }
.lotdone-brand-story strong { display: block; color: #F4F5F6; font-size: 12px; letter-spacing: .09em; }
.lotdone-brand-story strong em { color: #D4AF37; font-style: normal; }
.lotdone-brand-story p { margin: 5px 0 0; color: #A7AFB8; font-size: 12px; }

@media (max-width: 410px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy > strong { font-size: 16px; }
  .build-version { display: none; }
}
/* LOTDONE HIGH-CONTRAST LIGHT PATCH START
   Visual-only patch: white primary workspace + black/gold structure.
   No workflow, queue, AI, export, data, or API behavior is changed. */
:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #626262;
  --soft-muted: #8a8a8a;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #f3f1eb;
  --line: #d8d0bd;
  --line-strong: #1e1e1e;
  --brand: #111111;
  --brand-2: #a97816;
  --mint: #d4af37;
  --mint-soft: #fbf2d7;
  --gold: #c99a27;
  --gold-soft: #fbf2d7;
  --danger: #9d2f2f;
  --danger-soft: #fbe8e6;
  --warning: #8a5c0c;
  --warning-soft: #fff1ce;
  --info: #2c5f87;
  --info-soft: #e8f2f9;
  --shadow-sm: 0 5px 16px rgba(0,0,0,.07);
  --shadow-md: 0 16px 42px rgba(0,0,0,.12);
}

html, body { background: #f7f5ef !important; }
body {
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 90% -10%, rgba(212,175,55,.10), transparent 34rem),
    linear-gradient(180deg, #fffefa 0%, #f6f3eb 100%) !important;
}

/* Keep the permanent brand chrome black. */
.topbar {
  color: #fff !important;
  background: rgba(8,10,13,.985) !important;
  border-bottom: 2px solid #c99a27 !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.16) !important;
}
.brand-mark {
  background: #111 !important;
  border: 1px solid rgba(212,175,55,.65) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 5px 14px rgba(0,0,0,.22) !important;
}
.brand-lot { color: #fff !important; }
.brand-done {
  color: #d4af37 !important;
  background: linear-gradient(180deg, #f1d476, #c99425) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.auction-switcher { color: rgba(255,255,255,.68) !important; }
.topbar .icon-button, .network-pill, .build-version {
  color: #fff !important;
  border: 1px solid rgba(212,175,55,.24) !important;
  background: rgba(255,255,255,.055) !important;
}
.build-version { color: #e8c85d !important; }
.network-pill.online .dot { background: #d4af37 !important; }

/* Main workspace: bright and high contrast. */
.main-content { color: #171717 !important; }
.capture-heading, .view-heading,
.capture-heading h1, .view-heading h1,
.lot-heading-row, .lot-heading-row > span { color: #171717 !important; }
.eyebrow, .review-card-lot { color: #a97816 !important; }
.lot-number-input, .consignor-line input {
  color: #111 !important;
  border-bottom-color: #b7aa88 !important;
}
.lot-number-input:focus, .consignor-line input:focus { border-bottom-color: #c99a27 !important; }
.consignor-line, .consignor-line span { color: #5d5d5d !important; }

/* White cards with black structure and a restrained gold edge. */
.photo-strip-wrap, .details-card, .field-card, .select-card,
.settings-section, .export-hero, .notice-card, .metric-card,
.lot-row, .review-card, .photo-manager-panel {
  color: #171717 !important;
  border: 1px solid #262626 !important;
  background: #fff !important;
  box-shadow: inset 0 -3px 0 #d4af37, var(--shadow-sm) !important;
}
.metric-card, .lot-row { border-radius: 18px !important; }
.metric-card strong, .lot-row-topline strong, .lot-row-copy h3,
.review-card h3, .export-hero h2, .settings-section h2,
.notice-card strong, .photo-manager-panel h3 { color: #171717 !important; }
.metric-card span, .lot-row-copy p, .review-card p, .export-hero p,
.notice-card p, .select-card small, .settings-field small,
.queue-reassurance { color: #666 !important; }

.metric-filter.active {
  border: 2px solid #c99a27 !important;
  background: #fffaf0 !important;
  box-shadow: inset 0 -3px 0 #111, 0 6px 18px rgba(0,0,0,.08) !important;
}

/* Queue rows get a crisp auction-catalog look. */
.lot-row { overflow: hidden; }
.lot-row-thumb { border: 1px solid #d9d9d9 !important; background: #f1f1f1 !important; }
.lot-row-action {
  color: #c99a27 !important;
  border: 1px solid #202020 !important;
  background: #111 !important;
}
.lot-row-action:hover { color: #111 !important; border-color: #c99a27 !important; background: #d4af37 !important; }
.lot-row-action.danger-action { color: #9d2f2f !important; border-color: #d7b7b7 !important; background: #fff !important; }

.status-badge {
  border: 1px solid transparent !important;
  font-weight: 850 !important;
}
.status-badge.ready { color: #5c4305 !important; border-color: #d8b342 !important; background: #fff3c8 !important; }
.status-badge.working { color: #245579 !important; border-color: #a8c8dd !important; background: #edf6fc !important; }
.status-badge.review { color: #775006 !important; border-color: #e1bd64 !important; background: #fff4d8 !important; }
.status-badge.failed { color: #8f2929 !important; border-color: #dbaaaa !important; background: #fff0ee !important; }
.status-badge.neutral { color: #555 !important; border-color: #d6d6d6 !important; background: #f4f4f4 !important; }

/* Capture cards. */
.camera-card {
  color: #171717 !important;
  border: 1px solid #242424 !important;
  background: #fff !important;
  box-shadow: inset 0 -3px 0 #d4af37, var(--shadow-sm) !important;
}
.camera-card-primary {
  border: 2px solid #c99a27 !important;
  background: linear-gradient(155deg, #fffefb, #fff7df) !important;
}
.camera-card strong { color: #111 !important; }
.camera-card small { color: #666 !important; }
.camera-icon-wrap { color: #111 !important; background: #f7e6ac !important; }
.camera-card:hover { border-color: #c99a27 !important; }
.queue-camera-card {
  color: #111 !important;
  border: 2px solid #111 !important;
  background: linear-gradient(135deg, #f2d77d, #d4af37 55%, #c18d20) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
}
.queue-camera-card small { color: rgba(17,17,17,.70) !important; }
.queue-camera-card .camera-icon-wrap { color: #111 !important; background: rgba(255,255,255,.45) !important; }

/* Inputs and settings: white, dark type, gold focus. */
.details-card textarea, .field-card input, .field-card select, .select-card select,
.settings-field input, .settings-field select, .settings-field textarea,
.photo-zoom-control {
  color: #171717 !important;
  border-color: #777 !important;
  background: #fff !important;
}
input::placeholder, textarea::placeholder, .details-card textarea::placeholder { color: #8b8b8b !important; }
.details-card textarea:focus, .field-card input:focus, .field-card select:focus,
.select-card select:focus, .settings-field input:focus, .settings-field select:focus,
.settings-field textarea:focus {
  border-color: #c99a27 !important;
  box-shadow: 0 0 0 3px rgba(201,154,39,.16) !important;
}
.brand-fixed-field input { color: #8a6410 !important; }
.toggle-field i { background: #c9c9c9 !important; }
.toggle-field input:checked + i { background: #c99a27 !important; }
.toggle-field i::after { background: #fff !important; }

/* Buttons: gold for primary, white/black for secondary. */
.primary-action {
  color: #111 !important;
  border: 2px solid #111 !important;
  background: linear-gradient(135deg, #f0d477, #d4af37 55%, #c18b1f) !important;
  box-shadow: 0 9px 22px rgba(0,0,0,.12) !important;
}
.primary-action .button-meta { color: rgba(17,17,17,.70) !important; }
.secondary-button, .secondary-download, .mini-photo-button {
  color: #171717 !important;
  border: 1px solid #202020 !important;
  background: #fff !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.06) !important;
}
.secondary-button:hover, .secondary-download:hover, .mini-photo-button:hover {
  color: #111 !important;
  border-color: #c99a27 !important;
  background: #fff8e7 !important;
}
.primary-action:disabled, .primary-action.disabled, .link-action.disabled,
.queue-camera-card:disabled {
  color: #8a8a8a !important;
  border-color: #c8c8c8 !important;
  background: #ececec !important;
  box-shadow: none !important;
}

.segmented-control { border: 1px solid #aaa !important; background: #ece9e1 !important; }
.segmented-control button { color: #555 !important; }
.segmented-control button.active {
  color: #111 !important;
  border: 1px solid #c99a27 !important;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.08) !important;
}

/* Review/editor surfaces. */
.review-card-image, .review-photo-frame img { background: #f1f1f1 !important; }
.photo-manager-panel { background: #fff !important; }
.photo-editor-stage-wrap { background: #ececec !important; border: 1px solid #bbb !important; }
.photo-kind-badge, .cover-badge {
  color: #f4d269 !important;
  border: 1px solid rgba(212,175,55,.62) !important;
  background: rgba(10,10,10,.88) !important;
}
.photo-editor-toolbar .secondary-button.active { color: #111 !important; border-color: #111 !important; background: #d4af37 !important; }

/* Dialogs are light, not charcoal. */
.app-dialog {
  color: #171717 !important;
  border: 2px solid #202020 !important;
  background: #fff !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.25) !important;
}
.app-dialog::backdrop { background: rgba(0,0,0,.58) !important; }
.dialog-close { color: #171717 !important; border: 1px solid #bbb !important; background: #f3f3f3 !important; }
.auction-item { color: #171717 !important; border-color: #999 !important; background: #fff !important; }
.auction-item.active { color: #111 !important; border: 2px solid #c99a27 !important; background: #fff8e5 !important; }
.sticky-dialog-header { color: #171717 !important; border-color: #d5d0c3 !important; background: rgba(255,255,255,.97) !important; }

/* Brand story panel uses white too. */
.lotdone-brand-story {
  color: #171717 !important;
  border: 1px solid #202020 !important;
  background: #fff !important;
  box-shadow: inset 0 -3px 0 #d4af37 !important;
}
.lotdone-brand-story strong { color: #171717 !important; }
.lotdone-brand-story strong em { color: #9d7317 !important; }
.lotdone-brand-story p { color: #666 !important; }

/* Keep navigation dark so the white workspace is framed by the brand. */
.bottom-nav {
  color: #fff !important;
  border-color: #c99a27 !important;
  background: rgba(8,10,13,.985) !important;
  box-shadow: 0 -8px 24px rgba(0,0,0,.16) !important;
}
.nav-button { color: #a8afb8 !important; }
.nav-button.active { color: #f0ce68 !important; background: rgba(212,175,55,.14) !important; }
.nav-badge { border-color: #090b0e !important; }
.live-status-bar {
  color: rgba(255,255,255,.76) !important;
  border-top: 1px solid rgba(212,175,55,.35) !important;
  background: #0a0c0f !important;
}
.live-status-bar strong { color: #d4af37 !important; }

.toast { color: #fff !important; border: 1px solid rgba(212,175,55,.40) !important; background: rgba(15,15,15,.97) !important; }
.toast.success { color: #fff3c4 !important; background: rgba(57,46,15,.98) !important; }
.busy-overlay { color: #fff !important; background: rgba(0,0,0,.72) !important; }
.spinner { border-color: rgba(255,255,255,.22) !important; border-top-color: #d4af37 !important; }

@media (min-width: 980px) {
  .bottom-nav { border-right: 1px solid #c99a27 !important; }
}
/* LOTDONE HIGH-CONTRAST LIGHT PATCH END */
