:root {
  --ink: #1d1a17;
  --muted: #6f675d;
  --line: #e6d9c4;
  --gold: #caa86a;
  --gold-2: #f5e8c9;
  --paper: #fffdf8;
  --cream: #faf3e6;
  --soft: #f4ead8;
  --coffee: #4b3526;
  --coffee-2: #7a5737;
  --green: #1f7a3f;
  --red: #8a1738;
  --blue: #24385d;
  --shadow: 0 22px 60px rgba(75, 53, 38, .12);
  --btn-bg: #fff8e8;
  --btn-hover: #fff3d3;
  --btn-border: #d8b86b;
  --table-head: #fcf7ea;
  --table-alt: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 232, 201, .95), transparent 34%),
    radial-gradient(circle at bottom right, rgba(202, 168, 106, .24), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #faf3e6 48%, #fffaf0 100%);
  letter-spacing: .01em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
.brand strong,
.qp-brand h1,
.qp-topbar h2,
.hero-copy h1,
.hero-panel b,
.home-card b,
.section-heading h2,
.page-hero h1,
.card b,
.stat strong,
.vehicle-card h2 {
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #efe4d2;
}

.public-body .site-header {
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(255, 253, 248, .96);
}

.public-body .brand {
  flex: 0 1 auto;
  min-width: 0;
}

.public-body .brand > span:last-child {
  min-width: 0;
}

.public-body .brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-short-name {
  display: none;
}

.brand-full-name {
  display: inline;
}

.public-nav-backdrop,
.public-nav-toggle {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-logo-frame,
.qp-logo-frame,
.brand-mark,
.qp-logo {
  display: grid;
  place-items: center;
  width: 78px;
  min-width: 78px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid #d8c39b;
  background: #fff;
  color: var(--coffee);
  box-shadow: 0 10px 26px rgba(75, 53, 38, .10);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease;
}

.brand-logo,
.qp-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.public-body .brand-logo-frame {
  width: 58px;
  min-width: 58px;
  height: 58px;
  border-radius: 50%;
}

.public-body .brand-logo {
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
}

.qp-logo-frame {
  width: 74px;
  min-width: 74px;
  height: 58px;
}

.brand:hover .brand-logo-frame,
.brand:hover .brand-mark,
.qp-brand:hover .qp-logo-frame,
.qp-brand:hover .qp-logo {
  transform: scale(1.08) rotate(-6deg);
  filter: saturate(1.12);
}

.brand strong {
  display: block;
  color: #161410;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand small,
.qp-sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.public-nav,
.actions,
.row-actions,
.modal-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.public-nav {
  justify-content: flex-end;
}

.public-body .public-nav {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 9px;
}

.public-nav a,
.top-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #e2c790;
  border-radius: 999px;
  background: #fff5df;
  color: #5c3e20;
  font-size: 11.5px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-nav a {
  min-height: 40px;
  padding: 5px 11px 5px 7px;
}

.public-body .public-nav a {
  border-color: transparent;
  background: transparent;
  color: #3d3025;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
}

.public-nav a.active,
.public-nav a:hover {
  background: linear-gradient(135deg, #7a5737, #4b3526);
  color: #fff8e8;
  border-color: #d6ad58;
  box-shadow: 0 14px 28px rgba(75, 53, 38, .18);
}

.public-body .public-nav a.active,
.public-body .public-nav a:hover {
  background: #fff5df;
  color: #5c3e20;
  border-color: #e2c790;
  box-shadow: 0 12px 24px rgba(75, 53, 38, .10);
}

.public-main {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 30px 18px 58px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .70fr);
  gap: 28px;
  align-items: center;
  min-height: 430px;
}

.hero-copy h1 {
  margin: 20px 0 16px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.2vw, 72px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-copy p {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.primary-link,
.secondary-link,
.reserve-link,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 13px 7px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.primary-link,
.reserve-link,
.submit-btn {
  border: 1px solid #d6ad58;
  background: linear-gradient(135deg, #7a5737, #4b3526);
  color: #fff8e8;
  box-shadow: 0 14px 30px rgba(75, 53, 38, .20);
}

.secondary-link {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: #4b3526;
}

.primary-link .icon,
.secondary-link .icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  box-shadow: none;
}

.primary-link .icon-glyph,
.secondary-link .icon-glyph {
  font-size: 13px;
}

.primary-link .icon-svg svg,
.secondary-link .icon-svg svg {
  width: 14px;
  height: 14px;
}

.primary-link:hover,
.secondary-link:hover,
.reserve-link:hover,
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(75, 53, 38, .20);
}

.hero-panel {
  padding: 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.hero-panel img {
  display: block;
  width: 188px;
  height: 188px;
  margin: 0 auto 18px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
}

.hero-panel b {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 28px;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.guide-panel {
  padding: 24px;
}

.guide-panel img {
  width: 100%;
  height: auto;
  max-height: 236px;
  margin-bottom: 18px;
  object-fit: contain;
  border-color: #ead7a9;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(75, 53, 38, .10);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 30px;
}

.home-card {
  display: block;
  min-height: 170px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(75, 53, 38, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-card small {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff2cf;
  color: #6b4a27;
  font-weight: 1000;
}

.home-card b {
  display: block;
  margin: 18px 0 8px;
  color: #0f172a;
  font-size: 28px;
}

.home-card span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.home-card .home-card-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 1000;
  line-height: 1;
}

.home-card .home-card-mark .icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  box-shadow: none;
}

.home-card .home-card-mark .icon-glyph {
  font-size: 23px;
}

.home-card .home-card-mark .icon-glyph > span {
  transform: translateY(0) scale(1.03);
}

.home-card .home-card-mark .icon-svg svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.25;
}

.home-card:hover {
  transform: translateY(-2px);
  border-color: #d5b979;
  box-shadow: 0 22px 52px rgba(75, 53, 38, .12);
}

.page-hero {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(135deg, #fffdf8, #fff4dd);
  box-shadow: 0 18px 48px rgba(75, 53, 38, .08);
}

.page-hero.slim {
  margin: 8px 0 30px;
  text-align: center;
}

.page-hero h1 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.section-heading {
  margin: 16px 0 18px;
  text-align: center;
}

.section-heading span {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid #e4c780;
  border-radius: 999px;
  background: #fff7e4;
  color: #6f4d28;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 14px 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 3.4vw, 44px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.public-room-grid {
  scroll-margin-top: 96px;
}

.compact-hero {
  padding: 22px 26px;
  margin-bottom: 24px;
}

.compact-hero h1 {
  margin: 10px 0 6px;
  font-size: clamp(28px, 3.2vw, 42px);
}

.compact-hero p {
  max-width: 620px;
  font-size: 14px;
  line-height: 1.55;
}

.unit-filter-panel {
  display: flex;
  justify-content: center;
  margin: -10px 0 16px;
}

.unit-filter-form {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  width: min(780px, 100%);
  padding: 10px 12px;
  border: 1px solid #ead7a9;
  border-radius: 18px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 10px 24px rgba(75, 53, 38, .06);
}

.unit-filter-form label {
  flex: 1 1 260px;
  margin: 0;
  font-size: 10px;
}

.unit-filter-form select {
  min-height: 34px;
  margin-top: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.unit-filter-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.unit-filter-links .btn.small {
  min-height: 30px;
}

.vehicle-grid.compact-units {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 0;
}

.compact-units .vehicle-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(75, 53, 38, .065);
}

.compact-units .vehicle-card::before {
  width: 90px;
  height: 90px;
  top: -40px;
  right: -32px;
  opacity: .58;
}

.compact-units .vehicle-photo {
  width: calc(100% - 18px);
  aspect-ratio: 16 / 7.4;
  margin: 9px 9px 0;
  border-radius: 13px;
  box-shadow: none;
}

.compact-units .vehicle-photo.placeholder {
  min-height: 94px;
}

.compact-units .vehicle-photo.placeholder .icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.compact-units .vehicle-photo.placeholder .icon-glyph {
  font-size: 23px;
}

.compact-units .vehicle-photo.placeholder .icon-glyph > span {
  transform: translateY(0) scale(1.08);
}

.compact-units .vehicle-photo.placeholder .icon-svg svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.25;
}

.compact-units .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 11px 13px 13px;
}

.vehicle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.vehicle-card-head .badge {
  margin-top: 2px;
  white-space: nowrap;
}

.compact-units .badge {
  gap: 5px;
  padding: 5px 9px;
  font-size: 10px;
}

.compact-units .badge::before {
  width: 6px;
  height: 6px;
}

.unit-type {
  display: inline-flex;
  margin-bottom: 4px;
  color: #7c5a1c;
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.compact-units .vehicle-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.12;
}

.compact-units .muted {
  font-size: 11.5px;
  line-height: 1.35;
}

.unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0 6px;
}

.unit-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border: 1px solid #ead7a9;
  border-radius: 999px;
  background: #fff8e9;
  color: #795328;
  font-size: 9.5px;
  font-weight: 1000;
}

.unit-price-row {
  margin-top: auto;
}

.compact-units .price {
  margin: 6px 0 1px;
  font-size: 18px;
  line-height: 1.15;
}

.compact-units .price small {
  font-size: 9.5px;
}

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

.compact-actions .btn {
  width: auto;
  min-height: 30px;
  padding: 4px 8px 4px 5px;
  font-size: 10px;
}

.compact-actions .icon {
  width: 23px;
  min-width: 23px;
  height: 23px;
}

.compact-actions .icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.3;
}

.compact-actions .icon-glyph {
  font-size: 12px;
}

.public-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: 0 16px 40px rgba(75, 53, 38, .08);
}

.public-contact-strip small,
.public-contact-strip span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.public-contact-strip b {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 22px;
}

.combined-social-section {
  margin: 28px 0 32px;
}

.combined-social-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.combined-social-heading {
  margin-top: 0;
}

.social-safe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.social-safe-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 16px 40px rgba(75, 53, 38, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.social-safe-card:hover {
  transform: translateY(-2px);
  border-color: #d5b979;
  box-shadow: 0 22px 52px rgba(75, 53, 38, .12);
}

.social-safe-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.social-safe-icon,
.social-safe-link > .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d8c39b;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1cf, #ffe5a8);
  color: #5c3e20;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
}

.social-safe-link > .icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  font-size: 13px;
  box-shadow: none;
}

.social-safe-link > .icon .icon-glyph,
.social-safe-link > .icon-glyph {
  font-size: 13px;
}

.social-safe-link > .icon-svg svg {
  width: 14px;
  height: 14px;
}

.facebook-safe-card .social-safe-icon,
.facebook-safe-card .social-safe-link > .icon {
  background: linear-gradient(135deg, #e7f0ff, #cfe1ff);
  border-color: #b9ccf2;
  color: #1f4f9a;
}

.instagram-safe-card .social-safe-icon,
.instagram-safe-card .social-safe-link > .icon {
  background: linear-gradient(135deg, #fff0f5, #ffd3e3);
  border-color: #efbad0;
  color: #8a1738;
}

.social-safe-head small {
  color: #7c5a1c;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.social-safe-head h3 {
  margin: 6px 0;
  color: #0f172a;
  font-size: 24px;
}

.social-safe-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.social-safe-preview {
  display: grid;
  gap: 10px;
}

.social-safe-preview article {
  padding: 14px;
  border: 1px solid #eee0bf;
  border-radius: 18px;
  background: #fff9ed;
}

.social-safe-preview b,
.social-safe-preview span {
  display: block;
}

.social-safe-preview b {
  color: #1d1a17;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 15px;
}

.social-safe-preview span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.social-safe-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8e9;
  color: #4b3526;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.social-safe-link b {
  font-size: 12px;
  line-height: 1.15;
}

.social-safe-link:hover {
  transform: translateY(-1px);
  border-color: #d5b979;
  box-shadow: 0 14px 28px rgba(75, 53, 38, .12);
}

.public-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 16px;
  border-top: 1px solid #eadfca;
  background: #fff;
  color: #6f675d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.public-footer div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.public-footer b {
  color: #1d1a17;
}

.public-footer a {
  color: #4b3526;
  font-weight: 1000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: 1px solid #d8b86b;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffaf0, #ffe9b9);
  box-shadow: 0 10px 24px rgba(75, 53, 38, .14);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sidebar-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #4b3526;
  transition: transform .18s ease, opacity .18s ease;
}

.public-nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: 1px solid #d8b86b;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffaf0, #ffe9b9);
  box-shadow: 0 10px 24px rgba(75, 53, 38, .14);
  cursor: pointer;
  outline: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.public-nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #4b3526;
  transition: transform .18s ease, opacity .18s ease;
}

.public-nav-toggle:focus-visible,
.sidebar-toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(213, 185, 121, .26), 0 10px 24px rgba(75, 53, 38, .14);
}

.sidebar-toggle:hover,
.public-nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(75, 53, 38, .18);
}

body.sidebar-open .sidebar-toggle span:nth-child(1),
body.public-nav-open .public-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.sidebar-open .sidebar-toggle span:nth-child(2),
body.public-nav-open .public-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.sidebar-open .sidebar-toggle span:nth-child(3),
body.public-nav-open .public-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.qp-layout {
  background: linear-gradient(180deg, #fffdf8 0%, #faf3e6 52%, #fffaf0 100%);
}

.qp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 286px;
  overflow: auto;
  padding: 18px 16px;
  background: linear-gradient(180deg, #fffdf8, #f6ead3);
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 14px 0 42px rgba(75, 53, 38, .13);
}

.qp-sidebar::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 31;
  width: 286px;
  height: 8px;
  background: linear-gradient(90deg, var(--gold), #ead7a9, var(--coffee-2));
}

.qp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.qp-brand h1 {
  margin: 0;
  color: #161410;
  font-size: 21px;
}

.qp-user {
  margin: 12px 8px 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.42;
}

.qp-user b {
  color: var(--coffee);
}

.qp-nav {
  display: grid;
  gap: 9px;
}

.qp-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d8b86b;
  border-radius: 18px;
  background: #fff8e8;
  color: #4b3526;
  box-shadow: 0 6px 14px rgba(156, 113, 44, .045);
  font-size: 14px;
  font-weight: 1000;
}

.qp-nav a:hover:not(.active) {
  background: #fff3d3;
  border-color: #caa86a;
  box-shadow: 0 8px 18px rgba(156, 113, 44, .08);
}

.qp-nav a.active,
.qp-nav a.active:hover {
  background: linear-gradient(135deg, #7a5737 0%, #4b3526 100%);
  color: #fffaf0;
  border-color: #d6ad58;
  box-shadow: 0 14px 28px rgba(75, 53, 38, .22);
}

.qp-nav a.active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -1px;
  width: 5px;
  border-radius: 999px;
  background: #f6d886;
}

.qp-nav .logout {
  margin-top: 12px;
}

.nav-ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid #dec483;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1cf, #ffe5a8);
  color: #75512d;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1;
  transition: transform .18s ease, filter .18s ease;
}

.icon.nav-ico {
  width: 32px;
  min-width: 32px;
  height: 32px;
  box-shadow: none;
}

.nav-ico.icon-glyph {
  font-size: 18px;
}

.nav-ico.icon-glyph > span {
  transform: translateY(0) scale(1.04);
}

.nav-ico.icon-svg svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.nav-dashboard,
.nav-inquiry,
.nav-home {
  background: linear-gradient(135deg, #e7f0ff, #cfe1ff);
  border-color: #b9ccf2;
}

.nav-reservations,
.nav-reserve,
.nav-requirements {
  background: linear-gradient(135deg, #fff1cf, #ffe5a8);
  border-color: #e2c790;
}

.nav-vehicles,
.nav-units {
  background: linear-gradient(135deg, #e8fff1, #c7f4d5);
  border-color: #b4e2bf;
}

.nav-pms,
.nav-settings {
  background: linear-gradient(135deg, #f1edff, #ded5ff);
  border-color: #cabdf5;
}

.nav-reports {
  background: linear-gradient(135deg, #fff0d9, #ffd1ad);
  border-color: #edbd8a;
}

.nav-track {
  background: linear-gradient(135deg, #e9fbff, #c7edf6);
  border-color: #a8dbe7;
}

.nav-contact {
  background: linear-gradient(135deg, #fff0f5, #ffd3e3);
  border-color: #efbad0;
}

.nav-logout {
  background: linear-gradient(135deg, #ffe8ee, #ffcdd9);
  border-color: #f1aabc;
}

.qp-nav a:hover .nav-ico,
.public-nav a:hover .nav-ico,
.btn:hover .icon,
.card:hover .icon,
.vehicle-card:hover .icon {
  transform: scale(1.12) rotate(-7deg);
  filter: saturate(1.15);
}

.qp-nav a.active .nav-ico {
  background: #fff8e8;
  color: #4b3526;
  border-color: #ead7a9;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
}

.qp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  margin-left: 286px;
  padding: 16px 26px;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.qp-topbar h2 {
  margin: 8px 0 4px;
  color: #171511;
  font-size: 25px;
}

.qp-topbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.topbar-mobile-brand {
  display: none;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #161410;
}

.topbar-logo-frame {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid #d8c39b;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(75, 53, 38, .10);
}

.topbar-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  padding: 3px;
}

.topbar-mobile-brand strong,
.topbar-mobile-brand small {
  display: block;
}

.topbar-mobile-brand strong {
  overflow: hidden;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-mobile-brand small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.qp-main {
  min-height: calc(100vh - 86px);
  margin-left: 286px;
  padding: 26px;
  background: linear-gradient(135deg, #fffdf8, #f3e5c8);
  transition: opacity .12s ease;
}

body.is-soft-loading .qp-main {
  opacity: .58;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #e4c780;
  border-radius: 999px;
  background: #fff7e4;
  color: #6f4d28;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero,
.keygen-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .68fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero > div,
.keygen-hero > div {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(135deg, #fffdf8, #fff4dd);
  box-shadow: 0 18px 48px rgba(75, 53, 38, .08);
}

.hero h1,
.keygen-hero h1 {
  margin: 20px 0 16px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero p,
.keygen-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.7;
}

.hero-meter,
.keygen-meter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.hero-meter::before,
.keygen-meter::before {
  content: "AR";
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border: 1px solid #d8c39b;
  border-radius: 50%;
  background: #fff8e9;
  color: var(--coffee);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(75, 53, 38, .10);
}

.logo-meter::before {
  display: none;
}

.logo-meter img {
  display: block;
  width: min(260px, 78%);
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 24px;
  border: 1px solid #ead7a9;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(75, 53, 38, .11);
}

.hero-meter span,
.hero-meter small,
.keygen-meter span,
.keygen-meter small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hero-meter strong,
.keygen-meter strong {
  display: block;
  margin: 8px 0;
  color: #171511;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 54px;
}

.panel,
.table-panel,
.vehicle-card,
.stat,
.install-copy,
.key-output-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, .98);
  box-shadow: var(--shadow);
}

.panel,
.table-panel,
.install-copy,
.key-output-panel {
  padding: 20px;
  margin-bottom: 18px;
}

.panel h1,
.panel h2,
.table-panel h1,
.table-panel h2,
.install-copy h1 {
  color: #171511;
  letter-spacing: .01em;
}

.page-head h1,
.install-copy h1 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 18px;
}

.process-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #ead7a9;
  border-radius: 999px;
  background: rgba(255, 253, 248, .96);
  color: #4b3526;
  box-shadow: 0 10px 22px rgba(75, 53, 38, .06);
  font-size: 13px;
  font-weight: 1000;
}

.process-strip .icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  box-shadow: none;
}

.process-strip b {
  color: #7a5737;
}

.muted,
.panel p,
.install-copy p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.narrow {
  width: min(480px, 100%);
  margin: 32px auto;
  padding: 32px;
}

.center {
  text-align: center;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.vehicle-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vehicle-card::before {
  content: "";
  position: absolute;
  top: -62px;
  right: -44px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #fff1cf;
  opacity: .75;
}

.vehicle-photo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(100% - 32px);
  aspect-ratio: 16 / 10;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px solid #ead7a9;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffdf8, #fff4dd);
  box-shadow: 0 14px 32px rgba(75, 53, 38, .08);
}

.vehicle-photo img,
.vehicle-detail-photo,
.vehicle-thumb img,
.vehicle-photo-current img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-photo.placeholder {
  min-height: 170px;
}

.vehicle-photo.placeholder .icon {
  width: 58px;
  min-width: 58px;
  height: 58px;
}

.vehicle-photo.placeholder .icon-glyph {
  font-size: 33px;
}

.vehicle-photo.placeholder .icon-glyph > span {
  transform: translateY(0) scale(1.08);
}

.vehicle-photo.placeholder .icon-svg svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
}

.vehicle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.vehicle-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  height: 46px;
  overflow: hidden;
  border: 1px solid #ead7a9;
  border-radius: 14px;
  background: #fff8e9;
}

.vehicle-thumb.placeholder .icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  box-shadow: none;
}

.vehicle-thumb.placeholder .icon-glyph {
  font-size: 18px;
}

.vehicle-thumb.placeholder .icon-svg svg {
  width: 18px;
  height: 18px;
}

.vehicle-detail-photo {
  width: 100%;
  max-height: 360px;
  margin-bottom: 16px;
  border: 1px solid #ead7a9;
  border-radius: 22px;
  background: #fff8e9;
  box-shadow: 0 14px 32px rgba(75, 53, 38, .08);
}

.vehicle-photo-current {
  display: grid;
  gap: 8px;
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-photo-current img {
  width: 100%;
  height: 120px;
  border: 1px solid #ead7a9;
  border-radius: 16px;
  background: #fff8e9;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: #d5b979;
  box-shadow: 0 22px 56px rgba(75, 53, 38, .12);
}

.vehicle-band {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 0;
  color: #4b3526;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 18px 22px 24px;
}

.vehicle-card h2 {
  margin: 0 0 9px;
  color: #171511;
  font-size: 25px;
  letter-spacing: 0;
}

.price {
  margin: 18px 0 4px;
  color: var(--coffee);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.chip {
  border: 1px solid #ead7a9;
  background: #fff8e9;
  color: #795328;
}

.badge {
  border: 1px solid #e5ca84;
  background: #fff1cd;
  color: #5c3e20;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  animation: livePulse 1.35s ease-out infinite;
}

@keyframes livePulse {
  0% {
    opacity: .42;
    transform: scale(.72);
  }
  55% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: .42;
    transform: scale(.72);
  }
}

.badge.good,
.available,
.approved,
.completed,
.paid,
.sent {
  background: #e6f7ec;
  color: #166534;
}

.badge.warn,
.pending,
.submitted,
.reserved,
.out,
.due,
.logged {
  background: #fff1cd;
  color: #795328;
}

.badge.info,
.rented,
.checked_in,
.checked_out {
  background: #eee4d0;
  color: #4b3526;
}

.badge.bad,
.maintenance,
.rejected,
.expired,
.failed,
.overdue,
.inactive {
  background: #f8e3e6;
  color: #8a1738;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2c790;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1cf, #ffe5a8);
  color: #7a5737;
  box-shadow: 0 10px 20px rgba(75, 53, 38, .08);
  transition: transform .18s ease, filter .18s ease;
  vertical-align: middle;
}

.icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin: auto;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  vector-effect: non-scaling-stroke;
}

.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.icon > .icon-svg,
.icon > .icon-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.icon-svg svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: auto;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.icon-glyph {
  color: inherit;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.icon-glyph > span {
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: 1em;
  transform: translateY(1px);
}

.icon.green {
  background: linear-gradient(135deg, #e7f8ec, #c7efcf);
  border-color: #b7dfbf;
  color: #166534;
}

.icon.blue {
  background: linear-gradient(135deg, #e6f0ff, #cfe0ff);
  border-color: #b9ccf2;
  color: #24385d;
}

.icon.orange {
  background: linear-gradient(135deg, #fff1cf, #ffd89d);
  border-color: #e2c790;
  color: #7a5737;
}

.icon.red {
  background: linear-gradient(135deg, #ffe8ee, #ffcdd9);
  border-color: #f1aabc;
  color: #8a1738;
}

.icon.purple {
  background: linear-gradient(135deg, #f1edff, #ded5ff);
  border-color: #cabdf5;
  color: #4e3a8a;
}

.btn.primary .icon {
  background: #fff8e8;
  border-color: #ead7a9;
  color: #4b3526;
}

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--coffee);
  box-shadow: 0 6px 14px rgba(156, 113, 44, .045);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
  transform: translateY(-1px);
  background: var(--btn-hover);
  border-color: #caa86a;
  color: #3d3025;
  box-shadow: 0 8px 17px rgba(117, 80, 38, .09);
}

.btn.primary {
  background: linear-gradient(135deg, #7a5737, #4b3526);
  color: #fff8e8;
  border-color: #d6ad58;
  box-shadow: 0 14px 28px rgba(75, 53, 38, .17);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #6d4a2d, #3d2a1f);
  color: #fffaf0;
}

.btn.danger {
  background: #8a1738;
  color: #fff;
  border-color: #8a1738;
}

.btn .icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  box-shadow: none;
}

.btn .icon svg {
  width: 13.5px;
  height: 13.5px;
  stroke-width: 2.25;
}

.btn .icon-glyph {
  font-size: 12px;
}

.btn .icon-glyph > span,
.row-actions .btn .icon-glyph > span,
.table-head .btn .icon-glyph > span,
.topline .btn .icon-glyph > span {
  transform: translateY(0);
}

.btn.small {
  min-height: 28px;
  padding: 3px 8px 3px 5px;
  font-size: 10.5px;
}

.btn.full,
.full {
  grid-column: 1 / -1;
}

.actions {
  margin-top: 14px;
}

.actions.compact {
  margin-top: 0;
  gap: 7px;
}

.mobile-filter-form {
  display: none;
  width: min(360px, 100%);
  margin: 0;
}

.mobile-filter-form label {
  width: 100%;
}

.mobile-filter-form select {
  min-height: 40px;
  margin-top: 6px;
  border-radius: 999px;
  background: #fff8e8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inquiry-form {
  display: grid;
  gap: 4px;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 18px 0 12px;
  border-top: 1px solid #ead7a9;
  background: transparent;
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1d1a17;
  font-size: 16px;
  line-height: 1.2;
}

.form-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ead7a9;
}

.form-section h2 .icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  box-shadow: none;
}

.form-section h2 .icon-glyph {
  font-size: 15px;
}

.form-section h2 .icon-svg svg {
  width: 15px;
  height: 15px;
}

.inquiry-form > .actions {
  justify-content: flex-end;
  margin-top: 8px;
}

label {
  display: block;
  margin: 0;
  color: #61574c;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .055em;
  text-transform: uppercase;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid #d7c291;
  border-radius: 16px;
  background: #fffdf8;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #f2db9d;
  border-color: var(--gold);
}

.readonly-field {
  background: #fff5df;
  color: #6d5845;
  cursor: default;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin: 0 8px 0 0;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d7c291;
  border-radius: 999px;
  background: #fff8e8;
  text-transform: none;
  letter-spacing: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  width: 100%;
  margin: 12px 0 16px;
}

.filter-bar input,
.filter-bar select {
  margin-top: 0;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.filter-bar .btn {
  width: 100%;
  min-height: 38px;
  justify-content: center;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.template-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ead7a9;
  border-radius: 18px;
  background: #fffdf8;
}

.template-note {
  margin: -4px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.template-card input,
.template-card textarea {
  font-size: 13px;
  font-weight: 800;
}

.compact-stats .stat {
  min-height: 112px;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 50px;
  text-align: center;
}

.signature-grid span {
  display: block;
  border-bottom: 1px solid #111;
  height: 28px;
  margin-bottom: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  padding: 18px 20px;
}

.stat::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -36px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(243, 223, 173, .40);
}

.stat > * {
  position: relative;
  z-index: 1;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}

.stats .stat .icon {
  width: 54px;
  min-width: 54px;
  height: 54px;
  border-width: 1px;
  box-shadow: 0 12px 24px rgba(75, 53, 38, .10);
}

.stats .stat .icon-glyph {
  color: inherit;
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.stats .stat .icon-glyph > span {
  transform: translateY(1px) scale(1.04);
}

.stats .stat .icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.3;
}

.stats .stat .icon-svg {
  color: inherit;
}

.kpi-sales .icon {
  background: linear-gradient(135deg, #e8fff1, #b9efca);
  border-color: #9edbb2;
  color: #0f7a3b;
}

.kpi-pending .icon {
  background: linear-gradient(135deg, #fff2cf, #ffc96c);
  border-color: #e7b65e;
  color: #7a4d12;
}

.kpi-trip .icon {
  background: linear-gradient(135deg, #e4f0ff, #adcaff);
  border-color: #9cbcee;
  color: #183f78;
}

.kpi-overdue .icon {
  background: linear-gradient(135deg, #ffe5ee, #ffb6cb);
  border-color: #ee9caf;
  color: #9a123b;
}

.stat span,
.stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: #171511;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0;
}

.two-col,
.modal-columns,
.keygen-layout,
.install-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.install-layout {
  grid-template-columns: minmax(0, .78fr) minmax(380px, 1fr);
}

.install-copy {
  position: sticky;
  top: 104px;
  padding: 32px;
}

.install-note,
.note,
.alert {
  padding: 14px 16px;
  border: 1px solid #ead7a9;
  border-radius: 18px;
  background: #fff8e9;
  color: #4b3526;
  font-weight: 850;
  line-height: 1.45;
}

.alert {
  margin-bottom: 14px;
}

.alert.success,
.alert.good {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.alert.danger,
.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert.warning {
  background: #fff8e8;
  color: #6f4800;
  border-color: #e9c56f;
}

.table-head,
.topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.table-head h1,
.table-head h2 {
  margin: 8px 0 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #f0dfb9;
  border-radius: 20px;
  background: #fffdf8;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.two-col .table-wrap table {
  min-width: 0;
}

th {
  padding: 13px;
  border-bottom: 1px solid #ddc58b;
  background: var(--table-head);
  color: var(--coffee);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 12px 13px;
  border-bottom: 1px solid #f2e4c5;
  background: #fffdf8;
  color: #2f241b;
  font-size: 13px;
  vertical-align: middle;
}

tr:nth-child(even) td {
  background: var(--table-alt);
}

tr:hover td {
  background: #fff8e9;
}

td small,
.cell-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.inline-action {
  display: inline-flex;
  margin: 0;
}

.row-actions .btn,
.table-head > .btn,
.table-head .actions .btn,
.topline .actions .btn {
  min-height: 28px;
  padding: 3px 8px 3px 5px;
  font-size: 10.5px;
}

.row-actions .btn .icon,
.table-head > .btn .icon,
.table-head .actions .btn .icon,
.topline .actions .btn .icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

.row-actions .btn .icon-glyph,
.table-head > .btn .icon-glyph,
.table-head .actions .btn .icon-glyph,
.topline .actions .btn .icon-glyph {
  font-size: 12px;
}

.row-actions .btn .icon-svg svg,
.table-head > .btn .icon-svg svg,
.table-head .actions .btn .icon-svg svg,
.topline .actions .btn .icon-svg svg {
  width: 13px;
  height: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #efe0bf;
  border-radius: 18px;
  background: #fffdf8;
}

.detail-grid span,
.detail-grid strong {
  min-width: 0;
  padding: 11px 13px;
  border-bottom: 1px solid #f0e2c8;
  overflow-wrap: anywhere;
}

.detail-grid span {
  background: #fff8e9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.detail-grid strong {
  background: #fffdf8;
  color: #1d1a17;
}

.detail-grid span:nth-last-child(2),
.detail-grid strong:last-child {
  border-bottom: 0;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff8e9;
}

.reservation-view-modal .modal-body {
  padding: 14px;
}

.reservation-view-stack {
  display: grid;
  gap: 10px;
}

.reservation-view-stack + .reservation-view-stack {
  margin-top: 10px;
}

.reservation-view-stack > section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ead7a9;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 10px 26px rgba(111, 79, 40, .07);
}

.reservation-view-modal .modal-columns {
  grid-template-columns: 1fr;
  gap: 14px;
}

.reservation-view-modal .modal-columns + .modal-columns {
  margin-top: 14px;
}

.reservation-view-modal .modal-columns > section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ead7a9;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 32px rgba(111, 79, 40, .08);
}

.reservation-view-modal h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #171511;
  font-size: 17px;
  line-height: 1.15;
}

.reservation-view-modal .detail-grid {
  grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr);
  border-radius: 14px;
}

.reservation-view-modal .detail-grid span,
.reservation-view-modal .detail-grid strong {
  padding: 8px 10px;
  font-size: 13px;
}

.reservation-view-modal .mini-list > div {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  padding: 8px;
  border-radius: 14px;
}

.reservation-view-modal .mini-list .btn,
.reservation-view-modal .detail-grid .btn {
  justify-self: start;
}

.customer-profile-modal .modal-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.customer-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #ead7a9;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(111, 79, 40, .07);
}

.customer-profile-hero h3 {
  margin: 6px 0 4px;
  color: #171511;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
}

.customer-profile-hero p,
.customer-profile-modal .muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.customer-status-box {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.customer-profile-modal .compact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-profile-modal .compact-stats .stat {
  min-height: 94px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(111, 79, 40, .07);
}

.customer-profile-modal .compact-stats .stat .icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
}

.customer-profile-modal .compact-stats .stat .icon-glyph {
  font-size: 17px;
}

.customer-profile-modal .compact-stats .stat .icon-glyph > span {
  transform: translateY(0);
}

.customer-profile-modal .compact-stats .stat .icon-svg svg {
  width: 16px;
  height: 16px;
}

.customer-profile-modal .compact-stats .stat strong {
  margin-top: 5px;
  font-size: clamp(18px, 2.2vw, 26px);
}

.customer-profile-modal .modal-columns {
  gap: 12px;
}

.customer-profile-modal .modal-columns > section,
.customer-profile-modal > .modal-body > section:not(.customer-profile-hero):not(.compact-stats) {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ead7a9;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(111, 79, 40, .06);
}

.customer-profile-modal h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #171511;
  font-size: 16px;
  line-height: 1.15;
}

.customer-profile-modal .detail-grid {
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  border-radius: 14px;
}

.customer-profile-modal .detail-grid span,
.customer-profile-modal .detail-grid strong {
  padding: 8px 10px;
  font-size: 12.5px;
}

.customer-profile-modal .compact-form {
  gap: 8px;
}

.customer-profile-modal .compact-form textarea {
  min-height: 64px;
}

.customer-profile-modal .compact-form .btn.full {
  width: 100%;
}

.customer-profile-modal .mini-list > div {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 14px;
}

.customer-profile-modal .mini-list p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-customers-table .row-actions {
  gap: 5px;
}

.file-preview {
  display: grid;
  gap: 6px;
  width: min(280px, 100%);
  padding: 6px;
  border: 1px solid #e4c782;
  border-radius: 14px;
  background: #fff8e9;
  color: #3b2819;
  text-decoration: none;
}

.file-preview img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}

.file-preview.thumb {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  width: 190px;
}

.file-preview.thumb img {
  width: 72px;
  height: 52px;
  max-height: 52px;
  object-fit: cover;
}

.file-preview em {
  color: var(--coffee);
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .02em;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.key-output {
  min-height: 160px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.key-placeholder {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 22px;
  border: 1px dashed #d7b15f;
  border-radius: 20px;
  background: #fff8e9;
  text-align: center;
}

.key-placeholder strong,
.key-placeholder span {
  display: block;
}

.modal {
  width: min(820px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(202, 168, 106, .75);
  border-radius: 30px;
  background: linear-gradient(180deg, #fffdf8 0%, #fffaf1 100%);
  box-shadow: 0 34px 100px rgba(31, 24, 18, .36);
  color: var(--ink);
}

.modal.wide {
  width: min(1040px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(50, 36, 25, .58);
  backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modalIn .16s ease-out both;
}

@keyframes modalIn {
  from {
    opacity: .2;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(12px);
}

.modal-head h2 {
  margin: 0;
  color: #171511;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
}

.modal-body {
  max-height: calc(90vh - 92px);
  overflow: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: #d7b15f #fff8e9;
}

.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: #fff8e9;
}

.modal-body::-webkit-scrollbar-thumb {
  border: 2px solid #fff8e9;
  border-radius: 999px;
  background: #d7b15f;
}

.modal-actions {
  padding: 0 22px 22px;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #f1aabc;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe8ee, #ffcdd9);
  color: #8a1738;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease;
}

.icon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 22px rgba(138, 23, 56, .16);
}

.letter {
  width: min(820px, 100%);
  min-height: 980px;
  margin: auto;
  padding: 52px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
  font-family: "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
}

.letter-logo {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-bottom: 24px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.letter-logo-img {
  display: block;
  width: 118px;
  height: 74px;
  object-fit: contain;
}

.letter-logo strong,
.letter-logo small {
  display: block;
}

.letter-logo small {
  font-size: 12px;
  letter-spacing: .18em;
}

.letter-date {
  text-align: right;
}

.letter .fill,
.letter-note span,
.letter-date span {
  display: inline-block;
  min-width: 190px;
  border-bottom: 1px solid #111;
  text-align: center;
}

.letter .fill.long {
  min-width: 360px;
}

.signature {
  margin-top: 42px;
}

.letter-note {
  margin-top: 42px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

code {
  padding: 2px 6px;
  border: 1px solid #ead7a9;
  border-radius: 8px;
  background: #fff8e9;
  color: var(--coffee);
}

@media (max-width: 1180px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-grid.compact-units {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    order: -1;
  }

  .hero,
  .keygen-hero,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .install-copy {
    position: static;
  }
}

@media (max-width: 1280px) and (min-width: 861px) {
  .public-body .site-header {
    gap: 14px;
    padding: 14px 28px;
  }

  .public-body .brand {
    gap: 11px;
  }

  .public-body .brand-logo-frame {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .public-body .brand strong {
    font-size: 20px;
    letter-spacing: .03em;
  }

  .public-body .brand small {
    font-size: 8.5px;
    letter-spacing: .16em;
  }

  .public-body .public-nav {
    gap: 5px;
  }

  .public-body .public-nav a {
    min-height: 36px;
    padding: 4px 8px 4px 5px;
    font-size: 11px;
  }

  .public-body .public-nav .icon {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }

  .public-body .public-nav .icon-glyph {
    font-size: 15px;
  }

  .public-body .public-nav .icon-svg svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 1080px) and (min-width: 861px) {
  .public-body .site-header {
    gap: 10px;
    padding: 12px 18px;
  }

  .public-body .brand {
    gap: 9px;
  }

  .public-body .brand-logo-frame {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }

  .public-body .brand strong {
    font-size: 16px;
    letter-spacing: .02em;
  }

  .public-body .brand small {
    font-size: 7.5px;
    letter-spacing: .13em;
  }

  .public-body .public-nav {
    gap: 4px;
  }

  .public-body .public-nav a {
    min-height: 32px;
    padding: 3px 6px 3px 4px;
    font-size: 9.5px;
  }

  .public-body .public-nav .icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
  }

  .public-body .public-nav .icon-glyph {
    font-size: 13px;
  }

  .public-body .public-nav .icon-svg svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 1100px) {
  .qp-sidebar {
    width: 250px;
  }

  .qp-sidebar::before {
    width: 250px;
  }

  .qp-topbar,
  .qp-main {
    margin-left: 250px;
  }
}

@media (max-width: 860px) {
  .qp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(86vw, 286px);
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(-104%);
    transition: transform .22s ease;
  }

  .qp-sidebar::before {
    display: none;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .qp-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    background: rgba(29, 26, 23, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-grid;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 999px;
  }

  .qp-topbar,
  .qp-main {
    margin-left: 0;
  }

  .qp-topbar {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 12px;
  }

  .qp-topbar > div {
    display: none;
  }

  .qp-topbar .eyebrow,
  .qp-topbar p,
  .qp-topbar .top-pill {
    display: none;
  }

  .topbar-mobile-brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    overflow: hidden;
    max-width: 100%;
  }

  .topbar-mobile-brand > span:last-child {
    min-width: 0;
    overflow: hidden;
  }

  .topbar-logo-frame {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .topbar-mobile-brand strong {
    font-size: 15px;
    letter-spacing: .01em;
  }

  .brand-full-name {
    display: none;
  }

  .brand-short-name {
    display: inline;
  }

  .qp-nav {
    grid-template-columns: 1fr;
  }

  .public-body .site-header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px;
    z-index: 100;
  }

  .public-body .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .public-body .brand-logo-frame {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .public-body .brand strong {
    font-size: clamp(15px, 3.6vw, 22px);
    line-height: 1.1;
  }

  .public-body .brand small {
    font-size: 8px;
    letter-spacing: .13em;
  }

  .public-nav-toggle {
    position: relative;
    z-index: 121;
    display: inline-grid;
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .public-nav {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    z-index: 120;
    display: grid;
    align-content: start;
    align-items: stretch;
    justify-items: stretch;
    grid-auto-rows: min-content;
    gap: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 96px);
    padding: 12px;
    overflow: auto;
    border: 1px solid #dfc588;
    border-radius: 18px;
    background: rgba(255, 253, 248, .98);
    box-shadow: 0 22px 54px rgba(75, 53, 38, .24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
  }

  body.public-nav-open {
    overflow: hidden;
  }

  body.public-nav-open .public-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .public-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(29, 26, 23, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  body.public-nav-open .public-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .public-body .public-nav a {
    display: flex;
    justify-content: flex-start;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 6px 12px 6px 7px;
    border-color: #e2c790;
    background: #fff8e8;
    font-size: 13px;
    text-transform: none;
    white-space: normal;
    box-shadow: none;
  }

  .public-body .public-nav .icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .public-body .public-nav a.active,
  .public-body .public-nav a:hover {
    background: #fff2d2;
  }

  .two-col,
  .three-col,
  .modal-columns,
  .keygen-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .unit-filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .unit-filter-links {
    justify-content: stretch;
  }

  .unit-filter-links .btn {
    flex: 1 1 120px;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px;
    z-index: 100;
  }

  .public-body .site-header {
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    z-index: 100;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .public-body .brand-logo-frame {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.12;
  }

  .brand small,
  .qp-sub {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .public-nav-toggle {
    display: inline-grid;
    position: relative;
    z-index: 121;
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .public-nav {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    z-index: 120;
    display: grid;
    align-content: start;
    align-items: stretch;
    justify-items: stretch;
    grid-auto-rows: min-content;
    gap: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 96px);
    padding: 12px;
    overflow: auto;
    border: 1px solid #dfc588;
    border-radius: 18px;
    background: rgba(255, 253, 248, .98);
    box-shadow: 0 22px 54px rgba(75, 53, 38, .24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
  }

  body.public-nav-open {
    overflow: hidden;
  }

  body.public-nav-open .public-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .public-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(29, 26, 23, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  body.public-nav-open .public-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .public-nav a,
  .top-pill {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 6px 12px 6px 7px;
    white-space: normal;
  }

  .public-body .public-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: stretch;
    max-width: none;
    border-color: #e2c790;
    background: #fff8e8;
    font-size: 13px;
    letter-spacing: 0;
    box-shadow: none;
    text-transform: none;
  }

  .public-body .public-nav .icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .public-body .public-nav a.active,
  .public-body .public-nav a:hover {
    background: #fff2d2;
  }

  .public-main {
    padding: 20px 12px 42px;
  }

  .public-footer {
    gap: 7px;
    padding: 16px 12px 18px;
    font-size: 10.5px;
    line-height: 1.35;
  }

  .public-footer div {
    gap: 5px 8px;
    width: 100%;
  }

  .hero-section {
    min-height: auto;
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-panel,
  .home-card,
  .page-hero,
  .public-contact-strip {
    border-radius: 24px;
    padding: 20px;
  }

  .home-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .social-safe-grid {
    grid-template-columns: 1fr;
  }

  .combined-social-card,
  .social-safe-card {
    border-radius: 24px;
    padding: 20px;
  }

  .social-safe-head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .social-safe-link {
    width: fit-content;
    max-width: 100%;
  }

  .home-card {
    min-height: 0;
  }

  .process-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-contact-strip {
    display: block;
  }

  .public-contact-strip .secondary-link {
    width: 100%;
    margin-top: 16px;
  }

  .qp-main {
    padding: 14px;
  }

  .hero > div,
  .hero-meter,
  .keygen-hero > div,
  .keygen-meter,
  .panel,
  .table-panel,
  .install-copy,
  .table-head {
    padding: 16px;
    border-radius: 22px;
  }

  .hero h1,
  .keygen-hero h1 {
    font-size: 40px;
  }

  .hero-meter::before,
  .keygen-meter::before {
    width: 96px;
    height: 96px;
    font-size: 28px;
  }

  .vehicle-grid,
  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-form {
    gap: 2px;
  }

  .form-section {
    padding: 16px 0 10px;
  }

  .vehicle-grid.compact-units {
    grid-template-columns: 1fr;
  }

  .vehicle-card {
    min-height: 0;
  }

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

  .btn,
  .row-actions .btn,
  button.btn,
  a.btn {
    width: auto;
  }

  .btn.full,
  button.btn.full,
  a.btn.full {
    width: 100%;
  }

  .table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .reservation-filter-buttons {
    display: none;
  }

  .mobile-filter-form {
    display: block;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
  }

  .admin-vehicles-table td[data-label="Rate"],
  .admin-vehicles-table td[data-label="ODO"],
  .admin-vehicles-table td[data-label="PMS"],
  .admin-reservations-table td[data-label="Vehicle"],
  .admin-reservations-table td[data-label="Schedule"],
  .admin-reservations-table td[data-label="Amount"] {
    display: none;
  }

  .admin-vehicles-table tr,
  .admin-reservations-table tr {
    display: grid;
    gap: 8px;
    padding: 12px;
  }

  .admin-vehicles-table td,
  .admin-reservations-table td {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    padding: 2px 0;
  }

  .admin-vehicles-table td[data-label="Vehicle"],
  .admin-reservations-table td[data-label="Reference"] {
    display: block;
    padding-bottom: 4px;
  }

  .admin-vehicles-table td[data-label="Vehicle"]::before,
  .admin-reservations-table td[data-label="Reference"]::before {
    display: none;
  }

  .admin-vehicles-table .vehicle-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }

  .admin-vehicles-table .vehicle-thumb {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .admin-vehicles-table .vehicle-row strong,
  .admin-reservations-table td[data-label="Reference"] strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
  }

  .admin-vehicles-table .vehicle-row small,
  .admin-reservations-table td[data-label="Reference"] small,
  .admin-reservations-table td[data-label="Customer"] small {
    display: block;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .admin-vehicles-table td[data-label="Status"] .badge,
  .admin-reservations-table td[data-label="Status"] .badge {
    width: fit-content;
    min-height: 28px;
    padding: 5px 12px;
    font-size: 11px;
  }

  .admin-vehicles-table .row-actions,
  .admin-reservations-table .row-actions {
    justify-content: flex-start;
    gap: 6px;
  }

  .admin-vehicles-table .row-actions .btn,
  .admin-reservations-table .row-actions .btn {
    min-height: 30px;
    padding: 4px 10px 4px 5px;
    font-size: 11px;
  }

  .admin-vehicles-table .row-actions .icon,
  .admin-reservations-table .row-actions .icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
  }

  .detail-grid,
  .mini-list > div {
    grid-template-columns: 1fr;
  }

  .customer-profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-status-box {
    justify-items: start;
    min-width: 0;
  }

  .customer-profile-modal .compact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-profile-modal .detail-grid,
  .customer-profile-modal .mini-list > div {
    grid-template-columns: 1fr;
  }

  .admin-customers-table .row-actions {
    align-items: flex-start;
  }

  .reservation-view-modal .detail-grid,
  .reservation-view-modal .mini-list > div {
    grid-template-columns: 1fr;
  }

  .reservation-view-stack > section {
    padding: 10px;
  }

  .file-preview,
  .file-preview.thumb {
    width: 100%;
  }

  .file-preview.thumb {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .file-preview.thumb img {
    width: 84px;
  }

  .reservation-view-modal .modal-body {
    padding: 12px;
  }

  .modal,
  .modal.wide {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 22px;
  }

  .modal-body {
    max-height: calc(100vh - 74px);
    padding: 14px;
  }

  .letter {
    padding: 28px 20px;
  }
}

@media (max-width: 520px) {
  .customer-profile-modal .compact-stats {
    grid-template-columns: 1fr;
  }

  .process-strip {
    grid-template-columns: 1fr;
  }

  .qp-nav {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .keygen-hero h1 {
    font-size: 34px;
  }
}

body.public-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-body .site-header,
.public-footer {
  flex: 0 0 auto;
}

.public-body .public-main {
  flex: 1 0 auto;
}

.public-footer {
  margin-top: auto;
}

[data-unit-card][hidden],
.is-filter-hidden {
  display: none !important;
}

.unit-filter-links button.btn {
  cursor: pointer;
}

.dashboard-calendar-panel {
  margin-bottom: 18px;
}

.calendar-head {
  align-items: center;
  gap: 16px;
}

.calendar-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-pill,
.calendar-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e3c37f;
  border-radius: 999px;
  background: #fff7e4;
  color: #6f4d28;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.calendar-pill {
  min-height: 31px;
  padding: 4px 11px 4px 6px;
  text-transform: uppercase;
}

.calendar-pill .icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
}

.calendar-pill .icon-glyph,
.calendar-mini-badge .icon-glyph {
  font-size: 14px;
}

.calendar-pill .icon-glyph > span,
.calendar-mini-badge .icon-glyph > span {
  transform: translateY(0);
}

.calendar-pill .icon-svg svg,
.calendar-mini-badge .icon-svg svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.35;
}

.calendar-pill.pickup,
.calendar-mini-badge.pickup {
  background: #eef5ff;
  border-color: #b9d2ff;
  color: #243d69;
}

.calendar-pill.return,
.calendar-mini-badge.return {
  background: #fff0cf;
  border-color: #e5b65f;
}

.calendar-scroll {
  overflow-x: auto;
  width: 100%;
  padding-bottom: 4px;
}

.calendar-grid {
  min-width: 760px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  min-width: 0;
  padding: 0 8px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  border: 1px solid #ead7a9;
  border-radius: 18px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(75, 53, 38, .045);
}

.calendar-day.empty {
  pointer-events: none;
  opacity: .38;
  background: rgba(255, 253, 248, .5);
  border-style: dashed;
  box-shadow: none;
}

.calendar-day.has-events {
  border-color: #d7b25e;
  background: linear-gradient(135deg, #fffdfa 0%, #fff4d8 100%);
}

.calendar-day.today {
  outline: 2px solid rgba(126, 84, 45, .26);
  outline-offset: 2px;
}

.calendar-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-date-row strong {
  font-size: 22px;
  line-height: 1;
}

.calendar-date-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.calendar-count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.calendar-mini-badge {
  min-height: 22px;
  padding: 4px 7px;
}

.calendar-preview-list {
  display: grid;
  gap: 4px;
  color: #6f6259;
  font-size: 11px;
  font-weight: 800;
}

.calendar-preview,
.calendar-more {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-preview.pickup b {
  color: #274c91;
}

.calendar-preview.return b {
  color: #7a542b;
}

.calendar-empty-text {
  color: #9a8d82;
  font-size: 11px;
  font-weight: 900;
}

.calendar-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.calendar-modal-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid #ead7a9;
  border-radius: 999px;
  background: #fff7e4;
  color: #6f4d28;
  font-size: 12px;
  font-weight: 1000;
}

.calendar-modal-summary .icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
}

.calendar-event-list {
  display: grid;
  gap: 12px;
}

.calendar-event-card {
  padding: 12px;
  border: 1px solid #ead7a9;
  border-radius: 18px;
  background: #fffdf8;
}

.calendar-event-card.pickup {
  border-color: #bfd4fb;
}

.calendar-event-card.return {
  border-color: #e4c083;
}

.calendar-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-event-top > div {
  flex: 1 1 auto;
  min-width: 0;
}

.calendar-event-top small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.calendar-event-top .icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.calendar-detail-grid.detail-grid {
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  border-radius: 14px;
}

.calendar-detail-grid.detail-grid span,
.calendar-detail-grid.detail-grid strong {
  padding: 8px 10px;
  font-size: 12px;
}

.calendar-empty-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
  border: 1px dashed #ead7a9;
  border-radius: 18px;
  background: #fffdf8;
  color: var(--muted);
}

.mail-settings-grid {
  align-items: end;
}

.smtp-insecure-toggle {
  min-height: 54px;
  align-items: center;
}

@media (max-width: 860px) {
  .public-nav {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    justify-items: center !important;
  }

  .public-body .public-nav a {
    justify-content: center !important;
    justify-self: stretch;
    width: 100%;
    text-align: center;
  }

  .public-body .public-nav a span {
    flex: 0 1 auto;
  }

  .unit-filter-form {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .unit-filter-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .unit-filter-links .btn,
  .unit-filter-links button.btn {
    width: 100%;
    justify-content: center;
  }

  .calendar-head {
    align-items: flex-start;
  }

  .calendar-summary {
    justify-content: flex-start;
  }

  .calendar-scroll {
    overflow-x: visible;
  }

  .calendar-grid {
    min-width: 0;
    gap: 6px;
  }

  .calendar-weekday {
    padding: 0 2px 3px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .calendar-day {
    gap: 5px;
    min-height: 84px;
    padding: 7px 6px;
    border-radius: 14px;
  }

  .calendar-date-row {
    gap: 4px;
  }

  .calendar-date-row strong {
    font-size: 18px;
  }

  .calendar-date-row small {
    font-size: 8px;
  }

  .calendar-mini-badge {
    min-height: 18px;
    padding: 3px 5px;
    font-size: 9px;
  }

  .calendar-preview-list {
    gap: 2px;
    font-size: 9px;
  }

  .calendar-empty-text {
    font-size: 9px;
  }

  .calendar-event-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .dashboard-calendar-panel {
    padding-inline: 12px;
  }

  .calendar-head {
    display: grid;
    gap: 8px;
  }

  .calendar-summary {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 6px;
  }

  .calendar-pill {
    width: 100%;
    min-height: 26px;
    padding: 3px 8px;
    font-size: 9px;
  }

  .calendar-pill .icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-weekday {
    padding-bottom: 2px;
    font-size: 8px;
    letter-spacing: .04em;
  }

  .calendar-day {
    gap: 3px;
    min-height: 62px;
    padding: 5px 4px;
    border-radius: 11px;
    box-shadow: none;
  }

  .calendar-day.empty {
    opacity: .22;
  }

  .calendar-date-row {
    align-items: flex-start;
  }

  .calendar-date-row strong {
    font-size: 15px;
  }

  .calendar-date-row small,
  .calendar-empty-text,
  .calendar-preview-list {
    display: none;
  }

  .calendar-count-row {
    gap: 2px;
  }

  .calendar-mini-badge {
    max-width: 100%;
    min-height: 16px;
    padding: 2px 4px;
    font-size: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 520px) {
  .public-footer {
    font-size: 9.5px;
  }

  .calendar-detail-grid.detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .dashboard-calendar-panel {
    padding-inline: 10px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-weekday {
    font-size: 7.5px;
  }

  .calendar-day {
    min-height: 54px;
    padding: 4px 3px;
    border-radius: 9px;
  }

  .calendar-date-row strong {
    font-size: 13px;
  }

  .calendar-mini-badge {
    width: 8px;
    min-width: 8px;
    height: 8px;
    min-height: 8px;
    padding: 0;
    border-radius: 999px;
    color: transparent;
    font-size: 0;
    gap: 0;
  }
}

@media (max-width: 860px) {
  body.public-body .site-header .public-nav-toggle {
    display: inline-grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }

  body.public-body .site-header #publicNavigation.public-nav {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) !important;
    left: 16px !important;
    right: 20px !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    justify-items: stretch !important;
    gap: 8px !important;
    padding: 14px !important;
    overflow-x: hidden !important;
    transform: translateY(-8px) scale(.985) !important;
  }

  body.public-body.public-nav-open .site-header #publicNavigation.public-nav {
    transform: translateY(0) scale(1) !important;
  }

  body.public-body .site-header #publicNavigation.public-nav > a {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    grid-column: 1 / -1 !important;
    flex: 0 0 auto !important;
    inline-size: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    text-align: center !important;
  }

  body.public-body .site-header #publicNavigation.public-nav > a > span:last-child {
    flex: 0 1 auto !important;
    min-width: 0;
    text-align: center;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .qp-sidebar,
  .qp-topbar,
  .page > *:not(dialog[open]),
  .no-print,
  .modal-head,
  .modal::backdrop {
    display: none !important;
  }

  .qp-main,
  .public-main {
    margin: 0;
    padding: 0;
  }

  dialog[open] {
    position: static;
    width: 100%;
    max-height: none;
    border: 0;
    box-shadow: none;
  }

  dialog[open] .modal-body {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .letter {
    width: 100%;
    min-height: 100vh;
    border: 0;
    box-shadow: none;
  }
}
