:root {
  --ink: #172b46;
  --muted: #64748b;
  --line: #e2eaf4;
  --surface: #fff;
  --canvas: #f3f7fc;
  --navy: #12345a;
  --sidebar-bg: #10233f;
  --action-bg: #174ea6;
  --teal: #1d5fae;
  --teal-soft: #e9f2fd;
  --orange: #d97706;
  --orange-soft: #fef3dc;
  --red: #dc3b4a;
  --red-soft: #fde9ec;
  --green: #12a572;
  --green-soft: #def7ec;
  --grad: linear-gradient(135deg, #123c75 0%, #2563c7 100%);
  --grad-soft: linear-gradient(135deg, rgba(29, 95, 174, .12), rgba(37, 99, 199, .1));
  --ambient-a: rgba(37, 99, 199, .1);
  --ambient-b: rgba(29, 95, 174, .1);
  --sidebar-glow-a: rgba(37, 99, 199, .28);
  --sidebar-glow-b: rgba(29, 95, 174, .3);
  --sidebar-text: #d3e1f3;
  --sidebar-muted: #9bb3d2;
  --sidebar-nav: #b3c6df;
  --action-shadow: 0 10px 22px -8px rgba(29, 95, 174, .5);
  --action-shadow-hover: 0 16px 28px -10px rgba(37, 99, 199, .6);
  --panel-outline: linear-gradient(135deg, rgba(29, 95, 174, .55), rgba(37, 99, 199, .25), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(18, 52, 90, .04), 0 4px 14px rgba(18, 52, 90, .05);
  --shadow: 0 2px 4px rgba(18, 52, 90, .04), 0 18px 40px -12px rgba(25, 67, 120, .18);
  --shadow-lg: 0 30px 70px -18px rgba(14, 39, 75, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}

body.dark {
  --ink: #e6eefb;
  --muted: #94a7c2;
  --line: #26364d;
  --surface: #111c2e;
  --canvas: #0a1220;
  --navy: #e6eefb;
  --sidebar-bg: #070d18;
  --action-bg: #2563eb;
  --teal: #60a5fa;
  --teal-soft: #142b47;
  --orange: #f2b04a;
  --orange-soft: #3b2d12;
  --red: #f4808c;
  --red-soft: #411d26;
  --green: #4ade9f;
  --green-soft: #12372b;
  --grad: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(8, 145, 178, .14));
  --ambient-a: rgba(8, 145, 178, .1);
  --ambient-b: rgba(37, 99, 235, .12);
  --sidebar-glow-a: rgba(8, 145, 178, .22);
  --sidebar-glow-b: rgba(37, 99, 235, .26);
  --sidebar-text: #c1d2e8;
  --sidebar-muted: #8298b5;
  --sidebar-nav: #9bb0cc;
  --sidebar-text: #c1d2e8;
  --action-shadow: 0 10px 22px -8px rgba(37, 99, 235, .48);
  --action-shadow-hover: 0 16px 28px -10px rgba(8, 145, 178, .58);
  --panel-outline: linear-gradient(135deg, rgba(37, 99, 235, .55), rgba(8, 145, 178, .3), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px -18px rgba(0, 0, 0, .8);
}

body {
  background:
    radial-gradient(900px 480px at 100% -10%, var(--ambient-a), transparent 60%),
    radial-gradient(800px 500px at 20% -15%, var(--ambient-b), transparent 60%),
    var(--canvas);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .panel-title, .stat strong { font-feature-settings: "tnum" 1; }

.sidebar {
  color: var(--sidebar-text);
  background:
    radial-gradient(260px 220px at 0% 0%, var(--sidebar-glow-a), transparent 70%),
    radial-gradient(240px 240px at 100% 100%, var(--sidebar-glow-b), transparent 70%),
    var(--sidebar-bg);
  border-right: 0;
}

.brand { color: #fff; }
.brand-mark {
  background: transparent;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: none;
}
.brand strong { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.brand span { color: var(--sidebar-muted); font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.nav { gap: 4px; }
.nav button {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  color: var(--sidebar-nav);
  font-weight: 500;
  transition: color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.nav button::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--grad);
  content: "";
  transform: translateY(-50%);
  transition: height .35s var(--ease);
}
.nav button:hover { color: #fff; background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.nav button.active {
  color: #fff;
  background: var(--grad-soft);
}
.nav button.active::before { height: 22px; }
.nav-icon { transition: transform .35s var(--ease); }
.nav button:hover .nav-icon, .nav button.active .nav-icon { transform: scale(1.18) rotate(-4deg); }
.nav button[data-page] { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sidebar-bottom { border-top-color: rgba(255, 255, 255, .08); }
.support { color: var(--sidebar-nav); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; }
.support strong { color: #fff; }

.topbar { margin-bottom: 26px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: capitalize;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}
.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(18, 165, 114, .6);
  content: "";
  animation: live-pulse 2s infinite;
}
h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 750; letter-spacing: -.035em; }
.date-pill {
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}
.theme-toggle, .busy-week-button { border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .2s, color .2s; }
.theme-toggle:hover { transform: rotate(25deg) scale(1.08); }
.busy-week-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font-size: 19px;
}
.busy-week-button:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--teal); }
.avatar { border-radius: 13px; background: var(--grad); font-size: 13px; box-shadow: 0 8px 18px -6px var(--action-shadow); }

.stats { gap: 16px; overflow: visible; border: 0; background: transparent; margin-bottom: 24px; }
.stat {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 20px 22px;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat::after {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--grad-soft);
  content: "";
  transition: transform .6s var(--ease);
}
.stat:nth-child(2)::after { background: linear-gradient(135deg, rgba(217, 119, 6, .18), rgba(251, 191, 36, .1)); }
.stat:nth-child(3)::after { background: linear-gradient(135deg, rgba(220, 59, 74, .16), rgba(244, 128, 140, .1)); }
.stat:nth-child(4)::after { background: linear-gradient(135deg, rgba(18, 165, 114, .16), rgba(74, 222, 159, .1)); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat:hover::after { transform: scale(1.5); }
.stat[role="button"]:hover, .stat[role="button"]:focus-visible { background: var(--surface); transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal) !important; }
.stat-head { position: relative; z-index: 1; font-weight: 500; }
.stat-icon { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
.stat:nth-child(4) .stat-icon { color: var(--green); background: var(--green-soft); }
.stat strong { position: relative; z-index: 1; display: inline-block; margin-top: 14px; font-size: 34px; font-weight: 750; }
.stat strong.bump { animation: bump .5s var(--ease); }

.panel { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-header { padding: 20px 24px; }
.panel-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.panel-subtitle { font-size: 12.5px; }
.booking-panel {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--panel-outline) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.booking-panel .panel-header > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--grad);
  font-size: 18px !important;
  box-shadow: 0 8px 18px -6px var(--action-shadow);
}

label { color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .01em; }
input, select {
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .25s var(--ease), background .2s, transform .2s;
}
input:hover, select:hover { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
body.dark input, body.dark select, body.dark .filter, body.dark .status-select,
body.dark .month-button, body.dark .edit-car-button, body.dark .secondary,
body.dark .car-picker, body.dark .report-car-filter summary { background: var(--surface); color: var(--ink); }
input[type="checkbox"] { min-height: 0; accent-color: var(--teal); }
.selected-car { border: 1px dashed color-mix(in srgb, var(--teal) 40%, var(--line)); border-radius: 14px; background: var(--grad-soft); }
.car-picker { border-radius: 10px; border-color: var(--line); background: var(--surface); }
.voice-scheduler { border-radius: 14px; background: var(--grad-soft); }
.voice-scheduler textarea { border-radius: 10px; background: var(--surface); }
.primary, .return-confirm, .photo-upload, .return-car-button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--grad);
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: var(--action-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s;
}
.primary { min-height: 46px; }
.primary:hover, .return-confirm:hover, .photo-upload:hover, .return-car-button:hover { color: #fff; filter: brightness(1.06); transform: translateY(-2px); box-shadow: var(--action-shadow-hover); }
.primary:active, .return-confirm:active, .return-car-button:active { transform: translateY(0) scale(.98); }
.primary::after, .return-confirm::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  content: "";
  transform: translateX(-120%);
}
.primary:hover::after, .return-confirm:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.secondary, .filter, .edit-car-button, .return-cancel, .report-car-filter summary {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 650;
  transition: transform .25s var(--ease), border-color .2s, background .2s, color .2s, box-shadow .25s;
}
.secondary:hover, .edit-car-button:hover, .return-cancel:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-soft); transform: translateY(-1px); }
.secondary:disabled { opacity: .6; cursor: default; transform: none; }
.hint { font-size: 11.5px; }

.fleet-grid { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; padding: 20px; }
.car-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
  animation: card-in .55s var(--ease) both;
}
.car-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.car-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); box-shadow: var(--shadow); }
.car-card:hover::before { transform: scaleX(1); }
.car-card:nth-child(1) { animation-delay: .02s; }
.car-card:nth-child(2) { animation-delay: .07s; }
.car-card:nth-child(3) { animation-delay: .12s; }
.car-card:nth-child(4) { animation-delay: .17s; }
.car-card:nth-child(5) { animation-delay: .22s; }
.car-card:nth-child(6) { animation-delay: .27s; }
.car-card:nth-child(7) { animation-delay: .32s; }
.car-card:nth-child(n+8) { animation-delay: .36s; }
.car-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.car-code { font-size: 11px; letter-spacing: .02em; }
.car-photo-area { height: clamp(145px, 19vw, 220px); margin: 14px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.car-photo-area img { display: block; }
.car-photo-empty { font-size: 12px; }
.car-photo-upload { transition: background .2s, transform .2s; }
.car-photo-upload:hover { color: #fff; background: #14222e; transform: translateY(-1px); }
.delivery-dialog .delivery-repair-button { border-color: #c62828; color: #fff; background: #c62828; }
.delivery-dialog .delivery-repair-button:hover { border-color: #a91f1f; color: #fff; background: #a91f1f; }
.badge { padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.badge.available { color: #0c7a54; background: var(--green-soft); }
.badge.upcoming { color: #b45309; background: var(--orange-soft); }
.badge.rented { color: #174ea6; background: var(--teal-soft); }
.badge.repair { color: #c0283a; background: var(--red-soft); }
body.dark .badge.available { color: #4ade9f; }
body.dark .badge.upcoming { color: #f2b04a; }
body.dark .badge.rented { color: #93c5fd; }
body.dark .badge.repair { color: #f4808c; }
.badge.rented::before, .badge.upcoming::before { animation: live-dot 1.6s ease-in-out infinite; }
.car-schedule-detail { border: 0; border-left: 3px solid var(--teal); border-radius: 10px; background: var(--grad-soft); padding: 10px 12px; }
.car-meta { border-top: 1px dashed var(--line); }
.car-meta strong { font-size: 12.5px; }
.status-select { min-height: 38px; border-radius: 10px; font-size: 12px; }
.schedule-edit-button, .schedule-delete-button { border-radius: 8px; transition: all .2s var(--ease); }
.schedule-edit-button:hover, .schedule-delete-button:hover { transform: translateY(-1px); }
.deliver-car-button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef6a2e);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 20px -8px rgba(239, 106, 46, .7);
  transition: transform .25s var(--ease), filter .2s;
}
.deliver-car-button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.return-car-button { margin-top: 0; padding: 10px; font-size: 12px; }

.calendar-panel { margin-top: 22px; }
.month-button { width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); transition: all .25s var(--ease); }
.month-button:hover { border-color: var(--action-bg); color: #fff; background: var(--action-bg); transform: scale(1.08); }
.month-label { min-width: 130px; font-size: 14px; font-weight: 700; }
.calendar-body { padding: 16px 24px 20px; }
.calendar-weekdays { font-size: 11px; letter-spacing: .08em; }
.calendar-grid { gap: 6px; }
.calendar-day, .calendar-day:nth-child(7n + 1) {
  min-height: 74px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  animation: cell-in .45s var(--ease) both;
}
.calendar-day.empty { border: 0; background: transparent; animation: none; }
body.dark .calendar-day.empty { background: transparent; }
.calendar-day.today { border-color: var(--teal); color: var(--ink); background: var(--grad-soft); }
.calendar-day.today .day-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--grad); font-weight: 700; box-shadow: 0 6px 14px -4px var(--action-shadow); }
.calendar-day.has-booking { border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); background: var(--teal-soft); box-shadow: none; }
.calendar-day.has-booking:hover { z-index: 1; background: var(--teal-soft); transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow); }
.day-number { font-size: 12.5px; font-weight: 650; }
.day-revenue { color: var(--teal); font-size: 10px; font-weight: 700; }
.calendar-day.today .day-revenue { color: var(--teal); }
.day-dot.rented { background: var(--grad); }
.calendar-legend { font-size: 11.5px; }

.daily-schedule-column { border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); }
.daily-schedule-item { border-radius: 12px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); animation: card-in .5s var(--ease) both; }
.daily-schedule-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.daily-schedule-plate { font-size: 17px; letter-spacing: .06em; }
.daily-schedule-status { border-radius: 999px; padding: 4px 10px; color: var(--teal); background: var(--teal-soft); }
.daily-schedule-status.upcoming { color: var(--orange); background: var(--orange-soft); }
.daily-schedule-status.finished { color: var(--muted); background: var(--line); }
.schedule-car-picker { min-height: 36px; border-radius: 10px; }
.management-form + .management-form { border-left: 1px dashed var(--line); }
.form-heading { font-size: 15px; font-weight: 700; }
.photo-slot { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: card-in .5s var(--ease) both; }
.photo-slot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo-slot:nth-child(2) { animation-delay: .06s; }
.photo-slot:nth-child(3) { animation-delay: .12s; }
.photo-slot:nth-child(4) { animation-delay: .18s; }
.photo-preview { background: var(--canvas); }
.photo-preview img { transition: filter .2s var(--ease); }
.photo-slot:hover .photo-preview img { filter: brightness(.97); }
.photo-upload, .photo-download, .photo-remove { border-radius: 9px; }
.photo-download { border: 1.5px solid var(--teal); color: var(--teal); }
.photo-remove { border: 1.5px solid var(--red); color: var(--red); }
.report-total { border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); transition: transform .3s var(--ease), box-shadow .3s; animation: card-in .5s var(--ease) both; }
.report-total:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.report-total:nth-child(2) { animation-delay: .05s; }
.report-total:nth-child(3) { animation-delay: .1s; }
.report-total:nth-child(4) { animation-delay: .15s; }
.report-total strong { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.report-total.net { border-color: transparent; background: var(--grad); }
.report-total.net span, .report-total.net strong { color: #fff; }
.report-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.report-table tbody tr { transition: background .2s; }
.report-table tbody tr:hover { background: var(--teal-soft); }
.report-car-options { border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop-in .25s var(--ease); }
.report-car-detail { animation: slide-down .4s var(--ease); }
.report-car-revenue { border-radius: 14px; background: var(--grad-soft); }

.return-dialog, .schedule-dialog, .delivery-dialog { border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.return-dialog[open], .schedule-dialog[open], .delivery-dialog[open] { animation: dialog-in .4s var(--ease); }
.return-dialog::backdrop, .schedule-dialog::backdrop, .delivery-dialog::backdrop {
  background: rgba(8, 20, 38, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in .3s ease;
}
.busy-week-dialog {
  width: min(1200px, calc(100% - 32px));
  max-width: none;
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.busy-week-dialog::backdrop { background: rgba(8, 20, 38, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.busy-week-content { display: flex; max-height: min(86vh, 820px); flex-direction: column; }
.busy-week-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }
.busy-week-header h2 { margin: 0; color: var(--navy); font-size: 19px; }
.busy-week-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.busy-week-close { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 24px; line-height: 1; }
.busy-week-close:hover { border-color: var(--teal); color: var(--teal); }
.busy-week-table-wrap { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.busy-week-table { width: 100%; min-width: 930px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.busy-week-table th, .busy-week-table td { min-width: 54px; padding: 9px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.busy-week-table thead th { position: sticky; z-index: 2; top: 0; color: var(--navy); background: var(--canvas); font-weight: 750; }
.busy-week-table thead tr:first-child th { padding: 11px 8px; }
.busy-week-table thead tr:first-child th:first-child { z-index: 4; left: 0; min-width: 145px; }
.busy-week-table thead tr:first-child th:not(:first-child) { min-width: 378px; }
.busy-week-table thead tr:nth-child(2) th { top: 39px; }
.busy-week-table thead tr:nth-child(2) th span, .busy-week-table thead tr:nth-child(2) th strong { display: block; white-space: nowrap; }
.busy-week-table thead tr:nth-child(2) th span { color: var(--muted); font-size: 10px; }
.busy-week-table thead tr:nth-child(2) th strong { margin-top: 3px; font-size: 10px; }
.busy-week-table thead th.is-today { color: var(--teal); background: var(--teal-soft); }
.busy-week-table tbody th { position: sticky; z-index: 1; left: 0; min-width: 145px; background: var(--surface); text-align: left; }
.busy-week-table tbody th strong, .busy-week-table tbody th span { display: block; }
.busy-week-table tbody th strong { color: var(--navy); font-size: 11px; }
.busy-week-table tbody th span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.busy-week-table tbody tr:hover td, .busy-week-table tbody tr:hover th { background-color: var(--canvas); }
.busy-week-badge { display: inline-block; padding: 4px 6px; border-radius: 999px; color: #a95212; background: var(--orange-soft); font-size: 9px; font-weight: 800; white-space: nowrap; }
.busy-week-empty { color: var(--muted); }
.busy-week-no-cars { color: var(--muted); text-align: center !important; }
.busy-week-legend { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 20px 15px; color: var(--muted); font-size: 11px; }
.nav-customizer-dialog {
  width: min(480px, calc(100% - 32px));
  max-width: none;
  max-height: min(82vh, 720px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.nav-customizer-dialog::backdrop { background: rgba(8, 20, 38, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nav-customizer-content { display: flex; max-height: min(82vh, 720px); flex-direction: column; }
.nav-customizer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 20px 14px; border-bottom: 1px solid var(--line); }
.nav-customizer-header h2 { margin: 0; color: var(--navy); font-size: 18px; }
.nav-customizer-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.nav-customizer-close { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 23px; line-height: 1; }
.nav-customizer-close:hover { border-color: var(--teal); color: var(--teal); }
.nav-customizer-list { display: grid; gap: 7px; min-height: 0; padding: 12px 16px; overflow-y: auto; overscroll-behavior: contain; }
.nav-customizer-item { display: grid; grid-template-columns: 38px 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 52px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.nav-customizer-item.is-dragging { opacity: .48; border-color: var(--teal); }
.nav-order-handle { width: 36px; height: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--canvas); font-size: 17px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.nav-order-handle:active { color: var(--teal); cursor: grabbing; }
.nav-customizer-item > .nav-icon { color: var(--teal); text-align: center; font-size: 18px; }
.nav-customizer-item > strong { min-width: 0; color: var(--navy); font-size: 13px; }
.nav-visibility-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.nav-visibility-label input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.nav-visibility-label input:disabled { opacity: .65; }
.nav-customizer-status { min-height: 18px; margin: 0; padding: 0 20px 10px; color: var(--muted); font-size: 11px; }
.nav-customizer-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 16px 16px; border-top: 1px solid var(--line); }
.nav-customizer-actions button { min-height: 42px; padding: 9px 14px; }
.return-dialog h2, .schedule-dialog h2, .delivery-dialog h2 { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.return-fee-card { border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); transition: border-color .2s, box-shadow .2s; }
.return-fee-card:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }
.return-total strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 19px; }
.schedule-item { border-radius: 14px; transition: transform .25s var(--ease), border-color .2s; animation: card-in .4s var(--ease) both; }
.schedule-item:hover { border-color: var(--teal); transform: translateX(4px); }
.schedule-edit-summary { border: 1px solid var(--line); border-radius: 12px; background: var(--grad-soft); }
.toast {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #fff;
  background: #10233f;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  transform: translate(-50%, 24px) scale(.95);
  transition: opacity .35s var(--ease), transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.show { transform: translate(-50%, 0) scale(1); }
.toast::before { color: var(--teal); content: "✦ "; }

.page-enter { animation: page-enter .6s var(--ease) both; animation-delay: calc(var(--page-enter-order, 0) * 70ms); }
.is-leaving { animation: page-leave .22s ease both !important; pointer-events: none; }
@keyframes page-enter {
  from { opacity: 0; filter: blur(6px); transform: translateY(22px) scale(.985); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes page-leave { to { opacity: 0; filter: blur(4px); transform: translateY(-10px) scale(.99); } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cell-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.22); } }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(18, 165, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 165, 114, 0); } }
@keyframes live-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.5); } }

@media (max-width: 650px) {
  .busy-week-button { width: 35px; height: 35px; border-radius: 8px; font-size: 17px; }
  .busy-week-dialog { position: fixed; inset: auto 0 0; width: 100%; max-height: min(86dvh, 820px); margin: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 18px 18px 0 0; }
  .busy-week-content { max-height: min(86dvh, 820px); }
  .busy-week-header { padding: 17px 16px 13px; }
  .busy-week-header h2 { font-size: 17px; }
  .busy-week-table { min-width: 890px; }
  .busy-week-table th, .busy-week-table td { min-width: 51px; padding: 8px 4px; }
  .busy-week-table thead tr:first-child th:first-child, .busy-week-table tbody th { min-width: 120px; }
  .busy-week-table thead tr:first-child th:not(:first-child) { min-width: 357px; }
  .busy-week-table thead tr:nth-child(2) th { top: 37px; }
  .busy-week-legend { align-items: flex-start; padding: 10px 15px calc(13px + env(safe-area-inset-bottom)); line-height: 1.4; }
  .nav-customizer-dialog { position: fixed; inset: auto 0 0; width: 100%; max-height: min(82dvh, 720px); margin: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 18px 18px 0 0; }
  .nav-customizer-content { max-height: min(82dvh, 720px); }
  .nav-customizer-header { padding: 17px 16px 13px; }
  .nav-customizer-header h2 { font-size: 17px; }
  .nav-customizer-list { padding: 11px 13px; }
  .nav-customizer-actions { padding: 11px 13px calc(12px + env(safe-area-inset-bottom)); }
  .sidebar {
    bottom: 48px;
    border-top-color: var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 -10px 30px -10px rgba(14, 39, 75, .25);
  }
  .nav button { color: var(--muted); border-radius: 14px; }
  .nav button::before { display: none; }
  .nav button:hover { color: var(--muted); background: transparent; transform: none; }
  .nav button.active { color: var(--teal); background: var(--teal-soft); }
  .nav button.active .nav-icon { transform: translateY(-2px) scale(1.2); }
  .calendar-grid { gap: 3px; }
  .calendar-day, .calendar-day:nth-child(7n + 1) { min-height: 54px; padding: 4px; border-radius: 9px; }
  .calendar-body { padding: 12px; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .return-dialog, .schedule-dialog, .delivery-dialog { border-radius: 24px 24px 0 0; }
  .return-dialog[open], .schedule-dialog[open], .delivery-dialog[open] { animation: sheet-up .45s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.is-hidden { display: none !important; }
.dashboard-home-section {
  display: grid;
  gap: 20px;
}
.dashboard-home-section.is-hidden { display: none; }
.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  align-items: center;
  gap: 28px;
  min-height: 238px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(118deg, #123f91 0%, #2463c7 56%, #149bd0 100%);
  box-shadow: 0 22px 48px rgba(24, 83, 171, .26);
}
.dashboard-hero::before, .dashboard-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.dashboard-hero::before { width: 360px; height: 360px; right: 7%; top: -245px; }
.dashboard-hero::after { width: 280px; height: 280px; right: -40px; bottom: -218px; }
.dashboard-hero-brand { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 900; letter-spacing: .16em; }
.dashboard-logo { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; color: inherit; background: transparent; cursor: pointer; transition: transform .2s ease; }
.dashboard-logo:hover { transform: translateY(-2px); }
.dashboard-logo:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 3px; }
.dashboard-logo img { width: 100%; height: 100%; object-fit: contain; }
.dashboard-balance-card { position: relative; z-index: 1; padding: 21px 23px 17px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; background: rgba(8, 39, 114, .34); box-shadow: inset 0 1px rgba(255,255,255,.16); backdrop-filter: blur(12px); }
.dashboard-balance-label { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.88); font-size: 14px; font-weight: 750; }
.dashboard-balance-label > span:first-child { min-width: 0; }
.home-revenue-filter-button { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 55%; min-height: 36px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; color: #fff; background: rgba(255,255,255,.13); font-size: 11px; font-weight: 750; }
.home-revenue-filter-button:hover, .home-revenue-filter-button:focus-visible { border-color: #83e5ff; background: rgba(255,255,255,.22); outline: none; }
.home-revenue-filter-button span:last-child { overflow: hidden; color: inherit; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-balance-card > strong { display: block; margin-top: 12px; color: #fff; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.04em; }
.dashboard-month-label { display: block; margin-top: 8px; color: rgba(233,245,255,.78); font-size: 11px; line-height: 1.45; }
.dashboard-hero-footer { display: flex; justify-content: space-between; gap: 12px; margin: 20px -23px -17px; padding: 13px 23px; border-top: 1px solid rgba(255,255,255,.17); color: #85e7ff; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.dashboard-hero-footer span:last-child { color: rgba(255,255,255,.75); }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.dashboard-action { display: grid; justify-items: center; gap: 9px; min-height: 108px; padding: 12px 8px; border: 0; border-radius: 15px; color: var(--ink); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.dashboard-action:hover { transform: translateY(-2px); background: var(--teal-soft); }
.dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-actions-toggle { grid-column: 1 / -1; justify-self: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal); background: var(--surface); font-size: 12px; font-weight: 750; }
.dashboard-actions-toggle:hover { background: var(--teal-soft); }
.dashboard-extra-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dashboard-extra-actions[hidden] { display: none; }
.dashboard-action:focus-visible, .dashboard-gallery-arrow:focus-visible, .dashboard-gallery-add:focus-within { outline: 3px solid #68cfff; outline-offset: 3px; }
.dashboard-action-icon { position: relative; display: grid; place-items: center; width: 59px; height: 59px; border: 1px solid var(--line); border-radius: 17px; color: #174ea6; background: var(--surface); box-shadow: 0 8px 18px rgba(18, 52, 90, .1); font-size: 25px; }
.dashboard-action-badge { position: absolute; top: -8px; right: -9px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--surface); border-radius: 999px; color: #fff; background: #d93025; font-size: 10px; font-weight: 850; line-height: 1; }
.dashboard-action-badge[hidden] { display: none; }
body.dark .dashboard-action-icon { color: #93c5fd; }
.dashboard-gallery-section { min-width: 0; overflow: hidden; padding: 20px 0 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.dashboard-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 22px 16px; }
.dashboard-section-heading h2 { margin: 2px 0 5px; color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.dashboard-section-heading p:not(.dashboard-kicker) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.dashboard-kicker { margin: 0; color: #1d5fae; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.dashboard-gallery-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.dashboard-gallery-count { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.dashboard-gallery-add { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; overflow: hidden; border: 1px solid #1d5fae; border-radius: 10px; color: #fff; background: #174ea6; font-size: 11px; font-weight: 800; cursor: pointer; }
.dashboard-gallery-add:hover { background: #123f91; }
.dashboard-gallery-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dashboard-gallery-add.is-disabled { opacity: .5; cursor: not-allowed; }
.dashboard-gallery { position: relative; }
.dashboard-gallery-track { display: flex; gap: 14px; overflow-x: auto; padding: 5px 8%; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-inline: contain; }
.dashboard-gallery-track::-webkit-scrollbar { display: none; }
.dashboard-gallery-slide { position: relative; flex: 0 0 min(78%, 700px); height: clamp(220px, 34vw, 390px); overflow: hidden; border-radius: 18px; background: linear-gradient(125deg, #113c85, #2563c7 60%, #0c9bb8); scroll-snap-align: center; }
.dashboard-gallery-slide::after { position: absolute; inset: 45% 0 0; content: ""; pointer-events: none; background: linear-gradient(transparent, rgba(7, 23, 58, .72)); }
.dashboard-gallery-slide > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dashboard-gallery-caption { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; display: flex; justify-content: space-between; gap: 12px; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.dashboard-gallery-caption b { color: #c4f4ff; }
.dashboard-gallery-remove { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: rgba(9,24,55,.66); font-size: 22px; cursor: pointer; backdrop-filter: blur(8px); }
.dashboard-gallery-empty { display: grid; align-content: center; justify-items: center; gap: 10px; color: #fff; text-align: center; }
.dashboard-gallery-empty::after { display: none; }
.dashboard-gallery-empty-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.dashboard-gallery-empty-brand img { width: 36px; height: 36px; border-radius: 10px; }
.dashboard-gallery-empty > strong { font-size: clamp(18px, 3vw, 26px); }
.dashboard-gallery-empty > span { color: rgba(255,255,255,.78); font-size: 11px; }
.dashboard-gallery-arrow { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: var(--surface); box-shadow: var(--shadow-sm); font-size: 25px; cursor: pointer; }
.dashboard-gallery-arrow[hidden] { display: none; }
#home-gallery-previous { left: 14px; }
#home-gallery-next { right: 14px; }
.dashboard-gallery-dots { display: flex; justify-content: center; gap: 7px; min-height: 8px; margin-top: 12px; }
.dashboard-gallery-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 10px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.dashboard-gallery-dots button[aria-current="true"] { width: 22px; background: #1d5fae; }
.active-rentals-panel { overflow: hidden; }
.active-rentals-count { padding: 6px 10px; border-radius: 999px; color: #174ea6; background: #e9f2fd; font-size: 11px; font-weight: 850; white-space: nowrap; }
.active-rentals-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 16px; }
.active-rental-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.active-rental-photo { display: grid; place-items: center; flex: 0 0 74px; width: 74px; height: 74px; overflow: hidden; border-radius: 12px; color: #174ea6; background: var(--teal-soft); font-size: 31px; }
.active-rental-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.active-rental-info { display: grid; gap: 4px; min-width: 0; }
.active-rental-info > strong { overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.active-rental-info > span { color: #1d5fae; font-size: 10px; font-weight: 800; }
.active-rental-times { display: grid; gap: 4px; margin-top: 3px; }
.active-rental-times span { display: flex; flex-wrap: wrap; gap: 5px; font-size: 10px; }
.active-rental-times small { color: var(--muted); }
.active-rental-times b { color: var(--ink); font-weight: 750; }
.active-rentals-empty { grid-column: 1 / -1; margin: 0; padding: 18px 8px; color: var(--muted); text-align: center; font-size: 12px; }
body[data-role="staff"] #home-customer-chat-link { display: none; }
body[data-role="staff"] #home-confirmations-link { display: none; }
body[data-role="staff"] #booking-confirmations-section { display: none; }
body[data-role="staff"] #home-bot-faq-link { display: none; }
body[data-role="staff"] #bot-faq-section { display: none; }
body[data-role="staff"] .dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dashboard-action[hidden] { display: none !important; }
.booking-confirmations-page.is-hidden { display: none; }
.bot-faq-page.is-hidden { display: none; }
.bot-faq-form { display: grid; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); }
.bot-faq-form h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.bot-faq-form label { color: var(--muted); font-size: 12px; font-weight: 700; }
.bot-faq-form input, .bot-faq-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font: inherit; font-size: 13px; }
.bot-faq-form textarea { min-height: 110px; resize: vertical; }
.bot-faq-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bot-faq-form-actions button { min-height: 40px; }
.bot-faq-list { display: grid; gap: 11px; padding: 16px 18px 20px; }
.bot-faq-card { display: flex; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bot-faq-card-copy { min-width: 0; }
.bot-faq-state { display: inline-block; padding: 3px 8px; border-radius: 999px; color: var(--muted); background: var(--canvas); font-size: 10px; font-weight: 800; }
.bot-faq-state.is-enabled { color: #17603f; background: #e2f0e8; }
body.dark .bot-faq-state.is-enabled { color: #72d0a0; background: #15302a; }
.bot-faq-card h3 { margin: 8px 0 5px; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }
.bot-faq-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.bot-faq-actions { display: flex; flex: 0 0 auto; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.bot-faq-actions button { min-height: 34px; padding: 0 9px; font-size: 11px; }
.bot-faq-actions button:disabled { opacity: .5; cursor: wait; }
.confirmation-tabs { display: flex; gap: 8px; padding: 0 18px 14px; }
.confirmation-tab { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 800; }
.confirmation-tab.active { border-color: #1d5fae; color: #1d5fae; background: var(--teal-soft); }
.confirmation-list { display: grid; gap: 12px; padding: 0 18px 18px; }
.confirmation-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.confirmation-card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.confirmation-card-heading strong { color: var(--navy); font-size: 14px; }
.confirmation-card-heading span { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #1d5fae; background: var(--teal-soft); font-size: 10px; font-weight: 850; }
.confirmation-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.confirmation-card p b { color: var(--ink); }
.confirmation-actions { display: flex; gap: 9px; margin-top: 14px; }
.confirmation-actions button { min-height: 40px; padding: 0 12px; border: 1px solid #1d5fae; border-radius: 9px; color: #fff; background: #174ea6; font-size: 11px; font-weight: 800; }
.confirmation-actions button:disabled { opacity: .48; cursor: not-allowed; }
.confirmation-actions .confirmation-reject { border-color: var(--red); color: var(--red); background: transparent; }
.confirmation-actions .confirmation-reject:hover { color: #fff; background: var(--red); }
.confirmation-empty { margin: 0; padding: 24px 12px; color: var(--muted); text-align: center; font-size: 13px; }
.save-result-dialog { width: min(calc(100% - 32px), 440px); max-width: 440px; margin: auto; padding: 28px 24px 22px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); text-align: center; }
.save-result-dialog::backdrop { background: rgba(4, 12, 24, .62); backdrop-filter: blur(4px); }
.save-result-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 15px; border-radius: 50%; color: #fff; background: #18864b; font-size: 45px; font-weight: 700; line-height: 1; }
.save-result-dialog[data-state="error"] .save-result-icon { background: #c62828; }
.save-result-dialog[data-state="pending"] .save-result-icon { position: relative; background: #147d70; color: transparent; }
.save-result-dialog[data-state="pending"] .save-result-icon::after { width: 30px; height: 30px; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; content: ""; animation: save-result-spin .8s linear infinite; }
@keyframes save-result-spin { to { transform: rotate(360deg); } }
.save-result-dialog h2 { margin: 0; color: var(--navy); font-size: 20px; }
.save-result-dialog p { margin: 11px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.save-result-dialog form { margin: 0; }
.save-result-dialog form button { width: 100%; }
.save-result-dialog[data-state="pending"] form button { opacity: .65; cursor: wait; }
@media (max-width: 650px) {
  .confirmation-tabs { overflow-x: auto; padding-right: 14px; padding-left: 14px; }
  .confirmation-tab { flex: 1 0 auto; }
  .confirmation-list { padding-right: 14px; padding-left: 14px; }
  .confirmation-actions button { flex: 1; }
  .bot-faq-card { flex-direction: column; }
  .bot-faq-actions { justify-content: flex-start; }
  .bot-faq-list { padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 650px) {
  .dashboard-home-section { gap: 13px; }
  .dashboard-hero { grid-template-columns: 1fr; gap: 17px; min-height: 0; padding: 20px; border-radius: 20px; }
  .dashboard-hero-brand { font-size: 12px; }
  .dashboard-logo { width: 40px; height: 40px; }
  .dashboard-balance-card { padding: 18px 18px 14px; border-radius: 17px; }
  .dashboard-balance-card > strong { font-size: clamp(25px, 8vw, 33px); }
  .dashboard-hero-footer { margin: 17px -18px -14px; padding: 12px 18px; font-size: 9px; }
  .dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 9px 5px; border-radius: 17px; }
  .dashboard-action { gap: 7px; min-height: 86px; padding: 8px 2px; font-size: 9px; }
  .dashboard-action-icon { width: 47px; height: 47px; border-radius: 14px; font-size: 21px; }
  .dashboard-gallery-section { padding-top: 15px; border-radius: 17px; }
  .dashboard-section-heading { align-items: flex-start; padding: 0 14px 12px; }
  .dashboard-section-heading h2 { font-size: 16px; }
  .dashboard-section-heading p:not(.dashboard-kicker) { max-width: 245px; font-size: 10px; }
  .dashboard-gallery-tools { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
  .dashboard-gallery-add { min-height: 35px; padding: 7px 9px; font-size: 10px; white-space: nowrap; }
  .dashboard-gallery-track { gap: 10px; padding: 4px 5%; }
  .dashboard-gallery-slide { flex-basis: 90%; height: clamp(195px, 62vw, 280px); border-radius: 14px; }
  .dashboard-gallery-caption { right: 13px; bottom: 13px; left: 13px; font-size: 9px; }
  .dashboard-gallery-remove { top: 9px; right: 9px; width: 31px; height: 31px; }
  .dashboard-gallery-arrow { width: 32px; height: 32px; font-size: 21px; }
  #home-gallery-previous { left: 7px; }
  #home-gallery-next { right: 7px; }
  .active-rentals-list { grid-template-columns: 1fr; padding: 12px; }
  .active-rental-card { padding: 11px; }
  .nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { flex: 0 0 61px; }
}

@media (max-width: 650px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(var(--nav-visible-count, 4), minmax(0, 1fr));
    justify-content: stretch;
    gap: 4px;
    width: 100%;
    overflow: visible;
  }
  .nav button {
    flex: initial;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 6px 2px;
    gap: 4px;
    font-size: clamp(8px, 2.4vw, 10px);
  }

  .nav button span:not(.nav-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
  }


}

#netlify-badge, #netlify-badge-container, .netlify-badge, .netlify-badge-container,
[data-netlify-badge], [aria-label*="Powered by Netlify" i], iframe[src*="netlify"],
iframe[title*="Powered by Netlify" i] { display: none !important; }
