/* CarPilot.at — Premium Design System v2 (soothing, mobile-perfect) */
:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-soft-2: #dbeafe;
  --blue-ring: rgba(37,99,235,.16);
  --blue-glow: rgba(37,99,235,.12);
  --ink: #0f2137;
  --ink-2: #1e3a5f;
  --ink-soft: #5b6f8a;
  --ink-faint: #8ea0b8;
  --line: #e6edf5;
  --line-strong: #d0dcef;
  --bg: #f7f9fc;
  --bg-2: #eef3fb;
  --card: #ffffff;
  --green: #0d7a3a;
  --green-soft: #e6f5eb;
  --amber: #9a6b13;
  --amber-soft: #fef3d6;
  --red: #c8102e;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(15,33,55,.05), 0 1px 2px rgba(15,33,55,.04);
  --shadow: 0 4px 14px rgba(15,33,55,.06), 0 10px 22px rgba(15,33,55,.06);
  --shadow-lg: 0 10px 28px rgba(15,33,55,.10), 0 20px 40px rgba(15,33,55,.08);
  --font: "Inter", ui-sans-system, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --content: 1160px;
  --content-wide: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15px; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .45em; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h2 { font-size: clamp(1.2rem, 2.1vw, 1.38rem); }
h3 { font-size: 1.02rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; color: #1e3a5f; overflow-wrap: break-word; }
.lead { font-size: clamp(1rem, 2vw, 1.06rem); color: var(--ink-soft); max-width: 62ch; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: #dbeafe; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: var(--content-wide); }
@media (max-width: 380px) { .wrap, .wrap-wide { padding: 0 12px; } }
main.wrap { padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 760px) { main.wrap { padding-top: 28px; padding-bottom: 56px; } }

/* Header — light, airy */
.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(230,237,245,.95);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.logo { font-size: 1.4rem; font-weight: 900; color: var(--ink); letter-spacing: -.04em; display: inline-flex; align-items: center; }
.logo span { color: var(--blue); }
.logo:hover { text-decoration: none; opacity: .92; }
.header-search { flex: 1 1 200px; max-width: 440px; order: 4; width: 100%; }
.header-search input {
  width: 100%; background: var(--bg); border: 1px solid transparent;
  border-radius: var(--radius-pill); padding: 10px 14px 10px 36px; font-size: 16px;
  transition: background .15s, border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6f8a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20L16 16'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px 50%;
}
.header-search input::placeholder { color: #8ea0b8; }
.header-search input:hover { background: #fff; border-color: var(--line); }
.header-search input:focus { background: #fff; border-color: #93b4ff; box-shadow: 0 0 0 4px var(--blue-ring); outline: none; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; width: 100%; order: 5; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--ink-soft); font-weight: 650; font-size: .88rem; padding: 7px 12px; border-radius: var(--radius-pill); white-space: nowrap; transition: background .15s, color .15s; flex-shrink: 0; }
.main-nav a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.main-nav a.active { color: var(--blue); background: var(--blue-soft); }
.nav-cta { margin-left: auto; font-size: .88rem; padding: 8px 14px; box-shadow: 0 2px 10px rgba(37,99,235,.18); flex-shrink: 0; }
.nav-cta:hover { box-shadow: 0 4px 14px rgba(37,99,235,.22); transform: none; }
@media (min-width: 860px) {
  .header-search { order: 0; width: auto; }
  .main-nav { order: 0; width: auto; overflow: visible; }
}
@media (max-width: 860px) {
  .header-inner { gap: 10px; }
  main.wrap { padding-top: 16px; }
}

/* Buttons — soothing, not shouting */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-pill);
  font: inherit; font-size: .9rem; font-weight: 700; line-height: 1;
  cursor: pointer; text-align: center; white-space: nowrap; min-height: 42px;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .12s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { text-decoration: none; border-color: var(--line-strong); background: #fff; box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(37,99,235,.20); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,.24); }
.btn-secondary { background: var(--bg-2); border-color: var(--line); }
.btn-danger { background: #fff; border-color: #fecdd3; color: #9f1239; }
.btn-danger:hover { background: #fff1f2; border-color: #fda4af; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: .84rem; min-height: 36px; }
@media (pointer: coarse) { .btn { min-height: 44px; padding: 11px 18px; } }

/* Cards */
.card { background: var(--card); border: 1px solid rgba(230,237,245,.95); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); transition: border-color .16s, box-shadow .16s; }
.card:hover { border-color: #dbeafe; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1220px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tool-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card {
  position: relative; overflow: hidden; padding: 18px 16px 16px;
  border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px; min-height: 150px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.tool-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, #93b4ff 0%, #60a5fa 100%); opacity: .7; }
.tool-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-soft-2); }
.tool-card h3 { margin: 4px 0 0; font-size: .98rem; color: var(--ink); }
.tool-card p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card .btn { margin-top: auto; align-self: flex-start; padding: 7px 12px; font-size: .82rem; min-height: 34px; background: var(--bg); border-color: var(--line); }
.tool-card:hover .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--blue-soft); color: #1d4ed8; border: 1px solid #dbeafe; }
.badge-green { background: var(--green-soft); color: #0a6b32; border-color: #bde7ca; }
.badge-amber { background: var(--amber-soft); color: #7a4a00; border-color: #fde6a8; }
.tag { display: inline-flex; font-size: .76rem; font-weight: 650; padding: 4px 10px; margin: 2px 4px 2px 0; border-radius: var(--radius-pill); background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; }

/* Forms — 16px to prevent iOS zoom */
.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 650; margin-bottom: 6px; font-size: .88rem; color: var(--ink-2); }
input, textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
@media (min-width: 640px) { input, textarea, select { font-size: 15px; } }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { border-color: #93b4ff; outline: none; box-shadow: 0 0 0 4px var(--blue-ring); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6f8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.cf-turnstile { margin: 14px 0; overflow-x: auto; }

/* Results & notes */
.result-box, .calc-result { background: linear-gradient(180deg, #f0f5ff 0%, #fff 58%); border: 1px solid #dbeafe; border-radius: var(--radius); padding: 16px; margin: 14px 0; font-size: 1rem; box-shadow: var(--shadow-sm); overflow-x: auto; overflow-wrap: break-word; word-break: break-word; }
.calc-result strong, .result-box strong { color: #1d4ed8; font-size: 1.12rem; word-break: break-word; }
.success-note { background: var(--green-soft); border: 1px solid #b6e3c3; color: #0a4a25; border-radius: 11px; padding: 11px 14px; margin: 12px 0; font-weight: 650; word-break: break-word; }
.error-note { background: #fff1f2; border: 1px solid #fecdd3; color: #7f1d1d; border-radius: 11px; padding: 11px 14px; margin: 12px 0; font-weight: 650; word-break: break-word; }
.community-note { font-size: .8rem; color: var(--ink-soft); border-left: 3px solid #d0dcef; padding: 6px 12px; background: #f1f5f9; border-radius: 0 8px 8px 0; }
.cta-box { background: linear-gradient(180deg, #0f2137 0%, #162e52 100%); color: #fff; border-radius: var(--radius-lg); padding: 20px; margin: 20px 0; border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); overflow-wrap: break-word; }
.cta-box h2, .cta-box h3 { color: #fff; }
.cta-box p { color: #cbd5e0; }
.cta-box a { color: #93b4ff; }
.cta-box .btn-primary { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.cta-box .btn-primary:hover { background: #f1f5f9; }

/* Structure */
.breadcrumbs { font-size: .8rem; color: var(--ink-faint); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: break-word; }
.breadcrumbs a { color: #64748b; font-weight: 600; }
.breadcrumbs a:hover { color: var(--ink-2); }
.breadcrumbs .sep { color: #cbd5e8; }
.section-title { font-size: 1rem; font-weight: 850; margin: 28px 0 12px; color: var(--ink); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; overflow-wrap: break-word; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 6px; min-width: 24px; }

/* Hero — soothing, not heavy */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(147,180,255,.16) 0%, transparent 60%),
    radial-gradient(600px 320px at 90% 0%, rgba(125,140,255,.10) 0%, transparent 60%),
    linear-gradient(165deg, #0f2137 0%, #1a3560 55%, #1e3a5f 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 24px 18px 18px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.07); box-shadow: 0 10px 30px rgba(15,33,55,.18);
}
@media (min-width: 640px) { .hero { padding: 28px 22px 20px; margin-bottom: 24px; } }
.hero h1 { font-size: clamp(1.55rem, 5vw, 2.2rem); margin-bottom: 8px; color: #fff; }
.hero h1 em { font-style: normal; color: #bfdbfe; font-weight: 900; }
.hero p { color: #cbd5e0; max-width: 60ch; font-size: .95rem; }
.hero-search {
  display: flex; flex-direction: column; gap: 8px; margin: 14px 0 10px;
  background: #fff; border-radius: var(--radius); padding: 6px;
  box-shadow: 0 8px 22px rgba(15,33,55,.16); border: 1px solid #fff;
}
@media (min-width: 520px) { .hero-search { flex-direction: row; align-items: center; border-radius: var(--radius-pill); gap: 6px; } }
.hero-search input { flex: 1; border: none; background: transparent; padding: 12px 14px; border-radius: var(--radius-pill); font-size: 16px; box-shadow: none; color: var(--ink); min-width: 0; }
@media (min-width: 640px) { .hero-search input { font-size: 15px; } }
.hero-search input:focus { box-shadow: none; }
.hero-search input::placeholder { color: #94a3b8; }
.hero-search .btn { border-radius: var(--radius-pill); width: 100%; justify-content: center; min-height: 44px; }
@media (min-width: 520px) { .hero-search .btn { width: auto; } }
.hero-links { font-size: .84rem; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.hero-links a { color: #93b4ff; font-weight: 650; white-space: nowrap; }
.hero a { overflow-wrap: break-word; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-card strong { display: block; font-size: 1.4rem; color: var(--blue); letter-spacing: -.02em; }
.stat-card span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }

/* Community */
.question-item, .answer-card { background: var(--card); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 14px; margin-bottom: 10px; overflow-wrap: break-word; word-break: break-word; }
.question-item h2, .question-item h3 { font-size: .98rem; margin: 4px 0 6px; line-height: 1.35; }
.question-item h2 a, .question-item h3 a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.question-item h2 a:hover, .question-item h3 a:hover { color: var(--blue); }
.answer-card.accepted { border-color: #a7f3d0; box-shadow: 0 0 0 1px #a7f3d0; background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 65%); }
.accepted .badge { background: var(--green-soft); color: var(--green); border-color: #a7f3d0; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: .9rem; }
.vote-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff; border-radius: var(--radius-pill); padding: 8px 12px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; color: #475569; min-height: 40px; }
.vote-btn:hover { border-color: #93b4ff; color: var(--blue); background: #f0f6ff; }
.vote-btn[disabled] { opacity: .5; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); }
.filter-bar label { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); flex-basis: 100%; }
@media (min-width: 480px) { .filter-bar label { flex-basis: auto; } }
.filter-bar select, .filter-bar input { min-width: 0; flex: 1 1 140px; background: var(--bg); border-color: transparent; }
.filter-bar .btn { width: 100%; }
@media (min-width: 480px) { .filter-bar .btn { width: auto; } }
.filter-bar select:focus, .filter-bar input:focus { background: #fff; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; font-weight: 700; font-size: .86rem; box-shadow: var(--shadow-sm); min-height: 40px; display: inline-flex; align-items: center; }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Marketplace */
.listing-card { background: var(--card); border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.listing-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-2); }
.listing-card .price { font-size: 1.15rem; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.listing-card .body { padding: 14px; }
.listing-placeholder { aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(180deg, #f1f5f9, #e2e8f0); color: #94a3b8; font-weight: 700; font-size: .9rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery img { border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; }

/* Tables — scroll on mobile */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
thead, tbody, tr { display: table; width: 100%; table-layout: fixed; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: .88rem; overflow-wrap: break-word; word-break: break-word; }
tr:last-child th, tr:last-child td { border-bottom: none; }
th { font-weight: 750; color: #64748b; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: #f8fafc; }
@media (min-width: 640px) { table { display: table; } thead, tbody, tr { display: table-row; } }
.spec-table td:first-child { color: #64748b; width: 42%; font-weight: 650; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: #64748b; font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; white-space: nowrap; flex-shrink: 0; }
.tabs a:hover { text-decoration: none; color: var(--ink); background: #f8fafc; }
.tabs a.active { color: var(--blue); border-bottom-color: var(--blue); background: var(--blue-soft); }
.admin-banner { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-weight: 700; color: #92400e; }

/* Footer — premium, editorial, no dead whitespace */
.site-footer { background: #fbfdff; color: #64748b; margin-top: 36px; border-top: 1px solid #e6edf5; }
@media (min-width: 760px) { .site-footer { margin-top: 48px; } }
.footer-grid { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 22px 0 16px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.15fr .85fr .85fr .9fr; gap: 20px; padding: 26px 0 18px; } }
@media (min-width: 980px) { .footer-grid { gap: 28px; } }
.footer-brand p { color: var(--ink-soft); line-height: 1.6; font-size: .86rem; margin: 8px 0 0; max-width: 36ch; }
.footer-logo { font-weight: 900; font-size: 1.08rem; letter-spacing: -.03em; color: var(--ink); display: inline-flex; }
.footer-logo span { color: var(--blue); }
.footer-ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.footer-ctas .btn { font-size: .82rem; min-height: 34px; padding: 7px 12px; }
.footer-grid nav { display: grid; gap: 3px; align-content: start; }
.footer-grid nav a { display: inline-flex; color: #475569; padding: 3px 0; font-weight: 600; font-size: .86rem; width: fit-content; line-height: 1.35; }
.footer-grid nav a:hover { color: var(--blue); text-decoration: none; }
.footer-grid nav::before { content: attr(aria-label); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; display: block; }
.footer-note { border-top: 1px solid #e6edf5; padding: 12px 0 18px; font-size: .74rem; color: #94a3b8; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.auth-hero { text-align: center; max-width: 560px; margin: 6px auto 14px; }
.auth-hero h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 6px; }
.auth-hero p { color: var(--ink-soft); font-size: .95rem; margin: 0 auto; }
.auth-grid { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.auth-card { padding: 18px; }
.auth-card h2 { font-size: 1.05rem; margin-bottom: 2px; }
.auth-sub { font-size: .84rem; color: var(--ink-soft); margin: 0 0 12px; }
.auth-card-accent { border-color: #dbeafe; background: linear-gradient(180deg, #fff 0%, #f3f6ff 100%); box-shadow: var(--shadow-sm); }
.auth-error { min-height: 1.2em; margin: 10px 0 0; font-size: .84rem; font-weight: 700; color: #9f1239; }
.auth-error:empty { display: none; }

/* Popular vehicles cloud */
.make-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.make-cloud .badge { padding: 6px 12px; font-size: .82rem; background: #fff; border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.make-cloud .badge:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: none; }

/* Utilities */
.empty-state { color: var(--ink-soft); border-style: dashed; background: #fcfdff; }
.community-cta { border: 1px solid #dbeafe; background: linear-gradient(180deg, #fff 0%, #f0f5ff 100%); }
.calc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .calc-grid { gap: 12px; } }

/* Tool page extras */
.tool-hero { padding: 8px 0 4px; }
.tool-hero h1 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.vehicle-note { background: #f8fafc; border: 1px dashed #d0dcef; border-radius: 11px; padding: 12px; margin: 12px 0; font-size: .88rem; }
.vehicle-note input { font-size: 16px; }
@media (min-width: 640px) { .vehicle-note input { font-size: 15px; } }
.stand-note { font-size: .8rem; color: var(--ink-faint); line-height: 1.5; }

/* Overflow guards */
main, section, article, .card, .tool-card, .calc-result, .result-box { min-width: 0; }
pre, code { overflow-x: auto; max-width: 100%; word-break: break-word; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
