* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --blue:    #1554B3;
  --blue-dark: #0F3D82;
  --accent:  #1554B3;
  --white:   #FFFFFF;
  --cream:   #FFFFFF;
  --cream2:  #F4F4F4;
  --surface-soft: #F7F7F7;
  --muted:   #666666;
  --hint:    #AAA49A;
  --border:  #DEDEDE;
  --green:   #1A6B3A;
  --red:     #B91C1C;
  --bg:      #FFFFFF;
  --text:    #111111;
  --confirm-idle: #CCCCCC;
  --warn-bg: #FFFBEB;
  --warn-border: #D97706;
  --success-bg: #F0FDF4;
  --success-border: #86EFAC;
  --modal-backdrop: rgba(20,30,50,.45);
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
  --radius:  10px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --accent:  #6FA3FF;
  --white:   #1B222C;
  --cream:   #1B222C;
  --cream2:  #232B37;
  --surface-soft: #1F2731;
  --muted:   #98A2B0;
  --hint:    #66707C;
  --border:  #313B47;
  --bg:      #12161D;
  --text:    #ECEDEE;
  --confirm-idle: #4A5460;
  --warn-bg: #3A2E14;
  --warn-border: #D97706;
  --success-bg: #163524;
  --success-border: #86EFAC;
  --modal-backdrop: rgba(0,0,0,.65);
  --shadow: 0 8px 24px rgba(0,0,0,0.5);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: var(--accent); }

/* ── TOP BAR ── */
.site-header {
  background: var(--blue);
  padding: 14px 20px;
  text-align: center;
  position: relative;
}
.site-header a.site-header-brand, .site-header > a { display: inline-block; line-height: 0; }
.site-header-logo { height: 95px; width: auto; display: inline-block; }
.site-header-actions {
  position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
}
.site-header-actions a {
  color: rgba(255,255,255,0.75); text-decoration: none; font-family:'Oswald',sans-serif;
  font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
}
.site-header-actions a:hover { color: #fff; }
.site-header-actions .lang-divider { color: rgba(255,255,255,0.35); font-size: 0.7rem; }
.site-header-actions .lang-flag {
  font-size: 42px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 9px; margin: -9px; border-radius: 8px; opacity: 0.45; transition: opacity 0.15s, background-color 0.15s;
}
.site-header-actions .lang-flag:hover, .site-header-actions .lang-flag.active { opacity: 1; }
.site-header-actions .lang-flag:hover { background-color: rgba(255,255,255,0.12); }

/* ── STEPS BANNER ── */
.steps-bar {
  background: var(--blue);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.step-num {
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.step-divider { color: rgba(255,255,255,0.35); font-size: 0.8rem; padding: 0 4px; }

/* ── HEADER / BRAND ── */
header.top {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap; padding: 16px 20px; max-width: 720px; margin: 0 auto;
}
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; }
.brand .logo {
  width:38px; height:38px; border-radius:10px; background: var(--blue);
  display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0;
}
.brand .logo img { width: 24px; height: auto; display: block; }
.brand h1 {
  font-family:'Oswald', sans-serif; font-size:17px; letter-spacing:1.5px; text-transform:uppercase;
  margin:0; color:var(--text);
}
.brand p { margin:0; font-size:12px; color:var(--muted); }

/* ── MAIN LAYOUT ── */
main, .wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Desktop gets more breathing room, uniformly across every page (data
   tables in particular need it so columns don't wrap awkwardly). Mobile
   layout (<600px, see the media query below) is untouched. */
@media (min-width: 860px) {
  main, .wrap { max-width: 960px; }
}
.wrap-narrow { max-width: 420px; margin: 0 auto; padding: 60px 16px; }

/* ── CARDS ── */
.card, .panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1.5px solid var(--border);
  margin-bottom: 14px;
}
.card-label, .section-title h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream2);
}
.section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; gap:8px; }
.section-title h2 { margin:0; padding:0; border:none; }
.section-title .sub { font-size:13px; color:var(--muted); }

/* ── CALLOUT / PRIVACY-STYLE BANNER ── */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--cream2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.callout strong {
  font-size: 0.85rem; color: var(--text); display: block; margin-bottom: 4px;
  font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; text-transform: uppercase;
}
.callout p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── UPLOAD / DROP ZONE ── */
.drop-zone, .upload-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface-soft);
}
.drop-zone:hover, .upload-drop:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: var(--cream2);
}
.drop-icon { font-size: 2.4rem; margin-bottom: 12px; }
.drop-zone p, .upload-drop p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.drop-zone strong { color: var(--text); }
.drop-hint { font-size: 0.74rem; color: var(--hint); margin-top: 6px; }
.preview-img { max-height: 240px; max-width: 100%; border-radius: 8px; border: 1.5px solid var(--border); display:block; margin: 0 auto 14px; }

/* ── BUTTONS ── */
button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-primary, .btn-black { background: var(--blue); color: var(--white); }
.btn-primary:hover:not(:disabled), .btn-black:hover:not(:disabled) { background: var(--blue-dark); }

.btn-secondary, .btn-outline { background: var(--white); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-secondary:hover:not(:disabled), .btn-outline:hover:not(:disabled) { background: var(--cream2); }

.btn-danger { background: transparent; color: var(--red); border: 1.5px solid rgba(185,28,28,0.4);
  padding: 6px 9px; font-size: 11px; letter-spacing: 0.5px; }
.btn-edit { background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
  padding: 6px 9px; font-size: 11px; letter-spacing: 0.5px; }
.btn-edit:hover:not(:disabled) { background: var(--cream2); }
.row-actions { display: flex; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.btn-social {
  width: 100%; justify-content: center; background: var(--white); color: var(--text);
  border: 1.5px solid var(--border); text-transform: none; letter-spacing: normal;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.88rem; padding: 11px 16px;
}
.btn-social:hover { background: var(--cream2); }
.btn-social svg, .btn-social img { width: 18px; height: 18px; flex-shrink: 0; }
.social-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.or-divider span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  font-family: 'Oswald', sans-serif; white-space: nowrap; }

/* ── SPINNER ── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar { height:8px; border-radius:6px; background:var(--cream2); overflow:hidden; margin-top:14px; }
.progress-fill { height:100%; background:var(--blue); width:30%; animation:pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.4;} 50%{opacity:1;} }
.progress-label { font-size:11px; color:var(--muted); margin-top:8px; text-align:center; }

/* ── FORM FIELDS ── */
select, input, textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  min-width: 0;
  width: 100%;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.field, .row2 > .field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label {
  font-size: 0.65rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; font-family: 'Oswald', sans-serif;
  display:block; margin-bottom: 4px;
}
.field.full { grid-column: 1 / -1; }
.null-warning, .field.flagged input {
  border-color: var(--warn-border) !important; background: var(--warn-bg) !important;
}
.flag-note { font-size: 11px; color: var(--warn-border); margin-top: 4px; }
.confirm-check {
  display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 4px; padding: 12px;
  background: var(--cream2); border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text); cursor: pointer; transition: border-color 0.15s;
}
.confirm-check input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.confirm-check.shake { border-color: var(--warn-border); animation: confirmShake 0.35s; }
@keyframes confirmShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.unit-hint { font-size: 11px; color: var(--muted); margin-top: 4px; min-height: 14px; }

.dual-line { line-height: 1.5; color: var(--text); font-weight: 400; }
td .dual-line:first-child { margin-top: 2px; }
td .dual-line.secondary:last-child { margin-bottom: 2px; }
.stat .val .dual-line.secondary { font-size: 13px; font-weight: 500; }
.lc-location-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; }
.confirm-btn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white); cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; color: var(--confirm-idle);
}
.confirm-btn:hover { border-color: var(--accent); color: var(--accent); }
.confirm-btn.confirmed { background: var(--blue); border-color: var(--blue); color: white; }
.field input.confirmed { border-color: var(--success-border) !important; background: var(--success-bg) !important; }

/* ── STATS ── */
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; margin-bottom:18px; }
.stat { background:var(--cream2); border:1.5px solid var(--border); border-radius:10px; padding:14px; }
.stat .val { font-size:22px; font-weight:700; font-family:'Oswald',sans-serif; color:var(--text); }
.stat .lbl { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-top:4px;
  font-family:'Oswald',sans-serif; }

/* ── TABLE ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th {
  text-align:left; color:var(--muted); font-weight:600; font-size:0.85rem; text-transform:uppercase;
  letter-spacing:.5px; padding:8px; border-bottom:1.5px solid var(--border); font-family:'Oswald',sans-serif; white-space:nowrap;
}
td { padding:10px 8px; border-bottom:1px solid var(--cream2); vertical-align:middle; }
td.nowrap, th.nowrap { white-space: nowrap; }
tr:hover td { background: var(--cream2); }

.year-toggle-row { cursor: pointer; background: var(--cream2); }
.year-toggle-row:hover td { background: var(--border); }
.year-toggle-row td { padding: 10px 8px; }
.year-chev { display: inline-block; color: var(--muted); width: 14px; transition: transform 0.15s; }
.year-toggle-row.open .year-chev { transform: rotate(0deg); }
.year-label { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: 0.5px; color: var(--text); margin-right: 8px; }
.year-count { color: var(--muted); font-size: 12.5px; }
.year-row.hidden { display: none; }

/* ── MAINTENANCE REMINDERS ── */
.reminders-list { display: flex; flex-direction: column; gap: 10px; }
.reminder-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--cream2); flex-wrap: wrap;
}
.reminder-card.status-due { border-color: var(--red); }
.reminder-card.status-upcoming { border-color: var(--warn-border); }
.reminder-info { flex: 1; min-width: 180px; }
.reminder-label { font-weight: 600; font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--text); }
.reminder-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.reminder-status { font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.reminder-status.status-due { color: var(--red); }
.reminder-status.status-upcoming { color: var(--warn-border); }
.reminder-status.status-ok, .reminder-status.status-unknown { color: var(--muted); font-weight: 500; }
.reminder-bar { height: 5px; border-radius: 3px; background: var(--border); margin-top: 6px; overflow: hidden; max-width: 220px; }
.reminder-bar-fill { height: 100%; background: var(--accent); }
.reminder-bar-fill.status-due { background: var(--red); }
.reminder-bar-fill.status-upcoming { background: var(--warn-border); }
.reminder-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.thumb { width:40px; height:40px; border-radius:8px; object-fit:cover; border:1.5px solid var(--border); cursor:pointer; }
.no-thumb { width:40px; height:40px; border-radius:8px; background:var(--cream2); border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:16px; }

/* ── ROLE / TOGGLE BUTTONS ── */
.role-btn {
  flex: 1; padding: 13px 16px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--cream); cursor: pointer; font-size: 0.82rem; font-family: 'Oswald', sans-serif;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: all 0.15s; text-align: center;
}
.role-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--cream2); }
.role-btn.selected { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* ── CALLOUT BOX (report / highlight) ── */
.highlight-box {
  background: var(--blue); border-radius: 8px; padding: 13px 16px; margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
}
.highlight-box span { font-size: 0.83rem; color: rgba(255,255,255,0.9); line-height: 1.45; }

/* ── CONSENT / NOTICE BOX ── */
.notice-box {
  margin-top:18px; padding:16px; background:var(--surface-soft); border:2px solid var(--accent); border-radius:8px;
}
.notice-box .notice-title {
  font-family:'Oswald',sans-serif; font-size:0.72rem; font-weight:600; letter-spacing:1px;
  text-transform:uppercase; color:var(--accent); margin-bottom:10px;
}
.notice-box label { font-size:0.8rem; color:var(--muted); line-height:1.55; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--cream2); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--text); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--muted); flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-top: 10px; }

/* ── FOOTER ── */
footer {
  background: var(--blue); color: white; text-align: center; padding: 32px 20px 28px; margin-top: 20px;
}
.footer-name {
  font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 4px;
}
.footer-tag { font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-icons { display:flex; justify-content:center; gap:20px; margin-bottom:20px; }
.footer-icons a { color: rgba(255,255,255,0.55); transition: color 0.2s; display:flex; }
.footer-icons a:hover { color: white; }
.footer-icons svg { width:22px; height:22px; }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; }
.footer-copy a.footer-secondary-link { color: rgba(255,255,255,0.7); }
.footer-links { font-size: 0.75rem; color: rgba(255,255,255,0.65); letter-spacing: 0.5px; margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ── COOKIE CONSENT BANNER ── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--cream); border-top: 1.5px solid var(--border);
  padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 20px; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner.hidden { display: none; }
.cookie-banner-text { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; flex: 1 1 320px; min-width: 220px; }
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner-actions button { white-space: nowrap; }
@media print { .cookie-banner { display: none !important; } }

/* ── SITE NAV (consistent across every page) ── */
.site-nav {
  background: var(--blue); padding: 12px 16px; display: flex; gap: 22px;
  justify-content: center; align-items: center; flex-wrap: wrap;
}
.site-nav a {
  color: rgba(255,255,255,0.75); text-decoration: none; font-family: 'Oswald', sans-serif;
  font-size: 0.74rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: all 0.15s;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; border-bottom-color: #fff; }

/* ── LOGO BLOCK (centered brand mark, mirrors Born To Roll's logo image) ── */
.logo-block { text-align: center; padding: 28px 16px 6px; }
.logo-block .logo-mark {
  width: 64px; height: 64px; border-radius: 16px; background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 12px;
}
.logo-block .logo-mark img { width: 40px; height: auto; display: block; }
.logo-block h1 {
  font-family: 'Oswald', sans-serif; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: var(--text);
}
.logo-block p { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--blue); color: white; padding: 12px 24px; border-radius: 30px;
  font-size: 0.86rem; font-weight: 500; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 200; white-space: nowrap; box-shadow: var(--shadow);
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--red); }

/* ── MODALS ── */
.modal-backdrop {
  position:fixed; inset:0; background:var(--modal-backdrop); display:none; align-items:flex-start;
  justify-content:center; padding:30px 14px; overflow-y:auto; z-index:50;
}
.modal-backdrop.open { display:flex; }
.modal { background:var(--white); border:1.5px solid var(--border); border-radius:var(--radius); max-width:480px; width:100%; padding:24px; }
.modal h3 { font-family:'Oswald',sans-serif; margin:0 0 4px; font-size:16px; letter-spacing:0.5px; text-transform:uppercase; color:var(--text); }
.modal .step-sub { color:var(--muted); font-size:12px; margin-bottom:16px; }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }

/* ── ONBOARDING TOUR ── */
.tour-reopen-link {
  background: none; border: none; color: var(--muted); font-size: 12.5px; cursor: pointer;
  padding: 0; margin: -6px 0 14px; text-decoration: underline; text-underline-offset: 3px;
}
.tour-reopen-link:hover { color: var(--accent); }
.tour-modal { max-width: 420px; text-align: center; }
.tour-icon { font-size: 42px; line-height: 1; margin-bottom: 10px; }
.tour-modal h3 { text-align: center; text-transform: none; font-size: 18px; letter-spacing: 0; }
.tour-body { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0 18px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; }
.tour-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background 0.15s; }
.tour-dot.active { background: var(--accent); }
.tour-actions { align-items: center; }
.tour-spacer { flex: 1; }
.tour-skip { color: var(--muted); background: none; border: none; box-shadow: none; }

.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center; z-index:60; padding:20px; }
.lightbox.open { display:flex; }
.lightbox img { max-width:100%; max-height:90vh; border-radius:10px; }

/* ── BADGES (dark-mode contrast tweaks) ── */
[data-theme="dark"] .badge-registration, [data-theme="dark"] .badge-spare_part { background: rgba(76,141,255,.18); color: #8FB8FF; }
[data-theme="dark"] .badge-insurance { background: rgba(34,197,94,.18); color: #6EE7A8; }
[data-theme="dark"] .badge-inspection, [data-theme="dark"] .badge-oil_change { background: rgba(245,158,11,.18); color: #FBBF6B; }
[data-theme="dark"] .badge-repair { background: rgba(239,68,68,.18); color: #FCA5A5; }
[data-theme="dark"] .badge-other { background: var(--cream2); color: var(--muted); }
[data-theme="dark"] .badge-drivers_license { background: rgba(76,141,255,.18); color: #8FB8FF; }
[data-theme="dark"] .badge-id_passport, [data-theme="dark"] .badge-have { background: rgba(34,197,94,.18); color: #6EE7A8; }
[data-theme="dark"] .badge-road_service { background: rgba(239,68,68,.18); color: #FCA5A5; }
[data-theme="dark"] .badge-want { background: rgba(76,141,255,.18); color: #8FB8FF; }
[data-theme="dark"] .badge-fulfilled { background: var(--cream2); color: var(--muted); }

/* ── MISC ── */
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.disclaimer { text-align:center; color:var(--muted); font-size:11.5px; margin-top:18px; line-height:1.6; }
.foot-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.empty {
  text-align:center; padding:56px 20px; border:1.5px dashed var(--border); border-radius:var(--radius); color:var(--muted);
}
.empty .big { font-size:38px; margin-bottom:10px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  /* On mobile the logo can run wider than the header, so the flags (which
     desktop pins to the right with position:absolute) end up overlapping the
     end of the logo. Drop them into normal flow below the logo instead. */
  .site-header { padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .site-header-logo { height: 56px; }
  .site-header-actions { position: static; transform: none; right: auto; gap: 3px; }
  .site-header-actions a { font-size: 0.56rem; letter-spacing: 0.3px; }
  .site-header-actions .lang-divider { font-size: 0.6rem; }
  .site-header-actions .lang-flag { font-size: 33px; padding: 8px; margin: -8px; }
  .steps-bar { gap: 2px; }
  .step-item { padding: 4px 8px; font-size: 0.7rem; }
  main, .wrap { padding: 12px 12px 48px; gap: 12px; }
  .card, .panel { padding: 18px 14px; }
  .field-grid, .row2 { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  button, .btn { font-size: 0.8rem; padding: 11px 16px; }
  .btn-row { flex-direction: column; }
  .btn-row button { justify-content: center; width: 100%; }
}
