:root {
  --bg: #07090d;
  --bg-subtle: #0b0e14;
  --panel: #11151c;
  --panel-card: #151922;
  --panel-card-hover: #1c222e;
  --panel-accent: #191f2b;
  --line: #222938;
  --line-light: #2d3648;
  
  --red: #e50914;
  --red-hover: #f40612;
  --red-glow: rgba(229, 9, 20, 0.25);
  --red-tint: rgba(229, 9, 20, 0.12);
  
  --text: #f3f5f8;
  --text-dim: #ccd2de;
  --muted: #858e9d;
  --muted-light: #a0aab8;
  
  --green: #22c55e;
  --green-tint: rgba(34, 197, 94, 0.12);
  --amber: #f59e0b;
  --amber-tint: rgba(245, 158, 11, 0.12);
  --blue: #3b82f6;
  --blue-tint: rgba(59, 130, 246, 0.12);
  --purple: #a855f7;
  --purple-tint: rgba(168, 85, 247, 0.12);
  --cyan: #06b6d4;
  --cyan-tint: rgba(6, 182, 212, 0.12);
  --pink: #ec4899;
  --pink-tint: rgba(236, 72, 153, 0.12);
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  min-height: 100vh;
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #262c3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #353d4f; }

/* -------------------------------------------------------------
   BRANDING & SIDEBAR
   ------------------------------------------------------------- */
.ae-mark {
  width: 32px;
  height: 32px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}
.ae-mark svg { width: 100%; height: 100%; }

aside {
  width: 270px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: width 0.25s ease, border-color 0.25s ease;
}
body.desktop-nav-collapsed > aside {
  width: 0;
  border-right-color: transparent;
  overflow: hidden;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.logo-container {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex: 1;
}
.site-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}
.login-brand .site-logo {
  height: 44px;
  max-width: 200px;
}
.logo-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.logo-sub {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

nav.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}
nav.sidebar-nav a:hover {
  background: var(--panel-card);
  color: var(--text);
}
nav.sidebar-nav a.active {
  background: var(--red);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--red-glow);
}
nav.sidebar-nav a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.85;
}
nav.sidebar-nav a.active svg {
  opacity: 1;
}
nav.sidebar-nav a .nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
nav.sidebar-nav a.active .nav-badge {
  
  color: var(--red);
}

.nav-section-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 14px 6px;
  font-weight: 700;
}

.team-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted-light);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.team-shortcut:hover {
  background: var(--panel-card);
  color: var(--text);
}
.team-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid var(--panel);
}
.user-info { flex: 1; min-width: 0; }
.user-info .u-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .u-role { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.user-info .u-role::before { content: '●'; font-size: 8px; color: var(--green); }
.user-logout-btn {
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.user-logout-btn:hover { background: var(--panel-card); color: var(--red); }
.user-logout-btn svg { width: 16px; height: 16px; }

/* -------------------------------------------------------------
   MAIN CONTENT & HEADER
   ------------------------------------------------------------- */
main.main-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

header.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(7, 9, 13, 0.95);
  backdrop-filter: blur(12px);
  z-index: 15;
}

.page-headline h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.page-headline .breadcrumbs {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs span.sep { color: #3b4457; }

.header-center {
  flex: 1;
  max-width: 440px;
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  transition: border-color 0.15s;
}
.search-pill:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}
.search-pill svg { width: 15px; height: 15px; }
.search-pill input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.search-pill input:focus { outline: none; }
.search-pill kbd {
  font-size: 10px;
  border: 1px solid var(--line);
  background: #141822;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
  font-family: monospace;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  text-decoration: none;
}
.header-btn:hover {
  background: var(--panel-card);
  color: var(--text);
  border-color: var(--line-light);
}
.header-btn svg { width: 16px; height: 16px; }
.header-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.header-badge[hidden],
.nav-badge[hidden] {
  display: none !important;
}

.date-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 500;
}
.date-indicator svg { width: 14px; height: 14px; color: var(--red); }

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.header-user-info {
  text-align: right;
  line-height: 1.25;
  min-width: 0;
}
.header-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.header-user-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.header-user-avatar {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.main-content {
  padding: 24px 28px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

/* -------------------------------------------------------------
   CARDS, KPI METRICS & STATS
   ------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.kpi-grid.five-cols {
  grid-template-columns: repeat(5, 1fr);
}
.kpi-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}
.kpi-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.kpi-card:hover {
  border-color: var(--line-light);
}
.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg { width: 14px; height: 14px; }
.kpi-icon.c-red { background: var(--red-tint); color: var(--red); }
.kpi-icon.c-green { background: var(--green-tint); color: var(--green); }
.kpi-icon.c-amber { background: var(--amber-tint); color: var(--amber); }
.kpi-icon.c-blue { background: var(--blue-tint); color: var(--blue); }
.kpi-icon.c-purple { background: var(--purple-tint); color: var(--purple); }

.kpi-trend {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 20px;
}
.kpi-trend.up { color: var(--green); background: var(--green-tint); }
.kpi-trend.down { color: var(--red); background: var(--red-tint); }

.kpi-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
  line-height: 1.1;
}
.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.kpi-sparkline {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 80px;
  height: 32px;
  opacity: 0.85;
}

/* -------------------------------------------------------------
   PANELS & CONTAINERS
   ------------------------------------------------------------- */
.card-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-header h2, .card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header .header-link {
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-header .header-link:hover { text-decoration: underline; }

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* -------------------------------------------------------------
   TABLES & LISTS
   ------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table.ae-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
table.ae-table th {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.ae-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
table.ae-table tr:hover td {
  background: var(--panel-card);
}

.table-car-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-car-img {
  width: 46px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
}
.table-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #252c3c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-dot-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-green { background: var(--green-tint); color: var(--green); }
.badge-green .badge-dot-icon { background: var(--green); }
.badge-amber { background: var(--amber-tint); color: var(--amber); }
.badge-amber .badge-dot-icon { background: var(--amber); }
.badge-red { background: var(--red-tint); color: var(--red); }
.badge-red .badge-dot-icon { background: var(--red); }
.badge-blue { background: var(--blue-tint); color: var(--blue); }
.badge-blue .badge-dot-icon { background: var(--blue); }
.badge-purple { background: var(--purple-tint); color: var(--purple); }
.badge-purple .badge-dot-icon { background: var(--purple); }

.emp-id-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.emp-id-dot-present { background: var(--green); }
.emp-id-dot-absent { background: var(--red); }
.badge-muted { background: rgba(255, 255, 255, 0.08); color: var(--muted-light); }

/* Department Badges */
.dept-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}
.dept-sales { background: rgba(229, 9, 20, 0.12); color: #e50914; }
.dept-service { background: rgba(229, 9, 20, 0.12); color: #e50914; }
.dept-quotation { background: rgba(229, 9, 20, 0.12); color: #e50914; }
.dept-support { background: rgba(229, 9, 20, 0.12); color: #e50914; }
.dept-admin { background: rgba(229, 9, 20, 0.12); color: #e50914; }

/* Star ratings */
.star-rating {
  color: #ffb800;
  display: inline-flex;
  gap: 2px;
  font-size: 12px;
}
.star-rating .star-empty { color: #3b4457; }

/* -------------------------------------------------------------
   BUTTONS & FORM CONTROLS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--panel-card);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--panel-card-hover);
  border-color: var(--line-light);
}
.btn-success {
  background: #16a34a;
  color: #fff;
}
.btn-success:hover { background: #15803d; }
.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; }
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
}

.filter-bar, .toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  pointer-events: none;
}

.search-input-wrap .search-icon svg,
.search-icon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

.search-input-wrap input.input-control {
  padding-left: 36px !important;
}

span[data-icon] svg,
div[data-icon] svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}
.kpi-icon[data-icon] svg {
  width: 14px;
  height: 14px;
}
.nav-ico[data-icon] svg {
  width: 18px;
  height: 18px;
}
.ae-rupee-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans', 'Segoe UI', Inter, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  width: 1em;
  height: 1em;
}
.nav-ico .ae-rupee-ico { font-size: 17px; }
.kpi-icon .ae-rupee-ico { font-size: 14px; }

.input-control, select.select-control {
  background: #000000;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.input-control:focus, select.select-control:focus {
  outline: none;
  border-color: var(--red);
}
textarea.input-control {
  min-height: 80px;
  resize: vertical;
}
textarea.input-address {
  width: 100%;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  resize: none !important;
  overflow-y: auto;
}
.same-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  white-space: nowrap;
}
.same-address-row .form-label {
  margin: 0;
}
.same-address-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Tabs */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.tab-badge {
  background: var(--panel-card);
  color: var(--muted-light);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
}
.tab-btn.active .tab-badge {
  background: var(--red-tint);
  color: var(--red);
}

.own-vehicle-list { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 4px; }
.own-vehicle-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.own-vehicle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.own-car-link {
  font-weight: 800;
  font-size: 15px;
  color: var(--red);
  text-decoration: none;
}
.own-car-link:hover { text-decoration: underline; }
.own-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  border-left: 2px solid var(--line);
}
.own-step {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 16px 16px;
  position: relative;
}
.own-step:last-child { padding-bottom: 0; }
.own-step-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}
.own-dot {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--panel);
}
.own-step.is-current .own-dot { background: var(--green); }
.own-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.own-order { font-size: 10.5px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; }
.own-step.is-current .own-order { color: var(--green); }
.own-name { font-size: 14px; font-weight: 700; color: var(--text); }
.own-dates { font-size: 12px; color: var(--muted-light); }
.own-sub { font-size: 11.5px; color: var(--muted); }
.own-step-actions { display: flex; gap: 6px; flex-shrink: 0; padding-top: 4px; }

/* -------------------------------------------------------------
   STAGE PIPELINE PROGRESS TRACKERS
   ------------------------------------------------------------- */
.pipeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 28px;
  padding: 0 10px;
}
.pipeline-track::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #1f2533;
  z-index: 1;
}
.pipeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  width: 80px;
}
.pipeline-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141822;
  border: 2px solid #2b3345;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}
.pipeline-step.active .pipeline-node {
  background: var(--red);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 12px var(--red-glow);
}
.pipeline-step.done .pipeline-node {
  background: #16a34a;
  border-color: #22c55e;
  color: #ffffff;
}
.pipeline-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.pipeline-step.active .pipeline-label {
  color: var(--red);
  font-weight: 700;
}
.pipeline-step.done .pipeline-label {
  color: var(--text);
}

/* 9-Stage All Cars Banner */
.workflow-ribbon {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}
.workflow-stage-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.workflow-stage-pill.active {
  border-color: var(--red);
  background: var(--red-tint);
}
.workflow-stage-pill .s-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
}
.workflow-stage-pill .s-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workflow-stage-pill .s-desc {
  font-size: 9.5px;
  color: var(--muted);
}
.stage-count-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.stage-count-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.stage-count-chip:hover,
.workflow-stage-pill.filter-selected {
  border-color: var(--red);
}
.stage-count-chip .scn {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.stage-count-chip .scl {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.wf-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wf-chip {
  border: 1px solid var(--line);
  background: var(--panel-card);
  color: var(--muted-light);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.wf-chip.ontrack { color: var(--green); border-color: rgba(34,197,94,.35); }
.wf-chip.delayed { color: var(--amber); border-color: rgba(245,158,11,.35); }
.wf-chip.blocked { color: var(--red); border-color: rgba(229,9,20,.35); }
.wf-chip.completed { color: var(--blue); border-color: rgba(59,130,246,.35); }
.wf-stage-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}
.wf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
}
.wf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wf-spec-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.wf-spec-bar .sp {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.wf-spec-bar .spk { font-size: 10px; color: var(--muted); }
.wf-spec-bar .spv { font-size: 12px; font-weight: 700; color: var(--text); margin-top: 2px; }
.wf-h-timeline {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
}
.wf-h-step {
  min-width: 72px;
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.wf-h-step .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: #2b3345;
}
.wf-h-step.done .dot { background: #22c55e; }
.wf-h-step.now .dot { background: #e50914; box-shadow: 0 0 0 3px rgba(229,9,20,.25); }
.sold-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------
   VEHICLE CATALOG & CAR CARDS
   ------------------------------------------------------------- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.car-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.car-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-light);
}
.car-card-img-wrap {
  height: 160px;
  position: relative;
  background: #000;
}
.car-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-badge-avail {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.car-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.car-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.car-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.car-card-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.car-card-specs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted-light);
  margin: 10px 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.car-card-specs span { display: flex; align-items: center; gap: 4px; }
.car-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.car-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}
.car-card-loc {
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* -------------------------------------------------------------
   SLIDE-OVER / DRAWER CONTAINERS & MODALS
   ------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.slide-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-backdrop.open .slide-drawer {
  right: 0;
}
.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}
.drawer-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10000;
}
.modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 650px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-box > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Form Multi-column Grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-label span.req { color: var(--red); }

/* -------------------------------------------------------------
   TEAM CHAT 3-COLUMN SHELL
   ------------------------------------------------------------- */
.chat-container {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 16px;
  height: calc(100vh - 130px);
  min-height: 540px;
}
.chat-column {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.chat-channel-item:hover { background: var(--panel-card); }
.chat-channel-item.active {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.chat-bubble {
  max-width: 75%;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.chat-bubble.own {
  margin-left: auto;
  flex-direction: row-reverse;
}
.chat-bubble-content {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-bubble.own .chat-bubble-content {
  background: #7a0c10;
  border-color: #a3141a;
  color: #ffffff;
}

/* -------------------------------------------------------------
   CALENDAR & ATTENDANCE HEATMAP
   ------------------------------------------------------------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}
.cal-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}
.cal-page-main,
.cal-page-side {
  min-width: 0;
  max-width: 100%;
}
.cal-page-side .card-panel {
  width: 100%;
  max-width: 100%;
}
.cal-header-day {
  background: #fff0f1;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #171717;
  text-transform: uppercase;
}
.cal-cell {
  background: #ffffff;
  min-height: 90px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.cal-cell.today {
  background: #fff0f1;
}
.cal-cell-day {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.cal-cell.today .cal-cell-day {
  color: var(--red);
}
.cal-event-pill {
  font-size: 10.5px;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* -------------------------------------------------------------
   CUSTOM SVG CHART STYLING
   ------------------------------------------------------------- */
.chart-container-box {
  display: flex;
  flex-direction: column;
}
.donut-svg text { font-family: inherit; }
.donut-total { font-size: 22px; font-weight: 800; fill: #171717; }
.donut-sub { font-size: 10px; fill: var(--muted); letter-spacing: 0.05em; }

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.donut-legend-color {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.donut-legend-label {
  color: var(--muted-light);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donut-legend-num {
  font-weight: 700;
  color: var(--text);
}

/* Responsive queries */
.nav-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.desktop-nav-toggle {
  margin-right: 12px;
  width: 34px;
  height: 34px;
}
.mobile-nav-toggle,
.desktop-reopen-toggle { display: none; }
.desktop-reopen-toggle {
  position: fixed;
  top: 14px;
  left: 10px;
  z-index: 60;
}
body.desktop-nav-collapsed .desktop-reopen-toggle { display: flex; }
body.desktop-nav-collapsed .main-shell > .top-bar { padding-left: 72px; }
.nav-toggle:hover {
  background: var(--panel-card-hover);
  border-color: var(--line-light);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.sidebar-overlay {
  display: none;
}

@media (max-width: 1200px) {
  .kpi-grid,
  .kpi-grid.five-cols,
  .kpi-grid.three-cols { grid-template-columns: repeat(2, 1fr); }
  .grid-2col, .grid-3col, .grid-equal { grid-template-columns: 1fr; }
  .cal-page-layout { grid-template-columns: 1fr; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-container { grid-template-columns: 220px 1fr; }
  .chat-container .chat-column:last-child { display: none; }
  .wf-spec-bar { grid-template-columns: repeat(2, 1fr); }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .workflow-ribbon,
  .stage-count-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .workflow-stage-pill,
  .stage-count-chip {
    min-width: 128px;
    flex-shrink: 0;
  }
}

@media (max-width: 960px) {
  .desktop-nav-toggle { display: none; }
  .mobile-nav-toggle { display: flex; }
  .desktop-reopen-toggle { display: none !important; }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  body.nav-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  body > aside {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    height: 100dvh;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }
  body.public-site > aside {
    transform: none;
    box-shadow: none;
  }
  body.nav-open > aside { transform: translateX(0); }
  body.desktop-nav-collapsed > aside { width: 260px; }
  body.desktop-nav-collapsed .main-shell > .top-bar { padding-left: 14px; }
  header.top-bar {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }
  .page-headline { flex: 1; min-width: 0; }
  .page-headline h1 { font-size: 16px; }
  .header-center {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
  }
  .search-pill kbd,
  .date-indicator { display: none; }
  .header-user-info { display: none; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .header-user { padding-left: 0 !important; border-left: none !important; gap: 6px !important; }
  .main-content {
    padding: 16px 14px 24px;
  }
  .page-footer {
    padding: 8px 14px;
  }
  .card-panel { padding: 14px; }
  .kpi-value { font-size: 18px; }
  .table-responsive {
    overflow: visible;
  }
  table.ae-table {
    min-width: 0 !important;
    width: 100%;
  }
  table.ae-table thead { display: none; }
  table.ae-table tbody { display: block; width: 100%; }
  table.ae-table tr.clickable-row:hover,
  table.ae-table tr:hover td { background: transparent; }
  table.ae-table tbody tr {
    display: block;
    width: 100%;
    background: var(--panel-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  table.ae-table tbody td {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left !important;
    white-space: normal;
  }
  table.ae-table tbody td:last-child { border-bottom: none; padding-top: 12px; }
  table.ae-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  table.ae-table tbody td:not([data-label])::before,
  table.ae-table tbody td[data-label=""]::before { display: none; }
  table.ae-table tbody td.mobile-hide-col { display: none; }
  table.ae-table tbody td:last-child .btn {
    width: 100%;
    justify-content: center;
  }
  .slide-drawer {
    width: 100% !important;
    max-width: 100%;
    right: -100%;
  }
  .modal-overlay { padding: 10px; align-items: flex-end; }
  .modal-box {
    width: 100% !important;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .form-grid-2,
  .form-grid-3 { grid-template-columns: 1fr; }
  .modal-footer,
  .drawer-footer { flex-wrap: wrap; }
  .chat-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .chat-container .chat-column:last-child { display: flex; }
  .pipeline-track {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .pipeline-step { flex-shrink: 0; }
  .filter-bar, .toolbar { flex-wrap: wrap; }
  .header-user-info { display: none; }
  .tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cal-cell { min-height: 64px; }
  .c24-top-actions,
  .c24-results-headline,
  .sort-wrap { width: 100%; }
  .c24-results-headline { flex-wrap: wrap; }
  .c24-top-actions .search-input-wrap,
  .c24-top-actions .input-control,
  .c24-top-actions .select-control,
  .c24-top-actions .sort-wrap,
  .c24-top-actions .tabs-nav,
  .c24-top-actions .btn { width: 100% !important; min-width: 0; max-width: 100%; }
  .c24-top-actions .btn { justify-content: center; }
  .chat-container .chat-column { min-height: 280px; }
  .chat-container .chat-column form { min-width: 0; }
  .chat-container .input-control { min-width: 0; }
  .chat-bubble { max-width: 100%; }
  .cv-spec-grid { grid-template-columns: 1fr; }
  .cv-nav { width: 36px; height: 36px; font-size: 24px; }
  .cv-nav-prev { left: 8px; }
  .cv-nav-next { right: 8px; }
  .cv-gallery-tab { padding: 12px 12px; min-height: 44px; }
  .cv-thumb { width: 96px; height: 68px; }
  .c24-mobile-filter-close {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
  }
  body.c24-crm-filters-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .kpi-grid,
  .kpi-grid.five-cols,
  .kpi-grid.three-cols,
  .kpi-grid.two-cols { grid-template-columns: 1fr; }
  .car-grid { grid-template-columns: 1fr; }
  .page-headline .breadcrumbs { display: none; }
  .wf-spec-bar { grid-template-columns: 1fr 1fr; }
  .wf-chip-row { width: 100%; }
  .controls-row .input-control,
  .controls-row .select-control { width: 100% !important; min-width: 0; }
  .controls-row { width: 100%; }
  .login-card { padding: 24px 16px; max-width: 100%; }
  .kpi-card.active-kpi-filter::after { display: none; }
  .kpi-trend { max-width: 100%; white-space: normal; }
}

@media (hover: none) {
  .clickable-card:hover,
  .clickable-car-card:hover,
  .performer-card:hover { transform: none; }
}

@media (max-width: 960px) {
  .input-control, .select-control, .login-form input, .search-pill input {
    font-size: 16px;
  }
  body.login-page { padding: 12px; }
  .login-card { padding: 24px 16px; }
  .login-form input {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .password-field { max-width: 100%; }
}

/* -------------------------------------------------------------
   LOGIN PAGE STYLES
   ------------------------------------------------------------- */
body.login-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at center, #151a24 0%, #07090d 100%);
  padding: 16px;
}
.login-shell {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  min-width: 0;
}
.login-brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
.login-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.08em;
}
.login-card h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 6px;
}
.login-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.login-error {
  background: var(--red-tint);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff5964;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 18px;
}
.login-form label {
  display: block;
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 500;
  margin: 12px 0 6px;
}
.login-form input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #000000;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--red);
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 68px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted-light);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  min-height: 44px;
  min-width: 44px;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}
.login-form button[type="submit"] {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 22px;
  transition: background 0.15s;
  box-shadow: 0 4px 15px var(--red-glow);
}
.login-form button[type="submit"]:hover {
  background: var(--red-hover);
}

@media (max-width: 960px) {
  body.login-page .login-card { padding: 24px 16px; }
}

/* -------------------------------------------------------------
   INTERACTIVE CARDS, POPUPS, CARD-FILTERS & SORTING ENGINE
   ------------------------------------------------------------- */
.clickable-card {
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
}
.clickable-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.clickable-card:active {
  transform: translateY(-1px);
}

/* ACTIVE KPI CARD FILTER STATE */
.kpi-card.active-kpi-filter {
  border-color: var(--red) !important;
  background: #fff0f1 !important;
  box-shadow: 0 0 0 2px var(--red-glow) !important;
  color: #171717 !important;
}
.kpi-card.active-kpi-filter::after {
  content: '✓ FILTER ACTIVE';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 9px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid rgba(229, 9, 20, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ACTIVE FILTER STATUS BAR */
.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(229, 9, 20, 0.08);
  border: 1px dashed rgba(229, 9, 20, 0.35);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text);
  animation: fadeIn 0.2s ease;
}
.active-filter-bar .filter-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
}
.active-filter-bar .clear-filter-btn {
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--muted-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.active-filter-bar .clear-filter-btn:hover {
  background: var(--panel-card);
  color: var(--text);
  border-color: var(--red);
}

/* SORTING & FILTER CONTROLS WRAPPER */
.controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sort-wrap label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

/* INTERACTIVE TABLE ROWS & CARDS */
.clickable-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.clickable-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.clickable-car-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.clickable-car-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* PERFOMER SCORECARD CARDS */
.performer-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.performer-card:hover {
  transform: translateY(-2px);
  border-color: var(--red) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* RIBBON STAGE PILL ACTIVE FILTER */
.workflow-stage-pill {
  cursor: pointer;
  transition: all 0.15s ease;
}
.workflow-stage-pill:hover {
  border-color: var(--red);
  background: rgba(229, 9, 20, 0.08);
}
.workflow-stage-pill.filter-selected {
  border-color: var(--red) !important;
  background: var(--red-tint) !important;
  box-shadow: 0 0 12px var(--red-glow);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   CARS24 STYLE FILTER SIDEBAR & INVENTORY LAYOUT
   ------------------------------------------------------------- */
.cars24-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
  margin-top: 14px;
}

/* FILTER SIDEBAR — Cars24: sticky column; inner pane scrolls; listings scroll separately */
aside.cars24-sidebar,
.cars24-sidebar {
  width: 100%;
  height: calc(100dvh - 88px);
  max-height: calc(100dvh - 88px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 8px;
  align-self: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.cars24-sidebar-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-card);
}

.cars24-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cars24-filter-count-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.cars24-reset-btn {
  background: transparent;
  border: none;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.cars24-reset-btn:hover {
  background: var(--red-tint);
  text-decoration: underline;
}

.cars24-sidebar-header {
  flex-shrink: 0;
}
.cars24-sidebar-body {
  padding: 8px 12px 16px 0;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #9ca3af #f3f4f6;
}
.cars24-sidebar-body::-webkit-scrollbar {
  width: 8px;
}
.cars24-sidebar-body::-webkit-scrollbar-track {
  background: #f3f4f6;
}
.cars24-sidebar-body::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 8px;
}
.cars24-sidebar-body::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* FILTER ACCORDION */
.c24-accordion-item {
  border-bottom: 1px solid var(--line);
}
.c24-accordion-item:last-child {
  border-bottom: none;
}

.c24-accordion-btn {
  width: 100%;
  padding: 13px 18px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.c24-accordion-btn:hover {
  background: #fff5f5;
}

.c24-accordion-btn .c24-acc-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c24-accordion-btn .c24-acc-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.c24-accordion-btn .c24-chevron {
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.c24-accordion-item.open .c24-chevron {
  transform: rotate(180deg);
}

.c24-accordion-content {
  padding: 0 18px 16px;
  display: none;
  animation: fadeIn 0.18s ease;
}
.c24-accordion-item.open .c24-accordion-content {
  display: block;
}

/* BRAND FILTER BUTTONS & LIST */
.c24-brand-search {
  width: 100%;
  margin-bottom: 10px;
  font-size: 12px !important;
  padding: 6px 10px !important;
}

.c24-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.c24-brand-chip {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 8px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.c24-brand-chip:hover {
  border-color: var(--line-light);
  color: var(--text);
  background: var(--panel-card-hover);
}
.c24-brand-chip.active {
  border-color: var(--red);
  background: var(--red-tint);
  color: var(--red);
  font-weight: 700;
}
.c24-brand-chip-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}
.c24-brand-chip-main > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c24-brand-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 3px;
  padding: 1px;
}
.c24-brand-logo.is-missing {
  visibility: hidden;
}
.c24-brand-logo-lg {
  width: 22px;
  height: 22px;
}

.c24-range-endpoints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.c24-minmax-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.c24-minmax-select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 8px;
  cursor: pointer;
}
.c24-minmax-select:focus {
  outline: none;
  border-color: var(--red);
}
.c24-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.c24-color-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel-card);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.c24-color-chip:hover {
  border-color: var(--line-light);
}
.c24-color-chip.active {
  border-color: var(--red);
  background: var(--red-tint);
}
.c24-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.c24-color-name {
  font-size: 12px;
  font-weight: 700;
  flex: 1;
}
.c24-color-count {
  font-size: 11px;
  color: var(--muted);
}
.c24-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.c24-minmax-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.c24-minmax-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.c24-minmax-row .input-control {
  width: 100%;
  font-size: 12.5px !important;
  padding: 6px 8px !important;
}
.c24-dual-slider {
  position: relative;
  height: 24px;
  margin: 6px 0 8px;
}
.c24-dual-slider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: var(--line);
  border-radius: 4px;
  pointer-events: none;
}
.c24-dual-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  z-index: 2;
}
.c24-dual-slider input[type="range"]:nth-child(1) {
  z-index: 3;
}
.c24-dual-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: none;
}
.c24-dual-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}
.c24-dual-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.35);
  cursor: pointer;
}
.c24-dual-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.35);
  cursor: pointer;
}
.c24-brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: #525252;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 16px;
}
.c24-brand-chip.active .c24-brand-badge {
  background: var(--red);
  color: #fff;
}

/* PRICE & KM RANGE SLIDER & QUICK PILLS */
.c24-range-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.c24-range-display .c24-range-val {
  color: var(--red);
  font-size: 13.5px;
}

.c24-slider-control {
  width: 100%;
  accent-color: var(--red);
  cursor: pointer;
  margin-bottom: 12px;
}

.c24-quick-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c24-quick-pill {
  background: var(--panel-card);
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.c24-quick-pill:hover {
  border-color: var(--line-light);
  color: var(--text);
}
.c24-quick-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  font-weight: 700;
}

/* BODY TYPE VISUAL GRID */
.c24-body-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.c24-body-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}
.c24-body-card:hover {
  border-color: var(--line-light);
  background: var(--panel-card-hover);
}
.c24-body-card.active {
  border-color: var(--red);
  background: var(--red-tint);
}
.c24-body-card .c24-body-icon {
  font-size: 20px;
}
.c24-body-card .c24-body-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}
.c24-body-card.active .c24-body-name {
  color: var(--red);
}
.c24-body-card .c24-body-count {
  font-size: 10px;
  color: var(--muted);
}

/* CHECKBOX LIST GROUPS */
.c24-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.c24-facet-hidden,
.c24-brand-search-hide {
  display: none !important;
}
.c24-quick-pill .c24-facet-count {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.75;
}

.c24-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
  font-size: 12px;
  color: var(--text-dim);
}
.c24-check-item:hover {
  background: #fff5f5;
  color: var(--text);
}
.c24-check-item input[type="checkbox"],
.c24-check-item input[type="radio"] {
  accent-color: var(--red);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.c24-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.c24-check-count {
  font-size: 10.5px;
  color: #525252;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 10px;
}

/* MAIN CATALOG CONTAINER */
.cars24-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* TOP CONTROLS & QUICK CHIPS BAR */
.c24-top-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c24-top-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.c24-results-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.c24-results-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.c24-results-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.c24-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* QUICK FILTER HORIZONTAL CHIP STRIP */
.c24-quick-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.c24-quick-strip-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ACTIVE REMOVABLE FILTER PILLS STRIP */
.c24-active-pills-bar {
  background: rgba(229, 9, 20, 0.06);
  border: 1px dashed rgba(229, 9, 20, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  animation: fadeIn 0.2s ease;
}
.c24-active-pills-bar .c24-active-label {
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 600;
}
.c24-applied-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-card);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px 3px 10px;
  border-radius: 999px;
}
.c24-applied-tag .c24-remove-tag {
  background: rgba(229, 9, 20, 0.2);
  border: none;
  color: var(--red);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.12s;
}
.c24-applied-tag .c24-remove-tag:hover {
  background: var(--red);
  color: #fff;
}

/* CARS24 VEHICLE CARD */
.c24-cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.c24-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}
.c24-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.c24-card-media {
  position: relative;
  height: 170px;
  background: #000000;
  overflow: hidden;
}
.c24-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 0;
}
.c24-card:hover .c24-card-media img {
  transform: scale(1.04);
}

.c24-img-off,
.c24-cars-grid .c24-card .c24-card-media .c24-img-off,
.c24-badge-hot {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 20 !important;
  display: inline-block !important;
  background: #facc15 !important;
  color: #713f12 !important;
  border: 1px solid #eab308 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25) !important;
  pointer-events: none;
}

.c24-card-media-badges {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.c24-badge-assured,
.c24-badge-assured.c24-tone-good {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.3;
  margin-bottom: 12px;
  width: fit-content;
  max-width: 100%;
}

.c24-badge-hot {
  /* discount chip lives on .c24-img-off; keep this as alias */
}

.c24-badge-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: none;
  flex-shrink: 0;
}
.c24-badge-status.Available { background: #dcfce7; color: #166534; }
.c24-badge-status.Reserved { background: #fef9c3; color: #854d0e; }
.c24-badge-status.Sold { background: rgba(100, 116, 139, 0.85); color: #fff; }

.c24-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.c24-car-title-wrap {
  margin-bottom: 6px;
}
.c24-car-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  min-width: 0;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.c24-car-variant {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SPECS PILLS STRIP */
.c24-specs-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  font-size: 11px;
}
.c24-spec-tag {
  background: var(--panel-card);
  border: 1px solid var(--line);
  color: var(--muted-light);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* HIGHLIGHT FEATURE CHIPS */
.c24-features-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 22px;
}
.c24-feature-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* PRICE & EMI SECTION */
.c24-pricing-wrap {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.c24-price-old {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  line-height: 1.2;
}
.c24-off-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.c24-tone-good,
.c24-feature-badge.c24-tone-good {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}
.c24-discount-preview {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  margin-top: 4px;
  min-height: 14px;
}
.assured-multi {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}
.assured-multi label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 600;
}
.c24-price-primary small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.c24-emi-calc {
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 600;
  text-align: right;
}
.c24-emi-calc strong {
  color: var(--green);
}

.c24-card-footer-btns {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.c24-card-footer-btns .btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 11.5px;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

.c24-media-thumb {
  position: relative;
  width: 88px;
  min-width: 88px;
  height: 64px;
  flex-shrink: 0;
  margin: 6px 6px 0 0;
}
.c24-media-thumb img,
.c24-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.c24-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 8px 6px;
  word-break: break-word;
  line-height: 1.2;
}
.c24-media-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.c24-media-del:hover { background: #b91c1c; }

[id^="newPrev_"],
[id^="editPrev_"] {
  overflow: visible !important;
  padding: 10px 8px 8px !important;
}

.cv-listing-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cv-listing-opt {
  position: relative;
  width: 88px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.cv-listing-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-listing-opt.active { border-color: var(--red); }
.cv-listing-opt span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 0;
}
.cv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.cv-topbar-meta { display: flex; align-items: center; gap: 10px; }
.cv-stock { font-family: monospace; font-weight: 800; color: var(--red); }
.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.cv-main, .cv-gallery, .cv-section, .cv-side { min-width: 0; max-width: 100%; }
.cv-gallery { margin-bottom: 4px; }
.cv-hero-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #0b0b0b; }
.cv-hero, .cv-hero-video { width: 100%; height: 460px; object-fit: cover; display: block; }
.cv-hero-video { object-fit: contain; background: #000; }
.cv-hero-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  background: #fef9c3;
  color: #854d0e;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  border: 1px solid #fde68a;
}
.cv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #171717;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  z-index: 2;
}
.cv-nav:hover { background: var(--red); color: #fff; }
.cv-nav-prev { left: 12px; }
.cv-nav-next { right: 12px; }
.cv-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}
.cv-gallery-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}
.cv-gallery-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.cv-gallery-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.cv-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.cv-thumb {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #111;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  width: 88px;
  height: 62px;
  position: relative;
}
.cv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-thumb.active { border-color: var(--red); }
.cv-thumb-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 16px;
}
.cv-video { width: 100%; max-height: 360px; border-radius: 10px; background: #000; margin-top: 8px; }
.cv-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 14px;
}
.cv-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
}
.cv-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  min-width: 0;
}
.cv-spec-grid div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-spec-grid span { font-size: 11px; color: var(--muted); font-weight: 600; }
.cv-spec-grid strong { font-size: 13px; color: var(--text); overflow-wrap: anywhere; word-break: break-word; }
.cv-features { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-empty { margin: 0; font-size: 13px; color: var(--muted); }
.cv-doc-list, .cv-hist-list { display: flex; flex-direction: column; gap: 8px; }
.cv-doc-row, .cv-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-card);
}
.cv-doc-name { font-weight: 700; font-size: 13px; }
.cv-doc-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cv-hist-price { font-weight: 800; color: var(--red); white-space: nowrap; }
.cv-side { position: sticky; top: 12px; }
.cv-side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.cv-title-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.cv-title-row h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.cv-variant { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cv-price { font-size: 26px; font-weight: 800; color: var(--red); }
.cv-emi { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cv-assured { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--text); }
.cv-side-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .cv-layout { grid-template-columns: 1fr; }
  .cv-side { position: static; }
  .cv-hero, .cv-hero-video { height: 240px; }
  .cv-spec-grid { grid-template-columns: 1fr; }
  .cv-nav { width: 36px; height: 36px; font-size: 24px; }
  .cv-nav-prev { left: 8px; }
  .cv-nav-next { right: 8px; }
}

/* EMPTY STATE */
.c24-no-results {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}
.c24-no-results-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.c24-no-results-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.c24-no-results-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 18px;
}

/* MOBILE FILTER TOGGLE & DRAWER */
.c24-mobile-filter-trigger {
  display: none;
}
.c24-mobile-filter-close {
  display: none;
}

@media (max-width: 1280px) {
  .cars24-layout {
    grid-template-columns: 260px 1fr;
    gap: 14px;
  }
  .c24-cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .cars24-layout {
    grid-template-columns: 1fr;
  }
  .c24-mobile-filter-trigger {
    display: inline-flex !important;
  }
  .c24-mobile-filter-close {
    display: inline-flex !important;
  }
  .cars24-sidebar,
  aside.cars24-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 10050;
    border-radius: 0;
    overflow: hidden;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }
  body.public-site .cars24-sidebar,
  body.public-site aside.cars24-sidebar {
    display: flex;
  }
  .cars24-sidebar.mobile-open {
    display: flex !important;
  }
  .cars24-sidebar.mobile-open .cars24-sidebar-body {
    flex: 1 1 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .c24-cars-grid {
    grid-template-columns: 1fr;
  }
}

/* Project-wide white and red theme */
:root {
  --bg: #ffffff;
  --bg-subtle: #fff7f7;
  --panel: #ffffff;
  --panel-card: #fffafa;
  --panel-card-hover: #fff0f1;
  --panel-accent: #fff4f4;
  --line: #f0c7ca;
  --line-light: #e99da2;
  --text: #171717;
  --text-dim: #303030;
  --muted: #666666;
  --muted-light: #444444;
  --red: #e50914;
  --red-hover: #ff2631;
  --red-glow: rgba(229, 9, 20, 0.32);
  --red-tint: rgba(229, 9, 20, 0.16);
  --green: #16a34a;
  --amber: #d97706;
  --blue: #e50914;
  --purple: #e50914;
  --cyan: #e50914;
  --pink: #e50914;
}

body,
body.login-page {
  background: #ffffff;
  color: #171717;
}

aside,
.main-shell,
.card-panel,
.kpi-card,
.modal-box,
.slide-drawer,
.login-card,
.c24-no-results,
.cars24-sidebar {
  background: #ffffff;
  border-color: #f0c7ca;
}

h1, h2, h3, h4,
.kpi-label,
.kpi-value,
.page-headline h1,
.c24-results-title,
.c24-car-name,
.c24-car-variant,
.c24-body-name,
.c24-range-display,
.form-label,
.ae-table th,
.ae-table td,
.card-header,
.drawer-header,
.modal-header,
.login-card,
.login-brand {
  color: #171717;
}

a,
.header-link,
.c24-range-display .c24-range-val,
.c24-price-primary,
.c24-quick-strip-label,
.c24-active-label,
.c24-sidebar-title,
.c24-results-count,
.login-card a {
  color: #e50914;
}

header.top-bar,
.header-center,
.header-actions,
.search-pill,
.date-indicator,
.header-btn,
.cars24-sidebar-header,
.c24-top-bar {
  background: #ffffff;
  color: #171717;
  border-color: #f0c7ca;
}

header.top-bar {
  border-bottom-color: #f0c7ca;
}

.search-pill input,
.search-pill kbd,
.date-indicator,
.header-btn,
.header-user-name {
  color: #171717;
}

.header-user-meta {
  color: #777777;
}

.search-pill input::placeholder,
.input-control::placeholder {
  color: #777777;
  opacity: 1;
}

.input-control,
select.select-control,
.login-form input,
.cars24-layout .input-control,
.cars24-layout .select-control,
.cars24-layout select,
.cars24-layout input[type="text"] {
  background: #ffffff !important;
  color: #171717 !important;
  border-color: #f0c7ca;
}

.input-control:focus,
select.select-control:focus,
.login-form input:focus {
  border-color: #e50914;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.18);
}

.cars24-layout option,
select option {
  background: #ffffff;
  color: #171717;
}

nav.sidebar-nav a:hover,
.team-shortcut:hover,
.header-btn:hover,
.c24-brand-chip:hover,
.c24-body-card:hover,
.c24-quick-pill:hover,
.kpi-card:hover,
.c24-card:hover {
  border-color: #e50914;
  color: #171717;
  background: #fff0f1;
}
.kpi-card.kpi-positive:hover {
  border-color: #4ade80;
  color: #166534;
  background: #bbf7d0;
}

.btn-secondary,
.c24-brand-chip,
.c24-quick-pill,
.c24-body-card,
.c24-check-item,
.c24-card {
  border-color: #f0c7ca;
  color: #171717;
}

.c24-body-card.active,
.active-filter-bar,
.c24-active-pills-bar {
  border-color: #e50914;
  background: rgba(229, 9, 20, 0.1);
}

/* Light surfaces: dark / red text (never white-on-white) */
.btn,
.btn-secondary,
.btn-secondary *,
.btn-icon,
.badge,
.badge *,
.tab-btn,
.tab-badge,
.search-pill kbd,
.header-btn,
.header-user-name,
.date-indicator,
.form-label,
.empty-state,
.empty-state p,
.c24-feature-badge,
.c24-no-results-title,
.c24-no-results-desc {
  color: #171717;
}

.dept-pill,
.dept-admin,
.dept-sales,
.dept-service,
.dept-quotation,
.dept-support {
  color: #e50914 !important;
}

.badge-blue,
.badge-purple,
.live-badge,
.tab-btn.active,
.tab-btn.active .tab-badge {
  color: #e50914 !important;
  background: rgba(229, 9, 20, 0.12);
}

.badge-green,
.badge-green * {
  color: #166534 !important;
}
.badge-green {
  background: #dcfce7 !important;
}
.badge-green .badge-dot-icon {
  background: #166534 !important;
}

.badge-amber,
.badge-amber * {
  color: #854d0e !important;
}
.badge-amber {
  background: #fef9c3 !important;
}
.badge-amber .badge-dot-icon {
  background: #854d0e !important;
}

.badge-red,
.badge-red * {
  color: #e50914 !important;
}
.badge-red {
  background: rgba(229, 9, 20, 0.12) !important;
}
.badge-red .badge-dot-icon {
  background: #e50914 !important;
}

.emp-id-dot-present {
  background: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.28);
}
.emp-id-dot-absent {
  background: #e50914 !important;
}

.badge-muted {
  background: #fff0f1;
  color: #171717 !important;
}

.badge-secondary {
  background: #fff0f1;
  color: #171717 !important;
}

.login-error {
  color: #e50914;
}

.search-pill kbd {
  background: #fff0f1;
  border-color: #f0c7ca;
}

.pipeline-node {
  background: #fff0f1;
  border-color: #f0c7ca;
  color: #171717;
}

/* Red fills: white text */
.btn-primary,
.btn-primary *,
.btn-success,
.btn-success *,
.btn-danger,
.btn-danger *,
nav.sidebar-nav a.active,
nav.sidebar-nav a.active *,
nav.sidebar-nav a .nav-badge,
.header-badge,
.login-form button,
.login-form button *,
.filter-pill-tag,
.cars24-filter-count-badge,
.pipeline-step.active .pipeline-node,
.pipeline-step.done .pipeline-node,
.user-avatar,
.team-dot,
.table-user-avatar {
  color: #ffffff !important;
}

nav.sidebar-nav a.active,
.btn-primary,
.login-form button {
  background: #e50914;
  border-color: #e50914;
}

.c24-img-off,
.c24-badge-hot,
.cv-hero-badge {
  background: #facc15 !important;
  border-color: #eab308 !important;
  color: #713f12 !important;
}

.c24-quick-pill.active,
.c24-brand-chip.active,
.c24-body-card.active {
  background: #fff0f1 !important;
  border-color: #e50914 !important;
  color: #e50914 !important;
}

.c24-brand-chip.active .c24-brand-badge {
  background: #e50914;
  color: #ffffff !important;
}

.btn-primary:hover,
.login-form button:hover {
  background: #ff2631;
  border-color: #ff2631;
}

/* Inline leftover white copy from the dark theme */
p[style*="color:#fff"],
p[style*="color: #fff"],
p[style*="color:#ffffff"],
p[style*="color: #ffffff"],
p[style*="color:white"],
p[style*="color: white"],
h1[style*="color:#fff"],
h2[style*="color:#fff"],
h3[style*="color:#fff"],
h4[style*="color:#fff"],
h5[style*="color:#fff"],
h6[style*="color:#fff"],
span[style*="color:#fff"],
span[style*="color: #fff"],
span[style*="color:#ffffff"],
span[style*="color: #ffffff"],
span[style*="color:white"],
label[style*="color:#fff"],
label[style*="color: #fff"],
label[style*="color:#ffffff"],
label[style*="color: #ffffff"],
small[style*="color:#fff"],
strong[style*="color:#fff"],
div[style*="color:#fff"]:not([style*="background"]),
div[style*="color: #fff"]:not([style*="background"]),
div[style*="color:#ffffff"]:not([style*="background"]),
td[style*="color:#fff"],
li[style*="color:#fff"] {
  color: #171717 !important;
}

.modal-header,
.modal-footer,
.drawer-header,
.drawer-footer,
.drawer-body,
.slide-drawer,
.modal-box,
.modal-body {
  background: #ffffff !important;
  color: #171717;
}

.kpi-card,
.card-panel,
.modal-box,
.modal-body,
.slide-drawer,
.drawer-body {
  color: #171717;
}

.cal-header-day,
.cal-cell,
.cal-cell.today {
  background: #ffffff;
  color: #171717;
}

.cal-header-day,
.cal-cell.today {
  background: #fff0f1;
}

.kpi-trend.up,
.kpi-trend.down {
  color: #e50914;
}

/* Leftover dark-theme fills on cards, drawers, and popups */
[style*="#0d1117"],
[style*="#0e1219"],
[style*="#07090d"],
[style*="#0a0e14"],
[style*="#0b0e14"],
[style*="#080a0e"],
[style*="#10141c"],
[style*="#11151c"],
[style*="#141822"],
[style*="#141922"],
[style*="#151a24"],
[style*="#161b24"],
[style*="#181e2b"],
[style*="#1b212d"],
[style*="#1a1e28"],
[style*="#1f1115"] {
  background: #fffafa !important;
  color: #171717;
}

.row-actions-cell {
  text-align: right;
  white-space: nowrap;
  width: 48px;
}
.row-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}
.row-actions-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #f0c7ca;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: #171717;
}
.row-actions-btn:hover,
.row-actions.open .row-actions-btn {
  border-color: #e50914;
  background: #fff0f1;
  color: #e50914;
}
.row-actions-menu {
  display: none;
  position: fixed;
  min-width: 168px;
  z-index: 4000;
  background: #fff;
  border: 1px solid #f0c7ca;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.12);
  padding: 6px;
}
.row-actions.open .row-actions-menu {
  display: block;
}
.row-actions-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #171717;
  cursor: pointer;
}
.row-actions-menu button:hover {
  background: #fff0f1;
}
.row-actions-menu button.danger {
  color: #e50914;
}
.row-actions-menu button.danger:hover {
  background: rgba(229, 9, 20, 0.1);
}

.kpi-card.kpi-positive:hover,
.kpi-card.kpi-positive:active,
.kpi-card.kpi-positive.active-kpi-filter {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}
.kpi-card.kpi-positive:hover .kpi-label,
.kpi-card.kpi-positive:hover .kpi-value,
.kpi-card.kpi-positive:hover .kpi-sub,
.kpi-card.kpi-positive:hover .kpi-trend,
.kpi-card.kpi-positive:active .kpi-label,
.kpi-card.kpi-positive:active .kpi-value,
.kpi-card.kpi-positive:active .kpi-sub,
.kpi-card.kpi-positive:active .kpi-trend,
.kpi-card.kpi-positive.active-kpi-filter .kpi-label,
.kpi-card.kpi-positive.active-kpi-filter .kpi-value,
.kpi-card.kpi-positive.active-kpi-filter .kpi-sub,
.kpi-card.kpi-positive.active-kpi-filter .kpi-trend,
.kpi-card.kpi-positive:hover .kpi-trend.up,
.kpi-card.kpi-positive:hover .kpi-trend.down,
.kpi-card.kpi-positive:active .kpi-trend.up,
.kpi-card.kpi-positive:active .kpi-trend.down,
.kpi-card.kpi-positive.active-kpi-filter .kpi-trend.up,
.kpi-card.kpi-positive.active-kpi-filter .kpi-trend.down {
  color: #166534 !important;
}
.kpi-card.kpi-positive.active-kpi-filter {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28) !important;
}
.kpi-card.kpi-positive.active-kpi-filter::after {
  color: #166534;
  background: rgba(34, 197, 94, 0.15);
  border-color: #86efac;
}

.kpi-card.kpi-card-present,
.kpi-card.kpi-card-present:hover,
#userKpiPresent {
  background: #e8f8ee !important;
  border-color: #86d9a4 !important;
}
.kpi-card.kpi-card-present.active-kpi-filter,
#userKpiPresent.active-kpi-filter {
  background: #d9f4e3 !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22) !important;
}

.emp-docs-hint {
  font-size: 11px;
  color: #666;
  margin: 4px 0 6px;
}
.emp-docs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.emp-doc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #f0c7ca;
  border-radius: 8px;
  background: #fffafa;
  font-size: 12px;
  font-weight: 600;
  color: #171717;
}
.emp-doc-row a {
  color: #171717;
  text-decoration: none;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emp-doc-row a:hover {
  color: #e50914;
}
.emp-doc-size {
  color: #666;
  font-weight: 500;
  font-size: 11px;
}
.emp-doc-row button {
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 700;
  color: #e50914;
  padding: 0 4px;
}

body.public-site {
  display: block;
  background: #ffffff;
  color: #171717;
  overflow-x: hidden;
  overflow-y: auto;
  --public-sticky-top: 56px;
}
body.public-site.c24-filters-open {
  overflow: hidden;
}
.public-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  min-width: 0;
  padding: 10px 28px;
  background: #ffffff;
  border-bottom: 1px solid #f0c7ca;
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: #171717;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.public-top .btn { flex-shrink: 0; }
.public-brand > span { min-width: 0; overflow: hidden; }
.public-brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.public-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 56px;
}
.public-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.public-hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: #171717;
}
.public-hero p {
  margin-top: 6px;
  color: #666;
  font-size: 14px;
}
a.c24-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.c24-mweb-chips,
.c24-mweb-backdrop,
.c24-mweb-bottombar,
.c24-mweb-catnav,
.c24-mweb-sheet-foot,
.c24-mweb-close,
.c24-mweb-handle {
  display: none;
}
.c24-mweb-sheet-split {
  display: contents;
}
@media (max-width: 960px) {
  .public-top,
  .public-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .public-top { gap: 8px; }
  .public-brand { font-size: 13px; }
  .public-hero h1 {
    font-size: 22px;
  }
  body.public-site {
    --public-sticky-top: 56px;
  }
  body.public-site .public-wrap {
    padding-bottom: 28px;
  }
  body.public-site .public-hero {
    margin-bottom: 10px;
    align-items: stretch;
  }
  body.public-site .public-hero .c24-top-actions {
    width: 100% !important;
    justify-content: stretch !important;
  }
  body.public-site .public-hero .c24-top-actions .input-control {
    max-width: none !important;
    width: 100%;
  }
  body.public-site .cars24-layout {
    grid-template-columns: 1fr;
  }
  body.public-site .c24-mobile-filter-trigger {
    display: none !important;
  }
  body.public-site .c24-desktop-clear {
    display: none;
  }
  body.public-site .c24-mweb-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    position: sticky;
    top: var(--public-sticky-top);
    z-index: 36;
    background: #fff;
    margin: 0 -16px 12px;
    padding: 6px 20px 10px 16px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }
  body.public-site .c24-mweb-chips::-webkit-scrollbar {
    display: none;
  }
  body.public-site .c24-mweb-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    background: #fff;
    color: #171717;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }
  body.public-site .c24-mweb-chip:focus-visible,
  body.public-site .c24-mweb-catnav button:focus-visible,
  body.public-site .c24-mweb-close:focus-visible,
  body.public-site .c24-mweb-clear:focus-visible,
  body.public-site .c24-mweb-apply:focus-visible,
  body.public-site .c24-brand-chip:focus-visible,
  body.public-site .c24-body-card:focus-visible {
    outline: 2px solid #e50914;
    outline-offset: 2px;
  }
  body.public-site .c24-mweb-chip-all {
    font-weight: 800;
    border-color: #262626;
    padding-left: 10px;
  }
  body.public-site .c24-mweb-filter-ico {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M1.5 2h13l-5 6.2V13l-3 1.5V8.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M1.5 2h13l-5 6.2V13l-3 1.5V8.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body.public-site .c24-mweb-chip.has-filters {
    border-color: #e50914;
    background: #fff5f5;
    color: #e50914;
  }
  body.public-site .c24-mweb-chip .cars24-filter-count-badge {
    margin-left: 2px;
  }
  body.public-site .c24-mweb-chev {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 1px;
  }
  body.public-site .c24-mweb-bottombar {
    display: none !important;
  }
  body.public-site .c24-mweb-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    z-index: 10040;
  }
  body.public-site .c24-mweb-backdrop[hidden] {
    display: none;
  }
  body.public-site aside.cars24-sidebar,
  body.public-site .cars24-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--public-sticky-top);
    width: 100%;
    height: calc(100dvh - var(--public-sticky-top));
    max-height: calc(100dvh - var(--public-sticky-top));
    z-index: 10050;
    border-radius: 16px 16px 0 0;
    border: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    transition: transform 0.28s ease;
    visibility: visible;
    pointer-events: none;
    overflow: hidden;
  }
  body.public-site .cars24-sidebar.mobile-open {
    transform: translateY(0);
    pointer-events: auto;
  }
  body.public-site .c24-mweb-handle {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d4d4d4;
    margin: 8px auto 0;
    flex-shrink: 0;
  }
  body.public-site .cars24-sidebar-header {
    padding: 4px 48px 10px;
    gap: 8px;
    position: relative;
    justify-content: center;
    min-height: 44px;
  }
  body.public-site .c24-mweb-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #171717;
    cursor: pointer;
    flex-shrink: 0;
    position: absolute;
    left: 4px;
    top: 0;
  }
  body.public-site .c24-mweb-sheet-split {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
  }
  body.public-site .c24-mweb-catnav {
    display: flex;
    flex-direction: column;
    width: 112px;
    flex-shrink: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f5f5f5;
    border-right: 1px solid #eee;
  }
  body.public-site .c24-mweb-catnav button {
    appearance: none;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    text-align: left;
    padding: 12px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #525252;
    cursor: pointer;
    white-space: normal;
  }
  body.public-site .c24-mweb-catnav button.is-current {
    background: #fff;
    border-left-color: #e50914;
    color: #171717;
    font-weight: 800;
  }
  body.public-site .c24-mweb-catnav button.has-filters {
    color: #e50914;
  }
  body.public-site .cars24-sidebar .cars24-sidebar-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: auto;
    padding: 4px 12px 20px;
  }
  body.public-site .cars24-sidebar .c24-accordion-btn {
    display: none;
  }
  body.public-site .cars24-sidebar .c24-accordion-item {
    border: 0;
    display: none;
  }
  body.public-site .cars24-sidebar .c24-accordion-item.c24-pane-active {
    display: block;
  }
  body.public-site .cars24-sidebar .c24-accordion-item.c24-pane-active .c24-accordion-content {
    display: block;
    padding: 8px 4px 16px;
  }
  body.public-site .cars24-sidebar .c24-brands-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: none;
    overflow: visible;
  }
  body.public-site .cars24-sidebar .c24-check-list {
    max-height: none;
    overflow: visible;
    gap: 2px;
  }
  body.public-site .cars24-sidebar .c24-check-item {
    min-height: 44px;
    padding: 10px 8px;
  }
  body.public-site .c24-mweb-sheet-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    background: #fff;
  }
  body.public-site .c24-mweb-clear {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #e50914;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 0 4px;
    height: 46px;
    display: inline-flex;
    align-items: center;
  }
  body.public-site .c24-mweb-apply {
    flex: 1 1 auto;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #e50914;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }
  body.public-site.c24-filters-open .c24-mweb-bottombar {
    display: none;
  }
}
@media (min-width: 961px) {
  body.public-site .cars24-sidebar {
    top: 72px;
    height: calc(100dvh - 88px);
    max-height: calc(100dvh - 88px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  }
  body.public-site .cars24-sidebar-body {
    scrollbar-gutter: auto;
  }
}
@media (min-width: 961px) and (max-width: 1280px) {
  body.public-site .cars24-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
body.public-site button.c24-brand-chip,
body.public-site button.c24-body-card {
  font: inherit;
  text-align: left;
}
body.public-site .c24-brands-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.pub-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}
.pub-doc-card {
  border: 1px solid #f0c7ca;
  background: #fff;
  border-radius: 12px;
  padding: 0 0 10px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}
.pub-doc-card:hover {
  border-color: #e50914;
}
.pub-doc-preview {
  height: 110px;
  background: #f6f6f6;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-doc-preview img,
.pub-doc-paper {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.12);
}
.pub-doc-paper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: #ececec;
}
.pub-doc-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(23, 23, 23, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}
.pub-doc-card {
  position: relative;
}
.pub-doc-name {
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 10px 0;
  color: #171717;
}
.pub-doc-meta {
  font-size: 11px;
  color: #666;
  padding: 2px 10px 0;
}

.cv-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #e50914;
}
.cv-spec-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cv-features .c24-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  color: #171717;
  background: #fff7f7;
  border: 1px solid #f0c7ca;
}
.cv-features .c24-feature-badge .cv-ico {
  width: 15px;
  height: 15px;
}
.cv-features .c24-feature-badge .cv-feat-emoji {
  font-size: 15px;
  line-height: 1;
}
.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark-lg {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.brand-mark img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
}
.brand-mark-letter {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.brand-mark-lg .brand-mark-letter {
  font-size: 16px;
}

.login-card,
.login-form {
  max-width: 100%;
  min-width: 0;
}
.cv-title-row { min-width: 0; }
.cv-title-row h2 { overflow-wrap: anywhere; word-break: break-word; }
.cv-page { max-width: 100%; min-width: 0; overflow-x: hidden; }
.public-wrap { min-width: 0; max-width: 100%; }
.modal-footer .btn { min-height: 44px; }
@media (max-width: 960px) {
  .public-top .btn { padding: 8px 12px; font-size: 12px; }
  .c24-price-primary { overflow-wrap: anywhere; }
  .cars24-sidebar-header { gap: 8px; }
  body:not(.public-site) .cars24-sidebar.mobile-open {
    z-index: 10050;
  }
  .controls-row .input-control,
  .controls-row .select-control,
  .controls-row .sort-wrap { width: 100% !important; min-width: 0; max-width: 100%; }
  .controls-row .sort-wrap .select-control { width: 100% !important; }
}

.ae-rec-player {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  max-width: 280px;
  width: 100%;
}
.ae-rec-player.ae-rec-player-wide {
  max-width: none;
}
.ae-rec-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ae-rec-play {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-card);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0;
}
.ae-rec-play:hover {
  border-color: var(--line-light);
  background: var(--panel-card-hover);
}
.ae-rec-seek {
  flex: 1;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ae-rec-seek::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 6px;
  background: var(--line-light);
}
.ae-rec-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
  cursor: grab;
}
.ae-rec-seek::-moz-range-track {
  height: 10px;
  border-radius: 6px;
  background: var(--line-light);
  border: none;
}
.ae-rec-seek::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
  cursor: grab;
}
.ae-rec-times {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  padding-left: 36px;
  letter-spacing: 0.02em;
}

.page-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 8px 28px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  z-index: 14;
}
.ae-pager-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ae-pager-size .select-control {
  width: auto;
  min-width: 72px;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-card) !important;
  color: var(--text) !important;
  border: 1px solid var(--line);
  accent-color: var(--red);
  color-scheme: light;
}
.ae-pager-size .select-control:hover {
  border-color: var(--line-light);
}
.ae-pager-size .select-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}
.ae-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ae-pager-footer,
.ae-pager.ae-pager-footer {
  margin: 0;
  padding: 0;
  border: none;
}
.ae-pager-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}
.ae-pager-btn {
  -webkit-appearance: none;
  appearance: none;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-card);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.ae-pager-btn:hover:not(:disabled) {
  background: var(--panel-card-hover);
  border-color: var(--red);
  color: var(--text);
}
.ae-pager-btn:focus,
.ae-pager-btn:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}
.ae-pager-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--red-tint);
}
.ae-pager-btn.is-active:hover:not(:disabled) {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--text);
}
.ae-pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
  color: var(--muted);
}

