/* Luxora Detailing Studio
   Palette: onyx (black lacquer), gold (brand + action), with one accent per coating:
   ice blue for graphene, violet for borophene. Studio lighting is the signature: hex ceiling lights and a
   gold horizon glow.
   Type: Oswald for display headlines, Montserrat for everything else (wide-tracked caps for labels). */

:root,
[data-bs-theme="dark"] {
  --onyx: #0b0b0c;
  --onyx-2: #131315;
  --onyx-3: #1b1b1e;
  --onyx-4: #242428;
  --line: #2c2c31;
  --line-strong: #3a3a40;
  --ink: #ece9e2;
  --muted: #a39e92;
  --faint: #6f6b63;

  --gold: #c9a24b;
  --gold-light: #ecd28f;
  --gold-deep: #8f6b24;
  --gold-tint: rgba(201, 162, 75, 0.12);
  --gold-grad: linear-gradient(180deg, #f3dc9a 0%, #d6b05a 45%, #a9822f 100%);

  --ice: #6f9dff;
  --ice-tint: rgba(111, 157, 255, 0.14);
  --violet: #b06cff;
  --violet-tint: rgba(176, 108, 255, 0.14);

  --danger: #f07167;
  --ok: #5cc98b;
  --warn: #e7b84f;

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Oswald", "Montserrat", system-ui, sans-serif;
  --track: 0.32em;

  --radius-sm: 4px;
  --radius: 6px;
  --sidebar-w: 256px;

  /* Bootstrap integration (dark theme) */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 0.9375rem;
  --bs-body-line-height: 1.55;
  --bs-body-color: var(--ink);
  --bs-body-color-rgb: 236, 233, 226;
  --bs-body-bg: var(--onyx);
  --bs-body-bg-rgb: 11, 11, 12;
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--onyx-3);
  --bs-emphasis-color: #fff;
  --bs-border-color: var(--line);
  --bs-heading-color: #fff;
  --bs-link-color: var(--gold-light);
  --bs-link-color-rgb: 236, 210, 143;
  --bs-link-hover-color: #fff;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-primary-rgb: 201, 162, 75;
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius);
  --bs-focus-ring-color: rgba(201, 162, 75, 0.4);
  --bs-form-invalid-color: var(--danger);
  --bs-form-invalid-border-color: var(--danger);
}

body { -webkit-font-smoothing: antialiased; background: var(--onyx); }
::selection { background: var(--gold); color: var(--onyx); }

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
h1, .h1 { font-size: 1.625rem; line-height: 1.2; margin-bottom: 0.25rem; }
h2, .h2 { font-size: 1.25rem; line-height: 1.25; }
h3, .h3 { font-size: 1.0625rem; line-height: 1.3; }

.num, table { font-variant-numeric: tabular-nums; }
.text-muted, .muted { color: var(--muted) !important; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase;
  color: var(--gold); margin: 0;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0.5rem; z-index: 2000;
  background: var(--gold); color: var(--onyx); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 0.5rem; }

/* ---------- wordmark ---------- */
/* The logo artwork is an image (letters are custom, not a font). Width sets the size; height follows. */
.wordmark { display: inline-block; line-height: 0; }
.wordmark img { display: block; width: 150px; height: auto; }
.wordmark-lg .wordmark img { width: clamp(240px, 60vw, 460px); }
.wordmark-md .wordmark img { width: 220px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  --bs-btn-padding-y: 0.6rem; --bs-btn-padding-x: 1.15rem;
}
.btn-sm { font-size: 0.6875rem; --bs-btn-padding-y: 0.35rem; --bs-btn-padding-x: 0.75rem; }
.btn-lg { font-size: 0.875rem; --bs-btn-padding-y: 0.85rem; --bs-btn-padding-x: 1.5rem; }
.btn-primary {
  --bs-btn-color: var(--onyx); --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--onyx); --bs-btn-hover-bg: var(--gold-light); --bs-btn-hover-border-color: var(--gold-light);
  --bs-btn-active-color: var(--onyx); --bs-btn-active-bg: #b8913c; --bs-btn-active-border-color: #b8913c;
  --bs-btn-disabled-color: var(--onyx); --bs-btn-disabled-bg: var(--gold); --bs-btn-disabled-border-color: var(--gold);
  --bs-btn-focus-shadow-rgb: 201, 162, 75;
  background-image: var(--gold-grad);
}
.btn-primary:hover { background-image: none; }
.btn-outline-secondary, .btn-outline-gold {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-bg: var(--gold-tint); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--gold);
  --bs-btn-active-bg: var(--gold-tint); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--gold);
}
.btn-outline-gold { --bs-btn-color: var(--gold-light); --bs-btn-border-color: var(--gold); }
.btn-danger, .btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-border-color: var(--danger); }

/* ---------- forms ---------- */
.form-label { font-weight: 500; font-size: 0.875rem; margin-bottom: 0.35rem; color: #d9d5cc; }
.form-text { color: var(--muted); }
.form-control, .form-select {
  background-color: var(--onyx-2); border-color: var(--line-strong); color: var(--ink);
}
.form-control::placeholder { color: var(--faint); }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  background-color: var(--onyx-2); color: #fff;
  border-color: var(--gold); box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
}
.form-check-input { background-color: var(--onyx-2); border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-control:disabled, .form-select:disabled { background-color: var(--onyx-3); color: var(--faint); }

/* ---------- app shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  --bs-offcanvas-width: 280px;
  --bs-offcanvas-bg: var(--onyx-2);
  --bs-offcanvas-color: var(--ink);
  background: var(--onyx-2);
  border-right: 1px solid var(--line);
}
/* The menu scrolls inside the sidebar when it's taller than the screen, so the account footer (sign out) is
   always reachable; with a short menu the footer still sits at the bottom. */
.sidebar-inner {
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 1.5rem 0.875rem; gap: 1.75rem;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
@media (min-width: 992px) { .sidebar-inner { height: 100%; } }

@media (min-width: 992px) {
  .sidebar {
    position: sticky; top: 0; height: 100vh;
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  }
}

.brand { display: flex; justify-content: center; text-decoration: none; padding: 0.25rem 0.5rem; }
.brand:hover .wordmark img { filter: brightness(1.1); }

.nav-heading {
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 0.5rem 0.75rem;
}
.sidebar .nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: #c4c0b6; font-weight: 500; font-size: 0.875rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}
.sidebar .nav-link i { font-size: 1.05rem; color: var(--gold); opacity: 0.8; }
.sidebar .nav-link:hover { background: var(--onyx-3); color: #fff; }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, var(--gold-tint), transparent); color: #fff; border-left-color: var(--gold);
}
.sidebar .nav-link.active i { opacity: 1; }

.sidebar-foot {
  margin-top: auto; border-top: 1px solid var(--line); padding: 1rem 0.75rem 0;
  font-size: 0.875rem;
}
.sidebar-foot .who { color: #fff; font-weight: 600; }
.sidebar-foot .role { color: var(--muted); font-size: 0.8125rem; }
.sidebar-foot a, .sidebar-foot .link-btn { color: #c4c0b6; text-decoration: none; font-size: 0.8125rem; }
.sidebar-foot a:hover, .sidebar-foot .link-btn:hover { color: var(--gold-light); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.topbar {
  position: sticky; top: 0; z-index: 1020;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--onyx-2); border-bottom: 1px solid var(--line);
  padding: 0.625rem 1rem; padding-top: max(0.625rem, env(safe-area-inset-top));
}
.topbar .brand { padding: 0; }
.topbar .menu-btn { color: var(--gold-light); border: 1px solid var(--line-strong); padding: 0.25rem 0.6rem; letter-spacing: 0; }

.content {
  flex: 1 1 auto; min-width: 0;
  padding: 2rem clamp(1rem, 3vw, 2.75rem) 3rem;
  background: radial-gradient(70% 40% at 100% 0%, rgba(201, 162, 75, 0.06), transparent 70%), var(--onyx);
}
.content-inner { max-width: 1180px; }

.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--gold-grad);
}
.page-head p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- surfaces ---------- */
.panel {
  background: linear-gradient(180deg, var(--onyx-3), var(--onyx-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
}
.panel + .panel { margin-top: 1rem; }
.narrow { max-width: 540px; }
.medium { max-width: 820px; }
.panel-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.875rem;
}

.stat { display: flex; flex-direction: column; gap: 0.125rem; }
.stat .value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1; color: #fff; }
.stat .label { color: var(--muted); font-size: 0.8125rem; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.25rem; margin: 0; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dd { margin: 0; }

.alert { border-radius: var(--radius-sm); border-width: 1px 1px 1px 3px; }
.alert-success { --bs-alert-bg: rgba(92, 201, 139, 0.08); --bs-alert-border-color: var(--ok); --bs-alert-color: #bfead0; }
.alert-danger { --bs-alert-bg: rgba(240, 113, 103, 0.08); --bs-alert-border-color: var(--danger); --bs-alert-color: #f6c4bf; }
.alert-warning { --bs-alert-bg: var(--gold-tint); --bs-alert-border-color: var(--gold); --bs-alert-color: #f1dfb3; }

.dropdown-menu { --bs-dropdown-bg: var(--onyx-3); --bs-dropdown-border-color: var(--line-strong);
  --bs-dropdown-link-hover-bg: var(--gold-tint); --bs-dropdown-link-active-bg: var(--gold); --bs-dropdown-link-active-color: var(--onyx); }

/* ---------- status marks ---------- */
.status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-ok { color: var(--ok); }
.status-off { color: var(--faint); }
.status-off::before { box-shadow: none; }
.status-warn { color: var(--warn); }
.status-bad { color: var(--danger); }

.chip {
  display: inline-block; font-size: 0.75rem; font-weight: 500;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: var(--onyx-4); border: 1px solid var(--line-strong); color: var(--ink);
  white-space: nowrap;
}

/* ---------- tables: become stacked cards on phones ---------- */
.data-table { width: 100%; margin: 0; background: transparent; color: var(--ink); }
.data-table th {
  font-weight: 600; color: var(--muted); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); padding: 0.8rem 0.875rem; text-align: left;
  background: var(--onyx-3);
}
.data-table td { padding: 0.85rem 0.875rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--onyx-2); }
.cell-sub { display: block; color: var(--muted); font-size: 0.8125rem; }
.row-inactive td { color: var(--faint); }

@media (max-width: 767.98px) {
  .data-table thead { position: absolute; left: -9999px; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { border: 0; padding: 0.2rem 0; display: flex; gap: 1rem; justify-content: space-between; }
  .data-table td[data-label]::before {
    content: attr(data-label); color: var(--muted); font-size: 0.8125rem; flex: 0 0 38%;
  }
  .data-table td.cell-primary { display: block; font-size: 1rem; padding-bottom: 0.35rem; }
  .data-table td.cell-primary::before { display: none; }
  .data-table td.cell-actions { justify-content: flex-end; padding-top: 0.5rem; }
}

/* ---------- permission picker ---------- */
.perm-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.875rem 1rem; background: var(--onyx-2); }
.perm-group legend {
  float: none; width: auto; font-weight: 600; font-size: 0.9375rem; color: #fff;
  padding: 0; margin: 0;
}
.perm-group .group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }

/* ---------- one-time password ---------- */
.secret {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: 0.06em;
  background: var(--gold-tint); border: 1px dashed var(--gold); border-radius: var(--radius);
  padding: 0.75rem 1rem; display: inline-block; user-select: all; color: var(--gold-light);
}

/* ---------- the signature: studio lighting on black lacquer ---------- */
.lacquer {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 55% at 50% 108%, rgba(201, 162, 75, 0.28) 0%, rgba(201, 162, 75, 0.06) 45%, transparent 70%),
    radial-gradient(120% 90% at 20% 0%, #1a1a1d 0%, var(--onyx) 60%);
  color: var(--ink);
}
.lacquer::before {
  content: ""; position: absolute; inset: -40% -60%; z-index: -1;
  background: linear-gradient(115deg,
    transparent 44%,
    rgba(255, 255, 255, 0.03) 46%,
    rgba(255, 236, 190, 0.14) 49.5%,
    rgba(255, 255, 255, 0.03) 53%,
    transparent 55%);
  transform: translateX(-18%);
  animation: sweep 2.6s cubic-bezier(.2, .7, .1, 1) 0.2s both;
}
@keyframes sweep {
  from { transform: translateX(-60%); opacity: 0; }
  to { transform: translateX(-18%); opacity: 1; }
}

/* Hexagon ceiling lights. The element fades out at its edges; ::before draws the light tubes. */
.hex-lights {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 70% 0%, #000 0%, transparent 75%);
}
.hex-lights::before {
  content: ""; position: absolute; inset: 0;
  background: #fff;
  -webkit-mask: url("../img/hex.svg") 0 0 / 112px 200px repeat;
  mask: url("../img/hex.svg") 0 0 / 112px 200px repeat;
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

/* Gold horizon line, as under the service cards on the poster. */
.gold-rule {
  height: 1px; border: 0; margin: 0; opacity: 1;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .lacquer::before { animation: none; }
}

/* ---------- sign-in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--onyx); }
.auth-brand {
  padding: 2.5rem 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; min-height: 240px; border-bottom: 1px solid var(--line);
}
.auth-brand .tag { color: #d8d4ca; margin: 1.5rem 0 0; font-size: 0.75rem; letter-spacing: var(--track); text-transform: uppercase; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem 3rem; background: var(--onyx-2); }
.auth-form .inner { width: 100%; max-width: 380px; }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr); }
  .auth-brand { padding: 3.5rem; min-height: 100vh; border-bottom: 0; border-right: 1px solid var(--line); }
}

/* ---------- public site ---------- */
.site { background: var(--onyx); }
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3.5rem);
}
.site-header .brand { padding: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); }
.site-nav a:not(.btn) {
  color: #d8d4ca; text-decoration: none; font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.site-nav a:not(.btn):hover { color: var(--gold-light); }
@media (max-width: 575.98px) { .site-nav a:not(.btn) { display: none; } }

.site-hero {
  min-height: min(100vh, 860px);
  display: flex; align-items: center;
  padding: 8rem clamp(1rem, 5vw, 4rem) 5rem;
}
.site-hero .inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.hero-tag { color: #d8d4ca; font-size: 0.75rem; letter-spacing: var(--track); text-transform: uppercase; margin: 0 0 2.5rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.25rem, 11vw, 7.5rem); line-height: 0.92; letter-spacing: 0.005em;
  color: #fff; margin: 1rem 0 0;
}
.hero-title span { display: block; }
.hero-lede {
  color: #cfcac0; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.8;
  max-width: 44ch; margin: 1.75rem 0 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.site-section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem); }
.site-section .inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1; color: #fff; margin: 0.75rem 0 0;
}

/* service cards: 3 across, then 2 */
.services { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .services { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 3; } }
@media (min-width: 1100px) { .service { grid-column: span 2; }
  .service:nth-child(4), .service:nth-child(5) { grid-column: span 3; } }

.service {
  --accent: var(--gold); --accent-tint: var(--gold-tint); --accent-grad: var(--gold-grad);
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--onyx-3), var(--onyx-2) 60%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.service:hover { border-color: var(--accent); transform: translateY(-3px); }
.service.accent-ice { --accent: var(--ice); --accent-tint: var(--ice-tint); --accent-grad: linear-gradient(180deg, #a9c6ff, #5b8cff); }
.service.accent-violet { --accent: var(--violet); --accent-tint: var(--violet-tint); --accent-grad: linear-gradient(180deg, #d4a8ff, #9d4dff); }

.service-art {
  position: relative; height: 150px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 120% at 75% 0%, var(--accent-tint), transparent 70%), var(--onyx);
  border-bottom: 1px solid var(--line);
}
.service-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  -webkit-mask: url("../img/hex.svg") 0 0 / 42px 75px repeat;
  mask: url("../img/hex.svg") 0 0 / 42px 75px repeat;
  opacity: 0.22;
}
.service-art::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-30%); transition: transform .8s ease;
}
.service:hover .service-art::after { transform: translateX(30%); }
.service-art i {
  position: absolute; right: 1.25rem; bottom: 1rem; font-size: 2.75rem; line-height: 1;
  color: var(--accent); filter: drop-shadow(0 0 14px var(--accent));
}
.service-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.service-name { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; color: #fff; }
.service-name .accent {
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.service-tag { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0.5rem 0 1.25rem; }
.service-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.service-points li { display: flex; gap: 0.75rem; align-items: center; color: #dcd8cf; font-size: 0.875rem; }
.service-points i { color: var(--accent); font-size: 1rem; flex: 0 0 auto; }
.service-foot {
  margin-top: auto; padding-top: 1.5rem; font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}

/* why us */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
  padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillar { text-align: center; }
.pillar i { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 0.875rem; }
.pillar span { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: #d8d4ca; line-height: 1.7; display: block; }
@media (min-width: 768px) { .pillar + .pillar { border-left: 1px solid var(--line); } }

.motto { text-align: center; }
.motto .values { font-size: 0.75rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin: 0; }
.motto .values span { color: var(--gold); padding: 0 0.75rem; }
.motto .line {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1rem, 3vw, 1.75rem); letter-spacing: 0.4em; margin: 1.5rem 0 0; padding-left: 0.4em;
}

.site-footer {
  padding: 2.5rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  color: var(--muted); font-size: 0.8125rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

/* ---------- plain pages (errors) ---------- */
.plain-page { min-height: 100vh; display: flex; align-items: center; }
.plain { max-width: 560px; margin: 0 auto; padding: 3rem 1.25rem; }
.plain .code {
  font-family: var(--font-display); font-weight: 700; font-size: 4.5rem; line-height: 1; margin: 0 0 0.75rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.pager { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; margin-top: 1rem; }

/* ======================================================================
   Release 1 screens: shared building blocks (mobile first)
   ====================================================================== */

/* phone tab bar */
.app-body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { .app-body { padding-bottom: 0; } }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex; justify-content: space-around; align-items: stretch;
  background: rgba(19, 19, 21, 0.97); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px);
}
.tabbar a, .tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; color: var(--muted); text-decoration: none; background: none; border: 0;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
}
.tabbar i { font-size: 1.25rem; }
.tabbar a.active { color: var(--gold-light); }
.tabbar .tab-new i {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-grad); color: var(--onyx); font-size: 1.35rem; margin-top: -14px;
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.35);
}
.tabbar .tab-new { color: var(--gold-light); }

.side-search { position: relative; align-items: center; }
.side-search i { position: absolute; left: 0.7rem; color: var(--faint); font-size: 0.85rem; }
.side-search input { padding-left: 2rem; }

/* page furniture */
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; color: var(--muted);
  text-decoration: none; margin-bottom: 0.4rem; }
.back-link:hover { color: var(--gold-light); }
.head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
@media (max-width: 575.98px) {
  .form-actions .btn, .head-actions .btn { flex: 1 1 auto; }
}
.panel + details.panel, details.panel + .panel { margin-top: 1rem; }
details.panel > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
summary::marker { content: ""; }
.step-buttons > form { order: 0; }
.step-buttons > details.step { order: 1; }
.step-buttons > details.step-danger { order: 2; }
details > summary { cursor: pointer; }
.text-warn { color: var(--warn) !important; }
.eyebrow-sm { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* search and filters */
.search-bar, .filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; position: relative;
}
.search-bar > i { position: absolute; left: 0.9rem; top: 0.95rem; color: var(--faint); z-index: 1; }
.search-bar input[type=search] { flex: 1 1 220px; padding-left: 2.4rem; min-height: 46px; }
.search-filter { flex: 0 0 auto; width: auto; min-height: 46px; }
.search-toggle { display: flex; align-items: center; gap: 0.4rem; margin: 0 0.25rem; }
.search-bar .btn, .filter-bar .btn { min-height: 46px; }
.filter-bar > .form-control, .filter-bar > .form-select { flex: 1 1 140px; width: auto; min-height: 44px; }
.filter-search { position: relative; flex: 2 1 220px; }
.filter-search i { position: absolute; left: 0.9rem; top: 0.85rem; color: var(--faint); }
.filter-search input { padding-left: 2.4rem; min-height: 44px; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); }
.empty i { font-size: 2.25rem; color: var(--gold); display: block; margin-bottom: 0.5rem; }

/* card lists (phone-first rows) */
.card-list, .plain-list, .job-cards, .plan-list, .invoice-lines, .timeline { list-style: none; margin: 0; padding: 0; }
.card-list { display: grid; gap: 0.5rem; }
.card-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--onyx-2); color: var(--ink); text-decoration: none; min-height: 60px;
}
.card-row:hover { border-color: var(--gold); color: var(--ink); }
.card-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.card-title { font-weight: 600; color: #fff; }
.card-sub { font-size: 0.8125rem; color: var(--muted); }
.card-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex: 0 0 auto; }
.card-go { color: var(--faint); }
.amount { font-weight: 600; color: #fff; white-space: nowrap; }

.plain-list > li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.plain-list > li:last-child { border-bottom: 0; }
.plain-list-link { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; color: var(--ink); min-width: 0; }
.plain-list-link:hover .plate { border-color: var(--gold); }
.row-link { color: #fff; font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--gold-light); }
.call-link { display: inline-flex; gap: 0.4rem; align-items: center; color: var(--gold-light); text-decoration: none; }

/* number plates */
.plate {
  display: inline-block; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em;
  padding: 0.12rem 0.5rem; border-radius: 4px; border: 1px solid var(--line-strong);
  background: #f5f3ee; color: #111; font-size: 0.8125rem; white-space: nowrap; width: fit-content;
}
.plate-lg { font-size: 1.05rem; padding: 0.2rem 0.65rem; }
.plate-input { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1.25rem; min-height: 52px; }
.chip-gold { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-light); }

/* radio cards */
.choice-list { display: grid; gap: 0.5rem; }
.choice {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0.9rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--onyx-2);
}
.choice:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.choice .form-check-input { margin-top: 0.2rem; flex: 0 0 auto; }
.choice-title { display: block; font-weight: 600; color: #fff; }

/* tabs */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a {
  padding: 0.7rem 1rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.875rem;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a.active { color: #fff; border-bottom-color: var(--gold); }

/* catalog */
.catalog-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
.catalog-grid > .panel + .panel { margin-top: 0; }
.catalog-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.plan-list > li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center;
  padding: 0.7rem 0; border-top: 1px solid var(--line);
}
.plan-price { text-align: right; display: flex; flex-direction: column; }
.plan-actions { grid-column: 1 / -1; display: flex; gap: 0.5rem; align-items: center; }

/* job statuses */
.job-status {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600;
  padding: 0.18rem 0.6rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
}
.job-enquiry { color: #a7a39a; }
.job-booked { color: #8fb4ff; }
.job-vehicle-received { color: #b9a2ff; }
.job-in-progress { color: var(--gold-light); }
.job-waiting { color: #f0a85a; }
.job-completed { color: var(--ok); }
.job-delivered { color: #8a867d; }
.job-cancelled { color: var(--danger); }

.status-strip { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.status-strip a {
  white-space: nowrap; padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.8125rem; font-weight: 600;
}
.status-strip a.active { border-color: var(--gold); color: #fff; background: var(--gold-tint); }
.status-strip .count { color: var(--gold-light); margin-left: 0.15rem; }
@media (min-width: 992px) { .status-strip { flex-wrap: wrap; overflow: visible; } }

.job-cards { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .job-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .job-cards { grid-template-columns: 1fr 1fr 1fr; } }
.job-card {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--onyx-2);
  color: var(--ink); text-decoration: none;
}
.job-card:hover { border-color: var(--gold); color: var(--ink); }
.job-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.job-card-line { font-size: 0.875rem; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.75rem; color: var(--faint); margin-top: 0.25rem; }

/* job page */
.next-steps { border-color: rgba(201, 162, 75, 0.35); margin-bottom: 1rem; }
.step-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.step { flex: 1 1 100%; }
@media (min-width: 576px) { .step { flex: 0 1 auto; } }
.step > summary { list-style: none; }
.step[open] > summary { margin-bottom: 0.6rem; }
.step-form { background: var(--onyx); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; min-width: min(100%, 320px); }
.timeline > li { display: flex; gap: 0.75rem; padding: 0.5rem 0; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 0.45rem; flex: 0 0 auto;
  box-shadow: 0 0 0 3px var(--gold-tint); }

/* invoices and payments */
.pay-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.pay-draft { background: var(--onyx-4); color: var(--muted); }
.pay-cancelled { background: rgba(240, 113, 103, 0.12); color: var(--danger); text-decoration: line-through; }
.pay-unpaid { background: rgba(231, 184, 79, 0.14); color: var(--warn); }
.pay-partially_paid { background: rgba(143, 180, 255, 0.14); color: #8fb4ff; }
.pay-paid { background: rgba(92, 201, 139, 0.14); color: var(--ok); }
.pay-refunded { background: var(--onyx-4); color: var(--muted); }

.draft-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: var(--radius);
  border: 1px dashed var(--gold); background: var(--gold-tint); color: #f1dfb3;
}
.invoice-lines > li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.line-head { display: flex; justify-content: space-between; gap: 1rem; }
.line-breakdown { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.8125rem; color: var(--muted); margin-top: 0.3rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1.5rem; margin: 1rem 0 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--line-strong); }
.totals dt { font-weight: 500; color: var(--muted); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font-size: 1.15rem; font-weight: 700; color: #fff; }
.totals dd.grand { color: var(--gold-light); }

.method-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 0.4rem; }
.method-btn { position: relative; }
.method-btn input { position: absolute; opacity: 0; pointer-events: none; }
.method-btn > span {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.65rem 0.4rem; min-height: 64px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--onyx-2);
  font-size: 0.75rem; font-weight: 600; text-align: center; cursor: pointer;
}
.method-btn i { font-size: 1.25rem; color: var(--gold); }
.method-btn input:checked + span { border-color: var(--gold); background: var(--gold-tint); color: #fff; }
.method-btn input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.payment-row.voided .amount, .payment-row.voided .fw-semibold, tr.voided td { text-decoration: line-through; color: var(--faint); }
.inline-action { display: inline-block; }
.inline-action > summary { color: var(--gold-light); }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; align-items: center; }
.inline-form .form-control { width: auto; flex: 1 1 110px; }

/* reports and dashboard */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.stat-tile { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--onyx-2); }
.stat-tile .label { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stat-tile .value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: #fff; }
.stat-tile.gold { border-color: rgba(201, 162, 75, 0.45); }
.stat-tile.gold .value { color: var(--gold-light); }
.totals-row th, .totals-row td { font-weight: 700; color: #fff; border-top: 1px solid var(--line-strong); padding: 0.85rem 0.875rem; }

.stat-card { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; text-decoration: none; color: var(--ink); }
.stat-card:hover { border-color: var(--gold); color: var(--ink); }
.stat-card .panel-title { margin-bottom: 0.25rem; }
.stat-value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; line-height: 1.1; color: #fff; }
.stat-split { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.8125rem; color: var(--muted); }
.status-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.5rem; }
.status-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--onyx); }
.status-tile:hover { border-color: var(--gold); }
.status-tile .num { font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; margin-bottom: 1.25rem; }
.quick-actions a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; min-height: 56px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--onyx-2);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.875rem;
}
.quick-actions a:hover { border-color: var(--gold); }
.quick-actions i { color: var(--gold); font-size: 1.2rem; }

/* ---------- help ---------- */
.help-flow {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; gap: 0.5rem; grid-template-columns: 1fr;
}
@media (min-width: 576px) { .help-flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .help-flow { grid-template-columns: repeat(7, 1fr); } }
.help-flow a {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: center;
  height: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--onyx-2); color: var(--ink); text-decoration: none;
}
.help-flow a:hover { border-color: var(--gold); }
.help-flow .help-num { grid-row: span 2; }
.help-flow strong { font-size: 0.9375rem; }
.help-flow small { color: var(--muted); font-size: 0.75rem; }
@media (min-width: 992px) {
  .help-flow a { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 0.2rem; }
  .help-flow .help-num { grid-row: auto; }
}
.help-num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--gold-grad); color: var(--onyx); font-size: 0.8125rem; font-weight: 700;
}
.help-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.help-toc a {
  padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.8125rem;
}
.help-toc a:hover { border-color: var(--gold); color: var(--gold-light); }
.help-section { scroll-margin-top: 80px; max-width: 900px; }
.help-section h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.125rem; margin-bottom: 0.875rem; }
.help-section ol, .help-section ul { padding-left: 1.25rem; }
.help-section li + li { margin-top: 0.35rem; }
.help-notes { color: #cfcac0; }
.help-faq { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.help-faq:last-child { padding-bottom: 0; }
.help-faq summary { cursor: pointer; font-weight: 600; }
.help-faq p { margin: 0.5rem 0 0; color: #cfcac0; }
.help-link {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.8125rem; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.help-link:hover { color: var(--gold-light); }

/* ---------- website media ---------- */
.media-upload { margin-bottom: 1.25rem; max-width: 720px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-chips a {
  padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.8125rem; min-height: 36px; display: inline-flex; align-items: center;
}
.filter-chips a:hover { border-color: var(--gold); }
.filter-chips a.active { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-light); }
.media-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.media-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--onyx-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.media-thumb { aspect-ratio: 4 / 3; background: var(--onyx); display: flex; align-items: center; justify-content: center; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb video { object-fit: contain; }
.media-body { padding: 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.media-body p { margin: 0; }
.media-alt { font-size: 0.875rem; color: #fff; }
.media-alt-missing { color: var(--warn); font-size: 0.8125rem; }
.media-meta { font-size: 0.75rem; color: var(--muted); }
.media-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-top: 0.4rem; }
.media-actions summary { cursor: pointer; font-size: 0.8125rem; color: var(--gold-light); }
.media-actions details { flex: 1 1 auto; min-width: 0; }
.media-actions .link-btn { font-size: 0.8125rem; }

/* ---------- website showcase: staff ---------- */
.website-tabs { margin-top: -0.5rem; }
.publish-panel { border-left: 3px solid var(--line-strong); }
.publish-panel.publish-ready { border-left-color: var(--ok); }
.publish-problems { margin: 0 0 0.75rem; padding-left: 1.2rem; color: var(--warn); }
.slot-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.slot-thumb, .slot-empty {
  width: 160px; aspect-ratio: 4 / 3; flex: 0 0 auto; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--onyx);
}
.slot-thumb img, .slot-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-empty { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 2rem; border-style: dashed; }
.pair-row {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line); margin-bottom: 0.75rem;
}
.pair-side { display: flex; flex-direction: column; gap: 0.35rem; }
.pair-side .slot-thumb, .pair-side .slot-empty { width: 140px; }
.pair-remove { margin-left: auto; }
.gallery-edit { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.gallery-edit li { display: flex; gap: 0.75rem; align-items: flex-start; }
.gallery-edit .slot-thumb { width: 110px; }
.gallery-edit-body { flex: 1 1 auto; min-width: 0; }
.consent-note { font-size: 0.8125rem; margin: 0.4rem 0 0; }
.pick-option { display: block; position: relative; cursor: pointer; }
.pick-option .form-check-input { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1; width: 1.4rem; height: 1.4rem; }
.pick-option:has(input:checked) { outline: 2px solid var(--gold); outline-offset: -2px; }
.sticky-actions {
  position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; gap: 0.5rem; padding: 0.75rem 0; margin-top: 0.75rem; background: var(--onyx);
}
@media (min-width: 992px) { .sticky-actions { bottom: 0; } }

/* ---------- website showcase: public ---------- */
.work-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 576px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--onyx-2);
  transition: border-color 0.2s, transform 0.2s;
}
.work-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ink); }
.work-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.work-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.work-card-title { font-weight: 700; color: #fff; font-size: 1.0625rem; }
.work-card-meta { color: var(--muted); font-size: 0.8125rem; }
.work-hero img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; display: block; }
.work-body { padding-top: 2rem; }
.work-body .inner { max-width: 960px; }
.work-title { font-size: clamp(1.75rem, 5vw, 2.75rem); margin: 0.25rem 0 0.4rem; }
.work-car { color: var(--muted); margin: 0 0 1.5rem; }
.work-story p { color: #dcd8cf; font-size: 1.0625rem; line-height: 1.75; max-width: 68ch; }
.work-block { margin-top: 3rem; }
.work-block-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.ba-pair { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .ba-pair { grid-template-columns: 1fr 1fr; } }
.ba-pair figure, .work-gallery figure { margin: 0; }
.ba-pair img, .work-gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.ba-pair figcaption, .work-gallery figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 0.4rem; }
.ba-label {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--onyx-4); color: #d8d4ca;
}
.ba-label.ba-after { background: var(--gold-tint); color: var(--gold-light); }
.work-gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .work-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .work-gallery { grid-template-columns: repeat(3, 1fr); } }
.work-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.work-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-clip { width: 100%; max-height: 80vh; border-radius: var(--radius-sm); background: #000; margin-top: 0.75rem; }
.work-cta { text-align: center; margin-top: 4rem; }
.work-cta p { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; }
.preview-bar {
  position: sticky; top: 0; z-index: 1040; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: space-between; padding: 0.6rem 1rem; margin: 0;
  background: var(--gold-tint); border-bottom: 1px solid var(--gold); color: var(--gold-light); font-size: 0.875rem;
}
.preview-missing { position: static; }

/* ---------- running costs ---------- */
.attention-panel { border-left: 3px solid var(--warn); }
.attention-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.attention-list li { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; }
.cost-history { list-style: none; margin: 0; padding: 0; }
.cost-history li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.cost-history li:last-child { border-bottom: 0; padding-bottom: 0; }
.cost-history li.is-void > div:first-child { text-decoration: line-through; color: var(--faint); }
.method-choice { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.method-choice .btn { min-height: 40px; display: inline-flex; align-items: center; }
.text-pre-line { white-space: pre-line; }

/* ---------- vehicle check-in ---------- */
.fuel-picker { display: flex; gap: 0.35rem; }
.fuel-picker .btn { min-width: 3rem; min-height: 44px; font-size: 1rem; letter-spacing: 0; }
.fuel-gauge { display: inline-flex; align-items: center; gap: 0.5rem; }
.fuel-bar { display: inline-block; width: 90px; height: 10px; border-radius: 999px; background: var(--onyx-4); overflow: hidden; }
.fuel-bar > span { display: block; height: 100%; background: var(--gold-grad); }
.checkin-photos {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}
.checkin-photos li { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.checkin-photos img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.photo-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-actions .btn { min-height: 46px; display: inline-flex; align-items: center; }
.photo-actions .btn.disabled { pointer-events: none; opacity: 0.6; }
.camera-dialog {
  width: min(720px, calc(100vw - 2rem)); padding: 1rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--onyx-2); color: var(--ink);
}
.camera-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.camera-dialog video { width: 100%; max-height: 65vh; background: #000; border-radius: var(--radius-sm); display: block; margin-bottom: 0.75rem; }

/* ---------- test-system banner (staging, dev) ---------- */
.env-banner {
  position: sticky; top: 0; z-index: 1100; padding: 4px 12px; text-align: center;
  background: repeating-linear-gradient(135deg, #f2c94c, #f2c94c 12px, #e8b62f 12px, #e8b62f 24px);
  color: #111; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.app-version { margin-top: 0.6rem; font-size: 0.6875rem; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- standard messages: toasts, inline alerts, confirm dialog ---------- */
.alert-info { --bs-alert-bg: var(--ice-tint); --bs-alert-border-color: var(--ice); --bs-alert-color: #cddcff; }
.alert-icon { display: flex; gap: 0.6rem; align-items: flex-start; }
.alert-icon > i { font-size: 1.1rem; line-height: 1.4; flex: 0 0 auto; }

.toast-stack {
  position: fixed; z-index: 1090; top: calc(64px + env(safe-area-inset-top)); left: 1rem; right: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
}
@media (min-width: 992px) { .toast-stack { top: 2.25rem; left: auto; right: 1.25rem; width: 400px; } }
.app-toast {
  pointer-events: auto; display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.75rem 0.75rem 0.75rem 0.9rem; border-radius: var(--radius);
  background: var(--onyx-3); color: var(--ink); border: 1px solid var(--line-strong); border-left: 3px solid;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); font-size: 0.9rem;
  animation: toast-in 0.2s ease-out;
}
.app-toast > i { font-size: 1.15rem; line-height: 1.35; flex: 0 0 auto; }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-text a { color: inherit; font-weight: 600; }
.toast-close {
  background: none; border: 0; color: var(--muted); padding: 0 0.25rem; line-height: 1; cursor: pointer;
  min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.toast-close:hover { color: #fff; }
.toast-success { border-left-color: var(--ok); } .toast-success > i { color: var(--ok); }
.toast-info { border-left-color: var(--ice); } .toast-info > i { color: var(--ice); }
.toast-warning { border-left-color: var(--warn); } .toast-warning > i { color: var(--warn); }
.toast-error { border-left-color: var(--danger); } .toast-error > i { color: var(--danger); }
.toast-leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .app-toast { animation: none; } .toast-leaving { transition: none; } }

.app-dialog {
  width: min(440px, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--onyx-2); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.app-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.app-dialog-title { font-size: 1.1rem; margin: 0 0 0.5rem; }
.app-dialog-text { color: #d6d2c9; margin: 0 0 1.25rem; }
.app-dialog-actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 0.5rem; }
.app-dialog-actions .btn { min-height: 44px; min-width: 110px; }
.btn-danger { --bs-btn-bg: #c2453b; --bs-btn-border-color: #c2453b; --bs-btn-hover-bg: #a83a31; --bs-btn-hover-border-color: #a83a31; }

/* ---------- top-ups: bell, counts, message ---------- */
.bell { position: relative; }
.bell-count, .nav-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem;
  padding: 0 0.35rem; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 0.6875rem; font-weight: 700; line-height: 1;
}
.bell-count { position: absolute; top: -6px; right: -6px; }
.sidebar .nav-link .nav-count { margin-left: auto; }
.message-preview {
  white-space: pre-wrap; font-family: var(--font-body); font-size: 0.875rem; color: #d6d2c9;
  background: var(--onyx-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; margin-bottom: 0.75rem; max-height: 260px; overflow: auto;
}

/* ---------- work calendar: month grid on wide screens, agenda list on phones ---------- */
.cal-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.cal-month { font-size: 1.15rem; margin: 0 0.25rem; min-width: 10ch; text-align: center; }
.cal { display: grid; gap: 0.5rem; }
.cal-head { display: none; }
.cal-week { display: contents; }
.cal-day {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--onyx-2);
}
.cal-day.cal-empty, .cal-day.cal-out { display: none; }
.cal-day.cal-today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-tint); }
.cal-date { display: flex; gap: 0.4rem; align-items: baseline; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.cal-date .num { color: #fff; font-size: 1rem; }
.cal-today .cal-date .num { color: var(--gold-light); }
.cal-entry {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.45rem; text-decoration: none;
  padding: 0.35rem 0.5rem; border-radius: var(--radius-sm); border-left: 3px solid currentColor;
  background: var(--onyx-3); font-size: 0.8125rem; min-height: 40px;
}
.cal-entry:hover { background: var(--onyx-4); }
.cal-entry .cal-plate { color: #fff; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.cal-entry .cal-title { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 8ch; }
.cal-entry .cal-people { color: var(--muted); font-size: 0.75rem; width: 100%; }
.cal-entry.cal-cont { opacity: 0.7; border-left-style: dashed; }
.cal-entry.cal-topup { color: var(--violet); border-left-style: dotted; }
.cal-entry.cal-topup .cal-title { color: #d9c2ff; }
@media (min-width: 768px) {
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .cal-head { display: contents; }
  .cal-head span {
    padding: 0.5rem; text-align: center; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--faint); background: var(--onyx-2); border-bottom: 1px solid var(--line);
  }
  .cal-day, .cal-day.cal-empty, .cal-day.cal-out {
    display: flex; min-height: 118px; border: 0; border-radius: 0; padding: 0.4rem;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 0.25rem;
  }
  .cal-day:nth-child(7n) { border-right: 0; }
  .cal-day.cal-out { background: var(--onyx); }
  .cal-day.cal-out .cal-date { opacity: 0.45; }
  .cal-dow { display: none; }
  .cal-date { justify-content: flex-end; }
  .cal-date .num { font-size: 0.875rem; }
  .cal-entry { font-size: 0.75rem; padding: 0.25rem 0.35rem; min-height: 0; gap: 0 0.35rem; }
  .cal-entry { min-width: 0; overflow: hidden; }
  .cal-entry .cal-plate { font-size: 0.6875rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .cal-entry .cal-people { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-entry .cal-title { flex-basis: 100%; }
}
