:root {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --panel-2: #f8f9fc;
  --panel-3: #eef1f6;
  --ink: #202431;
  --muted: #6d7482;
  --muted-2: #9aa1ad;
  --line: #e1e5ec;
  --line-dark: rgba(255, 255, 255, 0.12);
  --dark: #121421;
  --dark-2: #191b2b;
  --dark-3: #202335;
  --red: #df3d31;
  --red-dark: #b92c24;
  --yellow: #f2c300;
  --green: #047857;
  --green-soft: #dcfce7;
  --blue: #37536d;
  --blue-soft: #eaf1f8;
  --purple: #7c5cff;
  --shadow: 0 16px 40px rgba(18, 20, 33, 0.09);
  --shadow-soft: 0 8px 20px rgba(18, 20, 33, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 248px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    opacity 0.16s ease;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 18px 14px;
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  padding: 4px 8px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand small {
  display: block;
  margin-top: 4px;
  color: #d4d6dd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.mobile-collapse {
  border: 0;
}

.mobile-collapse summary {
  display: none;
  list-style: none;
}

.mobile-collapse summary::-webkit-details-marker {
  display: none;
}

.sidebar-nav,
.sidebar-tools {
  display: grid;
  gap: 7px;
}

.sidebar-nav {
  margin-bottom: 18px;
}

.sidebar-tab,
.sidebar-tools .tool-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.sidebar-tab:hover,
.sidebar-tools .tool-toggle:hover {
  color: #ffffff;
  border-color: rgba(242, 195, 0, 0.85);
  background: rgba(242, 195, 0, 0.1);
  transform: translateY(-1px);
}

.sidebar-tab.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  font-weight: 950;
  box-shadow: inset 4px 0 0 var(--yellow);
}

.count-badge,
.count-badge-orange {
  min-width: 27px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.count-badge {
  background: rgba(4, 120, 87, 0.18);
  color: #9af1cd;
  border: 1px solid rgba(154, 241, 205, 0.2);
}

.count-badge-orange {
  background: rgba(242, 195, 0, 0.12);
  color: #ffd568;
  border: 1px solid rgba(255, 213, 104, 0.22);
}

.biz-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.admin-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px 24px;
  background:
    linear-gradient(110deg, rgba(18, 20, 33, 0.98), rgba(25, 27, 43, 0.94)),
    radial-gradient(circle at 85% 15%, rgba(223, 61, 49, 0.28), transparent 34%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-left {
  min-width: 0;
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar-title strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.topbar-title span {
  color: #cfd2dc;
  font-size: 12px;
}

.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-topbar .monthly-report-trigger.active {
  background: rgba(242, 195, 0, 0.18);
  border-color: var(--yellow);
  color: #ffffff;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(242, 195, 0, 0.12);
}

.admin-topbar .topbar-control,
.admin-topbar .topbar-btn,
.admin-topbar .logout-btn,
.admin-topbar .topbar-clock {
  min-height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.admin-topbar .topbar-control,
.admin-topbar .topbar-btn,
.admin-topbar .logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
}

.admin-topbar .topbar-control:hover,
.admin-topbar .topbar-btn:hover,
.admin-topbar .logout-btn:hover {
  background: rgba(255, 255, 255, 0.115);
  border-color: rgba(242, 195, 0, 0.65);
  transform: translateY(-1px);
}

.admin-topbar .logout-btn:hover {
  border-color: rgba(239, 68, 68, 0.75);
}

.backup-menu-btn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.backup-menu-btn:hover {
  border-color: var(--yellow);
  background: var(--panel-3);
}

.admin-topbar .theme-select {
  width: auto;
  min-width: 168px;
  padding: 0 42px 0 16px;
}

.admin-topbar .logout-btn {
  min-width: 126px;
}

.admin-topbar .topbar-clock {
  min-width: 184px;
  padding: 8px 16px;
  text-align: center;
}

.admin-topbar .dc-time {
  font-size: 17px;
  line-height: 1;
}

.admin-topbar .dc-date {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 850;
}

.primary,
.secondary,
.tab,
.tool-toggle,
.header-right button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.primary {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 9px 20px rgba(223, 61, 49, 0.2);
  transform: translateY(-1px);
}

.secondary {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.secondary:hover {
  border-color: var(--yellow);
  transform: translateY(-1px);
}

.topbar-btn,
.admin-topbar .secondary,
.admin-topbar .header-right button {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.topbar-btn:hover,
.admin-topbar .secondary:hover,
.admin-topbar .header-right button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(242, 195, 0, 0.78);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-only-btn,
.toolbar-icon-btn {
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-clock,
#topbarClock {
  position: static !important;
  transform: none !important;
  inset: auto !important;
  min-width: 118px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: right;
}

.dc-time {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.dc-date {
  margin-top: 2px;
  color: #d7d8df;
  font-size: 11px;
  line-height: 1.1;
}

.docs-collapse {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.document-bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
  padding: 8px 14px;
  background: #ffffff;
}

.doc-link {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.doc-link:hover {
  border-color: rgba(223, 61, 49, 0.5);
  color: var(--red);
  background: #fff7f7;
  transform: translateY(-1px);
}

.doc-link img {
  width: 22px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
}

main {
  width: 100%;
  padding: 16px 20px 44px;
}

.card,
.summary-panel,
.command-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.command-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(210px, 0.55fr) minmax(
      210px,
      0.55fr
    ) minmax(260px, 0.75fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.command-card {
  min-height: 74px;
  padding: 12px;
}

.vin-card {
  min-height: 74px;
}

.vin-card label,
.note-editor-card label,
label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.65px;
}

.vin-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  gap: 8px;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
}

/* Native desktop select arrows sit inside the control. Keep comfortable
   horizontal and vertical space without forcing the visible value to ellipsize. */
select {
  box-sizing: border-box;
  padding: 8px 34px 8px 10px;
  line-height: 1.25;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(223, 61, 49, 0.12);
}

textarea {
  resize: vertical;
}

.status,
.help {
  color: var(--muted);
  font-size: 13px;
}

#decodedContainer {
  margin-top: 8px;
}

.weather-compact,
.note-compact {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.weather-compact:hover,
.note-compact:hover {
  border-color: rgba(223, 61, 49, 0.42);
  background: #fffdfc;
  transform: translateY(-1px);
}

.weather-compact span:last-child,
.note-compact span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.weather-compact strong,
.note-compact strong {
  font-size: 14px;
  font-weight: 900;
}

.weather-compact small,
.note-compact small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue-soft);
  font-size: 18px;
}

.note-dot {
  width: 34px;
  height: 34px;
  display: inline-block;
  flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff9c4, #f1d15e);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.task-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.task-mini {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  padding: 9px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.task-mini span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-mini strong {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.task-mini label {
  margin: 0;
}

.task-mini input {
  width: auto;
  min-height: auto;
}

.weather-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.weather-panel[hidden] {
  display: none !important;
}

.weather-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--dark);
  color: #ffffff;
}

.dashboard-weather {
  padding: 12px;
  background: var(--panel);
  color: var(--ink);
}

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

.dashboard-weather .days {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

#updated {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.inventory-card {
  width: 100%;
  padding: 14px;
  overflow: hidden;
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.inventory-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.1;
}

.inventory-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.inventory-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.search-wrap {
  width: min(520px, 42vw);
}

#inventorySearch {
  min-height: 38px;
  border-radius: 999px;
  padding-left: 15px;
  background: var(--panel-2);
}

#customerViewToggleBtn {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--line);
}

#activeContainer,
#soldContainer,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow: auto;
  max-height: 650px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
  font-size: 13px;
}

.sleek-inventory-table {
  table-layout: fixed;
}

.col-year {
  width: 64px;
}

.col-make {
  width: 96px;
}

.col-model {
  width: 148px;
}

.col-miles {
  width: 112px;
}

.col-money {
  width: 120px;
}

.col-expenses {
  width: 94px;
}

.col-date {
  width: 126px;
}

.col-vin {
  width: 170px;
}

.col-profit,
.col-ppe {
  width: 95px;
}

.col-actions {
  width: 170px;
}

#inventoryTableSold .col-actions {
  width: 200px;
}

#inventoryTableActive .col-actions {
  width: 120px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 9px;
  background: var(--dark);
  color: #ffffff;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--yellow);
}

tbody td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
  vertical-align: middle;
}

tbody tr.data-row:hover td {
  background: #fffdf2;
}

tbody tr.data-row td:first-child {
  font-weight: 850;
}

tbody tr.expenses-row > td,
tbody tr.sale-row > td {
  padding: 0;
  background: #ffffff;
}

.nowrap {
  white-space: nowrap;
}

.model-with-code {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.model-text {
  min-width: 0;
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.make-code-pill {
  flex: 0 0 auto;
}

.make-code-input {
  width: 46px;
  min-height: 28px;
  padding: 4px 5px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.num-input,
.date-input {
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
}

.price {
  color: var(--purple);
}

.purchase-input {
  color: var(--ink);
}

.vin-cell {
  max-width: 160px;
  overflow: hidden;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money {
  font-variant-numeric: tabular-nums;
}

[data-margin] {
  font-weight: 850;
}

.inventory-actions,
.docs-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.inventory-actions button,
.docs-actions button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 9px;
  font-size: 13px;
}

.inventory-actions button span,
.docs-actions button span {
  display: none;
}

.inventory-actions .wide-action,
.docs-actions .wide-action {
  width: auto;
  min-width: 34px;
  padding: 0 10px;
}

.inventory-actions .wide-action span,
.docs-actions .wide-action span {
  display: inline;
}

.inventory-actions i,
.docs-actions i,
.toolbar-icon-btn i,
.icon-only-btn i,
.icon-btn i {
  pointer-events: none;
}

.docs-cell {
  white-space: nowrap;
}

.docs-actions {
  position: relative;
}

.docs-list-btn .docs-count {
  display: inline;
  margin-left: 3px;
  font-size: 11px;
  font-weight: 900;
}

.docs-upload-btn,
.docs-list-btn {
  position: relative;
}

.docs-list {
  position: absolute;
  z-index: 5;
  min-width: 220px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--dark);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.docs-list[hidden] {
  display: none !important;
}

.docs-list a {
  color: #93c5fd;
}

.sale-row {
  display: none !important;
}

.expenses-panel {
  display: none;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}

.expenses-panel[aria-hidden="false"] {
  display: block;
}

.expenses-grid,
.exp-card-fields {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.exp-item {
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: none;
}

.exp-label,
.sale-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.exp-items-heading {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.exp-items-heading .exp-label {
  margin: 0;
}

.exp-items-heading .secondary {
  min-height: 32px;
  padding: 6px 12px;
}

.col-12 {
  grid-column: span 12;
}

.col-9 {
  grid-column: span 9;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.col-2 {
  grid-column: span 2;
}

.sold-toolbar {
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.sold-toolbar-main,
.sold-toolbar-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.sold-toolbar-filters select {
  max-width: 170px;
}

.sold-toolbar-filters input {
  max-width: 220px;
}

.summary-panel {
  padding: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: #ffffff;
}

.summary-title {
  font-size: 18px;
  font-weight: 900;
}

.summary-value {
  font-size: 23px;
  font-weight: 900;
}

.green-amount {
  color: #57d68d;
}

.orange-text,
.sold-word {
  color: var(--yellow);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.summary-panel .actions {
  padding: 2px 0 10px;
}

.summary-panel .actions input,
.summary-panel .actions select {
  max-width: 260px;
}

#vehExpList,
#bizExpList,
#othExpList,
#totExpList,
#itmProfList,
#totProfList {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  overflow: hidden;
}

.pill,
#bizMonthDoneWrap {
  min-height: 34px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 13px;
}

.pill input,
#bizMonthDoneWrap input {
  width: auto;
  min-height: auto;
}

#bizMonthDoneWrap label {
  margin: 0;
  font-size: 11px;
}

.bp-lines {
  line-height: 1.15;
}

.bp-sub {
  color: var(--muted);
  font-size: 12px;
}

.bp-days {
  margin-left: 4px;
  color: var(--red);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 20, 33, 0.62);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.highlight-color-trigger {
  position: relative;
}

.highlight-color-swatch {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: var(--kw-hl-bg, #facc15);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.highlight-color-modal {
  width: min(560px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.highlight-color-modal > header,
.highlight-color-modal > footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}

.highlight-color-modal > header {
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.highlight-color-modal > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.highlight-color-modal h2,
.highlight-color-modal p {
  margin: 0;
}

.highlight-color-modal header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.highlight-color-modal-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.highlight-color-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 900;
}

.highlight-color-picker input {
  width: 76px;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  cursor: pointer;
}

.highlight-color-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.highlight-color-presets button {
  min-width: 0;
  min-height: 56px;
  display: grid;
  place-items: end center;
  padding: 8px 4px;
  border: 2px solid transparent;
  border-radius: 11px;
  color: #0b1220;
  background:
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0))
      var(--preset-color);
  font-size: 11px;
  font-weight: 950;
}

.highlight-color-presets button.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--preset-color);
}

.highlight-color-preview {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.highlight-color-preview mark {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--kw-hl-bg, #facc15);
  color: var(--kw-hl-fg, #0b1220);
}

@media (max-width: 620px) {
  .highlight-color-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .highlight-color-modal > footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-color-modal > footer .primary {
    grid-column: 1 / -1;
  }
}

.vehicle-hook-input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 5px;
}

.vehicle-hook-help {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.vehicle-hook-optional {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-description-preview-hook {
  padding: 9px 10px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  background: rgba(242, 195, 0, 0.09);
  color: var(--ink);
  font-weight: 900;
}

.admin-password-modal {
  width: min(520px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.admin-password-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.admin-password-modal h2 {
  margin: 0 0 5px;
}

.admin-password-modal header p {
  margin: 0;
  color: var(--muted);
}

.admin-password-modal form {
  padding: 24px;
}

.admin-password-modal label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 800;
}

.admin-password-modal input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
}

.admin-password-modal input:focus {
  outline: 3px solid rgba(47, 125, 255, 0.25);
  border-color: #2f7dff;
}

.admin-password-hint,
.admin-password-message {
  min-height: 22px;
  margin: 0 0 14px;
  color: var(--muted);
}

.admin-password-message {
  color: var(--red);
  font-weight: 800;
}

.admin-password-message.success {
  color: var(--green);
}

.admin-password-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-password-actions button {
  min-height: 46px;
}

@media (max-width: 560px) {
  .admin-password-modal > header,
  .admin-password-modal form {
    padding: 18px;
  }

  .admin-password-actions {
    flex-direction: column-reverse;
  }

  .admin-password-actions button {
    width: 100%;
  }
}

.backup-import-modal {
  width: min(880px, 100%);
  max-height: min(820px, 94vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.backup-import-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(14px);
}

.backup-import-head h2 {
  margin: 3px 0 5px;
  font-size: clamp(22px, 3vw, 30px);
}

.backup-import-head p,
.backup-import-progress-text {
  margin: 0;
  color: var(--muted);
}

.backup-import-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.backup-import-progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
}

.backup-import-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #f59e0b);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.42);
  transition: width 160ms ease;
}

.backup-import-progress-text {
  min-height: 20px;
  font-weight: 700;
}

.backup-import-summary {
  display: grid;
  gap: 16px;
}

.backup-import-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.backup-import-stats article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.backup-import-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.backup-import-stats strong {
  font-size: 25px;
  line-height: 1;
}

.backup-import-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.backup-import-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: auto;
}

.backup-import-table th,
.backup-import-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.backup-import-table th:first-child,
.backup-import-table td:first-child {
  text-align: left;
}

.backup-import-table thead th {
  background: var(--dark);
  color: #ffffff;
}

.backup-import-table tbody th,
.backup-import-table tbody td {
  background: var(--panel-2);
  color: var(--ink);
}

.backup-import-table tbody tr:nth-child(even) th,
.backup-import-table tbody tr:nth-child(even) td {
  background: var(--panel);
}

.backup-import-table tbody tr:last-child th,
.backup-import-table tbody tr:last-child td {
  border-bottom: 0;
}

.backup-import-warnings {
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
}

.backup-import-warnings ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.backup-import-replace-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, 0.58);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--ink);
  cursor: pointer;
}

.backup-import-replace-option[hidden] {
  display: none;
}

.backup-import-replace-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.backup-import-replace-option span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.backup-import-replace-option strong {
  font-size: 13px;
}

.backup-import-replace-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.backup-import-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.backup-import-safety-note i {
  margin-top: 2px;
  color: #22c55e;
}

.backup-import-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(14px);
}

.backup-import-actions button {
  min-width: 140px;
}

.sale-modal,
.notes-modal,
.review-manager-modal {
  width: min(860px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.sale-modal-head,
.notes-modal-head,
.review-manager-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--dark);
  color: #ffffff;
  border-bottom: 3px solid var(--yellow);
}

.sale-modal-head h2,
.notes-modal-head h2,
.review-manager-head h2 {
  margin: 0;
  font-size: 22px;
}

.sale-modal-head p,
.notes-modal-head p,
.review-manager-head p {
  margin: 4px 0 0;
  color: #d7d8df;
  font-size: 13px;
}

#saleModalBody {
  padding: 18px;
}

.sale-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.sale-grid .col-12 {
  grid-column: span 12;
}

.sale-grid .col-6 {
  grid-column: span 6;
}

.sale-grid .col-4 {
  grid-column: span 4;
}

.sale-grid .col-3 {
  grid-column: span 3;
}

.sale-modal-error {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #d64c4c;
  border-radius: 8px;
  background: #fff0f0;
  color: #8f1717;
  font-weight: 800;
}

.sale-modal-error[hidden] {
  display: none !important;
}

.sale-advanced {
  grid-column: 1 / -1;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  overflow: hidden;
}

.sale-advanced summary {
  padding: 12px;
  cursor: pointer;
  font-weight: 900;
  color: var(--blue);
}

.sale-advanced-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  padding: 0 12px 12px;
}

.sale-modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.notes-modal {
  width: min(980px, 100%);
}

.notes-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  padding: 18px;
}

.note-editor-card,
.dashboard-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  overflow: hidden;
}

.note-editor-card {
  padding: 14px;
}

#sn-text {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  resize: vertical;
}

.note-color-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.sn-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
}

.swatch {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff9c4;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

#sn-bg,
#sn-color {
  width: 38px;
  min-height: 34px;
  padding: 2px;
}

.dashboard-note {
  min-height: 260px;
  padding: 14px;
  background: #fff9c4;
  color: #111111;
}

.pinned-note-title {
  margin-bottom: 10px;
  color: rgba(17, 17, 17, 0.65);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pinned-note-preview {
  white-space: pre-wrap;
  line-height: 1.45;
}

.mobile-actionbar,
#exportPlaceholders,
#companySuggestions,
#tpGridOverlay {
  display: none !important;
}

#calcWidget[hidden] {
  display: none !important;
}

footer {
  margin-top: auto;
  padding: 16px 24px;
  background: var(--dark);
  color: #d7d8df;
  font-size: 13px;
}

.fa-solid,
.fa-regular {
  line-height: 1;
}

.theme-select {
  width: auto;
  min-width: 132px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.theme-select option {
  color: #111111;
}

body[data-theme="black"] {
  --bg: #05070d;
  --panel: #0d111b;
  --panel-2: #111827;
  --panel-3: #182033;
  --ink: #f3f4f6;
  --muted: #aeb7c7;
  --muted-2: #7d8798;
  --line: rgba(255, 255, 255, 0.12);
  --dark: #02040a;
  --dark-2: #070a12;
  --dark-3: #111827;
  --green: #57d68d;
  --blue: #7da4c7;
  --blue-soft: rgba(125, 164, 199, 0.16);
  --purple: #a78bfa;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.28);
}

body[data-theme="classic"] {
  --bg: #0f1524;
  --panel: #111827;
  --panel-2: #0b1220;
  --panel-3: #172033;
  --ink: #e7edf7;
  --muted: #9aa6ba;
  --muted-2: #79859a;
  --line: rgba(255, 255, 255, 0.13);
  --dark: #111827;
  --dark-2: #0b1220;
  --dark-3: #1b263a;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --yellow: #fbbf24;
  --green: #62d394;
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.15);
  --purple: #a78bfa;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.25);
}

body[data-theme="black"],
body[data-theme="classic"] {
  color: var(--ink);
  background: var(--bg);
}

body[data-theme="black"] input,
body[data-theme="black"] select,
body[data-theme="black"] textarea,
body[data-theme="classic"] input,
body[data-theme="classic"] select,
body[data-theme="classic"] textarea {
  background: var(--panel-2);
  color: var(--ink);
  border-color: var(--line);
}

body[data-theme="black"] input::placeholder,
body[data-theme="black"] textarea::placeholder,
body[data-theme="classic"] input::placeholder,
body[data-theme="classic"] textarea::placeholder {
  color: var(--muted-2);
}

body[data-theme="black"] .card,
body[data-theme="black"] .summary-panel,
body[data-theme="black"] .command-card,
body[data-theme="classic"] .card,
body[data-theme="classic"] .summary-panel,
body[data-theme="classic"] .command-card {
  background: var(--panel);
  border-color: var(--line);
}

body[data-theme="black"] .theme-select,
body[data-theme="classic"] .theme-select {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-theme="black"] input[type="checkbox"],
body[data-theme="classic"] input[type="checkbox"] {
  accent-color: var(--yellow);
}

body[data-theme="black"] .docs-collapse,
body[data-theme="classic"] .docs-collapse {
  background: var(--bg);
  border-color: var(--line);
}

body[data-theme="black"] .document-bar,
body[data-theme="classic"] .document-bar {
  background: var(--bg);
  border-color: var(--line);
}

body[data-theme="black"] .doc-link,
body[data-theme="classic"] .doc-link {
  background: var(--dark-3);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-theme="black"] .doc-link:hover,
body[data-theme="classic"] .doc-link:hover {
  background: var(--panel-3);
  color: var(--yellow);
  border-color: var(--yellow);
}

body[data-theme="black"] .doc-link img,
body[data-theme="classic"] .doc-link img {
  background: transparent;
}

body.admin-loading {
  overflow: hidden;
}

body.admin-loading .admin-shell {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.admin-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(223, 61, 49, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, #05070d, #070913 55%, #05070d);
}

.admin-loading-card {
  width: min(440px, 100%);
  min-height: 752px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 42px 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #070a12, #0b0f18);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.admin-loading-logo {
  width: min(334px, 100%);
  max-height: 165px;
  display: block;
  object-fit: contain;
  background: #070a12;
  mix-blend-mode: lighten;
}

.admin-loading-spinner {
  width: 46px;
  height: 46px;
  margin-top: 22px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f2c300;
  border-radius: 50%;
  animation: adminSpin 0.8s linear infinite;
}

.admin-loading-card strong {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.admin-loading-card span {
  color: #d7d8df;
  font-size: 13px;
}

.admin-loading-progress {
  width: min(280px, 100%);
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
}

.admin-loading-progress > span {
  width: 0;
  height: 100%;
  max-width: none;
  display: block;
  font-size: 0;
  line-height: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #145dff, #72a7ff);
  box-shadow: 0 0 14px rgba(20, 93, 255, 0.55);
  transition: none;
}

.admin-loading-card .admin-loading-percent {
  margin-top: -8px;
  color: #72a7ff;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
}

.admin-loading-card .admin-loading-status {
  min-height: 18px;
}

.admin-loading-stages {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.admin-loading-stages li {
  --stage-progress: 0%;
  min-width: 0;
  display: grid;
  grid-template-rows: 22px auto auto;
  place-items: center;
  gap: 2px;
  padding: 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background:
    linear-gradient(
      90deg,
      rgba(74, 133, 255, 0.13) 0 var(--stage-progress),
      transparent var(--stage-progress) 100%
    ),
    rgba(255, 255, 255, 0.035);
  color: #737b8d;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-loading-stages li i {
  font-size: 14px;
}

.admin-loading-stages li span {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-loading-stages li strong {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-loading-stages li.is-active {
  border-color: #72a7ff;
  color: #8bb4ff;
  transform: translateY(-2px);
}

.admin-loading-stages li.is-complete {
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.admin-loading-stages li.is-complete i::before {
  content: "\f00c";
}

.sidebar-logo {
  width: 100%;
  max-width: 190px;
  max-height: 78px;
  display: block;
  object-fit: contain;
  background: #121421;
  mix-blend-mode: lighten;
}

@keyframes adminSpin {
  to {
    transform: rotate(360deg);
  }
}

body[data-theme="black"] .sale-modal-actions,
body[data-theme="classic"] .sale-modal-actions {
  background: var(--panel);
  border-top-color: var(--line);
}

body[data-theme="black"] .sale-modal,
body[data-theme="classic"] .sale-modal {
  background: var(--panel);
  color: var(--ink);
}

#inventoryTableSold .col-actions {
  width: 132px !important;
}

#inventoryTableSold .sold-inventory-actions {
  gap: 6px !important;
  justify-content: center !important;
}

#inventoryTableSold .sold-inventory-actions button {
  width: 34px;
  min-width: 34px;
}

.admin-content {
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 16px 20px 20px;
}

.command-strip {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.inventory-card {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inventory-header {
  flex: 0 0 auto;
}

#activeContainer,
#soldContainer,
.summary-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

#activeContainer:not([style*="display: none"]),
#soldContainer:not([style*="display: none"]) {
  display: flex !important;
  flex-direction: column;
}

#soldContainer .sold-toolbar {
  flex: 0 0 auto;
}

#activeContainer > .table-scroll,
#soldContainer > .table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
}

.summary-panel:not([style*="display: none"]) {
  display: flex !important;
  flex-direction: column;
}

#vehExpList,
#bizExpList,
#othExpList,
#totExpList,
#itmProfList,
#totProfList {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.sidebar-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 8px 18px;
  text-align: center;
}

.sidebar-brand small {
  width: fit-content;
  margin-top: 0;
  padding: 5px 12px;
  border: 1px solid rgba(242, 195, 0, 0.45);
  border-radius: 999px;
  background: rgba(242, 195, 0, 0.1);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.2px;
}

.admin-topbar {
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.header-right {
  gap: 10px;
}

.admin-topbar .topbar-btn,
.admin-topbar .secondary,
.admin-topbar .theme-select,
#topbarClock {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-topbar .topbar-btn:hover,
.admin-topbar .secondary:hover,
.admin-topbar .theme-select:hover {
  background: rgba(242, 195, 0, 0.12);
  border-color: rgba(242, 195, 0, 0.72);
}

#topbarClock {
  min-width: 142px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.09);
}

.dc-time {
  font-size: 15px;
}

.dc-date {
  font-size: 11px;
}

.admin-topbar {
  min-height: 68px;
  padding: 12px 26px;
  background:
    radial-gradient(
      circle at 92% 20%,
      rgba(242, 195, 0, 0.12),
      transparent 28%
    ),
    linear-gradient(110deg, #070a12, #101827 58%, #0b1020);
  border-bottom: 1px solid rgba(242, 195, 0, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.topbar-left {
  display: flex;
  align-items: center;
  min-width: 220px;
}

.topbar-title::before {
  content: "";
  display: block;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.2px;
}

.topbar-title::after {
  content: "";
  display: block;
  margin-top: 4px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.header-right {
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-topbar .topbar-btn,
.admin-topbar .secondary,
.admin-topbar .theme-select {
  min-height: 42px;
  border-radius: 12px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.admin-topbar .topbar-btn:hover,
.admin-topbar .secondary:hover,
.admin-topbar .theme-select:hover {
  background: rgba(242, 195, 0, 0.13);
  border-color: rgba(242, 195, 0, 0.75);
}

.admin-topbar .logout-btn {
  background: rgba(223, 61, 49, 0.12);
  border-color: rgba(223, 61, 49, 0.35);
}

.admin-topbar .logout-btn:hover {
  background: rgba(223, 61, 49, 0.24);
  border-color: rgba(223, 61, 49, 0.7);
}

#topbarClock {
  min-width: 154px;
  min-height: 48px;
  display: grid;
  align-content: center;
  padding: 8px 14px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.045)
  );
  border: 1px solid rgba(242, 195, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dc-time {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.dc-date {
  color: #d7d8df;
  font-size: 11px;
  font-weight: 800;
}

body[data-theme="black"] .secondary,
body[data-theme="classic"] .secondary {
  background: #050814;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

body[data-theme="black"] .secondary:hover,
body[data-theme="classic"] .secondary:hover {
  background: #18233a;
  color: #ffffff;
  border-color: var(--yellow);
}

body[data-theme="black"] .summary-heading-actions .secondary,
body[data-theme="black"] .toolbar-icon-btn.secondary,
body[data-theme="black"] .payment-toolbar-actions .secondary,
body[data-theme="classic"] .summary-heading-actions .secondary,
body[data-theme="classic"] .toolbar-icon-btn.secondary,
body[data-theme="classic"] .payment-toolbar-actions .secondary {
  background: #050814;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

body[data-theme="black"] .summary-heading-actions .secondary:hover,
body[data-theme="black"] .toolbar-icon-btn.secondary:hover,
body[data-theme="black"] .payment-toolbar-actions .secondary:hover,
body[data-theme="classic"] .summary-heading-actions .secondary:hover,
body[data-theme="classic"] .toolbar-icon-btn.secondary:hover,
body[data-theme="classic"] .payment-toolbar-actions .secondary:hover {
  background: #18233a;
  color: #ffffff;
  border-color: var(--yellow);
}

.summary-panel > .summary-grid:not(.report-summary-grid),
.summary-panel > .panel-print-bar {
  display: none !important;
}

.summary-panel {
  padding: 16px;
}

.summary-panel > .actions {
  padding: 0 0 14px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

#vehExpList,
#bizExpList,
#othExpList,
#totExpList,
#itmProfList,
#totProfList,
#paymentsList {
  margin-top: 12px;
}

.vehicle-expense-actions,
.business-expense-actions,
.personal-expense-actions,
.total-expense-actions,
.itemized-profit-actions,
.total-profit-actions,
.payment-actions-row {
  align-items: center;
}

#vehExpList,
#bizExpList,
#othExpList,
#totExpList,
#itmProfList,
#totProfList,
#paymentsList {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  overflow: auto;
}

.veh-exp-stats,
.biz-exp-stats,
.oth-exp-stats,
.tot-exp-stats,
.itm-prof-stats,
.tot-prof-stats,
.payment-stats-grid {
  margin: 12px 0;
}

.veh-exp-stats > div,
.biz-exp-stats > div,
.oth-exp-stats > div,
.tot-exp-stats > div,
.itm-prof-stats > div,
.tot-prof-stats > div,
.payment-stat-card {
  min-height: 76px;
  border-radius: 12px;
  background: var(--panel);
}

.section-table-shell {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  overflow: auto;
}

.section-table-shell > .veh-exp-ledger,
.section-table-shell > .biz-exp-ledger,
.section-table-shell > .oth-exp-ledger,
.section-table-shell > .tot-exp-ledger,
.section-table-shell > .itm-prof-ledger,
.section-table-shell > .tot-prof-ledger,
.section-table-shell > .tot-prof-grouped,
.section-table-shell > .tot-exp-month-ledger {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.section-table-shell .veh-exp-empty,
.section-table-shell .biz-exp-empty,
.section-table-shell .oth-exp-empty,
.section-table-shell .tot-exp-empty,
.section-table-shell .itm-prof-empty,
.section-table-shell .tot-prof-empty {
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#vehExpList,
#bizExpList,
#othExpList,
#totExpList,
#itmProfList,
#totProfList {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  background: var(--panel-2) !important;
  overflow: auto !important;
}

#vehExpStats,
#bizExpStats,
#othExpStats,
#totExpStats,
#itmProfStats,
#totProfStats {
  margin: 12px 0;
}

#vehExpStats:empty,
#bizExpStats:empty,
#othExpStats:empty,
#totExpStats:empty,
#itmProfStats:empty,
#totProfStats:empty {
  display: none;
}

#vehExpList > .veh-exp-ledger,
#bizExpList > .biz-exp-ledger,
#othExpList > .oth-exp-ledger,
#totExpList > .tot-exp-ledger,
#totExpList > .tot-exp-month-ledger,
#itmProfList > .itm-prof-ledger,
#totProfList > .tot-prof-ledger,
#totProfList > .tot-exp-month-ledger {
  margin: 0;
  border: 0;
  border-radius: 0;
}

#vehExpList .veh-exp-empty,
#bizExpList .biz-exp-empty,
#othExpList .oth-exp-empty,
#totExpList .tot-exp-empty,
#itmProfList .itm-prof-empty,
#totProfList .tot-prof-empty {
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mobile-admin-menu {
  display: none;
}

.admin-topbar .logout-btn {
  min-width: 136px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.admin-topbar .logout-btn i {
  color: var(--yellow);
}

.admin-topbar .logout-btn:hover {
  color: #ffffff !important;
  border-color: rgba(239, 68, 68, 0.72) !important;
}

.admin-topbar .logout-btn:hover i {
  color: var(--red);
}

.admin-topbar .topbar-clock {
  min-height: 56px !important;
  border-radius: 16px !important;
}

.sr-only-theme-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-topbar .topbar-theme-menu,
.admin-topbar .topbar-backup-menu {
  position: relative;
}

.admin-topbar .topbar-theme-menu summary,
.admin-topbar .topbar-backup-menu summary {
  list-style: none;
  cursor: pointer;
}

.admin-topbar .topbar-theme-menu summary::-webkit-details-marker,
.admin-topbar .topbar-backup-menu summary::-webkit-details-marker {
  display: none;
}

.admin-topbar .theme-trigger,
.admin-topbar .backup-trigger,
.admin-topbar .logout-btn,
.admin-topbar .topbar-clock {
  min-height: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.115),
    rgba(255, 255, 255, 0.055)
  ) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

.admin-topbar .theme-trigger,
.admin-topbar .backup-trigger {
  min-width: 176px;
}

.admin-topbar .theme-trigger {
  min-width: 206px;
}

.admin-topbar .theme-trigger i:first-child,
.admin-topbar .backup-trigger i:first-child,
.admin-topbar .logout-btn i {
  color: var(--yellow);
}

.theme-chevron,
.backup-chevron {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.72;
}

.topbar-theme-menu[open] .theme-chevron,
.topbar-backup-menu[open] .backup-chevron {
  transform: rotate(180deg);
}

.topbar-theme-dropdown,
.topbar-backup-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1200;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.topbar-theme-dropdown {
  width: 280px;
}

.topbar-backup-dropdown {
  width: min(292px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 88px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.theme-menu-btn,
.backup-menu-btn {
  width: 100%;
  min-height: 52px;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--ink);
  text-align: left;
}

.theme-menu-btn {
  grid-template-columns: 28px minmax(0, 1fr);
}

.theme-menu-btn > span:last-child {
  min-width: 0;
  overflow: hidden;
}

.backup-menu-btn {
  grid-template-columns: 22px minmax(0, 1fr);
}

.backup-menu-btn > span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
  white-space: normal;
}

.theme-menu-btn strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.05;
}

.theme-menu-btn small {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
}

.theme-menu-btn:hover,
.backup-menu-btn:hover,
.theme-menu-btn.is-active {
  border-color: rgba(242, 195, 0, 0.7);
  background: var(--panel-3);
}

.theme-menu-btn.is-active {
  box-shadow: inset 4px 0 0 var(--yellow);
}

.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.theme-dot-light {
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
}

.theme-dot-black {
  background: linear-gradient(135deg, #02040a, #111827);
}

.theme-dot-classic {
  background: linear-gradient(135deg, #111827, #ef4444 52%, #fbbf24);
}

body:not([data-theme]),
body[data-theme="light"] {
  --topbar-control-bg: rgba(255, 255, 255, 0.1);
}

body:not([data-theme]) .topbar-theme-dropdown,
body:not([data-theme]) .topbar-backup-dropdown,
body[data-theme="light"] .topbar-theme-dropdown,
body[data-theme="light"] .topbar-backup-dropdown {
  background: #ffffff;
  color: #202431;
  border-color: #d9dee8;
  box-shadow: 0 18px 40px rgba(18, 20, 33, 0.18);
}

body:not([data-theme]) .theme-menu-btn,
body:not([data-theme]) .backup-menu-btn,
body[data-theme="light"] .theme-menu-btn,
body[data-theme="light"] .backup-menu-btn {
  background: #f8f9fc;
  color: #202431;
  border-color: #e1e5ec;
}

body:not([data-theme]) .theme-menu-btn:hover,
body:not([data-theme]) .backup-menu-btn:hover,
body:not([data-theme]) .theme-menu-btn.is-active,
body[data-theme="light"] .theme-menu-btn:hover,
body[data-theme="light"] .backup-menu-btn:hover,
body[data-theme="light"] .theme-menu-btn.is-active {
  background: #eef1f6;
  border-color: #f2c300;
}

.admin-session-warning-backdrop[hidden],
.admin-cookie-prompt[hidden] {
  display: none !important;
}

.admin-session-warning-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(8px);
}

.admin-session-warning-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.admin-session-warning-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 195, 0, 0.35);
  border-radius: 16px;
  background: rgba(242, 195, 0, 0.12);
  color: var(--yellow);
  font-size: 20px;
}

.admin-session-warning-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
}

.admin-session-warning-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

#adminSessionWarningCountdown {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
  font-size: 18px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.admin-session-warning-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-session-warning-actions button {
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 950;
}

.admin-cookie-prompt {
  position: fixed;
  left: 50% !important;
  right: auto !important;
  bottom: 22px !important;
  transform: translateX(-50%) !important;
  z-index: 2147482100;
  width: min(720px, calc(100vw - 44px)) !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.admin-cookie-prompt strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.admin-cookie-prompt p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-cookie-prompt button {
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 950;
}



.inventory-toolbar {
  flex: 1;
  min-width: min(620px, 100%);
}

.section-toolbar {
  width: 100%;
  min-width: 0;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.section-toolbar.is-active {
  display: flex;
}

.section-toolbar .search-wrap {
  width: min(520px, 42vw);
  min-width: 260px;
}

.section-toolbar-report .report-search-wrap input {
  min-height: 38px;
  border-radius: 999px;
  padding-left: 15px;
}

.section-toolbar .toolbar-icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
}

.section-toolbar .toolbar-icon-btn:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(242, 195, 0, .12);
}

.summary-panel > .report-summary-grid {
  display: none !important;
}

.topbar-backup-dropdown {
  min-width: min(292px, calc(100vw - 24px));
}

.topbar-backup-dropdown .backup-menu-btn {
  justify-content: flex-start;
}

.topbar-backup-dropdown .backup-menu-btn i {
  width: 18px;
  text-align: center;
}


input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.review-manager-modal {
  width: min(1120px, 100%);
}

.review-manager-trigger i {
  color: var(--yellow);
}

.review-manager-body {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(430px, 1.22fr);
  gap: 16px;
  padding: 18px;
}

.review-manager-form {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.review-manager-form h3 {
  margin: 0;
}

.review-manager-form label:not(.review-visible-toggle) {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.review-manager-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.review-visible-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.review-visible-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.review-manager-form-actions,
.review-manager-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.review-manager-status {
  min-height: 18px;
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.review-manager-status.is-error {
  color: var(--red);
}

.review-manager-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.review-manager-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.review-manager-item.is-hidden {
  opacity: 0.68;
}

.review-manager-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-manager-item-head > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.review-manager-stars {
  color: var(--yellow);
  letter-spacing: 1px;
}

.review-visibility-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 15%, transparent);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-manager-item.is-hidden .review-visibility-badge {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
}

.review-manager-item time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-manager-item p {
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.review-manager-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

mark.kw-hl,
mark.exp-hl,
span.kw-hl {
  padding: 0 0.12em;
  border-radius: 0.2em;
  outline: 1px solid var(--kw-hl-outline, rgba(0, 0, 0, 0.15));
  background: var(--kw-hl-bg, #facc15);
  color: var(--kw-hl-fg, #0b1220);
  font: inherit;
}

.kw-hl-field {
  border-color: var(--kw-hl-bg, #facc15) !important;
  outline: 2px solid var(--kw-hl-bg, #facc15) !important;
  outline-offset: 1px;
  background: var(--kw-hl-bg, #facc15) !important;
  color: var(--kw-hl-fg, #0b1220) !important;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--kw-hl-bg, #facc15) 22%, transparent) !important;
}
