/* Inventory Manager. Phone first, comfortable on a desktop, brand colors from brand.css only.
   Inventario. Primero el teléfono, cómodo en escritorio, colores de marca solo desde brand.css. */

@font-face {
  font-family: "Montserrat";
  src: url("/admin/static/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/admin/static/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/admin/static/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--next-font-body); color: var(--next-charcoal-900);
  background: var(--next-gray-100); font-size: 16px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--next-sky-deep); }
h1, h2, h3 { font-family: var(--next-font-display); color: var(--next-charcoal-900); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 1.65rem; margin: 0 0 1rem; font-weight: 800; }
h2 { font-size: 0.95rem; margin: 0 0 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--next-charcoal); }

.bar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem;
  background: var(--next-charcoal-900); color: var(--next-white); min-height: 64px;
  padding: 0.55rem 1rem; padding-top: calc(0.55rem + env(safe-area-inset-top));
}
.bar-logo { height: 32px; width: auto; }
.bar-title { flex: 1; font-family: var(--next-font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.bar-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.cindy-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--next-white);
}
.cindy-bell:hover { background: rgba(255, 255, 255, 0.12); }
.cindy-bell--active .cindy-bell-icon { color: var(--next-sky); }
.cindy-bell-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 1 0-14 0v5l-2 2v1h18v-1l-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 1 0-14 0v5l-2 2v1h18v-1l-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cindy-bell-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.05rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  color: var(--next-charcoal-900);
  background: var(--next-sky);
}
.cindy-bell-panel {
  position: fixed;
  z-index: 200;
  top: 3.25rem;
  right: 0.75rem;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(24rem, 70vh);
  overflow: auto;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--next-white);
  color: var(--next-charcoal-900);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--next-charcoal-200, #ddd);
}
.cindy-bell-panel h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.cindy-alert { padding: 0.5rem 0; border-bottom: 1px solid var(--next-charcoal-100, #eee); }
.cindy-alert:last-child { border-bottom: none; }
.cindy-alert--critical .cindy-alert-sev { color: #b42318; }
.cindy-alert--high .cindy-alert-sev { color: #c05600; }
.cindy-alert-sev { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.title-cindy-attn {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--next-sky);
  color: var(--next-charcoal-900);
}
.bar-user {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--next-white);
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-greeting {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--next-charcoal, #353535);
}
.help-fold { margin: 0 0 0.75rem; }
.help-fold summary { cursor: pointer; color: var(--next-sky-deep); font-weight: 600; font-size: 0.9rem; }
.card-sub {
  font-family: var(--next-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
  color: var(--next-charcoal);
}
.mail-handoff { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--next-gray-200, #e8e8e8); }
.mail-handoff .vitem { margin-bottom: 0.35rem; }
.title-toolbar { margin-bottom: 0.75rem; }
.title-toolbar .btn-row { margin-top: 0.5rem; }
.title-problems-btn { display: block; margin: 0 0 0.85rem; font-weight: 600; }
.title-pipeline {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0;
}
.title-pipeline li {
  flex: 1 1 8rem; padding: 0.45rem 0.55rem; border-radius: 8px; font-size: 0.78rem; font-weight: 600;
  text-align: center; background: var(--next-gray-100); color: var(--next-charcoal); border: 1px solid var(--next-gray-200, #e0e0e0);
}
.title-pipeline li.done {
  background: color-mix(in srgb, var(--next-neon-green) 42%, var(--next-white));
  color: var(--next-charcoal-900);
  border-color: var(--next-neon-green-deep);
  box-shadow: 0 0 8px color-mix(in srgb, var(--next-neon-green) 45%, transparent);
}
.title-pipeline li.current {
  background: color-mix(in srgb, var(--next-neon-green) 22%, var(--next-white));
  color: var(--next-charcoal-900);
  border-color: var(--next-neon-green-deep);
  box-shadow: 0 0 0 2px var(--next-neon-green);
}
.title-fedex-card {
  border-left: 4px solid var(--next-neon-green-deep);
  background: color-mix(in srgb, var(--next-neon-green) 10%, var(--next-white));
}
.title-fedex-card h2 { margin-top: 0; }
.title-pipeline-problem { margin-bottom: 1rem; }
.title-pipeline-mini {
  display: flex; flex-wrap: nowrap; gap: 0.2rem; list-style: none; margin: 0.35rem 0 0; padding: 0;
  overflow-x: auto; max-width: 100%;
}
.title-pipeline-mini li {
  flex: 0 0 auto; min-width: 1.35rem; padding: 0.15rem 0.35rem; border-radius: 999px;
  font-size: 0.65rem; font-weight: 800; line-height: 1.2; text-align: center;
  background: var(--next-gray-100); border: 1px solid var(--next-gray-200, #e0e0e0);
}
.title-pipeline-mini li.done {
  background: color-mix(in srgb, var(--next-neon-green) 50%, var(--next-white));
  border-color: var(--next-neon-green-deep);
}
.title-pipeline-mini li.current {
  box-shadow: 0 0 0 2px var(--next-neon-green-deep);
}
.title-list-row--compact { padding: 0; }
.title-list-row-main {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 0.5rem;
  padding: 0.65rem 0.85rem;
}
.title-list-row-main .title-auction-link { flex: 1 1 14rem; min-width: 0; }
.title-list-actions { flex: 0 0 auto; align-self: center; }
.title-row-meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; align-items: center;
  padding: 0 0.85rem 0.65rem; font-size: 0.88rem;
}
.title-hub-page-head { margin-bottom: 0.75rem; }
.title-hub-page-lead { margin: 0.35rem 0 0; max-width: 42rem; }
.title-hub-shell {
  padding: 0.85rem 1rem 0.75rem; margin-bottom: 0.85rem;
  border: 1px solid var(--next-gray-200, #e8e8e8);
  box-shadow: 0 1px 3px rgba(31, 31, 31, 0.06);
}
.title-hub-shell .title-hub-tabs { margin-bottom: 0.65rem; }
.title-hub-search { margin-bottom: 0.65rem; }
.title-hub-search input[type="search"] { width: 100%; max-width: 28rem; }
.title-hub-nav-foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center;
  padding-top: 0.35rem; border-top: 1px solid var(--next-gray-200, #e8e8e8);
}
.title-hub-tab-intro {
  margin: 0 0 0.75rem; padding: 0.55rem 0.75rem; font-size: 0.92rem;
  border-left: 4px solid var(--next-sky-deep); background: var(--next-gray-100); border-radius: 0 8px 8px 0;
}
.title-hub-list--cards { display: flex; flex-direction: column; gap: 0.65rem; }
.title-hub-tools { margin-top: 1.25rem; }
.title-hub-card { padding: 0; overflow: hidden; border: 1px solid var(--next-gray-200, #e8e8e8); }
.title-hub-nav { padding: 0.85rem 1rem; margin-bottom: 0.75rem; }
.title-hub-nav .title-problems-btn { margin-bottom: 0.35rem; }
.title-upload-hub--embedded {
  margin: 0 0 0.85rem; padding: 0.75rem 0.85rem;
  border: 1px dashed var(--next-gray-200, #e0e0e0); border-radius: 8px;
  background: var(--next-gray-100);
}
.title-upload-hub--embedded .card-sub { margin-top: 0; }
.title-mail-wizard .title-pipeline { margin-bottom: 0.65rem; }
.title-page-head .title-page-badges { margin: 0.35rem 0 0; }
.title-wizard-s1 .title-mail-check-form { margin-top: 0.5rem; }
.title-seller-row { padding: 0; overflow: hidden; }
.title-seller-row-main {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem 1rem; align-items: start;
  padding: 0.85rem 1rem;
}
@media (max-width: 640px) {
  .title-seller-row-main { grid-template-columns: 1fr; }
}
.title-seller-thumb-link { display: block; line-height: 0; }
.title-seller-thumb {
  width: 128px; height: 96px; object-fit: cover; border-radius: 10px;
  background: var(--next-gray-100); border: 1px solid var(--next-gray-200, #e0e0e0);
}
.title-seller-thumb--empty {
  display: block;
  background: linear-gradient(135deg, var(--next-gray-100) 0%, var(--next-gray-200, #e8e8e8) 100%);
}
.title-seller-body { color: inherit; text-decoration: none; min-width: 0; }
.title-seller-body-link { display: block; color: inherit; text-decoration: none; min-width: 0; }
.title-seller-body-link:hover .title-seller-vehicle { color: var(--next-sky-deep); }
.title-seller-body:hover .title-seller-vehicle { color: var(--next-sky-deep); }
.title-consignor-prepaid { scroll-margin-top: 5rem; }
.title-seller-vehicle { margin: 0 0 0.5rem; font-family: var(--next-font-display); font-size: 1.05rem; }
.title-seller-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.35rem 1rem;
  margin: 0 0 0.55rem;
}
.title-seller-facts dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--next-charcoal-700, #555); margin: 0; }
.title-seller-facts dd { margin: 0.1rem 0 0; font-weight: 700; font-size: 0.95rem; }
.title-seller-status {
  display: inline-block; font-size: 0.82rem; font-weight: 800; padding: 0.35rem 0.65rem; border-radius: 8px;
}
.title-seller-status--awaiting {
  background: var(--next-gray-100); color: var(--next-charcoal-900); border: 1px solid var(--next-gray-300);
}
.title-seller-status--at-next {
  background: color-mix(in srgb, var(--next-neon-green) 45%, var(--next-white));
  color: var(--next-charcoal-900);
  border: 2px solid var(--next-neon-green-deep);
  box-shadow: 0 0 12px color-mix(in srgb, var(--next-neon-green) 55%, transparent);
}
.title-seller-actions { flex-direction: column; align-items: stretch; min-width: 9.5rem; }
.title-seller-actions .btn { width: 100%; text-align: center; }
.btn-xs {
  min-height: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 6px;
}
.title-seller-actions--compact {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  max-width: 10.5rem;
}
.title-seller-actions--compact .btn,
.title-seller-actions--compact .title-seller-action {
  width: auto;
  text-align: center;
  white-space: nowrap;
}
.title-seller-workspace .title-seller-actions--compact {
  justify-content: flex-start;
  max-width: none;
}
@media (max-width: 640px) {
  .title-seller-row-main .title-seller-actions--compact {
    justify-content: flex-start;
    max-width: none;
  }
}
.title-row-feedback { margin: 0.65rem 0 0; min-height: 0.25rem; }
.title-consignor-address { margin: 0.35rem 0 0; line-height: 1.35; }
.title-consignor-address-missing { margin: 0.35rem 0 0; font-size: 0.88rem; }
.title-seller-late-callout {
  margin: 0.35rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--next-coral, #c44);
}
.seller-bos-doc-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }
.seller-bos-doc-row .seller-bos-doc-label { margin: 0 0 0.35rem; font-weight: 600; }
.pdf-viewer-actions { margin: 0.75rem 0 0; }
.pdf-viewer-actions--bottom {
  margin: 1rem 0 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--next-charcoal-200, #ddd);
}
.pdf-viewer-wrap {
  margin-top: 0.75rem;
  border: 1px solid var(--next-charcoal-200, #ddd);
  border-radius: 8px;
  overflow: hidden;
  background: var(--next-charcoal-50, #f7f7f7);
  min-height: min(75vh, 880px);
}
.pdf-viewer-frame {
  display: block;
  width: 100%;
  min-height: min(75vh, 880px);
  border: 0;
}
.pdf-viewer-frame--fallback { display: none; }
@supports not (selector(embed[type="application/pdf"])) {
  .pdf-viewer-frame:not(.pdf-viewer-frame--fallback) { display: none; }
  .pdf-viewer-frame--fallback { display: block; }
}
.title-seller-workspace-head { padding: 0; overflow: hidden; }
.title-seller-workspace-head .title-seller-row-main { padding: 0.85rem 1rem; }
.title-seller-workspace-copy { min-width: 0; }
.title-seller-workspace-copy h1 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.title-seller-inbound .title-inbound-form { margin-top: 0.35rem; }
.buyer-vehicle-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1rem;
  margin-bottom: 0.25rem;
}
.buyer-vehicle-head h2 { margin: 0; }
.buyer-view-title { font-weight: 600; white-space: nowrap; }
.title-auction-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem;
  margin-bottom: 0.25rem;
}
.title-auction-link .title-auction-id { font-size: 1.05rem; margin: 0; }
.title-auction-link:hover .title-auction-id { color: var(--next-sky-deep); }
.title-buyer-step {
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
  border-left: 3px solid var(--next-charcoal);
}
.title-buyer-step--amber { background: #fff4e0; border-left-color: #c47a00; }
.title-buyer-step--sky { background: rgba(62, 188, 238, 0.2); border-left-color: var(--next-sky-deep); }
.title-buyer-step--teal { background: #e6f6f4; border-left-color: #0a7a6c; }
.title-buyer-step--mint { background: color-mix(in srgb, var(--next-neon-green) 35%, var(--next-white)); border-left-color: var(--next-neon-green-deep); }
.title-buyer-pipeline li {
  flex: 1 1 8.25rem; font-size: 0.68rem; line-height: 1.22; padding: 0.45rem 0.35rem;
}
.title-auction-bar {
  position: sticky; bottom: 0; z-index: 15; margin-top: 1.25rem; padding: 0.65rem 1rem;
  background: var(--next-charcoal-900); text-align: center;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
}
.title-auction-bar a, .title-auction-bar span {
  color: var(--next-white); font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.title-auction-bar a:hover { text-decoration: underline; }
.home-grid .count { white-space: pre-line; line-height: 1.35; font-size: 0.8rem; }
.title-issue-staff { border-left: 4px solid var(--next-sky-deep); }
/* Title Hub tabs — same vocabulary as buyer / Nexi; color = queue type */
.title-tab { border-left: 4px solid var(--next-gray-200, #e0e0e0); }
.title-tab[aria-pressed="true"] { font-weight: 700; }
.title-tab-amber[aria-pressed="true"] { background: #fff4e0; border-left-color: #c77800; }
.title-tab-orange[aria-pressed="true"] { background: #fff0e8; border-left-color: #d35400; }
.title-tab-sky[aria-pressed="true"] { background: rgba(0, 168, 224, 0.15); border-left-color: var(--next-sky-deep); }
/* Ask Cindy — always NEXT Sky Blue (charcoal text per brand.css; beats .chip[aria-pressed] charcoal) */
.chip.title-tab.title-tab-cindy {
  background: var(--next-sky);
  color: var(--next-charcoal-900);
  border-color: var(--next-sky-deep);
  border-left-width: 4px;
  font-family: var(--next-font-display);
  font-weight: 800;
}
.chip.title-tab.title-tab-cindy[aria-pressed="true"] {
  background: var(--next-sky);
  color: var(--next-charcoal-900);
  border-color: var(--next-charcoal-900);
  box-shadow: inset 0 0 0 2px var(--next-charcoal-900);
}
.chip.title-tab.title-tab-cindy[aria-pressed="false"] {
  opacity: 0.88;
}
.chip.title-tab.title-tab-cindy:hover {
  background: color-mix(in srgb, var(--next-sky) 85%, var(--next-white));
}
.title-cindy-chat { margin-top: 0.75rem; }
.title-cindy-chat h2 { margin-top: 0; }
.title-cindy-messages {
  max-height: min(52vh, 28rem);
  overflow-y: auto;
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--next-gray-100, #f5f5f5);
  border-radius: 8px;
}
.title-cindy-msg { margin-bottom: 0.85rem; max-width: 40rem; }
.title-cindy-msg--user { margin-left: auto; text-align: right; }
.title-cindy-msg--user .title-cindy-msg-body {
  background: #e8f4fc;
  text-align: left;
  display: inline-block;
}
.title-cindy-msg--assistant .title-cindy-msg-body {
  background: #fff;
  border: 1px solid var(--next-gray-200, #e0e0e0);
}
.title-cindy-msg-label { font-size: 0.75rem; font-weight: 700; color: var(--next-charcoal); margin-bottom: 0.25rem; }
.title-cindy-msg-body {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.45;
}
.title-cindy-compose {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}
.title-cindy-compose input[type="text"] { flex: 1 1 12rem; min-width: 0; }
.title-cindy-quick { flex-wrap: wrap; margin-top: 0.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.title-tab-teal[aria-pressed="true"] { background: #e6f6f4; border-left-color: #0a7a6c; }
.title-tab-indigo[aria-pressed="true"] { background: #eef0ff; border-left-color: #3d4fb8; }
.chip.title-tab.title-tab-buyers[aria-pressed="true"] { background: #eef0ff; border-left-color: #3d4fb8; }
.title-tab-mint[aria-pressed="true"] {
  background: color-mix(in srgb, var(--next-neon-green) 18%, var(--next-white));
  border-left-color: var(--next-neon-green-deep);
}
.title-hub-tab-group--buyer-pipeline .title-hub-tabs-row {
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chip.title-tab.title-tab--buyer-step {
  min-width: 8.5rem;
  text-align: left;
}
.chip.title-tab.title-tab--cleared {
  background: color-mix(in srgb, var(--next-neon-green) 42%, var(--next-white));
  border-left: 4px solid var(--next-neon-green-deep);
  box-shadow: 0 0 10px color-mix(in srgb, var(--next-neon-green) 50%, transparent);
  color: var(--next-charcoal-900);
}
.chip.title-tab.title-tab--cleared[aria-pressed="true"] {
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--next-neon-green-deep), 0 0 14px var(--next-neon-green);
}
.chip.title-tab.title-tab--cleared[aria-pressed="false"]:hover {
  filter: brightness(1.03);
}
.title-tab-gray[aria-pressed="true"] { background: var(--next-gray-100); border-left-color: var(--next-charcoal); }
.title-tab-charcoal[aria-pressed="true"] { background: var(--next-gray-100); }
.title-list-row--paid-waiting { border-left: 4px solid var(--next-sky); background: rgba(62, 188, 238, 0.08); }
.title-list-row--mailed {
  border-left: 4px solid var(--next-neon-green);
  background: color-mix(in srgb, var(--next-neon-green) 12%, var(--next-white));
}
.title-list-row--delivered {
  border-left: 4px solid var(--next-neon-green-deep);
  background: color-mix(in srgb, var(--next-neon-green) 16%, var(--next-white));
}
.title-list-row--billing { border-left: 4px solid var(--next-charcoal); background: var(--next-gray-100); }
.title-list-row--paperwork { border-left: 4px solid var(--next-gray-300); }
.badge.billing-notify { background: rgba(62, 188, 238, 0.2); color: var(--next-charcoal); }
.title-hub-tabs { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 0.65rem; }
.title-hub-tabs-row { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.title-hub-tabs-workflow { padding-bottom: 0.15rem; border-bottom: 1px solid var(--next-gray-200, #e8e8e8); }
.title-hub-tab-group { display: flex; flex-direction: column; gap: 0.3rem; }
.title-hub-tab-group-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--next-charcoal-700, #555); margin: 0;
}
.title-step-at_next { background: rgba(0, 168, 224, 0.2); color: var(--next-charcoal-900); }
.title-step-preparing { background: #e6f6f4; }
.title-step-mailed { background: #eef0ff; }
.title-step-waiting_seller { background: #fff4e0; }
.title-step-problem { background: #fde8e8; }
.title-list-row { padding: 0; overflow: hidden; }
.title-list-row > .vitem { border: none; box-shadow: none; border-radius: 0; }
.title-list-notes {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--next-gray-200, #e8e8e8);
  background: var(--next-gray-100);
}
.title-hub-list .title-list-row { margin-bottom: 0.65rem; }
.hub-notes { list-style: none; margin: 0 0 0.65rem; padding: 0; max-height: 8rem; overflow: auto; }
.hub-notes li { padding: 0.35rem 0; border-bottom: 1px dashed var(--next-gray-200, #e0e0e0); }
.hub-notes li p { margin: 0.15rem 0 0; font-size: 0.92rem; }
.clerk-draft-card {
  margin: 0.75rem 0; padding: 0.75rem 1rem;
  border: 1px solid var(--next-gray-200, #e0e0e0);
  border-left: 4px solid var(--next-sky-deep);
  border-radius: 8px; background: var(--next-white);
}
.clerk-draft-card p { margin: 0.35rem 0 0; white-space: pre-wrap; }
.clerk-draft-actions { margin-top: 0.5rem; }
.title-clerk-fold { padding: 0.85rem 1rem; margin-bottom: 0.75rem; }
.title-clerk-fold summary { font-weight: 700; color: var(--next-charcoal); }
.title-upload-hub {
  border: 2px solid var(--next-sky-deep, #0077b6);
  margin: 1rem 0;
}
.title-upload-hub h2 { margin-top: 0; }
.title-upload-hub .title-upload-consent { display: block; margin: 0.75rem 0; max-width: 52rem; }
.title-upload-external-fold { margin-top: 1rem; }
.title-upload-external-fold summary { font-weight: 600; cursor: pointer; }
.title-cindy-footnote { margin-top: 0.75rem; margin-bottom: 0; }
.title-clerk-block {
  border: 2px solid var(--next-sky-deep, #0077b6);
  margin: 1rem 0;
}
.title-clerk-block h2 { margin-top: 0; }
.clerk-draft-text {
  width: 100%; max-width: 42rem; font: inherit; line-height: 1.45;
  padding: 0.65rem; border-radius: 6px; border: 1px solid var(--next-gray-200, #e0e0e0);
  resize: vertical; min-height: 8rem;
}
.clerk-internal-draft { max-width: 42rem; }
.title-mail-wizard { border: 2px solid var(--next-neon-green-deep); margin-bottom: 1rem; }
.title-mail-wizard > .intro { margin-top: 0; font-weight: 600; }
.title-mail-step {
  margin-top: 1rem; padding: 0.85rem 1rem;
  border: 1px solid var(--next-gray-200, #e0e0e0); border-radius: 8px;
  background: var(--next-white);
}
.title-mail-step .card-sub { margin: 0 0 0.5rem; color: var(--next-charcoal-900); }
.title-mail-step--done { border-color: var(--next-neon-green-deep); background: color-mix(in srgb, var(--next-neon-green) 8%, var(--next-white)); }
.btn-mail-handoff { font-size: 1.05rem; padding: 0.85rem 1.35rem; width: 100%; max-width: 22rem; }
.title-hub-mail-banner {
  font-weight: 700; padding: 0.75rem 1rem; margin-bottom: 0.75rem;
  border-radius: 8px; background: color-mix(in srgb, var(--next-neon-green) 12%, var(--next-white));
  border-left: 4px solid var(--next-neon-green-deep);
}
.title-issue-card {
  margin: 0.75rem 0 1rem; padding: 1rem; border-radius: 10px;
  background: var(--next-gray-100); border: 1px solid var(--next-gray-200, #e0e0e0);
}
.title-issue-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.title-issue-card h4 { margin: 0.75rem 0 0.35rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.buyer-updates { list-style: none; margin: 0; padding: 0; }
.buyer-updates li { padding: 0.55rem 0; border-top: 1px solid var(--next-gray-200, #e8e8e8); }
.buyer-updates li:first-child { border-top: none; }
.buyer-updates time { font-size: 0.78rem; color: var(--next-charcoal); opacity: 0.85; }
.buyer-updates p { margin: 0.25rem 0 0; }
.nexi-promo {
  border: 2px solid var(--next-sky);
  background: linear-gradient(180deg, rgba(0, 168, 224, 0.12) 0%, var(--next-white) 55%);
}
.nexi-promo h2 {
  margin: 0 0 0.5rem;
  font-family: var(--next-font-display);
  font-size: 1.15rem;
  color: var(--next-sky-deep);
}
.lang-switch {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  background: transparent; border: 0; color: var(--next-white); font: inherit; font-weight: 700;
  font-size: 0.85rem; min-height: 36px; padding: 0.2rem 0.7rem; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--next-sky); color: var(--next-charcoal-900); }
.link-btn {
  background: transparent; border: 0; color: var(--next-white); font: inherit; font-weight: 600;
  border-radius: 8px; padding: 0.45rem 0.7rem; min-height: 40px; cursor: pointer; text-decoration: none;
}
.link-btn:hover { background: rgba(255, 255, 255, 0.1); }
.banner {
  margin: 0; padding: 0.65rem 1rem; background: var(--next-charcoal); color: var(--next-white);
  font-weight: 600; text-align: center;
}

main { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.card {
  background: var(--next-white); border: 1px solid var(--next-gray-300); border-radius: 16px;
  padding: 1.15rem 1.15rem 1.25rem; margin-bottom: 0.85rem;
  box-shadow: 0 1px 2px rgba(31, 31, 31, 0.04);
}
.eyebrow {
  margin: 0 0 0.35rem; font-family: var(--next-font-display); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--next-sky-deep);
}
.page-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; margin-bottom: 0.85rem;
}
.page-head h1 { margin: 0; }
.list-tools { margin-bottom: 0.85rem; }

/* Buttons: charcoal text on Sky Blue, never white on Sky Blue. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.55rem 1rem; border-radius: 10px; border: 1.5px solid transparent;
  font-family: var(--next-font-display); font-weight: 800; font-size: 0.95rem; cursor: pointer;
  text-decoration: none; letter-spacing: -0.01em;
}
.btn-primary { background: var(--next-sky); color: var(--next-charcoal-900); }
.btn-primary:hover { filter: brightness(0.97); }
.btn-secondary { background: var(--next-charcoal); color: var(--next-white); }
.btn-ghost { background: var(--next-white); color: var(--next-charcoal-900); border-color: var(--next-gray-300); }
.btn-ghost:hover { border-color: var(--next-charcoal); }
.btn-danger { background: var(--next-white); color: var(--next-charcoal-900); border-color: var(--next-charcoal-900); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.35rem 0; }
.btn-row .btn { flex: 1 1 9rem; }
.btn-small { min-height: 36px; padding: 0.25rem 0.65rem; font-size: 0.85rem; }

label { display: block; font-weight: 600; margin: 0.7rem 0 0.3rem; font-size: 0.92rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 0.6rem 0.75rem; min-height: 46px;
  border: 1px solid var(--next-gray-300); border-radius: 10px; background: var(--next-white);
  color: var(--next-charcoal-900);
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .link-btn:focus-visible, .vitem:focus-visible, .chip:focus-visible, .home-tile:focus-visible, .lang-switch button:focus-visible {
  outline: 3px solid var(--next-sky-deep); outline-offset: 2px;
}
.check { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; margin: 0.75rem 0; }
.check input { width: 24px; min-height: 24px; height: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.vin-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; }
.vin-row > div { flex: 1 1 15rem; }
.vin-row > button { flex: 0 1 auto; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.code { font-family: ui-monospace, Consolas, monospace; }

.msg { margin: 0.75rem 0; padding: 0.7rem 0.85rem; border-radius: 10px; background: var(--next-gray-100);
  border-left: 4px solid var(--next-charcoal); }
.msg.error { border-left-color: var(--next-charcoal-900); font-weight: 600; }
.fine { font-size: 0.88rem; color: var(--next-charcoal); }

.login-card { max-width: 420px; margin: 0 auto 1.5rem; padding: 1.5rem 1.35rem 1.35rem; }
.login-card h1 { font-size: 1.7rem; }
.login-card .fine { margin: 0.85rem 0 1rem; }
.login-split { display: grid; gap: 0.5rem; align-items: start; }
.back { margin: 0 0 0.65rem; }
.intro { margin: -0.15rem 0 1rem; color: var(--next-charcoal); max-width: 42rem; }

.home-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin: 0 0 0.5rem; }
.home-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem;
  min-height: 240px; padding: 1.35rem 1.25rem 1.3rem; border-radius: 22px;
  background: var(--next-sky); border: 0;
  color: var(--next-charcoal-900); text-decoration: none; text-align: left; font: inherit;
}
.home-tile:hover { filter: brightness(0.97); }
.home-tile strong {
  font-family: var(--next-font-display); font-weight: 800; font-size: 2.15rem;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--next-charcoal-900);
}
.home-tile .tile-text { color: var(--next-charcoal-900); font-size: 1.05rem; max-width: 28rem; }
.home-tile .count {
  font-family: var(--next-font-display); font-weight: 800;
  color: var(--next-charcoal-900); font-size: 1rem;
}
.home-tile .action {
  margin-top: auto; background: var(--next-white); color: var(--next-charcoal-900);
  border-radius: 999px; padding: 0.55rem 1rem;
  font-family: var(--next-font-display); font-weight: 800; font-size: 1rem;
}

.more-tools { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--next-gray-300); }
.more-tools h2 { font-family: var(--next-font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.tool-group { margin: 0 0 1.1rem; }
.tool-group h3 { font-family: var(--next-font-display); font-weight: 800; font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--next-charcoal-900); }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; }
.tool-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  background: var(--next-white); border: 1px dashed var(--next-gray-300); border-radius: 16px; padding: 0.9rem 1rem;
  color: var(--next-charcoal-900);
}
.tool-card strong { font-family: var(--next-font-display); font-size: 1.05rem; letter-spacing: -0.02em; }
.badge.soon { background: var(--next-gray-100); color: var(--next-charcoal-900); border-color: var(--next-gray-300); }

.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.lead-card {
  background: var(--next-white); border: 1px solid var(--next-gray-300); border-radius: 16px;
  padding: 0.95rem 1rem; box-shadow: 0 1px 2px rgba(31, 31, 31, 0.04);
}
.lead-card strong { display: block; font-family: var(--next-font-display); font-size: 1.05rem; letter-spacing: -0.02em; }
.lead-card p { margin: 0.35rem 0 0; }

.chips { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.15rem; margin: 0 0 0.65rem; }
.chip {
  flex: 0 0 auto; min-height: 36px; padding: 0.25rem 0.85rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--next-gray-300); background: var(--next-white); color: var(--next-charcoal-900);
  font: inherit; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--next-charcoal-900); color: var(--next-white); border-color: var(--next-charcoal-900); }

.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.vitem {
  display: flex; gap: 0.85rem; align-items: center; background: var(--next-white);
  border: 1px solid var(--next-gray-300); border-radius: 16px; padding: 0.7rem;
  cursor: pointer; width: 100%; text-align: left; font: inherit; color: inherit;
  box-shadow: 0 1px 2px rgba(31, 31, 31, 0.04);
}
.vitem:hover { border-color: var(--next-charcoal); }
.vitem-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; justify-content: space-between;
  background: var(--next-white); border: 1px solid var(--next-gray-300); border-radius: 16px; padding: 0.7rem;
}
.vitem-actions .vitem { flex: 1 1 12rem; border: none; box-shadow: none; padding: 0; cursor: default; }
.vitem-actions .vitem:hover { border-color: transparent; }
.vitem img, .vitem .nophoto {
  width: 112px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: var(--next-gray-100);
}
.vitem--thumb-right { justify-content: space-between; }
.vitem--thumb-right .vbody { flex: 1 1 auto; }
.vitem--thumb-right .inv-list-thumb { margin-left: auto; flex-shrink: 0; }
.vbody { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.vbody strong { display: block; font-family: var(--next-font-display); font-size: 1.02rem; letter-spacing: -0.02em; }
.vmeta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; align-items: center; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 0.12rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--next-charcoal); letter-spacing: 0.01em;
}
.badge.active { background: var(--next-sky); color: var(--next-charcoal-900); border-color: var(--next-sky); }
.badge.sold { background: var(--next-charcoal); color: var(--next-white); }
.badge.in_review { background: var(--next-gray-100); color: var(--next-charcoal-900); border-style: dashed; }
.badge.late { background: var(--next-charcoal-900); color: var(--next-white); border-color: var(--next-charcoal-900); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem 1rem; margin: 0; }
.report-grid dt { font-size: 0.82rem; color: var(--next-charcoal); }
.report-grid dd { margin: 0; font-family: var(--next-font-display); font-weight: 800; font-size: 1.1rem; }
.table-scroll { overflow-x: auto; margin: 0 0 0.75rem; }
.report-table tfoot th, .report-table tfoot td { font-weight: 800; border-bottom: 0; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.report-table th, .report-table td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--next-gray-300); text-align: right; }
.report-table th:first-child, .report-table td:first-child { text-align: left; }
.report-grid dd { overflow-wrap: anywhere; }
.dealer-facts dd { font-family: inherit; font-weight: 600; font-size: 1rem; }
.dealer-doc, .dealer-audit li { overflow-wrap: anywhere; }
.dealer-preview img { display: block; max-width: 100%; height: auto; margin-top: 0.5rem; border-radius: 8px; border: 1px solid var(--next-gray-300); }
.dealer-upload { margin-top: 0.75rem; }
.inv-lines tbody th { padding-top: 0.9rem; font-weight: 800; }
.badge.inv-open { background: var(--next-sky); color: var(--next-charcoal-900); border-color: var(--next-sky); }
.badge.inv-paid { background: var(--next-charcoal); color: var(--next-white); }
.badge.inv-void { background: var(--next-gray-100); color: var(--next-charcoal-900); border-style: dashed; }
/* Payment reminders / Recordatorios de pago */
.rem-list { list-style: none; margin: 0.25rem 0 0.85rem; padding: 0; }
.rem-list li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; padding: 0.45rem 0;
  border-bottom: 1px solid var(--next-gray-300); overflow-wrap: anywhere; }
.rem-list li .fine { flex-basis: 100%; }
.rem-form { margin: 0.85rem 0; padding-top: 0.5rem; border-top: 1px solid var(--next-gray-300); }
.badge.rem-sent { background: var(--next-charcoal); color: var(--next-white); }
.badge.rem-due, .badge.rem-upcoming { background: var(--next-sky); color: var(--next-charcoal-900); border-color: var(--next-sky); }
.badge.rem-skipped, .badge.rem-stopped, .badge.rem-paused { background: var(--next-gray-100); color: var(--next-charcoal-900); border-style: dashed; }
.badge.rem-failed { background: var(--next-charcoal-900); color: var(--next-white); border-color: var(--next-charcoal-900); }
.sample-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0.5rem 0; padding: 0.75rem;
  background: var(--next-gray-100); border-radius: 8px; }
.pickup-code {
  font-family: ui-monospace, Consolas, monospace; font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
}
.role-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0.85rem; }
.role-tab {
  flex: 1 1 auto; min-width: 5.5rem; padding: 0.45rem 0.6rem; border-radius: 8px;
  border: 1px solid var(--next-gray-300); background: var(--next-white); color: var(--next-charcoal-900);
  font: inherit; font-weight: 600; cursor: pointer;
}
.role-tab-active { background: var(--next-sky); border-color: var(--next-sky-deep); color: var(--next-charcoal-900); }
.check-row { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.75rem 0; font-size: 0.92rem; }
.check-row input { margin-top: 0.2rem; }
.badge.pk-ready { background: var(--next-sky); color: var(--next-charcoal-900); border-color: var(--next-sky); }
.badge.pk-released { background: var(--next-charcoal); color: var(--next-white); }
.badge.pk-locked, .badge.pk-no_code { background: var(--next-charcoal-900); color: var(--next-white); border-color: var(--next-charcoal-900); }
.badge.pk-unpaid, .badge.pk-not_invoiced { background: var(--next-gray-100); color: var(--next-charcoal-900); border-style: dashed; }
.badge.title-ready, .badge.title-packed, .badge.ship-label_created { background: var(--next-sky); color: var(--next-charcoal-900); border-color: var(--next-sky); }
.badge.title-problem { background: var(--next-charcoal-900); color: var(--next-white); border-color: var(--next-charcoal-900); }
.badge.title-shipped, .badge.title-delivered, .badge.ship-shipped, .badge.ship-delivered { background: var(--next-charcoal); color: var(--next-white); }
.badge.title-waiting, .badge.ship-voided { background: var(--next-gray-100); color: var(--next-charcoal-900); border-style: dashed; }
.inv-car { margin-bottom: 0.75rem; }
.sr-rows { list-style: none; margin: 0; padding: 0; }
.sr-rows li { padding: 0.5rem 0; border-bottom: 1px solid var(--next-gray-300); overflow-wrap: anywhere; }
.sr-rows .sr-sold .badge { background: var(--next-sky); color: var(--next-charcoal-900); border-color: var(--next-sky); }
.sr-rows .sr-problem .badge { background: var(--next-charcoal-900); color: var(--next-white); border-color: var(--next-charcoal-900); }
.sr-rows .sr-pending .badge { border-style: dashed; }
.sr-tax { padding: 0.6rem 0; border-top: 1px solid var(--next-gray-300); overflow-wrap: anywhere; }
.sr-tax select, .sr-tax input { max-width: 28rem; }
.sr-flags { margin: 0.2rem 0 0.5rem; padding-left: 1.1rem; font-weight: 700; }
.inv-car input { max-width: 12rem; }
.inv-car .btn { margin-top: 0.4rem; }
.ck-row { display: grid; grid-template-columns: 1fr; gap: 0.3rem; padding: 0.55rem 0; border-bottom: 1px solid var(--next-gray-300); }
.ck-row label { margin: 0; }
@media (min-width: 720px) { .ck-row { grid-template-columns: 11rem 12rem 1fr; align-items: center; } }
.post { margin: 0.75rem 0; }
.post h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.post textarea { width: 100%; font: inherit; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.photo { margin: 0; position: relative; background: var(--next-white); border: 1px solid var(--next-gray-300); border-radius: 12px; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--next-gray-100); }
.photo .cover { position: absolute; top: 8px; left: 8px; }
.photo-tools { display: grid; grid-template-columns: repeat(4, 1fr); }
.photo-tools button {
  min-height: 36px; border: 0; border-top: 1px solid var(--next-gray-300);
  background: var(--next-white); color: var(--next-charcoal-900); font-size: 1rem; cursor: pointer;
}
.photo-tools button:hover { background: var(--next-gray-100); }
.photo.pending img { opacity: 0.6; }
.photo progress { width: 100%; height: 6px; display: block; accent-color: var(--next-sky-deep); }
.photo .state { font-size: 0.8rem; padding: 0.35rem 0.5rem; margin: 0; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

a.vitem { text-decoration: none; }
.photo-tools.one { grid-template-columns: 1fr; }
.shot-now { border: 2px solid var(--next-sky); border-radius: 12px; padding: 0.9rem 1rem; margin: 0.5rem 0 1rem; background: var(--next-gray-100); }
.shot-now h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.shot-now p { margin: 0 0 0.5rem; }
.shot-list { list-style: none; padding: 0; margin: 0; }
.shot-list .shot-current { border: 2px solid var(--next-sky-deep); }
.shot-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--next-gray-100); color: var(--next-charcoal); font-size: 0.85rem; border-bottom: 1px dashed var(--next-gray-300); }
#photos progress { width: 100%; height: 10px; accent-color: var(--next-sky-deep); margin-bottom: 0.5rem; }
.steps { margin: 0; padding-left: 1.6rem; display: grid; gap: 0.55rem; }
.steps li::marker { font-family: var(--next-font-display); font-weight: 800; color: var(--next-sky-deep); }
.video-tips { margin: 0.75rem 0; }
.video-tips summary { cursor: pointer; font-weight: 700; color: var(--next-sky-deep); padding: 0.6rem 0; }
.video-tips .steps { margin: 0.5rem 0; }
.checklist { margin: 0.25rem 0 0.85rem; padding-left: 1.2rem; font-weight: 600; }

.flags { margin: 0.5rem 0; padding-left: 1.2rem; }
.score { font-family: var(--next-font-display); font-size: 1.6rem; margin: 0.25rem 0; }
.sticky-save {
  position: sticky; bottom: 0; background: var(--next-gray-100); padding: 0.75rem 0;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}
video { width: 100%; border-radius: 12px; background: var(--next-charcoal-900); }
.scan-overlay {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1rem; padding-top: calc(1rem + env(safe-area-inset-top));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom)); background: rgba(53, 53, 53, 0.92);
}
.scan-overlay video { flex: 1; min-height: 0; object-fit: cover; }
.scan-overlay .fine { color: var(--next-gray-100); text-align: center; }

@media (min-width: 800px) {
  main { padding: 1.75rem 1.5rem 3rem; }
  .btn-row .btn { flex: 0 1 auto; }
  .login-jump { display: none; }
  .login-split { grid-template-columns: 1.35fr 0.75fr; gap: 1.25rem; }
  .login-split .login-card { margin: 0; max-width: none; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-tile { min-height: 280px; }
  .home-tile strong { font-size: 2.6rem; }
  .vlist, .clist { grid-template-columns: 1fr 1fr; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 0.75rem; }
  .vehicle-form { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0.85rem; align-items: start; }
  .vehicle-form .sticky-save { grid-column: 1 / -1; }
  .vehicle-form > .card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .bar-title { font-size: 0.95rem; }
  .home-tile strong { font-size: 1.85rem; }
}
.title-hub-card--focus {
  outline: 2px solid var(--next-sky-deep);
  outline-offset: 2px;
}
.buyer-ack-card { margin-top: 1rem; }
.buyer-ack-intro { font-size: 0.92rem; line-height: 1.45; }
.buyer-ack-points { margin: 0.75rem 0 1rem 1.1rem; font-size: 0.9rem; }
.buyer-ack-name { width: 100%; margin: 0.35rem 0 0.75rem; }
.sig-pad {
  display: block; width: 100%; height: 120px; margin: 0.5rem 0;
  border: 1px solid var(--next-border, #ccc); border-radius: 6px;
  background: #fff; touch-action: none;
}

.hub-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.hub-tabs .chip { text-decoration: none; display: inline-flex; align-items: center; }
.purchase-vehicles { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.5rem; }
.purchase-vehicles li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.purchase-thumb { border-radius: 8px; object-fit: cover; }
.pay-instructions { white-space: pre-wrap; font: inherit; font-size: 0.88rem; line-height: 1.45; background: var(--next-gray-100); border-radius: 12px; padding: 0.85rem 1rem; margin: 0.5rem 0 0; overflow-x: auto; }
