/* The hidden attribute always wins (a display rule on a class used to override it: the
   chat's "tap a photo" bar showed when it shouldn't). */
[hidden] { display: none !important; }

/* Carfoglio design system — from the approved design/ exports.
   Palette: page #ECEAE6, surfaces #FAFAF8, ink #16181D, accent #2C4964,
   success #3E8E5A, warning #C88A2C on #9A6B1E text. */

:root {
  --bg: #ECEAE6;
  --surface: #FAFAF8;
  --white: #FFF;
  --ink: #16181D;
  --muted: #6B7075;
  --faint: #8A8E93;
  --accent: #2C4964;
  --accent-ink: #FAFAF8;
  --ok: #3E8E5A;
  --warn: #C88A2C;
  --warn-ink: #9A6B1E;
  --err: #B3261E;
  --line: rgba(22, 24, 29, 0.08);
  --line-strong: rgba(22, 24, 29, 0.14);
  --r-card: 12px;
  --r-input: 9px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
}
h1 { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
a { color: var(--accent); }

/* ===== Shells ===== */
/* Public pages: simple centered column */
.shell-public main { max-width: 560px; margin: 0 auto; padding: 32px 20px 64px; }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; gap: 14px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* Logged-in pages: dark sidebar + content */
.shell-app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: var(--surface);
  display: flex; flex-direction: column; padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 22px; font-size: 14px; font-weight: 600; color: var(--surface); text-decoration: none; }
.sidebar-brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #7FA8CE; flex: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--r-input); font-size: 14px; text-decoration: none;
  color: rgba(250, 250, 248, 0.62);
}
.sidebar nav a.active { background: rgba(250, 250, 248, 0.1); color: var(--surface); font-weight: 600; }
.sidebar-foot {
  margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(250, 250, 248, 0.1);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none;
}
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .who div:first-child { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .linklike { color: rgba(250, 250, 248, 0.5); font-size: 11px; padding: 0; }
.sidebar-foot .linklike:hover { color: var(--surface); }
.sidebar .lang-switch { color: rgba(250, 250, 248, 0.5); border-color: rgba(250, 250, 248, 0.2); }
.shell-app > main { padding: 32px 40px 64px; max-width: 1180px; min-width: 0; width: 100%; }

@media (max-width: 900px) {
  .shell-app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; gap: 12px; }
  .sidebar-brand { padding: 0; }
  .sidebar nav { flex-direction: row; }
  .sidebar-foot { margin: 0 0 0 auto; padding: 0; border: none; }
  .sidebar-foot .who { display: none; }
  .shell-app > main { padding: 20px 16px 64px; }
}

/* ===== Buttons, links, pills, chips ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-input);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer;
}
.btn-primary { height: 44px; padding: 0 20px; border: none; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.btn-dashed { border: 1px dashed rgba(22, 24, 29, 0.25); background: transparent; height: 38px; font-size: 13px; }
.btn-small { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-danger { color: var(--err); border-color: rgba(179, 38, 30, 0.4); background: var(--white); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.lang-switch { font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-draft { background: rgba(22, 24, 29, 0.06); color: var(--muted); }
.status-published { background: rgba(62, 142, 90, 0.12); color: var(--ok); }
.status-sold { background: rgba(22, 24, 29, 0.06); color: var(--faint); }
.status-archived { background: rgba(22, 24, 29, 0.06); color: var(--faint); }

.chip {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; background: rgba(44, 73, 100, 0.08); color: var(--accent);
}
.chip-off { background: rgba(22, 24, 29, 0.05); color: #B0B3B7; }

.micro-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Cards & page furniture ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash-error { background: rgba(179, 38, 30, 0.08); color: var(--err); border: 1px solid rgba(179, 38, 30, 0.25); }
.flash-success { background: rgba(62, 142, 90, 0.1); color: var(--ok); border: 1px solid rgba(62, 142, 90, 0.3); }
.empty-state { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.inline { display: inline; }
.hidden { display: none; }

/* ===== Forms ===== */
label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400; }
input, select, textarea {
  padding: 0 13px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-input);
  font: inherit; font-size: 14.5px; background: var(--white); color: var(--ink); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; padding: 10px 13px; height: auto; line-height: 1.45; }
select { padding-right: 8px; }
.field-error { color: var(--err); font-size: 13px; text-transform: none; letter-spacing: 0; }
label .muted { text-transform: none; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ===== Auth pages ===== */
.auth-card { max-width: 400px; margin: 24px auto 0; }
.hero { text-align: center; padding: 48px 0; }
.tagline { color: var(--muted); font-size: 18px; }

/* ===== Inventory (dashboard) ===== */
.inv-list { display: flex; flex-direction: column; gap: 10px; }
.inv-row {
  display: grid; grid-template-columns: 76px minmax(0, 1.9fr) minmax(0, 1.3fr) 28px;
  gap: 16px; align-items: center; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  text-decoration: none; color: var(--ink);
}
.inv-row:hover { border-color: var(--accent); }
.inv-thumb { width: 76px; height: 56px; border-radius: 8px; object-fit: cover; background: rgba(22, 24, 29, 0.06); }
.inv-thumb-empty { width: 76px; height: 56px; border-radius: 8px; background: repeating-linear-gradient(45deg, #E4E2DD 0 9px, #DEDCD6 9px 18px); }
.inv-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; min-width: 0; }
.inv-title .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-draft { background: #B7BABE; }
.dot-published { background: var(--ok); }
.dot-sold, .dot-archived { background: #B7BABE; }
.inv-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; padding-left: 16px; }
.inv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-chevron { color: #B7BABE; font-size: 18px; text-align: right; }
@media (max-width: 640px) {
  .inv-row { grid-template-columns: 60px minmax(0, 1fr) 20px; }
  .inv-thumb, .inv-thumb-empty { width: 60px; height: 45px; }
  .inv-chips { display: none; }
}

/* ===== Car editor ===== */
.editor-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(236, 234, 230, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin: -32px -40px 24px; padding: 14px 40px;
  display: flex; align-items: center; gap: 14px;
}
.flash + .editor-bar { margin-top: 0; }
@media (max-width: 900px) { .editor-bar { margin: -20px -16px 20px; padding: 12px 16px; } }
.editor-back {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-input);
  background: var(--surface); font-size: 16px; color: var(--ink); flex: none;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.editor-id { min-width: 0; }
.editor-id .row1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.editor-id .row1 .name { font-size: 17px; font-weight: 600; }
.editor-id .row2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.editor-note { font-size: 13px; color: var(--muted); margin: 0 0 20px; }

/* Car editor tabs */
.car-tabs {
  display: flex; gap: 4px; margin: 0 0 24px;
  border-bottom: 1px solid var(--line); overflow-x: auto;
}
.car-tabs a {
  padding: 10px 14px; font-size: 14px; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.car-tabs a:hover { color: var(--ink); }
.car-tabs a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tab-panel + .tab-panel { margin-top: 32px; }
.tab-panel.hidden + .tab-panel { margin-top: 0; }

/* ===== Photo section ===== */
.photos { margin-top: 40px; }
.photos .page-head { margin-bottom: 8px; }
.photo-bucket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; margin-top: 14px; }
.photo-bucket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-bucket-head h3 .muted { font-weight: 400; }
.photo-bucket-toggle {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.photo-bucket-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.photos.js .photo-bucket-toggle::before {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin: -3px 6px 0 2px; transition: transform .15s;
}
.photos.js .photo-bucket.collapsed .photo-bucket-toggle::before { transform: rotate(-45deg); margin-top: 0; }
.photo-bucket.collapsed .photo-grid,
.photo-bucket.collapsed .flaws-hint { display: none; }
.photo-add-form { display: flex; gap: 8px; align-items: center; }
.photo-add-label { position: relative; overflow: hidden; }
.photo-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: auto; }
.flaws-hint {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--accent); background: rgba(44, 73, 100, 0.06);
  border-radius: 10px; padding: 10px 14px; margin: 12px 0 0;
}
.flaws-hint::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.photo-grid:empty { display: none; }
.photo-cell { margin: 0; position: relative; display: flex; flex-direction: column; gap: 6px; }
.photo-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: rgba(22, 24, 29, 0.05); }
.photo-cell[draggable="true"] { cursor: grab; }
.photo-actions { display: flex; gap: 6px; align-items: center; }
.photo-actions select { flex: 1; min-width: 0; height: 28px; padding: 0 6px; font-size: 12px; border-radius: 7px; }
.photo-cat-form { display: flex; gap: 6px; flex: 1; min-width: 0; }
.photo-progress {
  aspect-ratio: 1; border: 1px dashed var(--line-strong); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--surface);
}
.photo-progress-label { font-size: 12px; color: var(--muted); text-align: center; }
.photo-failed .photo-progress { border-color: var(--err); background: rgba(179, 38, 30, 0.06); }
.photo-failed .photo-progress-label { color: var(--err); }

/* progressive enhancement switches: .js is set by upload.js on the section */
.photos.js .no-js-only { display: none; }
.photos.js .js-only { display: inline; }

/* ===== Editor actions & leads (Phase 3) ===== */
.editor-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.leads { margin-top: 40px; }
.leads .page-head { margin-bottom: 12px; }
.lead-form { margin-bottom: 14px; }
.lead-form-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.lead-name { flex: 1; min-width: 220px; }
.lead-sources { border: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; flex: 2; }
.lead-sources legend { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.source-pill { flex-direction: row; text-transform: none; letter-spacing: 0; cursor: pointer; }
.source-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.source-pill span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
}
.source-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.source-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-form .btn { align-self: flex-start; }
.lead-list { display: flex; flex-direction: column; gap: 10px; }
.lead-row {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.lead-new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lead-who { min-width: 0; }
.lead-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-stats { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.lead-link { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: flex-end; flex: 1; min-width: 260px; max-width: 460px; }
.lead-link .lead-url { flex: 1 1 100%; }
.lead-link-actions { display: flex; gap: 8px; }
.lead-counts { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lead-url { flex: 1; min-width: 0; height: 36px; font-size: 12.5px; color: var(--muted); background: var(--white); }
.copy-btn.copied { border-color: var(--ok); color: var(--ok); }
.lead-contact { font-size: 12.5px; color: var(--ink); margin-top: 3px; }
.thread-row { text-decoration: none; color: inherit; }
.thread-row:hover { border-color: var(--line-strong); }
.thread-preview { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.thread-when { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* Lead detail page */
.lead-detail { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.lead-detail h2 { font-size: 15px; margin: 0 0 12px; }
.lead-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 14px;
}
.open-list { list-style: none; margin: 0; padding: 0; }
.open-list li {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.open-list li:last-child { border-bottom: none; }
.open-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* ===== Buyer page (Phase 3, from approved design) ===== */
.buyer { background: var(--bg); }
.preview-banner {
  background: var(--warn-ink); color: #FDF6EC; font-size: 13.5px; text-align: center; padding: 10px 16px;
}
.preview-banner a { color: inherit; font-weight: 600; }
.buyer-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.buyer-band-in {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 32px;
}
.buyer-band-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); min-width: 0; }
.buyer-band-brand strong { color: var(--ink); font-weight: 600; }
.dot-accent { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.buyer-band-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.buyer-wrap {
  max-width: 1200px; margin: 0 auto; padding: 28px 32px 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 36px; align-items: start;
}
.buyer-main { min-width: 0; }
.buyer-hero { display: block; position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; background: #1d2026; }
/* Whole photo, never cropped; a blurred copy fills the sides of portrait shots. */
.buyer-hero .hero-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.buyer-hero .hero-backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(28px) brightness(0.8); transform: scale(1.2);
}
.hero-count {
  position: absolute; bottom: 14px; right: 14px; font-size: 12px; font-weight: 600;
  background: rgba(22, 24, 29, 0.78); color: var(--surface); padding: 6px 12px; border-radius: 6px;
}
.buyer-h2 { margin: 0 0 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.buyer-h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.buyer-gallery { margin-top: 44px; }
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(22, 24, 29, 0.55); color: var(--surface); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-prev:hover, .hero-next:hover { background: rgba(22, 24, 29, 0.78); }
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.cat-tile { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.cat-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(22, 24, 29, 0.06); }
.cat-tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px;
  background: linear-gradient(transparent, rgba(22, 24, 29, 0.75));
  color: var(--surface); font-size: 11.5px; font-weight: 600; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-tile-count { opacity: 0.75; font-weight: 400; }
/* Documents tile: a white page on an off-white background needs a frame to read as a tile,
   and the page top (letterhead/title) is far more recognisable than its centre. */
.cat-tile-doc { box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(22, 24, 29, 0.06); }
.cat-tile-doc img { object-position: top center; padding: 6% 12% 0; box-sizing: border-box; }
.buyer-cat { margin-bottom: 28px; scroll-margin-top: 16px; }
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
/* At most 5 photos / documents per section until "show all" (buyer.js .limit-sec) */
.limit-sec.limited .pgrid > :nth-child(n+6) { display: none; }
.limit-toggle { display: none; }
.limit-sec.limitable .limit-toggle {
  display: block; margin: 8px 0 0 auto; padding: 0;
  border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: underline;
}
/* Documents: one tile per document; its other pages stay reachable in the lightbox */
.doc-tile { margin: 0; min-width: 0; }
html.js .doc-tile .doc-extra-page { display: none; }
.doc-tile figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.pcell { display: block; border-radius: 6px; overflow: hidden; }
.pcell img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: rgba(22, 24, 29, 0.06); }
.buyer-desc {
  margin-top: 24px; padding: 20px 22px;
  background: var(--surface); border: 1px solid rgba(22, 24, 29, 0.09); border-radius: var(--r-card);
}
.buyer-desc p { margin: 0; font-size: 14.5px; line-height: 1.6; }
/* Collapsed preview: JS adds .collapsed only when the text overflows; no JS = full text */
.desc-toggle { display: none; }
.buyer-desc.collapsed .desc-body { max-height: 115px; overflow: hidden; position: relative; }
.buyer-desc.collapsed .desc-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: linear-gradient(transparent, var(--surface));
}
.buyer-desc.collapsed .desc-toggle {
  display: block; margin: 8px 0 0 auto; padding: 0;
  border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: underline;
}
/* Seller's listing view: inline photo editing (buyer/_page.php, .gallery-edit) */
.cat-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-edit-head .buyer-h3 { margin: 0; }
.cat-edit-head .buyer-h3 .muted { font-weight: 400; }
.listing-add-form { display: flex; gap: 6px; }
.cat-empty { margin: 0 0 4px; font-size: 13px; }
.pcell-edit { position: relative; }
.pcell-tools {
  position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 6px; align-items: center;
  opacity: 0; transition: opacity .15s;
}
.pcell-edit:hover .pcell-tools, .pcell-edit:focus-within .pcell-tools { opacity: 1; }
@media (hover: none) { .pcell-tools { opacity: 1; } }
.pcell-cat-form { display: flex; gap: 6px; flex: 1; min-width: 0; }
.pcell-tools select {
  flex: 1; min-width: 0; height: 28px; padding: 0 6px; font-size: 12px; border-radius: 7px;
  background: var(--white); border: 1px solid var(--line-strong);
}
.gallery-edit .pgrid .photo-cell img { border-radius: 6px; }
.gallery-edit.js .no-js-only { display: none; }
.pcell-drag {
  position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 7px; background: var(--white);
  font-size: 18px; line-height: 1; cursor: grab; touch-action: none; /* finger drags the photo, not the page */
}
.pcell-edit.dragging { opacity: 0.35; }
.pcell-ghost {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; object-fit: cover;
  border-radius: 6px; box-shadow: 0 10px 28px rgba(22, 24, 29, 0.35); opacity: 0.92;
}
/* Drop marker: a bar in the gap on the side the photo will land */
.pcell-edit.drop-before::before, .pcell-edit.drop-after::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--accent);
}
.pcell-edit.drop-before::before { left: -7px; }
.pcell-edit.drop-after::after { right: -7px; }
body.photo-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* Documents + maintenance history collapse like the photo sections (buyer.js, .collapse-sec) */
.collapse-sec.collapsed .collapse-body { max-height: 330px; overflow: hidden; position: relative; }
.collapse-sec.collapsed .collapse-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(transparent, var(--bg));
}
.buyer-history.collapse-sec.collapsed .collapse-body { max-height: 260px; }
.buyer-history.collapse-sec.collapsed .collapse-body::after { background: linear-gradient(transparent, var(--surface)); }
/* Room for the timeline dots, which sit left of each line (overflow would clip them). */
.buyer-history .collapse-body { padding-left: 10px; margin-left: -10px; }
.collapse-sec.collapsible .collapse-toggle {
  display: block; margin: 8px 0 0 auto; padding: 0;
  border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: underline;
}

.cat-toggle { display: none; }
.buyer-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.buyer-foot-name { font-size: 15px; font-weight: 600; }
.buyer-foot-pro { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.buyer-foot-note { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.55; }

/* Chat (buyer page + seller lead page) */
/* Buyer chat in the side panel (buyer/_page.php .rail-chat) */
.rail-chat { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.rail-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rail-chat-title { margin: 0; font-size: 16px; font-weight: 600; }
.rail-chat-close { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--muted); padding: 4px 6px; }
.rail-chat .chat-note { font-size: 12px; }
.rail-chat .chat-list { max-height: min(220px, 26vh); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; margin-top: 12px; }
.rail-chat .msg { max-width: 88%; padding: 8px 11px; }
.rail-chat .msg-body { font-size: 13.5px; }
.rail-chat .chat-empty { margin-top: 10px; font-size: 13px; }
.rail-chat .chat-form { margin-top: 12px; }
.rail-chat .chat-form .btn-contact.chat-submit { width: 100%; align-self: stretch; height: 48px; }
.rail-chat .chat-chip { font-size: 12.5px; }
/* The panel stays in view while scrolling; a long conversation scrolls inside it. */
.buyer-rail { max-height: calc(100vh - 56px); overflow-y: auto; }
/* Compact card so the question box and its button fit on a laptop screen */
@media (min-width: 901px) {
  .buyer-rail .rail-card { padding: 20px 20px 18px; }
  .buyer-rail .rail-card h1 { font-size: 23px; }
  .buyer-rail .rail-price { margin-top: 12px; padding-bottom: 12px; }
  .buyer-rail .rail-price .price { font-size: 25px; }
  .buyer-rail .rail-facts { margin-top: 8px; }
  .buyer-rail .rail-fact { padding: 6px 0; font-size: 13.5px; }
  .buyer-rail .rail-chat { margin-top: 12px; padding-top: 14px; }
  .buyer-rail .chat-note { display: none; }
}
.chat-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.chat-flash { margin: 14px 0 0; padding: 10px 14px; border-radius: 9px; font-size: 13.5px; }
.chat-flash-error { background: rgba(179, 38, 30, 0.08); color: var(--err); }
.chat-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 13px; }
.msg-buyer { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg-seller { align-self: flex-start; background: var(--surface); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; }
.msg-body { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.msg-meta { margin-top: 5px; font-size: 11px; opacity: 0.65; }
.chat-empty { margin: 16px 0 0; font-size: 13.5px; }
.chat-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.chat-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-input);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; resize: vertical;
}
.chat-form .btn-contact { margin-top: 0; height: 44px; align-self: flex-end; width: auto; padding: 0 26px; }
.chat-form .btn-primary { align-self: flex-end; }
.btn-contact-alt { background: var(--surface); color: var(--accent); border: 1px solid var(--line-strong); margin-top: 10px; }
.msg-photo { display: block; margin-bottom: 8px; }
.msg-photo img { display: block; max-width: 160px; max-height: 120px; border-radius: 9px; object-fit: cover; }
.chat-attach summary { cursor: pointer; font-size: 13.5px; color: var(--accent); user-select: none; }
.chat-attach-note { margin: 8px 0 0; font-size: 12.5px; }
.attach-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px;
  margin-top: 10px; max-height: 200px; overflow-y: auto;
}
.attach-cell { position: relative; display: block; cursor: pointer; border-radius: 9px; }
.attach-cell input { position: absolute; opacity: 0; pointer-events: none; }
.attach-cell img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 9px; border: 2px solid transparent;
}
.attach-cell:has(input:checked) img { border-color: var(--accent); }
.attach-none {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  border: 2px dashed var(--line-strong); border-radius: 9px;
  font-size: 12px; color: var(--muted); text-align: center; padding: 4px;
}
.attach-none:has(input:checked) { border-color: var(--accent); border-style: solid; color: var(--accent); }

/* JS pick-from-gallery mode */
.attach-pick-btn {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--accent); text-decoration: underline;
}
.attach-preview { display: flex; align-items: center; gap: 12px; }
.attach-preview img {
  display: block; width: 64px; height: 48px; object-fit: cover;
  border-radius: 9px; border: 2px solid var(--accent);
}
.attach-remove {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline;
}
.attach-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 13.5px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.attach-cancel {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: inherit; text-decoration: underline; opacity: 0.85;
}
.attach-mode .buyer-gallery .pcell[data-media-id] { cursor: pointer; }
.attach-mode .buyer-gallery .pcell[data-media-id]:hover img,
.attach-mode .buyer-gallery .pcell[data-media-id]:focus img { outline: 3px solid var(--accent); outline-offset: -3px; }
.msg-ico { position: relative; display: inline-flex; align-items: center; color: var(--muted); vertical-align: -3px; margin-left: 6px; padding: 2px; }
a.msg-ico:hover { color: var(--accent); }
.msg-ico svg { width: 18px; height: 18px; }
.msg-badge {
  position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  border-radius: 9px; background: #E0244B; color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
}

.buyer-rail { position: sticky; top: 28px; }
.rail-card {
  background: var(--surface); border: 1px solid rgba(22, 24, 29, 0.09); border-radius: 14px;
  padding: 24px 22px; box-shadow: 0 4px 24px rgba(22, 24, 29, 0.05);
}
.rail-card h1 { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.rail-sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.rail-price {
  display: flex; align-items: baseline; gap: 10px; margin-top: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.rail-price .price { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 20px; }
.fact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fact-value { font-size: 16px; font-weight: 600; margin-top: 3px; }
.btn-contact {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 24px;
  border: none; border-radius: 11px; background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.rail-note { margin: 14px 0 0; font-size: 12px; color: var(--faint); line-height: 1.5; text-align: center; }

.buyer-bottombar { display: none; }

@media (max-width: 900px) {
  .buyer-wrap { grid-template-columns: 1fr; padding: 16px 16px 110px; gap: 24px; }
  .buyer-rail { position: static; order: -1; }
  .rail-card > .btn-contact, .rail-card > .rail-note { display: none; }
  .buyer-rail { max-height: none; overflow: visible; }
  /* With JS the chat opens as a sheet from the bottom bar; without JS it stays in the card. */
  html.js .rail-chat { display: none; }
  html.js .rail-chat.sheet-open {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; top: 12vh; z-index: 30;
    margin: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-top: none;
    background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 40px rgba(22, 24, 29, 0.25); overflow-y: auto;
  }
  html.js .rail-chat.sheet-open .chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  html.js .rail-chat.sheet-open .chat-list { max-height: none; flex: 1; min-height: 120px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .buyer-band-in { padding: 12px 16px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .buyer-gallery { margin-top: 32px; }
  .buyer-bottombar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250, 250, 248, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .bottombar-price { font-size: 19px; font-weight: 600; flex: none; }
  .buyer-bottombar .btn-contact { margin-top: 0; flex: 1; }
}

/* Lightbox (created by buyer.js) */
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(15, 16, 20, 0.94); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.lightbox-counter { font-size: 13px; color: rgba(250, 250, 248, 0.6); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  border: none; border-radius: 50%; background: rgba(250, 250, 248, 0.12); color: var(--surface);
  cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; flex: none;
}
.lightbox-close { width: 38px; height: 38px; font-size: 17px; }
.lightbox-prev, .lightbox-next { width: 48px; height: 48px; font-size: 24px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 24px 24px; min-height: 0; }
.lightbox-img { max-width: min(88vw, 1100px); max-height: 100%; border-radius: 10px; object-fit: contain; }

/* Closed (sold / unavailable) pages */
.closed-wrap { max-width: 520px; margin: 0 auto; padding: 56px 20px; }
.closed-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 36px 32px;
  text-align: center; box-shadow: 0 4px 24px rgba(22, 24, 29, 0.05);
}
.closed-card h1 { margin: 0 0 10px; font-size: 23px; font-weight: 600; }
.closed-card p { margin: 0 0 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.closed-dealer { font-weight: 600; color: var(--ink) !important; margin-top: 16px !important; }

/* ---------- Documents & redaction (Phase 4) ---------- */
.docs { margin-top: 28px; }
.doc-add-form { display: flex; gap: 10px; align-items: center; margin: 12px 0 18px; }
.doc-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid rgba(22, 24, 29, 0.08); border-radius: 10px;
  margin-bottom: 8px; background: var(--card, #fff); flex-wrap: wrap;
}
.doc-row-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.doc-name { font-weight: 600; word-break: break-word; }
.doc-row-actions { display: flex; gap: 8px; align-items: center; }
.status-doc-pending_review { background: rgba(196, 138, 22, 0.12); color: #8a5d00; }
.status-doc-confirmed { background: rgba(34, 128, 62, 0.12); color: #1d6b36; }
.status-doc-processing { background: rgba(22, 24, 29, 0.06); color: var(--muted); }

/* Review editor */
.review-form { margin-top: 8px; }
.review-pages { display: grid; gap: 24px; max-width: 860px; margin: 16px 0; }
.review-page { margin: 0; }
.review-page figcaption { margin-bottom: 6px; font-size: 13px; }
.review-canvas { position: relative; touch-action: none; user-select: none; border: 1px solid rgba(22, 24, 29, 0.12); border-radius: 6px; overflow: hidden; }
.review-canvas img { display: block; width: 100%; height: auto; cursor: crosshair; -webkit-user-drag: none; }
.redact-box {
  position: absolute; background: rgba(0, 0, 0, 0.78); border: 2px solid #d33;
  padding: 0; margin: 0; cursor: pointer; box-sizing: border-box;
}
.redact-box:hover { background: rgba(0, 0, 0, 0.55); }
.redact-ghost { border-style: dashed; background: rgba(0, 0, 0, 0.35); pointer-events: none; }
.review-actions {
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
  padding: 16px 0 32px; max-width: 860px;
}
.review-confirm { display: grid; gap: 8px; }
.review-ack { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; max-width: 46ch; }

/* Buyer documents section */
.buyer-docs { margin-top: 28px; }
.buyer-doc { margin-bottom: 18px; }
.pgrid-docs .pcell-doc img { background: #fff; object-fit: contain; }
.buyer-doc { scroll-margin-top: 16px; }

/* Buyer maintenance history (timeline + key items) */
.buyer-history {
  margin-top: 24px; padding: 20px 22px;
  background: var(--surface); border: 1px solid rgba(22, 24, 29, 0.09); border-radius: var(--r-card);
}
.buyer-history .buyer-h2 { margin-bottom: 4px; }
.buyer-history .buyer-h3 { margin: 18px 0 8px; }
.history-summary { margin: 0; font-size: 14px; color: var(--muted); }
.history-items { margin: 0; display: grid; gap: 0; }
.history-item {
  display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45;
}
.history-item:first-child { border-top: none; }
.history-item dt { font-weight: 600; }
.history-item dd { margin: 0; }
.history-item-missing dd { color: var(--faint); font-style: italic; }
.history-doc-link { font-size: 13px; color: var(--accent); margin-left: 6px; white-space: nowrap; }
.history-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-strong); }
.history-entry { position: relative; padding: 0 0 16px 14px; font-size: 14px; }
.history-entry::before {
  content: ""; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--surface);
}
.history-entry:last-child { padding-bottom: 0; }
.history-entry-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.history-when { font-weight: 600; }
.history-entry-title { color: var(--muted); }
.history-facts { margin: 6px 0 4px; padding-left: 18px; line-height: 1.5; }
.history-more summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.history-entry > .history-doc-link { margin-left: 0; }
.history-note { margin: 16px 0 0; font-size: 12.5px; }
@media (max-width: 600px) {
  .history-item { grid-template-columns: 1fr; gap: 2px; }
}

/* Chat one-tap questions */
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip {
  border: 1px solid var(--line-strong); background: var(--white); color: var(--accent);
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer;
}
.chat-chip:hover { border-color: var(--accent); }

/* Seller: maintenance history controls (Documents panel) */
.history-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.history-panel h3 { margin: 0 0 4px; font-size: 15px; }
.history-panel-list { list-style: none; margin: 10px 0 0; padding: 0; }
.history-panel-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px;
}
.history-panel-list li.is-hidden > span { opacity: 0.5; }
.history-panel-list .muted { font-size: 12.5px; }

/* AI chat (Phase 5) */
.status-escalated { background: rgba(196, 60, 22, 0.12); color: #a03000; margin-left: 6px; }

/* One-tap send queue (PRD §6.11) */
.queue-entry { gap: 10px; }
.queue-draft { background: var(--bg, #ECEAE6); border-radius: 8px; padding: 12px 14px; margin: 0; white-space: pre-wrap; }
.queue-entry .btn { align-self: flex-start; }
.nudge-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.nudge-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }

/* Trade-in intake (PRD §6.15) */
.check-label { display: flex; align-items: flex-start; gap: 10px; }
.check-label input { width: auto; margin-top: 3px; }
.btn-disabled { opacity: 0.5; pointer-events: none; }
.tradein-wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; }
.tradein-sub { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.tradein-sub:first-of-type { border-top: 0; padding-top: 0; }
.tradein-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.tradein-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; }
.chip-tradein { background: rgba(44, 73, 100, 0.12); color: #2C4964; text-decoration: none; }

/* ===== Seller car page: permanent left menu + buyer preview + panel (v1.1 UX) ===== */
.seller-editor { padding-left: 220px; }
.seller-editor .editor-flash { margin: 12px 24px 0; }
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(22, 24, 29, 0.35); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

/* Permanent dark column on the left (same look as the dashboard sidebar) */
.drawer-left { position: fixed; top: 0; bottom: 0; left: 0; width: 220px; z-index: 60; }
.drawer-menu {
  position: absolute; inset: 0; width: 220px;
  background: var(--ink); color: var(--surface);
  display: flex; flex-direction: column; padding: 22px 14px; overflow-y: auto;
}
.drawer-menu-car { padding: 0 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.drawer-menu-name {
  font-size: 13px; font-weight: 600; color: var(--surface); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--r-input); font-size: 14px; text-decoration: none;
  color: rgba(250, 250, 248, 0.62);
}
.drawer-nav a:hover { color: var(--surface); background: rgba(250, 250, 248, 0.06); }
.drawer-nav a.active { background: rgba(250, 250, 248, 0.1); color: var(--surface); font-weight: 600; }
.drawer-menu-actions {
  margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid rgba(250, 250, 248, 0.1);
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.drawer-menu-actions .inline { display: block; }
.drawer-menu-actions .btn { width: 100%; justify-content: center; box-sizing: border-box; }
.drawer-menu-note { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: rgba(250, 250, 248, 0.5); }
.drawer-menu-inventory {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px;
  border-radius: var(--r-input); font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--surface); background: rgba(250, 250, 248, 0.1);
}
.drawer-menu-inventory:hover { background: rgba(250, 250, 248, 0.16); }

/* The panel slides in to the right of the menu, over the preview */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 220px; z-index: 50;
  width: min(720px, calc(100vw - 220px)); background: var(--bg);
  border-right: 1px solid var(--line); box-shadow: 0 0 40px rgba(22, 24, 29, 0.18);
  display: flex; flex-direction: column;
  transform: translateX(calc(-100% - 220px)); transition: transform 0.22s ease;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.drawer-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-close {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-input);
  background: var(--surface); font-size: 20px; line-height: 1; color: var(--ink); flex: none;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.drawer-body { overflow-y: auto; padding: 20px 20px 48px; flex: 1; min-width: 0; }
.drawer-body .tab-panel + .tab-panel { margin-top: 32px; }
.drawer-body .tab-panel.hidden + .tab-panel { margin-top: 0; }
.drawer-body .photos { margin-top: 0; }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; } }

/* Phones: the menu becomes a top row (like the dashboard sidebar does); the panel fills the screen below it */
@media (max-width: 900px) {
  .seller-editor { padding-left: 0; padding-top: 54px; }
  .seller-editor .editor-flash { margin: 12px 14px 0; }
  .drawer-left { width: 100vw; bottom: auto; height: 54px; }
  .drawer-menu { position: static; width: 100%; height: 54px; padding: 0 12px; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; }
  .drawer-menu .sidebar-brand, .drawer-menu-car, .drawer-menu-note { display: none; }
  .drawer-menu-inventory { margin: 0 6px 0 0; padding: 8px 10px; white-space: nowrap; }
  .drawer-nav { flex-direction: row; }
  .drawer-nav a { white-space: nowrap; padding: 8px 10px; }
  .drawer-menu-actions { margin: 0 0 0 auto; padding: 0 0 0 10px; border: none; flex-direction: row; flex: none; }
  .drawer-menu-actions .btn { width: auto; }
  .drawer { left: 0; top: 54px; width: 100vw; transform: translateX(-102%); }
  .drawer-body { padding: 16px 14px 48px; }
}
.history-panel-sub { margin: 14px 0 0; }

/* Seller: photos of documents (→ redaction pipeline) */
.docphotos { margin-top: 14px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: var(--surface); }
.docphotos-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.docphotos-head h3 { margin: 0; font-size: 15px; }
.docphotos-hint { margin: 6px 0 0; font-size: 13px; }
.gallery-edit.js .docphotos .no-js-only, .photos.js .docphotos .no-js-only { display: none; }
.docphotos-waiting { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(200, 138, 44, 0.10); }
.docphotos-waiting p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.docphotos-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.docphotos-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.docphotos-send { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.docphotos-wait { font-size: 12.5px; }
.docphotos-send.is-busy button { opacity: .6; cursor: progress; }
.docs .docphotos { margin: 14px 0; }

/* Redaction review: page header with rotate buttons */
.review-page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-rotate { display: inline-flex; gap: 6px; }

/* ===== Public site: landing, pricing, beta, legal, admin (2026-10-10) ===== */
.shell-public main.main-wide { max-width: 1080px; }
.site-header nav a:not(.btn):not(.lang-switch) { color: var(--ink); text-decoration: none; font-size: 14px; }
@media (max-width: 560px) {
  .nav-hide-sm { display: none; }
  .site-header { padding: 12px 16px; }
  .site-header nav { gap: 10px; }
}
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer-in { max-width: 1080px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer-in p { margin: 6px 0 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

.lp-hero { text-align: center; padding: 56px 0 40px; max-width: 760px; margin: 0 auto; }
.lp-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }
.lp-hero-sm { padding: 32px 0 24px; }
.lp-eyebrow { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: 999px; background: rgba(44, 73, 100, 0.08); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.lp-lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 18px auto 0; max-width: 640px; }
.lp-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.lp-ctas .btn { height: 48px; padding: 0 22px; font-size: 15px; }
.lp-band { background: var(--ink); color: var(--surface); border-radius: 16px; padding: 36px 32px; text-align: center; margin: 24px 0 8px; }
.lp-band p { color: rgba(250, 250, 248, 0.72); max-width: 680px; margin: 12px auto 0; font-size: 16px; line-height: 1.6; }
.lp-section { margin-top: 56px; }
.lp-section > h2 { text-align: center; font-size: 24px; margin-bottom: 24px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-steps li { gap: 8px; }
.lp-steps p, .lp-feat p, .lp-split p { margin: 0; color: var(--muted); line-height: 1.55; }
.lp-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.lp-feat { border-top: 2px solid var(--accent); padding-top: 14px; }
.lp-feat h3 { margin-bottom: 6px; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-split .btn { align-self: flex-start; }
.lp-final { text-align: center; margin: 64px auto 24px; max-width: 620px; }
.lp-final p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 22px; }
@media (max-width: 800px) {
  .lp-steps, .lp-grid, .lp-split { grid-template-columns: 1fr; }
  .lp-hero { padding: 32px 0 24px; }
  .lp-band { padding: 28px 20px; }
}

.pr-beta { display: inline-block; margin: 14px 0 0; padding: 8px 14px; border-radius: 10px; background: rgba(200, 138, 44, 0.12); color: var(--warn-ink); font-size: 14px; }
.pr-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pr-plan { position: relative; gap: 10px; }
.pr-plan h2 { font-size: 22px; }
.pr-plan p { margin: 0; }
.pr-plan .btn { margin-top: auto; }
.pr-plan-rec { border: 2px solid var(--accent); }
.pr-badge { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pr-price { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.pr-price span { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pr-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pr-list li { padding-left: 22px; position: relative; line-height: 1.45; }
.pr-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 800px) { .pr-plans { grid-template-columns: 1fr; } }

.beta-form { margin-top: 20px; }
.beta-form .check-label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); flex-direction: row; }
.beta-form .check-label input { height: auto; }
.beta-form .btn-primary { align-self: flex-start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.legal h2 { font-size: 16px; margin-top: 4px; }
.legal p, .legal ul { margin: 0; line-height: 1.6; }

.admin-fresh { border: 2px solid var(--ok); margin-bottom: 20px; }
.admin-link-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-link { flex: 1; min-width: 220px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.shell-app main > .card + .card { margin-top: 20px; }
.shell-app main > h1 + .card { margin-top: 20px; }
.admin-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.admin-row-main { min-width: 0; flex: 1 1 320px; }
.admin-row-main .muted { margin-top: 4px; }
.admin-msg { margin: 8px 0 0; font-size: 14px; white-space: normal; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions form, .admin-row > form { display: flex; gap: 6px; align-items: center; }
.admin-actions select, .admin-row > form select { height: 28px; font-size: 12px; padding: 0 6px; }

/* ===== "Drop everything" setup screen (2026-10-11) ===== */
.setup { display: flex; flex-direction: column; gap: 20px; }
.setup-step h2, .setup-sub { display: flex; align-items: center; gap: 10px; }
.setup-sub { margin-top: 8px; }
.setup-step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 20px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(44, 73, 100, 0.35); border-radius: 14px; background: rgba(44, 73, 100, 0.04);
  text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink);
}
.dropzone strong { font-size: 17px; }
.dropzone .muted { max-width: 520px; font-size: 14px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone-over { background: rgba(44, 73, 100, 0.1); border-color: var(--accent); }
.setup-progress:empty { display: none; }
.setup-group h3 { margin: 4px 0 10px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.setup-cell { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: rgba(22, 24, 29, 0.06); }
.setup-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.setup-cell-label {
  position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: 11px; font-weight: 600;
  color: var(--white); background: rgba(22, 24, 29, 0.62); border-radius: 6px; padding: 3px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.setup-cell-label:empty { display: none; }
.setup-pending { display: flex; align-items: center; justify-content: center; }
.setup-pending .setup-cell-label { position: static; background: none; color: var(--muted); }
.setup-failed .setup-cell-label { background: var(--err); color: var(--white); white-space: normal; }
.setup-cover { position: absolute; top: 6px; left: 6px; font-size: 10.5px; font-weight: 600; background: var(--accent); color: var(--accent-ink); padding: 2px 7px; border-radius: 999px; }
.setup-cell-form { position: absolute; left: 6px; right: 34px; bottom: 6px; display: flex; gap: 4px; }
.setup-cell-form select, .setup-manual { height: 26px; font-size: 11.5px; padding: 0 4px; width: 100%; min-width: 0; }
.setup-manual { position: absolute; left: 6px; right: 6px; bottom: 6px; width: auto; }
.setup-del-form { position: absolute; right: 6px; bottom: 6px; }
.setup-del { width: 24px; height: 26px; border: none; border-radius: 6px; background: rgba(22, 24, 29, 0.62); color: var(--white); cursor: pointer; font-size: 12px; }
.setup.js .setup-cell-form { opacity: 0; transition: opacity .15s; }
.setup.js .setup-cell:hover .setup-cell-form, .setup.js .setup-cell:focus-within .setup-cell-form { opacity: 1; }
@media (hover: none) { .setup.js .setup-cell-form { opacity: 1; } }
.setup-tophoto { display: flex; gap: 6px; align-items: center; }
.setup-tophoto select { height: 28px; font-size: 12px; padding: 0 6px; }
.setup-src { color: var(--ok); font-size: 12px; text-transform: none; letter-spacing: 0; }
.setup-price input { max-width: 240px; }
.setup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.setup-manual-link { text-align: center; margin-top: 18px; }

.desc-tools { display: flex; flex-direction: column; gap: 8px; }
.desc-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.desc-bar .muted { margin-right: 4px; }
.desc-lang { height: 28px; font-size: 12px; padding: 0 6px; }
.desc-busy .desc-text { opacity: 0.55; }
.setup .check-label { flex-direction: row; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.setup .check-label input { height: auto; }

/* ===== Buyer facts panel + one-line history (2026-10-11) ===== */
.rail-facts { margin: 18px 0 4px; display: flex; flex-direction: column; }
.rail-fact { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rail-fact:first-child { border-top: none; }
.rail-fact dt { color: var(--muted); }
.rail-fact dd { margin: 0; font-weight: 600; text-align: right; }
/* Timeline row: Date · Mileage · Operation · Where · link (owner spec 2026-10-12) */
.history-entry, .history-head {
  display: grid; grid-template-columns: 84px 86px minmax(0, 1fr) minmax(0, 0.7fr) 96px;
  align-items: baseline; gap: 2px 12px;
}
.history-head { margin: 0 0 8px 32px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.history-km { white-space: nowrap; color: var(--muted); }
.history-op { min-width: 0; }
.history-garage { color: var(--muted); font-size: 13px; min-width: 0; }
.history-entry > .history-doc-link, .history-declared { font-size: 12px; white-space: nowrap; text-align: right; }
.history-declared { color: var(--muted); font-style: italic; white-space: normal; }
.history-entry-seller::before { background: var(--surface); border-color: var(--accent); }
@media (max-width: 600px) {
  .history-head { display: none; }
  .history-entry { grid-template-columns: auto 1fr auto; gap: 2px 10px; }
  .history-entry .history-op { grid-column: 1 / -1; grid-row: 2; }
  .history-entry .history-garage { grid-column: 1 / -1; grid-row: 3; }
}

/* "Questions first" car creation (cars/_questions.php + questions.js) */
.questions { max-width: 640px; margin: 0 auto; }
.q-step { border: none; margin: 0 0 16px; min-width: 0; }
.q-step legend { padding: 0; margin-bottom: 4px; }
.q-step legend h2 { margin: 0; }
.q-step textarea { width: 100%; }
.q-progress { margin: 0 0 10px; font-size: 13px; }
.q-nav { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.q-nav-right { display: flex; gap: 8px; margin-left: auto; }
.questions.js .q-submit-nojs { display: none; }
.q-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 10px; }
.q-scale-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-scale-opt span {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--white); font-weight: 600; cursor: pointer;
}
.q-scale-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.q-scale-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-scale-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; }
@media (max-width: 560px) { .q-scale { grid-template-columns: repeat(5, 1fr); } }
/* The same answers as editable fields in car forms (cars/_answers.php) */
.answers { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 16px 0; min-width: 0; }
.answers legend { font-weight: 600; padding: 0 6px; }
.answers > p.muted { margin-top: 0; font-size: 13px; }
.answers-sub { margin: 14px 0 6px; font-weight: 600; font-size: 14px; }

/* Description consistency check (seller only) */
.desc-issues { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: rgba(176, 110, 20, 0.09); border: 1px solid rgba(176, 110, 20, 0.35); font-size: 13.5px; }
.desc-issues ul { margin: 6px 0; padding-left: 18px; }
.desc-issues p { margin: 4px 0 0; font-size: 12.5px; }
.desc-issues-flag { margin: 0 0 10px; font-size: 13px; }
.desc-issues-flag a { color: #8a5a10; }
.history-add { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.history-add .muted { font-size: 13px; }
.chat-form-preview textarea, .chat-form-preview .btn-contact { opacity: 0.55; cursor: not-allowed; }
.chat-form-preview .chat-empty { margin-top: 0; font-size: 12.5px; }
.leads-publish { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.leads-publish p { margin: 0; }
.buyer-history .collapse-body { margin-top: 14px; }
.settings-form { max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.settings-sub { margin: 10px 0 0; font-size: 16px; }
.settings-form > p.muted { margin: -8px 0 0; font-size: 13px; }
.buyer-foot-pro a { color: inherit; }
.lp-simple { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
.lp-contact { margin-top: 22px; font-size: 14px; }

/* "Coming soon" landing (home.php) */
body.soon { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.soon-top { padding: 28px 16px; text-align: center; }
.soon-brand { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.soon-main { flex: 1; width: 100%; max-width: 640px; box-sizing: border-box; margin: 0 auto; padding: 24px 16px 15vh;
  display: flex; flex-direction: column; justify-content: center; text-align: center; }
.soon-form { display: flex; gap: 8px; max-width: 440px; width: 100%; margin: 30px auto 0; }
.soon-form input[type=email] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: var(--r-input); background: var(--surface); color: var(--ink); }
.soon-form .btn { height: 46px; white-space: nowrap; }
.soon-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.soon-error { margin: 10px 0 0; font-size: 13.5px; color: var(--err); }
.soon-done { margin: 30px 0 0; font-size: 16px; font-weight: 600; color: var(--accent); }
@media (max-width: 420px) {
  .soon-form { flex-direction: column; }
  .soon-form input[type=email] { flex: none; width: 100%; box-sizing: border-box; }
}
.admin-sub { padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.soon-title { margin: 0; font-size: clamp(36px, 7vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.soon-tagline { margin: 18px 0 0; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.5; color: var(--muted); }

/* Brand logo (public/assets/brand/, cut from Design/carfoglio-logo-original.svg) */
.soon-logo { display: block; margin: 0 auto; width: auto; height: 120px; }
.brand-logo::before { display: none; }
.brand-logo { gap: 7px; }
.brand-logo img { display: block; height: 28px; width: auto; }
.brand-logo img + img { height: 18px; }
.sidebar-brand::before { display: none; }
.brand-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--surface); }
.brand-tile img { display: block; width: 24px; height: auto; }
.buyer-band-logo { display: inline-flex; align-items: center; gap: 7px; }
.buyer-band-logo img { display: block; height: 24px; width: auto; }
.buyer-band-logo img + img { height: 16px; }
.soon-lang { position: absolute; top: 20px; right: 20px; }
