/* Carte de service — jurnalul digital al mașinii. Teme: dark (implicit) și light. */
:root,
[data-bs-theme="dark"] {
    --bg: #0c0e12;
    --surface: #14171d;
    --surface-2: #1b1f27;
    --surface-glass: rgba(12, 14, 18, .85);
    --border: #262b35;
    --border-strong: #3a4150;
    --text: #e7eaf0;
    --text-2: #c3c9d4;
    --muted: #8b93a3;
    --faint: #5d6575;
    --accent: #1e8dfc;
    --accent-hover: #3f9fff;
    --accent-text: #1e8dfc;
    --accent-ink: #ffffff;
    --accent-soft: rgba(30, 141, 252, .12);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, .12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .12);
    --cat-mix: 100%;
    --link-rgb: 30, 141, 252;
    --shadow: none;
    --radius: 14px;
    --sidebar-w: 260px;
    color-scheme: dark;
}

[data-bs-theme="light"] {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --surface-glass: rgba(255, 255, 255, .85);
    --border: #e3e6eb;
    --border-strong: #cdd2da;
    --text: #14171d;
    --text-2: #3b4250;
    --muted: #646d7d;
    --faint: #98a0ae;
    --accent: #1e8dfc;
    --accent-hover: #1578e0;
    --accent-text: #1170d6;
    --accent-ink: #ffffff;
    --accent-soft: rgba(30, 141, 252, .09);
    --danger: #e11d48;
    --danger-soft: rgba(225, 29, 72, .08);
    --warn: #b45309;
    --warn-soft: rgba(245, 158, 11, .12);
    --cat-mix: 72%;
    --link-rgb: 17, 112, 214;
    --shadow: 0 1px 2px rgba(20, 23, 29, .04), 0 4px 16px rgba(20, 23, 29, .04);
    color-scheme: light;
}

:root, [data-bs-theme] {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--border);
    --bs-tertiary-bg: var(--surface-2);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-link-color: var(--accent-text);
    --bs-link-hover-color: var(--accent-text);
    --bs-link-color-rgb: var(--link-rgb);
    --bs-link-hover-color-rgb: var(--link-rgb);
    --bs-focus-ring-color: var(--accent-soft);
    --bs-emphasis-color: var(--text);
}

body { background: var(--bg); color: var(--text); font-feature-settings: "cv11", "ss01"; }
.num, .kpi-value, .amount { font-variant-numeric: tabular-nums; }
.min-w-0 { min-width: 0; }
a { text-decoration: none; }
.text-accent { color: var(--accent-text) !important; }
/* textul colorat pe categorii e mai închis în light, ca să rămână lizibil */
.cat-ink { color: color-mix(in srgb, var(--cat) var(--cat-mix), var(--text)); }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.main { padding: 32px 40px 64px; max-width: 1400px; }
@media (min-width: 992px) { .main { margin-left: var(--sidebar-w); } }
@media (max-width: 991.98px) { .main { padding: 20px 16px 48px; } }

.topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px; background: var(--surface-glass);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}

.sidebar {
    --bs-offcanvas-width: var(--sidebar-w);
    --bs-offcanvas-bg: var(--surface);
    background: var(--surface);
    border-right: 1px solid var(--border);
}
@media (min-width: 992px) { .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); } }
.sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 24px 18px; width: 100%; overflow-y: auto; }

.brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700; letter-spacing: -.01em;
    color: var(--text); white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand b { font-weight: 700; color: #1e8dfc; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }

.vehicle-switch {
    display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 20px; padding: 10px 12px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-align: left;
}
.vehicle-switch:hover { border-color: var(--border-strong); }
.vehicle-switch .bi-car-front { font-size: 18px; color: var(--accent-text); }
.vehicle-switch .name { font-weight: 600; font-size: 13.5px; }
.vehicle-switch .sub { font-size: 12px; color: var(--muted); }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--border); --bs-dropdown-link-hover-bg: var(--surface-2); --bs-dropdown-link-active-bg: var(--accent-soft); --bs-dropdown-link-active-color: var(--text); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.dropdown-item { border-radius: 8px; font-size: 14px; padding: 8px 10px; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: var(--muted); font-weight: 500; font-size: 14px; transition: background .15s, color .15s;
}
.side-nav a i { font-size: 17px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.side-nav .badge-count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--danger); color: #fff; }
.side-nav .badge-count.soon { background: var(--warn); color: #14171d; }
.side-label { margin: 20px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }

.side-user {
    margin-top: auto; display: flex; align-items: center; gap: 6px;
    padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
}
.side-user-name { font-weight: 600; font-size: 13px; }
.side-user-mail { color: var(--muted); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-right: 4px; }
.avatar-initials { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }

/* ---------- Theme switch ---------- */
.theme-switch { display: flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; margin-top: 12px; }
.theme-switch button { flex: 1; border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 6px 0; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; font-size: 14px; padding: 9px 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn-accent:hover, .btn-accent:focus, .btn-accent:active { background: var(--accent-hover) !important; color: var(--accent-ink) !important; }
.btn-accent-soft { background: var(--accent-soft); color: var(--accent-text); border: 0; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-ghost.active { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-icon {
    display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; flex-shrink: 0;
    border-radius: 10px; color: var(--muted); background: transparent; border: 0; font-size: 18px;
}
.btn-icon:hover { color: var(--text); background: var(--surface-2); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); border: 0; }
.btn-danger-soft:hover { background: var(--danger-soft); color: var(--danger); filter: brightness(1.1); }

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
@media (max-width: 575.98px) { .page-title { font-size: 23px; } }

/* ---------- Cards ---------- */
.panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; height: 100%; box-shadow: var(--shadow);
}
.panel.h-auto { height: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title { font-size: 15px; font-weight: 600; margin: 0; }
.panel-sub { font-size: 13px; color: var(--muted); }
.panel-danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }

.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.kpi-label i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 14px; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi-value small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi-foot { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.kpi-accent { background: linear-gradient(135deg, var(--accent-soft), transparent 65%), var(--surface); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.kpi-accent .kpi-label i { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 575.98px) { .kpi-value { font-size: 22px; } .panel { padding: 16px; } }

/* ---------- Category ---------- */
.cat-badge {
    --cat: #94a3b8;
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--cat) var(--cat-mix), var(--text));
    background: color-mix(in srgb, var(--cat) 14%, transparent);
}
.cat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat); display: inline-block; flex-shrink: 0; }

.cat-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.cat-option {
    --cat: #94a3b8;
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center;
    border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 12.5px; font-weight: 600;
    color: var(--muted); transition: all .15s; background: var(--surface);
}
.cat-option i { font-size: 20px; color: color-mix(in srgb, var(--cat) var(--cat-mix), var(--text)); }
.cat-option:hover { border-color: var(--border-strong); color: var(--text); }
.btn-check:checked + .cat-option { border-color: var(--cat); color: var(--text); background: color-mix(in srgb, var(--cat) 12%, transparent); }
.btn-check:focus-visible + .cat-option { outline: 2px solid var(--cat); outline-offset: 2px; }

/* ---------- Forms / modal ---------- */
.form-control, .form-select { background-color: var(--surface-2); border-color: var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text); }
.form-control:focus, .form-select:focus { background-color: var(--surface-2); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.form-control:disabled, .form-control[readonly] { background-color: var(--surface-2); opacity: .7; }
.form-control::placeholder { color: var(--faint); }
.input-group-text { background: var(--surface); border-color: var(--border); color: var(--muted); border-radius: 10px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.form-text { color: var(--faint); font-size: 12.5px; }
.form-check-input { background-color: var(--surface-2); border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-switch .form-check-input:checked { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2314171d'/%3e%3c/svg%3e"); }
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.modal-header, .modal-footer { border-color: var(--border); }
.alert { border-radius: 12px; }

.dropzone {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--border-strong);
    border-radius: 12px; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.dropzone i { font-size: 20px; }
.ai-scan {
    display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface-2);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); transition: border-color .15s;
}
.ai-scan:hover { border-color: var(--accent); }
.ai-scan > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 19px; flex-shrink: 0; }
.ai-status { display: none; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; background: var(--surface-2); color: var(--text-2); }
.ai-status.show { display: block; }
.ai-status.ok { background: var(--accent-soft); color: var(--text); }
.ai-status.error { background: var(--danger-soft); color: var(--danger); }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); max-width: 100%; }
.file-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Lists ---------- */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.row-list > li:first-child { border-top: 0; padding-top: 0; }
.row-list .amount { margin-left: auto; font-weight: 600; white-space: nowrap; }
.row-icon {
    --cat: #94a3b8;
    display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
    color: color-mix(in srgb, var(--cat) var(--cat-mix), var(--text)); background: color-mix(in srgb, var(--cat) 14%, transparent);
}
.row-title { font-weight: 500; font-size: 14px; color: var(--text); }
.row-meta { font-size: 12.5px; color: var(--muted); }

.bar-track { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--accent); }

.service-meter { display: flex; align-items: center; gap: 18px; }
.service-ring { --p: 0; --c: var(--accent); width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; }
.service-ring span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--surface); font-weight: 700; font-size: 15px; }

/* ---------- Reminders ---------- */
.state-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--accent); flex-shrink: 0; }
.state-overdue { --state: var(--danger); }
.state-soon { --state: var(--warn); }
.state-ok { --state: var(--accent-text); }
.state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--state); background: color-mix(in srgb, var(--state) 13%, transparent); max-width: 100%; }
.state-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.reminder {
    display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
    padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow);
}
.reminder.state-overdue { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.reminder-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--state) 13%, transparent); color: var(--state); font-size: 20px; }
.reminder-actions { display: flex; gap: 4px; align-items: center; }
@media (max-width: 575.98px) {
    .reminder { grid-template-columns: 40px 1fr; padding: 14px; }
    .reminder-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- Timeline (jurnal) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 38px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500;
}
.chip:hover { color: var(--text); }
.chip.active { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

.year-group { margin-bottom: 28px; }
.year-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; position: sticky; top: 0; z-index: 2; padding: 8px 0; background: var(--bg); }
@media (max-width: 991.98px) { .year-head { top: 59px; } }
.year-head h3 { font-family: "Michroma", sans-serif; font-size: 18px; margin: 0; }
.year-head span { color: var(--muted); font-size: 13px; }

.entry {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start;
    padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 10px; border-left: 3px solid var(--cat, var(--border)); box-shadow: var(--shadow);
}
.entry-date { text-align: center; line-height: 1.1; }
.entry-date .d { font-size: 22px; font-weight: 700; }
.entry-date .m { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.entry-body { min-width: 0; }
.entry-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.entry-notes { color: var(--text-2); font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.entry-notes.empty { color: var(--muted); font-style: italic; }
.km-chip, .file-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.file-chip:hover { color: var(--text); }
.entry-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.entry-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.entry-side .amount { font-size: 17px; font-weight: 700; white-space: nowrap; }
.entry-actions { display: flex; gap: 2px; opacity: .6; transition: opacity .15s; }
.entry:hover .entry-actions, .entry:focus-within .entry-actions { opacity: 1; }
.entry-actions .btn-icon { width: 32px; height: 32px; font-size: 15px; }
@media (max-width: 575.98px) {
    .entry { grid-template-columns: 48px 1fr; padding: 14px; gap: 12px; }
    .entry-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
    .entry-actions { opacity: 1; }
}

.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state > i { font-size: 40px; display: block; margin-bottom: 12px; color: var(--faint); }

/* ---------- Attachments grid ---------- */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.att { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.att a.thumb { display: grid; place-items: center; aspect-ratio: 1; color: var(--muted); font-size: 34px; }
.att img { width: 100%; height: 100%; object-fit: cover; }
.att .att-name { font-size: 11.5px; padding: 6px 8px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--border); background: var(--surface); }
.att form { position: absolute; top: 6px; right: 6px; }
.att form .btn-icon { width: 28px; height: 28px; font-size: 13px; background: var(--surface-glass); color: var(--danger); }

/* ---------- Calendar ---------- */
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); text-align: center; }
.cal-day { min-height: 112px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.out { opacity: .35; cursor: default; background: transparent; }
.cal-num { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--accent); color: var(--accent-ink); }
.cal-event {
    --cat: #94a3b8;
    display: block; margin-top: 4px; padding: 3px 7px; border-radius: 6px; font-size: 12px; font-weight: 600;
    color: var(--text); background: color-mix(in srgb, var(--cat) 18%, transparent); border-left: 3px solid var(--cat);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-event:hover { color: var(--text); background: color-mix(in srgb, var(--cat) 30%, transparent); }
@media (max-width: 767.98px) {
    .cal-day { min-height: 64px; padding: 4px; }
    .cal-event { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--cat); margin-top: 3px; }
}
.month-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.month-nav .label { min-width: 130px; text-align: center; font-weight: 600; }

/* ---------- Vehicles ---------- */
.vehicle-card { display: flex; flex-direction: column; gap: 14px; }
.vehicle-card.current { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.vehicle-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.vehicle-head > .min-w-0 { flex: 1 1 140px; }
.vehicle-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font-size: 24px; flex-shrink: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.spec { font-size: 13px; }
.spec .k { color: var(--muted); font-size: 12px; }
.spec .v { font-weight: 600; overflow-wrap: anywhere; }
.share-box { display: flex; gap: 8px; }
.share-box input { font-size: 13px; }

/* ---------- Settings ---------- */
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs-line::-webkit-scrollbar { display: none; }
.tabs-line a { padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-line a:hover { color: var(--text); }
.tabs-line a.active { color: var(--text); border-bottom-color: var(--accent); }
.profile-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface-2); }
.profile-photo.avatar-initials { font-size: 40px; }

.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); font-size: 14px; }
.table th { color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Căutare piese AI ---------- */
.side-search { position: relative; margin-top: 12px; }
.side-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--accent-text); }
.side-search input { width: 100%; padding: 9px 12px 9px 34px; font-size: 13.5px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.side-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.side-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

.search-hero { padding: 28px; border-radius: 20px; border: 1px solid var(--border);
    background: radial-gradient(600px 240px at 0% 0%, var(--accent-soft), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.search-big { position: relative; display: flex; gap: 8px; margin-top: 10px; }
.search-big > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); }
.search-big input { flex: 1; min-width: 0; padding: 16px 16px 16px 50px; font-size: 17px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.search-big input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-big .btn { padding: 0 24px; border-radius: 14px; font-size: 15px; }
@media (max-width: 575.98px) { .search-hero { padding: 18px; } .search-big input { font-size: 15px; padding: 14px 12px 14px 42px; } .search-big > i { left: 14px; } .search-big .btn { padding: 0 14px; } }

.radar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); flex-shrink: 0; overflow: hidden; }
.radar span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, var(--accent) 100%); animation: radar 1.4s linear infinite; }
.radar::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--accent); }
@keyframes radar { to { transform: rotate(360deg); } }

.ai-note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.55; }
.ai-note > i { color: var(--accent-text); font-size: 17px; }
.ai-note.warn { background: var(--warn-soft); }
.ai-note.warn > i { color: var(--warn); }

.quote { display: flex; gap: 14px; justify-content: space-between; padding: 14px 16px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.quote:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.quote.best { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.quote-main { min-width: 0; }
.quote-side { text-align: right; display: flex; flex-direction: column; gap: 6px; justify-content: space-between; flex-shrink: 0; }
.quote-price { font-size: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.quote-kind.kind-oe { background: rgba(167, 139, 250, .16); color: #8b5cf6; }
.quote-kind.kind-oem { background: rgba(59, 130, 246, .14); color: #3b82f6; }
.quote-kind.kind-aftermarket { background: rgba(20, 184, 166, .14); color: #0d9488; }
@media (max-width: 575.98px) { .quote { flex-direction: column; } .quote-side { flex-direction: row; align-items: center; text-align: left; } }

/* ---------- Grafic kilometraj (SVG) ---------- */
:root, [data-bs-theme="dark"] { --chart-km: #1e8dfc; --chart-km-line: #1e8dfc; --chart-grid: #262b35; --chart-mark: #2dd4bf; --chart-text: #8b93a3; }
[data-bs-theme="light"] { --chart-km: #1e8dfc; --chart-km-line: #1170d6; --chart-grid: #e8ebef; --chart-mark: #0d9488; --chart-text: #7b8494; }
.km-chart-wrap { width: 100%; }
.km-chart { width: 100%; height: auto; display: block; overflow: visible; }
.km-axis { font: 500 13px Inter, system-ui, sans-serif; fill: var(--chart-text); font-variant-numeric: tabular-nums; }
.km-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.km-legend span { display: inline-flex; align-items: center; gap: 6px; }
.km-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Galerie foto ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s; }
.photo a:hover img { transform: scale(1.03); }
.photo a { display: block; overflow: hidden; }
.photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 4px 4px 10px; font-size: 12.5px; color: var(--text-2); min-height: 40px; }
.photo figcaption .btn-icon { width: 32px; height: 32px; font-size: 14px; }

/* ---------- Asistent (chat) ---------- */
.chat-thread { display: flex; flex-direction: column; gap: 12px; max-height: 62vh; min-height: 220px; overflow-y: auto; padding: 4px 2px 12px; margin-bottom: 12px; }
.msg { max-width: 86%; }
.msg.user { align-self: flex-end; }
.msg-body { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.user .msg-body { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.assistant .msg-body { background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.error .msg-body { background: var(--danger-soft); color: var(--danger); }
.msg-body p { margin: 0 0 8px; } .msg-body p:last-child { margin-bottom: 0; }
.msg-body ul, .msg-body ol { margin: 4px 0 8px; padding-left: 20px; }
.msg-body .md-h { font-weight: 700; margin-top: 6px; }
.msg-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg-sources a { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.thread-list { max-height: 72vh; overflow-y: auto; }
.thread-item { display: flex; align-items: center; gap: 4px; border-radius: 10px; padding: 2px 2px 2px 10px; margin-bottom: 2px; }
.thread-item a { flex: 1; padding: 6px 0; color: var(--text); font-size: 13.5px; }
.thread-item:hover { background: var(--surface-2); }
.thread-item.active { background: var(--accent-soft); }
.thread-item .btn-icon { width: 30px; height: 30px; font-size: 13px; opacity: 0; }
.thread-item:hover .btn-icon, .thread-item.active .btn-icon { opacity: 1; }
@media (hover: none) { .thread-item .btn-icon { opacity: 1; } }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 15px; }
.chat-input textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-input .btn { height: 46px; width: 46px; padding: 0; border-radius: 14px; font-size: 17px; }

.shop-links { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-links .chip { font-size: 12.5px; padding: 6px 11px; }
.shop-links .chip:hover { border-color: var(--accent); color: var(--text); }

.code-link { color: inherit; text-decoration: underline dotted color-mix(in srgb, var(--accent-text) 70%, transparent); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.code-link:hover { color: var(--accent-text); }

/* Tranziții fine între pagini (Chrome / Edge) */
@view-transition { navigation: auto; }

/* ---------- Install banner (PWA) ---------- */
.install-banner { display: none; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; }
.install-banner > .bi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); font-size: 19px !important; }
.install-banner.show { display: flex; }
.install-steps ol { padding-left: 20px; line-height: 1.7; font-size: 14.5px; }
/* pe iPhone arătăm întâi pașii pentru iPhone, pe Android pe cei pentru Android */
.install-steps[data-platform="ios"] .steps-android { opacity: .55; }
.install-steps[data-platform="android"] .steps-ios { order: 2; }
.install-steps { display: flex; flex-direction: column; }
.install-steps .steps-ios, .install-steps .steps-android { order: 1; }
.install-steps > .form-text { order: 3; }

/* ---------- Auth & public pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
    position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
    background:
        radial-gradient(700px 400px at 20% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        radial-gradient(500px 300px at 90% 0%, rgba(20, 184, 166, .12), transparent 60%),
        var(--surface);
    border-right: 1px solid var(--border);
}
.auth-hero h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; max-width: 520px; }
.auth-hero h1 em { font-style: normal; color: var(--accent-text); }
.auth-hero p { color: var(--muted); max-width: 440px; font-size: 16px; }
.auth-features { display: grid; gap: 14px; margin-top: 28px; }
.auth-features div { display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: 14px; }
.auth-features i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--accent-text); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; position: relative; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.theme-switch.compact { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 99px; }
.theme-switch.compact button { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 14px; transition: background .15s, color .15s; }
.theme-switch.compact button span { display: none; }
.theme-switch.compact button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent); }
.auth-theme { position: absolute; top: 16px; right: 16px; }
@media (max-width: 899.98px) {
    .auth { grid-template-columns: 1fr; }
    .auth-hero { padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
    .auth-hero .auth-features, .auth-hero p { display: none; }
    .auth-hero h1 { font-size: 26px; margin: 20px 0 0; }
}

/* Demonstrația animată (login și pagina de prezentare) */
.demo { width: 100%; max-width: 420px; margin-top: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.demo-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.demo-stage { position: relative; height: 268px; }
.demo-scene { position: absolute; inset: 0; padding: 18px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none; }
.demo-scene.active { opacity: 1; transform: none; }
.demo-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.demo-title i { color: var(--accent-text); }
.demo .fx { opacity: 0; }
.demo-scene.active .fx { animation: demo-in .45s ease forwards; animation-delay: calc(var(--d) * 1s); }
@keyframes demo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-receipt { position: relative; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.demo-receipt > div, .demo-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; }
.demo-receipt span, .demo-rows span { color: var(--muted); }
.demo-scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 14px 3px var(--accent); opacity: 0; }
.demo-scene.active .demo-scanline { animation: demo-scan 2s ease-in-out .2s; }
@keyframes demo-scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.demo-ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.demo-push { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13px; }
.demo-push img { width: 36px; height: 36px; border-radius: 9px; }
.demo-push b, .demo-push span { display: block; }
.demo-push span { color: var(--muted); font-size: 12px; }
.demo-rows { margin-top: 10px; }
.demo-rows > div { border-bottom: 1px solid var(--border); }
.demo-chart { width: 100%; height: 130px; }
.demo-chart path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.demo-scene.active .demo-chart path { animation: demo-draw 1.6s ease forwards; }
@keyframes demo-draw { to { stroke-dashoffset: 0; } }
.demo-kpis { display: flex; gap: 28px; margin-top: 8px; }
.demo-kpis b { display: block; font-size: 20px; }
.demo-kpis span { font-size: 12px; color: var(--muted); }
.demo-msg { max-width: 88%; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: var(--surface-2); }
.demo-msg.me { margin-left: auto; background: var(--accent); color: var(--accent-ink); }
.demo-search { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--accent); font-size: 13.5px; }
.demo-dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 12px; }
.demo-dots i { width: 18px; height: 4px; border-radius: 9px; background: var(--border); transition: background .3s; }
.demo-dots i.active { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .demo .fx { opacity: 1; } .demo-chart path { stroke-dashoffset: 0; } .demo-scene.active .fx, .demo-scene.active .demo-scanline, .demo-scene.active .demo-chart path { animation: none; } }
@media (max-width: 899.98px) { .auth-hero .demo { display: none; } }

/* Pagini publice */
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1140px; margin: 0 auto; padding: 18px 20px; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.site-nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.lp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 1140px; margin: 0 auto; padding: 56px 20px; }
.lp-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.lp-hero h1 em { font-style: normal; color: var(--accent-text); }
.lp-hero p { font-size: 18px; color: var(--muted); margin: 18px 0 24px; }
.lp-hero .demo { margin: 0 auto; }
.lp-section { max-width: 1140px; margin: 0 auto; padding: 44px 20px; }
.lp-section h2, .lp-cta h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 24px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-grid article { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.lp-grid h3 { font-size: 17px; font-weight: 700; margin: 10px 0 6px; }
.lp-grid p { color: var(--muted); font-size: 14.5px; margin: 0; }
.lp-grid article > i { font-size: 22px; color: var(--accent-text); }
.lp-step { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.lp-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.demo-plan { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 9px 10px; margin-bottom: 7px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.demo-plan small { grid-column: 2; color: var(--muted); font-size: 12px; }
.demo-tag { grid-row: span 2; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); }
.demo-tag.now { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.demo-tag.soon { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.demo-cost span { display: block; color: var(--muted); font-size: 12.5px; }
.demo-cost b { font-size: 25px; letter-spacing: -.02em; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-split p { color: var(--muted); font-size: 17px; }
.lp-split .demo, .lp-split .demo-devices { margin: 0 auto; }
.lp-split.reverse > :first-child { order: 2; }
.lp-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.lp-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--accent-text); margin-right: 8px; }
.demo-share { display: flex; gap: 20px; align-items: center; }
.demo-qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; width: 126px; padding: 10px; border-radius: 12px; background: #fff; flex-shrink: 0; }
.demo-qr i { aspect-ratio: 1; background: transparent; }
.demo-qr i.on { background: #0d1118; }
.demo-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.demo-chip i { color: var(--accent-text); }
.demo-buyer b, .demo-buyer span { display: block; }
.demo-buyer b { font-size: 18px; }
.demo-buyer span { color: var(--muted); font-size: 13px; }
.demo-chart.small { height: 90px; margin-top: 4px; }
.demo-car { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 7px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.demo-car i { color: var(--accent-text); }
.demo-car span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.demo-devices { display: flex; align-items: flex-end; justify-content: center; gap: 14px; width: 100%; max-width: 480px; }
.dev { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dev-screen { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 3px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); }
.laptop { flex: 1 1 56%; } .tablet { flex: 1 1 28%; } .phone { flex: 1 1 16%; }
.laptop .dev-screen { aspect-ratio: 16 / 10; width: 100%; } .tablet .dev-screen { aspect-ratio: 3 / 4; width: 100%; } .phone .dev-screen { aspect-ratio: 9 / 19; width: 100%; padding: 6px; border-radius: 14px; }
.dev-label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dev-screen i { display: block; border-radius: 4px; }
.s-top { height: 10px; width: 45%; background: var(--accent); }
.s-bar { height: 7px; background: var(--surface-2); transform-origin: left; animation: dev-bar 5s ease-in-out infinite; }
.s-bar.b1 { width: 90%; } .s-bar.b2 { width: 70%; animation-delay: .4s; } .s-bar.b3 { width: 80%; animation-delay: .8s; }
@keyframes dev-bar { 0%, 100% { transform: scaleX(.25); } 40%, 80% { transform: scaleX(1); } }
.s-toast { position: absolute; left: 8%; right: 8%; bottom: 8%; height: 18%; background: var(--accent); opacity: .9; animation: dev-toast 5s ease infinite; }
@keyframes dev-toast { 0%, 45% { transform: translateY(160%); } 55%, 90% { transform: none; } 100% { transform: translateY(160%); } }
@media (prefers-reduced-motion: reduce) { .s-bar, .s-toast { animation: none; } }
@media (max-width: 899.98px) { .lp-split { grid-template-columns: 1fr; gap: 28px; } .lp-split.reverse > :first-child { order: 0; } }
.lp-faq { max-width: 780px; }
.lp-faq details { padding: 14px 0; border-bottom: 1px solid var(--border); }
.lp-faq summary { font-weight: 600; cursor: pointer; }
.lp-faq p { color: var(--muted); margin: 10px 0 0; }
.lp-cta { text-align: center; padding: 56px 20px; }
.lp-article { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; line-height: 1.7; }
.lp-article h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.lp-article h2 { font-size: 22px; font-weight: 700; margin-top: 32px; }
.lp-article .lead { color: var(--muted); font-size: 18px; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 1140px; margin: 0 auto; padding: 24px 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-foot a { color: var(--muted); }
@media (max-width: 899.98px) {
    .lp-hero { grid-template-columns: 1fr; padding-top: 28px; gap: 32px; }
    .lp-grid { grid-template-columns: 1fr; }
    .site-nav a:not(.btn):not([href*="login"]) { display: none; }
}

.public-wrap { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }
.public-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
@media (max-width: 575.98px) { .theme-switch button span { display: none; } .theme-switch button { padding: 6px 10px; } .sidebar .theme-switch button span { display: inline; } }

/* ---------- Navigare jos (telefon) ---------- */
@media (max-width: 991.98px) {
    .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .topbar { justify-content: space-between; }
}
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
}
.bottom-nav a, .bottom-nav > button:not(.bottom-add) {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
    background: none; border: 0; color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 12px;
}
.bottom-nav i { font-size: 21px; line-height: 1; transition: transform .2s; }
.bottom-nav .active { color: var(--accent-text); }
.bottom-nav .active i { transform: translateY(-1px); }
.bottom-add {
    justify-self: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; border: 4px solid var(--bg);
    background: var(--accent); color: var(--accent-ink); font-size: 24px; display: grid; place-items: center;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .15s;
}
.bottom-add:active { transform: scale(.94); }
.dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }
.topbar .dot { top: 8px; right: 8px; }

/* ---------- Taburi de secțiune ---------- */
.section-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.section-tabs a:hover { color: var(--text); }
.section-tabs a.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- Toast-uri ---------- */
.toasts { position: fixed; z-index: 1090; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
@media (max-width: 991.98px) { .toasts { top: auto; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); } }
.toast-msg {
    pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 14px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.22); font-size: 14px; color: var(--text);
    animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2) both;
}
.toast-msg > i { font-size: 18px; margin-top: 1px; }
.toast-msg span { flex: 1; line-height: 1.4; }
.toast-msg .btn-icon { width: 26px; height: 26px; font-size: 12px; }
.toast-success > i { color: var(--accent-text); }
.toast-danger > i { color: var(--danger); }
.toast-warning > i { color: var(--warn); }
.toast-msg.out { animation: toast-out .25s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* ---------- Antet dashboard ---------- */
.car-hero {
    position: relative; overflow: hidden; border-radius: 24px; margin-bottom: 14px; min-height: 230px; display: flex;
    background: radial-gradient(600px 300px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
                radial-gradient(400px 260px at 0% 120%, rgba(20, 184, 166, .16), transparent 60%), var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.car-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.car-hero-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.car-hero.has-photo .car-hero-body { color: #fff; }
.car-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.car-hero-hello { font-size: 14px; font-weight: 500; opacity: .85; }
.car-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(8px); }
.car-status.ok { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.car-status.warn { background: rgba(251, 191, 36, .2); color: var(--warn); }
.car-hero.has-photo .car-status { background: rgba(0,0,0,.4); color: #fff; }
.car-hero.has-photo .car-status.ok i { color: #1e8dfc; }
.car-hero.has-photo .car-status.warn i { color: #fbbf24; }
.car-hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.car-hero-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 6px; }
.car-hero-sub { font-size: 13.5px; opacity: .8; }
.car-hero-km { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.car-hero-km .num { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.car-hero-km small { font-size: 15px; opacity: .75; }
.car-hero-btn { margin-left: 6px; border-radius: 99px; padding: 4px 12px; background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 700; align-self: center; }
.car-hero-btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.car-hero-addphoto { position: absolute; top: 18px; right: 24px; font-size: 12.5px; color: var(--muted); display: none; }
@media (min-width: 768px) { .car-hero:not(.has-photo) .car-hero-addphoto { display: inline-block; top: auto; bottom: 18px; right: auto; left: 24px; position: static; margin-top: -8px; } }

.next-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow);
    border-left: 4px solid var(--state); transition: transform .15s, border-color .15s;
}
.next-card:hover { color: var(--text); transform: translateY(-1px); }
.next-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; font-size: 20px; color: var(--state); background: color-mix(in srgb, var(--state) 13%, transparent); }
.next-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.next-title { display: block; font-weight: 700; font-size: 16px; }
.next-text { display: block; font-size: 13px; color: var(--muted); }
.next-cta { font-size: 13px; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.kpi-row .kpi-value { font-size: 30px; }

.ai-filled { animation: ai-fill 1.6s ease-out; }
@keyframes ai-fill { 0%, 30% { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); } }

/* ---------- Schelet de încărcare ---------- */
.skeleton { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 60%, var(--border)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skeleton + .skeleton { margin-top: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Stări goale ilustrate ---------- */
.empty-state > i {
    position: relative; display: grid !important; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px !important;
    border-radius: 50%; font-size: 38px !important; color: var(--accent-text) !important;
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent-soft) 60%);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 6%, transparent), 0 0 0 22px color-mix(in srgb, var(--accent) 3%, transparent);
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .empty-state > i, .skeleton, .toast-msg { animation: none; } }

/* ---------- Formulare ca „foaie” care urcă de jos, pe telefon ---------- */
@media (max-width: 575.98px) {
    .modal-sheet .modal-dialog { margin: 0; position: fixed; left: 0; right: 0; bottom: 0; max-width: none; width: 100%; min-height: auto; align-items: flex-end; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .3, 1); }
    .modal-sheet.show .modal-dialog { transform: none; }
    .modal-sheet .modal-content { border-radius: 24px 24px 0 0; border-bottom: 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
    .modal-sheet .modal-header { position: relative; padding-top: 22px; }
    .modal-sheet .modal-header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--border-strong); }
    .modal-sheet .modal-dialog-scrollable .modal-content { max-height: 92vh; }
    .modal-sheet .ai-scan { padding: 16px; }
    .modal-sheet .ai-scan > i { width: 48px; height: 48px; font-size: 22px; }
}

/* ---------- Jurnal ca linie de timp ---------- */
.year-group .entry { position: relative; margin-left: 22px; }
.year-group .entry::before { content: ""; position: absolute; left: -16px; top: -11px; bottom: -11px; width: 2px; background: var(--border); }
.year-group .entry:first-of-type::before { top: 24px; }
.year-group .entry:last-child::before { bottom: calc(100% - 24px); }
.year-group .entry::after { content: ""; position: absolute; left: -21px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--cat, var(--muted)); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--cat) 30%, transparent); }
.entry-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); }
.entry-files a.thumb-link { display: inline-block; }
@media (max-width: 575.98px) { .year-group .entry { margin-left: 18px; } .year-group .entry::before { left: -13px; } .year-group .entry::after { left: -18px; } }

/* ---------- Pagina publică / de vânzare ---------- */
.share-page .public-wrap { max-width: 980px; }
.sale-hero {
    display: flex; gap: 28px; align-items: stretch; justify-content: space-between; padding: 34px;
    border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 16px;
    background: radial-gradient(520px 260px at 0% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.sale-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.sale-title { font-size: clamp(30px, 5vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 14px; }
.sale-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.sale-specs span { padding: 5px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-2); }
.sale-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.sale-facts > div { padding: 16px 16px 0 0; }
.sale-facts > div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.sale-facts .k { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.sale-facts .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sale-facts .v small { font-size: 13px; font-weight: 500; color: var(--muted); }
.sale-qr { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 11.5px; color: var(--muted); }
.sale-qr #qr { width: 132px; height: 132px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sale-qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 699.98px) {
    .sale-hero { flex-direction: column; padding: 22px; }
    .sale-qr { display: none; }
    .sale-facts { grid-template-columns: repeat(2, 1fr); }
    .sale-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

.sale-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 16px; }
.sale-trust > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); line-height: 1.45; box-shadow: var(--shadow); }
.sale-trust strong { color: var(--text); font-weight: 600; }
.sale-trust i { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 16px; }

.sale-card, .sale-history { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; box-shadow: var(--shadow); }
.sale-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sale-card-head h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.sale-card-head span { font-size: 12.5px; color: var(--muted); }

.sale-about-lead { font-size: 15.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 18px; max-width: 72ch; }
.sale-about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sale-about-item { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.sale-about-item p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.sale-about-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.sale-about-title i { color: var(--accent-text); font-size: 15px; }
.sale-strengths { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sale-strengths span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: var(--accent-soft); color: var(--text); }
.sale-strengths i { color: var(--accent-text); }
.sale-consider { margin-top: 14px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--border-strong); }
.sale-consider ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.sale-disclaimer { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }
@media (max-width: 575.98px) { .sale-about-grid { grid-template-columns: 1fr; } }
.ai-profile-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }

.admin-table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); font-size: 14px; }
.admin-table th { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.impersonate-bar { position: sticky; top: 0; z-index: 1050; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; font-size: 14px; background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--text); border-bottom: 1px solid var(--warn); }
.stat-bars { display: flex; flex-direction: column; gap: 12px; }
.stat-bars .bar-track { margin-top: 5px; }
.legal { line-height: 1.65; }
.legal h2 { font-size: 18px; font-weight: 700; margin-top: 28px; }

.sale-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 8px; margin-bottom: 16px; }
.sale-photo { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.sale-photo.big { grid-column: span 2; grid-row: span 2; }
.sale-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sale-photo:hover img { transform: scale(1.04); }
.sale-photo span { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 11.5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 699.98px) { .sale-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; } }

.sale-year { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.sale-year:first-of-type { border-top: 0; }
.sale-year-label { font-family: "Michroma", sans-serif; font-size: 15px; color: var(--text); padding-top: 4px; }
.sale-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.sale-item:last-child { border-bottom: 0; }
.sale-item-date { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.sale-item-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sale-item-notes { font-size: 13.5px; color: var(--text-2); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.sale-item-notes.empty { color: var(--muted); font-style: italic; }
.sale-item-amount { font-weight: 600; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
    .sale-year { grid-template-columns: 1fr; gap: 4px; }
    .sale-item { grid-template-columns: 44px 1fr; }
    .sale-item-amount { grid-column: 2; }
}
.sale-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); padding: 8px 4px 24px; }

/* ---------- Print (carte de service pentru vânzare) ---------- */
.print-only { display: none; }
@media print {
    :root, [data-bs-theme] {
        --bg: #fff; --surface: #fff; --surface-2: #f4f5f7; --text: #111; --text-2: #2b2f36; --muted: #5f6672; --border: #e1e4e8; --shadow: none;
        --accent-text: #1170d6; --accent-soft: rgba(30, 141, 252, .14); --cat-mix: 72%;
        --chart-km: #1e8dfc; --chart-km-line: #1170d6; --chart-grid: #e8ebef; --chart-mark: #0d9488; --chart-text: #6b7280;
    }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body { font-size: 12px; }
    /* fișa de vânzare: A4 compact, cu codul QR în antet */
    .share-page .public-wrap { max-width: none; padding: 0; }
    .sale-hero { padding: 18px 20px; border-radius: 14px; break-inside: avoid; }
    .sale-qr { display: flex !important; flex-basis: 120px; }
    .sale-qr #qr { width: 104px; height: 104px; padding: 4px; box-shadow: none; border: 1px solid #e1e4e8; }
    .sale-title { font-size: 30px; }
    .sale-facts .v { font-size: 19px; }
    .sale-trust { grid-template-columns: repeat(4, 1fr); }
    .sale-trust > div { padding: 10px; font-size: 11px; break-inside: avoid; }
    .sale-trust i { width: 26px; height: 26px; font-size: 13px; }
    .sale-card, .sale-history { padding: 14px 16px; border-radius: 12px; break-inside: avoid; }
    .sale-history { break-inside: auto; }
    .sale-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; break-inside: avoid; }
    .sale-photo span { display: none; }
    .sale-item { break-inside: avoid; padding: 6px 0; }
    .sale-item-notes { font-size: 11px; }
    .sale-about { break-inside: avoid; }
    .sale-about-lead { font-size: 12px; margin-bottom: 10px; }
    .sale-about-item { padding: 8px 10px; }
    .sale-about-item p { font-size: 10.5px; }
    .sale-strengths span { font-size: 10.5px; padding: 3px 9px; }
    @page { size: A4; margin: 12mm; }
    .sidebar, .topbar, .toolbar, .entry-actions, .no-print, .modal, .install-banner { display: none !important; }
    .print-only { display: block; }
    .main { margin: 0; padding: 0; }
    .entry { break-inside: avoid; }
    .year-head { position: static; }
}
