/* ============================================================
   Live Auction — application styles
   ------------------------------------------------------------
   Loaded after Bootstrap 5 + Font Awesome 6 (via CDN in the
   HTML pages). This file holds:

   1. Design tokens (mirrors specs/ui-reference/styles/_variables.scss)
   2. Bootstrap 5 overrides (navbar, buttons, forms, toasts, modals)
   3. Utility classes (fs-xxs, fs-xs, fs-sm-custom, extra-large-text-mode)
   4. App header (sticky navbar + mobile glassmorphic collapse)
   5. Component styles (current status, vehicle gallery, activity
      chips, planned lots, lot status badge)
   6. Live-auction PoC widgets (dealer status card, hammer track,
      bid feed row, event log, connection status, feedback banners,
      winner overlay, private-message toast)
   7. Animations (pulse-warning, pulse-subtle, pulse-winning,
      pulse-outbid, flash-sold)
   8. Debug panel (preserved verbatim — toggled by Ctrl+Shift+D)
   ============================================================ */

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  /* -------- Brand palette (Autorola orange) -------- */
  --theme-primary: #ff5a00;
  --theme-primary-rgb: 255, 90, 0;
  --theme-primary-light: #ff7a20;
  --theme-primary-light-rgb: 255, 122, 32;
  --theme-primary-hover: #cc4800;
  --theme-primary-active: #b33f00;
  --theme-primary-disabled: #ffb084;

  /* -------- Semantic state colors -------- */
  --theme-success: #28a745;
  --theme-success-rgb: 40, 167, 69;
  --theme-success-dark: #198754;
  --theme-success-darker: #157347;
  --theme-warning: #ffc107;
  --theme-warning-rgb: 255, 193, 7;
  --theme-danger: #d10000;
  --theme-danger-rgb: 209, 0, 0;
  --theme-danger-bs: #dc3545;
  --theme-danger-bs-rgb: 220, 53, 69;
  --theme-info: #959595;
  --theme-info-rgb: 149, 149, 149;
  --theme-accent-blue: #0d6efd;
  --theme-accent-blue-rgb: 13, 110, 253;

  /* -------- Neutrals -------- */
  --theme-secondary: #959595;
  --theme-secondary-rgb: 149, 149, 149;
  --theme-light: #f8f9fa;
  --theme-light-rgb: 248, 249, 250;
  --theme-dark: #646464;
  --theme-dark-rgb: 100, 100, 100;
  --theme-white: #ffffff;
  --theme-white-rgb: 255, 255, 255;
  --theme-black: #000000;
  --theme-black-rgb: 0, 0, 0;
  --theme-text: #212529;
  --theme-text-muted: #495057;
  --theme-neutral-gray: #6c757d;
  --theme-surface-overlay-rgb: 18, 29, 61;
  --theme-persona-dealer-rgb: 102, 168, 255;

  /* -------- Typography -------- */
  --theme-font-sans:
    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --theme-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* -------- Radius (Bootstrap scale) -------- */
  --theme-radius-sm: 0.25rem;
  --theme-radius: 0.375rem;
  --theme-radius-lg: 0.5rem;

  /* -------- Bootstrap 5 shim -------- */
  --bs-primary: var(--theme-primary);
  --bs-primary-rgb: var(--theme-primary-rgb);
  --bs-secondary: var(--theme-secondary);
  --bs-secondary-rgb: var(--theme-secondary-rgb);
  --bs-success: var(--theme-success);
  --bs-success-rgb: var(--theme-success-rgb);
  --bs-info: var(--theme-info);
  --bs-info-rgb: var(--theme-info-rgb);
  --bs-warning: var(--theme-warning);
  --bs-warning-rgb: var(--theme-warning-rgb);
  --bs-danger: var(--theme-danger);
  --bs-danger-rgb: var(--theme-danger-rgb);
  --bs-light: var(--theme-light);
  --bs-light-rgb: var(--theme-light-rgb);
  --bs-dark: var(--theme-dark);
  --bs-dark-rgb: var(--theme-dark-rgb);
  --bs-link-color: var(--theme-primary);
  --bs-link-hover-color: var(--theme-primary-hover);
}

/* ============================================================
   2. Base
   ============================================================ */
html, body { height: 100%; margin: 0; padding: 0; }
body { font-family: var(--theme-font-sans); background: var(--theme-light); color: var(--theme-text); }
/* box-sizing:border-box so a bottom RESERVATION (padding-bottom added by the
   fixed debug panel / sticky bid bar below) is absorbed into the min-height:100%
   when content is short — no spurious scroll — yet still extends the box, and
   thus the document scroll region, once content is tall. The reservation lives
   HERE and not on `body`: body is pinned to `height:100%` (one viewport), so its
   padding sits at the bottom of that single viewport box (near the top of a
   scrolled page) and can never reach the document's end. `.app-container`
   (min-height:100%, overflows body) is the element whose height actually defines
   the scroll region, so the reserved band lands at the true page bottom. */
.app-container { min-height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
input, button, textarea, select { font: inherit; }

/* ============================================================
   3. Bootstrap overrides — buttons, navbar, forms, toasts, modals
   ============================================================ */
.btn-primary {
  --bs-btn-bg: var(--theme-primary);
  --bs-btn-border-color: var(--theme-primary);
  --bs-btn-hover-bg: var(--theme-primary-hover);
  --bs-btn-hover-border-color: var(--theme-primary-hover);
  --bs-btn-active-bg: var(--theme-primary-active);
  --bs-btn-active-border-color: var(--theme-primary-active);
  --bs-btn-disabled-bg: var(--theme-primary-disabled);
  --bs-btn-disabled-border-color: var(--theme-primary-disabled);
  color: #fff; font-weight: 500;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { color: #fff; font-weight: 500; }
.btn-primary:disabled, .btn-primary.disabled { color: rgba(255, 255, 255, 0.7); font-weight: 500; }

.btn-outline-primary {
  --bs-btn-color: var(--theme-primary);
  --bs-btn-border-color: var(--theme-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--theme-primary);
  --bs-btn-hover-border-color: var(--theme-primary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--theme-primary);
  --bs-btn-active-border-color: var(--theme-primary);
  font-weight: 500;
}
/* White text ONLY when Bootstrap actually fills the orange background —
   hover / active / .active. `:focus` was here too (#64), but a bare focus
   (e.g. an outline-primary button re-focused after its modal closes) has NO
   orange fill, so white-on-white made the label vanish until focus cleared.
   Dropping :focus keeps a focused-not-hovered button on its orange text. */
.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary.active { color: #fff; font-weight: 500; }

.btn-secondary {
  --bs-btn-bg: #e9ecef;
  --bs-btn-border-color: #ced4da;
  --bs-btn-color: #495057;
  --bs-btn-hover-bg: #dae0e5;
  --bs-btn-hover-border-color: #adb5bd;
  --bs-btn-hover-color: #343a40;
  --bs-btn-active-bg: #ced4da;
  --bs-btn-active-border-color: #adb5bd;
  --bs-btn-active-color: #343a40;
  --bs-btn-disabled-bg: var(--theme-light);
  --bs-btn-disabled-border-color: #e9ecef;
  --bs-btn-disabled-color: #adb5bd;
  font-weight: 500;
}

.btn-outline-secondary {
  --bs-btn-color: #6c757d;
  --bs-btn-border-color: #ced4da;
  --bs-btn-hover-color: #495057;
  --bs-btn-hover-bg: #e9ecef;
  --bs-btn-hover-border-color: #adb5bd;
  --bs-btn-active-color: #343a40;
  --bs-btn-active-bg: #e9ecef;
  --bs-btn-active-border-color: #adb5bd;
  --bs-btn-disabled-color: #adb5bd;
  --bs-btn-disabled-border-color: #e9ecef;
  font-weight: 400;
  opacity: 0.7;
}
.btn-outline-secondary:disabled, .btn-outline-secondary.disabled { opacity: 0.5; cursor: not-allowed; }

/* Navbar orange gradient */
.navbar.bg-primary {
  background: linear-gradient(to bottom, var(--theme-primary-light), var(--theme-primary)) !important;
}

/* Badge */
.badge.fs-6 { font-size: 0.875rem !important; font-weight: 500; text-transform: uppercase; }

/* Tooltip */
.tooltip { font-size: 0.75rem; z-index: 1070; }
.tooltip-inner { background-color: rgba(0, 0, 0, 0.85); padding: 0.25rem 0.5rem; max-width: 250px; color: #fff; }

/* Forms validation */
.was-validated .form-control:valid, .form-control.is-valid { border-color: var(--theme-success); }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--theme-danger); }
.valid-feedback { color: var(--theme-success); }
.invalid-feedback { color: var(--theme-danger); }
.form-range::-webkit-slider-thumb { background-color: var(--theme-primary); }
.form-range::-moz-range-thumb { background-color: var(--theme-primary); border: none; }
.form-switch-primary .form-check-input:checked { background-color: var(--theme-primary); border-color: var(--theme-primary); }

/* Modal */
.modal { background-color: rgba(0, 0, 0, 0.5); z-index: 9999; }
.modal.show { display: block; }

/* ============================================================
   4. Utility classes
   ============================================================ */
.fs-xxs { font-size: 0.85rem !important; }
.fs-xs { font-size: 0.875rem !important; }
.fs-sm-custom { font-size: 0.95rem !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;
}
.highlight-danny-dealer {
  background-color: #fff3cd; color: #533f03;
  padding: 0.125rem 0.35rem; border-radius: 0.25rem; font-weight: 600;
}

/* Extra-large text mode (accessibility enhancement) */
.extra-large-text-mode .fs-xxs { font-size: 1rem !important; }
.extra-large-text-mode .fs-xs { font-size: 1.05rem !important; }
.extra-large-text-mode .fs-sm-custom { font-size: 1.15rem !important; }
.extra-large-text-mode .fs-5 { font-size: 1.35rem !important; }
.extra-large-text-mode .fs-6 { font-size: 1.25rem !important; }
.extra-large-text-mode .small { font-size: 1rem !important; }
.extra-large-text-mode .badge { font-size: 1rem !important; }
.extra-large-text-mode h1, .extra-large-text-mode .h1 { font-size: 2.25rem !important; }
.extra-large-text-mode h2, .extra-large-text-mode .h2 { font-size: 1.85rem !important; }
.extra-large-text-mode h3, .extra-large-text-mode .h3 { font-size: 1.6rem !important; }
.extra-large-text-mode h4, .extra-large-text-mode .h4 { font-size: 1.75rem !important; }
.extra-large-text-mode .auction-title { font-size: 1.5rem; }
.extra-large-text-mode .user-identity__name { font-size: 1.05rem; }
.extra-large-text-mode .mobile-nav-btn { font-size: 1.05rem; padding: 1rem 1.15rem; }
.extra-large-text-mode .header-time { font-size: 0.95rem; }

/* ============================================================
   5. App header — sticky navbar + mobile glassmorphic collapse
   (verbatim from specs/ui-reference/components/header/header.component.scss)
   ============================================================ */
.app-logo { height: 40px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)); }
@media (max-width: 767px) { .app-logo { height: 32px; } }

/* Vendor co-brand slot — sits between the Autorola logo and the auction
   title, marking whose vehicles are being auctioned (a fleet/lease
   company or a marque). core.js hydrateAuctionHeader() shows the logo
   <img> when the auction's vendorLogoUrl is set, else the vendorName as
   a text chip, else the whole #vendorBrand wrapper stays [hidden].
   Autorola stays the app brand to the left (co-brand, never replaced).
   Rendered on the white NF_2027 bar (dealer / auctioneer / planned-lots),
   so its own colours are dark-on-white. Hidden on phones, mirroring the
   auction title's `d-none d-md-block`. */
.vendor-brand { display: inline-flex; align-items: center; gap: 0.65rem; min-width: 0; }
.vendor-brand[hidden] { display: none !important; }
.vendor-brand__divider { width: 1px; height: 26px; background: #d9d9d9; flex-shrink: 0; }
.vendor-brand__logo { height: 30px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.vendor-brand__logo[hidden] { display: none; }
@media (max-width: 767.98px) {
  .vendor-brand { display: none !important; }
  .vendor-brand__logo { height: 24px; }
}

.app-header { position: sticky; top: 0; z-index: 1030; }
.app-header .navbar { padding: 0; }
.app-header .container-fluid { padding: 0.5rem 1rem; }
@media (min-width: 992px) { .app-header .container-fluid { padding: 0.75rem 1.5rem; } }

.header-main {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; gap: 1rem; position: relative;
}
.header-brand { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-title { display: flex; flex-direction: column; gap: 0.15rem; }
.auction-title {
  margin: 0; font-size: 1.25rem; font-weight: 600;
  color: var(--theme-white); line-height: 1.2;
  display: flex; align-items: center; gap: 0.5rem;
}
@media (min-width: 1200px) { .auction-title { font-size: 1.35rem; } }
.auction-id { font-size: 0.95rem; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.auction-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.25rem;
}
.auction-meta .meta-separator { color: rgba(255, 255, 255, 0.5); }

.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.header-time {
  display: flex; align-items: center;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--theme-white);
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.02em; white-space: nowrap;
}
.header-buttons { display: flex; align-items: center; gap: 0.5rem; }
.header-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.25); margin: 0 0.25rem; }

/* Header button variants */
.app-header .btn-sm {
  padding: 0.4rem 0.75rem; font-size: 0.875rem;
  border-radius: 0.5rem; font-weight: 500;
  transition: all 0.2s ease;
}
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--theme-white);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.btn-icon.active {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.5);
  color: var(--theme-warning);
}
.view-toggle-btn {
  background: rgba(13, 110, 253, 0.2);
  border: 1px solid rgba(13, 110, 253, 0.4);
  color: var(--theme-white);
}
.view-toggle-btn:hover { background: rgba(13, 110, 253, 0.3); border-color: rgba(13, 110, 253, 0.6); }
.view-toggle-btn.active {
  background: rgba(13, 110, 253, 0.35);
  border-color: rgba(13, 110, 253, 0.7);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.app-header .btn-outline-light { border-color: rgba(255, 255, 255, 0.3); color: var(--theme-white); }
.app-header .btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); }
.app-header .btn-outline-danger {
  border-color: rgba(220, 53, 69, 0.5);
  color: var(--theme-white);
  background: rgba(220, 53, 69, 0.15);
}
.app-header .btn-outline-danger:hover { background: rgba(220, 53, 69, 0.25); border-color: rgba(220, 53, 69, 0.7); }
.app-header .btn-success {
  background: var(--theme-success-dark);
  border-color: var(--theme-success-dark);
  color: var(--theme-white);
}
.app-header .btn-success:hover { background: var(--theme-success-darker); border-color: var(--theme-success-darker); }

/* User menu + persona identity chip */
.user-menu { position: relative; }
.user-identity {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--theme-white);
  cursor: pointer; transition: all 0.2s ease;
}
.user-identity:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.user-identity:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }
.user-identity--auctioneer { border-color: rgba(255, 193, 7, 0.5); }
.user-identity--auctioneer:hover { border-color: rgba(255, 193, 7, 0.7); }
.user-identity--dealer { border-color: rgba(102, 168, 255, 0.5); }
.user-identity--dealer:hover { border-color: rgba(102, 168, 255, 0.7); }

.user-identity__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--theme-white);
}
.user-identity--auctioneer .user-identity__avatar {
  border-color: rgba(255, 193, 7, 0.8);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.5), rgba(255, 145, 0, 0.4));
}
.user-identity--dealer .user-identity__avatar {
  border-color: rgba(102, 168, 255, 0.8);
  background: linear-gradient(135deg, rgba(102, 168, 255, 0.5), rgba(30, 81, 166, 0.5));
}
.user-identity__info { display: flex; align-items: center; line-height: 1.2; text-align: left; }
.user-identity__name { font-weight: 600; font-size: 0.9rem; color: var(--theme-white); }

.user-menu__dropdown {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  min-width: 200px; padding: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(18, 29, 61, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  z-index: 1040;
}
.user-menu__dropdown[hidden] { display: none; }
.user-menu__header { padding: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 0.5rem; }
.user-menu__name { font-weight: 600; font-size: 0.95rem; color: var(--theme-white); margin-bottom: 0.25rem; }
.user-menu__role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }
.user-menu__item {
  width: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: none; border-radius: 0.5rem;
  background: transparent; color: var(--theme-white);
  font-weight: 500; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s ease;
  /* .user-menu__item is used on <button> AND on <a> links (dealer design-
     comparison links). Kill the default anchor underline and keep the menu
     text colour so links read identically to the button items. */
  text-decoration: none;
}
.user-menu__item:hover { background: rgba(255, 255, 255, 0.12); }
.user-menu__item i { width: 18px; text-align: center; opacity: 0.8; }

/* Mobile hamburger */
.navbar-toggler {
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
}
.navbar-toggler:hover { background: rgba(255, 255, 255, 0.15); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.navbar-toggler-icon { width: 22px; height: 22px; }

/* Mobile collapsible menu with glassmorphic navy backdrop */
.header-collapse {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(18, 29, 61, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 1020;
}
.header-collapse.show { max-height: calc(100vh - 80px); opacity: 1; overflow-y: auto; }
.header-collapse__content { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

.mobile-title { padding: 0.75rem; background: rgba(255, 255, 255, 0.05); border-radius: 0.5rem; margin-bottom: 0.5rem; }
.mobile-title .auction-title { font-size: 1.1rem; margin-bottom: 0.35rem; }
.mobile-title .auction-meta {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.75);
}
.mobile-time {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--theme-white); font-size: 0.9rem;
  display: flex; align-items: center;
}
.mobile-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 0.5rem 0; }
.mobile-nav-btn {
  width: 100%;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: none; border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-white);
  font-weight: 500; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s ease;
  text-align: left;
}
.mobile-nav-btn:hover { background: rgba(255, 255, 255, 0.15); }
.mobile-nav-btn:active { transform: scale(0.98); }
.mobile-nav-btn.active { background: rgba(13, 110, 253, 0.25); border: 1px solid rgba(13, 110, 253, 0.5); }
.mobile-nav-btn i { width: 20px; text-align: center; font-size: 1.1rem; }
.mobile-nav-btn--primary { background: var(--theme-success-dark); color: var(--theme-white); font-weight: 600; }
.mobile-nav-btn--primary:hover { background: var(--theme-success-darker); }
.mobile-nav-btn--danger { background: rgba(220, 53, 69, 0.2); color: #ff6b7a; }
.mobile-nav-btn--danger:hover { background: rgba(220, 53, 69, 0.3); }

@media (max-width: 767px) {
  .app-header .container-fluid { padding: 0.5rem 0.75rem; }
  .header-brand { gap: 0.65rem; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .auction-title { font-size: 1.15rem; }
  .header-time { font-size: 0.8rem; padding: 0.35rem 0.7rem; }
}

/* ============================================================
   6. Card headers — match reference (h6 card-title + fs-5)
   ============================================================ */
.card .card-header.bg-white { background-color: var(--theme-white) !important; }
.card .card-title { color: var(--theme-text); }

/* Connection status pill inside header (live auction) */
.connection-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--theme-white);
  font-size: 0.8rem; font-weight: 500;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--theme-danger);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease;
}
/* Three connection states (applies at every width): connecting = yellow
   (initial paint), connected = green, disconnected = red. The bare
   .status-dot fallback stays red in case a code path leaves it classless. */
.status-dot.connecting { background: var(--theme-warning); }
.status-dot.connected { background: #5fe394; }
.status-dot.disconnected { background: var(--theme-danger); }

/* ============================================================
   7. Vehicle gallery + thumbnail strip
   (specs/ui-reference/components/vehicle-details/*.scss)
   ============================================================ */
.vehicle-gallery { margin-top: 1rem; }
.vehicle-gallery__main {
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.02));
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.vehicle-gallery__main-trigger {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.vehicle-gallery__main-trigger:focus-visible { outline: 3px solid var(--theme-accent-blue); outline-offset: 2px; }
.vehicle-gallery__main-image {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.vehicle-gallery__main-trigger:hover .vehicle-gallery__main-image,
.vehicle-gallery__main-trigger:focus-visible .vehicle-gallery__main-image {
  transform: scale(1.01); filter: brightness(1.02);
}
.vehicle-gallery__thumbnails { overflow-x: auto; padding-bottom: 0.25rem; }

.thumbnail-btn {
  border: 1px solid transparent; border-radius: 0.5rem;
  padding: 0; width: 72px; height: 56px; overflow: hidden;
  background-color: var(--theme-white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.thumbnail-btn:focus-visible { outline: 3px solid var(--theme-accent-blue); outline-offset: 2px; }
.thumbnail-btn__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbnail-btn--active {
  border-color: var(--theme-accent-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* ============================================================
   8. Activity chip (vehicle-details footer + planned lots)
   ============================================================ */
.activity-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  background-color: var(--theme-light);
  color: var(--theme-dark);
  cursor: pointer; transition: all 0.2s ease;
  font-weight: 500; text-decoration: none;
}
.activity-chip:hover {
  background-color: #dee2e6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.activity-chip:focus { outline: 2px solid var(--theme-primary); outline-offset: 2px; }

/* ============================================================
   9. Current status — lot status badge + reserve-met pulse
   ============================================================ */
.lot-status-badge { min-height: 60px; }
/* "Reserve met" / "On sale" badge — high-contrast dark chip matching the
   reference prototype (fill #212529 sampled from it, white label, 0.375rem
   radius — deliberately NOT a pill). Replaces the old blue Bootstrap pill,
   which did not read as clearly on the light Current Status card.
   NO pulse animation: pulse-subtle animates opacity 1 -> 0.8, which blends
   the chip with the card behind it and renders it ~#383C3F instead of the
   solid #212529 the prototype specifies. The high-contrast dark chip is a
   bigger salience jump than the old blue pill + a flicker, so the motion is
   not needed to carry the "this lot can be hammered" cue. */
.reserve-met-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #212529;
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.3rem 0.55rem;
  font-weight: 600;
}
/* Check glyph, met-state only (see auctioneer.html — the same element also
   renders "On sale"). A ::before survives the textContent writes that would
   destroy an inline <svg> child; mask + currentColor keeps it on the label
   colour. */
.reserve-met-badge--met::before {
  content: "";
  flex: 0 0 auto;
  width: 0.85em;
  height: 0.85em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================================
   10. Live-auction PoC widgets
   ============================================================ */

/* --- Bootstrap table touches (dealers, bids, planned lots) --- */
.table > :not(caption) > * > * { padding: 0.4rem 0.6rem; }
.table thead th { color: var(--theme-text-muted); background: var(--theme-light); }
/* Pin the dealer-list column headings while the list scrolls (#59). The scroll
   container is the .card-body.bottom-scroll that wraps the table directly (no
   .table-responsive in between — that wrapper had no max-height and broke the
   pin). th-level sticky (not just thead.sticky-top) is the robust cross-browser
   form for tables, and an opaque background stops striped rows showing through
   the pinned row. Same pattern as the bid-history table. */
#dealerTable thead.sticky-top th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--theme-light);
}
.table.table-hover > tbody > tr:hover > * { background-color: rgba(var(--theme-primary-rgb), 0.05); }
.table.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(0, 0, 0, 0.015); }
.table tbody td { vertical-align: middle; }

/* --- Feedback banners (inline below control panels) --- */
.feedback {
  padding: 0.5rem 0.75rem;
  border-radius: var(--theme-radius);
  font-size: 0.875rem; display: none;
  margin-top: 0.5rem;
}
.feedback--visible { display: block; }
.feedback--success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.feedback--error   { background: #f8d7da; color: #58151c; border: 1px solid #f1aeb5; }

/* --- Dealer hammer progress bar (sliding indicator) ---
   specs/screens/live-auction.md → Dealer status card → "Hammer-stage
   progress bar (horizontal, with sliding indicator)".
   specs/design/06-motion.md → "Sliding left position, 0.5 s
   cubic-bezier, as hammer state advances." */
.hammer-progress {
  position: relative;
  margin: 0.5rem 0 0.75rem 0;
}
.hammer-progress__track {
  position: relative;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}
.hammer-progress__indicator {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 12.5%;       /* NONE: at the start of "Accepting bids" segment */
  background: var(--theme-primary);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s ease;
}
.hammer-progress[data-state="GOING_ONCE"]  .hammer-progress__indicator { width: 37.5%; background: var(--theme-warning); }
.hammer-progress[data-state="GOING_TWICE"] .hammer-progress__indicator { width: 62.5%; background: var(--theme-warning); }
.hammer-progress[data-state="SOLD"]        .hammer-progress__indicator { width: 100%;  background: var(--theme-success-dark); }
.hammer-progress__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.hammer-progress__step {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-text-muted);
  padding: 0.2rem 0.25rem;
  transition: color 0.3s ease;
}
.hammer-progress__step.is-active { color: var(--theme-text); }
.hammer-progress__step.is-done   { color: var(--theme-text); opacity: 0.7; }

/* --- Toast notifications --- */
/* specs/features/09-notifications.md: bottom-right, 12 px inset,
   stack newest-on-top, severity-coded backgrounds. */
.toast-container {
  position: fixed; z-index: 999999;
  bottom: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 360px;
}
.custom-toast {
  background: var(--theme-primary);
  color: var(--theme-white);
  padding: 0.75rem 1rem;
  border-radius: var(--theme-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.custom-toast.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.custom-toast__title {
  font-weight: 600; font-size: 0.875rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.custom-toast__body { font-size: 0.95rem; }
.custom-toast--success { background: var(--theme-success-dark); }
.custom-toast--error   { background: var(--theme-danger); }
.custom-toast--warning { background: var(--theme-primary); }  /* spec: warning is brand orange */
.custom-toast--info    { background: var(--theme-text); }

/* --- Winner overlay (dealer: "YOU WON!" dialog) --- */
.winner-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.winner-overlay.visible { display: flex; }
.winner-card {
  background: var(--theme-white);
  padding: 2.5rem 3rem;
  border-radius: var(--theme-radius-lg);
  text-align: center;
  max-width: 420px; position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.winner-card h2 { color: var(--theme-success-dark); font-size: 2rem; margin-bottom: 0.5rem; }
.winner-card p { color: var(--theme-text); font-size: 1rem; margin-bottom: 1.5rem; }

/* --- Acknowledge overlay (specs/features/05-messaging.md "Acknowledge
   overlay"). DEALER-only: surfaces an auctioneer→dealer message and blocks
   bidding until the dealer clicks "Ok". The overlay (bare .ack-overlay) is
   position:ABSOLUTE, inset:0 — it covers ONLY the #dealerBidPanel card it
   lives inside (the panel is position:relative), so the rest of the page
   (message threads #askThread, lots, etc.) stays interactive; only bidding is
   blocked, and that block is enforced in JS (isBiddingBlockedByAck), not by
   the overlay's coverage (issue #31). (The auctioneer had a full-viewport
   .ack-overlay--fixed variant for the lot-note auto-overlay; both were removed
   when notes moved to the inline #lotNotesPanel — specs/features/27-lot-notes.md.)

   IMPORTANT — do NOT drop z-index:1080 back to a small value when scoping this
   to the panel. Bug #29 (title clipped under the fixed header) was a z-index
   problem, NOT a position problem: #dealerBidPanel is position:relative with
   z-index:auto, so it is NOT a stacking context, and the old overlay's
   z-index:30 therefore competed in the ROOT stacking context, lost to the
   fixed page header (.app-header, z-index:1030 in this file), and the header
   painted OVER the card's top where they overlapped (e.g. when the panel is
   scrolled up under the sticky header). Keeping z-index:1080 while scoped to
   the panel is exactly what keeps the whole card (title + scrollable body + Ok)
   painting above the header — un-clipped — even though the backdrop only
   covers the bid panel. 1080 stays below the sound-nudge banner (1090 in
   dealer.html). The backdrop captures every click over the panel (no
   pointer-events:none) so the +/- steppers behind it are unreachable while
   shown. Verified precondition: no ancestor on the #dealerBidPanel →
   .dealer-bid-split → .dealer-bid-unit → .dealer-grid → .app-container chain
   forms a stacking context (no opacity<1 / isolation / mix-blend-mode /
   non-auto z-index), so the 1080 vs 1030 compare happens at the root. --- */
.ack-overlay {
  position: absolute; inset: 0;
  background: rgba(30, 30, 30, 0.92);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1080;
  padding: 1.25rem;
  border-radius: inherit;
}
.ack-overlay.visible { display: flex; }
/* The full-viewport .ack-overlay--fixed variant (auctioneer) was removed with
   the auctioneer note auto-overlay it served (specs/features/27-lot-notes.md).
   The dealer acknowledge-overlay (auctioneer→dealer messages, 05-messaging.md)
   uses the absolute base .ack-overlay over its #dealerBidPanel and stays. */
.ack-overlay__card {
  background: var(--theme-white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--theme-radius-lg);
  text-align: center;
  width: 100%; max-width: 420px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  /* Bound the card to the viewport minus a header/edge safe-area so a long
     auctioneer message never grows the card under the fixed header or off the
     bottom of the screen. The card is a flex column; only the BODY scrolls
     (below) so the title and Ok button stay pinned and always visible. */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6rem);
}
.ack-overlay__title {
  color: var(--theme-primary, #e8620c);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 0.35rem;
}
.ack-overlay__lot {
  color: var(--theme-text-muted);
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.85rem;
}
.ack-overlay__body {
  color: var(--theme-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  white-space: pre-wrap; word-break: break-word;
  /* This is the only scroll region in the card: it flex-grows to fill the
     space left by the (pinned) title/lot/Ok and scrolls internally when the
     message is long. min-height:0 lets the flex child shrink below its content
     height so the CARD (capped at max-height) stops growing and the body — not
     the whole card — scrolls, keeping the title and Ok button always visible. */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* --- Lot-outcome dialog (auctioneer-only, specs/features/28-lot-outcome-dialog.md)
   Opened from a finalised (SOLD / WITHDRAWN) row in the Lots panel. Its own
   fixed overlay (not the ack-overlay, which is a dismiss-with-Ok primitive):
   this is a scrollable read-only detail panel with a close affordance and a
   click-the-backdrop-to-dismiss surface. --- */
.lot-outcome-modal {
  position: fixed; inset: 0;
  background: rgba(30, 30, 30, 0.62);
  display: none;
  align-items: flex-start; justify-content: center;
  z-index: 1085;
  padding: 2.5rem 1rem;
  overflow-y: auto;
}
.lot-outcome-modal.visible { display: flex; }
.lot-outcome-modal__card {
  background: var(--theme-white);
  border-radius: var(--theme-radius-lg);
  width: 100%; max-width: 560px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  max-height: 100%;
  display: flex; flex-direction: column;
}
.lot-outcome-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--theme-border, #e5e5e5);
}
.lot-outcome-modal__title {
  color: var(--theme-primary, #e8620c);
  font-size: 1.1rem; font-weight: 700; margin: 0;
}
.lot-outcome-modal__body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  color: var(--theme-text);
}
.lot-outcome__summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-bottom: 1rem;
}
.lot-outcome__summary--single { grid-template-columns: 1fr; }
.lot-outcome__card {
  background: var(--theme-bg-soft, #f8f9fa);
  border: 1px solid var(--theme-border, #e5e5e5);
  border-radius: var(--theme-radius, 0.5rem);
  padding: 0.6rem 0.75rem;
}
.lot-outcome__label {
  color: var(--theme-text-muted); font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.lot-outcome__name { font-weight: 600; }
.lot-outcome__company { color: var(--theme-text-muted); font-size: 0.82rem; }
.lot-outcome__amount { font-weight: 700; margin-top: 0.15rem; }
.lot-outcome__section-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--theme-text-muted);
  margin: 0.5rem 0 0.4rem;
}
.lot-outcome__row {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid var(--theme-border, #eee);
}
.lot-outcome__row:last-child { border-bottom: 0; }
.lot-outcome__row-time {
  color: var(--theme-text-muted); font-size: 0.72rem;
  flex: 0 0 auto; min-width: 3.5rem;
}
.lot-outcome__row-main { flex: 1 1 auto; word-break: break-word; }
.lot-outcome__row--msg .lot-outcome__row-main { font-style: italic; }
.lot-outcome__row-amount { flex: 0 0 auto; font-weight: 700; }
/* Lot-owner line in the outcome dialog (auctioneer-only). The company reads
   as the identity; each signed-in user of that company is a clickable chip
   that opens their message thread. Wraps, because a vendor can have several
   people online. */
.lot-outcome__owner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-bottom: 1rem;
}
.lot-outcome__owner-company { font-weight: 700; }
.lot-outcome__owner-none { color: var(--theme-text-muted); font-size: 0.82rem; }
.lot-outcome__owner-btn {
  display: inline-flex; align-items: center;
  border: 1px solid var(--theme-border, #e5e5e5);
  border-radius: 999px;
  background: var(--theme-bg-soft, #f8f9fa);
  padding: 0.15rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.lot-outcome__owner-btn:hover { background: rgba(0, 0, 0, 0.06); }

.lot-outcome__perf {
  background: var(--theme-bg-soft, #f8f9fa);
  border: 1px solid var(--theme-border, #e5e5e5);
  border-radius: var(--theme-radius, 0.5rem);
  padding: 0.15rem 0.75rem;
  margin-bottom: 1rem;
}
.lot-outcome__perf-row {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid var(--theme-border, #eee);
}
.lot-outcome__perf-row:last-child { border-bottom: 0; }
.lot-outcome__perf-label {
  flex: 0 0 auto; min-width: 5.5rem;
  color: var(--theme-text-muted); font-size: 0.8rem; font-weight: 600;
}
.lot-outcome__perf-value { flex: 1 1 auto; font-weight: 700; }
.lot-outcome__perf-delta { flex: 0 0 auto; font-weight: 600; }
.lot-outcome__perf-delta--muted { color: var(--theme-text-muted); font-weight: 500; }
.lot-outcome__empty { color: var(--theme-text-muted); padding: 0.6rem 0; }
.lot-outcome__note {
  color: var(--theme-text-muted); font-size: 0.75rem; margin-top: 0.75rem;
}

/* --- Login screen (dealer entry) --- */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff4e6 100%);
  padding: 1rem;
}
.login-box {
  background: var(--theme-white);
  padding: 2.5rem;
  border-radius: var(--theme-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%; max-width: 420px;
}
.login-box img { height: 48px; margin-bottom: 1.5rem; }
.login-box h1 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--theme-text); }
.login-box p { color: var(--theme-text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   11. Animations
   ============================================================ */
@keyframes pulse-warning {
  0%   { box-shadow: 0 0 0 0 rgba(149, 149, 149, 0.7); }
  70%  { box-shadow: 0 0 0 5px rgba(149, 149, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(149, 149, 149, 0); }
}
.countdown-active { animation: pulse-warning 1.5s infinite; }

@keyframes bootstrap-spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner-border { animation: bootstrap-spinner 0.75s linear infinite; }

@keyframes pulse-subtle {
  0%   { opacity: 1; }
  50%  { opacity: 0.8; }
  100% { opacity: 1; }
}

/* ============================================================
   12. Debug panel — preserved verbatim (toggled by Ctrl+Shift+D)
   ============================================================ */

/* The CSS variable is the single source of truth for the panel's
   height. It's read both by the panel itself and by the body's
   reserve-bottom so opening the panel SHRINKS the page rather than
   covering it. The user can drag the resize handle to set this
   value; debug.js persists it in localStorage. Capped at 50 % of
   the viewport so the panel can never dominate the page (debug.js
   enforces the same cap on the resize handle and on restore). */
:root { --debug-panel-height: 50vh; }

.debug-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--debug-panel-height);
  min-height: 160px;
  background: #11161c;
  color: #d9e1ea;
  border-top: 1px solid #2a3340;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  z-index: 99999;
  display: none;
  flex-direction: column;
}
.debug-panel[data-open="true"] { display: flex; }

/* When the panel is open, the scroll container (.app-container — NOT body,
   which is pinned to one viewport) reserves a slice at its bottom so the page
   surface above flows around the fixed panel instead of being overlapped. The
   `box-sizing:border-box` that makes this behave (no spurious scroll when short,
   real scroll room when tall) lives on `.app-container` itself. */
body.has-debug-panel .app-container {
  padding-bottom: var(--debug-panel-height);
}
body.debug-panel-resizing { user-select: none; cursor: row-resize; }

/* Drag handle along the top edge — 6 px tall, hover-highlights so the
   affordance is discoverable. */
.debug-panel__resize {
  height: 6px;
  background: #1b2330;
  cursor: row-resize;
  border-bottom: 1px solid #2a3340;
  flex: 0 0 auto;
  transition: background-color 120ms ease;
}
.debug-panel__resize:hover,
body.debug-panel-resizing .debug-panel__resize { background: #2f8aff; }

.debug-panel__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #0b1016;
  border-bottom: 1px solid #2a3340;
}
.debug-panel__tabs { display: flex; gap: 4px; }
.debug-panel__tab,
.debug-panel__action {
  background: #1b2330;
  border: 1px solid #2a3340;
  color: #d9e1ea;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  border-radius: 3px;
}
.debug-panel__tab:hover,
.debug-panel__action:hover { background: #263242; }
.debug-panel__tab.is-active {
  background: #263242;
  border-color: #4a9eff;
  color: #fff;
}
.debug-panel__bar-spacer { flex: 1; }
.debug-panel__actions { display: flex; gap: 4px; }

.debug-panel__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c3ccd7;
  cursor: pointer;
  user-select: none;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
}
.debug-panel__toggle:hover { border-color: #2a3340; background: #161d26; }
.debug-panel__toggle[hidden] { display: none; }
.debug-panel__toggle input { accent-color: #4a9eff; cursor: pointer; }

.debug-panel__body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.debug-panel__pane { flex: 1; overflow: auto; padding: 8px 10px; }
.debug-panel__pane[hidden] { display: none; }

.debug-panel__empty { color: #6b7785; padding: 24px; text-align: center; }

.debug-panel__events { display: flex; flex-direction: column; }
.debug-panel__events-head,
.debug-panel__event-row {
  display: grid;
  grid-template-columns: 14px 68px 48px minmax(0, 1fr) 60px 56px;
  gap: 8px;
  align-items: center;
  padding: 2px 6px;
  line-height: 1.4;
}
.debug-panel__events-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0b1016;
  border-bottom: 1px solid #2a3340;
  color: #6b7785;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 4px;
  padding-bottom: 4px;
}
.debug-panel__event { border-bottom: 1px solid #141a22; }
.debug-panel__event--clickable { cursor: pointer; }
.debug-panel__event--clickable .debug-panel__event-row:hover { background: #161d26; }
.debug-panel__event--expanded { background: #141b23; }
.debug-panel__event--expanded .debug-panel__event-row { background: #161d26; }
.debug-panel__caret { color: #6b7785; text-align: center; font-size: 10px; }
.debug-panel__caret--empty { visibility: hidden; }
.debug-panel__time { color: #6b7785; font-size: 11px; font-variant-numeric: tabular-nums; }
.debug-panel__duration { color: #6b7785; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }

.debug-panel__event-err { margin: 0 6px 4px 94px; font-size: 11px; color: #ff6b6b; }
.debug-panel__err {
  color: #ff6b6b; font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; max-width: 100%;
}

.debug-panel__transport {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  background: #1b2330;
  color: #d9e1ea;
}
.debug-panel__transport--http { background: #1e3a5f; color: #8cc8ff; }
.debug-panel__transport--ws { background: #3a2a1e; color: #ffa94d; }
.debug-panel__transport--audio { background: #1c3a2e; color: #6bdcb5; }

.debug-panel__name-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.debug-panel__name-tag--query { background: #14283f; color: #8cc8ff; border: 1px solid #1e3a5f; }
.debug-panel__name-tag--mutation { background: #2a1c3f; color: #c79bff; border: 1px solid #3f2a5a; }
.debug-panel__name-tag--subscription { background: #1c2a14; color: #9ece6a; border: 1px solid #2a3f1e; }
.debug-panel__name-tag--ws { background: #2a1c14; color: #ffa94d; border: 1px solid #3a2a1e; }
.debug-panel__name-tag--sound { background: #12332b; color: #6bdcb5; border: 1px solid #1c3a2e; }

.debug-panel__phase {
  font-size: 10px; font-weight: 600;
  text-transform: lowercase; letter-spacing: 0.02em;
  white-space: nowrap; color: #6b7785;
}
.debug-panel__phase--ok { color: #9ece6a; }
.debug-panel__phase--err { color: #ff6b6b; }
.debug-panel__phase--data { color: #8cc8ff; }
.debug-panel__phase--muted { color: #6b7785; }

.debug-panel__payload {
  background: #0b1016; border: 1px solid #2a3340; border-top: none;
  padding: 8px 10px; margin: 0 6px 4px 28px;
  max-height: 240px; overflow: auto;
  white-space: pre-wrap; word-break: break-all;
  color: #b8c5d4; font: inherit;
}

.debug-panel__latency-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 10px; align-items: center;
}
.debug-panel__series { display: flex; gap: 8px; align-items: center; }
.debug-panel__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.debug-panel__series--http .debug-panel__swatch { background: #4a9eff; }
.debug-panel__series--ws .debug-panel__swatch { background: #ffa94d; }
.debug-panel__stat-empty { color: #6b7785; }
.debug-panel__hint { color: #6b7785; margin-left: auto; }

.debug-panel__graph {
  width: 100%; height: 140px;
  background: #0b1016; border: 1px solid #2a3340;
  border-radius: 3px; margin-bottom: 10px;
}
.debug-panel__latency-samples { display: flex; flex-direction: column; gap: 1px; }
.debug-panel__sample { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 8px; padding: 2px 6px; }
.debug-panel__sample--head { color: #6b7785; border-bottom: 1px solid #2a3340; padding-bottom: 4px; margin-bottom: 4px; }
.debug-panel__sample-http { color: #4a9eff; }
.debug-panel__sample-ws { color: #ffa94d; }

/* ============================================================
   9. Non-prod environment watermark (env-banner.js)
   ------------------------------------------------------------
   Dense repeating diagonal watermark of the env name (e.g. STAGING2)
   confined to the top menu-bar band on every non-prod page — mirrors
   the watermark on the primary Autorola non-prod sites. prod1 never
   renders it (SHOW_ENV_BANNER is false there).

   .env-watermark is a fixed, pointer-events:none band clipped to the
   menu-bar height and attached to <html>, so it never intercepts
   clicks, never shifts layout, and survives the body.innerHTML reset
   on the missing-auctionId error screen. .env-watermark__fill is an
   oversized inner layer rotated so the tiled text runs diagonally and
   still fills the band after rotation. The env-name text and its faint
   fill live in the SVG data URI set by env-banner.js.
   ============================================================ */
.env-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}
.env-watermark__fill {
  position: absolute;
  top: -150%;
  left: -25%;
  width: 150%;
  height: 400%;
  background-repeat: repeat;
  transform: rotate(-30deg);
}

/* ============================================================
   Light icons (FontAwesome 6.7.2 Classic Light SVGs, self-hosted)
   Renders each used icon as a CSS mask so it inherits currentColor
   (white on CTAs, muted grey, orange accents) exactly like the font
   did. Replaces the FA Free *solid* glyph for these names; the FA
   Free CDN stays loaded only for exceptions (e.g. the bid-button
   fa-gavel, kept emphasised per the NF_2027 prototype). SVGs deploy
   from app/assets/icons/fa/ (s3_cloudfront.tf fileset).
   ============================================================ */
i.fa-angle-down, i.fa-arrow-left-long, i.fa-arrow-right, i.fa-arrow-up-right-from-square, i.fa-bell, i.fa-bullhorn, i.fa-calendar, i.fa-calendar-days, i.fa-car, i.fa-car-rear, i.fa-car-side, i.fa-chart-simple, i.fa-check, i.fa-chevron-down, i.fa-chevron-right, i.fa-circle, i.fa-circle-chevron-left, i.fa-circle-dot, i.fa-circle-info, i.fa-circle-notch, i.fa-circle-play, i.fa-circle-stop, i.fa-clock, i.fa-clock-rotate-left, i.fa-comment, i.fa-comments, i.fa-couch, i.fa-eye, i.fa-file-code, i.fa-file-csv, i.fa-flask, i.fa-gauge, i.fa-gear, i.fa-gears, i.fa-globe, i.fa-hourglass-half, i.fa-image, i.fa-language, i.fa-link, i.fa-list, i.fa-list-check, i.fa-location-dot, i.fa-lock, i.fa-magnifying-glass, i.fa-microphone, i.fa-microphone-slash, i.fa-minus, i.fa-engine, i.fa-palette, i.fa-paper-plane, i.fa-pause, i.fa-pen, i.fa-play, i.fa-plus, i.fa-rectangle-list, i.fa-right-from-bracket, i.fa-right-to-bracket, i.fa-rotate, i.fa-rotate-left, i.fa-signal-stream, i.fa-star, i.fa-stop-circle, i.fa-grid-2, i.fa-tag, i.fa-triangle-exclamation, i.fa-trophy, i.fa-user, i.fa-users, i.fa-volume-high, i.fa-volume-xmark, i.fa-wifi, i.fa-xmark {
  display: inline-block; width: 1em; height: 1em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  vertical-align: -0.125em;
}
i.fa-angle-down::before, i.fa-arrow-left-long::before, i.fa-arrow-right::before, i.fa-arrow-up-right-from-square::before, i.fa-bell::before, i.fa-bullhorn::before, i.fa-calendar::before, i.fa-calendar-days::before, i.fa-car::before, i.fa-car-rear::before, i.fa-car-side::before, i.fa-chart-simple::before, i.fa-check::before, i.fa-chevron-down::before, i.fa-chevron-right::before, i.fa-circle::before, i.fa-circle-chevron-left::before, i.fa-circle-dot::before, i.fa-circle-info::before, i.fa-circle-notch::before, i.fa-circle-play::before, i.fa-circle-stop::before, i.fa-clock::before, i.fa-clock-rotate-left::before, i.fa-comment::before, i.fa-comments::before, i.fa-couch::before, i.fa-eye::before, i.fa-file-code::before, i.fa-file-csv::before, i.fa-flask::before, i.fa-gauge::before, i.fa-gear::before, i.fa-gears::before, i.fa-globe::before, i.fa-hourglass-half::before, i.fa-image::before, i.fa-language::before, i.fa-link::before, i.fa-list::before, i.fa-list-check::before, i.fa-location-dot::before, i.fa-lock::before, i.fa-magnifying-glass::before, i.fa-microphone::before, i.fa-microphone-slash::before, i.fa-minus::before, i.fa-engine::before, i.fa-palette::before, i.fa-paper-plane::before, i.fa-pause::before, i.fa-pen::before, i.fa-play::before, i.fa-plus::before, i.fa-rectangle-list::before, i.fa-right-from-bracket::before, i.fa-right-to-bracket::before, i.fa-rotate::before, i.fa-rotate-left::before, i.fa-signal-stream::before, i.fa-star::before, i.fa-stop-circle::before, i.fa-grid-2::before, i.fa-tag::before, i.fa-triangle-exclamation::before, i.fa-trophy::before, i.fa-user::before, i.fa-users::before, i.fa-volume-high::before, i.fa-volume-xmark::before, i.fa-wifi::before, i.fa-xmark::before { content: none !important; }
i.fa-angle-down { -webkit-mask-image: url("assets/icons/fa/angle-down.svg"); mask-image: url("assets/icons/fa/angle-down.svg"); }
i.fa-arrow-left-long { -webkit-mask-image: url("assets/icons/fa/arrow-left-long.svg"); mask-image: url("assets/icons/fa/arrow-left-long.svg"); }
i.fa-arrow-right { -webkit-mask-image: url("assets/icons/fa/arrow-right.svg"); mask-image: url("assets/icons/fa/arrow-right.svg"); }
i.fa-arrow-up-right-from-square { -webkit-mask-image: url("assets/icons/fa/arrow-up-right-from-square.svg"); mask-image: url("assets/icons/fa/arrow-up-right-from-square.svg"); }
i.fa-bell { -webkit-mask-image: url("assets/icons/fa/bell.svg"); mask-image: url("assets/icons/fa/bell.svg"); }
i.fa-bullhorn { -webkit-mask-image: url("assets/icons/fa/bullhorn.svg"); mask-image: url("assets/icons/fa/bullhorn.svg"); }
i.fa-calendar { -webkit-mask-image: url("assets/icons/fa/calendar.svg"); mask-image: url("assets/icons/fa/calendar.svg"); }
i.fa-calendar-days { -webkit-mask-image: url("assets/icons/fa/calendar-days.svg"); mask-image: url("assets/icons/fa/calendar-days.svg"); }
i.fa-car { -webkit-mask-image: url("assets/icons/fa/car.svg"); mask-image: url("assets/icons/fa/car.svg"); }
i.fa-car-rear { -webkit-mask-image: url("assets/icons/fa/car-rear.svg"); mask-image: url("assets/icons/fa/car-rear.svg"); }
i.fa-car-side { -webkit-mask-image: url("assets/icons/fa/car-side.svg"); mask-image: url("assets/icons/fa/car-side.svg"); }
i.fa-chart-simple { -webkit-mask-image: url("assets/icons/fa/chart-simple.svg"); mask-image: url("assets/icons/fa/chart-simple.svg"); }
i.fa-check { -webkit-mask-image: url("assets/icons/fa/check.svg"); mask-image: url("assets/icons/fa/check.svg"); }
i.fa-chevron-down { -webkit-mask-image: url("assets/icons/fa/chevron-down.svg"); mask-image: url("assets/icons/fa/chevron-down.svg"); }
i.fa-chevron-right { -webkit-mask-image: url("assets/icons/fa/chevron-right.svg"); mask-image: url("assets/icons/fa/chevron-right.svg"); }
i.fa-circle { -webkit-mask-image: url("assets/icons/fa/circle.svg"); mask-image: url("assets/icons/fa/circle.svg"); }
i.fa-circle-chevron-left { -webkit-mask-image: url("assets/icons/fa/circle-chevron-left.svg"); mask-image: url("assets/icons/fa/circle-chevron-left.svg"); }
i.fa-circle-dot { -webkit-mask-image: url("assets/icons/fa/circle-dot.svg"); mask-image: url("assets/icons/fa/circle-dot.svg"); }
i.fa-circle-info { -webkit-mask-image: url("assets/icons/fa/circle-info.svg"); mask-image: url("assets/icons/fa/circle-info.svg"); }
i.fa-circle-notch { -webkit-mask-image: url("assets/icons/fa/circle-notch.svg"); mask-image: url("assets/icons/fa/circle-notch.svg"); }
i.fa-circle-play { -webkit-mask-image: url("assets/icons/fa/circle-play.svg"); mask-image: url("assets/icons/fa/circle-play.svg"); }
i.fa-circle-stop { -webkit-mask-image: url("assets/icons/fa/circle-stop.svg"); mask-image: url("assets/icons/fa/circle-stop.svg"); }
i.fa-clock { -webkit-mask-image: url("assets/icons/fa/clock.svg"); mask-image: url("assets/icons/fa/clock.svg"); }
i.fa-clock-rotate-left { -webkit-mask-image: url("assets/icons/fa/clock-rotate-left.svg"); mask-image: url("assets/icons/fa/clock-rotate-left.svg"); }
i.fa-comment { -webkit-mask-image: url("assets/icons/fa/comment.svg"); mask-image: url("assets/icons/fa/comment.svg"); }
i.fa-comments { -webkit-mask-image: url("assets/icons/fa/comments.svg"); mask-image: url("assets/icons/fa/comments.svg"); }
i.fa-couch { -webkit-mask-image: url("assets/icons/fa/couch.svg"); mask-image: url("assets/icons/fa/couch.svg"); }
i.fa-eye { -webkit-mask-image: url("assets/icons/fa/eye.svg"); mask-image: url("assets/icons/fa/eye.svg"); }
i.fa-file-code { -webkit-mask-image: url("assets/icons/fa/file-code.svg"); mask-image: url("assets/icons/fa/file-code.svg"); }
i.fa-file-csv { -webkit-mask-image: url("assets/icons/fa/file-csv.svg"); mask-image: url("assets/icons/fa/file-csv.svg"); }
i.fa-flask { -webkit-mask-image: url("assets/icons/fa/flask.svg"); mask-image: url("assets/icons/fa/flask.svg"); }
i.fa-gauge { -webkit-mask-image: url("assets/icons/fa/gauge.svg"); mask-image: url("assets/icons/fa/gauge.svg"); }
i.fa-gear { -webkit-mask-image: url("assets/icons/fa/gear.svg"); mask-image: url("assets/icons/fa/gear.svg"); }
i.fa-gears { -webkit-mask-image: url("assets/icons/fa/gears.svg"); mask-image: url("assets/icons/fa/gears.svg"); }
i.fa-globe { -webkit-mask-image: url("assets/icons/fa/globe.svg"); mask-image: url("assets/icons/fa/globe.svg"); }
i.fa-hourglass-half { -webkit-mask-image: url("assets/icons/fa/hourglass-half.svg"); mask-image: url("assets/icons/fa/hourglass-half.svg"); }
i.fa-image { -webkit-mask-image: url("assets/icons/fa/image.svg"); mask-image: url("assets/icons/fa/image.svg"); }
i.fa-language { -webkit-mask-image: url("assets/icons/fa/language.svg"); mask-image: url("assets/icons/fa/language.svg"); }
i.fa-link { -webkit-mask-image: url("assets/icons/fa/link.svg"); mask-image: url("assets/icons/fa/link.svg"); }
i.fa-list { -webkit-mask-image: url("assets/icons/fa/list.svg"); mask-image: url("assets/icons/fa/list.svg"); }
i.fa-list-check { -webkit-mask-image: url("assets/icons/fa/list-check.svg"); mask-image: url("assets/icons/fa/list-check.svg"); }
i.fa-location-dot { -webkit-mask-image: url("assets/icons/fa/location-dot.svg"); mask-image: url("assets/icons/fa/location-dot.svg"); }
i.fa-lock { -webkit-mask-image: url("assets/icons/fa/lock.svg"); mask-image: url("assets/icons/fa/lock.svg"); }
i.fa-magnifying-glass { -webkit-mask-image: url("assets/icons/fa/magnifying-glass.svg"); mask-image: url("assets/icons/fa/magnifying-glass.svg"); }
i.fa-microphone { -webkit-mask-image: url("assets/icons/fa/microphone.svg"); mask-image: url("assets/icons/fa/microphone.svg"); }
i.fa-microphone-slash { -webkit-mask-image: url("assets/icons/fa/microphone-slash.svg"); mask-image: url("assets/icons/fa/microphone-slash.svg"); }
i.fa-minus { -webkit-mask-image: url("assets/icons/fa/minus.svg"); mask-image: url("assets/icons/fa/minus.svg"); }
i.fa-engine { -webkit-mask-image: url("assets/icons/fa/engine.svg"); mask-image: url("assets/icons/fa/engine.svg"); }
i.fa-palette { -webkit-mask-image: url("assets/icons/fa/palette.svg"); mask-image: url("assets/icons/fa/palette.svg"); }
i.fa-paper-plane { -webkit-mask-image: url("assets/icons/fa/paper-plane.svg"); mask-image: url("assets/icons/fa/paper-plane.svg"); }
i.fa-pause { -webkit-mask-image: url("assets/icons/fa/pause.svg"); mask-image: url("assets/icons/fa/pause.svg"); }
i.fa-pen { -webkit-mask-image: url("assets/icons/fa/pen.svg"); mask-image: url("assets/icons/fa/pen.svg"); }
i.fa-play { -webkit-mask-image: url("assets/icons/fa/play.svg"); mask-image: url("assets/icons/fa/play.svg"); }
i.fa-plus { -webkit-mask-image: url("assets/icons/fa/plus.svg"); mask-image: url("assets/icons/fa/plus.svg"); }
i.fa-rectangle-list { -webkit-mask-image: url("assets/icons/fa/rectangle-list.svg"); mask-image: url("assets/icons/fa/rectangle-list.svg"); }
i.fa-right-from-bracket { -webkit-mask-image: url("assets/icons/fa/right-from-bracket.svg"); mask-image: url("assets/icons/fa/right-from-bracket.svg"); }
i.fa-right-to-bracket { -webkit-mask-image: url("assets/icons/fa/right-to-bracket.svg"); mask-image: url("assets/icons/fa/right-to-bracket.svg"); }
i.fa-rotate { -webkit-mask-image: url("assets/icons/fa/rotate.svg"); mask-image: url("assets/icons/fa/rotate.svg"); }
i.fa-rotate-left { -webkit-mask-image: url("assets/icons/fa/rotate-left.svg"); mask-image: url("assets/icons/fa/rotate-left.svg"); }
i.fa-signal-stream { -webkit-mask-image: url("assets/icons/fa/signal-stream.svg"); mask-image: url("assets/icons/fa/signal-stream.svg"); }
i.fa-star { -webkit-mask-image: url("assets/icons/fa/star.svg"); mask-image: url("assets/icons/fa/star.svg"); }
i.fa-stop-circle { -webkit-mask-image: url("assets/icons/fa/stop-circle.svg"); mask-image: url("assets/icons/fa/stop-circle.svg"); }
i.fa-grid-2 { -webkit-mask-image: url("assets/icons/fa/grid-2.svg"); mask-image: url("assets/icons/fa/grid-2.svg"); }
i.fa-tag { -webkit-mask-image: url("assets/icons/fa/tag.svg"); mask-image: url("assets/icons/fa/tag.svg"); }
i.fa-triangle-exclamation { -webkit-mask-image: url("assets/icons/fa/triangle-exclamation.svg"); mask-image: url("assets/icons/fa/triangle-exclamation.svg"); }
i.fa-trophy { -webkit-mask-image: url("assets/icons/fa/trophy.svg"); mask-image: url("assets/icons/fa/trophy.svg"); }
i.fa-user { -webkit-mask-image: url("assets/icons/fa/user.svg"); mask-image: url("assets/icons/fa/user.svg"); }
i.fa-users { -webkit-mask-image: url("assets/icons/fa/users.svg"); mask-image: url("assets/icons/fa/users.svg"); }
i.fa-volume-high { -webkit-mask-image: url("assets/icons/fa/volume-high.svg"); mask-image: url("assets/icons/fa/volume-high.svg"); }
i.fa-volume-xmark { -webkit-mask-image: url("assets/icons/fa/volume-xmark.svg"); mask-image: url("assets/icons/fa/volume-xmark.svg"); }
i.fa-wifi { -webkit-mask-image: url("assets/icons/fa/wifi.svg"); mask-image: url("assets/icons/fa/wifi.svg"); }
i.fa-xmark { -webkit-mask-image: url("assets/icons/fa/xmark.svg"); mask-image: url("assets/icons/fa/xmark.svg"); }

/* ------------------------------------------------------------------ *
 * Lot notes (specs/features/27-lot-notes.md).
 * Shared by dealer.html, auctioneer.html and planned-lots.html (all
 * link style.css). Company-shared free-text notes on a lot, rendered as a
 * list + an add row inside the #lotNotesModal MANAGE dialog. Kept visually
 * quiet so it never competes with the bid controls.
 * ------------------------------------------------------------------ */
/* Notes PANEL (specs/features/27-lot-notes.md): a READ-only sticky-note card,
   now its OWN distinct bordered panel in the live-screen layout — NOT embedded
   in the vehicle description (mve request #53). On the dealer it renders below
   the bid + bid-history unit and above the vehicle description; on the
   auctioneer it is a full-width band below the Bid Controls + Lot Controls deck
   and above the vehicle description. Shown ONLY when the current lot has ≥1
   visible note (renderLotNotesPanel() toggles the [hidden] attribute — the card
   IS the grid/flex item, so [hidden] collapses it with no empty gap). The
   sticky-note amber tint + heading keep its identity, while the card shadow +
   rounded border make it read as a separate panel like the sibling cards.
   Margin is 0: inter-panel spacing is the grid/flex `gap`. Reuses the shared
   .lot-notes-list / .lot-notes-item item chrome below for each entry. */
.lot-notes-panel {
  margin: 0;
  padding: 12px 14px;
  background: #fffdf3;
  border: 1px solid #ecdfb3;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.lot-notes-panel[hidden] { display: none; }
.lot-notes-panel__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a6d1f;
  margin-bottom: 8px;
}
.lot-notes-panel__head i { font-size: 0.85rem; }
/* The panel reuses .lot-notes-list; drop its dialog-oriented bottom margin so
   the last note sits flush inside the card. */
.lot-notes-panel .lot-notes-list { margin-bottom: 0; }

/* ------------------------------------------------------------------
   Owner sale-approval PANEL (specs/features/31-lot-owner-sale-approval.md)
   ------------------------------------------------------------------
   Shared by dealer.html and auctioneer.html — the party it serves is the
   lot's VENDOR, who may be signed in on either surface, so the chrome lives
   here beside .lot-notes-panel rather than in one page's stylesheet (both
   pages load style.css AND dealer.css).

   Same mechanics as .lot-notes-panel: the card IS the grid/flex item and
   renderLotOwnerPanel() toggles its [hidden] attribute, so it collapses to
   nothing — no empty card, no column gap — for the viewer who does not own
   the current lot (which is nearly every viewer).

   TRAP, and the reason for the explicit `!important` rule below: this panel
   is laid out with `display: flex`, and a CLASS rule's `display:flex` beats
   the user-agent's `[hidden] { display: none }`. Without an explicit
   [hidden] rule at class/id specificity the panel would be permanently
   visible — an empty blue band on every dealer's screen. Do not remove it,
   and keep it AFTER the display:flex declaration.

   Blue = informational/neutral (you own this lot); green = you have
   committed. The tint change is deliberately paired with a text change and
   an icon change, never colour alone (AA).                                */
.lot-owner-panel {
  margin: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f4f8fd;
  border: 1px solid #b6d4f2;
  border-left: 4px solid #2f5d8a;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.lot-owner-panel[hidden],
#lotOwnerPanel[hidden] { display: none !important; }
.lot-owner-panel.is-approved {
  background: #f2f9f4;
  border-color: #b7dfc2;
  border-left-color: #1e7b3c;
}
.lot-owner-panel__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
  color: #2f5d8a;
}
.lot-owner-panel.is-approved .lot-owner-panel__head { color: #1e7b3c; }
.lot-owner-panel__head i { font-size: 0.9rem; }
/* The standing price the consent is about. Big enough to be the thing the
   eye lands on, because "at what price" is the whole content of the
   decision. */
.lot-owner-panel__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}
.lot-owner-panel__body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #333;
}
/* Secondary line: the "the bid has risen since you approved" note, and the
   "too late to withdraw" note. Quieter than the body, never the only
   carrier of meaning. */
.lot-owner-panel__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5a6570;
}
.lot-owner-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
/* Full-width tap target on a phone; auto on wider screens. 44px min height
   is the mobile tap-target floor the dealer surface uses elsewhere. */
.lot-owner-panel__actions .btn { min-height: 38px; }
@media (max-width: 575.98px) {
  .lot-owner-panel__actions { flex-direction: column; align-items: stretch; }
  .lot-owner-panel__actions .btn { width: 100%; min-height: 44px; }
}

/* The inline .lot-notes-card was retired — notes are reached only via the
   per-row note icon → #lotNotesModal dialog (specs/features/27-lot-notes.md).
   The list/item/add rules below are shared by that dialog on every surface. */
.lot-notes-list {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lot-notes-empty {
  font-size: 0.82rem;
  padding: 2px 0;
}
.lot-notes-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 6px 8px;
}
.lot-notes-item__body { min-width: 0; flex: 1 1 auto; }
.lot-notes-item__meta {
  font-size: 0.7rem;
  font-weight: 600;
  color: #5a6470;
  margin-bottom: 1px;
}
.lot-notes-item__text {
  font-size: 0.86rem;
  color: #23272c;
  word-break: break-word;
  white-space: pre-wrap;
}
.lot-notes-item__rm {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #aab1ba;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
.lot-notes-item__rm:hover { color: #dc3545; background: #fdeef0; }
.lot-notes-add {
  display: flex;
  gap: 6px;
}
.lot-notes-add__input { flex: 1 1 auto; font-size: 0.86rem; }
.lot-notes-add__btn { flex: 0 0 auto; white-space: nowrap; }
