/* bilcheck-design.css */
/* consolidated design-system bundle created in v17.3.21 */
/* source order preserved from the prior runtime load order:
   rework-system -> rework-marketplace -> rework-inspection -> user-menu */

/* ===== begin rework-system.css: shared system foundations ===== */
:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #f9f8f6;
  --header-bg: #1c2b4a;
  --header-bg-dark: #141e33;
  --brand: #e8b84a;
  --brand-dark: #c99c2e;
  --brand-soft: rgba(232,184,74,0.12);
  --action: #1d5fcc;
  --action-hover: #1751b5;
  --action-soft: rgba(29,95,204,0.08);
  --text: #111827;
  --text-soft: #4b5563;
  --text-muted: #667085;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --good: #16a34a;
  --good-soft: rgba(22,163,74,0.10);
  --warn: #d97706;
  --warn-soft: rgba(217,119,6,0.10);
  --bad: #dc2626;
  --bad-soft: rgba(220,38,38,0.10);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.2);
  --font-head: 'Bricolage Grotesque', 'Georgia', serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --header-h: 64px;
  --tabs-h: 48px;
  --content-max: 1320px;
  --content-narrow: 920px;
  --focus-ring: 0 0 0 3px rgba(29,95,204,0.25);
  color-scheme: light;
}

body.light-mode,
:root {
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -99px; left: 12px; z-index: 9999; background: var(--brand); color: #1a1200; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.skip-link:focus { top: 12px; }
.noscript-banner { background: var(--warn); color: #fff; padding: 12px 24px; text-align: center; font-size: 14px; }
.hidden { display: none !important; }
.small { font-size: 12px; }
.muted, .small.muted { color: var(--text-muted); }
.account-locked-field { background: var(--surface-2); }

.app,
.app-shell,
.legal-app {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px 60px;
}
.inspection-page .app,
#appRoot.app {
  max-width: var(--content-narrow);
}
.panel { display: none; }
.panel.active { display: block; }

.app-header,
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.2);
  /* v16.8.6: scroll-away header. Translate up when body.header-hidden is set
     by scroll-header.js (scrolling down past threshold). Smoothly slides
     back in when scrolling up. */
  transition: transform 0.28s ease;
  will-change: transform;
}
body.header-hidden .app-header,
body.header-hidden .header {
  transform: translateY(-100%);
}
.app-header-inner,
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-brand-row { display: contents; }
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--brand); }
.logo:hover { text-decoration: none; opacity: 0.9; }

/* v17.69.16: mobile-only section switch in the top header.
   On Bilundersökning it links to Bilmarknad; on Bilmarknad it links back to
   Undersökning, so the mobile header works both ways without crowding Konto. */
.mobile-market-link {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-market-link:hover,
.mobile-market-link:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.14);
  text-decoration: none;
}

/* v17.69.16: remove browser number steppers so prices cannot be bumped
   accidentally with the small arrows. Validation still accepts numbers. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.app-nav { display: flex; gap: 2px; align-items: center; }
.app-nav-link,
.chip-btn.header-link {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.15s;
  background: transparent;
  border: 1px solid transparent;
}
.app-nav-link:hover,
.chip-btn.header-link:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.app-nav-link.active,
.chip-btn.header-link.active { color: #fff; background: rgba(255,255,255,0.12); }
.header-spacer { flex: 1; }
.header-utility,
.mini-actions { display: flex; align-items: center; gap: 8px; }

/* v17.69.8: mobile header fix. On legal/content pages the nav links live inside
   .mini-actions; on narrow screens they overflowed past the viewport edge
   (causing horizontal scroll). Allow the header row and the actions to wrap so
   everything stays inside the screen. */
@media (max-width: 560px) {
  .app-header-inner,
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .mini-actions { flex-wrap: wrap; justify-content: flex-end; }
  .mini-actions .app-nav-link { padding-left: 8px; padding-right: 8px; }
}

/* v16.8.6: theme-toggle removed from the app (no dark/light switch anymore).
   Kept only the .chip-btn rules since chip-btn is still used for header
   pills on some legal pages. */
.chip-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.chip-btn:hover { background: rgba(255,255,255,0.14); color: #fff; text-decoration: none; }

/* v17.69.8: mobile tap-target sizing. Header chips and filter chips were ~28px
   tall — below the 44px comfortable-tap guideline. Bump min-height on touch
   screens only; desktop appearance is unchanged. */
@media (max-width: 560px) {
  .chip-btn,
  .header-link { min-height: 40px; }
}

.page-heading,
.toprow {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 20px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inspection-page .toprow,
#appRoot .toprow { padding-left: 0; padding-right: 0; }
.page-heading .eyebrow,
.toprow .eyebrow,
.eyebrow {
  display: inline-block;
  background: var(--brand-soft);
  color: #7a4d00;
  border: 1px solid rgba(232,184,74,0.3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.page-heading .title,
.toprow .title,
.title { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.market-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { font-size: 22px; font-weight: 700; color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary { background: var(--action); color: #fff; border-color: var(--action); }
.btn-primary:hover:not(:disabled) { background: var(--action-hover); border-color: var(--action-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--bg); border-color: var(--text-soft); }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.btn-brand { background: var(--brand); color: #1a1200; border-color: var(--brand); font-weight: 600; }
.btn-brand:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg,
.btn-hero { padding: 13px 24px; font-size: 15px; font-weight: 600; border-radius: var(--radius-md); }

.field {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.4;
}
.field:hover { border-color: var(--border-strong); }
.field:focus { outline: none; border-color: var(--action); box-shadow: var(--focus-ring); }
.field::placeholder { color: var(--text-muted); }
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
textarea.field { resize: vertical; min-height: 80px; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--text-soft); margin-bottom: 5px; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.field-error-msg { font-size: 12px; color: var(--bad); margin-top: 4px; display: block; }
.field-error-msg[hidden] { display: none !important; }
.field-error { border-color: rgba(220,38,38,0.45); box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.req { color: var(--bad); }

.tag, .tag-ui, .chip, .pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
  line-height: 1.6;
}
.tag-good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tag-brand { background: var(--brand-soft); color: #7a4d00; border-color: transparent; }
.tag-action { background: var(--action-soft); color: var(--action); border-color: transparent; }

.summary-box,
.info-card,
.card,
.cta-block,
.auth-required-card,
.seller-contact-card,
.sell-form-section,
.listing-shell,
.listing-shell-flat,
.legal-card,
.legal-hero,
.legal-toc,
.cookie-card,
.cookie-status-card,
.cookie-panel,
.site-footer,
.legal-footer,
.progress-wrap,
.tip,
.question-loader-pill,
.modal-dialog,
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* v17.69.19: static info tips must align like the other mobile form cards.
   Without padding, the Bilval/Drivmedel placeholder text sat against the left edge. */
.tip:not(details) {
  padding: 16px;
  display: grid;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 640px) {
  .tip:not(details) {
    padding: 14px 16px;
    margin-left: 0;
    margin-right: 0;
  }
}

html.has-dialog-root,
body.has-dialog {
  overflow: hidden;
  overscroll-behavior: none;
}

.modal-dialog { padding: 0; max-width: 480px; width: 90vw; box-shadow: var(--shadow-modal); }
.modal-dialog::backdrop { background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); }
.modal { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.interest-summary { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; }

.site-footer,
.legal-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.7);
  margin-top: 60px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.site-footer-inner,
.legal-footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 40px 20px 24px; }
.legal-footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.legal-footer-top strong { display: block; color: #fff; font-size: 16px; font-family: var(--font-head); margin-bottom: 4px; }
.legal-footer-top .footer-note { font-size: 13px; color: rgba(255,255,255,0.5); }
.legal-footer-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.legal-footer-meta .pill,
.pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }
.legal-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.legal-footer-column h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 12px; font-family: var(--font-body); }
.legal-footer-column a, .legal-footer-column button { display: block; font-size: 13px; color: rgba(255,255,255,0.7); background: none; border: none; padding: 3px 0; text-decoration: none; cursor: pointer; text-align: left; transition: color 0.15s; font-family: var(--font-body); }
.legal-footer-column a:hover, .legal-footer-column button:hover { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .app-header-inner, .header-inner { gap: 12px; }
  .header-brand-row { display: flex; align-items: center; gap: 12px; flex: 1; }
  .header-inner, .app-header-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  .app-nav { display: none; }

  .mobile-market-link { display: inline-flex; }
  .logo { font-size: 21px; }

  .app, .app-shell, .legal-app { padding: 0 12px 48px; }
  .page-heading, .toprow { padding-left: 12px; padding-right: 12px; }
  .legal-footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-inner, .legal-footer-inner { padding-left: 12px; padding-right: 12px; }
}


/* ─── Admin page body ───────────────────────────────── */
.admin-page {
  background: var(--bg);
}
.admin-page .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.admin-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.admin-logo:hover { text-decoration: none; opacity: 0.9; }
.admin-logo-badge {
  background: var(--brand);
  color: #1a1200;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.admin-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-topbar-actions .pill {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}
.admin-topbar-actions .btn {
  font-size: 13px;
  padding: 6px 13px;
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}
.admin-topbar-actions .btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.admin-topbar-actions .btn-danger { border-color: rgba(220,38,38,0.4); color: #fca5a5; }
.admin-topbar-actions .btn-danger:hover { background: rgba(220,38,38,0.15); }

/* Admin nav tabs */
.admin-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 56px;
  z-index: 200;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 0 16px;
  height: 46px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab[aria-pressed="true"] { color: var(--action); border-bottom-color: var(--action); font-weight: 600; }
.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--bad);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  padding: 0 4px;
}

/* Admin shells */
.admin-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 18px;
}
.admin-login-card h1 { font-size: 24px; font-weight: 700; margin: 0; }
.admin-brand-kicker { color: var(--action); margin-bottom: 4px; }
.admin-lock-note { font-size: 13px; color: var(--warn); min-height: 0; }
.admin-action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-content-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.u-m-0 { margin: 0; }

/* ─── Mini-kicker (utility used everywhere) ─── */
.mini-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: block;
}
/* ─── Seller contact card ─── */
.seller-contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
/* ─── Auth required card ─── */
.auth-required-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  margin: 20px auto;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.auth-required-card[hidden] { display: none !important; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--text);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.18s;
  pointer-events: none;
  z-index: 400;
  font-size: 14px;
}
.toast-visible { opacity: 1; transform: translateY(0); }
.toast-error { background: #8b1e1e; }
.toast-success { background: #165b35; }

/* ─── Sell wizard progress (rendered by JS) ─── */
.sell-wizard-step {
  flex: 1;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  border-right: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-body);
}
.sell-wizard-step:last-child { border-right: none; }
.sell-wizard-step.active { background: var(--action-soft); color: var(--action); }
.sell-wizard-step.done { background: var(--good-soft); color: var(--good); }

/* ─── Sell stat card ─── */
.sell-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-width: 140px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow-card);
}
.sell-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }

/* ─── Summary box accent ─── */
.summary-box.accent,
.sell-preview-summary { background: var(--action-soft); border-color: rgba(29,95,204,0.15); }
.summary-box.accent .mini-kicker { color: var(--action); }

/* ─── Legal page body width fix ─── */
.legal-page .app.legal-app,
.legal-page .legal-app {
  max-width: 1180px;
}

/* ─── Footer note ─── */
.footer-note { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.footer-note-flat { margin-bottom: 14px; }

/* ─── Keyboard hint ─── */
.kbd { display: inline-block; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px; font-size: 11px; font-family: monospace; color: var(--text-soft); }
/* ===== end rework-system.css ===== */

/* ===== begin rework-marketplace.css: marketplace scaffold ownership ===== */
/* Marketplace scaffolding placeholder.
   Runtime ownership has been consolidated into bilcheck-optimal.css
   to keep sell/account/messages UI in one source of truth.
   Keep this file loaded for now so future extraction remains non-breaking,
   but add new marketplace UI rules to bilcheck-optimal.css instead. */
/* ===== end rework-marketplace.css ===== */

/* ===== begin rework-inspection.css: inspection rework styles ===== */
.inspection-page {
  --content-max: 920px;
}

.hero-home {
  padding: 52px 0 36px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.headline { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -1px; color: var(--text); margin-bottom: 16px; line-height: 1.1; }
.sub { font-size: 17px; color: var(--text-soft); line-height: 1.65; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 4px; }
.tag::before { content: '✓'; color: var(--good); font-size: 12px; }
.info-grid { display: grid; gap: 14px; margin-bottom: 20px; }
.home-info { grid-template-columns: 1fr; }
.home-value { grid-template-columns: 1fr 1fr; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-card); }
.info-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.info-card p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.feature-card { border-left: 3px solid var(--brand); }
.cta-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; margin-top: 20px; box-shadow: var(--shadow-card); }
.cta-block-strong { border-color: rgba(29,95,204,0.2); background: linear-gradient(135deg, #f0f6ff 0%, #fff 100%); }
.cta-block h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.footer-note { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.footer-note-flat { margin-bottom: 16px; }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 22px; cursor: pointer; text-align: left; transition: all 0.18s; font-family: var(--font-body); color: var(--text); box-shadow: var(--shadow-card); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.card[aria-pressed="true"], .card.selected { border-color: var(--action); background: var(--action-soft); box-shadow: 0 0 0 3px rgba(29,95,204,0.12); }
.card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.card-icon { width: 40px; height: 40px; margin-bottom: 14px; display: flex; gap: 3px; align-items: flex-end; }
.card-icon-quick span { background: var(--action); border-radius: 2px; width: 10px; }
.card-icon-quick span:nth-child(1) { height: 16px; }
.card-icon-quick span:nth-child(2) { height: 24px; }
.card-icon-quick span:nth-child(3) { height: 20px; }
.card-icon-deep span { background: var(--brand); border-radius: 2px; width: 10px; }
.card-icon-deep span:nth-child(1) { height: 30px; }
.card-icon-deep span:nth-child(2) { height: 36px; }
.card-icon-deep span:nth-child(3) { height: 28px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.card .meta { font-size: 12px; font-weight: 600; color: var(--action); background: var(--action-soft); border-radius: var(--radius-pill); display: inline-block; padding: 2px 10px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-soft); line-height: 1.5; margin-bottom: 6px; }
.card .tiny { font-size: 12px; color: var(--text-muted); }

.form-subsection-heading { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; margin: 20px 0 14px; box-shadow: var(--shadow-sm); }
.form-subsection-heading.compact { margin-top: 8px; padding: 16px 20px; }
.form-subsection-heading .mini-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--action); margin-bottom: 3px; }
.form-subsection-heading h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.seg-grid { display: grid; gap: 8px; margin-bottom: 14px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.summary-box { background: var(--action-soft); border: 1px solid rgba(29,95,204,0.15); border-radius: var(--radius-md); padding: 16px 18px; font-size: 14px; margin-bottom: 16px; }
.summary-box.hidden { display: none; }
/* v16.8.6: Refined top counter. Cleaner hierarchy — section name small and
   subdued, counter stronger and tabular (so "3 / 10" doesn't jitter as
   numbers tick up). Progress bar is taller with a soft glow for a more
   premium feel, and dots get a touch more breathing room. */
.progress-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px 16px;
  margin-bottom: 20px;
  display: none;
  box-shadow: var(--shadow-sm);
}
.progress-wrap.active, .progress-wrap.visible { display: block; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.progress-meta #sectionLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, var(--text-soft));
}
.progress-meta #progressLabel {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.progress {
  height: 8px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  position: relative;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--action), var(--brand, var(--action)));
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(29,95,204,0.25);
}
.dots, .nav-grid { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.question-shell { padding: 20px 0; }
.question-loader { text-align: center; padding: 24px; }
.question-loader[aria-hidden="true"] { display: none; }
.question-loader-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; color: var(--text-soft); border-radius: var(--radius-pill); }
.question-loader-dots { display: flex; gap: 4px; }
.question-loader-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--action); animation: dot-pulse 1.2s infinite both; }
.question-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.question-loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse { 0%,80%,100%{opacity:0.25}40%{opacity:1} }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--action-soft); color: var(--action); margin-bottom: 12px; }
.qtitle { font-size: clamp(20px, 3.5vw, 28px); font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.desc { font-size: 15px; color: var(--text-soft); line-height: 1.65; margin-bottom: 16px; }
.cost-basis { background: var(--brand-soft); border: 1px solid rgba(232,184,74,0.3); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: #7a4d00; margin-bottom: 14px; }
.cost-basis.hidden { display: none; }
.tip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.tip.danger { border-color: rgba(220,38,38,0.2); background: var(--bad-soft); }
.tip summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; list-style: none; gap: 8px; }
.tip summary::-webkit-details-marker { display: none; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--action); }
.danger .kicker { color: var(--bad); }
.tip-toggle { font-size: 12px; color: var(--text-muted); }
.tip-body { padding: 0 16px 14px; font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 20px 0; }
.choice { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md); padding: 14px 12px; cursor: pointer; font-family: var(--font-body); font-size: 14px; font-weight: 500; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.choice:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.choice:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.choice-copy { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.choice.good .status-dot { background: var(--good); }
.choice.good:hover, .choice.good.selected, .choice.good[aria-pressed="true"] { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.choice.warn .status-dot { background: var(--warn); }
.choice.warn:hover, .choice.warn.selected, .choice.warn[aria-pressed="true"] { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.choice.bad .status-dot { background: var(--bad); }
.choice.bad:hover, .choice.bad.selected, .choice.bad[aria-pressed="true"] { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.inline-followup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px; }
.inline-followup.hidden { display: none !important; }
.note-field { resize: vertical; min-height: 72px; }
.nav-row { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
.kbd { display: inline-block; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px; font-size: 11px; font-family: monospace; color: var(--text-soft); }
.services { display: grid; gap: 14px; }

@media (max-width: 640px) {
  .home-value, .mode-cards, .choice-row { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: 1fr 1fr; }
}


/* === summary and services rescue === */
.report-shell { display: grid; gap: 18px; }
.report-section { display: grid; gap: 14px; }
.report-header-card,
.verdict-panel,
.hero-card,
.confidence-card,
.issue-list,
.upsell-card,
.calc,
.section-result,
.svc,
.summary-box.accent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.report-header-card { padding: 22px; }
.report-branding { display: grid; grid-template-columns: minmax(100px, 140px) 1fr; gap: 18px; align-items: center; }
.report-logo { width: 100%; max-width: 120px; height: auto; border-radius: 14px; background: var(--surface-2); padding: 10px; }
.report-title { margin: 4px 0 8px; font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.08; }
.report-subtitle { margin: 0; color: var(--text-soft); }
.report-meta-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-meta-item { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; background: var(--surface-2); }
.report-meta-item span { display: block; color: var(--text-muted); font-size: 0.86rem; margin-bottom: 4px; }
.report-meta-item strong { display: block; color: var(--text); }
.verdict-panel,
.hero-card,
.confidence-card,
.issue-list,
.upsell-card,
.calc,
.section-result,
.svc { padding: 18px 20px; }
.decision { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 16px; padding: 12px 16px; border-radius: 999px; font-weight: 800; }
.decision.buy { background: var(--good-soft); color: var(--good); }
.decision.negotiate { background: var(--warn-soft); color: var(--warn); }
.decision.expert { background: var(--bad-soft); color: var(--bad); }
.confidence-grid,
.price-hero,
.stats { display: grid; gap: 14px; }
.confidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.price-hero { grid-template-columns: 1.15fr 0.85fr; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.confidence-card .big,
.hero-value,
.stat .n { font-family: var(--font-head); font-weight: 700; line-height: 1; color: var(--text); }
.confidence-card .big,
.stat .n { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.hero-value { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-top: 8px; }
.confidence-card .label,
.hero-sub,
.muted-line { color: var(--text-soft); font-size: 0.95rem; }
.summary-row,
.hero-line,
.calc-row,
.section-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child,
.hero-line:last-child,
.calc-row:last-child,
.section-row:last-child { border-bottom: 0; }
.summary-row span:last-child,
.hero-line strong,
.calc-row span:last-child,
.section-row span:last-child,
.cost,
.value { text-align: right; font-weight: 700; color: var(--text); }
.hero-list,
.account-detail-list,
.upsell-points { display: grid; gap: 8px; }
.issue-list .issues { display: grid; gap: 12px; }
.issue { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.issue .top,
.svc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.note { margin-top: 10px; color: var(--text-soft); font-style: italic; }
.stat { padding: 18px 14px; border-radius: 18px; text-align: center; border: 1px solid var(--border); background: var(--surface-2); }
.stat.good { background: var(--good-soft); border-color: rgba(22,163,74,0.16); }
.stat.warn { background: var(--warn-soft); border-color: rgba(217,119,6,0.16); }
.stat.bad { background: var(--bad-soft); border-color: rgba(220,38,38,0.16); }
.svc { width: 100%; text-align: left; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.svc:hover { transform: translateY(-1px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.svc-price { font-size: 1.15rem; font-weight: 800; }
.svc-price small { display: block; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }
.export-actions,
.upsell-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.disclaimer { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.print-only { display: none; }
@media print {
  .print-hide { display: none !important; }
  .print-only { display: block !important; }
  .app-header, .site-footer, .legal-footer, #progressWrap { display: none !important; }
  body { background: white; }
  .app { max-width: none; padding: 0; }
}
@media (max-width: 760px) {
  .report-branding,
  .report-meta-grid,
  .confidence-grid,
  .price-hero,
  .stats { grid-template-columns: 1fr; }
}

.calc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.calc-title { font-size: 1.08rem; font-weight: 800; }
.hero-card.kpi { background: linear-gradient(135deg, rgba(29,95,204,0.08), rgba(232,184,74,0.08)); }
.report-summary-box { margin-top: 0; }


/* === inspection interaction parity restore === */
.question-shell { position: relative; }
.question-stage {
  display: grid;
  gap: 16px;
  transition: opacity 140ms ease, transform 140ms ease;
}
.question-stage.is-transitioning {
  opacity: 0.45;
  transform: translateY(6px);
}
.question-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  pointer-events: none;
  z-index: 2;
}
.question-loader.visible { display: flex; }
.question-loader-pill {
  background: rgba(28,43,74,0.92);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 38px rgba(15,23,42,0.24);
}
.seg {
  width: 100%;
  min-height: 94px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.seg:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.seg:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.seg .main { font-weight: 800; font-size: 1rem; }
.seg .sub { font-size: 0.9rem; color: var(--text-soft); text-align: center; line-height: 1.35; }
.fuel-option, .gear-option, .driveline-option {
  min-height: 88px;
  align-content: start;
  justify-items: start;
  text-align: left;
  gap: 6px;
  padding: 16px;
}
.option-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(17,24,39,0.08);
  background: rgba(17,24,39,0.04);
}
.fuel-option .main, .gear-option .main, .driveline-option .main { font-size: 1.02rem; }
.fuel-option.fuel-bensin .option-chip { color: #8a5b00; background: rgba(248,212,134,0.26); border-color: rgba(248,212,134,0.38); }
.fuel-option.fuel-diesel .option-chip { color: #1e40af; background: rgba(133,163,255,0.16); border-color: rgba(133,163,255,0.34); }
.fuel-option.fuel-hybrid .option-chip { color: #0f766e; background: rgba(80,201,161,0.16); border-color: rgba(80,201,161,0.34); }
.fuel-option.fuel-el .option-chip { color: #6d28d9; background: rgba(181,140,255,0.18); border-color: rgba(181,140,255,0.34); }
.gear-option.gear-manuell .option-chip { color: #7c5a14; background: rgba(240,226,176,0.24); border-color: rgba(240,226,176,0.38); }
.gear-option.gear-automat .option-chip { color: #0369a1; background: rgba(94,188,255,0.16); border-color: rgba(94,188,255,0.32); }
.driveline-option.driveline-fwd .option-chip,
.driveline-option.driveline-rwd .option-chip { color: #7c5a14; background: rgba(240,226,176,0.24); border-color: rgba(240,226,176,0.38); }
.driveline-option.driveline-4motion .option-chip,
.driveline-option.driveline-quattro .option-chip,
.driveline-option.driveline-xdrive .option-chip,
.driveline-option.driveline-4matic .option-chip,
.driveline-option.driveline-awd .option-chip,
.driveline-option.driveline-awd-i .option-chip,
.driveline-option.driveline-4x4 .option-chip,
.driveline-option.driveline-4drive .option-chip,
.driveline-option.driveline-allgrip .option-chip,
.driveline-option.driveline-symmetrical-awd .option-chip,
.driveline-option.driveline-dual-motor-awd .option-chip { color: #0369a1; background: rgba(94,188,255,0.16); border-color: rgba(94,188,255,0.32); }
.fuel-option.selected,
.gear-option.selected,
.driveline-option.selected {
  border-color: rgba(29,95,204,0.35);
  background: linear-gradient(180deg, rgba(29,95,204,0.08), rgba(255,255,255,0.96));
  box-shadow: 0 0 0 3px rgba(29,95,204,0.12);
}
.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(232,184,74,0.16);
  border: 1px solid rgba(232,184,74,0.28);
  color: #7a4d00;
  font-size: 0.92rem;
  font-weight: 700;
}
.section-intro,
.section-intro.section-intro-clean {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.section-intro .big,
.section-intro-clean .big { margin-bottom: 4px; font-size: 1.15rem; font-weight: 700; }
.section-intro .num,
.section-intro-clean .num { min-width: 74px; text-align: right; }
.section-intro .num strong,
.section-intro-clean .num strong { display: block; font-size: 1.2rem; color: var(--text); }
.inline-followup { margin: 14px 0 8px; }
.inline-followup-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.inline-followup-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 8px;
}
.inline-followup-title { font-weight: 800; margin-bottom: 6px; }
.inline-followup-desc { color: var(--text-soft); margin-bottom: 10px; }
.inline-followup-meta {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.subchoice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.subchoice {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  min-height: 48px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.subchoice:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.subchoice:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.subchoice.good.selected { border-color: rgba(22,163,74,0.45); background: var(--good-soft); color: var(--good); }
.subchoice.warn.selected { border-color: rgba(217,119,6,0.45); background: var(--warn-soft); color: var(--warn); }
.subchoice.bad.selected { border-color: rgba(220,38,38,0.45); background: var(--bad-soft); color: var(--bad); }
.nav-square {
  min-height: 42px;
  min-width: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-square:hover, .nav-square.current, .nav-square:focus-visible {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(29,95,204,0.12);
  outline: none;
}
.nav-square.good { background: var(--good-soft); border-color: rgba(22,163,74,0.28); }
.nav-square.warn { background: var(--warn-soft); border-color: rgba(217,119,6,0.28); }
.nav-square.bad { background: var(--bad-soft); border-color: rgba(220,38,38,0.28); }
.summary-row span:first-child,
.hero-line span:first-child,
.calc-row span:first-child,
.section-row span:first-child {
  color: var(--text-soft);
  font-weight: 500;
}
.report-summary-box .muted-line { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .subchoice-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section-intro,
  .section-intro.section-intro-clean {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-intro .num,
  .section-intro-clean .num { text-align: left; }
}


/* compact fuel options */
.fuel-option { justify-items: center; text-align: center; align-content: center; }
.fuel-option .main { width: 100%; }
.fuel-option .sub { display: none; }

/* v17.2.2 — Progress bar is NOT sticky. Earlier attempts to make it
   sticky caused either flickering (v17.1.0 compact state) or covered
   content on scroll (v17.2.0). User feedback: "följer med ner och
   förstör allt". Cleanest answer: don't follow. The bar sits at the
   top of the check screen, scrolls away naturally with the page. */
html[data-screen="check"] .progress-wrap.active,
html[data-screen="check"] .progress-wrap.visible {
  position: static;
  top: auto;
  z-index: auto;
}

/* On print/PDF, progress stays static */
@media print {
  .progress-wrap { position: static !important; }
}


.progress-wrap[hidden] { display: none !important; }
/* ===== end rework-inspection.css ===== */

/* ===== begin user-menu.css: user menu styles ===== */
.user-menu-trigger {
  position: relative;
}

.user-menu-trigger.has-unread-messages::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5484d;
  border: 2px solid #1b3155;
  box-shadow: 0 0 0 2px rgba(229, 72, 77, 0.18);
  pointer-events: none;
}

.message-notification-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.message-notification-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14);
}

.user-menu-panel {
  position: fixed;
  top: -9999px;
  left: auto;
  right: 12px;
  width: min(332px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(12,18,30,0.97);
  box-shadow: 0 28px 60px rgba(0,0,0,0.38);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity .18s ease, transform .22s ease, visibility .18s ease;
  z-index: 2400;
}

.user-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-menu-card {
  display: grid;
  gap: 10px;
}

.user-menu-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.user-menu-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0d1422;
  background: linear-gradient(135deg, #f0cc63 0%, #d79d28 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.user-menu-profile-copy {
  min-width: 0;
}

.user-menu-kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.58);
  margin-bottom: 2px;
}

.user-menu-name,
.user-menu-email {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-name {
  font-weight: 700;
  color: #f7f9fd;
}

.user-menu-email {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
}

.user-menu-links,
.user-menu-actions {
  display: grid;
  gap: 4px;
}

.user-menu-link,
.user-menu-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #f1f4fb;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.user-menu-link:hover,
.user-menu-link:focus-visible,
.user-menu-action:hover,
.user-menu-action:focus-visible {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  outline: none;
}

.user-menu-link-note,
.user-menu-meta {
  color: rgba(255,255,255,0.64);
  font-size: 0.82rem;
}

.user-menu-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff7b72 0%, #e5484d 100%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(229,72,77,0.32);
}

.user-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2px 0;
}

.user-menu-panel .btn {
  width: 100%;
}

.light-mode .user-menu-panel {
  background: rgba(255,255,255,0.98);
  border-color: rgba(16,28,48,0.12);
  box-shadow: 0 22px 48px rgba(16,30,54,0.18);
}

.light-mode .user-menu-profile {
  background: #f5f8fc;
  border-color: rgba(16,28,48,0.08);
}

.light-mode .user-menu-kicker,
.light-mode .user-menu-meta,
.light-mode .user-menu-email {
  color: rgba(28,45,74,0.68);
}

.light-mode .user-menu-name,
.light-mode .user-menu-link,
.light-mode .user-menu-action {
  color: #10203a;
}

.light-mode .user-menu-link:hover,
.light-mode .user-menu-link:focus-visible,
.light-mode .user-menu-action:hover,
.light-mode .user-menu-action:focus-visible {
  background: #eef3f9;
  border-color: rgba(16,28,48,0.1);
}

.light-mode .user-menu-divider {
  background: rgba(16,28,48,0.08);
}

.light-mode .user-menu-badge {
  background: #ffe4e4;
  color: #b42318;
}

@media (max-width: 720px) {
  .user-menu-panel {
    width: min(320px, calc(100vw - 16px));
  }
}


.user-menu-action.danger {
  color: #ffd7d7;
}

.user-menu-action.danger:hover,
.user-menu-action.danger:focus-visible {
  background: rgba(229,72,77,0.12);
  border-color: rgba(229,72,77,0.18);
}

.light-mode .user-menu-link-note,
.light-mode .user-menu-meta {
  color: rgba(28,45,74,0.68);
}

.light-mode .user-menu-badge {
  background: linear-gradient(135deg, #ff7b72 0%, #d92d20 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(217,45,32,0.18);
}

.light-mode .user-menu-action.danger {
  color: #8f1d17;
}

.light-mode .user-menu-action.danger:hover,
.light-mode .user-menu-action.danger:focus-visible {
  background: #fff1f1;
  border-color: rgba(217,45,32,0.16);
}
/* ===== end user-menu.css ===== */

/* Footer copyright bottom row */
.legal-footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.legal-footer-bottom .footer-note {
  font-size: 13px;
  opacity: 0.65;
}

/* ─── Missing utility classes (v17.11.0) ─── */

/* value-card: used on index.html info-cards in the home-value grid */
.value-card {
  border-top: 3px solid var(--action);
}

/* hero-art: full-width SVG art banner above question title */
.hero-art {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4px;
  line-height: 0;
}
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* badge.medium: medium-sized category badge on check screen */
.badge.medium {
  font-size: 12px;
  padding: 5px 14px;
}

/* ─── Choice flash feedback animation (v17.11.0) ─── */
@keyframes choice-flash {
  0%   { opacity: 1; transform: scale(1); }
  30%  { opacity: 0.75; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}
.choice.flash,
.subchoice.flash {
  animation: choice-flash 0.42s ease forwards;
}

/* v17.69.50: Clear confirmation after expert/case submit */
.booking-confirmation-modal { align-items: stretch; text-align: left; }
.booking-confirmation-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
  font-size: 24px;
}
.booking-confirmation-modal h3 { margin: 0; }
.booking-confirmation-modal p { margin: 0; color: var(--muted); line-height: 1.55; }
.booking-confirmation-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}
.booking-confirmation-summary div { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.booking-confirmation-summary span { color: var(--muted); font-size: 13px; }
.booking-confirmation-summary strong { color: var(--text); font-size: 14px; text-align: right; }
