:root {
  --bg: #0a0b0d;
  --bg2: #111318;
  --bg3: #181c24;
  --bg4: #1f2430;
  --border: #2a3040;
  --border2: #3a4558;
  --accent: #e8a020;
  --accent2: #f0b840;
  --accent-dim: rgba(232,160,32,0.12);
  --text: #e8eaf0;
  --text2: #9aa3b8;
  --text3: #5a6480;
  --red: #e84040;
  --red-dim: rgba(232,64,64,0.12);
  --green: #40c878;
  --green-dim: rgba(64,200,120,0.12);
  --blue: #4090e8;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
}

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

html { font-size: 15px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.5;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

a { color: inherit; text-decoration: none; }

/* ── HEADER ── */
.site-header {
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}
.logo svg { color: var(--accent); }

.header-nav { flex: 1; display: flex; align-items: center; gap: 12px; }

.header-car-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

.header-user { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  transition: all .15s;
}
.user-btn:hover { border-color: var(--border2); color: var(--text); }

.user-avatar {
  width: 24px;
  height: 24px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 200;
  overflow: hidden;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text2);
  transition: background .15s;
}
.user-menu-item:hover { background: var(--bg3); color: var(--text); }
.user-menu-item.danger:hover { color: var(--red); }
.user-menu-divider { height: 1px; background: var(--border); }

.main-content { min-height: calc(100vh - 56px); }

/* ── AUTH ── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }

.auth-container { width: 100%; max-width: 380px; }

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
}

.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.auth-title { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--text); }
.auth-sub { font-size: 13px; color: var(--text3); margin-top: 4px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { font-size: 13px; color: var(--text3); text-align: center; margin-top: 20px; }
.auth-footer a { color: var(--accent); }

/* ── FORMS ── */
.form-row { margin-bottom: 16px; }
.form-row:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text3);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 13px;
  outline: none;
  transition: border-color .15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type="date"] { color-scheme: dark; }
textarea { resize: vertical; min-height: 80px; }
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='%235a6480' 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: 34px;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.form-grid-2 .form-row { margin-bottom: 0; }

.form-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  margin-top: 8px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  text-transform: none;
  letter-spacing: 0;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  background: var(--bg3);
  flex-shrink: 0;
  position: relative;
  transition: all .15s;
}
.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checkbox-hint { font-size: 11px; color: var(--text3); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); }
.btn-secondary { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg4); color: var(--text); border-color: var(--border2); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all .15s;
}
.btn-icon:hover { background: var(--bg3); color: var(--text); }
.btn-icon.danger-hover:hover { color: var(--red); }

/* ── ALERTS ── */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.alert-error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(232,64,64,.25); }

/* ── BADGES ── */
.badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.badge-ok { background: var(--green-dim); color: var(--green); border: 1px solid rgba(64,200,120,.25); }
.badge-warn { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(232,160,32,.25); }
.badge-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(232,64,64,.25); }

/* ── BACK BTN ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  transition: color .15s;
}
.back-btn:hover { color: var(--accent); }

/* ── GARAGE ── */
.page-garage { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-title { font-family: var(--font-head); font-size: 32px; font-weight: 700; letter-spacing: 1px; }
.accent { color: var(--accent); }

.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.car-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  display: block;
}
.car-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.car-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.car-card:hover .car-card-accent { opacity: 1; }

.car-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.car-brand { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.car-model { font-size: 13px; color: var(--text2); margin-top: 2px; }
.car-plate { font-family: var(--font-mono); font-size: 12px; color: var(--text3); margin-top: 4px; letter-spacing: 1px; }
.car-vin { font-family: var(--font-mono); font-size: 10px; color: var(--text3); margin-top: 6px; letter-spacing: 1px; }

.car-stats { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.car-stat { flex: 1; }
.car-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); }
.car-stat-value { font-size: 14px; font-weight: 500; color: var(--text); margin-top: 2px; }

.car-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.delete-car-btn { opacity: 0; transition: opacity .15s; }
.car-card:hover .delete-car-btn { opacity: 1; }

.empty-garage { text-align: center; padding: 80px 20px; color: var(--text3); }
.empty-garage svg { margin-bottom: 16px; opacity: .3; }
.empty-garage h2 { font-family: var(--font-head); font-size: 22px; color: var(--text2); margin-bottom: 8px; }
.empty-garage p { font-size: 13px; }

/* ── CAR DETAIL ── */
.car-detail-page { display: flex; flex-direction: column; }

.car-detail-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
}

.car-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.car-detail-brand { font-family: var(--font-head); font-size: 32px; font-weight: 700; letter-spacing: 1px; color: var(--text); line-height: 1.1; }
.car-detail-model-name { color: var(--text2); }
.car-detail-sub { font-size: 13px; color: var(--text2); margin-top: 4px; }
.car-detail-vin { font-family: var(--font-mono); font-size: 11px; color: var(--text3); margin-top: 6px; letter-spacing: 1.5px; }

.kpi-row { display: flex; flex-wrap: wrap; gap: 12px; }

.kpi-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 130px;
  position: relative;
  overflow: hidden;
}
.kpi-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); opacity: .35; }
.kpi-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); }
.kpi-value { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text); margin-top: 4px; }
.kpi-unit { font-size: 13px; color: var(--text3); font-weight: 400; }
.kpi-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }
.kpi-ok .kpi-value { color: var(--green); }
.kpi-ok::after { background: var(--green); }
.kpi-warn .kpi-value { color: var(--accent); }
.kpi-danger .kpi-value { color: var(--red); }
.kpi-danger::after { background: var(--red); }

.car-detail-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 24px 28px;
  align-items: start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ── SIDEBAR ── */
.cat-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 70px;
}
.sidebar-group { padding: 8px 0; }
.sidebar-group-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text3); padding: 6px 14px; }
.sidebar-divider { height: 1px; background: var(--border); }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text2);
  border-left: 2px solid transparent;
  transition: all .15s;
  cursor: pointer;
}
.sidebar-item:hover { background: var(--bg3); color: var(--text); }
.sidebar-item.active { background: var(--accent-dim); color: var(--accent); border-left-color: var(--accent); }

.sidebar-count { margin-left: auto; font-size: 10px; background: var(--bg4); color: var(--text3); padding: 1px 6px; border-radius: 10px; }
.sidebar-item.active .sidebar-count { background: var(--accent-dim); color: var(--accent); }

/* category icon colors */
.cat-ubezpieczenie svg { color: #4090e8; }
.cat-przeglad svg { color: #a060e0; }
.cat-serwis svg { color: var(--accent); }
.cat-naprawa svg { color: var(--red); }
.cat-olej svg { color: var(--green); }
.cat-tuning svg { color: #e060a0; }
.cat-paliwo svg { color: #e87840; }
.cat-inne svg { color: #808090; }

/* ── ENTRIES ── */
.entries-panel { }

.entries-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.entries-heading { font-family: var(--font-head); font-size: 20px; font-weight: 600; flex: 1; }

.entries-summary { display: flex; gap: 20px; margin-bottom: 14px; }
.summary-stat { font-size: 13px; color: var(--text2); }
.summary-label { color: var(--text3); }
.summary-val { font-weight: 500; margin-left: 4px; }
.summary-val.accent { color: var(--accent); }

.entry-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.entry-card:hover { border-color: var(--border2); }

.entry-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.entry-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-ubezpieczenie.entry-icon { background: rgba(64,144,232,.12); }
.cat-przeglad.entry-icon { background: rgba(160,96,224,.12); }
.cat-serwis.entry-icon { background: rgba(232,160,32,.12); }
.cat-naprawa.entry-icon { background: rgba(232,64,64,.12); }
.cat-olej.entry-icon { background: rgba(64,200,120,.12); }
.cat-tuning.entry-icon { background: rgba(224,96,160,.12); }
.cat-paliwo.entry-icon { background: rgba(232,120,64,.12); }
.cat-inne.entry-icon { background: var(--bg3); }

.entry-main { flex: 1; min-width: 0; }
.entry-title { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.meta-chip { font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 3px; }
.chip-ok { color: var(--green); }
.chip-warn { color: var(--accent); }
.chip-danger { color: var(--red); }
.accent-chip { color: var(--accent); font-weight: 500; }

.entry-price { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.entry-actions { display: flex; gap: 2px; }

.entry-chevron { color: var(--text3); transition: transform .2s; }
.entry-chevron.rotated { transform: rotate(180deg); }

.entry-body { padding: 12px 16px 16px; border-top: 1px solid var(--border); }

.entry-detail-row { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.entry-notes {
  font-size: 13px;
  color: var(--text2);
  background: var(--bg3);
  border-left: 3px solid var(--border2);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 10px;
  line-height: 1.6;
}

.entry-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.attachment-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.attachment-thumb:hover { border-color: var(--accent); }
.attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text3); font-size: 10px; }
.att-name { font-size: 9px; color: var(--text3); text-align: center; padding: 0 3px; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── FUEL ── */
.fuel-list-body { max-width: 1200px; margin: 0 auto; width: 100%; padding: 20px 28px; }
.fuel-detail-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.fuel-detail-item { display: flex; flex-direction: column; }
.fd-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); }
.fd-value { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); }
.fuel-info-note { font-size: 12px; color: var(--text3); background: var(--bg3); padding: 8px 12px; border-radius: var(--radius-sm); margin-top: 8px; }

.calc-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  background: var(--bg3);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* ── FORM PAGE ── */
.form-page { max-width: 680px; margin: 0 auto; padding: 28px 24px; }
.form-page-header { margin-bottom: 20px; }
.form-page-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); margin-top: 4px; }

.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ── FILE UPLOAD ── */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  color: var(--text3);
  font-size: 13px;
  transition: all .2s;
  margin-bottom: 12px;
}
.file-drop-zone:hover { border-color: var(--accent); color: var(--accent); }
.file-drop-zone svg { margin-bottom: 8px; }
.file-drop-zone p { font-size: 11px; margin-top: 4px; }

.file-preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.file-preview-item {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--text3);
}
.fp-name { font-size: 9px; color: var(--text3); text-align: center; padding: 0 3px; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* current attachments in edit form */
.current-attachments { margin-bottom: 14px; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 10px; }
.att-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; }
.att-preview-img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.att-preview-file { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text3); }
.att-fname { font-size: 9px; color: var(--text3); text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-remove { font-size: 10px; cursor: pointer; color: var(--red); display: flex; align-items: center; gap: 3px; }
.att-remove input { width: 12px; height: 12px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state svg { margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: 13px; }

/* ── PROFILE ── */
/* reuses form-page styles */

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .car-detail-body { grid-template-columns: 1fr; padding: 16px; }
  .cat-sidebar { position: static; display: flex; overflow-x: auto; border-radius: var(--radius-sm); }
  .sidebar-group { display: flex; padding: 4px 6px; white-space: nowrap; }
  .sidebar-group-label { display: none; }
  .sidebar-divider { display: none; }
  .sidebar-item { border-left: none; border-bottom: 2px solid transparent; padding: 8px 10px; font-size: 12px; }
  .sidebar-item.active { border-bottom-color: var(--accent); border-left-color: transparent; }
}

@media (max-width: 680px) {
  .site-header { padding: 0 14px; }
  .user-name { display: none; }
  .page-garage { padding: 20px 14px; }
  .cars-grid { grid-template-columns: 1fr; }
  .car-detail-header { padding: 16px; }
  .kpi-row { gap: 8px; }
  .kpi-card { min-width: 110px; padding: 10px 12px; }
  .kpi-value { font-size: 17px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .form-page { padding: 16px; }
  .car-detail-brand { font-size: 24px; }
  .fuel-list-body { padding: 16px; }
  .entry-title { white-space: normal; }
}

@media (max-width: 400px) {
  .car-stats { flex-direction: column; gap: 8px; }
  .entry-price { font-size: 15px; }
}
