html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  color: #172033;
  background: #f7f8fb;
}

.text-bg-primary { color:#fff !important; background-color:#0d6efd !important; }
.text-bg-success { color:#fff !important; background-color:#198754 !important; }
.text-bg-secondary { color:#fff !important; background-color:#6c757d !important; }
.text-bg-danger { color:#fff !important; background-color:#dc3545 !important; }

.navbar-brand { color: #13243d !important; }
.navbar-brand span, .eyebrow { color: #d45b2c; }
.market-hero { background: linear-gradient(135deg,#13243d,#274d6d); color:white; border-radius:1rem; padding:2rem; display:grid; gap:1.4rem; margin-bottom:1.5rem; }
.market-hero h1 { font-weight:750; margin:.25rem 0 .5rem; }
.eyebrow { text-transform:uppercase; font-size:.78rem; letter-spacing:.09em; font-weight:700; }
.search-panel { display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:.6rem; align-items:center; }
.listing-meta { display:flex; justify-content:space-between; margin-bottom:.75rem; color:#667085; }
.listing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.vehicle-card { background:white; border:1px solid #e4e8ef; border-radius:.85rem; overflow:hidden; display:grid; grid-template-columns:42% 58%; min-height:205px; box-shadow:0 8px 22px rgba(19,36,61,.06); }
.vehicle-image img { width:100%; height:100%; min-height:205px; object-fit:cover; }
.vehicle-body { padding:1rem; display:flex; flex-direction:column; }
.vehicle-kicker { display:flex; justify-content:space-between; color:#667085; font-size:.78rem; text-transform:uppercase; }
.vehicle-card h2 { font-size:1.18rem; margin:.5rem 0; }
.vehicle-card h2 a { color:#13243d; text-decoration:none; }
.spec-line { color:#667085; font-size:.88rem; }
.vehicle-footer { display:flex; justify-content:space-between; align-items:end; margin-top:auto; }
.vehicle-footer strong { color:#d45b2c; }
.vehicle-footer a { color:#274d6d; }
.pager { display:flex; align-items:center; justify-content:center; gap:1rem; margin:1.5rem 0; }
.detail-layout { display:grid; grid-template-columns:1.2fr 1fr; gap:2rem; background:white; padding:1.5rem; border-radius:1rem; border:1px solid #e4e8ef; }
.detail-layout>img { width:100%; height:auto; border-radius:.75rem; }
.detail-price { font-size:2rem; color:#d45b2c; font-weight:750; }
.spec-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.75rem; }
.spec-grid div { background:#f5f7fa; padding:.65rem; border-radius:.5rem; }
.spec-grid dt { font-size:.75rem; color:#667085; text-transform:uppercase; }.spec-grid dd { margin:0; font-weight:650; }
.unavailable-note,.research-note { border-left:4px solid #d45b2c; background:#fff6f0; padding:1rem; border-radius:.35rem; }
.research-note { border-color:#274d6d; background:#eef5fb; }
.contact-reveal { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.75rem; margin:1rem 0; padding:1rem; background:#f5f7fa; border:1px solid #dbe2ea; border-radius:.6rem; }
.contact-label { color:#667085; font-size:.78rem; text-transform:uppercase; font-weight:700; }
.contact-number { font-size:1.15rem; letter-spacing:.04em; }
.contact-message { grid-column:1/-1; color:#667085; font-size:.85rem; }
.contact-reveal.contact-unavailable { border-color:#d6b26e; background:#fff8e8; }
.contact-reveal.contact-unavailable .contact-number,.contact-reveal.contact-unavailable .contact-message { color:#7a4a08; }
.share-listing { display:grid; grid-template-columns:auto 1fr; gap:.65rem; align-items:center; margin:1rem 0; }
.share-listing .form-control { min-width:0; }.share-message { grid-column:1/-1; color:#667085; font-size:.85rem; }
.account-panel { max-width:34rem; margin:2rem auto; background:white; padding:2rem; border:1px solid #e4e8ef; border-radius:1rem; box-shadow:0 8px 22px rgba(19,36,61,.06); }
.catalogue-auxiliary-record { position:absolute !important; left:-10000px !important; top:auto !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; clip-path:inset(50%) !important; white-space:nowrap !important; border:0 !important; opacity:.001 !important; pointer-events:none !important; }
.testing-diagnostics { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:1rem; background:#fff5f5; border:1px solid #dc3545; border-radius:.75rem; padding:1rem; margin:0 0 1rem; }
.testing-diagnostics>div:first-child { display:flex; align-items:center; gap:.65rem; }
.testing-diagnostics dl { display:flex; gap:.75rem; margin:0; }
.testing-diagnostics dl div { display:flex; align-items:baseline; gap:.35rem; background:white; border:1px solid #f1b8bd; border-radius:.45rem; padding:.35rem .65rem; }
.testing-diagnostics dt { color:#6c757d; font-size:.78rem; text-transform:uppercase; }.testing-diagnostics dd { margin:0; font-size:1.1rem; font-weight:750; }
.testing-diagnostics small { grid-column:1/-1; color:#6c757d; }.testing-toggle { margin:0; }
.testing-risk-summary { margin:0 0 1rem; padding:.9rem 1rem; border:2px solid #7c3aed; border-radius:.75rem; background:#f5f3ff; color:#312e81; }
.testing-risk-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin-bottom:.7rem; }.testing-risk-heading code { overflow-wrap:anywhere; }
.testing-risk-summary dl { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.6rem; margin:0; }
.testing-risk-summary dl div { padding:.5rem .65rem; border:1px solid #c4b5fd; border-radius:.45rem; background:#fff; }
.testing-risk-summary dt { color:#6d28d9; font-size:.72rem; text-transform:uppercase; }.testing-risk-summary dd { margin:0; color:#111827; font-size:1.05rem; font-weight:800; }
.testing-risk-summary p { margin:.7rem 0 0; }.testing-risk-summary p span { color:#6b7280; font-size:.85rem; }
.vehicle-card { position:relative; }
.decoy-ribbon { display:none; position:absolute; z-index:2; top:.55rem; right:.55rem; background:#b42318; color:white; border-radius:.3rem; padding:.25rem .45rem; font-size:.7rem; font-weight:800; letter-spacing:.06em; }
.testing-mode .testing-visible-decoy,.testing-mode .catalogue-auxiliary-record.testing-visible { border:3px solid #dc3545; background:#fff1f2; box-shadow:0 0 0 3px rgba(220,53,69,.12); }
.testing-mode .testing-visible-decoy .decoy-ribbon,.testing-mode .catalogue-auxiliary-record.testing-visible .decoy-ribbon { display:block; }
.testing-mode .catalogue-auxiliary-record.testing-visible { display:grid !important; position:relative !important; left:auto !important; top:auto !important; width:auto !important; height:auto !important; padding:0 !important; margin:0 !important; overflow:visible !important; clip:auto !important; clip-path:none !important; white-space:normal !important; opacity:1 !important; pointer-events:auto !important; }
.admin-heading,.section-heading { display:flex; align-items:start; justify-content:space-between; gap:1rem; }.admin-heading>.badge { margin-top:.65rem; font-size:.85rem; }
.dashboard-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:1rem 0; }.dashboard-cards-four { grid-template-columns:repeat(4,1fr); }.dashboard-cards div { background:white; border:1px solid #e4e8ef; border-radius:.75rem; padding:1rem; }.dashboard-cards strong { font-size:1.8rem; display:block; }.dashboard-section { background:white; padding:1rem; margin:1rem 0; border-radius:.75rem; border:1px solid #e4e8ef; }
.dashboard-cards-summary { grid-template-columns:repeat(auto-fit,minmax(12rem,1fr)); }
.session-tabs { margin-top:1rem; }.session-tabs .badge { margin-left:.3rem; }
.admin-filters { display:grid; grid-template-columns:minmax(15rem,2fr) repeat(6,minmax(8rem,1fr)); gap:.7rem; align-items:end; background:#f5f7fa; border:1px solid #dbe2ea; border-radius:.65rem; padding:1rem; margin:1rem 0; }
.admin-filters label { color:#475467; font-size:.78rem; font-weight:700; }.admin-filters .form-control,.admin-filters .form-select { margin-top:.25rem; font-size:.88rem; }.filter-actions { display:flex; gap:.45rem; }
.content-entry-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; align-items:end; background:#f8fafc; border:1px solid #dbe2ea; border-radius:.65rem; padding:1rem; margin-top:1rem; }
.content-entry-form label { color:#475467; font-size:.8rem; font-weight:700; }.content-entry-form .form-control,.content-entry-form .form-select { margin-top:.25rem; }.content-field-wide { grid-column:span 2; }.content-field-full { grid-column:1 / -1; }.content-active { align-self:center; margin:.5rem 0; }.content-active .form-check-input { margin-top:.15rem; }.content-submit { display:flex; justify-content:flex-end; }
.session-table { min-width:112rem; }.ua-summary { display:inline-block; max-width:28rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; }.session-detail-row>td { padding:0 !important; background:#f8fafc; }.sortable-header a { color:inherit; text-decoration:none; white-space:nowrap; }.sortable-header a:hover,.sortable-header a:focus { color:#0d6efd; text-decoration:underline; }.browsing-history-scroll { max-height:72vh; overflow:auto; }.browsing-history-table { min-width:110rem; font-variant-numeric:tabular-nums; }.browsing-history-table thead th { position:sticky; top:0; z-index:2; background:#eef2f6; }.history-ua { display:inline-block; max-width:28rem; overflow-wrap:anywhere; }.browsing-history-filters { grid-template-columns:minmax(18rem,2fr) minmax(10rem,1fr) auto; }
.account-scope-cell{min-width:12rem}.account-scope-cell small{display:inline-block;line-height:1.35;margin-top:.3rem}.account-member-id{display:inline-block;margin:.12rem .3rem .12rem 0;padding:.15rem .35rem;border-radius:.3rem;background:#eef2f7}.aggregation-explanation{padding:.65rem .8rem;border-left:3px solid #0d6efd;background:#eef5ff;font-size:.82rem;line-height:1.5}
.session-detail-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; padding:1rem; border:2px solid #b9c9da; border-top:0; }.session-detail-panel>div { min-width:0; background:white; border:1px solid #dbe2ea; border-radius:.55rem; padding:1rem; }.session-detail-panel h3 { font-size:1rem; color:#274d6d; margin-bottom:.75rem; }.risk-feature-panel,.session-request-panel,.session-honey-panel,.ground-truth-panel { grid-column:1/-1; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; margin:0; }.admin-metrics div { min-width:0; background:#f5f7fa; border-radius:.4rem; padding:.55rem; }.admin-metrics dt { color:#667085; font-size:.7rem; text-transform:uppercase; }.admin-metrics dd { margin:0; font-weight:700; overflow-wrap:anywhere; }.feature-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); }.wrap-cell { max-width:24rem; overflow-wrap:anywhere; }
.risk-workflow-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:.75rem; }.risk-score-pill { flex:0 0 auto; padding:.55rem .8rem; border-radius:999px; font-weight:800; border:1px solid currentColor; }.risk-equation { margin-bottom:.9rem; padding:.65rem .8rem; border-left:4px solid #3b82f6; background:#eff6ff; color:#173b68; border-radius:.35rem; font-weight:700; }.risk-workflow { display:grid; grid-template-columns:repeat(6,minmax(10rem,1fr)); gap:.65rem; overflow-x:auto; padding:.15rem 0 .65rem; }.workflow-step { position:relative; min-height:12.5rem; padding:.8rem; border:2px solid #d0d5dd; border-radius:.65rem; background:#f8fafc; color:#344054; }.workflow-step:not(:last-child)::after { content:"→"; position:absolute; right:-.6rem; top:46%; z-index:2; width:1rem; height:1rem; border-radius:50%; background:#fff; font-weight:900; line-height:.9rem; text-align:center; }.workflow-step h4 { margin:.25rem 0 .65rem; padding-right:1.4rem; font-size:.9rem; color:inherit; }.workflow-step strong,.workflow-step small { display:block; }.workflow-step small { margin-top:.55rem; line-height:1.35; }.workflow-number { position:absolute; top:.55rem; right:.6rem; display:grid; place-items:center; width:1.45rem; height:1.45rem; border-radius:50%; background:currentColor; color:#fff; font-size:.75rem; font-weight:800; }.workflow-pass { border-color:#30a46c!important; background:#ecfdf3!important; color:#176b45!important; }.workflow-hold { border-color:#98a2b3!important; background:#f2f4f7!important; color:#475467!important; }.workflow-warning { border-color:#f59e0b!important; background:#fffaeb!important; color:#93370d!important; }.workflow-danger { border-color:#e5484d!important; background:#fff1f2!important; color:#9f1239!important; }.mini-bars span { display:block; height:.42rem; margin-top:.6rem; overflow:hidden; border-radius:999px; background:#d0d5dd; }.mini-bars i { display:block; height:100%; max-width:100%; background:currentColor; }.condition-list,.evidence-score-row { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.7rem; }.condition-list span,.evidence-score-row span { padding:.32rem .45rem; border:1px solid #d0d5dd; border-radius:.35rem; background:#fff; font-size:.75rem; }.evidence-score-row b { display:block; font-size:1rem; }.decision-proof { display:flex; justify-content:space-between; gap:1rem; margin:.8rem 0; padding:.75rem; border:1px solid; border-radius:.5rem; }.decision-proof span { text-align:right; font-size:.78rem; font-weight:700; }.supporting-measurements { margin-top:.7rem; }.supporting-measurements summary { cursor:pointer; padding:.7rem; border-radius:.4rem; background:#eef2f6; font-weight:700; }.supporting-measurements[open] summary { margin-bottom:.7rem; }
.status-page { max-width:48rem; margin:4rem auto; padding:2.5rem; background:white; border:1px solid #dbe2ea; border-radius:1rem; box-shadow:0 12px 32px rgba(19,36,61,.08); }
.status-page h1 { color:#13243d; margin:.3rem 0 1rem; }.status-page h1 span { color:#d45b2c; margin-right:.35rem; }.status-family { color:#667085; font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.status-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1.5rem; }
.alignment-challenge-shell { max-width:72rem; margin:2rem auto; padding:0 1rem; }
.alignment-challenge-card { background:#fff; border:1px solid #dbe2ea; border-radius:1rem; padding:2rem; box-shadow:0 14px 38px rgba(19,36,61,.10); }
.alignment-challenge-card h1 { color:#13243d; margin:.35rem 0 .65rem; }.alignment-challenge-card>p { max-width:54rem; color:#475467; }
.challenge-message { margin:1rem 0; padding:.8rem 1rem; border-left:4px solid #d45b2c; border-radius:.35rem; background:#fff6f0; color:#7a2e12; }
.alignment-objects { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.5rem 0; }
.alignment-object { min-width:0; margin:0; padding:1rem; border:1px solid #dbe2ea; border-radius:.75rem; background:#f8fafc; }
.alignment-object legend { float:none; width:auto; margin:0 auto .6rem; padding:0 .35rem; color:#274d6d; font-size:.9rem; font-weight:800; }
.alignment-stage { display:grid; place-items:center; min-height:13rem; overflow:hidden; border:1px solid #cbd5e1; border-radius:.65rem; background:#fff; }
.alignment-stage img { width:180px; height:180px; user-select:none; transition:transform 70ms linear; }
.alignment-object label { display:block; margin:.8rem 0 .35rem; color:#475467; font-size:.82rem; font-weight:700; text-align:center; }
.alignment-object output { color:#13243d; font-variant-numeric:tabular-nums; }
.suspicious-ip-table { min-width:105rem; }.suspicious-ip-table code { white-space:normal; overflow-wrap:anywhere; }.admin-wide-table { max-height:70vh; }
.accessible-challenge { margin:1rem 0; padding:1rem; border:1px solid #dbe2ea; border-radius:.65rem; background:#f8fafc; }
.accessible-challenge summary { cursor:pointer; color:#274d6d; font-weight:750; }.accessible-challenge label { display:block; margin:.8rem 0 .35rem; }.accessible-challenge .form-control { max-width:12rem; }
.challenge-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; margin-top:1.25rem; }.challenge-actions span { margin-left:auto; color:#667085; font-size:.85rem; }
.export-links { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; }.ground-truth-form { display:grid; grid-template-columns:minmax(10rem,1fr) minmax(10rem,1fr) 2fr auto; gap:.75rem; align-items:end; margin-bottom:.75rem; }.ground-truth-form label { color:#475467; font-size:.78rem; font-weight:700; }.ground-truth-form .form-control,.ground-truth-form .form-select { margin-top:.25rem; }.ground-truth-notes { min-width:0; }
.results-metadata { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }.results-metadata div { padding:.7rem; border:1px solid #dbe2ea; border-radius:.5rem; background:#f8fafc; }.results-metadata dt { color:#667085; font-size:.75rem; text-transform:uppercase; }.results-metadata dd { margin:.25rem 0 0; overflow-wrap:anywhere; }.results-table { min-width:70rem; font-variant-numeric:tabular-nums; }.results-grid { display:grid; grid-template-columns:minmax(24rem,1fr) minmax(24rem,1fr); gap:1.5rem; }.weight-row { display:grid; grid-template-columns:9rem 1fr 5.5rem 1fr 5.5rem; gap:.5rem; align-items:center; margin:.55rem 0; font-size:.78rem; }.weight-track { height:.75rem; background:#e5e7eb; border-radius:999px; overflow:hidden; }.weight-track i { display:block; height:100%; }.weight-lr { background:#2563eb; }.weight-rf { background:#16a34a; }.results-figure { width:100%; height:auto; border:1px solid #dbe2ea; border-radius:.5rem; background:#fff; }.result-summary span { color:#667085; }
@media (max-width: 900px) { .search-panel,.detail-layout,.results-grid,.results-metadata { grid-template-columns:1fr; }.listing-grid { grid-template-columns:1fr; }.testing-diagnostics { grid-template-columns:1fr; }.testing-diagnostics small { grid-column:auto; }.testing-risk-summary dl { grid-template-columns:repeat(2,minmax(0,1fr)); }.alignment-objects { grid-template-columns:1fr; }.alignment-stage { min-height:11rem; }.weight-row { grid-template-columns:8rem 1fr 5rem; }.weight-row .weight-track:nth-of-type(2),.weight-row span:last-child { grid-column:auto; } }
@media (max-width: 1200px) { .admin-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }.content-entry-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.feature-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }.dashboard-cards-four { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 700px) { .admin-heading,.section-heading,.risk-workflow-heading,.decision-proof { display:block; }.admin-filters,.content-entry-form,.session-detail-panel,.admin-metrics,.feature-metrics,.ground-truth-form { grid-template-columns:1fr; }.content-field-wide,.content-field-full,.risk-feature-panel,.session-request-panel,.session-honey-panel,.ground-truth-panel { grid-column:auto; }.content-submit { justify-content:stretch; }.content-submit .btn { width:100%; }.export-links { margin-top:.75rem; }.risk-score-pill { display:inline-block; margin-top:.6rem; }.decision-proof span { display:block; margin-top:.4rem; text-align:left; } }
@media (max-width: 520px) { .vehicle-card { grid-template-columns:1fr; }.dashboard-cards,.dashboard-cards-four { grid-template-columns:1fr; } }
