/* =========================================================================
   Autrivo design system — layered on Bootstrap 5.3
   ========================================================================= */
:root {
    --av-graphite: #20282E;
    --av-dark: #151C21;
    --av-blue: #28647A;
    --av-blue-600: #215567;
    --av-blue-50: #E8F0F3;
    --av-amber: #D99637;
    --av-amber-50: #FBF2E4;
    --av-bg: #F5F6F5;
    --av-surface: #FFFFFF;
    --av-text: #1B252B;
    --av-muted: #67747C;
    --av-border: #DCE1E3;
    --av-border-soft: #EBEEEF;
    --av-success: #2F7D4F;
    --av-success-50: #E7F3EC;
    --av-warning: #A86A12;
    --av-warning-50: #FBF0DD;
    --av-danger: #B83A2E;
    --av-danger-50: #F8E6E4;
    --av-info: #28647A;
    --av-info-50: #E6EFF2;
    --av-primary-50: #E9E6F6;
    --av-primary: #4F4596;
    --av-radius: 6px;
    --av-sidebar: 232px;
    --av-header: 56px;
    --av-toolbar: 42px;
    --av-focus: 0 0 0 3px rgba(40, 100, 122, .35);

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: .875rem;
    --bs-body-color: var(--av-text);
    --bs-body-bg: var(--av-bg);
    --bs-border-color: var(--av-border);
    --bs-primary: var(--av-blue);
    --bs-primary-rgb: 40, 100, 122;
    --bs-link-color: var(--av-blue);
    --bs-link-color-rgb: 40, 100, 122;
    --bs-link-hover-color: var(--av-blue-600);
    --bs-secondary-color: var(--av-muted);

    /* Surfaces and greys that used to be hardcoded (each has a dark value below). */
    --av-surface-2: #FAFBFB;       /* table heads, modal footers, sticky timeline headers */
    --av-hover: #F1F3F4;           /* row / menu / icon-button hover */
    --av-subtle: #EEF0F1;          /* chips, counts, neutral badges, time pills */
    --av-placeholder: #E9EDEE;     /* empty photo / vehicle tiles */
    --av-placeholder-fg: #8A979E;
    --av-label: #3B4850;           /* form labels */
    --av-border-strong: #B9C4C8;   /* hover borders */
    --av-danger-border: #E3B9B4;
    --av-amber-border: #F0DDBB;
    --av-amber-text: #7A4F12;
    --av-scroll: rgba(21, 28, 33, .16);
    --av-scroll-hover: rgba(21, 28, 33, .32);
    --av-hold-a: #E6EFF2; --av-hold-b: #D7E5EA; --av-hold-text: #215567; --av-hold-border: #B7CFD8;
    --av-maint-a: #FBF0DD; --av-maint-b: #F5E2BF; --av-maint-text: #85540F; --av-maint-border: #EBCB92;

    /* Marketing site neutrals (the brand colour cards — amber, ink, teal, sand — stay the same in both themes). */
    --site-bg: #EEEEEA;
    --site-surface: #fff;
    --site-surface-2: #F6F6F2;
    --site-text: #16212A;
    --site-text-2: #44525A;
    --site-muted: #6A767D;
    --site-border: #E2E2DC;
    --site-border-strong: #CFCFC8;
}

/* ---------- Dark theme (data-bs-theme="dark" on <html>, set by the theme script in App.razor) ---------- */
[data-bs-theme="dark"] {
    --av-graphite: #34424B;
    --av-dark: #0B1013;
    --av-blue: #2F7891;
    --av-blue-600: #3A8AA5;
    --av-blue-50: rgba(47, 120, 145, .22);
    --av-amber-50: rgba(217, 150, 55, .16);
    --av-bg: #0F1418;
    --av-surface: #161D22;
    --av-text: #E2E8EA;
    --av-muted: #93A1A8;
    --av-border: #2A343B;
    --av-border-soft: #222B31;
    --av-success: #5BBF84;
    --av-success-50: rgba(47, 125, 79, .24);
    --av-warning: #E3A64A;
    --av-warning-50: rgba(217, 150, 55, .18);
    --av-danger: #F08074;
    --av-danger-50: rgba(184, 58, 46, .24);
    --av-info: #7DBBD0;
    --av-info-50: rgba(40, 100, 122, .28);
    --av-primary-50: rgba(79, 69, 150, .3);
    --av-primary: #ABA1EC;
    --av-focus: 0 0 0 3px rgba(125, 187, 208, .35);

    --av-surface-2: #1A2227;
    --av-hover: #212A30;
    --av-subtle: #243037;
    --av-placeholder: #222C32;
    --av-placeholder-fg: #6F7D85;
    --av-label: #C2CBD0;
    --av-border-strong: #3E4B53;
    --av-danger-border: #6B2E28;
    --av-amber-border: #5C4520;
    --av-amber-text: #F0C98A;
    --av-scroll: rgba(255, 255, 255, .14);
    --av-scroll-hover: rgba(255, 255, 255, .28);
    --av-hold-a: #1D3640; --av-hold-b: #223F4A; --av-hold-text: #A9D3E1; --av-hold-border: #2F5462;
    --av-maint-a: #3A2C17; --av-maint-b: #43331A; --av-maint-text: #F0C98A; --av-maint-border: #5C4520;

    --bs-body-color: var(--av-text);
    --bs-body-bg: var(--av-surface);
    --bs-border-color: var(--av-border);
    --bs-primary-rgb: 47, 120, 145;
    --bs-link-color: #7DBBD0;
    --bs-link-color-rgb: 125, 187, 208;
    --bs-link-hover-color: #A2D0DF;
    --bs-secondary-color: var(--av-muted);
    --bs-emphasis-color: #fff;

    --site-bg: #0F1519;
    --site-surface: #172026;
    --site-surface-2: #1C262D;
    --site-text: #E6EBEC;
    --site-text-2: #B6C1C6;
    --site-muted: #8E9BA2;
    --site-border: #26323A;
    --site-border-strong: #34434C;
}
[data-bs-theme="dark"] .data-table tbody tr:hover td { background: var(--av-hover); }
[data-bs-theme="dark"] .app-modal-backdrop { background: rgba(0, 0, 0, .6); }
[data-bs-theme="dark"] .menu-panel, [data-bs-theme="dark"] .search-select-menu { box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
[data-bs-theme="dark"] .doc-preview { background: #fff; color: #1B252B; } /* documents preview as printed */
[data-bs-theme="dark"] .tl-block.k-reservation { background: #2F7891; }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
/* Theme toggle on dark headers (portals) and in the marketing nav */
.theme-toggle-on-dark { color: #AEB9BF; }
.theme-toggle-on-dark:hover { background: rgba(255, 255, 255, .08); color: #fff; }

html, body { background: var(--av-bg); }
/* Always reserve the scrollbar so pages don't shift sideways when a short (loading) page replaces a long one. */
html { scrollbar-gutter: stable; }
body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
h1, h2, h3, h4 { color: var(--av-text); letter-spacing: -0.01em; }
:focus-visible { outline: none; box-shadow: var(--av-focus) !important; border-radius: 4px; }
/* FocusOnNavigate moves focus to the page's h1 for screen readers; that heading is not a control, so no focus ring. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; box-shadow: none !important; }
.lucide { font-size: 16px; line-height: 1; display: inline-block; vertical-align: -3px; }
.text-muted, .text-secondary { color: var(--av-muted) !important; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .8125rem; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- Buttons & forms ---------- */
.btn { --bs-btn-font-size: .8125rem; --bs-btn-font-weight: 500; --bs-btn-padding-y: .375rem; --bs-btn-padding-x: .75rem; border-radius: var(--av-radius); display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.btn-sm { --bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem; }
.btn-primary { --bs-btn-bg: var(--av-blue); --bs-btn-border-color: var(--av-blue); --bs-btn-hover-bg: var(--av-blue-600); --bs-btn-hover-border-color: var(--av-blue-600); --bs-btn-active-bg: var(--av-blue-600); --bs-btn-disabled-bg: var(--av-blue); --bs-btn-disabled-border-color: var(--av-blue); }
.btn-accent { --bs-btn-bg: var(--av-amber); --bs-btn-color: #1B1405; --bs-btn-border-color: var(--av-amber); --bs-btn-hover-bg: #C7852A; --bs-btn-hover-color: #1B1405; --bs-btn-hover-border-color: #C7852A; }
.btn-outline-secondary { --bs-btn-color: var(--av-text); --bs-btn-border-color: var(--av-border); --bs-btn-bg: var(--av-surface); --bs-btn-hover-bg: var(--av-hover); --bs-btn-hover-color: var(--av-text); --bs-btn-hover-border-color: var(--av-border-strong); --bs-btn-active-bg: var(--av-hover); --bs-btn-active-color: var(--av-text); }
.btn-outline-danger { --bs-btn-color: var(--av-danger); --bs-btn-border-color: var(--av-danger-border); --bs-btn-hover-bg: var(--av-danger); --bs-btn-hover-border-color: var(--av-danger); }
.btn-ghost-light { color: #DDE3E6; border: 1px solid rgba(255,255,255,.18); background: transparent; }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; border: 1px solid transparent; color: var(--av-muted); position: relative; }
.btn-icon:hover { background: var(--av-hover); color: var(--av-text); }
.btn-icon .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--av-amber); border: 1.5px solid var(--av-surface); }
.form-control, .form-select { font-size: .8125rem; border-color: var(--av-border); border-radius: var(--av-radius); min-height: 34px; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--av-blue); box-shadow: var(--av-focus); }
.form-label { font-size: .75rem; font-weight: 600; color: var(--av-label); margin-bottom: .25rem; }
.form-text { font-size: .75rem; }
.form-check-input:checked { background-color: var(--av-blue); border-color: var(--av-blue); }
.validation-message, .invalid-feedback { color: var(--av-danger); font-size: .75rem; margin-top: .25rem; }
.invalid { border-color: var(--av-danger) !important; }
.validation-errors { padding: .625rem .875rem .625rem 2rem; margin-bottom: 1rem; background: var(--av-danger-50); border-radius: var(--av-radius); color: var(--av-danger); font-size: .8125rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem 1rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-section-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--av-muted); font-weight: 600; margin: 1.25rem 0 .75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--av-border-soft); margin-top: 1.25rem; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--av-sidebar); background: var(--av-dark); color: #C2CBD0; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1040; }
.sidebar-brand { display: flex; align-items: center; gap: .625rem; height: var(--av-header); padding: 0 1rem; color: #fff; font-weight: 700; font-size: 1.0625rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand img { border-radius: 6px; }
.brand-tag { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .125rem .375rem; border-radius: 4px; background: var(--av-amber); color: #1B1405; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .5rem .5rem 1rem; scrollbar-width: thin; scrollbar-color: #2C363D transparent; }
.nav-section { margin-top: .75rem; }
.nav-section-title { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6F7D85; padding: 0 .625rem .25rem; }
.nav-item { display: flex; align-items: center; gap: .625rem; padding: .375rem .625rem; border-radius: 5px; color: #BCC6CB; font-size: .8125rem; font-weight: 500; }
.nav-item .lucide { color: #7D8B93; font-size: 15px; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(40,100,122,.35); color: #fff; box-shadow: inset 2px 0 0 var(--av-amber); }
.nav-item.active .lucide { color: var(--av-amber); }
.sidebar-footer { padding: .75rem 1rem; font-size: .6875rem; color: #6F7D85; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-scrim { display: none; }
.app-main { flex: 1; margin-left: var(--av-sidebar); min-width: 0; display: flex; flex-direction: column; }
.app-header { height: var(--av-header); background: var(--av-surface); border-bottom: 1px solid var(--av-border); display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 1030; }
.header-title { font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .375rem; }
.app-content { padding: 1.25rem 1.5rem 2.5rem; max-width: 1680px; width: 100%; }

/* dropdown menus built on <details> */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 8px; box-shadow: 0 12px 32px rgba(21,28,33,.14); padding: .375rem; z-index: 1050; }
.menu-right { left: auto; right: 0; }
.menu-heading { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--av-muted); font-weight: 600; padding: .5rem .625rem .25rem; }
.menu-item { display: flex; align-items: center; gap: .625rem; width: 100%; padding: .4375rem .625rem; border: 0; background: none; border-radius: 5px; color: var(--av-text); text-align: left; font-size: .8125rem; }
.menu-item:hover { background: var(--av-hover); color: var(--av-text); }
.menu-item.active { background: var(--av-blue-50); }
.menu-item > span { display: flex; flex-direction: column; line-height: 1.25; }
.menu-item strong { font-weight: 500; }
.menu-item small { color: var(--av-muted); font-size: .72rem; }
.menu-item .lucide { color: var(--av-muted); }
.menu-divider { height: 1px; background: var(--av-border-soft); margin: .375rem 0; }
.menu-note { font-size: .7rem; color: var(--av-muted); padding: .375rem .625rem; }
.workspace-trigger { display: flex; align-items: center; gap: .625rem; padding: .25rem .5rem; border-radius: 6px; border: 1px solid transparent; }
.workspace-trigger:hover { background: var(--av-hover); }
.workspace-text { display: flex; flex-direction: column; line-height: 1.2; }
.workspace-text strong { font-size: .8125rem; font-weight: 600; }
.workspace-text small { font-size: .72rem; color: var(--av-muted); }
.workspace-avatar { width: 30px; height: 30px; border-radius: 6px; background: var(--av-graphite); color: var(--av-amber); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.workspace-avatar.sm { width: 24px; height: 24px; font-size: .75rem; }
.user-trigger { display: flex; align-items: center; gap: .5rem; padding: .125rem .25rem .125rem .125rem; border-radius: 6px; }
.user-trigger:hover { background: var(--av-hover); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--av-blue); color: #fff; font-weight: 600; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.user-text { flex-direction: column; line-height: 1.2; }
.user-text strong { font-size: .8125rem; font-weight: 600; }
.user-text small { font-size: .7rem; color: var(--av-muted); }
.experience-switcher .menu-panel { min-width: 280px; }

/* ---------- Page structure ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.375rem; font-weight: 650; margin: 0; }
.page-subtitle { margin: .25rem 0 0; color: var(--av-muted); font-size: .8125rem; }
.page-breadcrumb { font-size: .75rem; color: var(--av-muted); margin-bottom: .25rem; display: flex; gap: .375rem; align-items: center; }
.page-breadcrumb a { color: var(--av-muted); }
.page-breadcrumb a:hover { color: var(--av-blue); }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.section-gap { margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 1rem; }

.panel { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 8px; min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--av-border-soft); min-height: 48px; }
.panel-title { font-size: .875rem; font-weight: 600; margin: 0; }
.panel-actions { display: flex; gap: .375rem; align-items: center; }
.panel-body { padding: 1rem; }
.panel-body-flush { padding: 0; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi-tile { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 8px; padding: .75rem 1rem; position: relative; }
.kpi-tile.is-link:hover { border-color: var(--av-border-strong); }
.kpi-label { font-size: .75rem; color: var(--av-muted); font-weight: 500; display: flex; align-items: center; gap: .375rem; }
.kpi-label a { color: inherit; }
.kpi-value { font-size: 1.375rem; font-weight: 650; margin-top: .125rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi-caption { font-size: .72rem; margin-top: .125rem; }
.tone-text-success { color: var(--av-success); }
.tone-text-danger { color: var(--av-danger); }
.tone-text-warning { color: var(--av-warning); }
.tone-text-muted { color: var(--av-muted); }

/* ---------- Status badges ---------- */
.status-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .125rem .5rem; border-radius: 4px; white-space: nowrap; line-height: 1.5; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-success { background: var(--av-success-50); color: var(--av-success); }
.tone-info { background: var(--av-info-50); color: var(--av-info); }
.tone-primary { background: var(--av-primary-50); color: var(--av-primary); }
.tone-warning { background: var(--av-warning-50); color: var(--av-warning); }
.tone-danger { background: var(--av-danger-50); color: var(--av-danger); }
.tone-neutral { background: var(--av-subtle); color: var(--av-muted); }
.chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 500; padding: .0625rem .4375rem; border-radius: 4px; background: var(--av-subtle); color: var(--av-label); }

/* ---------- Tables ---------- */
.data-toolbar { display: flex; align-items: center; gap: .5rem; min-height: var(--av-toolbar); padding: .375rem .75rem; border-bottom: 1px solid var(--av-border-soft); flex-wrap: wrap; }
.data-toolbar .form-select, .data-toolbar .form-control, .data-toolbar .btn { height: 30px; min-height: 30px; }
.data-toolbar .form-select { width: auto; padding-top: 0; padding-bottom: 0; }
.toolbar-left { display: flex; gap: .5rem; align-items: center; }
.toolbar-right { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; width: 280px; max-width: 100%; }
.search-box .lucide { position: absolute; left: .625rem; top: 50%; transform: translateY(-50%); color: var(--av-muted); font-size: 14px; }
.search-box .form-control { padding-left: 2rem; height: 30px; min-height: 30px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8125rem; }
.data-table th { position: sticky; top: 0; background: var(--av-surface-2); font-size: .72rem; font-weight: 600; color: var(--av-muted); text-transform: uppercase; letter-spacing: .04em; padding: .5rem .75rem; border-bottom: 1px solid var(--av-border); white-space: nowrap; text-align: left; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--av-text); }
.data-table td { padding: .5625rem .75rem; border-bottom: 1px solid var(--av-border-soft); vertical-align: middle; }
.data-table tbody tr:hover td { background: var(--av-surface-2); }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .cell-main { font-weight: 550; color: var(--av-text); }
.data-table .cell-sub { font-size: .72rem; color: var(--av-muted); }
.data-table a.cell-main:hover { color: var(--av-blue); }
.pager { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem; border-top: 1px solid var(--av-border-soft); font-size: .75rem; color: var(--av-muted); }
.pager-buttons { display: flex; align-items: center; gap: .25rem; }
.pager-page { padding: 0 .5rem; }

/* tabs and toggles */
.tab-nav { display: flex; gap: .25rem; border-bottom: 1px solid var(--av-border); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tab-link { padding: .5rem .75rem; color: var(--av-muted); font-weight: 500; font-size: .8125rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: .375rem; }
.tab-link:hover { color: var(--av-text); }
.tab-link.active { color: var(--av-text); border-bottom-color: var(--av-amber); }
.tab-count { font-size: .6875rem; background: var(--av-subtle); padding: 0 .375rem; border-radius: 8px; color: var(--av-muted); }
.toggle-group { display: inline-flex; border: 1px solid var(--av-border); border-radius: var(--av-radius); overflow: hidden; background: var(--av-surface); }
.toggle-group button { border: 0; background: none; padding: 0 .75rem; height: 30px; font-size: .75rem; font-weight: 500; color: var(--av-muted); }
.toggle-group button + button { border-left: 1px solid var(--av-border); }
.toggle-group button.active { background: var(--av-graphite); color: #fff; }

/* misc components */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--av-muted); }
.empty-state .lucide { color: var(--av-placeholder-fg); }
.empty-title { font-weight: 600; color: var(--av-text); margin-top: .5rem; }
.empty-state p { margin: .25rem 0 .75rem; font-size: .8125rem; }
.loading-state { padding: 1rem; display: flex; flex-direction: column; gap: .625rem; }
.skeleton-row { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--av-hover) 25%, var(--av-surface-2) 50%, var(--av-hover) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.prototype-notice { display: flex; align-items: flex-start; gap: .5rem; padding: .5rem .75rem; background: var(--av-amber-50); border: 1px solid var(--av-amber-border); border-radius: var(--av-radius); font-size: .75rem; color: var(--av-amber-text); }
.detail-list { display: grid; gap: .625rem 1.25rem; margin: 0; }
.detail-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-item dt { font-size: .72rem; font-weight: 500; color: var(--av-muted); }
.detail-item dd { margin: .0625rem 0 0; font-weight: 500; }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 1rem; gap: 0; counter-reset: step; overflow-x: auto; }
.step { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: max-content; font-size: .8125rem; color: var(--av-muted); padding-right: .75rem; }
.step:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--av-border); min-width: 16px; }
.step-marker { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--av-border); background: var(--av-surface); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; flex: none; }
.step-current { color: var(--av-text); font-weight: 600; }
.step-current .step-marker { background: var(--av-graphite); border-color: var(--av-graphite); color: #fff; }
.step-done .step-marker { background: var(--av-blue); border-color: var(--av-blue); color: #fff; }
.step-done .lucide { font-size: 13px; vertical-align: 0; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-row { display: flex; align-items: center; gap: .75rem; padding: .625rem 1rem; border-bottom: 1px solid var(--av-border-soft); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.time-pill { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .8125rem; background: var(--av-subtle); padding: .125rem .5rem; border-radius: 4px; min-width: 52px; text-align: center; }
.summary-lines { width: 100%; font-size: .8125rem; }
.summary-lines td { padding: .3125rem 0; }
.summary-lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.summary-lines tr.total td { border-top: 1px solid var(--av-border); font-weight: 650; font-size: .9375rem; padding-top: .625rem; }
.summary-lines tr.muted td { color: var(--av-muted); }
.select-card { border: 1px solid var(--av-border); border-radius: 8px; padding: .75rem; background: var(--av-surface); cursor: pointer; text-align: left; width: 100%; }
.select-card:hover { border-color: var(--av-border-strong); }
.select-card.selected { border-color: var(--av-blue); box-shadow: 0 0 0 1px var(--av-blue); background: var(--av-blue-50); }
.select-card.disabled { opacity: .55; cursor: not-allowed; }
.vehicle-thumb { width: 44px; height: 32px; border-radius: 4px; background: var(--av-placeholder); display: inline-flex; align-items: center; justify-content: center; color: var(--av-placeholder-fg); flex: none; }
.vehicle-hero { height: 180px; border-radius: 8px; background: linear-gradient(180deg, var(--av-placeholder), var(--av-subtle)); display: flex; align-items: center; justify-content: center; color: var(--av-placeholder-fg); }
.signature-pad { height: 140px; border: 1px dashed var(--av-border-strong); border-radius: 6px; background: var(--av-surface-2); display: flex; align-items: center; justify-content: center; color: var(--av-muted); font-size: .8125rem; }
.signature-pad.signed { font-family: "Brush Script MT", cursive; font-size: 2rem; color: var(--av-graphite); border-style: solid; }
.doc-preview { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 4px; padding: 2rem 2.25rem; font-size: .8125rem; line-height: 1.6; max-width: 820px; margin: 0 auto; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.doc-preview h3 { font-size: 1rem; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.car-diagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: .375rem; }
.car-zone { border: 1px solid var(--av-border); border-radius: 5px; padding: .5rem; font-size: .72rem; text-align: center; background: var(--av-surface); cursor: pointer; }
.car-zone.has-old { background: var(--av-hover); }
.car-zone.has-new { background: var(--av-danger-50); border-color: var(--av-danger-border); color: var(--av-danger); font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.photo-tile { aspect-ratio: 4/3; border-radius: 5px; background: var(--av-placeholder); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--av-placeholder-fg); font-size: .6875rem; gap: .25rem; }
.photo-tile-pick { cursor: pointer; margin: 0; }
.photo-tile-pick:hover, .photo-tile-pick:focus-within { outline: 1px solid var(--av-blue); color: var(--av-blue); }
.photo-tile-filled { position: relative; overflow: hidden; padding: 0; }
.photo-tile-filled img, a.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: .125rem .375rem; background: rgba(15, 23, 28, .6); color: #fff; text-align: left; }
.photo-tile-remove { position: absolute; top: .25rem; right: .25rem; background: rgba(255, 255, 255, .9); }
a.photo-tile { position: relative; overflow: hidden; }
.progress-thin { height: 6px; border-radius: 3px; background: var(--av-subtle); overflow: hidden; }
.progress-thin > span { display: block; height: 100%; background: var(--av-blue); }
.chart-box { position: relative; width: 100%; }

/* ---------- Modal ---------- */
.app-modal-backdrop { position: fixed; inset: 0; background: rgba(21,28,33,.45); z-index: 1060; }
.app-modal { position: fixed; top: 6vh; left: 50%; transform: translateX(-50%); width: calc(100% - 2rem); max-height: 88vh; background: var(--av-surface); border-radius: 10px; z-index: 1061; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(21,28,33,.25); }
.app-modal-md { max-width: 560px; }
.app-modal-lg { max-width: 820px; }
.app-modal-xl { max-width: 1140px; }
.app-modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1rem 1.25rem .75rem; border-bottom: 1px solid var(--av-border-soft); }
.app-modal-header h2 { font-size: 1rem; font-weight: 650; margin: 0; }
.app-modal-header p { margin: .125rem 0 0; color: var(--av-muted); font-size: .8125rem; }
.app-modal-body { padding: 1rem 1.25rem; overflow-y: auto; }
.app-modal-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1.25rem; border-top: 1px solid var(--av-border-soft); background: var(--av-surface-2); border-radius: 0 0 10px 10px; }

/* ---------- Search select ---------- */
.search-select { position: relative; }
.search-select-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 6px; box-shadow: 0 10px 28px rgba(21,28,33,.14); z-index: 1070; padding: .375rem; }
.search-select-menu ul { list-style: none; margin: .375rem 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.search-select-menu li { padding: .375rem .5rem; border-radius: 4px; cursor: pointer; font-size: .8125rem; }
.search-select-menu li:hover, .search-select-menu li.selected { background: var(--av-blue-50); }
.search-select-menu li.no-results { color: var(--av-muted); cursor: default; }

/* ---------- Toasts ---------- */
.toast-host { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 1080; max-width: 380px; }
.app-toast { display: flex; align-items: center; gap: .625rem; background: var(--av-graphite); color: #fff; padding: .625rem .5rem .625rem .875rem; border-radius: 8px; font-size: .8125rem; box-shadow: 0 10px 28px rgba(21,28,33,.3); }
.app-toast .btn-icon { color: #9AA6AC; width: 26px; height: 26px; margin-left: auto; }
.app-toast .btn-icon:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-toast.tone-success > .lucide:first-child { color: #7FD3A1; }
.app-toast.tone-warning > .lucide:first-child { color: var(--av-amber); }
.app-toast.tone-error > .lucide:first-child { color: #F19A90; }

/* ---------- Availability calendar ---------- */
.timeline { --tl-label: 248px; --tl-col: 44px; position: relative; overflow: auto; max-height: calc(100vh - 290px); min-height: 320px; border-top: 1px solid var(--av-border-soft); }
/* Subtle scrollbars: thin and faint, darker only on hover. (The height is fitted to the screen by AvailabilityCalendar.razor.js.) */
.timeline { scrollbar-width: thin; scrollbar-color: var(--av-scroll) transparent; }
.timeline::-webkit-scrollbar { width: 8px; height: 8px; }
.timeline::-webkit-scrollbar-track, .timeline::-webkit-scrollbar-corner { background: transparent; }
.timeline::-webkit-scrollbar-thumb { background: var(--av-scroll); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.timeline:hover::-webkit-scrollbar-thumb { background-color: var(--av-scroll-hover); }
.timeline::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.timeline-grid { display: grid; grid-template-columns: var(--tl-label) auto; min-width: max-content; }
.tl-corner, .tl-label { position: sticky; left: 0; z-index: 3; background: var(--av-surface); border-right: 1px solid var(--av-border); }
.tl-corner { top: 0; z-index: 5; display: flex; align-items: flex-end; padding: .375rem .75rem; font-size: .72rem; color: var(--av-muted); font-weight: 600; border-bottom: 1px solid var(--av-border); background: var(--av-surface-2); }
.tl-head { position: sticky; top: 0; z-index: 4; display: flex; background: var(--av-surface-2); border-bottom: 1px solid var(--av-border); }
.tl-day { width: var(--tl-col); flex: none; text-align: center; padding: .25rem 0; border-left: 1px solid var(--av-border-soft); font-size: .6875rem; color: var(--av-muted); line-height: 1.2; }
.tl-day strong { display: block; font-size: .8125rem; color: var(--av-text); font-weight: 600; }
.tl-day.weekend { background: var(--av-surface-2); }
.tl-day.today { background: var(--av-amber-50); }
.tl-day.today strong { color: var(--av-warning); }
.tl-group { grid-column: 1 / -1; position: sticky; left: 0; background: var(--av-surface-2); font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--av-muted); padding: .3125rem .75rem; border-bottom: 1px solid var(--av-border-soft); }
.tl-label { display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; height: 44px; border-bottom: 1px solid var(--av-border-soft); min-width: 0; }
.tl-label .tl-name { font-weight: 550; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-label .tl-meta { font-size: .6875rem; color: var(--av-muted); white-space: nowrap; }
.tl-label .tl-text { min-width: 0; flex: 1; }
.tl-status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tl-status.s-available { background: var(--av-success); }
.tl-status.s-reserved { background: var(--av-info); }
.tl-status.s-onrent { background: var(--av-primary); }
.tl-status.s-maintenance { background: var(--av-warning); }
.tl-status.s-outofservice { background: var(--av-danger); }
.tl-row { position: relative; height: 44px; border-bottom: 1px solid var(--av-border-soft); display: flex; }
.tl-cell { width: var(--tl-col); flex: none; border-left: 1px solid var(--av-border-soft); height: 100%; cursor: cell; }
.tl-cell:hover { background: rgba(40,100,122,.06); }
.tl-cell.weekend { background: var(--av-surface-2); }
.tl-cell.today { background: var(--av-amber-50); }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--av-amber); z-index: 2; pointer-events: none; }
.tl-block { position: absolute; top: 7px; height: 30px; border-radius: 5px; font-size: .72rem; font-weight: 550; padding: 0 .5rem; display: flex; align-items: center; gap: .3rem; overflow: hidden; white-space: nowrap; cursor: pointer; border: 1px solid transparent; z-index: 1; color: #fff; text-align: left; }
.tl-block:hover { filter: brightness(1.06); z-index: 2; box-shadow: 0 2px 8px rgba(21,28,33,.2); }
.tl-block .tl-ref { opacity: .8; font-weight: 500; }
.tl-block.k-reservation { background: var(--av-blue); }
.tl-block.k-rental { background: var(--av-graphite); }
.tl-block.k-rental.overdue { background: var(--av-danger); }
.tl-block.k-hold { background: repeating-linear-gradient(135deg, var(--av-hold-a), var(--av-hold-a) 6px, var(--av-hold-b) 6px, var(--av-hold-b) 12px); color: var(--av-hold-text); border-color: var(--av-hold-border); }
.tl-block.k-maintenance { background: repeating-linear-gradient(135deg, var(--av-maint-a), var(--av-maint-a) 6px, var(--av-maint-b) 6px, var(--av-maint-b) 12px); color: var(--av-maint-text); border-color: var(--av-maint-border); }
.tl-block.clip-start { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tl-block.clip-end { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tl-marker { width: 3px; align-self: stretch; margin: 5px 0; border-radius: 2px; background: rgba(255,255,255,.75); flex: none; }
.tl-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .72rem; color: var(--av-muted); padding: .5rem .75rem; border-top: 1px solid var(--av-border-soft); }
.tl-legend span { display: inline-flex; align-items: center; gap: .375rem; }
.tl-swatch { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }

/* ---------- Public website ---------- */
.public-site { background: var(--av-surface); min-height: 100vh; display: flex; flex-direction: column; }
.public-container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.public-header { border-bottom: 1px solid var(--av-border); background: var(--av-surface); position: sticky; top: 0; z-index: 1030; }
.public-header .public-container { display: flex; align-items: center; height: 64px; gap: 2rem; }
.public-brand { display: flex; align-items: center; gap: .625rem; font-weight: 700; color: var(--av-text); font-size: 1rem; }
.public-brand img { border-radius: 6px; }
.public-nav { display: flex; gap: 1.25rem; }
.public-nav a { color: var(--av-muted); font-weight: 500; }
.public-nav a.active, .public-nav a:hover { color: var(--av-text); }
.public-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.public-hero { background: var(--av-dark); color: #fff; padding: 3.5rem 0 4.5rem; }
.public-hero h1 { color: #fff; font-size: 2.25rem; font-weight: 700; max-width: 640px; letter-spacing: -0.02em; }
.public-hero p { color: #B5C0C6; max-width: 560px; font-size: 1rem; }
.booking-search { background: var(--av-surface); border-radius: 10px; padding: 1rem; display: grid; grid-template-columns: 2fr 1.3fr 1.3fr auto; gap: .75rem; align-items: end; margin-top: 1.75rem; box-shadow: 0 16px 40px rgba(0,0,0,.25); color: var(--av-text); }
.public-section { padding: 2.5rem 0; }
.public-section h2 { font-size: 1.375rem; font-weight: 650; }
.vehicle-card { border: 1px solid var(--av-border); border-radius: 10px; overflow: hidden; background: var(--av-surface); display: flex; flex-direction: column; }
.vehicle-card:hover { border-color: var(--av-border-strong); box-shadow: 0 6px 20px rgba(21,28,33,.08); }
.vehicle-card .vehicle-hero { border-radius: 0; height: 150px; }
.vehicle-card-body { padding: .875rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.vehicle-specs { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .75rem; color: var(--av-muted); }
.vehicle-specs span { display: inline-flex; align-items: center; gap: .25rem; }
.price-tag { font-size: 1.125rem; font-weight: 700; }
.price-tag small { font-size: .75rem; color: var(--av-muted); font-weight: 500; }
.public-footer { background: var(--av-dark); color: #9AA6AC; margin-top: auto; padding: 2rem 0 1rem; font-size: .8125rem; }
.public-footer strong { color: #fff; }
.public-footer ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 1.5rem; padding-top: 1rem; font-size: .75rem; }

/* ---------- Portals ---------- */
.portal { min-height: 100vh; display: flex; flex-direction: column; }
.portal-container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.portal-header { background: var(--av-dark); color: #fff; }
.portal-header > .portal-container { display: flex; align-items: center; height: 56px; }
.portal-brand { display: flex; align-items: center; gap: .625rem; color: #fff; font-weight: 700; }
.portal-brand img { border-radius: 6px; }
.portal-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.portal-user { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: #DDE3E6; }
.portal-signout { color: #AEB9BF; background: transparent; }
.portal-signout:hover { background: rgba(255,255,255,.08); color: #fff; }
.portal-nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.portal-nav a { color: #AEB9BF; padding: .625rem .75rem; font-weight: 500; font-size: .8125rem; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .375rem; align-items: center; }
.portal-nav a:hover { color: #fff; }
.portal-nav a.active { color: #fff; border-bottom-color: var(--av-amber); }
.portal-content { padding-top: 1.5rem; padding-bottom: 2.5rem; flex: 1; }
.portal-footer { color: var(--av-muted); font-size: .75rem; padding-bottom: 1.5rem; }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside { background: var(--av-dark); color: #C2CBD0; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.auth-logo { width: 100%; max-width: 420px; border-radius: 8px; }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: .75rem; }
.auth-points .lucide { color: var(--av-amber); margin-right: .5rem; }
/* Decorative flat illustration (marketing style), anchored to the bottom of the left pane and cut off by its edges. */
/* Its height is reserved at the bottom (padding), so the logo and points centre in the space above and never overlap it. */
.auth-aside { position: relative; overflow: hidden; padding-bottom: calc(36vh + 1rem); }
.auth-aside > :not(.auth-art) { position: relative; z-index: 1; }
.auth-art { position: absolute; right: -40px; bottom: -20px; height: 38vh; width: auto; max-width: 112%; pointer-events: none; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.375rem; font-weight: 650; }
.auth-footer { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; font-size: .75rem; color: var(--av-muted); }

/* ---------- Reconnect & errors ---------- */
#blazor-error-ui { background: var(--av-danger-50); color: var(--av-danger); bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar-open .sidebar { transform: none; }
    .sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(21,28,33,.4); z-index: 1035; }
    .app-main { margin-left: 0; }
    .app-content { padding: 1rem; }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .auth-page { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .booking-search { grid-template-columns: 1fr 1fr; }
    .public-nav { display: none; }
}
@media (max-width: 767.98px) {
    .grid-2, .grid-4, .form-grid, .detail-list.cols-2, .detail-list.cols-3 { grid-template-columns: minmax(0, 1fr); }
    .form-grid .span-2 { grid-column: auto; }
    .workspace-text { display: none; }
    .timeline { --tl-label: 150px; }
    .tl-label .tl-meta { display: none; }
    .search-box { width: 100%; }
    .booking-search { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .public-hero h1 { font-size: 1.75rem; }
    .page-header h1 { font-size: 1.2rem; }
}

/* Reviews */
.star-rating { display: inline-flex; align-items: center; gap: .0625rem; line-height: 1; }
.star-rating .star, .star-input .star { color: var(--av-border-strong); }
.star-rating .star.on, .star-input .star.on { color: #E0A21B; }
.star-rating .star-value { margin-left: .375rem; font-size: .8rem; color: var(--av-muted); }
.star-input { display: flex; gap: .25rem; }
.star-input .star { background: none; border: 0; padding: 0 .125rem; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.star-input .star:focus-visible { outline: 2px solid var(--av-primary, #1F5F8B); border-radius: 4px; }
.chip.verified { background: var(--av-success-50); color: var(--av-success); }
.review-form + .review-form { border-top: 1px solid var(--av-border-soft); margin-top: 1rem; padding-top: 1rem; }

/* Vehicle photos */
.vehicle-hero { overflow: hidden; }
.vehicle-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-strip { display: flex; gap: .5rem; overflow-x: auto; }
.photo-strip button { flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--av-placeholder); cursor: pointer; }
.photo-strip button.selected { border-color: var(--av-primary, #1F5F8B); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.photo-manager figure { margin: 0; border: 1px solid var(--av-border); border-radius: 8px; overflow: hidden; background: var(--av-surface); }
.photo-manager img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--av-placeholder); }
.photo-manager figcaption { padding: .5rem; display: flex; flex-direction: column; gap: .375rem; font-size: .75rem; }
