:root {
  --cream: #f7f3e9;
  --cream-deep: #eee7d8;
  --paper: #fffdf8;
  --ink: #17201f;
  --ink-soft: #2b3836;
  --muted: #64716e;
  --line: #d9ded8;
  --teal: #087c74;
  --teal-dark: #075e59;
  --teal-pale: #dcebe6;
  --coral: #e7654f;
  --coral-dark: #c84d3b;
  --gold: #c9982c;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow-sm: 0 12px 30px rgba(23, 32, 31, 0.08);
  --shadow: 0 28px 80px rgba(23, 32, 31, 0.14);
  --page-pad: clamp(20px, 5vw, 72px);
  --page-max: 1440px;
}

/* Gestion des versions mobiles */
.app-version-form {
  display: grid;
  gap: 24px;
}

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

.app-version-card {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #dce4ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 42, 73, .06);
}

.app-version-card legend {
  width: 100%;
  padding: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #12243b;
}

.app-version-card legend span { font-size: 1.05rem; font-weight: 800; }
.app-version-card legend strong {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef4fb;
  color: #174a86;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-version-toggle {
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
}

.app-version-toggle:has(input:checked) { border-color: #e9a21b; background: #fff8e8; }
.app-version-toggle input { width: 22px; height: 22px; accent-color: #d47b00; }
.app-version-toggle span { display: grid; gap: 3px; }
.app-version-toggle b { color: #17283c; }
.app-version-toggle small { color: #5f6f80; line-height: 1.35; }

.app-version-fields {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-version-fields label { min-width: 0; display: grid; align-content: start; gap: 7px; }
.app-version-fields label.wide { grid-column: 1 / -1; }
.app-version-fields label > span { color: #2c3d50; font-size: .86rem; font-weight: 750; }
.app-version-fields label > small { color: #6b7785; line-height: 1.35; }
.app-version-fields input,
.app-version-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  background: #fff;
  color: #14263a;
  font: inherit;
}
.app-version-fields textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.app-version-fields input:focus,
.app-version-fields textarea:focus { outline: 3px solid rgba(20, 92, 170, .16); border-color: #145caa; }

.app-version-warning {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #f0d18e;
  border-radius: 18px;
  background: #fff9e9;
  color: #5a4314;
}
.app-version-warning svg { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-version-warning p { margin: 0; display: grid; gap: 4px; line-height: 1.45; }
.app-version-warning span { color: #6d5a2e; }

@media (max-width: 980px) {
  .app-version-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .app-version-card { padding: 18px; border-radius: 18px; }
  .app-version-card legend { align-items: flex-start; flex-direction: column; }
  .app-version-fields { grid-template-columns: 1fr; }
  .app-version-fields label.wide { grid-column: auto; }
  .app-version-warning { padding: 16px; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img,
svg {
  display: block;
}

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

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 14vw, 6rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 em {
  display: block;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 9vw, 4.6rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.15;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  border-radius: 9px;
  color: var(--white);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
}

.button:disabled {
  opacity: 0.68;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  background: rgba(247, 243, 233, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(23, 32, 31, 0.1);
  box-shadow: 0 10px 30px rgba(23, 32, 31, 0.05);
}

.header-inner {
  position: relative;
  display: flex;
  width: min(100%, var(--page-max));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px var(--page-pad);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 12px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 99px;
}

.site-nav {
  position: absolute;
  top: 70px;
  right: 20px;
  left: 20px;
  display: none;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  display: flex;
  min-height: 48px;
  padding: 11px 14px;
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  background: var(--cream);
  color: var(--ink);
}

.site-nav .nav-action {
  justify-content: center;
  background: var(--ink);
  color: var(--white);
}

.hero,
.section,
.process-section,
.login-section,
.final-cta,
.dashboard,
.site-footer {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.hero {
  display: grid;
  min-height: calc(100svh - 76px);
  padding-top: clamp(52px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 116px);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 22px;
  height: 2px;
  background: currentColor;
}

.eyebrow.light {
  color: #9fe1d7;
}

.lead {
  max-width: 630px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 19px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 820;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(23, 32, 31, 0.16);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.primary.coral {
  border-color: var(--coral);
  background: var(--coral);
}

.button.primary.coral:hover {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

.button.ghost,
.button.secondary {
  background: rgba(255, 255, 255, 0.5);
}

.hero-assurances {
  display: flex;
  margin: 28px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

.hero-assurances li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-assurances li::before {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  content: "";
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #e3ece6;
  border: 1px solid rgba(7, 94, 89, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(8, 124, 116, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 124, 116, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotate(-8deg) scale(1.2);
}

.route-line {
  position: absolute;
  inset: 22px 10px auto;
}

.route-line svg {
  width: 100%;
}

.delivery-card {
  position: absolute;
  right: 18px;
  bottom: 24px;
  left: 18px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(23, 32, 31, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(23, 32, 31, 0.15);
}

.delivery-card-head,
.delivery-card-head > div,
.delivery-route > div,
.courier-chip,
.account-note,
.form-heading {
  display: flex;
  align-items: center;
}

.delivery-card-head {
  justify-content: space-between;
  gap: 12px;
}

.delivery-card-head > div {
  gap: 8px;
  color: var(--muted);
}

.delivery-card-head strong {
  font-size: 0.9rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(8, 124, 116, 0.12);
}

.delivery-progress {
  display: grid;
  margin: 16px 0 18px;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.delivery-progress span {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
}

.delivery-progress .is-done {
  background: var(--teal);
}

.delivery-progress .is-current {
  background: linear-gradient(90deg, var(--teal) 55%, var(--line) 55%);
}

.delivery-route {
  display: grid;
  gap: 12px;
}

.delivery-route > div {
  gap: 12px;
}

.delivery-route p,
.courier-chip p,
.account-note p,
.form-heading p {
  margin: 0;
}

.delivery-route small,
.delivery-route strong,
.courier-chip small,
.courier-chip strong,
.account-note strong,
.account-note small,
.form-heading strong,
.form-heading small {
  display: block;
}

.delivery-route small,
.delivery-meta small,
.courier-chip small,
.account-note small,
.form-heading small {
  color: var(--muted);
}

.route-pin {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 4px solid var(--teal-pale);
  outline: 2px solid var(--teal);
  border-radius: 50%;
}

.route-pin.dropoff {
  border-color: #f9ded8;
  outline-color: var(--coral);
}

.delivery-meta {
  display: grid;
  margin-top: 18px;
  padding-top: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.delivery-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 1.2rem;
}

.courier-chip {
  position: absolute;
  top: 26px;
  left: 20px;
  max-width: calc(100% - 40px);
  padding: 10px 14px 10px 10px;
  gap: 10px;
  background: var(--ink);
  border-radius: 15px;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.courier-chip small {
  color: rgba(255, 255, 255, 0.65);
}

.courier-chip strong {
  font-size: 0.82rem;
}

.courier-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--coral);
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 850;
}

.trust-strip {
  display: grid;
  width: min(calc(100% - 40px), calc(var(--page-max) - (2 * var(--page-pad))));
  margin: 0 auto;
  padding: 20px 0;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(23, 32, 31, 0.14);
  border-bottom: 1px solid rgba(23, 32, 31, 0.14);
}

.trust-strip > div {
  padding: 14px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1.05rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.75rem;
}

.section {
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(36px, 6vw, 70px);
  gap: 20px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: 26px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(23, 32, 31, 0.11);
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.service-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #a8b1ae;
  font-size: 0.78rem;
  font-weight: 850;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 58px;
  place-items: center;
  background: var(--teal-pale);
  border-radius: 15px;
  color: var(--teal-dark);
}

.service-icon svg,
.account-note svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:nth-child(2) .service-icon {
  background: #f9ded8;
  color: var(--coral-dark);
}

.service-card:nth-child(3) .service-icon {
  background: #f3e7c5;
  color: #8a6519;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-section {
  display: grid;
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  background: var(--ink);
  color: var(--white);
  gap: 52px;
}

.process-section::before,
.login-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: calc((100vw - min(100vw, var(--page-max))) / -2);
  height: 100%;
  background: inherit;
  content: "";
}

.process-section,
.login-section {
  position: relative;
}

.process-section::after,
.login-section::after {
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc((100vw - min(100vw, var(--page-max))) / -2);
  left: 100%;
  height: 100%;
  background: inherit;
  content: "";
}

.process-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.66);
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-weight: 800;
}

.text-link span {
  color: #9fe1d7;
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  padding: 24px 0;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.steps li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.step-index {
  color: #9fe1d7;
  font-size: 0.78rem;
  font-weight: 850;
}

.steps strong {
  font-size: 1.22rem;
}

.steps p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.spaces-section {
  background: var(--cream);
}

.audience-grid {
  display: grid;
  gap: 18px;
}

.audience-card {
  display: grid;
  min-height: 560px;
  padding: 28px 28px 0;
  overflow: hidden;
  background: var(--teal-pale);
  border-radius: var(--radius-lg);
  gap: 30px;
}

.audience-card.driver {
  background: #f6dfd9;
}

.role-pill {
  display: inline-flex;
  min-height: 34px;
  margin-bottom: 28px;
  padding: 6px 11px;
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 32, 31, 0.1);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.audience-card.driver .role-pill {
  color: var(--coral-dark);
}

.audience-card-copy p {
  color: var(--muted);
}

.audience-card-copy ul {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.audience-card-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 750;
}

.audience-card-copy li::before {
  width: 18px;
  height: 18px;
  background: var(--teal);
  border: 5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  content: "";
}

.audience-card.driver li::before {
  background: var(--coral);
}

.phone-preview {
  width: min(100%, 330px);
  min-height: 330px;
  margin: auto auto -24px;
  padding: 22px;
  background: var(--paper);
  border: 8px solid var(--ink);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 20px 40px rgba(23, 32, 31, 0.18);
}

.phone-speaker {
  width: 54px;
  height: 5px;
  margin: 0 auto 32px;
  background: var(--line);
  border-radius: 99px;
}

.phone-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.phone-preview > strong {
  display: block;
  margin: 6px 0 22px;
}

.phone-map {
  position: relative;
  display: flex;
  height: 105px;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: var(--teal-pale);
  border-radius: 16px;
}

.phone-map span {
  position: relative;
  z-index: 2;
  width: 15px;
  height: 15px;
  background: var(--paper);
  border: 4px solid var(--teal);
  border-radius: 50%;
}

.phone-map span:last-child {
  border-color: var(--coral);
}

.phone-map i {
  width: calc(100% - 22px);
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 7px, transparent 7px 12px);
}

.phone-stat {
  display: flex;
  margin-top: 16px;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-radius: 14px;
}

.phone-stat span {
  color: var(--muted);
  font-size: 0.75rem;
}

.login-section {
  display: grid;
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  background: var(--teal-dark);
  color: var(--white);
  gap: 48px;
}

.login-copy > p:not(.eyebrow) {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.04rem;
}

.account-note {
  max-width: 530px;
  margin-top: 32px;
  padding-top: 24px;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.account-note > span {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #9fe1d7;
}

.account-note small {
  color: rgba(255, 255, 255, 0.58);
}

.login-panel {
  display: grid;
  padding: 18px;
  background: var(--paper);
  border-radius: 22px;
  color: var(--ink);
  box-shadow: var(--shadow);
  gap: 18px;
}

.login-tabs {
  display: grid;
  padding: 4px;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--cream-deep);
  border-radius: 13px;
}

.login-tabs button {
  min-height: 46px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 820;
  cursor: pointer;
}

.login-tabs button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(23, 32, 31, 0.08);
}

.auth-form {
  display: grid;
  padding: 10px 4px 4px;
  gap: 10px;
}

.form-heading {
  margin-bottom: 10px;
  gap: 12px;
}

.form-heading > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--teal-pale);
  border-radius: 12px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-form label {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 124, 116, 0.14);
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.phone-field:focus-within {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 124, 116, 0.14);
}

.phone-field > span {
  padding: 0 0 0 14px;
  color: var(--muted);
  font-weight: 750;
}

.phone-field input {
  border: 0;
  outline: 0;
}

.phone-field input:focus {
  outline: 0;
}

.auth-form .auth-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.auth-form .auth-consent input {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand-primary);
}

.auth-form .auth-consent a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-form > .button {
  width: 100%;
  margin-top: 8px;
}

.otp-step {
  display: grid;
  margin-top: 12px;
  padding-top: 16px;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.zone-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.zone-field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
}

.zone-field .button {
  min-height: 48px;
  margin: 0;
}

.field-help {
  display: block;
  min-height: 20px;
  color: var(--muted);
}

.auth-result {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.auth-result.is-success {
  color: var(--teal-dark);
}

.auth-result.is-error {
  color: var(--coral-dark);
}

.session-actions {
  display: grid;
  gap: 8px;
}

.text-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.final-cta {
  display: grid;
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: clamp(70px, 9vw, 120px);
  align-items: end;
  gap: 28px;
}

.final-cta h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  padding-top: 28px;
  padding-bottom: 28px;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid rgba(23, 32, 31, 0.14);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-brand {
  gap: 11px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--ink);
}

.footer-links {
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Privacy */
.privacy-page {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.privacy-hero {
  display: grid;
  min-height: 690px;
  padding-block: clamp(72px, 10vw, 142px);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.privacy-hero-copy h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 10vw, 7.7rem);
}

.privacy-intro {
  max-width: 720px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.privacy-meta {
  display: flex;
  width: fit-content;
  padding-top: 16px;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid rgba(23, 32, 31, 0.18);
}

.privacy-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.privacy-promise {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow);
}

.privacy-promise::after {
  position: absolute;
  right: -76px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  background: rgba(8, 124, 116, 0.32);
  border-radius: 50%;
  content: "";
}

.privacy-promise-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 850;
}

.privacy-shield {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: clamp(62px, 10vw, 116px);
  place-items: center;
  background: rgba(159, 225, 215, 0.13);
  border-radius: 17px;
  color: #9fe1d7;
}

.privacy-shield svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-promise h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.15rem);
}

.privacy-promise p {
  position: relative;
  z-index: 1;
  max-width: 530px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
}

.privacy-layout {
  display: grid;
  padding-block: clamp(72px, 10vw, 140px);
  gap: clamp(54px, 8vw, 120px);
  border-top: 1px solid rgba(23, 32, 31, 0.15);
}

.privacy-summary {
  align-self: start;
}

.privacy-summary > p {
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-summary ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 2px;
  list-style: none;
  counter-reset: privacy-summary;
}

.privacy-summary li {
  counter-increment: privacy-summary;
}

.privacy-summary a {
  display: grid;
  min-height: 46px;
  padding: 9px 0;
  grid-template-columns: 28px 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 730;
  transition: color 180ms ease, transform 180ms ease;
}

.privacy-summary a::before {
  color: #a2aaa7;
  font-size: 0.69rem;
  content: "0" counter(privacy-summary);
}

.privacy-summary a:hover {
  color: var(--teal-dark);
  transform: translateX(4px);
}

.privacy-content {
  min-width: 0;
}

.privacy-content > section {
  position: relative;
  padding: 0 0 clamp(70px, 9vw, 112px);
  scroll-margin-top: 110px;
}

.privacy-content > section + section {
  padding-top: clamp(68px, 8vw, 104px);
  border-top: 1px solid rgba(23, 32, 31, 0.14);
}

.privacy-section-number {
  display: block;
  margin-bottom: 18px;
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.privacy-content h2 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2.25rem, 6vw, 4.3rem);
}

.privacy-content h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
}

.privacy-content section > p,
.privacy-update p {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.09rem);
}

.privacy-content section > p + p {
  margin-top: 18px;
}

.privacy-content section > p a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.privacy-note {
  display: grid;
  max-width: 820px;
  margin-top: 32px;
  padding: 22px;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  background: #f6dfd9;
  border-radius: 15px;
}

.privacy-note.pale {
  background: var(--teal-pale);
}

.privacy-note p {
  margin: 0;
  color: var(--ink-soft);
}

.privacy-data-grid {
  display: grid;
  max-width: 920px;
  margin-top: 34px;
  gap: 12px;
}

.privacy-data-grid > div {
  min-height: 210px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(23, 32, 31, 0.11);
  border-radius: 16px;
}

.privacy-data-grid p {
  margin: 0;
  color: var(--muted);
}

.privacy-list {
  display: grid;
  max-width: 860px;
  margin: 34px 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-top: 1px solid rgba(23, 32, 31, 0.12);
  color: var(--muted);
}

.privacy-list li:last-child {
  border-bottom: 1px solid rgba(23, 32, 31, 0.12);
}

.privacy-list li::before {
  position: absolute;
  top: 27px;
  left: 4px;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
  content: "";
}

.privacy-list strong {
  color: var(--ink);
}

.privacy-list.compact li {
  padding-block: 13px;
}

.privacy-list.compact li::before {
  top: 22px;
}

.privacy-external-link {
  display: inline-flex;
  min-height: 48px;
  margin-top: 16px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--teal-dark);
  color: var(--teal-dark);
  font-weight: 850;
}

.privacy-deletion-card {
  display: grid;
  max-width: 820px;
  margin: 32px 0;
  padding: clamp(22px, 4vw, 32px);
  align-items: center;
  gap: 22px;
  background: var(--ink);
  border-radius: 18px;
  color: var(--white);
}

.privacy-deletion-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.privacy-deletion-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.privacy-deletion-card .button {
  width: fit-content;
  white-space: nowrap;
}

.privacy-contact {
  padding: clamp(34px, 6vw, 62px) !important;
  background: var(--ink);
  border: 0 !important;
  border-radius: var(--radius-lg);
  color: var(--white);
}

.privacy-contact h2 {
  max-width: 680px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
}

.privacy-contact > p {
  color: rgba(255, 255, 255, 0.68) !important;
}

.privacy-contact .button {
  margin-top: 16px;
}

.privacy-update {
  margin-top: clamp(70px, 9vw, 112px);
}

.privacy-update h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

@media (min-width: 760px) {
  .privacy-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-deletion-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 980px) {
  .privacy-hero {
    grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  }

  .privacy-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .privacy-summary {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 620px) {
  .privacy-hero {
    min-height: auto;
  }

  .privacy-note {
    grid-template-columns: 1fr;
  }

  .privacy-summary {
    padding: 22px;
    background: var(--paper);
    border: 1px solid rgba(23, 32, 31, 0.11);
    border-radius: 16px;
  }
}

/* Support */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-page {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.support-hero {
  display: grid;
  min-height: calc(100svh - 76px);
  padding-block: clamp(66px, 9vw, 128px);
  align-items: center;
  gap: clamp(46px, 7vw, 96px);
}

.support-hero-copy h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
}

.support-intro {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.support-search {
  display: grid;
  width: min(100%, 720px);
  min-height: 66px;
  padding: 7px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(23, 32, 31, 0.15);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.support-search:focus-within {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 124, 116, 0.14);
}

.support-search > span {
  display: grid;
  place-items: center;
  color: var(--teal-dark);
}

.support-search svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.support-search input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.support-search button {
  min-height: 50px;
  padding: 10px 18px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-weight: 820;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.support-search button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.support-search-hint {
  max-width: 700px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.81rem;
}

.support-conversation {
  min-height: 500px;
  padding: clamp(24px, 4vw, 36px);
  background: #e3ece6;
  border: 1px solid rgba(7, 94, 89, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.support-conversation-head,
.support-conversation-head > div,
.support-online {
  display: flex;
  align-items: center;
}

.support-conversation-head {
  justify-content: space-between;
  gap: 18px;
}

.support-conversation-head > div {
  gap: 12px;
}

.support-conversation-head p,
.support-conversation-head strong,
.support-conversation-head small {
  display: block;
  margin: 0;
}

.support-conversation-head small {
  color: var(--muted);
}

.support-agent-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--ink);
  border-radius: 13px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
}

.support-online {
  min-height: 34px;
  padding: 6px 10px;
  gap: 7px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 820;
}

.support-online i {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.support-bubbles {
  display: grid;
  min-height: 310px;
  padding-block: 58px 42px;
  align-content: center;
  gap: 14px;
}

.support-bubbles p {
  width: fit-content;
  max-width: 84%;
  margin: 0;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 10px 24px rgba(23, 32, 31, 0.08);
}

.support-bubbles p:last-child {
  margin-left: auto;
  background: var(--ink);
  border-radius: 18px 18px 5px 18px;
  color: var(--white);
}

.support-conversation > .button {
  width: 100%;
}

.support-topics {
  padding-block: clamp(88px, 11vw, 154px);
  border-top: 1px solid rgba(23, 32, 31, 0.14);
}

.support-section-heading {
  display: grid;
  margin-bottom: clamp(38px, 6vw, 70px);
  gap: 22px;
}

.support-section-heading h2,
.support-faq-head h2,
.support-contact h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.support-section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.support-topic-grid {
  display: grid;
  gap: 13px;
}

.support-topic-card {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 25px;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(23, 32, 31, 0.11);
  border-radius: var(--radius);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.support-topic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 124, 116, 0.32);
  box-shadow: var(--shadow-sm);
}

.support-topic-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 52px;
  place-items: center;
  border-radius: 15px;
}

.support-topic-icon.teal { background: var(--teal-pale); color: var(--teal-dark); }
.support-topic-icon.coral { background: #f9ded8; color: var(--coral-dark); }
.support-topic-icon.gold { background: #f3e7c5; color: #8a6519; }
.support-topic-icon.ink { background: #e8eae7; color: var(--ink); }

.support-topic-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-topic-number {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #a8b1ae;
  font-size: 0.75rem;
  font-weight: 850;
}

.support-topic-card h3 {
  margin-bottom: 10px;
}

.support-topic-card p {
  margin-bottom: 24px;
  color: var(--muted);
}

.support-topic-card > strong {
  display: flex;
  min-height: 44px;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(23, 32, 31, 0.1);
  color: var(--teal-dark);
  font-size: 0.85rem;
}

.support-faq {
  position: relative;
  z-index: 0;
  padding-block: clamp(88px, 11vw, 150px);
  background: var(--ink);
  color: var(--white);
}

.support-faq::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: var(--ink);
  content: "";
}

.support-faq-head {
  display: grid;
  margin-bottom: 28px;
  gap: 28px;
}

.support-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-filters button,
.support-empty button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 780;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.support-filters button:hover,
.support-filters button.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.support-results {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 750;
}

.support-faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.support-faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.support-faq-list summary {
  display: grid;
  min-height: 84px;
  padding: 22px 0;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 24px;
  color: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

.support-faq-list summary::-webkit-details-marker {
  display: none;
}

.support-faq-list summary > span {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.support-faq-list summary > span::before,
.support-faq-list summary > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #9fe1d7;
  border-radius: 99px;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.support-faq-list summary > span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.support-faq-list details[open] summary > span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.support-faq-list details > div {
  max-width: 790px;
  padding: 0 54px 26px 0;
}

.support-faq-list details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.support-empty {
  padding: 44px 0 10px;
  text-align: center;
}

.support-empty strong {
  display: block;
  font-size: 1.25rem;
}

.support-empty p {
  color: rgba(255, 255, 255, 0.62);
}

.support-empty button {
  border-color: #9fe1d7;
  color: #9fe1d7;
}

.support-contact {
  display: grid;
  margin-block: clamp(86px, 11vw, 150px);
  padding: clamp(34px, 6vw, 70px);
  background: var(--teal-dark);
  border-radius: var(--radius-lg);
  color: var(--white);
  gap: 46px;
}

.support-contact > div > p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.68);
}

.support-contact .button {
  margin-top: 14px;
}

.support-contact-checklist {
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

.support-contact-checklist > span {
  display: block;
  margin-bottom: 17px;
  color: #9fe1d7;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-contact-checklist ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.support-contact-checklist li {
  position: relative;
  padding: 12px 0 12px 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.support-contact-checklist li::before {
  position: absolute;
  top: 19px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  content: "";
}

.support-contact-checklist p {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.87rem;
}

.support-contact-checklist strong {
  color: var(--white);
}

@media (min-width: 700px) {
  .support-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-section-heading,
  .support-faq-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
    align-items: end;
  }
}

@media (min-width: 980px) {
  .support-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  }

  .support-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .support-contact {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.7fr);
    align-items: center;
  }
}

@media (max-width: 560px) {
  .support-search {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .support-search button {
    grid-column: 1 / -1;
  }

  .support-conversation-head {
    align-items: flex-start;
  }

  .support-online {
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .support-filters {
    flex-wrap: nowrap;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .support-filters button {
    flex: 0 0 auto;
  }
}

/* Premium navigation */
.site-header {
  min-height: 90px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.header-inner {
  width: min(calc(100% - 24px), var(--page-max));
  min-height: 70px;
  padding: 8px clamp(12px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(9, 42, 99, 0.09);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(3, 27, 63, 0.065), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(20px) saturate(145%);
  transition: min-height 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border: 0;
  box-shadow: none;
}

.site-header.is-scrolled .header-inner {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(9, 42, 99, 0.13);
  box-shadow: 0 18px 48px rgba(3, 27, 63, 0.13), 0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

.brand {
  min-height: 50px;
  gap: 11px;
  color: var(--brand-primary-dark);
  font-size: 1.08rem;
  letter-spacing: -0.035em;
}

.brand img {
  width: 46px;
  height: 46px;
  padding: 3px;
  background: linear-gradient(145deg, #f7faff, #e9f0fa);
  border: 1px solid rgba(9, 42, 99, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(3, 27, 63, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand:hover img {
  box-shadow: 0 11px 24px rgba(3, 27, 63, 0.13);
  transform: translateY(-1px);
}

.site-nav a {
  position: relative;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #536075;
  font-size: 0.87rem;
  font-weight: 760;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(234, 242, 255, 0.78);
  color: var(--brand-primary);
}

.site-nav a[data-nav-section]:not(.nav-download):not(.nav-action).is-active {
  background: var(--teal-pale);
  border-color: rgba(9, 42, 99, 0.08);
  color: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(3, 27, 63, 0.055);
}

.site-nav a[data-nav-section]:not(.nav-download):not(.nav-action).is-active::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 99px;
  content: "";
}

.site-nav .nav-download {
  gap: 8px;
  justify-content: center;
  border-color: rgba(215, 159, 0, 0.16);
  background: linear-gradient(135deg, #ffda4d, var(--brand-yellow));
  color: var(--brand-primary-dark);
  box-shadow: 0 10px 24px rgba(255, 179, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.site-nav .nav-download::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
  content: "";
}

.site-nav .nav-download:hover,
.site-nav .nav-download.is-active {
  border-color: rgba(255, 122, 26, 0.3);
  background: linear-gradient(135deg, #ffe166, #ffc20a);
  color: var(--brand-primary-dark);
  box-shadow: 0 13px 28px rgba(255, 179, 0, 0.28);
}

.site-nav .nav-action {
  min-height: 46px;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #123f83, var(--brand-primary-dark));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(3, 27, 63, 0.23), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  border-color: rgba(255, 196, 0, 0.48);
  background: linear-gradient(145deg, #174d99, #052654);
  color: var(--white);
  box-shadow: 0 15px 32px rgba(3, 27, 63, 0.3);
  transform: translateY(-1px);
}

.nav-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border-color: rgba(9, 42, 99, 0.1);
  background: #f4f7fc;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(3, 27, 63, 0.07);
}

.nav-toggle span {
  background: var(--brand-primary-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 920px) {
  .site-nav {
    gap: 4px;
  }

  .site-nav .nav-download {
    min-height: 46px;
    margin-left: 7px;
    padding-inline: 16px;
  }

  .site-nav .nav-action {
    margin-left: 3px;
    padding-inline: 18px;
  }
}

@media (min-width: 920px) and (max-width: 1110px) {
  .header-inner {
    padding-inline: 18px;
  }

  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-nav a {
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .site-nav .nav-download,
  .site-nav .nav-action {
    padding-inline: 12px;
  }
}

@media (max-width: 919px) {
  .site-header {
    min-height: 82px;
    padding: 8px 0;
  }

  .header-inner,
  .site-header.is-scrolled .header-inner {
    min-height: 66px;
    padding: 8px 10px 8px 13px;
    border-radius: 19px;
  }

  .brand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .site-nav {
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    padding: 9px;
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(9, 42, 99, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(3, 27, 63, 0.2);
    backdrop-filter: blur(22px) saturate(145%);
  }

  .site-nav a {
    min-height: 50px;
    padding-inline: 15px;
    font-size: 0.93rem;
  }

  .site-nav .nav-download,
  .site-nav .nav-action {
    margin-top: 5px;
  }
}

/* Dashboard */
.dashboard {
  display: grid;
  min-height: calc(100svh - 76px);
  padding-top: 56px;
  padding-bottom: 80px;
  gap: 18px;
  background: var(--paper);
}

.dashboard-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dashboard-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 10vw, 6.5rem);
}

.dashboard-session {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dashboard-session > span,
.status-pill {
  display: inline-flex;
  min-height: 38px;
  padding: 7px 11px;
  align-items: center;
  background: var(--teal-pale);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.role-switcher {
  display: flex;
  width: 100%;
  padding: 5px;
  flex-wrap: wrap;
  gap: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.role-switcher button {
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.role-switcher button.is-active {
  background: var(--ink);
  color: var(--white);
  opacity: 1;
}

.dashboard-grid,
.dashboard-layout,
.dashboard-actions {
  display: grid;
  gap: 14px;
}

.dashboard-card,
.dashboard-panel {
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dashboard-card {
  min-height: 160px;
}

.dashboard-card.accent {
  background: var(--ink);
  color: var(--white);
}

.dashboard-card > span {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-card.accent > span,
.dashboard-card.accent p {
  color: rgba(255, 255, 255, 0.66);
}

.dashboard-card > strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1;
}

.dashboard-card p,
.dashboard-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.panel-heading {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2,
.next-panel h2 {
  font-size: clamp(1.8rem, 6vw, 2.7rem);
}

.dashboard-actions .button {
  min-height: 60px;
}

.activity-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  gap: 10px;
}

.activity-list li > span {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.activity-list p {
  margin: 0;
  font-weight: 730;
}

.next-panel {
  display: grid;
  gap: 18px;
  align-items: center;
}

.route-preview {
  display: grid;
  padding: 18px;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.route-preview span {
  width: 18px;
  height: 18px;
  background: var(--teal);
  border: 5px solid var(--teal-pale);
  border-radius: 50%;
}

.route-preview span:last-child {
  background: var(--coral);
  border-color: #f9ded8;
}

@media (min-width: 760px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-strip > div + div {
    border-left: 1px solid rgba(23, 32, 31, 0.12);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .audience-card {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
    align-items: end;
  }

  .audience-card-copy {
    align-self: center;
    padding-bottom: 36px;
  }

  .site-footer,
  .final-cta {
    flex-direction: row;
    justify-content: space-between;
  }

  .site-footer {
    align-items: center;
  }

  .final-cta {
    grid-template-columns: 1fr auto;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .next-panel {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    padding: 0;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav .nav-action {
    min-height: 46px;
    margin-left: 8px;
    padding-inline: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
    gap: clamp(50px, 7vw, 100px);
  }

  .hero-visual {
    min-height: 600px;
  }

  .delivery-card {
    right: 34px;
    bottom: 34px;
    left: 34px;
    padding: 24px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
    align-items: end;
  }

  .section-heading.compact {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.65fr);
  }

  .process-section,
  .login-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.85fr);
    gap: clamp(60px, 8vw, 120px);
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .dashboard-session {
    width: auto;
    justify-content: flex-end;
  }

  .role-switcher {
    width: auto;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  }
}

@media (min-width: 1220px) {
  .audience-card {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr);
  }

  .phone-preview {
    margin-right: -8px;
  }
}

@media (max-width: 420px) {
  .hero-actions .button {
    width: 100%;
  }

  .delivery-card {
    padding: 16px;
  }

  .delivery-route strong {
    font-size: 0.86rem;
  }

  .trust-strip {
    width: calc(100% - 24px);
  }

  .login-panel {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Tiak-Tiak unified brand theme — sourced from the client and driver apps. */
:root {
  --cream: #f4f7fb;
  --cream-deep: #eaf0f7;
  --paper: #ffffff;
  --ink: #12181f;
  --ink-soft: #2d3b4d;
  --muted: #5a6572;
  --line: #e0e7f0;
  --teal: #ff7a1a;
  --teal-dark: #092a63;
  --teal-pale: #eaf2ff;
  --coral: #ff7a1a;
  --coral-dark: #c95408;
  --gold: #ffc400;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 12px 30px rgba(3, 27, 63, 0.08);
  --shadow: 0 28px 80px rgba(3, 27, 63, 0.14);
  --brand-primary: #092a63;
  --brand-primary-dark: #031b3f;
  --brand-orange: #ff7a1a;
  --brand-orange-soft: #fff0e5;
  --brand-yellow: #ffc400;
  --brand-yellow-soft: #fff2b8;
  --brand-success: #22a45d;
  --brand-success-soft: #eaf6ef;
  --brand-danger: #e0392b;
  --brand-danger-soft: #ffecea;
  --ops-bg: #f4f7fb;
  --ops-panel: #ffffff;
  --ops-sidebar: #031b3f;
  --ops-blue: #092a63;
  --ops-blue-pale: #eaf2ff;
  --ops-yellow: #ffc400;
  --ops-yellow-dark: #6a5700;
  --ops-route: #ff7a1a;
}

body {
  background:
    radial-gradient(circle at 8% 6%, rgba(9, 42, 99, 0.055), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(255, 122, 26, 0.055), transparent 25rem),
    var(--cream);
  font-family: "Roboto", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 em {
  color: var(--brand-orange);
  font-family: inherit;
  font-style: normal;
  font-weight: 850;
}

:focus-visible {
  outline-color: var(--brand-primary);
}

.site-header {
  background: rgba(244, 247, 251, 0.9);
}

.site-header.is-scrolled {
  border-color: rgba(9, 42, 99, 0.11);
  box-shadow: 0 12px 34px rgba(3, 27, 63, 0.07);
}

.site-nav,
.nav-toggle,
.login-panel,
.service-card,
.privacy-data-grid > div,
.support-search,
.support-topic-card,
.dashboard-card,
.dashboard-panel {
  border-color: var(--line);
  background-color: var(--paper);
}

.site-nav a:hover {
  background: var(--teal-pale);
  color: var(--brand-primary);
}

.site-nav .nav-action,
.button.primary,
.support-search button,
.role-switcher button.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(9, 42, 99, 0.2);
}

.site-nav .nav-action:hover,
.button.primary:hover,
.support-search button:hover {
  border-color: var(--brand-primary-dark);
  background: var(--brand-primary-dark);
}

.button.primary.coral {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
  box-shadow: 0 12px 28px rgba(255, 196, 0, 0.25);
}

.button.primary.coral:hover {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  color: var(--brand-primary-dark);
}

.button.ghost,
.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  color: var(--brand-primary);
}

.eyebrow.light,
.step-index,
.text-link span,
.support-contact-checklist > span {
  color: var(--brand-yellow);
}

.hero-visual {
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 72px rgba(3, 27, 63, 0.24);
}

.hero-visual .map-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
}

.route-line path:first-child {
  stroke: rgba(255, 255, 255, 0.2);
}

.route-line path:nth-child(2) {
  stroke: var(--brand-yellow);
}

.route-line circle:first-of-type {
  fill: var(--white);
  stroke: var(--brand-yellow);
}

.route-line circle:last-of-type {
  fill: var(--brand-orange);
  stroke: var(--white);
}

.delivery-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(224, 231, 240, 0.95);
  box-shadow: 0 22px 48px rgba(3, 27, 63, 0.22);
}

.courier-chip {
  background: var(--brand-primary-dark);
  box-shadow: 0 14px 30px rgba(3, 27, 63, 0.28);
}

.courier-avatar {
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
}

.status-dot,
.admin-live-dot,
.map-live-status i,
.map-leaflet-marker-dot.is-driver.is-online::after {
  background: var(--brand-success);
}

.delivery-progress .is-done {
  background: var(--brand-primary);
}

.delivery-progress .is-current {
  background: linear-gradient(90deg, var(--brand-primary) 55%, var(--line) 55%);
}

.route-pin {
  border-color: var(--teal-pale);
  outline-color: var(--brand-primary);
}

.route-pin.dropoff {
  border-color: var(--brand-orange-soft);
  outline-color: var(--brand-orange);
}

.hero-assurances li::before,
.privacy-list li::before,
.support-contact-checklist li::before,
.activity-list li > span {
  background: var(--brand-orange);
}

.trust-strip {
  border-color: rgba(9, 42, 99, 0.13);
}

.service-card,
.privacy-data-grid > div,
.support-topic-card {
  box-shadow: 0 12px 34px rgba(3, 27, 63, 0.045);
}

.service-card:hover,
.support-topic-card:hover {
  border-color: rgba(9, 42, 99, 0.26);
  box-shadow: var(--shadow-sm);
}

.service-icon,
.support-topic-icon.teal {
  background: var(--teal-pale);
  color: var(--brand-primary);
}

.service-card:nth-child(2) .service-icon,
.support-topic-icon.coral {
  background: var(--brand-orange-soft);
  color: var(--coral-dark);
}

.service-card:nth-child(3) .service-icon,
.support-topic-icon.gold {
  background: var(--brand-yellow-soft);
  color: #6a5700;
}

.process-section,
.support-faq,
.support-faq::before,
.privacy-promise,
.privacy-deletion-card,
.privacy-contact {
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
}

.process-section .steps li,
.process-section .steps li:first-child,
.support-faq-list,
.support-faq-list details {
  border-color: rgba(255, 255, 255, 0.16);
}

.spaces-section {
  background: transparent;
}

.audience-card {
  background: linear-gradient(145deg, #eaf2ff, #f5f8ff);
  border: 1px solid #d8e5f7;
}

.audience-card.driver {
  background: linear-gradient(145deg, var(--brand-yellow-soft), #fff9df);
  border-color: #f4dfa0;
}

.role-pill {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(9, 42, 99, 0.12);
  color: var(--brand-primary);
}

.audience-card.driver .role-pill {
  color: #6a5700;
}

.audience-card-copy li::before {
  background: var(--brand-primary);
}

.audience-card.driver li::before {
  background: var(--brand-yellow);
}

.phone-preview {
  background: var(--paper);
  border-color: var(--brand-primary-dark);
  box-shadow: 0 24px 48px rgba(3, 27, 63, 0.2);
}

.phone-map {
  background: var(--teal-pale);
}

.phone-map span {
  border-color: var(--brand-primary);
}

.phone-map i {
  background: repeating-linear-gradient(90deg, var(--brand-primary) 0 7px, transparent 7px 12px);
}

.phone-stat {
  background: var(--cream);
}

.login-section,
.support-contact {
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
}

.login-panel {
  border: 1px solid rgba(224, 231, 240, 0.9);
  box-shadow: 0 28px 70px rgba(3, 27, 63, 0.24);
}

.login-tabs {
  background: var(--cream-deep);
}

.login-tabs button.is-active {
  background: var(--paper);
  color: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(3, 27, 63, 0.1);
}

.form-heading > span,
.account-note > span {
  background: var(--teal-pale);
  color: var(--brand-primary);
}

.auth-form input:focus,
.auth-form select:focus,
.phone-field:focus-within,
.support-search:focus-within {
  border-color: var(--brand-primary);
  outline-color: rgba(9, 42, 99, 0.16);
}

.auth-result.is-success,
.admin-form-status.is-success {
  color: #137749;
}

.auth-result.is-error,
.admin-form-status.is-error {
  color: var(--brand-danger);
}

.privacy-promise::after {
  background: rgba(255, 196, 0, 0.18);
}

.privacy-hero > * {
  min-width: 0;
}

@media (max-width: 620px) {
  .privacy-hero-copy h1 {
    font-size: clamp(2.6rem, 13.2vw, 3.35rem);
  }
}

.privacy-shield {
  background: rgba(255, 196, 0, 0.14);
  color: var(--brand-yellow);
}

.privacy-summary > p,
.privacy-content section > p a,
.privacy-external-link,
.support-topic-card > strong {
  color: var(--brand-primary);
}

.privacy-summary a:hover {
  color: var(--brand-primary);
}

.privacy-section-number {
  color: var(--brand-orange);
}

.privacy-note {
  background: var(--brand-orange-soft);
}

.privacy-note.pale {
  background: var(--teal-pale);
}

.support-conversation {
  background: linear-gradient(145deg, #eaf2ff, #fff8f2);
  border-color: #d8e5f7;
  box-shadow: 0 28px 68px rgba(3, 27, 63, 0.14);
}

.support-agent-mark,
.support-bubbles p:last-child {
  background: var(--brand-primary);
}

.support-online {
  color: #137749;
}

.support-online i {
  background: var(--brand-success);
}

.support-filters button:hover,
.support-filters button.is-active {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
}

.support-faq-list summary > span::before,
.support-faq-list summary > span::after {
  background: var(--brand-yellow);
}

.support-contact-checklist {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-footer {
  border-color: rgba(9, 42, 99, 0.13);
}

.is-dashboard-page {
  background: var(--ops-bg);
}

.is-dashboard-page .admin-sidebar {
  background: linear-gradient(180deg, var(--brand-primary-dark), var(--brand-primary));
  box-shadow: 16px 0 46px rgba(3, 27, 63, 0.12);
}

.is-dashboard-page .admin-topbar {
  background: rgba(244, 247, 251, 0.93);
  border-bottom-color: rgba(9, 42, 99, 0.11);
}

.is-dashboard-page .admin-nav a.is-active {
  background: var(--white);
  color: var(--brand-primary-dark);
  box-shadow: 0 10px 26px rgba(3, 27, 63, 0.24);
}

.is-dashboard-page .admin-nav a.is-active > span,
.admin-kicker {
  color: var(--brand-orange);
}

.admin-icon-button:hover,
.admin-command-strip a:hover {
  border-color: rgba(9, 42, 99, 0.34);
  background: var(--teal-pale);
}

.command-icon {
  background: var(--teal-pale);
  color: var(--brand-primary);
}

.command-icon.is-map {
  background: var(--brand-yellow-soft);
  color: var(--brand-primary-dark);
}

.source-badge,
.map-live-status {
  background: var(--brand-success-soft);
  color: #137749;
}

.is-dashboard-page .admin-metric,
.is-dashboard-page .admin-panel,
.is-dashboard-page .admin-table-panel,
.is-dashboard-page .admin-pricing-form,
.operations-map-card,
.map-dispatch-panel,
.map-legend label {
  background: var(--ops-panel);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(3, 27, 63, 0.045);
}

.map-dispatch-summary div {
  background: var(--ops-bg);
}

.map-leaflet-marker-dot.is-driver {
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
}

.map-leaflet-marker-dot.is-pickup {
  background: var(--brand-primary);
}

.map-leaflet-marker-dot.is-delivery {
  background: var(--brand-orange);
}

.admin-inbox-panel,
.admin-inbox-panel > header,
.admin-inbox-item {
  border-color: var(--line);
  background: var(--paper);
}

.admin-inbox-item:hover,
.admin-inbox-item:focus-visible,
.admin-inbox-item.is-unread {
  background: var(--teal-pale);
}

.admin-inbox-item.is-unread .admin-inbox-dot {
  background: var(--brand-orange);
}

.admin-live-alert {
  border-left-color: var(--brand-yellow);
  background: var(--brand-primary-dark);
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .support-topic-card,
  .button,
  .admin-command-strip a,
  .admin-icon-button {
    transition: none;
  }
}

.admin-notification-layout {
  display: grid;
  gap: 20px;
}

.admin-notification-form {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--admin-border, #dfe5ec);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(15 23 42 / 7%);
}

.admin-notification-form label > span,
.admin-notification-form label > small {
  display: block;
}

.admin-notification-form label > span {
  margin-bottom: 8px;
  font-weight: 700;
}

.admin-notification-form label > small {
  margin-top: 6px;
  color: #667085;
}

.notification-confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 12px;
}

.admin-form-status {
  min-height: 24px;
  margin: 0 0 12px;
  color: #475467;
}

.admin-form-status.is-success { color: #067647; }
.admin-form-status.is-error { color: #b42318; }

.admin-notification-history {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-notification-history li {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid #eaecf0;
}

.admin-notification-history li:last-child { border-bottom: 0; }
.admin-notification-history div,
.admin-notification-history span,
.admin-notification-history small { display: block; }
.admin-notification-history span { margin-top: 5px; color: #344054; }
.admin-notification-history small,
.admin-notification-history time { margin-top: 5px; color: #667085; font-size: .82rem; }

.admin-inbox { position: relative; }

.admin-inbox-toggle { position: relative; }

.admin-inbox-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.admin-inbox-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid #dfe5ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(15 23 42 / 18%);
}

.admin-inbox-panel > header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #eaecf0;
  background: #fff;
}

.admin-inbox-panel h2 { margin: 2px 0 0; font-size: 1.05rem; }
.admin-inbox-panel header button,
.admin-inbox-panel > a {
  border: 0;
  background: transparent;
  color: #175cd3;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}

.admin-inbox-panel > a { display: block; padding: 14px 20px; border-top: 1px solid #eaecf0; text-align: center; }
.admin-inbox-panel ol { margin: 0; padding: 0; list-style: none; }
.admin-inbox-panel li { border-bottom: 1px solid #eaecf0; }
.admin-inbox-panel li:last-child { border-bottom: 0; }

.admin-inbox-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  background: #fff;
  color: #101828;
  text-align: left;
  cursor: pointer;
}

.admin-inbox-item:hover,
.admin-inbox-item:focus-visible { background: #f8fafc; }
.admin-inbox-item.is-unread { background: #f0f6ff; }
.admin-inbox-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: transparent; }
.admin-inbox-item.is-unread .admin-inbox-dot { background: #175cd3; }
.admin-inbox-item strong,
.admin-inbox-item span,
.admin-inbox-item time { display: block; }
.admin-inbox-item span { margin-top: 4px; color: #475467; line-height: 1.4; }
.admin-inbox-item time { margin-top: 8px; color: #667085; font-size: .78rem; }

.admin-live-alert {
  position: fixed;
  z-index: 100;
  top: 24px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 18px;
  border-left: 4px solid #175cd3;
  border-radius: 12px;
  background: #101828;
  color: #fff;
  box-shadow: 0 20px 50px rgb(15 23 42 / 24%);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.admin-live-alert.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1080px) {
  .admin-notification-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); align-items: start; }
}

@media (max-width: 679px) {
  .admin-inbox-panel { position: fixed; top: 76px; right: 16px; left: 16px; width: auto; max-height: calc(100vh - 96px); }
  .admin-live-alert { top: 16px; right: 16px; }
}

/* Operations control center — page-based dashboard */
:root {
  --ops-bg: #f3f5f2;
  --ops-panel: #ffffff;
  --ops-sidebar: #111918;
  --ops-blue: #2563eb;
  --ops-blue-pale: #dbeafe;
  --ops-yellow: #f4c531;
  --ops-yellow-dark: #8a6500;
  --ops-route: #e7654f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-dashboard-page {
  background: var(--ops-bg);
}

.is-dashboard-page .admin-dashboard {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  gap: 0;
}

.admin-sidebar-brand {
  display: flex;
  min-height: 52px;
  margin: 0 5px 22px;
  align-items: center;
  gap: 11px;
  color: var(--white);
}

.admin-sidebar-brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.admin-sidebar-brand span,
.admin-sidebar-brand strong,
.admin-sidebar-brand small,
.admin-updated small {
  display: block;
}

.admin-sidebar-brand strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.admin-sidebar-brand small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.is-dashboard-page .admin-sidebar {
  inset: 0 auto 0 0;
  width: min(268px, 88vw);
  height: 100svh;
  padding: 18px 14px;
  background: var(--ops-sidebar);
}

.is-dashboard-page .admin-sidebar-heading {
  padding: 0 9px 13px;
}

.is-dashboard-page .admin-sidebar-heading strong {
  font-size: 0.85rem;
}

.is-dashboard-page .admin-nav {
  margin-top: 12px;
  gap: 3px;
  overflow-y: auto;
}

.is-dashboard-page .admin-nav a {
  min-height: 44px;
  padding: 8px 10px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  border-radius: 9px;
  font-size: 0.82rem;
}

.is-dashboard-page .admin-nav a.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.is-dashboard-page .admin-nav a.is-active > span {
  color: var(--teal-dark);
}

.admin-live-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8, 124, 116, 0.13);
}

.is-dashboard-page .admin-sidebar-foot {
  padding: 14px 9px 0;
}

.is-dashboard-page .admin-workspace {
  min-width: 0;
  padding: 0 16px 48px;
}

.is-dashboard-page .member-workspace:not([hidden]) {
  grid-column: 1 / -1;
  width: min(100%, 920px);
  margin-inline: auto;
  padding-inline: 20px;
}

.is-dashboard-page .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 17px 0 15px;
  align-items: center;
  background: rgba(243, 245, 242, 0.92);
  border-bottom-color: rgba(23, 32, 31, 0.11);
  backdrop-filter: blur(16px);
}

.admin-dashboard[data-active-view="documents"] .admin-topbar {
  position: static;
}

.is-dashboard-page .admin-topbar h1 {
  max-width: none;
  margin: 2px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.admin-page-description {
  max-width: 650px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.is-dashboard-page .admin-sync {
  display: grid;
  grid-template-columns: 44px auto minmax(118px, auto) 44px 44px;
  flex-wrap: nowrap;
  gap: 7px;
}

.admin-updated {
  min-width: 128px;
}

.admin-updated small {
  overflow: hidden;
  max-width: 190px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-updated .sync-detail {
  font-size: 0.66rem;
}

.admin-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ops-panel);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-icon-button:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-1px);
}

.admin-icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-dashboard-page .admin-feedback {
  margin-top: 12px;
}

.is-dashboard-page .admin-section {
  padding: 22px 0 0;
  scroll-margin-top: 94px;
}

.is-dashboard-page .admin-section-heading {
  margin-bottom: 14px;
}

.is-dashboard-page .admin-section-heading h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  letter-spacing: -0.04em;
}

.is-dashboard-page .admin-section-heading > p {
  font-size: 0.82rem;
}

.admin-command-strip {
  display: grid;
  margin-bottom: 24px;
  gap: 8px;
}

.admin-command-strip a {
  display: grid;
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: var(--ops-panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-command-strip a:hover {
  border-color: #aab9b4;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.admin-command-strip small,
.admin-command-strip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-strip small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 780;
  text-transform: uppercase;
}

.admin-command-strip strong {
  font-size: 0.84rem;
}

.admin-command-strip b {
  color: var(--muted);
  font-size: 1.1rem;
}

.command-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--teal-pale);
  border-radius: 10px;
  color: var(--teal-dark);
  font-weight: 900;
}

.command-icon.is-map {
  background: var(--ops-yellow);
  color: var(--ink);
}

.command-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-dashboard-page .admin-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.is-dashboard-page .admin-metric {
  min-height: 118px;
  padding: 15px;
  border-radius: 13px;
}

.is-dashboard-page .admin-metric > strong {
  margin: 9px 0 7px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.is-dashboard-page .admin-metric::after {
  width: 68px;
  height: 68px;
}

.is-dashboard-page .admin-overview-grid {
  gap: 8px;
}

.is-dashboard-page .admin-panel,
.is-dashboard-page .admin-table-panel,
.is-dashboard-page .admin-pricing-form {
  border-radius: 13px;
}

.is-dashboard-page .admin-panel {
  padding: 17px;
}

.is-dashboard-page .admin-priority-item {
  padding: 10px 0;
}

.is-dashboard-page .admin-table-panel {
  box-shadow: 0 8px 30px rgba(23, 32, 31, 0.04);
}

.is-dashboard-page .admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Real-time operations map */
.admin-map-page {
  min-width: 0;
}

.map-toolbar {
  display: flex;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-legend,
.map-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.map-legend label {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  background: var(--ops-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.map-legend input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.map-legend label:has(input:not(:checked)) {
  color: var(--muted);
  opacity: 0.58;
}

.map-legend label:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.map-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.map-legend-dot.is-driver {
  background: var(--ops-yellow);
  box-shadow: 0 0 0 3px rgba(244, 197, 49, 0.2);
}

.map-legend-dot.is-client {
  background: var(--ops-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.map-legend-line {
  width: 18px;
  border-top: 3px dashed var(--ops-route);
}

.map-search input {
  min-width: min(280px, 66vw);
}

.operations-map-layout {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.operations-map-card,
.map-dispatch-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--ops-panel);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.operations-map-card {
  padding: 14px;
}

.operations-map-head,
.map-dispatch-heading {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operations-map-head h2,
.map-dispatch-heading h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.035em;
}

.map-live-status {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 9px;
  align-items: center;
  gap: 7px;
  background: var(--teal-pale);
  border-radius: 99px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 850;
}

.map-live-status i {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8, 124, 116, 0.12);
}

.operations-map-canvas {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #e8eee7;
  border: 1px solid #d3ddd4;
  border-radius: 12px;
  isolation: isolate;
}

.operations-map-canvas::before {
  content: none;
}

.operations-map-leaflet {
  position: absolute;
  inset: 0;
  z-index: 1;
  font: inherit;
}

.operations-map-leaflet .leaflet-control-zoom a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.operations-map-leaflet .leaflet-control-attribution,
.operations-map-leaflet .leaflet-control-scale-line {
  font-size: 0.68rem;
}

.map-leaflet-marker {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.map-leaflet-marker-dot {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ops-blue);
  border: 3px solid var(--ops-panel);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(23, 32, 31, 0.28);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-leaflet-marker-dot b {
  font: inherit;
}

.map-leaflet-marker-dot.is-driver {
  background: var(--ops-yellow);
  color: var(--ink);
}

.map-leaflet-marker-dot.is-driver.is-online::after {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: var(--teal);
  border: 2px solid var(--ops-panel);
  border-radius: 50%;
  content: "";
}

.map-leaflet-marker-dot.is-pickup {
  background: var(--ops-blue);
}

.map-leaflet-marker-dot.is-delivery {
  width: 34px;
  height: 34px;
  background: var(--ops-route);
  border-radius: 10px 10px 10px 3px;
  transform: rotate(-45deg);
}

.map-leaflet-marker-dot.is-delivery b {
  transform: rotate(45deg);
}

.map-leaflet-marker-dot.is-delivery.is-focus {
  box-shadow: 0 0 0 7px rgba(231, 101, 79, 0.24), 0 6px 18px rgba(23, 32, 31, 0.3);
}

.map-leaflet-marker:hover .map-leaflet-marker-dot,
.leaflet-marker-icon:focus-visible .map-leaflet-marker-dot {
  box-shadow: 0 0 0 4px rgba(244, 197, 49, 0.45), 0 8px 22px rgba(23, 32, 31, 0.32);
  transform: scale(1.09);
}

.map-leaflet-marker:hover .map-leaflet-marker-dot.is-delivery,
.leaflet-marker-icon:focus-visible .map-leaflet-marker-dot.is-delivery {
  transform: rotate(-45deg) scale(1.09);
}

.operations-map-leaflet .leaflet-popup-content {
  display: grid;
  min-width: 190px;
  margin: 14px 16px;
  gap: 4px;
}

.operations-map-leaflet .leaflet-popup-content span,
.operations-map-leaflet .leaflet-popup-content small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.map-coordinate-status {
  position: absolute;
  right: 10px;
  bottom: 22px;
  z-index: 600;
  max-width: min(440px, calc(100% - 84px));
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 32, 31, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 750;
  pointer-events: none;
}

.map-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23, 32, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 31, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
}

.map-district {
  position: absolute;
  z-index: 0;
  color: rgba(23, 32, 31, 0.33);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.district-one { right: 7%; bottom: 10%; }
.district-two { left: 48%; bottom: 38%; }
.district-three { left: 34%; top: 27%; }
.district-four { right: 16%; top: 13%; }

.map-routes,
.map-markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-routes {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.map-route-path {
  fill: none;
  stroke: var(--ops-route);
  stroke-width: 4;
  stroke-dasharray: 9 8;
  stroke-linecap: round;
  opacity: 0.76;
  vector-effect: non-scaling-stroke;
}

.map-route-path.is-focus {
  stroke-width: 7;
  opacity: 1;
}

.map-route-end {
  fill: var(--ops-panel);
  stroke: var(--ops-route);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.map-markers {
  z-index: 3;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, filter 160ms ease;
}

.map-marker:hover,
.map-marker:focus-visible {
  z-index: 5;
  filter: brightness(1.05);
  transform: translate(-50%, -50%) scale(1.12);
}

.map-marker span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid var(--ops-panel);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(23, 32, 31, 0.25);
  font-size: 0.68rem;
  font-weight: 900;
}

.map-marker.is-driver span {
  background: var(--ops-yellow);
  color: var(--ink);
}

.map-marker.is-driver.is-online::after {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  background: var(--teal);
  border: 2px solid var(--ops-panel);
  border-radius: 50%;
  content: "";
}

.map-marker.is-stale {
  opacity: 0.62;
}

.map-marker.is-client span {
  background: var(--ops-blue);
}

.map-marker.is-delivery span {
  position: relative;
  isolation: isolate;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-marker.is-delivery span::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ops-route);
  border: 3px solid var(--ops-panel);
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 5px 14px rgba(23, 32, 31, 0.25);
  content: "";
  transform: rotate(-45deg);
}

.map-marker.is-delivery.is-focus span::before {
  box-shadow: 0 0 0 6px rgba(231, 101, 79, 0.22), 0 5px 14px rgba(23, 32, 31, 0.25);
}

.map-empty-state {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 650;
  display: grid;
  width: min(320px, 82%);
  padding: 18px;
  gap: 3px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-empty-state[hidden] {
  display: none;
}

.map-empty-state span {
  color: var(--muted);
  font-size: 0.78rem;
}

.map-zoom-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  display: grid;
  overflow: hidden;
  background: var(--ops-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.map-zoom-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--ops-panel);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.map-zoom-controls button:last-child {
  border-bottom: 0;
}

.map-scale {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding-top: 4px;
  border-top: 3px solid var(--ink);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
}

.map-dispatch-panel {
  padding: 14px;
}

.map-dispatch-summary {
  display: grid;
  margin-bottom: 17px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.map-dispatch-summary div {
  min-width: 0;
  padding: 12px;
  background: var(--ops-bg);
  border-radius: 10px;
}

.map-dispatch-summary strong,
.map-dispatch-summary span {
  display: block;
}

.map-dispatch-summary strong {
  font-size: 1.45rem;
  line-height: 1;
}

.map-dispatch-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.map-dispatch-heading > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.map-delivery-list {
  display: grid;
  max-height: 560px;
  overflow-y: auto;
  gap: 7px;
}

.map-delivery-card {
  padding: 12px;
  background: var(--ops-panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color 160ms ease, background 160ms ease;
}

.map-delivery-card.is-focus {
  background: #fff7f4;
  border-color: #e9a69a;
}

.map-delivery-card-head,
.map-delivery-card > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.map-delivery-card p {
  display: -webkit-box;
  margin: 9px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-delivery-code {
  display: flex;
  min-width: 0;
  margin: 0 0 10px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(9, 42, 99, 0.12);
  border-radius: 8px;
  background: var(--brand-yellow-soft);
}

.map-delivery-code span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-delivery-code strong {
  flex: 0 0 auto;
  color: var(--brand-primary-dark);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.map-delivery-card > div:last-child > span {
  display: inline-flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-driver-swatch {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--ops-yellow);
  border-radius: 50%;
}

.map-delivery-card button {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ops-panel);
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

@media (min-width: 680px) {
  .admin-command-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .is-dashboard-page .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .is-dashboard-page .admin-dashboard {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .is-dashboard-page .admin-sidebar {
    position: sticky;
    inset: 0;
    width: auto;
    height: 100svh;
    border-radius: 0;
  }

  .is-dashboard-page .admin-workspace {
    padding: 0 clamp(22px, 2.7vw, 42px) 54px;
  }

  .is-dashboard-page .admin-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .is-dashboard-page .admin-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .is-dashboard-page .admin-metric {
    min-height: 128px;
  }

  .operations-map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.32fr);
  }
}

@media (min-width: 1380px) {
  .is-dashboard-page .admin-dashboard {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .operations-map-canvas {
    min-height: 620px;
  }
}

@media (max-width: 679px) {
  .is-dashboard-page .admin-sync {
    grid-template-columns: auto minmax(0, 1fr) 44px 44px;
  }

  .admin-updated {
    display: none;
  }

  .map-toolbar,
  .map-toolbar-actions,
  .map-search {
    width: 100%;
  }

  .map-search {
    flex: 1 1 190px;
  }

  .map-search input {
    min-width: 0;
  }

  .map-legend {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .map-legend label {
    flex: 0 0 auto;
  }

  .operations-map-canvas {
    min-height: 470px;
  }

  .operations-map-head {
    align-items: start;
  }

  .map-live-status {
    max-width: 110px;
    white-space: normal;
  }

  .map-delivery-list {
    max-height: none;
  }
}

/* Administration operations workspace */
.admin-dashboard {
  display: grid;
  width: min(100%, 1720px);
  min-height: calc(100svh - 76px);
  margin-inline: auto;
  padding: 20px clamp(16px, 3vw, 44px) 72px;
  gap: 20px;
}

.admin-dashboard button,
.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
  font: inherit;
}

.admin-sidebar {
  position: fixed;
  inset: 76px auto 0 0;
  z-index: 35;
  display: flex;
  width: min(300px, 86vw);
  padding: 26px 20px;
  flex-direction: column;
  background: #111a19;
  color: var(--white);
  box-shadow: 24px 0 70px rgba(23, 32, 31, 0.2);
  transform: translateX(-105%);
  transition: transform 220ms ease;
}

.admin-sidebar.is-open {
  transform: translateX(0);
}

.admin-sidebar-heading {
  display: grid;
  padding: 4px 8px 26px;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-heading strong {
  font-size: 1.18rem;
}

.admin-kicker {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-sidebar .admin-kicker {
  color: #8fd4ca;
}

.admin-nav {
  display: grid;
  margin-top: 22px;
  gap: 5px;
}

.admin-nav a {
  display: grid;
  min-height: 48px;
  padding: 10px 12px;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.91rem;
  font-weight: 760;
  transition: background 160ms ease, color 160ms ease;
}

.admin-nav a > span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.admin-nav b {
  display: grid;
  min-width: 24px;
  min-height: 24px;
  padding-inline: 6px;
  place-items: center;
  background: var(--coral);
  border-radius: 99px;
  color: var(--white);
  font-size: 0.72rem;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding: 20px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-foot p {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.admin-sidebar-foot strong {
  display: block;
  overflow: hidden;
  margin-bottom: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fe1d7;
  font-weight: 800;
  cursor: pointer;
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  display: grid;
  padding: 16px 0 26px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1,
.member-workspace h1 {
  max-width: 900px;
  margin: 5px 0 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.admin-menu-button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.admin-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px;
  background: currentColor;
}

.admin-sync {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.admin-sync small {
  color: var(--muted);
}

.source-badge,
.admin-badge {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 9px;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.source-badge i {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.source-badge.is-syncing i {
  background: var(--gold);
  animation: sync-pulse 900ms ease-in-out infinite alternate;
}

.source-badge.is-error {
  background: #f9ded8;
  color: #8b3024;
}

.source-badge.is-error i {
  background: var(--coral-dark);
}

.sync-detail {
  width: 100%;
}

@keyframes sync-pulse {
  to { opacity: 0.32; }
}

.admin-refresh-button {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.admin-refresh-button:hover {
  background: var(--cream);
  border-color: var(--teal);
}

.admin-feedback {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 720;
}

.admin-feedback:not(:empty) {
  display: block;
}

.admin-feedback.is-error {
  border-color: #eab5ad;
  background: #fff2ef;
  color: #8b3024;
}

.admin-feedback.is-success {
  border-color: #a8cec7;
  background: #eff9f7;
  color: var(--teal-dark);
}

.admin-section {
  padding: clamp(42px, 6vw, 74px) 0 0;
  scroll-margin-top: 82px;
}

.admin-section-heading {
  display: grid;
  margin-bottom: 22px;
  gap: 12px;
}

.admin-section-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.admin-section-heading > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.admin-metrics {
  display: grid;
  gap: 10px;
}

.admin-metric {
  position: relative;
  min-height: 158px;
  padding: 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-metric::after {
  position: absolute;
  right: -22px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  background: var(--teal-pale);
  border-radius: 50%;
  content: "";
}

.admin-metric.is-alert::after {
  background: #f9ded8;
}

.admin-metric > span,
.admin-metric > small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.admin-metric > strong {
  display: block;
  margin: 13px 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.admin-metric.is-loading > strong,
.admin-metric.is-loading > small {
  color: transparent;
  background: linear-gradient(100deg, var(--cream-deep) 20%, var(--paper) 40%, var(--cream-deep) 60%);
  background-size: 220% 100%;
  border-radius: 5px;
  animation: admin-shimmer 1.4s linear infinite;
}

@keyframes admin-shimmer {
  to { background-position: -220% 0; }
}

.admin-overview-grid {
  display: grid;
  margin-top: 12px;
  gap: 12px;
}

.admin-panel,
.admin-table-panel,
.admin-pricing-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
}

.admin-panel-heading {
  display: flex;
  margin-bottom: 18px;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel-heading h3 {
  margin: 3px 0 0;
  font-size: 1.35rem;
}

.admin-panel-heading a {
  min-height: 40px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 820;
}

.admin-priority-list,
.admin-timeline {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.admin-priority-item {
  display: grid;
  padding: 13px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  border-top: 1px solid var(--line);
}

.admin-priority-item:first-child {
  border-top: 0;
}

.admin-priority-item strong,
.admin-priority-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-priority-item small,
.admin-timeline time {
  color: var(--muted);
}

.admin-mini-button,
.admin-action-button {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-mini-button:hover,
.admin-action-button:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.admin-mini-button.primary,
.admin-action-button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.admin-action-button.danger {
  border-color: #eab5ad;
  color: #9c3527;
}

.admin-timeline li:not(.admin-empty) {
  position: relative;
  padding: 2px 0 14px 20px;
  border-left: 1px solid var(--line);
}

.admin-timeline li:not(.admin-empty)::before {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--teal);
  border: 2px solid var(--paper);
  border-radius: 50%;
  content: "";
}

.admin-timeline strong,
.admin-timeline span,
.admin-timeline time {
  display: block;
}

.admin-timeline span,
.admin-timeline time {
  font-size: 0.78rem;
}

.admin-status-chart {
  display: grid;
  gap: 10px;
}

.admin-chart-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.65fr) minmax(100px, 1.35fr) 38px;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.admin-chart-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chart-track {
  height: 8px;
  overflow: hidden;
  background: var(--cream-deep);
  border-radius: 99px;
}

.admin-chart-track i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

.admin-filters {
  display: grid;
  gap: 9px;
}

.admin-filters.compact {
  width: min(100%, 520px);
}

.admin-filters .admin-check {
  display: flex;
  min-height: 46px;
  padding: 9px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}

.admin-filters .admin-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.admin-filters .admin-check span {
  color: var(--ink);
  font-size: 0.78rem;
}

.admin-filters label,
.admin-search,
.admin-pricing-form label,
.admin-dialog label {
  display: grid;
  gap: 6px;
}

.admin-filters label > span,
.admin-search > span,
.admin-pricing-form label > span,
.admin-dialog label > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

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

.admin-table-panel {
  overflow: hidden;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 15px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  background: #f0eee6;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: #fbfaf5;
}

.admin-table tbody tr.is-archived {
  background: #f3f0e7;
  opacity: 0.72;
}

.admin-table strong,
.admin-table small {
  display: block;
}

.admin-table small {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-actions {
  display: flex;
  min-width: 220px;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-badge.is-warning {
  background: #fbefcf;
  color: #76520a;
}

.admin-badge.is-danger {
  background: #f9ded8;
  color: #8b3024;
}

.admin-badge.is-neutral {
  background: var(--cream-deep);
  color: var(--muted);
}

.admin-empty {
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
}

.admin-empty.compact {
  padding: 18px 0;
  text-align: left;
}

.admin-document-grid {
  display: grid;
  gap: 10px;
}

.admin-document-card {
  display: grid;
  min-width: 0;
  padding: 18px;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-document-card.is-archived {
  background: #f3f0e7;
  opacity: 0.72;
}

.admin-document-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.admin-document-card p,
.admin-document-card small {
  margin: 0;
  color: var(--muted);
}

.admin-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-document-actions a {
  display: inline-flex;
  min-height: 44px;
  padding: 7px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 820;
}

.admin-finance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-finance-summary span {
  padding: 8px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-finance-summary strong {
  color: var(--ink);
}

.finance-subheading {
  margin-top: 2rem;
}

.admin-pricing-form {
  display: grid;
  padding: clamp(18px, 3vw, 30px);
  gap: 15px;
}

.pricing-page-intro {
  display: flex;
  margin-bottom: 18px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.pricing-page-intro h2 {
  margin: 2px 0 6px;
  color: var(--brand-primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
}

.pricing-page-intro p:not(.admin-kicker) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.pricing-safety-badge {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid #b9e5d2;
  border-radius: 999px;
  background: var(--brand-success-soft);
  color: #137749;
  font-size: 0.76rem;
  font-weight: 850;
}

.pricing-safety-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-success);
  box-shadow: 0 0 0 4px rgba(36, 171, 112, 0.13);
}

.pricing-summary-grid {
  display: grid;
  margin-bottom: 16px;
  gap: 12px;
}

.pricing-summary-grid article {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ops-panel);
  box-shadow: 0 10px 28px rgba(3, 27, 63, 0.04);
}

.pricing-summary-grid article.is-alert {
  border-color: #f4d79b;
  background: #fffbef;
}

.pricing-summary-grid small,
.pricing-summary-grid p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.pricing-summary-grid strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--brand-primary-dark);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
}

.pricing-workspace {
  display: grid;
  align-items: start;
  gap: 16px;
}

.pricing-rule-form {
  min-width: 0;
}

.pricing-form-heading {
  display: flex;
  padding-bottom: 14px;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.pricing-form-heading h3,
.pricing-simulator h3 {
  margin: 2px 0 0;
  color: var(--brand-primary-dark);
  font-size: 1.35rem;
}

.pricing-form-heading > small {
  max-width: 360px;
  color: var(--muted);
  text-align: right;
}

.pricing-fieldset {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.pricing-fieldset:first-of-type {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-fieldset legend {
  padding: 0 7px;
  color: var(--brand-primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.pricing-input-unit {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}

.admin-dashboard .pricing-input-unit input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pricing-input-unit:focus-within {
  border-color: var(--brand-primary);
  outline: 3px solid rgba(9, 42, 99, 0.14);
}

.pricing-input-unit b {
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.pricing-tier-grid {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.pricing-tier-grid article {
  display: grid;
  min-width: 0;
  padding: 13px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faff;
}

.pricing-tier-grid article > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tier-grid article > strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-primary-dark);
}

.admin-dashboard .pricing-tier-grid article > strong input {
  width: 64px;
  min-height: 34px;
  padding: 5px 7px;
  text-align: center;
}

.pricing-rule-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--brand-yellow);
  border-radius: 7px;
  background: var(--brand-yellow-soft);
  color: #685400;
  font-size: 0.78rem;
}

.pricing-form-error {
  padding: 12px 14px;
  border: 1px solid #f0b6b1;
  border-radius: 10px;
  background: var(--brand-danger-soft);
  color: #a5302b;
  font-size: 0.82rem;
}

.pricing-form-error ul {
  margin: 7px 0 0;
  padding-left: 20px;
}

.pricing-simulator {
  display: grid;
  min-width: 0;
  padding: 22px;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--brand-primary-dark);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(3, 27, 63, 0.14);
}

.pricing-simulator .admin-kicker,
.pricing-simulator h3 {
  color: var(--white);
}

.pricing-simulator label {
  display: grid;
  gap: 9px;
}

.pricing-simulator label > span {
  color: #c9d7ef;
  font-size: 0.78rem;
  font-weight: 800;
}

.pricing-simulator output {
  justify-self: end;
  margin-top: -28px;
  color: var(--brand-yellow);
  font-weight: 900;
}

.admin-dashboard .pricing-simulator input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--brand-yellow);
}

.pricing-simulator-total {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
}

.pricing-simulator-total small,
.pricing-simulator-total span {
  display: block;
  color: #c9d7ef;
}

.pricing-simulator-total strong {
  display: block;
  margin: 6px 0;
  color: var(--brand-yellow);
  font-size: 2rem;
}

.pricing-simulator-total span {
  font-size: 0.74rem;
  font-weight: 800;
}

.pricing-simulator-total span.is-review {
  color: #ffd09a;
}

.pricing-simulator dl {
  display: grid;
  margin: 0;
  gap: 9px;
}

.pricing-simulator dl div {
  display: flex;
  padding-bottom: 9px;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.pricing-simulator dt {
  color: #c9d7ef;
}

.pricing-simulator dd {
  margin: 0;
  font-weight: 850;
}

.pricing-market-note {
  padding: 13px;
  border-radius: 11px;
  background: var(--brand-yellow);
  color: #3f3500;
}

.pricing-market-note p {
  margin: 5px 0 0;
  font-size: 0.75rem;
}

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

.pricing-review-card {
  display: grid;
  padding: 16px;
  align-items: center;
  gap: 16px;
  border: 1px solid #efd79f;
  border-radius: 14px;
  background: #fffcf3;
}

.pricing-review-route span,
.pricing-review-route small,
.pricing-review-metrics small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.pricing-review-route strong {
  display: block;
  margin: 5px 0;
  color: var(--brand-primary-dark);
}

.pricing-review-route i {
  color: var(--ops-orange-text);
  font-style: normal;
}

.pricing-review-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-review-metrics p {
  min-width: 105px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.pricing-review-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

@media (min-width: 760px) {
  .pricing-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-review-card {
    grid-template-columns: minmax(260px, 1.4fr) minmax(330px, 1fr) auto;
  }
}

@media (min-width: 1180px) {
  .pricing-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.36fr);
  }

  .pricing-simulator {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 759px) {
  .pricing-page-intro,
  .pricing-form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-form-heading > small {
    text-align: left;
  }

  .pricing-fieldset,
  .pricing-fieldset:first-of-type {
    grid-template-columns: 1fr;
  }

  .pricing-review-card .admin-action-button {
    width: 100%;
  }
}

/* Audit ledger */
.audit-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.audit-page-intro h2,
.audit-page-intro p,
.audit-toolbar h3,
.audit-toolbar p {
  margin: 0;
}

.audit-page-intro h2 {
  color: #061f49;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.audit-page-intro > div > p:last-child {
  max-width: 700px;
  margin-top: 7px;
  color: #657389;
}

.audit-page-intro aside {
  max-width: 430px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #cde7d9;
  border-radius: 14px;
  color: #176944;
  background: #f1fbf6;
}

.audit-page-intro aside > svg {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.audit-page-intro aside p {
  display: grid;
  gap: 2px;
}

.audit-page-intro aside strong {
  font-size: 0.78rem;
}

.audit-page-intro aside span {
  color: #527365;
  font-size: 0.7rem;
  line-height: 1.45;
}

.audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.audit-summary article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid #dbe4ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(16 35 62 / 5%);
}

.audit-summary article > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0a3572;
  background: #edf4ff;
}

.audit-summary article > span.is-green { color: #14734a; background: #e9f8f0; }
.audit-summary article > span.is-orange { color: #a95812; background: #fff3e8; }
.audit-summary article > span.is-red { color: #a23c35; background: #fff0ee; }

.audit-summary svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.audit-summary p {
  min-width: 0;
  display: grid;
  margin: 0;
}

.audit-summary small,
.audit-summary b {
  overflow: hidden;
  color: #718096;
  font-size: 0.69rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-summary small {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.audit-summary strong {
  margin: 2px 0;
  color: #0a3572;
  font-size: 1.5rem;
  line-height: 1;
}

.audit-ledger {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(16 35 62 / 6%);
  scroll-margin-top: 16px;
}

.audit-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid #dbe4ef;
  background: #fbfcfe;
}

.audit-toolbar h3 {
  color: #061f49;
  font-size: 1.25rem;
}

.audit-toolbar h3:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(10 53 114 / 18%);
  outline-offset: 3px;
}

.audit-toolbar small {
  color: #6d7a8c;
  font-size: 0.74rem;
}

.audit-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.audit-filters label {
  min-width: 210px;
  display: grid;
  gap: 5px;
  color: #657389;
  font-size: 0.71rem;
  font-weight: 800;
}

.audit-filters label > div {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  border: 1px solid #cdd8e6;
  border-radius: 10px;
  background: #fff;
}

.audit-filters label > div:focus-within {
  border-color: #0a3572;
  box-shadow: 0 0 0 3px rgb(10 53 114 / 10%);
}

.audit-filters label > div svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #718096;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.audit-filters input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
}

.audit-filters select {
  min-height: 46px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #cdd8e6;
  border-radius: 10px;
  color: #10233e;
  background-color: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.audit-list-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-audit-list {
  display: grid;
  margin: 0;
  padding: 4px 20px 12px;
  list-style: none;
}

.admin-audit-list[aria-busy="true"] {
  opacity: 0.62;
}

.audit-day-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0 8px;
  color: #6d7a8c;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: capitalize;
}

.audit-day-separator::after {
  height: 1px;
  flex: 1;
  content: "";
  background: #e4eaf2;
}

.audit-entry {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 11px;
  border-bottom: 1px solid #edf1f6;
}

.audit-entry:last-child {
  border-bottom: 0;
}

.audit-entry:hover {
  border-radius: 11px;
  background: #f8fbff;
}

.audit-entry-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #66758a;
  background: #f0f3f7;
}

.audit-entry.is-primary .audit-entry-icon { color: #0a4b91; background: #eaf3ff; }
.audit-entry.is-success .audit-entry-icon { color: #14734a; background: #e9f8f0; }
.audit-entry.is-danger .audit-entry-icon { color: #a23c35; background: #fff0ee; }

.audit-entry-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.audit-entry-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.audit-entry-content header,
.audit-entry-content footer {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.audit-entry-content strong {
  overflow-wrap: anywhere;
  color: #10233e;
  font-size: 0.79rem;
}

.audit-entry-content code {
  padding: 3px 7px;
  border-radius: 6px;
  color: #657389;
  background: #f0f3f7;
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 750;
}

.audit-entry-content footer > span,
.audit-entry-content footer > a {
  color: #718096;
  font-size: 0.7rem;
}

.audit-entry-content footer > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #0a4b91;
  font-weight: 750;
  text-decoration: none;
}

.audit-entry-content footer > a:hover {
  text-decoration: underline;
}

.audit-entry-content footer > a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(10 53 114 / 18%);
  outline-offset: 2px;
}

.audit-entry-content footer svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.audit-entry > time {
  display: grid;
  justify-items: end;
  color: #10233e;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.audit-entry > time small {
  margin-top: 2px;
  color: #7a8798;
  font-size: 0.64rem;
  font-weight: 600;
}

.audit-empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.audit-empty strong,
.audit-empty p {
  margin: 0;
}

.audit-ledger > .audit-pagination {
  margin-top: 0;
  border: 0;
  border-top: 1px solid #dbe4ef;
  border-radius: 0;
  background: #fbfcfe;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .audit-page-intro,
  .audit-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-page-intro aside {
    max-width: none;
  }

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

  .audit-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .audit-page-intro,
  .audit-summary {
    margin-bottom: 20px;
  }

  .audit-filters,
  .audit-filters label {
    width: 100%;
  }

  .audit-entry {
    align-items: start;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .audit-entry > time {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .audit-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-toolbar,
  .admin-audit-list {
    padding-inline: 14px;
  }

  .audit-page-intro aside {
    align-items: flex-start;
  }

  .audit-entry-content header,
  .audit-entry-content footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-form-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.admin-form-action small {
  color: var(--muted);
}

.admin-dialog {
  width: min(94vw, 580px);
  max-height: 90vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.admin-dialog::backdrop {
  background: rgba(17, 26, 25, 0.68);
  backdrop-filter: blur(6px);
}

.admin-dialog-card {
  position: relative;
  display: grid;
  max-height: 90vh;
  padding: clamp(22px, 4vw, 34px);
  overflow-y: auto;
  gap: 18px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-dialog-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.admin-dialog-grid {
  display: grid;
  gap: 14px;
}

.admin-dialog-grid .wide {
  grid-column: 1 / -1;
}

.admin-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
  cursor: pointer;
}

.admin-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.session-expired-dialog {
  width: min(92vw, 500px);
  max-width: 500px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

.session-expired-dialog::backdrop {
  background: rgb(5 22 47 / 72%);
  backdrop-filter: blur(7px);
}

.session-expired-card {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(26px, 5vw, 40px);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(2 22 51 / 36%);
  text-align: center;
  animation: session-expired-enter 220ms ease-out both;
}

.session-expired-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #a23c35;
  background: #fff0ee;
  box-shadow: inset 0 0 0 1px #f5d6d2;
}

.session-expired-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.session-expired-card h2,
.session-expired-card p {
  margin: 0;
}

.session-expired-card h2 {
  margin-top: 3px;
  color: #061f49;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  letter-spacing: -0.035em;
}

.session-expired-card [id="session-expired-description"] {
  max-width: 420px;
  margin-top: 9px;
  color: #657389;
  font-size: 0.88rem;
  line-height: 1.6;
}

.session-expired-card aside {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  color: #506078;
  background: #f7f9fc;
  text-align: left;
}

.session-expired-card aside svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: #0a4b91;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.session-expired-card aside span {
  font-size: 0.73rem;
  line-height: 1.5;
}

.session-expired-card .button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  border-radius: 12px;
  font-weight: 850;
}

.session-expired-card .button:focus-visible {
  outline: 3px solid rgb(10 53 114 / 28%);
  outline-offset: 3px;
}

@keyframes session-expired-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .session-expired-card {
    gap: 17px;
    border-radius: 20px;
  }

  .session-expired-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .session-expired-icon svg {
    width: 31px;
    height: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .session-expired-card {
    animation: none;
  }
}

.member-workspace {
  max-width: 920px;
  padding: clamp(40px, 8vw, 90px) 0;
}

.member-data {
  display: grid;
  margin: 24px 0;
  gap: 10px;
}

.member-data article {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.member-zone-form {
  display: grid;
  max-width: 680px;
  margin: 24px 0;
  padding: 20px;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.member-zone-form label,
.member-zone-form small {
  display: block;
}

.member-zone-form label {
  font-weight: 800;
}

.member-zone-form > .button {
  width: fit-content;
}

.member-account-actions {
  display: grid;
  max-width: 680px;
  margin: 24px 0;
  padding: 20px;
  align-items: center;
  gap: 16px;
  background: #fff5f2;
  border: 1px solid #eab5ad;
  border-radius: 16px;
}

.member-account-actions strong {
  display: block;
  margin-bottom: 5px;
}

.member-account-actions p {
  margin: 0;
  color: var(--muted);
}

.member-account-actions a {
  display: inline-flex;
  min-height: 44px;
  width: fit-content;
  align-items: center;
  color: #9c3527;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (min-width: 680px) {
  .zone-field {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-account-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .admin-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-sync {
    grid-column: auto;
    justify-content: flex-end;
  }

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

  .admin-section-heading.inline {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .admin-filters {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.7fr);
  }

  #operations .admin-filters {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.7fr) auto;
  }

  .admin-document-grid,
  .admin-pricing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-pricing-form .wide {
    grid-column: 1 / -1;
  }

  .admin-form-action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1080px) {
  .admin-dashboard {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 34px;
  }

  .admin-sidebar {
    position: sticky;
    inset: auto;
    top: 96px;
    width: auto;
    height: calc(100svh - 116px);
    border-radius: 18px;
    box-shadow: none;
    transform: none;
  }

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

  .admin-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .admin-metric {
    min-height: 174px;
  }

  .admin-overview-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }

  .admin-status-panel {
    grid-column: 1 / -1;
  }

  .admin-status-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .admin-section-heading:not(.inline) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    align-items: end;
  }

  .admin-document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-pricing-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-metric.is-loading > strong,
  .admin-metric.is-loading > small {
    animation: none;
  }

  .source-badge.is-syncing i {
    animation: none;
  }
}

/* Tiak-Tiak back-office theme — shared with the client and driver apps. */
:root {
  --ops-bg: #f4f7fb;
  --ops-panel: #ffffff;
  --ops-sidebar: #031b3f;
  --ops-blue: #092a63;
  --ops-blue-pale: #eaf2ff;
  --ops-yellow: #ffc400;
  --ops-yellow-dark: #6a5700;
  --ops-route: #ff7a1a;
  --ops-orange-text: #b94700;
}

.is-dashboard-page {
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 122, 26, 0.07), transparent 26rem),
    radial-gradient(circle at 14% 18%, rgba(9, 42, 99, 0.06), transparent 30rem),
    var(--ops-bg);
}

.is-dashboard-page .admin-sidebar {
  background: linear-gradient(180deg, #092a63 0%, #031b3f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 20px 0 54px rgba(3, 27, 63, 0.2);
}

.admin-sidebar-brand img {
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.2));
}

.admin-sidebar-brand small,
.is-dashboard-page .admin-sidebar-foot p {
  color: rgba(255, 255, 255, 0.62);
}

.is-dashboard-page .admin-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.is-dashboard-page .admin-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.is-dashboard-page .admin-nav a.is-active {
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
  box-shadow: 0 12px 28px rgba(255, 196, 0, 0.2);
}

.is-dashboard-page .admin-nav a.is-active > span {
  color: rgba(3, 27, 63, 0.62);
}

.admin-nav b {
  background: var(--brand-orange);
  color: var(--white);
}

.admin-sidebar .admin-kicker,
.admin-text-button {
  color: var(--brand-yellow);
}

.is-dashboard-page .admin-topbar {
  background: rgba(244, 247, 251, 0.92);
  border-bottom-color: rgba(9, 42, 99, 0.12);
  box-shadow: 0 12px 30px rgba(3, 27, 63, 0.035);
}

.is-dashboard-page .admin-topbar h1,
.is-dashboard-page .admin-section-heading h2,
.is-dashboard-page .admin-panel-heading h3,
.is-dashboard-page .map-dispatch-heading h2,
.is-dashboard-page .operations-map-head h2,
.is-dashboard-page .member-workspace h1 {
  color: var(--brand-primary-dark);
}

.is-dashboard-page .admin-kicker {
  color: var(--ops-orange-text);
}

.admin-icon-button,
.admin-refresh-button,
.admin-command-strip a,
.is-dashboard-page .admin-metric,
.is-dashboard-page .admin-panel,
.is-dashboard-page .admin-table-panel,
.is-dashboard-page .admin-pricing-form,
.admin-document-card,
.admin-notification-form,
.admin-dialog-card,
.member-zone-form,
.member-data article {
  background: var(--ops-panel);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(3, 27, 63, 0.045);
}

.admin-icon-button:hover,
.admin-refresh-button:hover,
.admin-command-strip a:hover,
.admin-mini-button:hover,
.admin-action-button:hover {
  border-color: rgba(9, 42, 99, 0.34);
  background: var(--ops-blue-pale);
  color: var(--brand-primary);
}

.command-icon {
  background: var(--ops-blue-pale);
  color: var(--brand-primary);
}

.admin-command-strip a:nth-child(2) .command-icon,
.command-icon.is-map {
  background: var(--brand-yellow-soft);
  color: var(--ops-yellow-dark);
}

.admin-command-strip a:nth-child(3) .command-icon {
  background: var(--brand-orange-soft);
  color: var(--coral-dark);
}

.is-dashboard-page .admin-metric > strong,
.map-dispatch-summary strong,
.admin-finance-summary strong {
  color: var(--brand-primary-dark);
}

.is-dashboard-page .admin-metric::after {
  background: var(--ops-blue-pale);
}

.is-dashboard-page .admin-metric:nth-child(3n + 2)::after {
  background: var(--brand-yellow-soft);
}

.is-dashboard-page .admin-metric:nth-child(3n)::after {
  background: var(--brand-orange-soft);
}

.is-dashboard-page .admin-metric.is-alert::after {
  background: var(--brand-danger-soft);
}

.admin-panel-heading a,
.admin-inbox-panel > a,
.privacy-external-link {
  color: var(--brand-primary);
}

.admin-timeline li:not(.admin-empty)::before,
.admin-chart-track i {
  background: var(--brand-orange);
}

.admin-chart-track {
  background: var(--ops-blue-pale);
}

.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
  border-color: var(--line);
  background: var(--white);
}

.admin-dashboard input:focus,
.admin-dashboard select:focus,
.admin-dashboard textarea:focus {
  border-color: var(--brand-primary);
  outline: 3px solid rgba(9, 42, 99, 0.14);
}

.admin-dashboard input[readonly] {
  background: var(--ops-blue-pale);
  color: var(--brand-primary-dark);
  cursor: not-allowed;
}

.admin-table th {
  background: var(--ops-blue-pale);
  color: var(--brand-primary);
}

.admin-table tbody tr:hover {
  background: #f7faff;
}

.admin-table tbody tr.is-archived,
.admin-document-card.is-archived {
  background: var(--cream-deep);
}

.admin-mini-button.primary,
.admin-action-button.primary,
.admin-notification-form .button.primary,
.admin-pricing-form .button.primary,
.admin-dialog-actions .button.primary {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 9px 20px rgba(9, 42, 99, 0.16);
}

.admin-mini-button.primary:hover,
.admin-action-button.primary:hover,
.admin-notification-form .button.primary:hover,
.admin-pricing-form .button.primary:hover,
.admin-dialog-actions .button.primary:hover {
  border-color: var(--brand-primary-dark);
  background: var(--brand-primary-dark);
  color: var(--white);
}

.source-badge,
.admin-badge,
.map-live-status {
  background: var(--brand-success-soft);
  color: #137749;
}

.source-badge i,
.admin-live-dot,
.map-live-status i {
  background: var(--brand-success);
}

.source-badge.is-syncing,
.admin-badge.is-warning {
  background: var(--brand-yellow-soft);
  color: var(--ops-yellow-dark);
}

.source-badge.is-syncing i {
  background: var(--brand-yellow);
}

.source-badge.is-error,
.admin-badge.is-danger,
.admin-feedback.is-error {
  border-color: #f6c9c4;
  background: var(--brand-danger-soft);
  color: #9f2f24;
}

.admin-badge.is-neutral {
  background: var(--cream-deep);
  color: var(--muted);
}

.admin-feedback.is-success,
.admin-form-status.is-success {
  border-color: #b9dfc9;
  background: var(--brand-success-soft);
  color: #137749;
}

.operations-map-card,
.map-dispatch-panel,
.map-legend label {
  background: var(--ops-panel);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(3, 27, 63, 0.05);
}

.operations-map-canvas {
  background: #eaf0f7;
  border-color: #d4dfed;
}

.map-legend-dot.is-driver,
.map-leaflet-marker-dot.is-driver {
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
}

.map-legend-dot.is-client,
.map-leaflet-marker-dot.is-pickup {
  background: var(--brand-primary);
}

.map-legend-line {
  border-color: var(--brand-orange);
}

.map-leaflet-marker-dot.is-delivery,
.map-route-path,
.map-route-path.is-focus {
  color: var(--brand-orange);
  stroke: var(--brand-orange);
}

.map-dispatch-summary div,
.map-delivery-card {
  background: var(--cream);
  border-color: var(--line);
}

.map-delivery-card.is-focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12);
}

.admin-inbox-panel,
.admin-inbox-panel > header,
.admin-inbox-item {
  background: var(--white);
  border-color: var(--line);
}

.admin-inbox-item:hover,
.admin-inbox-item:focus-visible,
.admin-inbox-item.is-unread {
  background: var(--ops-blue-pale);
}

.admin-inbox-item.is-unread .admin-inbox-dot {
  background: var(--brand-orange);
}

.admin-inbox-count {
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
}

.admin-live-alert {
  border-left-color: var(--brand-orange);
  background: var(--brand-primary-dark);
  color: var(--white);
}

.admin-dialog::backdrop {
  background: rgba(3, 27, 63, 0.72);
}

.member-account-actions {
  background: var(--brand-orange-soft);
  border-color: #f4c9aa;
}

.member-account-actions a,
.admin-action-button.danger {
  color: #a13f08;
}

@media (prefers-reduced-motion: reduce) {
  .admin-icon-button,
  .admin-refresh-button,
  .admin-command-strip a,
  .admin-mini-button,
  .admin-action-button {
    transition: none;
  }
}

/* Course tracking */
.map-delivery-card {
  position: relative;
}

.map-delivery-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.map-delivery-stretched-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.map-delivery-card:has(.map-delivery-stretched-link:hover) {
  border-color: var(--brand-orange);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(3, 27, 63, 0.09);
}

.map-delivery-card button {
  position: relative;
  z-index: 2;
  min-height: 44px;
}

.tracking-page {
  min-width: 0;
}

.tracking-breadcrumb,
.tracking-hero,
.tracking-title-line,
.tracking-hero-actions,
.tracking-map-card > header,
.tracking-map-tools,
.tracking-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tracking-breadcrumb {
  margin-bottom: 14px;
}

.tracking-breadcrumb > a {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 12px 8px 8px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 850;
}

.tracking-breadcrumb svg,
.tracking-hero-actions svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tracking-loading,
.tracking-error {
  min-height: 420px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
}

.tracking-loading span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 3px;
  background: var(--brand-orange);
  border-radius: 50%;
  animation: tracking-pulse 900ms ease-in-out infinite alternate;
}

.tracking-loading span:nth-child(2) { animation-delay: 160ms; }
.tracking-loading span:nth-child(3) { animation-delay: 320ms; }
.tracking-loading p { margin: 16px 0 0; color: var(--muted); }

@keyframes tracking-pulse {
  to { opacity: 0.28; transform: translateY(-5px); }
}

.tracking-error strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-primary-dark);
  font-size: 1.35rem;
}

.tracking-error p {
  margin: 0 auto 20px;
  color: var(--muted);
}

.tracking-error .button {
  width: fit-content;
  margin: 0 auto;
}

.tracking-hero {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(3, 27, 63, 0.045);
}

.tracking-hero > div:first-child {
  min-width: 0;
}

.tracking-title-line {
  justify-content: flex-start;
}

.tracking-title-line h2 {
  margin: 0;
  color: var(--brand-primary-dark);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.tracking-hero > div:first-child > p:last-child {
  max-width: 900px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-hero-actions {
  flex: 0 0 auto;
}

.tracking-hero-actions .admin-refresh-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tracking-progress {
  display: grid;
  margin: 12px 0;
  padding: 15px 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.tracking-progress > div {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 7px;
  color: #7a8798;
  text-align: center;
}

.tracking-progress > div:not(:last-child)::after {
  position: absolute;
  top: 15px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  border-top: 2px solid #d8e1ed;
  content: "";
}

.tracking-progress > div.is-complete:not(:last-child)::after {
  border-color: var(--brand-success);
}

.tracking-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #cbd6e3;
  border-radius: 50%;
  background: var(--white);
}

.tracking-progress svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.tracking-progress svg text {
  fill: currentColor;
  stroke: none;
  font-size: 10px;
  font-weight: 900;
}

.tracking-progress strong {
  max-width: 120px;
  font-size: 0.66rem;
  line-height: 1.25;
}

.tracking-progress .is-complete,
.tracking-progress .is-current {
  color: var(--brand-primary-dark);
}

.tracking-progress .is-complete span {
  border-color: var(--brand-success);
  background: var(--brand-success);
  color: var(--white);
}

.tracking-progress .is-current span {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.14);
  color: var(--brand-orange);
}

.tracking-layout {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.tracking-main-column,
.tracking-side-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.tracking-map-card,
.tracking-route-card,
.tracking-history-card,
.tracking-contact-card,
.tracking-details-card,
.tracking-actions-card,
.tracking-code-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(3, 27, 63, 0.045);
}

.tracking-map-card h3,
.tracking-route-card h3,
.tracking-history-card h3,
.tracking-contact-card h3,
.tracking-details-card h3,
.tracking-actions-card h3 {
  margin: 2px 0 0;
  color: var(--brand-primary-dark);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.tracking-map-tools {
  justify-content: flex-end;
}

.tracking-map-tools span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.tracking-map-tools span.is-online {
  color: #137749;
}

.tracking-map-tools button,
.tracking-code-card button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.tracking-map-canvas {
  position: relative;
  min-height: 470px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d4dfed;
  border-radius: 12px;
  background: #eaf0f7;
  isolation: isolate;
}

.tracking-stops,
.tracking-history {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tracking-stops li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
}

.tracking-stops li + li {
  margin-top: 18px;
}

.tracking-stops li:first-child::after {
  position: absolute;
  top: 19px;
  bottom: -21px;
  left: 7px;
  border-left: 2px dashed #c9d4e1;
  content: "";
}

.tracking-stops i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-primary);
  background: var(--brand-primary);
}

.tracking-stops i.is-dropoff {
  box-shadow: 0 0 0 2px var(--brand-orange);
  background: var(--brand-orange);
}

.tracking-stops span,
.tracking-stops strong,
.tracking-stops small {
  display: block;
}

.tracking-stops span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tracking-stops strong {
  margin-top: 2px;
  color: var(--brand-primary-dark);
  font-size: 0.84rem;
  line-height: 1.4;
}

.tracking-stops small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.tracking-history {
  display: grid;
}

.tracking-history li {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0 0 18px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
}

.tracking-history li:last-child {
  padding-bottom: 0;
}

.tracking-history li:not(:last-child)::after {
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 5px;
  border-left: 2px solid #dfe6ef;
  content: "";
}

.tracking-history i {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #aebdce;
  background: #aebdce;
}

.tracking-history .is-latest i {
  box-shadow: 0 0 0 2px var(--brand-orange);
  background: var(--brand-orange);
}

.tracking-history strong,
.tracking-history span,
.tracking-history time {
  display: block;
}

.tracking-history strong {
  color: var(--brand-primary-dark);
  font-size: 0.8rem;
}

.tracking-history span,
.tracking-history time {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.tracking-person {
  display: grid;
  min-width: 0;
  padding: 12px 0;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.tracking-person:last-child {
  border-bottom: 0;
}

.tracking-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ops-blue-pale);
  color: var(--brand-primary);
  font-weight: 900;
}

.tracking-avatar.is-driver {
  background: var(--brand-yellow-soft);
  color: var(--brand-primary-dark);
}

.tracking-avatar.is-recipient {
  background: var(--brand-orange-soft);
  color: #a13f08;
}

.tracking-person small,
.tracking-person strong,
.tracking-person span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-person small,
.tracking-person span {
  color: var(--muted);
  font-size: 0.67rem;
}

.tracking-person strong {
  color: var(--brand-primary-dark);
  font-size: 0.8rem;
}

.tracking-person > a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ops-blue-pale);
  color: var(--brand-primary);
}

.tracking-person svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tracking-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-color: #efd889;
  background: var(--brand-yellow-soft);
}

.tracking-code-card span,
.tracking-code-card small {
  display: block;
}

.tracking-code-card span {
  color: var(--brand-primary-dark);
  font-size: 0.75rem;
  font-weight: 850;
}

.tracking-code-card small {
  color: #75682f;
  font-size: 0.64rem;
}

.tracking-code-card > strong {
  color: var(--brand-primary-dark);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.tracking-code-card button {
  grid-column: 1 / -1;
  background: var(--white);
}

.tracking-code-card button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tracking-details-card dl {
  margin: 8px 0 0;
}

.tracking-details-card dl > div {
  display: flex;
  padding: 9px 0;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.tracking-details-card dl > div:last-child {
  border-bottom: 0;
}

.tracking-details-card dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.tracking-details-card dd {
  margin: 0;
  color: var(--brand-primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: right;
}

.tracking-actions-card .button {
  width: 100%;
  min-height: 46px;
  margin-top: 9px;
}

.tracking-actions-card .tracking-danger-action {
  border-color: #f1b8b2;
  color: #a13f08;
}

.tracking-actions-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

@media (min-width: 1180px) {
  .tracking-layout {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 0.34fr);
  }

  .tracking-side-column {
    position: sticky;
    top: 16px;
  }
}

@media (max-width: 760px) {
  .tracking-hero,
  .tracking-map-card > header,
  .tracking-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracking-hero-actions,
  .tracking-hero-actions .admin-refresh-button {
    width: 100%;
  }

  .tracking-progress {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(108px, 1fr));
    scroll-snap-type: x proximity;
  }

  .tracking-progress > div {
    scroll-snap-align: start;
  }

  .tracking-map-tools {
    width: 100%;
    justify-content: space-between;
  }

  .tracking-map-canvas {
    min-height: 390px;
  }
}

@media (max-width: 460px) {
  .tracking-breadcrumb .map-live-status {
    display: none;
  }

  .tracking-title-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracking-hero > div:first-child > p:last-child {
    white-space: normal;
  }

  .tracking-map-canvas {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tracking-loading span {
    animation: none;
  }
}

/* Dashboard overflow hardening */
.is-dashboard-page .admin-topbar > div,
.is-dashboard-page .admin-sync,
.admin-command-strip a > span,
.admin-panel-heading > div,
.admin-priority-item > div,
.admin-timeline li {
  min-width: 0;
}

.admin-priority-item strong,
.admin-priority-item small {
  display: block;
  max-width: 100%;
}

.admin-priority-item small {
  overflow-wrap: anywhere;
}

@media (min-width: 1080px) and (max-width: 1379px) {
  .is-dashboard-page .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  .is-dashboard-page .admin-topbar {
    align-items: start;
  }

  .admin-panel-heading {
    flex-wrap: wrap;
  }

  .admin-priority-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-priority-item .admin-mini-button {
    width: fit-content;
    justify-self: start;
  }
}

/* Recipient location sharing */
.location-share-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: #12181f;
  background: radial-gradient(circle at 50% 0, #fff0e5 0, #f4f7fb 42%, #eaf0f8 100%);
}

.location-share-shell {
  width: min(100% - 32px, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  gap: 20px;
}

.location-share-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  color: #092a63;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.location-share-brand img { border-radius: 16px; }

.location-share-card {
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(3, 27, 63, .12);
}

.location-share-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #ff7a1a;
  border-radius: 22px;
  font-size: 32px;
  font-weight: 900;
}

.location-share-icon.is-success { background: #16834b; }
.location-share-icon.is-error { background: #e0392b; }
.location-share-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.location-share-eyebrow { margin: 0 0 8px; color: #ff7a1a; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.location-share-card h1 { margin: 0 0 12px; color: #092a63; font-size: clamp(28px, 8vw, 38px); line-height: 1.1; }
.location-share-card > p { margin: 0 auto; max-width: 38ch; color: #5a6572; font-size: 16px; line-height: 1.55; }

.location-share-privacy {
  margin: 24px 0;
  padding: 16px;
  display: grid;
  gap: 4px;
  text-align: left;
  color: #092a63;
  background: #f4f7fb;
  border-radius: 18px;
}

.location-share-privacy span { color: #5a6572; font-size: 14px; line-height: 1.45; }
.location-share-button { width: 100%; min-height: 52px; padding: 14px 20px; color: #fff; background: #092a63; border: 0; border-radius: 18px; font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.location-share-button:hover { background: #031b3f; }
.location-share-button:focus-visible { outline: 3px solid rgba(255, 122, 26, .55); outline-offset: 3px; }
.location-share-button:disabled { cursor: wait; opacity: .62; }
.location-share-status { min-height: 48px; margin-top: 16px !important; font-size: 14px !important; }
.location-share-status[data-state="success"] { color: #16834b; font-weight: 800; }
.location-share-status[data-state="error"] { color: #b42318; font-weight: 800; }
.location-share-footnote { margin: 0; color: #5a6572; text-align: center; font-size: 13px; }

@media (max-width: 380px) {
  .location-share-card { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .location-share-button { transition: none; }
}

/* Fayma hosted-payment return */
.payment-result-page {
  min-height: 72vh;
  padding: 72px 20px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 0, #fff0e5, #f4f7fb 48%, #eaf0f8);
}

.payment-result-card {
  width: min(100%, 520px);
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(3, 27, 63, .12);
}

.payment-result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d14343;
  border-radius: 24px;
  font-size: 38px;
  font-weight: 900;
}

.payment-result-card.is-success .payment-result-icon { background: #16834b; }
.payment-result-card.is-cancel .payment-result-icon { background: #d98219; }
.payment-result-card h1 { margin: 8px 0 14px; color: #092a63; font-size: clamp(30px, 7vw, 42px); }
.payment-result-card > p:not(.admin-kicker) { margin: 0 auto 26px; max-width: 42ch; color: #5a6572; line-height: 1.6; }
.payment-return-action {
  display: inline-flex;
  min-height: 54px;
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(145deg, #123f83, #052654);
  border: 1px solid rgba(9, 42, 99, .18);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(3, 27, 63, .22);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.payment-return-action:hover {
  color: #fff;
  background: linear-gradient(145deg, #174d99, #052654);
  box-shadow: 0 17px 34px rgba(3, 27, 63, .28);
  transform: translateY(-1px);
}

.payment-return-action:focus-visible {
  outline: 3px solid rgba(255, 196, 0, .72);
  outline-offset: 4px;
}

.payment-return-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.payment-result-card .payment-return-help { margin-top: 16px !important; margin-bottom: 0 !important; }

/* Suivi destinataire public — mobile first */
.is-recipient-tracking-page {
  min-height: 100vh;
  background: #f3f6fb;
  color: #101828;
}
.is-recipient-tracking-page .site-header,
.is-recipient-tracking-page .site-footer { display: none; }
.recipient-tracking-page { min-height: 100vh; padding: 18px 16px 48px; }
.recipient-tracking-shell { width: min(100%, 760px); margin: 0 auto; }
.recipient-tracking-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.recipient-tracking-brand img { border-radius: 14px; box-shadow: 0 8px 22px rgba(9, 42, 99, .14); }
.recipient-tracking-brand div { display: grid; gap: 1px; }
.recipient-tracking-brand strong { color: #092a63; font-size: 17px; }
.recipient-tracking-brand span { color: #667085; font-size: 12px; }
.recipient-tracking-hero,
.recipient-tracking-map-card,
.recipient-tracking-progress,
.recipient-tracking-driver,
.recipient-install-card,
.recipient-tracking-invalid {
  border: 1px solid #dce4ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 45, 84, .07);
}
.recipient-tracking-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px; }
.recipient-tracking-eyebrow { margin: 0 0 6px; color: #e86818; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.recipient-tracking-hero h1,
.recipient-tracking-invalid h1 { margin: 0; color: #092a63; font-size: clamp(28px, 8vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.recipient-tracking-summary { margin: 12px 0 0; color: #667085; line-height: 1.5; }
.recipient-tracking-summary strong { color: #344054; }
.recipient-tracking-live { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; color: #087443; background: #e9f8f0; font-size: 12px; font-weight: 800; }
.recipient-tracking-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a66a; box-shadow: 0 0 0 5px rgba(22, 166, 106, .12); animation: recipient-live-pulse 1.8s ease-out infinite; }
.recipient-tracking-live.is-terminal { color: #475467; background: #eef2f6; }
.recipient-tracking-live.is-terminal i { background: #667085; box-shadow: none; animation: none; }
@keyframes recipient-live-pulse { 50% { box-shadow: 0 0 0 9px rgba(22, 166, 106, 0); } }
.recipient-tracking-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px; margin: 14px 0; padding: 14px 20px; border: 0; border-radius: 17px; color: #fff; background: #092a63; font-weight: 850; text-align: center; text-decoration: none; box-shadow: 0 9px 22px rgba(9, 42, 99, .18); }
.recipient-tracking-button:hover { background: #031c45; transform: translateY(-1px); }
.recipient-tracking-button:focus-visible,
.recipient-install-actions a:focus-visible { outline: 3px solid rgba(255, 122, 26, .52); outline-offset: 3px; }
.recipient-tracking-map-card,
.recipient-tracking-progress { margin-top: 14px; padding: 20px; }
.recipient-tracking-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.recipient-tracking-section-heading h2,
.recipient-install-card h2 { margin: 0; color: #102a56; font-size: 20px; letter-spacing: -.02em; }
.recipient-tracking-section-heading > span { color: #667085; font-size: 12px; white-space: nowrap; }
.recipient-tracking-map { height: 260px; overflow: hidden; border-radius: 18px; background: #e7edf5; }
.recipient-map-marker { display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid #fff; border-radius: 50% 50% 50% 10%; color: #fff; background: #092a63; box-shadow: 0 7px 16px rgba(9, 42, 99, .26); transform: rotate(-45deg); }
.recipient-map-marker span { transform: rotate(45deg); font-size: 13px; font-weight: 900; }
.recipient-map-marker.is-dropoff { background: #ff7a1a; }
.recipient-map-marker.is-driver { width: 38px; height: 38px; border-radius: 50%; background: #ffc400; transform: none; }
.recipient-map-marker.is-driver span { color: #092a63; transform: none; }
.recipient-tracking-route { display: grid; gap: 14px; margin-top: 18px; }
.recipient-tracking-stop { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.recipient-tracking-stop i { width: 14px; height: 14px; margin-top: 4px; border: 4px solid #dbe4ef; border-radius: 50%; background: #092a63; box-sizing: border-box; }
.recipient-tracking-stop.is-dropoff i { background: #ff7a1a; }
.recipient-tracking-stop div { display: grid; gap: 3px; }
.recipient-tracking-stop span { color: #667085; font-size: 12px; }
.recipient-tracking-stop strong { color: #344054; font-size: 14px; line-height: 1.35; }
.recipient-tracking-progress ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.recipient-tracking-progress li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; min-height: 54px; color: #98a2b3; font-size: 14px; font-weight: 750; }
.recipient-tracking-progress li:not(:last-child)::after { content: ''; position: absolute; top: 38px; bottom: -16px; left: 15px; width: 2px; background: #e4eaf1; }
.recipient-tracking-progress li i { z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #d7e0eb; border-radius: 50%; background: #f5f7fa; font-style: normal; }
.recipient-tracking-progress li.is-done { color: #667085; }
.recipient-tracking-progress li.is-done i { border-color: #20aa69; color: #fff; background: #20aa69; }
.recipient-tracking-progress li.is-done:not(:last-child)::after { background: #77d4a7; }
.recipient-tracking-progress li.is-current { color: #101828; }
.recipient-tracking-progress li.is-current i { border: 8px solid #ffdfca; background: #ff7a1a; }
.recipient-tracking-progress li strong { padding: 5px 8px; border-radius: 999px; color: #c44d08; background: #fff0e6; font-size: 10px; text-transform: uppercase; }
.recipient-tracking-driver { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 18px; }
.recipient-tracking-driver img,
.recipient-tracking-driver-avatar { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 18px; object-fit: cover; }
.recipient-tracking-driver-avatar { display: grid; place-items: center; color: #fff; background: #244b86; font-size: 22px; font-weight: 900; }
.recipient-tracking-driver div { display: grid; gap: 2px; min-width: 0; }
.recipient-tracking-driver div span,
.recipient-tracking-driver div small { color: #667085; font-size: 12px; }
.recipient-tracking-driver div strong { color: #101828; font-size: 17px; }
.recipient-install-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-top: 14px; padding: 20px; background: linear-gradient(145deg, #fff8e0, #fff); border-color: #f1dfaa; }
.recipient-install-icon img { border-radius: 17px; }
.recipient-install-card p:not(.recipient-tracking-eyebrow) { margin: 8px 0 0; color: #667085; font-size: 14px; line-height: 1.5; }
.recipient-install-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.recipient-install-actions a { display: grid; place-items: center; min-height: 48px; padding: 10px 12px; border: 1px solid #d5ad35; border-radius: 14px; color: #092a63; background: #fff; font-size: 13px; font-weight: 850; text-align: center; text-decoration: none; }
.recipient-tracking-security { margin: 18px auto 0; max-width: 58ch; color: #667085; font-size: 12px; line-height: 1.5; text-align: center; }
.recipient-tracking-invalid { margin-top: 44px; padding: 36px 24px; text-align: center; }
.recipient-tracking-invalid-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; color: #b42318; background: #feeceb; font-size: 28px; font-weight: 900; }
.recipient-tracking-invalid > p:not(.recipient-tracking-eyebrow) { margin: 14px auto 24px; max-width: 44ch; color: #667085; line-height: 1.55; }
.recipient-tracking-invalid .recipient-tracking-button { max-width: 320px; margin-inline: auto; }

@media (max-width: 560px) {
  .recipient-tracking-page { padding-inline: 12px; }
  .recipient-tracking-hero { display: grid; padding: 20px; }
  .recipient-tracking-live { justify-self: start; }
  .recipient-tracking-map-card,
  .recipient-tracking-progress { padding: 16px; }
  .recipient-tracking-map { height: 230px; }
  .recipient-install-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .recipient-tracking-live i { animation: none; }
  .recipient-tracking-button { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .payment-return-action { transition: none; }
}

/* Home app download journey */
.site-nav .nav-download {
  color: var(--brand-primary);
}

.hero-download-button {
  gap: 10px;
}

.hero-download-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-driver-link {
  display: inline-flex;
  min-height: 44px;
  margin-top: 11px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(90, 101, 114, 0.35);
  text-underline-offset: 4px;
}

.hero-driver-link span {
  color: var(--brand-orange);
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 180ms ease;
}

.hero-driver-link:hover span {
  transform: translateX(3px);
}

.download-section {
  position: relative;
  display: grid;
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: clamp(76px, 10vw, 132px) var(--page-pad);
  overflow: visible;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 196, 0, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: var(--white);
  gap: clamp(42px, 7vw, 96px);
  scroll-margin-top: 76px;
}

.download-section::before,
.download-section::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(0px, calc((100vw - var(--page-max)) / 2));
  background: var(--brand-primary);
  content: "";
}

.download-section::before {
  right: 100%;
}

.download-section::after {
  left: 100%;
  background: var(--brand-primary-dark);
}

.download-copy h2 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
}

.download-copy > p:not(.eyebrow):not(.device-hint) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.03rem, 2vw, 1.18rem);
}

.download-benefits {
  display: flex;
  margin: 30px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.download-benefits li {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 760;
}

.download-benefits li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--brand-yellow);
  border-radius: 50%;
  content: "";
}

.device-hint {
  display: flex;
  min-height: 44px;
  margin: 24px 0 0;
  align-items: center;
  gap: 9px;
  color: var(--brand-yellow);
  font-size: 0.85rem;
  font-weight: 790;
}

.device-hint::before {
  width: 20px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.download-options {
  display: grid;
  align-content: center;
  gap: 12px;
}

.store-card {
  position: relative;
  display: grid;
  min-height: 126px;
  padding: 22px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid transparent;
  border-radius: 20px;
  color: var(--brand-primary-dark);
  box-shadow: 0 18px 44px rgba(3, 15, 36, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 0, 0.75);
  box-shadow: 0 22px 52px rgba(3, 15, 36, 0.28);
}

.store-card:active {
  transform: translateY(-1px);
}

.store-card.is-recommended {
  padding-top: 34px;
  border-color: var(--brand-yellow);
  background: var(--white);
}

.store-card.is-unavailable {
  padding-top: 34px;
  cursor: default;
  box-shadow: 0 12px 30px rgba(3, 15, 36, 0.14);
}

.store-card.is-unavailable:hover {
  transform: none;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(3, 15, 36, 0.14);
}

.store-card.is-unavailable.is-detected {
  border-color: rgba(255, 255, 255, 0.45);
}

.recommended-badge {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 5px 14px;
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.availability-badge {
  background: var(--cream);
  color: var(--muted);
}

.store-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: var(--teal-pale);
  border-radius: 16px;
  color: var(--brand-primary);
}

.store-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-card[data-download-platform="ios"] .store-icon {
  background: var(--brand-primary-dark);
  color: var(--white);
}

.store-card[data-download-platform="ios"] .store-icon svg {
  fill: currentColor;
  stroke: none;
}

.store-card-copy,
.store-card-copy small,
.store-card-copy strong,
.store-card-copy span {
  display: block;
  min-width: 0;
}

.store-card-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
}

.store-card-copy strong {
  margin: 1px 0 3px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.1;
}

.store-card-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.store-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--cream);
  border-radius: 12px;
  color: var(--brand-orange);
  font-size: 1.3rem;
  font-weight: 850;
}

.store-arrow.is-muted {
  background: rgba(93, 104, 123, 0.08);
  color: var(--muted);
}

.download-note {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 920px) {
  .site-nav .nav-download {
    min-height: 46px;
    margin-left: 6px;
    padding-inline: 16px;
    background: var(--brand-yellow-soft);
    color: var(--brand-primary-dark);
  }

  .site-nav .nav-download:hover {
    background: var(--brand-yellow);
    color: var(--brand-primary-dark);
  }

  .download-section {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
    align-items: center;
  }
}

@media (max-width: 560px) {
  .download-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .store-card {
    min-height: 112px;
    padding: 18px;
    grid-template-columns: 48px minmax(0, 1fr) 38px;
    gap: 12px;
  }

  .store-card.is-recommended {
    padding-top: 31px;
  }

  .store-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .store-icon svg {
    width: 27px;
    height: 27px;
  }

  .store-arrow {
    width: 38px;
    height: 38px;
  }
}

/* Role-first download choice: client and professional apps stay unmistakable. */
.download-section {
  display: block;
  padding-block: clamp(72px, 9vw, 118px);
}

.download-intro {
  position: relative;
  z-index: 1;
}

.download-heading-row {
  display: grid;
  gap: 22px;
}

.download-heading-row h2 {
  max-width: 850px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 0.96;
  text-wrap: balance;
}

.download-heading-row > div > p:first-child {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.62;
}

.download-app-grid {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: clamp(38px, 5vw, 58px);
  gap: 20px;
}

.download-app-card {
  --app-accent: #0c6f8b;
  --app-accent-soft: #dff4f8;
  position: relative;
  display: grid;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  grid-template-columns: minmax(0, 1fr) minmax(108px, 148px);
  grid-template-rows: 1fr auto;
  gap: 28px 20px;
  overflow: hidden;
  background: #f5fbfd;
  border: 2px solid rgba(141, 222, 234, 0.78);
  border-radius: 30px;
  color: var(--brand-primary-dark);
  box-shadow: 0 24px 60px rgba(2, 14, 35, 0.24);
}

.download-app-card.driver {
  --app-accent: #d85a14;
  --app-accent-soft: #ffe7d5;
  background: #fff6ef;
  border-color: rgba(255, 133, 53, 0.76);
}

.download-app-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.download-app-kicker {
  display: flex;
  min-height: 44px;
  margin-bottom: 26px;
  align-items: center;
  gap: 10px;
  color: var(--app-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.download-app-kicker b {
  margin-left: auto;
  color: rgba(4, 28, 65, 0.25);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.download-role-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--app-accent-soft);
  border-radius: 13px;
}

.download-role-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-app-name {
  margin: 0 0 10px;
  color: var(--app-accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.download-app-card h3 {
  max-width: 390px;
  margin: 0;
  color: var(--brand-primary-dark);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
  text-wrap: balance;
}

.download-app-description {
  max-width: 440px;
  margin: 18px 0 0;
  color: #53647d;
  font-size: 0.94rem;
  line-height: 1.58;
}

.download-app-benefits {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.download-app-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #173456;
  font-size: 0.83rem;
  font-weight: 780;
  line-height: 1.4;
}

.download-app-benefits li::before {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 auto;
  background: var(--app-accent);
  border: 4px solid var(--app-accent-soft);
  border-radius: 50%;
  content: "";
}

.download-app-exclusion {
  display: flex;
  margin: 24px 0 0;
  padding: 13px 14px;
  align-items: flex-start;
  gap: 10px;
  background: rgba(4, 28, 65, 0.055);
  border: 1px solid rgba(4, 28, 65, 0.09);
  border-radius: 14px;
  color: #56657a;
  font-size: 0.76rem;
  line-height: 1.45;
}

.download-app-exclusion svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.download-app-exclusion span,
.download-app-exclusion strong {
  display: block;
}

.download-app-exclusion strong {
  margin-bottom: 2px;
  color: var(--brand-primary-dark);
  font-size: 0.7rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.download-app-visual {
  position: relative;
  align-self: end;
  height: 360px;
  margin: 54px -10px -36px 0;
  overflow: hidden;
  background: var(--brand-primary-dark);
  border: 6px solid var(--brand-primary-dark);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 18px 40px rgba(4, 28, 65, 0.25);
}

.download-app-card.driver .download-app-visual {
  background: #161913;
  border-color: #161913;
}

.download-app-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.download-app-card .download-options {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.download-app-card .store-card {
  min-height: 78px;
  padding: 13px;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(4, 28, 65, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(4, 28, 65, 0.09);
}

.download-app-card .store-card:hover {
  border-color: var(--app-accent);
  box-shadow: 0 15px 30px rgba(4, 28, 65, 0.15);
}

.download-app-card .store-card.is-recommended,
.download-app-card .store-card.is-unavailable {
  padding-top: 28px;
}

.download-app-card .store-card.is-recommended {
  border-color: var(--app-accent);
}

.download-app-card .store-card.is-unavailable {
  background: rgba(255, 255, 255, 0.56);
  cursor: default;
  box-shadow: none;
}

.download-app-card .store-card.is-unavailable:hover {
  border-color: rgba(4, 28, 65, 0.12);
}

.download-app-card .recommended-badge {
  padding: 4px 10px;
  background: var(--app-accent);
  color: var(--white);
  font-size: 0.62rem;
}

.download-app-card .availability-badge {
  background: rgba(4, 28, 65, 0.08);
  color: #5c6879;
}

.download-app-card .store-icon {
  width: 38px;
  height: 38px;
  background: var(--app-accent-soft);
  border-radius: 11px;
  color: var(--app-accent);
}

.download-app-card .store-icon svg {
  width: 22px;
  height: 22px;
}

.download-app-card .store-card[data-download-platform="ios"] .store-icon {
  background: var(--brand-primary-dark);
}

.download-app-card .store-card-copy small {
  font-size: 0.63rem;
}

.download-app-card .store-card-copy strong {
  margin-top: 2px;
  font-size: clamp(0.88rem, 1.5vw, 1.04rem);
  line-height: 1.15;
}

.download-app-card .store-arrow {
  width: 30px;
  height: 30px;
  background: var(--app-accent-soft);
  border-radius: 9px;
  color: var(--app-accent);
  font-size: 1rem;
}

.download-help {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 920px) {
  .download-section {
    display: block;
  }

  .download-heading-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.65fr);
    align-items: end;
    gap: clamp(44px, 7vw, 94px);
  }

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

@media (max-width: 620px) {
  .download-app-card {
    padding: 20px;
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 22px 14px;
    border-radius: 24px;
  }

  .download-app-kicker {
    grid-column: 1 / -1;
    margin-bottom: 22px;
  }

  .download-app-visual {
    height: 300px;
    margin: 66px -8px -22px 0;
    border-width: 5px;
    border-radius: 19px 19px 0 0;
  }

  .download-app-description,
  .download-app-benefits li {
    font-size: 0.82rem;
  }

  .download-app-card .download-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .download-app-card {
    grid-template-columns: 1fr;
  }

  .download-app-visual {
    display: none;
  }

  .download-app-card h3 {
    font-size: 2rem;
  }
}

/* Real application screenshots */
.hero-app-gallery {
  position: relative;
  min-height: clamp(560px, 72vw, 690px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 196, 0, 0.18), transparent 19rem),
    linear-gradient(145deg, #0b3577, var(--brand-primary-dark));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 72px rgba(3, 27, 63, 0.24);
  isolation: isolate;
}

.hero-app-gallery::before,
.hero-app-gallery::after {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-app-gallery::before {
  top: -140px;
  right: -110px;
}

.hero-app-gallery::after {
  bottom: -190px;
  left: -100px;
  width: 380px;
  height: 380px;
}

.hero-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--brand-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  box-shadow: 0 26px 58px rgba(1, 12, 31, 0.42);
  transform-origin: 50% 100%;
}

.hero-shot img {
  width: 100%;
  height: auto;
}

.hero-shot-home {
  z-index: 3;
  bottom: -78px;
  left: 50%;
  width: min(62%, 322px);
  transform: translateX(-50%) rotate(-1.5deg);
}

.hero-shot-estimation,
.hero-shot-payment {
  z-index: 2;
  top: 122px;
  width: min(48%, 250px);
  opacity: 0.88;
}

.hero-shot-estimation {
  left: -4%;
  transform: rotate(-8deg);
}

.hero-shot-payment {
  right: -4%;
  transform: rotate(8deg);
}

.audience-screenshot {
  position: relative;
  width: min(100%, 330px);
  height: 480px;
  margin: auto auto 0;
  overflow: hidden;
  background: var(--brand-primary-dark);
  border: 8px solid var(--brand-primary-dark);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 22px 46px rgba(3, 27, 63, 0.22);
}

.audience-screenshot img {
  width: 100%;
  height: auto;
}

.audience-card.driver .audience-screenshot {
  background: #151711;
  border-color: #151711;
}

@media (min-width: 920px) {
  .hero-app-gallery {
    min-height: 620px;
  }
}

@media (min-width: 1220px) {
  .audience-screenshot {
    height: 510px;
  }
}

@media (max-width: 560px) {
  .hero-app-gallery {
    min-height: 550px;
  }

  .hero-shot-home {
    bottom: -54px;
    width: min(70%, 280px);
  }

  .hero-shot-estimation,
  .hero-shot-payment {
    top: 138px;
    width: min(50%, 205px);
  }

  .audience-screenshot {
    height: 450px;
  }
}

/* Premium home hero */
.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 76px));
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(64px, 7vw, 92px);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: 6%;
  right: 32%;
  z-index: -1;
  width: clamp(220px, 30vw, 430px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.11), rgba(255, 122, 26, 0.035) 48%, transparent 70%);
  border-radius: 50%;
  content: "";
  filter: blur(10px);
  pointer-events: none;
}

.hero-copy {
  max-width: 660px;
}

.hero .eyebrow {
  width: fit-content;
  margin-bottom: 22px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 42, 99, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(3, 27, 63, 0.05);
  letter-spacing: 0.085em;
}

.hero .eyebrow > span {
  width: 17px;
  background: var(--brand-orange);
}

.hero-copy h1 {
  max-width: 9.5ch;
  margin-bottom: 26px;
  color: var(--brand-primary-dark);
  font-size: clamp(3.45rem, 6.1vw, 6rem);
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.hero-copy h1 em {
  width: fit-content;
  padding-right: 0.08em;
  background: linear-gradient(100deg, var(--brand-orange) 8%, #ff9a1f 58%, #e96a11 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 56ch;
  margin-bottom: 30px;
  color: #526175;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.62;
}

.hero-actions {
  gap: 13px;
}

.hero-actions .button {
  min-height: 56px;
  padding-inline: 22px;
  border-radius: 15px;
}

.hero-actions .button.primary.coral {
  border-color: #f3ba00;
  background: linear-gradient(135deg, #ffd132, var(--brand-yellow));
  box-shadow: 0 16px 34px rgba(255, 164, 0, 0.24), 0 2px 0 rgba(255, 255, 255, 0.38) inset;
}

.hero-actions .button.primary.coral:hover {
  border-color: var(--brand-orange);
  background: linear-gradient(135deg, #ffd64d, #ffb800);
  box-shadow: 0 20px 38px rgba(255, 164, 0, 0.3), 0 2px 0 rgba(255, 255, 255, 0.42) inset;
}

.hero-actions .button.ghost {
  border-color: rgba(9, 42, 99, 0.13);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(3, 27, 63, 0.07);
}

.hero-actions .button.ghost:hover {
  border-color: rgba(9, 42, 99, 0.25);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(3, 27, 63, 0.11);
}

.hero-driver-link {
  margin-top: 14px;
  color: var(--brand-primary);
  text-decoration: none;
}

.hero-driver-link span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  background: var(--brand-orange-soft);
  border-radius: 50%;
  font-size: 0.95rem;
}

.hero-assurances {
  margin-top: 26px;
  gap: 8px;
}

.hero-assurances li {
  min-height: 36px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(9, 42, 99, 0.09);
  border-radius: 999px;
  color: #49566a;
  box-shadow: 0 7px 18px rgba(3, 27, 63, 0.045);
  font-size: 0.76rem;
}

.hero-assurances li::before {
  width: 8px;
  height: 8px;
  background: var(--brand-success);
  box-shadow: 0 0 0 4px var(--brand-success-soft);
}

.hero-app-gallery {
  min-height: 610px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 54% 12%, rgba(255, 196, 0, 0.24), transparent 18rem),
    linear-gradient(145deg, #123f83 0%, #082b63 48%, #031b3f 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  border: 6px solid rgba(255, 255, 255, 0.82);
  border-radius: 36px;
  box-shadow: 0 38px 90px rgba(3, 27, 63, 0.26), 0 9px 26px rgba(3, 27, 63, 0.12), 0 0 0 1px rgba(9, 42, 99, 0.1);
}

.hero-app-gallery::before {
  top: auto;
  right: -110px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  background: rgba(255, 122, 26, 0.22);
  border: 0;
  filter: blur(70px);
}

.hero-app-gallery::after {
  top: -170px;
  right: auto;
  bottom: auto;
  left: -120px;
  width: 330px;
  height: 330px;
  background: rgba(255, 196, 0, 0.13);
  border: 0;
  filter: blur(70px);
}

.hero-gallery-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  display: flex;
  min-height: 56px;
  padding: 10px 14px;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(1, 12, 31, 0.2);
  backdrop-filter: blur(14px);
}

.hero-gallery-badge > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--brand-success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--brand-success-soft);
}

.hero-gallery-badge p,
.hero-gallery-badge small,
.hero-gallery-badge strong {
  display: block;
  margin: 0;
}

.hero-gallery-badge small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-gallery-badge strong {
  color: var(--brand-primary-dark);
  font-size: 0.83rem;
}

.hero-shot {
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 29px;
  box-shadow: 0 30px 70px rgba(1, 12, 31, 0.48);
}

.hero-shot-home {
  bottom: -76px;
  width: min(60%, 330px);
  transform: translateX(-50%) rotate(-1deg);
}

.hero-shot-estimation,
.hero-shot-payment {
  top: 116px;
  width: min(46%, 246px);
  opacity: 0.72;
  filter: saturate(0.82);
}

.hero-shot-estimation {
  left: -2%;
  transform: rotate(-7deg);
}

.hero-shot-payment {
  right: -2%;
  transform: rotate(7deg);
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
    gap: clamp(58px, 6vw, 98px);
  }
}

@media (max-width: 919px) {
  .hero {
    min-height: auto;
    gap: 48px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-copy h1 {
    max-width: 10.5ch;
  }

  .hero-app-gallery {
    width: min(100%, 680px);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .hero .eyebrow {
    margin-bottom: 18px;
    padding: 8px 11px;
    font-size: 0.68rem;
  }

  .hero-copy h1 {
    margin-bottom: 22px;
    font-size: clamp(3.15rem, 16vw, 4.35rem);
  }

  .hero .lead {
    font-size: 1rem;
  }

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

  .hero-assurances li {
    width: fit-content;
  }

  .hero-app-gallery {
    min-height: 510px;
    border-width: 4px;
    border-radius: 27px;
  }

  .hero-gallery-badge {
    top: 16px;
    left: 16px;
    min-height: 50px;
    padding: 8px 12px;
    border-radius: 14px;
  }

  .hero-shot-home {
    bottom: -42px;
    width: min(69%, 284px);
  }

  .hero-shot-estimation,
  .hero-shot-payment {
    top: 126px;
    width: min(48%, 198px);
  }
}

/* Keep the premium navigation above the shared theme overrides. */
.site-header {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  border: 0;
  box-shadow: none;
}

.nav-toggle {
  border-color: rgba(9, 42, 99, 0.1);
  background: #f4f7fc;
}

.site-nav .nav-download {
  border-color: rgba(215, 159, 0, 0.16);
  background: linear-gradient(135deg, #ffda4d, var(--brand-yellow));
  color: var(--brand-primary-dark);
  box-shadow: 0 10px 24px rgba(255, 179, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.site-nav .nav-download:hover,
.site-nav .nav-download.is-active {
  border-color: rgba(255, 122, 26, 0.3);
  background: linear-gradient(135deg, #ffe166, #ffc20a);
  color: var(--brand-primary-dark);
  box-shadow: 0 13px 28px rgba(255, 179, 0, 0.28);
}

.site-nav .nav-action {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #123f83, var(--brand-primary-dark));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(3, 27, 63, 0.23), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  border-color: rgba(255, 196, 0, 0.48);
  background: linear-gradient(145deg, #174d99, #052654);
  color: var(--white);
  box-shadow: 0 15px 32px rgba(3, 27, 63, 0.3);
}

@media (min-width: 920px) {
  .site-nav {
    gap: 4px;
  }

  .site-nav .nav-download {
    margin-left: 7px;
  }

  .site-nav .nav-action {
    margin-left: 3px;
  }
}

@media (max-width: 919px) {
  .site-nav {
    background: rgba(255, 255, 255, 0.97);
  }
}

/* Backoffice profile switcher */
.backoffice-role-switcher {
  display: grid;
  gap: 7px;
}

.backoffice-role-switcher[hidden] {
  display: none;
}

.backoffice-role-switcher > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.backoffice-role-switcher .role-switcher {
  display: grid;
  width: 100%;
  padding: 4px;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 4px;
  background: var(--ops-bg);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.backoffice-role-switcher .role-switcher button {
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.backoffice-role-switcher .role-switcher button:hover:not(:disabled) {
  background: var(--white);
  color: var(--brand-primary);
}

.backoffice-role-switcher .role-switcher button.is-active {
  border-color: rgba(9, 42, 99, 0.1);
  background: var(--white);
  color: var(--brand-primary-dark);
  box-shadow: 0 7px 18px rgba(3, 27, 63, 0.1);
}

.backoffice-role-switcher .role-switcher button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.backoffice-role-switcher > small {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.backoffice-role-switcher > small:empty {
  display: none;
}

.backoffice-role-switcher > small.is-error {
  color: var(--brand-danger);
}

.backoffice-role-switcher.is-sidebar {
  margin: 14px 0 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.backoffice-role-switcher.is-sidebar > span,
.backoffice-role-switcher.is-sidebar > small {
  color: rgba(255, 255, 255, 0.58);
}

.backoffice-role-switcher.is-sidebar > small.is-error {
  color: #ffb4ab;
}

.backoffice-role-switcher.is-sidebar .role-switcher {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.backoffice-role-switcher.is-sidebar .role-switcher button {
  color: rgba(255, 255, 255, 0.64);
}

.backoffice-role-switcher.is-sidebar .role-switcher button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.backoffice-role-switcher.is-sidebar .role-switcher button.is-active {
  border-color: rgba(255, 196, 0, 0.38);
  background: var(--brand-yellow);
  color: var(--brand-primary-dark);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2);
}

.member-workspace-header {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
}

.member-workspace-header h1 {
  margin-bottom: 12px;
}

.member-workspace-header [data-member-description] {
  margin: 0;
  color: var(--muted);
}

.backoffice-role-switcher.is-member {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 14px 36px rgba(3, 27, 63, 0.08);
}

@media (max-width: 760px) {
  .member-workspace-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .backoffice-role-switcher.is-member {
    width: min(100%, 420px);
  }
}

/* Member dashboard */
.is-dashboard-page .member-workspace:not([hidden]) {
  width: min(100%, 1180px);
  padding: 0 24px 64px;
}

.member-topbar {
  display: flex;
  min-height: 80px;
  padding: 14px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(9, 42, 99, 0.1);
}

.member-brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: var(--brand-primary-dark);
  text-decoration: none;
}

.member-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(3, 27, 63, 0.12);
}

.member-brand span,
.member-brand strong,
.member-brand small {
  display: block;
}

.member-brand strong {
  font-size: 0.96rem;
  line-height: 1.1;
}

.member-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

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

.member-topbar-actions a,
.member-topbar-actions button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--brand-primary);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.member-topbar-actions a:hover,
.member-topbar-actions button:hover {
  border-color: var(--line);
  background: var(--white);
}

.member-topbar-actions button {
  color: var(--muted);
}

.member-workspace-header {
  margin: clamp(38px, 6vw, 70px) 0 30px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.member-intro {
  min-width: 0;
}

.is-dashboard-page .member-workspace .member-intro h1 {
  max-width: 15ch;
  margin: 7px 0 13px;
  color: var(--brand-primary-dark);
  font-size: clamp(2.7rem, 5.6vw, 4.65rem);
  letter-spacing: -0.062em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.member-workspace-header [data-member-description] {
  max-width: 55ch;
  color: #53647a;
  font-size: 1rem;
  line-height: 1.6;
}

.backoffice-role-switcher.is-member {
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(3, 27, 63, 0.07);
}

.backoffice-role-switcher.is-member .role-switcher {
  margin-top: 2px;
  padding: 5px;
  background: #f3f6fb;
  border-color: #dce5f0;
  border-radius: 14px;
}

.backoffice-role-switcher.is-member .role-switcher button {
  min-height: 46px;
  border-radius: 10px;
  white-space: nowrap;
}

.backoffice-role-switcher.is-member .role-switcher button.is-active {
  color: var(--white);
  background: var(--brand-primary);
  box-shadow: 0 8px 22px rgba(9, 42, 99, 0.22);
}

.member-workspace > .admin-feedback:not(:empty) {
  margin: -8px 0 22px;
}

.member-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  align-items: start;
  gap: 24px;
}

.member-activity,
.member-zone-form,
.member-account-actions {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(3, 27, 63, 0.055);
}

.member-activity {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 24px;
}

.member-section-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.member-section-heading h2 {
  margin: 4px 0 0;
  color: var(--brand-primary-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.member-section-heading > span {
  padding: 7px 10px;
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--ops-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.member-stats {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-stat {
  min-width: 0;
  padding: 16px;
  background: #f5f8fc;
  border: 1px solid #e1e8f1;
  border-radius: 16px;
}

.member-stat.is-accent {
  background: var(--brand-yellow-soft);
  border-color: rgba(215, 159, 0, 0.22);
}

.member-stat span,
.member-stat strong,
.member-stat small {
  display: block;
}

.member-stat span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-stat strong {
  margin: 7px 0 3px;
  overflow: hidden;
  color: var(--brand-primary-dark);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1;
  text-overflow: ellipsis;
}

.member-stat small {
  overflow: hidden;
  color: #647185;
  font-size: 0.71rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.member-data {
  margin: 0;
  gap: 10px;
}

.member-data .member-delivery-card {
  padding: 18px 19px;
  background: var(--white);
  border: 1px solid #e0e7f0;
  border-radius: 17px;
  box-shadow: none;
}

.member-delivery-card > header,
.member-delivery-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.member-delivery-card > header > div span,
.member-delivery-card > header > div strong {
  display: block;
}

.member-delivery-card > header > div span {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.member-delivery-card > header > div strong {
  color: var(--brand-primary-dark);
  font-size: 1rem;
}

.member-delivery-card .admin-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.member-delivery-details {
  display: grid;
  margin: 15px 0;
  padding: 14px 0;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.member-delivery-details p {
  min-width: 0;
  margin: 0;
}

.member-delivery-details span,
.member-delivery-details strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-delivery-details span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.member-delivery-details strong {
  color: #26364c;
  font-size: 0.82rem;
  text-transform: capitalize;
}

.member-delivery-card > footer {
  color: var(--muted);
  font-size: 0.7rem;
}

.member-handoff-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.member-handoff-code strong {
  padding: 5px 8px;
  color: var(--brand-primary-dark);
  background: var(--brand-yellow-soft);
  border-radius: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.member-profile-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.member-zone-form,
.member-account-actions {
  max-width: none;
  margin: 0;
  padding: 20px;
  border-radius: 20px;
}

.member-card-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.member-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand-primary);
  background: var(--ops-blue-pale);
  border-radius: 13px;
}

.member-card-icon.is-muted {
  color: #a13f08;
  background: var(--brand-orange-soft);
}

.member-card-icon svg,
.member-location-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-card-heading label {
  color: var(--brand-primary-dark);
  font-size: 0.92rem;
}

.member-card-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.member-zone-form .zone-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.member-zone-form .zone-field select,
.member-zone-form .zone-field .button {
  width: 100%;
  min-height: 48px;
}

.member-location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.member-zone-form > .button.primary {
  width: 100%;
  min-height: 48px;
  color: var(--white);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(9, 42, 99, 0.18);
}

.member-zone-form > .button.primary:hover {
  background: var(--brand-primary-dark);
}

.member-account-actions {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: #fffaf5;
  border-color: #f1d5bd;
  box-shadow: none;
}

.member-account-actions > div {
  min-width: 0;
}

.member-account-actions p {
  margin-top: 5px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.member-account-actions a {
  min-height: 44px;
  padding: 0;
  grid-column: 2;
  justify-content: space-between;
  border: 0;
  font-size: 0.75rem;
}

.member-account-actions a:hover {
  text-decoration: underline;
}

.member-empty-state {
  display: grid;
  min-height: 230px;
  padding: 34px;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
  background: #f7f9fc;
  border: 1px dashed #cad6e5;
  border-radius: 18px;
}

.member-empty-state strong {
  color: var(--brand-primary-dark);
}

.member-empty-state p {
  margin: 0;
  font-size: 0.82rem;
}

.member-stat.is-loading,
.member-delivery-card.is-loading {
  position: relative;
  overflow: hidden;
}

.member-stat.is-loading::after,
.member-delivery-card.is-loading::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.88) 46%, transparent 64%);
  content: "";
  animation: member-skeleton 1.25s linear infinite;
}

.member-delivery-card.is-loading > span {
  display: block;
  width: 46%;
  height: 12px;
  margin: 8px 0;
  background: #e7edf4;
  border-radius: 999px;
}

.member-delivery-card.is-loading > span:nth-child(2) {
  width: 72%;
}

@keyframes member-skeleton {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.member-topbar-actions a:focus-visible,
.member-topbar-actions button:focus-visible,
.member-brand:focus-visible,
.backoffice-role-switcher .role-switcher button:focus-visible,
.member-account-actions a:focus-visible {
  outline: 3px solid rgba(255, 122, 26, 0.36);
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .member-workspace-header,
  .member-overview {
    grid-template-columns: 1fr;
  }

  .backoffice-role-switcher.is-member {
    width: min(100%, 460px);
  }

  .member-profile-panel {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .is-dashboard-page .member-workspace:not([hidden]) {
    padding: 0 14px 40px;
  }

  .member-topbar {
    min-height: 70px;
  }

  .member-topbar-actions a {
    display: none;
  }

  .member-topbar-actions button {
    padding-inline: 10px;
  }

  .member-workspace-header {
    margin: 30px 0 22px;
    gap: 22px;
  }

  .is-dashboard-page .member-workspace .member-intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.45rem);
  }

  .backoffice-role-switcher.is-member {
    padding: 12px;
  }

  .member-activity {
    padding: 17px;
    border-radius: 20px;
  }

  .member-section-heading {
    align-items: start;
  }

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

  .member-stat:last-child {
    grid-column: 1 / -1;
  }

  .member-delivery-details {
    grid-template-columns: 1fr 1fr;
  }

  .member-delivery-details p:first-child {
    grid-column: 1 / -1;
  }

  .member-delivery-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-profile-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-stat.is-loading::after,
  .member-delivery-card.is-loading::after {
    animation: none;
  }
}

/* Finance command center */
.finance-page-heading {
  margin-bottom: 22px;
}

.finance-page-heading > p {
  max-width: 58ch;
}

.finance-main-tabs {
  display: grid;
  margin-bottom: 28px;
  padding: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  background: #e8eef6;
  border: 1px solid #d8e2ee;
  border-radius: 20px;
}

.finance-main-tab {
  display: grid;
  min-width: 0;
  min-height: 84px;
  padding: 14px 16px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  color: #58667a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.finance-main-tab:hover:not(.is-active) {
  color: var(--brand-primary-dark);
  background: rgba(255, 255, 255, 0.6);
}

.finance-main-tab:focus-visible {
  outline: 3px solid rgba(16, 71, 145, 0.25);
  outline-offset: 2px;
}

.finance-main-tab.is-active {
  color: var(--brand-primary-dark);
  background: var(--white);
  border-color: #d3dfec;
  box-shadow: 0 10px 24px rgba(3, 27, 63, 0.08);
}

.finance-main-tab-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #637287;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 13px;
}

.finance-main-tab.is-active .finance-main-tab-icon {
  color: var(--brand-primary);
  background: var(--ops-blue-pale);
}

.finance-main-tab-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-main-tab > span:nth-child(2),
.finance-main-tab small,
.finance-main-tab strong {
  display: block;
  min-width: 0;
}

.finance-main-tab small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.finance-main-tab strong {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.3;
}

.finance-main-tab > b {
  padding: 7px 10px;
  color: var(--brand-primary);
  background: var(--ops-blue-pale);
  border-radius: 999px;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.finance-main-tab.is-active > b {
  color: var(--white);
  background: var(--brand-primary);
}

.finance-main-panel {
  min-width: 0;
}

.finance-main-panel[hidden] {
  display: none;
}

.finance-main-panel:focus-visible {
  outline: 3px solid rgba(16, 71, 145, 0.2);
  outline-offset: 6px;
  border-radius: 14px;
}

.finance-main-panel .finance-ledger-section {
  margin-top: 0;
}

.finance-kpis {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.finance-kpi {
  display: grid;
  min-width: 0;
  min-height: 128px;
  padding: 20px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: var(--ops-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(3, 27, 63, 0.045);
}

.finance-kpi-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--brand-primary);
  background: var(--ops-blue-pale);
  border-radius: 14px;
}

.finance-kpi-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-kpi > div,
.finance-kpi > div > span,
.finance-kpi strong,
.finance-kpi small {
  display: block;
  min-width: 0;
}

.finance-kpi > div {
  overflow: hidden;
}

.finance-kpi > div > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.finance-kpi strong {
  margin: 7px 0 5px;
  color: var(--brand-primary-dark);
  font-size: clamp(1.3rem, 1.65vw, 1.75rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.05;
  white-space: nowrap;
}

.finance-kpi small {
  color: #677488;
  font-size: 0.68rem;
  line-height: 1.35;
}

.finance-kpi.is-success .finance-kpi-icon {
  color: #137749;
  background: var(--brand-success-soft);
}

.finance-kpi.is-warning .finance-kpi-icon {
  color: var(--ops-yellow-dark);
  background: var(--brand-yellow-soft);
}

.finance-kpi.is-danger .finance-kpi-icon {
  color: #a13a2f;
  background: var(--brand-danger-soft);
}

.finance-kpi.is-orange .finance-kpi-icon {
  color: var(--coral-dark);
  background: var(--brand-orange-soft);
}

.finance-kpi.is-neutral .finance-kpi-icon {
  color: #59677a;
  background: #edf1f6;
}

.finance-kpi.is-loading > * {
  opacity: 0;
}

.finance-kpi.is-loading {
  background: linear-gradient(105deg, #f2f5f9 25%, #ffffff 43%, #f2f5f9 61%);
  background-size: 220% 100%;
  animation: admin-shimmer 1.4s linear infinite;
}

.finance-analytics-grid {
  display: grid;
  margin-bottom: 34px;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.72fr);
  align-items: stretch;
  gap: 12px;
}

.finance-chart-card {
  min-height: 0;
  border-radius: 19px;
}

.finance-trend-card {
  grid-row: span 2;
}

.finance-card-heading {
  display: flex;
  margin-bottom: 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.finance-card-heading h3 {
  margin: 3px 0 0;
  color: var(--brand-primary-dark);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.finance-card-total {
  padding: 8px 10px;
  flex: 0 0 auto;
  color: var(--brand-primary-dark);
  background: var(--ops-blue-pale);
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.finance-line-chart {
  min-height: 300px;
  padding: 8px 0 0;
}

.finance-line-chart svg {
  display: block;
  width: 100%;
  height: 250px;
  overflow: visible;
}

.finance-chart-gridline {
  stroke: #dfe6f0;
  stroke-width: 1;
  stroke-dasharray: 4 7;
  vector-effect: non-scaling-stroke;
}

.finance-chart-area {
  fill: url(#finance-area-gradient);
}

.finance-chart-line {
  fill: none;
  stroke: #174d99;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.finance-chart-point {
  fill: var(--white);
  stroke: #174d99;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.finance-trend-labels {
  display: flex;
  margin-top: -2px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.finance-chart-caption {
  margin-top: 15px;
  padding-top: 13px;
  color: #59677a;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.finance-line-chart.is-loading,
.finance-method-chart.is-loading,
.finance-exposure-chart.is-loading {
  min-height: 180px;
  background: linear-gradient(105deg, #f0f4f9 25%, #ffffff 43%, #f0f4f9 61%);
  background-size: 220% 100%;
  border-radius: 13px;
  animation: admin-shimmer 1.4s linear infinite;
}

.finance-method-stack {
  display: flex;
  height: 15px;
  margin: 4px 0 18px;
  overflow: hidden;
  background: #edf1f6;
  border-radius: 999px;
}

.finance-method-stack > span {
  width: var(--finance-share);
  min-width: 2px;
}

.finance-method-legend {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.finance-method-legend li {
  display: grid;
  padding-top: 8px;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #edf1f6;
}

.finance-method-legend li:first-child {
  padding-top: 0;
  border-top: 0;
}

.finance-method-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.finance-method-legend span,
.finance-method-legend strong,
.finance-method-legend small,
.finance-method-legend b {
  display: block;
}

.finance-method-legend strong,
.finance-method-legend b {
  color: #25354b;
  font-size: 0.74rem;
}

.finance-method-legend b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.finance-method-legend small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.is-method-0 { background: #174d99; }
.is-method-1 { background: #f0b400; }
.is-method-2 { background: #e7654f; }
.is-method-3 { background: #16834b; }
.is-method-4 { background: #7b61a8; }

.finance-exposure-chart {
  display: grid;
  gap: 12px;
}

.finance-exposure-row > div {
  display: flex;
  margin-bottom: 6px;
  justify-content: space-between;
  gap: 12px;
  color: #536176;
  font-size: 0.68rem;
}

.finance-exposure-row strong {
  color: #25354b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.finance-exposure-track {
  display: block;
  height: 8px;
  overflow: hidden;
  background: #edf1f6;
  border-radius: 999px;
}

.finance-exposure-track i {
  display: block;
  width: var(--finance-bar);
  height: 100%;
  min-width: 2px;
  background: var(--brand-primary);
  border-radius: inherit;
}

.finance-exposure-row.is-warning .finance-exposure-track i { background: #d6a100; }
.finance-exposure-row.is-danger .finance-exposure-track i { background: #c65346; }
.finance-exposure-row.is-neutral .finance-exposure-track i { background: #8390a2; }
.finance-exposure-row.is-orange .finance-exposure-track i { background: var(--brand-orange); }

.finance-operation-tabs {
  display: grid;
  margin: 20px 0 18px;
  padding: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: #eaf0f7;
  border: 1px solid #dce5f0;
  border-radius: 19px;
}

.finance-operation-tab {
  display: grid;
  min-width: 0;
  min-height: 78px;
  padding: 12px 14px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: #526176;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.finance-operation-tab:hover:not(.is-active) {
  color: var(--brand-primary-dark);
  background: rgba(255, 255, 255, 0.58);
}

.finance-operation-tab:focus-visible {
  outline: 3px solid rgba(16, 71, 145, 0.25);
  outline-offset: 2px;
}

.finance-operation-tab.is-active {
  color: var(--brand-primary-dark);
  background: var(--white);
  border-color: #d4dfec;
  box-shadow: 0 8px 20px rgba(3, 27, 63, 0.08);
}

.finance-operation-tab-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #617187;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
}

.finance-operation-tab.is-active .finance-operation-tab-icon {
  color: var(--brand-primary);
  background: var(--ops-blue-pale);
}

.finance-operation-tab-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-operation-tab > span:nth-child(2),
.finance-operation-tab small,
.finance-operation-tab b {
  display: block;
  min-width: 0;
}

.finance-operation-tab small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.finance-operation-tab b {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.25;
}

.finance-operation-tab > strong {
  padding: 6px 8px;
  color: var(--brand-primary);
  background: var(--ops-blue-pale);
  border-radius: 999px;
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.finance-operation-tab.is-active > strong {
  color: var(--white);
  background: var(--brand-primary);
}

.finance-ledger-section.finance-operation-panel {
  min-width: 0;
  margin-top: 0;
  padding-top: 16px;
}

.finance-operation-panel[hidden] {
  display: none;
}

.finance-operation-panel:focus-visible {
  outline: 3px solid rgba(16, 71, 145, 0.2);
  outline-offset: 5px;
  border-radius: 12px;
}

.finance-ledger-section {
  margin-top: 28px;
  scroll-margin-top: 110px;
}

.finance-ledger-heading,
.finance-section-intro {
  display: flex;
  margin-bottom: 13px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.finance-ledger-heading h3,
.finance-ledger-heading h2,
.finance-section-intro h2 {
  margin: 3px 0 4px;
  color: var(--brand-primary-dark);
  letter-spacing: -0.035em;
}

.finance-ledger-heading h3,
.finance-ledger-heading h2 {
  font-size: 1.22rem;
}

.finance-section-intro h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.finance-ledger-heading div > span,
.finance-section-intro > p {
  display: block;
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.finance-ledger-heading > strong {
  padding: 8px 11px;
  flex: 0 0 auto;
  color: var(--brand-primary);
  background: var(--ops-blue-pale);
  border: 1px solid #d7e3f3;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.finance-operations {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid rgba(9, 42, 99, 0.13);
}

.finance-page .admin-table-panel {
  overflow: hidden;
  border-radius: 16px;
}

.finance-page .admin-table th {
  color: #29466f;
  font-size: 0.68rem;
  letter-spacing: 0.035em;
}

.finance-page .admin-table td {
  font-variant-numeric: tabular-nums;
}

.finance-pagination {
  display: grid;
  min-width: 0;
  margin-top: 12px;
  padding: 13px 15px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(3, 27, 63, 0.035);
}

.finance-page-size {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #59677a;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.finance-page-size select {
  min-width: 70px;
  min-height: 44px;
  padding: 0 30px 0 11px;
  color: var(--brand-primary-dark);
  background-color: var(--white);
  border: 1px solid #cedae8;
  border-radius: 10px;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.finance-pagination > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.finance-page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.finance-page-controls button {
  min-height: 44px;
  padding: 0 13px;
  color: var(--brand-primary);
  background: var(--white);
  border: 1px solid #cedae8;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.finance-page-controls button:hover:not(:disabled) {
  color: var(--white);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.finance-page-controls button:focus-visible,
.finance-page-size select:focus-visible {
  outline: 3px solid rgba(16, 71, 145, 0.22);
  outline-offset: 2px;
}

.finance-page-controls button:disabled {
  color: #8995a5;
  background: #f1f4f8;
  border-color: #e0e6ee;
  cursor: not-allowed;
  opacity: 0.72;
}

.finance-page-controls span {
  min-width: 92px;
  color: #33445b;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

/* Keep every sidebar role readable at narrow widths. */
.backoffice-role-switcher.is-sidebar .role-switcher {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

.backoffice-role-switcher.is-sidebar .role-switcher button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 2100px) {
  .finance-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .finance-kpi {
    padding: 18px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .finance-kpi-icon {
    width: 42px;
    height: 42px;
  }

  .finance-kpi strong {
    font-size: clamp(1.2rem, 1.35vw, 1.6rem);
  }
}

@media (max-width: 1120px) {
  .finance-analytics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-trend-card {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .finance-main-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-main-tab {
    min-height: 74px;
  }

  .finance-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .finance-kpi {
    min-height: 105px;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-kpi-icon {
    width: 36px;
    height: 36px;
  }

  .finance-kpi strong {
    font-size: clamp(0.96rem, 4.4vw, 1.08rem);
  }

  .finance-operation-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-operation-tab {
    min-height: 70px;
  }

  .finance-pagination {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .finance-page-size,
  .finance-page-controls {
    justify-content: space-between;
  }

  .finance-pagination > p {
    text-align: left;
  }

  .finance-page-controls button {
    flex: 1 1 0;
  }

  .finance-line-chart {
    min-height: 230px;
  }

  .finance-line-chart svg {
    height: 190px;
  }

  .finance-ledger-heading,
  .finance-section-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .finance-ledger-heading > strong {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finance-main-tab,
  .finance-operation-tab {
    transition: none;
  }

  .finance-kpi.is-loading,
  .finance-line-chart.is-loading,
  .finance-method-chart.is-loading,
  .finance-exposure-chart.is-loading {
    animation: none;
  }
}

/* Refined administration topbar */
.is-dashboard-page .admin-topbar {
  padding: 24px clamp(22px, 2vw, 32px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  background: rgba(247, 249, 252, 0.95);
  border: 1px solid rgba(9, 42, 99, 0.11);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 14px 34px rgba(3, 27, 63, 0.055);
}

.admin-topbar-copy {
  min-width: 0;
  padding-block: 2px;
}

.is-dashboard-page .admin-topbar-copy .admin-kicker {
  margin-bottom: 5px;
}

.is-dashboard-page .admin-topbar h1 {
  margin-top: 0;
}

.is-dashboard-page .admin-page-description {
  margin-top: 8px;
  line-height: 1.5;
}

.is-dashboard-page .admin-sync {
  display: flex;
  min-width: 0;
  grid-template-columns: none;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: nowrap;
  gap: 10px;
}

.admin-sync-status {
  display: flex;
  min-width: 0;
  min-height: 52px;
  padding: 7px 13px;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dce5ef;
  border-radius: 14px;
}

.admin-sync-status .source-badge {
  flex: 0 0 auto;
}

.admin-sync-status .admin-updated {
  min-width: 196px;
}

.admin-sync-status .admin-updated small {
  max-width: 240px;
  line-height: 1.35;
}

.admin-sync-status .admin-updated small:first-child {
  color: #4f5f74;
  font-size: 0.73rem;
}

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

.is-dashboard-page .admin-topbar .admin-icon-button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 13px;
}

.is-dashboard-page .admin-topbar .admin-icon-button:focus-visible {
  outline: 3px solid rgba(16, 71, 145, 0.22);
  outline-offset: 2px;
}

@media (max-width: 1279px) {
  .is-dashboard-page .admin-topbar {
    padding: 22px clamp(18px, 2.4vw, 26px);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
  }

  .is-dashboard-page .admin-sync {
    width: 100%;
    grid-column: 1 / -1;
    justify-content: flex-start;
    justify-self: stretch;
  }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .is-dashboard-page .admin-topbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 679px) {
  .is-dashboard-page .admin-topbar {
    padding: 18px 16px;
    align-items: start;
    border-radius: 0 0 16px 16px;
  }

  .is-dashboard-page .admin-sync {
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-sync-status {
    min-height: 48px;
    padding: 6px 10px;
    flex: 1 1 auto;
  }

  .admin-sync-actions {
    margin-left: auto;
  }

  .is-dashboard-page .admin-topbar .admin-icon-button {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .is-dashboard-page .admin-page-description {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-dashboard-page .admin-topbar .admin-icon-button {
    transition: none;
  }
}

/* Wide member workspace, history pagination and admin role select */
.is-dashboard-page .member-workspace:not([hidden]) {
  width: min(calc(100% - 32px), 1760px);
  max-width: 1760px;
  padding-inline: clamp(24px, 2.5vw, 44px);
}

.member-overview {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 32px;
}

.backoffice-role-switcher.is-sidebar > label {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.role-switcher-select {
  position: relative;
  min-width: 0;
}

.role-switcher-select select {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 13px;
  appearance: none;
  color: var(--brand-primary-dark);
  background: var(--brand-yellow);
  border: 1px solid rgba(255, 196, 0, 0.5);
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.18);
}

.role-switcher-select svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  fill: none;
  stroke: var(--brand-primary-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.role-switcher-select select:hover:not(:disabled) {
  background: #ffd13d;
}

.role-switcher-select select:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.35);
  outline-offset: 3px;
}

.role-switcher-select select:disabled {
  cursor: wait;
  opacity: 0.68;
}

.member-pagination {
  display: grid;
  min-width: 0;
  margin-top: 14px;
  padding: 13px 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  background: #f5f8fc;
  border: 1px solid #e0e7f0;
  border-radius: 15px;
}

.member-pagination > label,
.member-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-pagination > label {
  color: #59677a;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.member-pagination select {
  min-width: 68px;
  min-height: 44px;
  padding: 0 28px 0 10px;
  color: var(--brand-primary-dark);
  background: var(--white);
  border: 1px solid #cedae8;
  border-radius: 10px;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.member-pagination > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.member-pagination > div {
  justify-content: flex-end;
}

.member-pagination button {
  min-height: 44px;
  padding: 0 12px;
  color: var(--brand-primary);
  background: var(--white);
  border: 1px solid #cedae8;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.member-pagination button:hover:not(:disabled) {
  color: var(--white);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.member-pagination button:focus-visible,
.member-pagination select:focus-visible {
  outline: 3px solid rgba(16, 71, 145, 0.22);
  outline-offset: 2px;
}

.member-pagination button:disabled {
  color: #8995a5;
  background: #edf1f6;
  cursor: not-allowed;
  opacity: 0.72;
}

.member-pagination > div > span {
  min-width: 92px;
  color: #33445b;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .member-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .member-empty-state {
    grid-column: 1 / -1;
  }
}

@media (max-width: 940px) {
  .member-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .member-pagination {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .member-pagination > label,
  .member-pagination > div {
    justify-content: space-between;
  }

  .member-pagination > p {
    text-align: left;
  }

  .member-pagination button {
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  .is-dashboard-page .member-workspace:not([hidden]) {
    width: 100%;
    padding-inline: 14px;
  }
}

/* Professional operations control center */
#vue-ensemble {
  --overview-green: #168553;
  --overview-green-soft: #eaf7f0;
  --overview-amber: #a66a00;
  --overview-amber-soft: #fff5cf;
  --overview-red: #b83b2e;
  --overview-red-soft: #fff0ed;
}

#vue-ensemble .admin-overview-heading {
  margin-bottom: 20px;
  padding: 4px 0 0;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.58fr);
  align-items: center;
  gap: 32px;
}

#vue-ensemble .admin-overview-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

#vue-ensemble .admin-overview-heading > div > p:last-child {
  max-width: 66ch;
  margin: 10px 0 0;
  color: #5c6c81;
  font-size: 0.86rem;
  line-height: 1.55;
}

.admin-health-card {
  display: grid;
  min-width: 0;
  min-height: 94px;
  padding: 16px 18px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: var(--overview-green-soft);
  border: 1px solid rgba(22, 133, 83, 0.2);
  border-radius: 18px;
}

.admin-health-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--overview-green);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
}

.admin-health-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-health-card > span:last-child,
.admin-health-card small,
.admin-health-card strong,
.admin-health-card [data-admin-health-detail] {
  display: block;
  min-width: 0;
}

.admin-health-card small {
  margin-bottom: 3px;
  color: #526477;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-health-card strong {
  color: #0f5f3d;
  font-size: 0.92rem;
}

.admin-health-card [data-admin-health-detail] {
  margin-top: 4px;
  overflow: hidden;
  color: #476457;
  font-size: 0.72rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-health-card.is-warning {
  background: var(--overview-amber-soft);
  border-color: rgba(166, 106, 0, 0.25);
}

.admin-health-card.is-warning .admin-health-icon,
.admin-health-card.is-warning strong {
  color: var(--overview-amber);
}

.admin-health-card.is-warning [data-admin-health-detail] {
  color: #745920;
}

.admin-health-card.is-critical {
  background: var(--overview-red-soft);
  border-color: rgba(184, 59, 46, 0.24);
}

.admin-health-card.is-critical .admin-health-icon,
.admin-health-card.is-critical strong {
  color: var(--overview-red);
}

.admin-health-card.is-critical [data-admin-health-detail] {
  color: #7b4038;
}

.admin-health-card.is-loading {
  opacity: 0.72;
}

#vue-ensemble .admin-command-strip {
  margin-bottom: 28px;
  gap: 12px;
}

#vue-ensemble .admin-command-strip a {
  min-height: 78px;
  padding: 13px 16px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(3, 27, 63, 0.035);
}

#vue-ensemble .admin-command-strip a:focus-visible {
  outline: 3px solid rgba(9, 42, 99, 0.2);
  outline-offset: 3px;
}

#vue-ensemble .command-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.admin-overview-subheading {
  display: flex;
  margin-bottom: 14px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.admin-overview-subheading h3 {
  margin: 3px 0 0;
  color: var(--brand-primary-dark);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.admin-overview-subheading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

#vue-ensemble .admin-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#vue-ensemble .admin-metric {
  min-height: 144px;
  padding: 20px 22px;
  overflow: hidden;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(3, 27, 63, 0.045);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#vue-ensemble .admin-metric:hover {
  border-color: rgba(9, 42, 99, 0.24);
  box-shadow: 0 16px 36px rgba(3, 27, 63, 0.1);
  transform: translateY(-3px);
}

#vue-ensemble .admin-metric:focus-visible {
  outline: 3px solid rgba(9, 42, 99, 0.3);
  outline-offset: 3px;
}

#vue-ensemble .admin-metric::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-primary);
  content: "";
}

#vue-ensemble .admin-metric::after {
  display: none;
}

#vue-ensemble .admin-metric > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #536276;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

#vue-ensemble .admin-metric > span i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--brand-primary);
  border-radius: 50%;
}

#vue-ensemble .admin-metric > strong {
  margin: 14px 0 9px;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}

#vue-ensemble .admin-metric > small {
  display: block;
  padding-right: 34px;
  color: #607086;
  font-size: 0.75rem;
  line-height: 1.4;
}

#vue-ensemble .admin-metric-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: rgba(9, 42, 99, 0.07);
  border-radius: 50%;
  color: var(--brand-primary);
  font-size: 1rem;
  transition: background 180ms ease, transform 180ms ease;
}

#vue-ensemble .admin-metric:hover .admin-metric-arrow,
#vue-ensemble .admin-metric:focus-visible .admin-metric-arrow {
  background: var(--brand-primary);
  color: var(--white);
  transform: translateX(3px);
}

#vue-ensemble .admin-metric.is-alert {
  background: linear-gradient(145deg, var(--white), var(--overview-red-soft));
  border-color: rgba(184, 59, 46, 0.22);
}

#vue-ensemble .admin-metric.is-alert::before,
#vue-ensemble .admin-metric.is-alert > span i {
  background: var(--overview-red);
}

#vue-ensemble .admin-metric.is-stable::before,
#vue-ensemble .admin-metric.is-stable > span i,
#vue-ensemble .admin-metric.is-success::before,
#vue-ensemble .admin-metric.is-success > span i {
  background: var(--overview-green);
}

#vue-ensemble .admin-metric.is-capacity::before,
#vue-ensemble .admin-metric.is-capacity > span i {
  background: var(--brand-yellow);
}

#vue-ensemble .admin-metric.is-finance::before,
#vue-ensemble .admin-metric.is-finance > span i {
  background: var(--brand-orange);
}

#vue-ensemble .admin-metric.is-neutral::before,
#vue-ensemble .admin-metric.is-neutral > span i {
  background: #7b8aa0;
}

#vue-ensemble .admin-overview-grid {
  margin-top: 26px;
  gap: 18px;
}

#vue-ensemble .admin-panel {
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(3, 27, 63, 0.045);
}

#vue-ensemble .admin-panel-heading {
  margin-bottom: 20px;
  padding-bottom: 16px;
  align-items: center;
  border-bottom: 1px solid #e7edf4;
}

#vue-ensemble .admin-panel-heading h3 {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

#vue-ensemble .admin-panel-heading a {
  display: inline-flex;
  padding: 0 12px;
  align-items: center;
  border: 1px solid #d7e1ed;
  border-radius: 10px;
  text-decoration: none;
}

#vue-ensemble .admin-priority-list {
  gap: 0;
}

#vue-ensemble .admin-priority-item {
  position: relative;
  min-height: 70px;
  padding: 13px 0 13px 17px;
  align-items: center;
  gap: 16px;
}

#vue-ensemble .admin-priority-item::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 3px;
  background: var(--brand-orange);
  border-radius: 99px;
  content: "";
}

#vue-ensemble .admin-priority-item.is-review::before {
  background: var(--brand-yellow);
}

#vue-ensemble .admin-priority-item.is-document::before {
  background: var(--brand-primary);
}

#vue-ensemble .admin-priority-item strong {
  margin-bottom: 5px;
  color: var(--brand-primary-dark);
  font-size: 0.88rem;
}

#vue-ensemble .admin-priority-item small {
  color: #637287;
  font-size: 0.73rem;
  line-height: 1.45;
}

#vue-ensemble .admin-timeline {
  gap: 2px;
}

#vue-ensemble .admin-timeline li:not(.admin-empty) {
  padding: 2px 0 17px 22px;
}

#vue-ensemble .admin-timeline strong {
  color: var(--brand-primary-dark);
  font-size: 0.82rem;
}

#vue-ensemble .admin-timeline span,
#vue-ensemble .admin-timeline time {
  margin-top: 3px;
  color: #68778a;
  line-height: 1.35;
}

#vue-ensemble .admin-chart-row {
  min-height: 34px;
  grid-template-columns: minmax(132px, 0.72fr) minmax(140px, 1.28fr) 44px;
  gap: 12px;
}

#vue-ensemble .admin-chart-track {
  height: 9px;
}

#vue-ensemble .admin-chart-track i {
  background: var(--brand-primary);
}

#vue-ensemble .admin-chart-row.status-delivered .admin-chart-track i {
  background: var(--overview-green);
}

#vue-ensemble .admin-chart-row.status-cancelled .admin-chart-track i,
#vue-ensemble .admin-chart-row.status-refunded .admin-chart-track i,
#vue-ensemble .admin-chart-row.status-failed .admin-chart-track i {
  background: var(--overview-red);
}

#vue-ensemble .admin-chart-row.status-searching_driver .admin-chart-track i,
#vue-ensemble .admin-chart-row.status-waiting .admin-chart-track i {
  background: var(--overview-amber);
}

@media (min-width: 1280px) {
  #vue-ensemble .admin-overview-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  }
}

@media (max-width: 1079px) {
  #vue-ensemble .admin-overview-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-health-card {
    width: min(100%, 560px);
  }
}

@media (max-width: 820px) {
  #vue-ensemble .admin-command-strip,
  #vue-ensemble .admin-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-overview-subheading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  #vue-ensemble .admin-overview-heading {
    gap: 20px;
  }

  .admin-health-card {
    padding: 14px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .admin-health-icon {
    width: 40px;
    height: 40px;
  }

  .admin-health-card [data-admin-health-detail] {
    overflow: visible;
    white-space: normal;
  }

  #vue-ensemble .admin-panel {
    padding: 18px;
  }
}

/* Mobile application version control */
#versions {
  --version-blue: #0b3a79;
  --version-blue-soft: #eef5ff;
  --version-green: #14885a;
  --version-green-soft: #e9f8f1;
  --version-orange: #c45510;
  --version-orange-soft: #fff2e7;
  --version-ink: #10233e;
  --version-muted: #637186;
  --version-line: #dbe4ef;
  padding-top: 24px;
}

#versions .app-version-form {
  display: grid;
  gap: 18px;
}

#versions .app-version-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#versions .app-version-intro > div:first-child {
  min-width: 0;
}

#versions .app-version-intro h2,
#versions .app-version-intro p {
  margin: 0;
}

#versions .app-version-intro h2 {
  margin-top: 4px;
  color: var(--version-ink);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  letter-spacing: -0.035em;
}

#versions .app-version-intro > div:first-child > p:last-child {
  max-width: 760px;
  margin-top: 7px;
  color: var(--version-muted);
  line-height: 1.5;
}

#versions .app-version-health {
  min-width: 260px;
  padding: 13px 16px;
  border: 1px solid #cfe8dc;
  border-radius: 14px;
  background: var(--version-green-soft);
  color: #0c6946;
}

#versions .app-version-health span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 750;
}

#versions .app-version-health span i,
#versions .app-version-card-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgb(20 136 90 / 12%);
}

#versions .app-version-health small {
  display: block;
  margin-top: 4px;
  color: #477463;
  font-size: 0.72rem;
}

#versions .app-version-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#versions .app-version-summary article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--version-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(13 42 76 / 5%);
}

#versions .app-version-summary-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

#versions .app-version-summary-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#versions .app-version-summary-icon.is-blue {
  color: var(--version-blue);
  background: var(--version-blue-soft);
}

#versions .app-version-summary-icon.is-green {
  color: var(--version-green);
  background: var(--version-green-soft);
}

#versions .app-version-summary-icon.is-orange {
  color: var(--version-orange);
  background: var(--version-orange-soft);
}

#versions .app-version-summary article p {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 10px;
  margin: 0;
}

#versions .app-version-summary article small {
  color: var(--version-muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

#versions .app-version-summary article strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--version-ink);
  font-size: 1.5rem;
}

#versions .app-version-summary article p > span {
  overflow: hidden;
  color: #7b8797;
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#versions .app-version-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px;
  border: 1px solid var(--version-line);
  border-radius: 18px;
  background: #fff;
}

#versions .app-version-toolbar > p {
  max-width: 390px;
  margin: 0 12px 0 0;
  color: var(--version-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
}

#versions .app-version-toolbar > p strong {
  display: block;
  color: var(--version-ink);
}

#versions .app-version-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 6px;
}

#versions .app-version-tabs button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #637186;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

#versions .app-version-tabs button > span {
  width: 36px;
  height: 36px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--version-blue);
  background: #edf2f8;
}

#versions .app-version-tabs button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#versions .app-version-tabs button b {
  align-self: end;
  color: var(--version-ink);
  font-size: 0.87rem;
}

#versions .app-version-tabs button small {
  align-self: start;
  font-size: 0.69rem;
}

#versions .app-version-tabs button:hover {
  background: #f4f7fb;
}

#versions .app-version-tabs button.is-active {
  border-color: #c8daf1;
  color: #49617e;
  background: var(--version-blue-soft);
  box-shadow: 0 4px 14px rgb(11 58 121 / 8%);
}

#versions .app-version-tabs button.is-active > span {
  color: #fff;
  background: var(--version-blue);
}

#versions .app-version-tabs button:focus-visible,
#versions .app-version-advanced summary:focus-visible {
  outline: 3px solid rgb(11 58 121 / 20%);
  outline-offset: 2px;
}

#versions .app-version-panels,
#versions .app-version-panel {
  min-width: 0;
}

#versions .app-version-panel[hidden] {
  display: none;
}

#versions .app-version-panel:focus {
  outline: none;
}

#versions .app-version-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

#versions .app-version-panel-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

#versions .app-version-panel-heading > div > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--version-blue);
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#versions .app-version-panel-heading p {
  display: grid;
  margin: 0;
}

#versions .app-version-panel-heading strong {
  color: var(--version-ink);
  font-size: 1rem;
}

#versions .app-version-panel-heading small {
  color: var(--version-muted);
  font-size: 0.72rem;
}

#versions .app-version-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-dashboard #versions .app-version-card {
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--version-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(13 42 76 / 6%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-dashboard #versions .app-version-card.is-enforced {
  border-color: #e8b46d;
  box-shadow: 0 10px 28px rgb(196 85 16 / 8%);
}

#versions .app-version-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 16px 17px 12px;
  border-bottom: 1px solid #edf1f6;
}

#versions .app-version-platform {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#versions .app-version-platform > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--version-blue);
  background: var(--version-blue-soft);
}

#versions .app-version-platform svg,
#versions .app-version-store-field svg,
#versions .app-version-advanced svg,
#versions .app-version-savebar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#versions .app-version-platform p {
  min-width: 0;
  display: grid;
  margin: 0;
}

#versions .app-version-platform strong {
  overflow: hidden;
  color: var(--version-ink);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#versions .app-version-platform small {
  color: var(--version-muted);
  font-size: 0.7rem;
}

#versions .app-version-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #68778b;
  background: #eef2f6;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

#versions .app-version-card-status i {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

#versions .app-version-card-status.is-enforced {
  color: var(--version-orange);
  background: var(--version-orange-soft);
}

.admin-dashboard #versions .app-version-switch {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 3px;
  color: #43536a;
  font-size: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.admin-dashboard #versions .app-version-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.admin-dashboard #versions .app-version-switch > span {
  width: 38px;
  height: 22px;
  position: relative;
  flex: 0 0 38px;
  border: 1px solid #b8c3d0;
  border-radius: 999px;
  background: #cbd3dd;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.admin-dashboard #versions .app-version-switch > span i {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgb(16 35 62 / 22%);
  transition: transform 160ms ease;
}

.admin-dashboard #versions .app-version-switch input:checked + span {
  border-color: var(--version-orange);
  background: var(--version-orange);
}

.admin-dashboard #versions .app-version-switch input:checked + span i {
  transform: translateX(16px);
}

.admin-dashboard #versions .app-version-switch input:focus-visible + span {
  outline: 3px solid rgb(196 85 16 / 20%);
  outline-offset: 2px;
}

#versions .app-version-force-help {
  margin: 0;
  padding: 9px 17px;
  color: #6e7b8d;
  background: #fafbfd;
  font-size: 0.72rem;
  line-height: 1.4;
}

#versions .app-version-release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px 17px 12px;
}

#versions .app-version-release-grid > section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e7edf4;
  border-radius: 13px;
  background: #fbfcfe;
}

#versions .app-version-field-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#versions .app-version-field-heading > span {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--version-blue);
  background: var(--version-blue-soft);
  font-size: 0.62rem;
  font-weight: 850;
}

#versions .app-version-field-heading p {
  display: grid;
  margin: 0;
}

#versions .app-version-field-heading strong {
  color: var(--version-ink);
  font-size: 0.78rem;
}

#versions .app-version-field-heading small {
  color: var(--version-muted);
  font-size: 0.65rem;
}

#versions .app-version-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(76px, 0.7fr);
  gap: 8px;
}

#versions .app-version-inline-fields label,
#versions .app-version-store-field,
#versions .app-version-message-fields label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

#versions .app-version-inline-fields label > span,
#versions .app-version-store-field > span,
#versions .app-version-message-fields label > span {
  color: #4c5b70;
  font-size: 0.69rem;
  font-weight: 750;
}

.admin-dashboard #versions .app-version-inline-fields input,
.admin-dashboard #versions .app-version-store-field input,
.admin-dashboard #versions .app-version-message-fields input,
.admin-dashboard #versions .app-version-message-fields textarea {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  color: var(--version-ink);
  background: #fff;
  font: inherit;
  font-size: 0.81rem;
  box-shadow: none;
}

.admin-dashboard #versions .app-version-inline-fields input:focus,
.admin-dashboard #versions .app-version-store-field input:focus,
.admin-dashboard #versions .app-version-message-fields input:focus,
.admin-dashboard #versions .app-version-message-fields textarea:focus {
  border-color: var(--version-blue);
  outline: 3px solid rgb(11 58 121 / 13%);
}

.admin-dashboard #versions input:invalid:not(:focus):not(:placeholder-shown),
.admin-dashboard #versions textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #cf4c4c;
}

#versions .app-version-store-field {
  padding: 0 17px 14px;
}

#versions .app-version-store-field > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
}

#versions .app-version-store-field > div > span {
  display: grid;
  place-items: center;
  border: 1px solid #d6e0eb;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: var(--version-blue);
  background: var(--version-blue-soft);
}

.admin-dashboard #versions .app-version-store-field input {
  border-radius: 0 10px 10px 0;
}

#versions .app-version-store-field > small,
#versions .app-version-message-fields label > small {
  color: #748194;
  font-size: 0.66rem;
  line-height: 1.35;
}

#versions .app-version-advanced {
  margin: 0 17px 14px;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  background: #fff;
}

#versions .app-version-advanced summary {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #45556b;
  cursor: pointer;
  list-style: none;
}

#versions .app-version-advanced summary::-webkit-details-marker {
  display: none;
}

#versions .app-version-advanced summary > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#versions .app-version-advanced summary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--version-blue);
}

#versions .app-version-advanced summary b {
  overflow: hidden;
  color: var(--version-ink);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#versions .app-version-advanced summary small {
  color: var(--version-blue);
  font-size: 0.66rem;
  font-weight: 750;
}

#versions .app-version-advanced summary > i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform 160ms ease;
}

#versions .app-version-advanced[open] summary > i {
  transform: rotate(225deg) translate(-2px, 2px);
}

#versions .app-version-message-fields {
  display: grid;
  gap: 10px;
  padding: 4px 12px 12px;
  border-top: 1px solid #edf1f6;
}

#versions .app-version-message-fields label:first-child {
  margin-top: 10px;
}

.admin-dashboard #versions .app-version-message-fields textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.4;
}

#versions .app-version-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 17px;
  border-top: 1px solid #edf1f6;
  color: #748194;
  background: #fafbfd;
  font-size: 0.65rem;
}

#versions .app-version-warning {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid #f0d5b3;
  border-radius: 14px;
  color: #7f450d;
  background: #fff9f0;
  box-shadow: none;
}

#versions .app-version-warning svg {
  width: 22px;
  height: 22px;
}

#versions .app-version-warning p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 0.75rem;
}

#versions .app-version-warning span {
  color: #7a6850;
}

#versions .app-version-savebar {
  position: sticky;
  z-index: 8;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #d6e0eb;
  border-radius: 16px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 35px rgb(13 42 76 / 15%);
  backdrop-filter: blur(12px);
}

#versions .app-version-savebar > p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--version-muted);
}

#versions .app-version-savebar > p > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--version-blue);
  background: var(--version-blue-soft);
}

#versions .app-version-savebar small {
  overflow: hidden;
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard #versions .app-version-savebar .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 11px;
  white-space: nowrap;
}

#versions .app-version-savebar .button svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 1180px) {
  #versions .app-version-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #versions .app-version-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #versions .app-version-tabs {
    width: 100%;
  }

  #versions .app-version-toolbar > p {
    max-width: none;
    margin: 0 10px 7px;
    text-align: left;
  }
}

@media (max-width: 760px) {
  #versions {
    padding-top: 16px;
  }

  #versions .app-version-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  #versions .app-version-health {
    min-width: 0;
  }

  #versions .app-version-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  #versions .app-version-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  #versions .app-version-release-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #versions .app-version-panel-heading > small {
    display: none;
  }

  #versions .app-version-warning {
    align-items: flex-start;
  }

  #versions .app-version-warning p {
    display: grid;
    gap: 3px;
  }

  #versions .app-version-savebar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    bottom: 8px;
  }

  .admin-dashboard #versions .app-version-savebar .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  #versions .app-version-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #versions .app-version-card-status {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  #versions .app-version-switch {
    grid-column: 2;
    grid-row: 1;
  }

  #versions .app-version-card > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #versions .app-version-tabs button,
  #versions .app-version-card,
  #versions .app-version-switch > span,
  #versions .app-version-switch > span i,
  #versions .app-version-advanced summary > i {
    transition: none;
  }
}

/* Notification operations center */
#notifications {
  --notify-blue: #0b3a79;
  --notify-blue-soft: #eef5ff;
  --notify-green: #14885a;
  --notify-green-soft: #e9f8f1;
  --notify-orange: #c45510;
  --notify-orange-soft: #fff2e7;
  --notify-ink: #10233e;
  --notify-muted: #657389;
  --notify-line: #dbe4ef;
  padding-top: 24px;
}

#notifications .notification-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#notifications .notification-intro h2,
#notifications .notification-intro p {
  margin: 0;
}

#notifications .notification-intro h2 {
  margin-top: 4px;
  color: var(--notify-ink);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  letter-spacing: -0.035em;
}

#notifications .notification-intro > div:first-child > p:last-child {
  max-width: 700px;
  margin-top: 7px;
  color: var(--notify-muted);
  line-height: 1.5;
}

#notifications .notification-delivery-health {
  min-width: 340px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 7px;
  border: 1px solid #cfe8dc;
  border-radius: 15px;
  background: var(--notify-green-soft);
}

#notifications .notification-delivery-health > span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 1px 7px;
  padding: 7px 10px;
}

#notifications .notification-delivery-health > span + span {
  border-left: 1px solid #cfe8dc;
}

#notifications .notification-delivery-health i {
  width: 8px;
  height: 8px;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 50%;
  background: var(--notify-green);
  box-shadow: 0 0 0 4px rgb(20 136 90 / 12%);
}

#notifications .notification-delivery-health b {
  color: #0c6946;
  font-size: 0.74rem;
}

#notifications .notification-delivery-health small {
  color: #527867;
  font-size: 0.65rem;
}

#notifications .notification-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

#notifications .notification-summary article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--notify-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(13 42 76 / 5%);
}

#notifications .notification-summary article > span {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--notify-blue);
  background: var(--notify-blue-soft);
}

#notifications .notification-summary article:nth-child(2) > span {
  color: var(--notify-green);
  background: var(--notify-green-soft);
}

#notifications .notification-summary article:nth-child(3) > span {
  color: var(--notify-orange);
  background: var(--notify-orange-soft);
}

#notifications .notification-summary svg,
#notifications .notification-composer svg,
#notifications .notification-history-panel svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#notifications .notification-summary p {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 1px 9px;
  margin: 0;
}

#notifications .notification-summary p small {
  grid-column: 1 / -1;
  color: var(--notify-muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

#notifications .notification-summary p strong {
  overflow: hidden;
  color: var(--notify-ink);
  font-size: 1.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .notification-summary p b {
  overflow: hidden;
  color: #7a8798;
  font-size: 0.68rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .admin-notification-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-dashboard #notifications .admin-notification-form {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--notify-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(13 42 76 / 6%);
}

#notifications .notification-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid #e9eef5;
  background: #fbfcfe;
}

#notifications .notification-composer-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#notifications .notification-composer-head > div > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--notify-blue);
}

#notifications .notification-composer-head p {
  display: grid;
  margin: 0;
}

#notifications .notification-composer-head strong {
  color: var(--notify-ink);
  font-size: 0.95rem;
}

#notifications .notification-composer-head small {
  color: var(--notify-muted);
  font-size: 0.68rem;
}

#notifications .notification-draft-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #68778b;
  background: #edf1f5;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

#notifications .notification-draft-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

#notifications .notification-draft-status.is-ready {
  color: var(--notify-green);
  background: var(--notify-green-soft);
}

#notifications .notification-composer-body {
  min-width: 0;
  display: grid;
}

#notifications .notification-form-fields {
  min-width: 0;
  padding: 18px;
}

#notifications .notification-fieldset {
  min-width: 0;
  display: grid;
  gap: 11px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
}

#notifications .notification-fieldset.is-compact {
  padding-bottom: 16px;
}

#notifications .notification-fieldset legend {
  margin-bottom: 11px;
  padding: 0;
  color: var(--notify-ink);
  font-size: 0.78rem;
  font-weight: 850;
}

#notifications .notification-audience-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#notifications .notification-audience-options label {
  min-width: 0;
  min-height: 62px;
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--notify-line);
  border-radius: 13px;
  color: #5c6b7e;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.admin-dashboard #notifications .notification-audience-options input,
.admin-dashboard #notifications .notification-target-options input,
.admin-dashboard #notifications .notification-confirm input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#notifications .notification-audience-options label > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--notify-blue);
  background: var(--notify-blue-soft);
}

#notifications .notification-audience-options label p {
  min-width: 0;
  display: grid;
  margin: 0;
}

#notifications .notification-audience-options label strong {
  color: var(--notify-ink);
  font-size: 0.8rem;
}

#notifications .notification-audience-options label small {
  overflow: hidden;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .notification-audience-options label > i {
  width: 16px;
  height: 16px;
  border: 1px solid #b6c2d0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
}

#notifications .notification-audience-options label:has(input:checked) {
  border-color: #a9c5e8;
  background: var(--notify-blue-soft);
  box-shadow: 0 5px 14px rgb(11 58 121 / 7%);
}

#notifications .notification-audience-options label:has(input:checked) > span {
  color: #fff;
  background: var(--notify-blue);
}

#notifications .notification-audience-options label:has(input:checked) > i {
  border-color: var(--notify-blue);
  background: var(--notify-blue);
}

#notifications .notification-audience-options label:has(input:focus-visible),
#notifications .notification-target-options label:has(input:focus-visible),
#notifications .notification-confirm:has(input:focus-visible) {
  outline: 3px solid rgb(11 58 121 / 17%);
  outline-offset: 2px;
}

#notifications .notification-target-options {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border-radius: 12px;
  background: #eef2f6;
}

#notifications .notification-target-options label {
  min-height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #627085;
  font-size: 0.71rem;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

#notifications .notification-target-options label:has(input:checked) {
  border-color: #d9e2ed;
  color: var(--notify-ink);
  background: #fff;
  box-shadow: 0 3px 9px rgb(13 42 76 / 8%);
}

#notifications .notification-recipient-field,
#notifications .notification-text-field,
#notifications .notification-action-fields label {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 6px;
}

#notifications .notification-recipient-field[hidden] {
  display: none;
}

#notifications .notification-recipient-field > span,
#notifications .notification-text-field > span,
#notifications .notification-action-fields label > span {
  color: #46566c;
  font-size: 0.7rem;
  font-weight: 780;
}

#notifications .notification-recipient-field > small,
#notifications .notification-text-field > small {
  color: #778498;
  font-size: 0.65rem;
}

#notifications .notification-text-field > small {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgb(255 255 255 / 90%);
  pointer-events: none;
}

.admin-dashboard #notifications .notification-recipient-field select,
.admin-dashboard #notifications .notification-text-field input,
.admin-dashboard #notifications .notification-text-field textarea,
.admin-dashboard #notifications .notification-action-fields select,
.admin-dashboard #notifications .notification-action-fields input,
.admin-dashboard #notifications .notification-history-filters input,
.admin-dashboard #notifications .notification-history-filters select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  color: var(--notify-ink);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  box-shadow: none;
}

.admin-dashboard #notifications .notification-text-field textarea {
  min-height: 104px;
  padding-bottom: 29px;
  resize: vertical;
  line-height: 1.45;
}

.admin-dashboard #notifications .notification-recipient-field select:focus,
.admin-dashboard #notifications .notification-text-field input:focus,
.admin-dashboard #notifications .notification-text-field textarea:focus,
.admin-dashboard #notifications .notification-action-fields select:focus,
.admin-dashboard #notifications .notification-action-fields input:focus,
.admin-dashboard #notifications .notification-history-filters input:focus,
.admin-dashboard #notifications .notification-history-filters select:focus {
  border-color: var(--notify-blue);
  outline: 3px solid rgb(11 58 121 / 13%);
}

#notifications .notification-recipient-estimate {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d7e9df;
  border-radius: 10px;
  color: #176847;
  background: #f0faf5;
}

#notifications .notification-recipient-estimate > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--notify-green-soft);
}

#notifications .notification-recipient-estimate svg {
  width: 16px;
  height: 16px;
}

#notifications .notification-recipient-estimate b {
  font-size: 0.72rem;
}

#notifications .notification-recipient-estimate small {
  overflow: hidden;
  color: #628071;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .notification-action-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#notifications .notification-action-fields label > span small {
  color: #7b8798;
  font-size: 0.62rem;
  font-weight: 600;
}

#notifications .notification-confirm {
  min-height: 58px;
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  padding: 9px 11px;
  border: 1px solid #d8e1eb;
  border-radius: 12px;
  color: #647286;
  background: #f8fafc;
  cursor: pointer;
}

#notifications .notification-confirm > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #afbdcb;
  border-radius: 8px;
  color: transparent;
  background: #fff;
}

#notifications .notification-confirm > span svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

#notifications .notification-confirm p {
  display: grid;
  margin: 0;
}

#notifications .notification-confirm strong {
  color: var(--notify-ink);
  font-size: 0.74rem;
}

#notifications .notification-confirm small {
  font-size: 0.64rem;
}

#notifications .notification-confirm:has(input:checked) {
  border-color: #b9decb;
  background: var(--notify-green-soft);
}

#notifications .notification-confirm:has(input:checked) > span {
  border-color: var(--notify-green);
  color: #fff;
  background: var(--notify-green);
}

#notifications .admin-form-status {
  min-height: 0;
  margin: 0;
  font-size: 0.72rem;
}

#notifications .admin-form-status:not(:empty) {
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 9px;
}

#notifications .admin-form-status.is-success {
  color: #0d6946;
  background: var(--notify-green-soft);
}

#notifications .admin-form-status.is-error {
  color: #a33131;
  background: #fff0f0;
}

#notifications .notification-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#notifications .notification-submit-row > p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #728095;
}

#notifications .notification-submit-row > p span {
  display: grid;
  place-items: center;
}

#notifications .notification-submit-row > p svg {
  width: 17px;
  height: 17px;
}

#notifications .notification-submit-row > p small {
  font-size: 0.65rem;
}

.admin-dashboard #notifications .notification-submit-row .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 10px;
  white-space: nowrap;
}

#notifications .notification-submit-row .button svg {
  width: 17px;
  height: 17px;
}

#notifications .notification-preview {
  min-width: 0;
  padding: 18px;
  border-top: 1px solid #e9eef5;
  background: linear-gradient(160deg, #eef4fb, #f9fbfd);
}

#notifications .notification-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

#notifications .notification-preview-head p {
  display: grid;
  margin: 0;
}

#notifications .notification-preview-head strong {
  color: var(--notify-ink);
  font-size: 0.77rem;
}

#notifications .notification-preview-head small,
#notifications .notification-preview-head > span {
  color: #718096;
  font-size: 0.63rem;
}

#notifications .notification-preview-head > span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 75%);
  font-weight: 750;
}

#notifications .notification-phone {
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 10px 10px 14px;
  border: 5px solid #12243d;
  border-radius: 28px;
  background: linear-gradient(160deg, #dbe9fb, #f4f8fd);
  box-shadow: 0 18px 30px rgb(16 35 62 / 15%);
}

#notifications .notification-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 8px;
  color: #1c2c42;
  font-size: 0.54rem;
  font-weight: 850;
}

#notifications .notification-phone-status > span:last-child {
  display: flex;
  align-items: end;
  gap: 2px;
}

#notifications .notification-phone-status i {
  width: 3px;
  display: block;
  border-radius: 2px;
  background: currentColor;
}

#notifications .notification-phone-status i:nth-child(1) { height: 4px; }
#notifications .notification-phone-status i:nth-child(2) { height: 6px; }
#notifications .notification-phone-status i:nth-child(3) { height: 8px; }

#notifications .notification-phone article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 14px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 7px 18px rgb(16 35 62 / 11%);
}

#notifications .notification-phone article img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
}

#notifications .notification-phone article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#notifications .notification-phone article p {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin: 0;
}

#notifications .notification-phone article p strong,
#notifications .notification-phone article time {
  font-size: 0.56rem;
}

#notifications .notification-phone article time {
  color: #7a8798;
}

#notifications .notification-phone article b {
  overflow: hidden;
  color: #16283f;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .notification-phone article > div > span {
  display: -webkit-box;
  overflow: hidden;
  color: #536176;
  font-size: 0.59rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#notifications .notification-phone-app,
#notifications .notification-preview-destination {
  display: flex;
  align-items: center;
  gap: 8px;
}

#notifications .notification-phone-app {
  margin-top: 84px;
  padding: 9px;
  border-radius: 12px;
  color: #49617e;
  background: rgb(255 255 255 / 62%);
}

#notifications .notification-phone-app > span,
#notifications .notification-preview-destination > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--notify-blue);
  background: var(--notify-blue-soft);
}

#notifications .notification-phone-app svg,
#notifications .notification-preview-destination svg {
  width: 16px;
  height: 16px;
}

#notifications .notification-phone-app p,
#notifications .notification-preview-destination p {
  min-width: 0;
  display: grid;
  margin: 0;
}

#notifications .notification-phone-app small,
#notifications .notification-preview-destination small {
  color: #788598;
  font-size: 0.58rem;
}

#notifications .notification-phone-app strong,
#notifications .notification-preview-destination strong {
  overflow: hidden;
  color: var(--notify-ink);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .notification-preview-destination {
  width: min(100%, 300px);
  margin: 13px auto 0;
  padding: 9px;
  border: 1px solid #d7e2ee;
  border-radius: 11px;
  background: rgb(255 255 255 / 75%);
}

.admin-dashboard #notifications .notification-history-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--notify-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(13 42 76 / 6%);
}

#notifications .notification-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px 13px;
  border-bottom: 1px solid #e9eef5;
  background: #fbfcfe;
}

#notifications .notification-history-head h3,
#notifications .notification-history-head p {
  margin: 0;
}

#notifications .notification-history-head h3 {
  color: var(--notify-ink);
  font-size: 1.05rem;
}

#notifications .notification-history-head > div:first-child > small {
  color: var(--notify-muted);
  font-size: 0.65rem;
}

#notifications .notification-history-filters {
  display: flex;
  align-items: center;
  gap: 7px;
}

#notifications .notification-history-filters label:first-child {
  position: relative;
}

#notifications .notification-history-filters label:first-child svg {
  width: 15px;
  height: 15px;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 10px;
  color: #758297;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-dashboard #notifications .notification-history-filters input {
  width: 132px;
  min-height: 38px;
  padding: 8px 9px 8px 31px;
  font-size: 0.69rem;
}

.admin-dashboard #notifications .notification-history-filters select {
  width: 120px;
  min-height: 38px;
  padding: 8px 9px;
  font-size: 0.68rem;
}

#notifications .admin-notification-history {
  max-height: 760px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

#notifications .admin-notification-history li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 14px 17px;
  border-bottom: 1px solid #edf1f6;
}

#notifications .admin-notification-history li[hidden] {
  display: none;
}

#notifications .notification-history-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--notify-orange);
  background: var(--notify-orange-soft);
}

#notifications .notification-history-icon.is-manual {
  color: var(--notify-blue);
  background: var(--notify-blue-soft);
}

#notifications .notification-history-icon svg {
  width: 16px;
  height: 16px;
}

#notifications .notification-history-content {
  min-width: 0;
}

#notifications .notification-history-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

#notifications .notification-history-title > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--notify-ink);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .notification-history-badge {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #6d7787;
  background: #eef2f6;
  font-size: 0.55rem;
  font-weight: 820;
}

#notifications .notification-history-badge.is-client {
  color: var(--notify-blue);
  background: var(--notify-blue-soft);
}

#notifications .notification-history-badge.is-driver {
  color: var(--notify-orange);
  background: var(--notify-orange-soft);
}

#notifications .notification-history-badge.is-manual {
  color: var(--notify-green);
  background: var(--notify-green-soft);
}

#notifications .notification-history-content > p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: #506075;
  font-size: 0.7rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#notifications .notification-history-content > small {
  margin-top: 5px;
  overflow: hidden;
  color: #7b8797;
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#notifications .notification-history-content > small b {
  color: #59687d;
}

#notifications .admin-notification-history time {
  margin: 2px 0 0;
  color: #7b8797;
  font-size: 0.59rem;
  white-space: nowrap;
}

#notifications .admin-notification-history .notification-history-empty {
  display: block;
  color: var(--notify-muted);
  text-align: center;
}

#notifications .admin-notification-history .notification-history-empty[hidden] {
  display: none;
}

#notifications .notification-delivery-health b,
#notifications .notification-delivery-health small,
#notifications .notification-summary p small,
#notifications .notification-summary p b,
#notifications .notification-composer small,
#notifications .notification-history-panel small,
#notifications .notification-history-panel time,
#notifications .notification-history-badge,
#notifications .notification-history-content > p,
#notifications .notification-phone article p strong,
#notifications .notification-phone article b,
#notifications .notification-phone article > div > span {
  font-size: 0.75rem;
}

@media (min-width: 1380px) {
  #notifications .admin-notification-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.75fr);
    align-items: start;
  }

  #notifications .notification-history-panel {
    position: sticky;
    top: 100px;
  }
}

@media (min-width: 1680px) {
  #notifications .notification-composer-body {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
  }

  #notifications .notification-preview {
    border-top: 0;
    border-left: 1px solid #e9eef5;
  }
}

@media (max-width: 900px) {
  #notifications .notification-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  #notifications .notification-delivery-health {
    min-width: 0;
  }

  #notifications .notification-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  #notifications .notification-history-head {
    align-items: stretch;
    flex-direction: column;
  }

  #notifications .notification-history-filters {
    width: 100%;
  }

  #notifications .notification-history-filters label,
  .admin-dashboard #notifications .notification-history-filters input,
  .admin-dashboard #notifications .notification-history-filters select {
    width: 100%;
  }

  #notifications .admin-notification-history {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 560px) {
  #notifications {
    padding-top: 16px;
  }

  #notifications .notification-delivery-health,
  #notifications .notification-audience-options,
  #notifications .notification-target-options,
  #notifications .notification-action-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  #notifications .notification-delivery-health > span + span {
    border-top: 1px solid #cfe8dc;
    border-left: 0;
  }

  #notifications .notification-form-fields,
  #notifications .notification-preview {
    padding: 14px;
  }

  #notifications .notification-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard #notifications .notification-submit-row .button {
    width: 100%;
  }

  #notifications .admin-notification-history li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  #notifications .admin-notification-history time {
    grid-column: 2;
  }

  #notifications .notification-history-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  #notifications .notification-audience-options label {
    transition: none;
  }
}

/* User directory and dedicated account page */
#utilisateurs {
  --users-blue: #0b3a79;
  --users-blue-soft: #eef5ff;
  --users-green: #14885a;
  --users-green-soft: #e9f8f1;
  --users-orange: #c45510;
  --users-orange-soft: #fff2e7;
  --users-red: #b43a3a;
  --users-red-soft: #fff0f0;
  --users-ink: #10233e;
  --users-muted: #657389;
  --users-line: #dbe4ef;
  padding-top: 24px;
}

#utilisateurs [hidden] {
  display: none;
}

#utilisateurs .users-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#utilisateurs .users-intro h2,
#utilisateurs .users-intro p {
  margin: 0;
}

#utilisateurs .users-intro h2 {
  margin-top: 4px;
  color: var(--users-ink);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  letter-spacing: -0.035em;
}

#utilisateurs .users-intro > div > p:last-child {
  max-width: 700px;
  margin-top: 7px;
  color: var(--users-muted);
  line-height: 1.5;
}

.admin-dashboard #utilisateurs .users-create-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  white-space: nowrap;
}

#utilisateurs .users-create-button svg,
#utilisateurs .users-summary svg,
#utilisateurs .users-list-card svg,
#utilisateurs .user-detail-page svg,
.user-account-dialog svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#utilisateurs .users-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 18px;
}

#utilisateurs .users-summary article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid var(--users-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(13 42 76 / 5%);
}

#utilisateurs .users-summary article > span {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

#utilisateurs .users-summary article > span.is-blue {
  color: var(--users-blue);
  background: var(--users-blue-soft);
}

#utilisateurs .users-summary article > span.is-orange {
  color: var(--users-orange);
  background: var(--users-orange-soft);
}

#utilisateurs .users-summary article > span.is-green {
  color: var(--users-green);
  background: var(--users-green-soft);
}

#utilisateurs .users-summary article > span.is-red {
  color: var(--users-red);
  background: var(--users-red-soft);
}

#utilisateurs .users-summary article p {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 1px 8px;
  margin: 0;
}

#utilisateurs .users-summary article small {
  grid-column: 1 / -1;
  color: var(--users-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

#utilisateurs .users-summary article strong {
  color: var(--users-ink);
  font-size: 1.35rem;
}

#utilisateurs .users-summary article b {
  overflow: hidden;
  color: #788597;
  font-size: 0.75rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#utilisateurs .users-list-card {
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--users-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(13 42 76 / 6%);
}

#utilisateurs .users-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-bottom: 1px solid #e9eef5;
  background: #fbfcfe;
}

#utilisateurs .users-list-toolbar h3,
#utilisateurs .users-list-toolbar p {
  margin: 0;
}

#utilisateurs .users-list-toolbar h3 {
  color: var(--users-ink);
  font-size: 1.05rem;
}

#utilisateurs .users-list-toolbar > div:first-child > small {
  color: var(--users-muted);
  font-size: 0.75rem;
}

#utilisateurs .users-list-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

#utilisateurs .users-search {
  position: relative;
}

#utilisateurs .users-search svg {
  width: 16px;
  height: 16px;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  color: #778498;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-dashboard #utilisateurs .users-list-filters input,
.admin-dashboard #utilisateurs .users-list-filters select {
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  color: var(--users-ink);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  box-shadow: none;
}

.admin-dashboard #utilisateurs .users-list-filters input {
  width: 235px;
  padding-left: 34px;
}

.admin-dashboard #utilisateurs .users-list-filters select {
  width: 155px;
}

.admin-dashboard #utilisateurs .users-list-filters input:focus,
.admin-dashboard #utilisateurs .users-list-filters select:focus {
  border-color: var(--users-blue);
  outline: 3px solid rgb(11 58 121 / 13%);
}

#utilisateurs .users-table-scroll {
  border: 0;
  border-radius: 0;
}

#utilisateurs .users-table {
  min-width: 970px;
}

#utilisateurs .users-table thead th {
  padding-top: 11px;
  padding-bottom: 11px;
  color: #4c617d;
  background: var(--users-blue-soft);
  font-size: 0.7rem;
  letter-spacing: 0.035em;
}

#utilisateurs .users-table tbody td {
  padding-top: 12px;
  padding-bottom: 12px;
}

#utilisateurs .users-table-row {
  cursor: pointer;
  transition: background-color 140ms ease;
}

#utilisateurs .users-table-row:hover {
  background: #f5f9ff;
}

#utilisateurs .users-table-row:focus-within {
  background: #f5f9ff;
  box-shadow: inset 3px 0 0 var(--users-blue);
}

#utilisateurs .users-table-identity {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

#utilisateurs .users-table-identity:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(11 58 121 / 18%);
  outline-offset: 3px;
}

#utilisateurs .users-table-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--users-blue), #174f95);
  font-size: 0.74rem;
  font-weight: 850;
}

#utilisateurs .users-table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#utilisateurs .users-table-identity > span:last-child {
  min-width: 0;
}

#utilisateurs .users-table-identity strong,
#utilisateurs .users-table-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#utilisateurs .users-table-roles {
  min-width: 145px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#utilisateurs .users-table-open {
  width: 42px;
  color: #718096;
  text-align: center;
}

#utilisateurs .users-table-open svg {
  width: 17px;
  height: 17px;
  transition: transform 140ms ease, color 140ms ease;
}

#utilisateurs .users-table-row:hover .users-table-open svg {
  color: var(--users-blue);
  transform: translateX(3px);
}

#utilisateurs .user-detail-page {
  min-width: 0;
}

#utilisateurs .user-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #758297;
  font-size: 0.76rem;
}

#utilisateurs .user-detail-breadcrumb a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--users-blue);
  font-weight: 800;
  text-decoration: none;
}

#utilisateurs .user-detail-breadcrumb a:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(11 58 121 / 17%);
  outline-offset: 2px;
}

#utilisateurs .user-detail-breadcrumb svg {
  width: 17px;
  height: 17px;
}

#utilisateurs .user-detail-loading {
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(3, 10px);
  place-content: center;
  gap: 7px;
  color: var(--users-muted);
}

#utilisateurs .user-detail-loading > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--users-blue);
  animation: user-detail-pulse 900ms ease-in-out infinite alternate;
}

#utilisateurs .user-detail-loading > span:nth-child(2) { animation-delay: 160ms; }
#utilisateurs .user-detail-loading > span:nth-child(3) { animation-delay: 320ms; }

#utilisateurs .user-detail-loading p {
  grid-column: 1 / -1;
  margin: 7px 0 0;
  font-size: 0.78rem;
}

@keyframes user-detail-pulse {
  to { opacity: 0.35; transform: translateY(-5px); }
}

#utilisateurs .user-detail-error strong {
  color: var(--users-ink);
  font-size: 1rem;
}

#utilisateurs .user-detail-error p {
  color: var(--users-muted);
}

#utilisateurs .user-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid #cbdced;
  border-radius: 19px;
  background: linear-gradient(135deg, #f8fbff, #edf5ff);
  box-shadow: 0 10px 30px rgb(13 42 76 / 6%);
}

#utilisateurs .user-detail-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

#utilisateurs .user-detail-avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(145deg, var(--users-blue), #1c5aa5);
  box-shadow: 0 8px 22px rgb(11 58 121 / 17%);
  font-size: 1.35rem;
  font-weight: 850;
}

#utilisateurs .user-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#utilisateurs .user-detail-identity > div:last-child {
  min-width: 0;
}

#utilisateurs .user-detail-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

#utilisateurs .user-detail-title-line h3 {
  margin: 0;
  color: var(--users-ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
}

#utilisateurs .user-detail-identity > div > p {
  margin: 5px 0 8px;
  overflow-wrap: anywhere;
  color: var(--users-muted);
  font-size: 0.78rem;
}

#utilisateurs .user-detail-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#utilisateurs .user-detail-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#utilisateurs .user-detail-quick-actions a,
#utilisateurs .user-detail-quick-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #c7d6e7;
  border-radius: 10px;
  color: var(--users-blue);
  background: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

#utilisateurs .user-detail-quick-actions a:hover,
#utilisateurs .user-detail-quick-actions button:hover {
  border-color: var(--users-blue);
  background: var(--users-blue-soft);
}

#utilisateurs .user-detail-quick-actions a:focus-visible,
#utilisateurs .user-detail-quick-actions button:focus-visible,
#utilisateurs .user-detail-actions button:focus-visible {
  outline: 3px solid rgb(11 58 121 / 17%);
  outline-offset: 2px;
}

#utilisateurs .user-detail-quick-actions svg {
  width: 17px;
  height: 17px;
}

#utilisateurs .user-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

#utilisateurs .user-detail-metrics article {
  min-width: 0;
  display: grid;
  padding: 13px 15px;
  border: 1px solid var(--users-line);
  border-radius: 14px;
  background: #fff;
}

#utilisateurs .user-detail-metrics small {
  color: var(--users-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

#utilisateurs .user-detail-metrics strong {
  margin-top: 4px;
  overflow: hidden;
  color: var(--users-ink);
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#utilisateurs .user-detail-metrics span {
  margin-top: 2px;
  overflow: hidden;
  color: #7a8798;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#utilisateurs .user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

#utilisateurs .user-detail-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--users-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(13 42 76 / 4%);
}

#utilisateurs .user-detail-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf1f6;
}

#utilisateurs .user-detail-card > header h4,
#utilisateurs .user-detail-card > header p {
  margin: 0;
}

#utilisateurs .user-detail-card > header h4 {
  color: var(--users-ink);
  font-size: 0.94rem;
}

#utilisateurs .user-detail-card > header > span:not(.admin-badge) {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 10px;
  color: var(--users-blue);
  background: var(--users-blue-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

#utilisateurs .user-detail-card > header svg {
  width: 17px;
  height: 17px;
}

#utilisateurs .user-detail-wide {
  grid-column: 1 / -1;
}

#utilisateurs .user-detail-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

#utilisateurs .user-detail-data > div {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f7;
}

#utilisateurs .user-detail-data > div:nth-child(odd) {
  padding-right: 12px;
}

#utilisateurs .user-detail-data dt {
  color: #7a8798;
  font-size: 0.72rem;
}

#utilisateurs .user-detail-data dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--users-ink);
  font-size: 0.78rem;
  font-weight: 750;
}

#utilisateurs .user-detail-data a {
  color: var(--users-blue);
  text-decoration: none;
}

#utilisateurs .user-access-roles {
  display: grid;
  gap: 8px;
}

#utilisateurs .user-access-roles > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #f8fafc;
}

#utilisateurs .user-access-roles p {
  display: grid;
  margin: 0;
}

#utilisateurs .user-access-roles strong {
  color: var(--users-ink);
  font-size: 0.76rem;
}

#utilisateurs .user-access-roles small {
  color: var(--users-muted);
  font-size: 0.72rem;
}

#utilisateurs .user-ban-reason {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #efc8c8;
  border-radius: 11px;
  color: #8f3232;
  background: var(--users-red-soft);
}

#utilisateurs .user-ban-reason strong,
#utilisateurs .user-ban-reason p,
#utilisateurs .user-ban-reason small {
  margin: 0;
  font-size: 0.75rem;
}

#utilisateurs .user-ban-reason p {
  margin: 3px 0;
}

#utilisateurs .user-driver-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px solid #edf1f6;
  font-size: 0.75rem;
}

#utilisateurs .user-driver-card > footer a {
  color: var(--users-blue);
  font-weight: 800;
  text-decoration: none;
}

#utilisateurs .user-driver-card > footer span {
  color: var(--users-muted);
}

#utilisateurs .user-detail-deliveries {
  display: grid;
}

#utilisateurs .user-detail-deliveries > a {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #edf1f6;
  color: inherit;
  text-decoration: none;
}

#utilisateurs .user-detail-deliveries > a:last-child {
  border-bottom: 0;
}

#utilisateurs .user-detail-deliveries > a:hover {
  background: #f8fbff;
}

#utilisateurs .user-detail-deliveries > a:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(11 58 121 / 15%);
}

#utilisateurs .user-detail-deliveries > a > span:first-child {
  min-width: 0;
  display: grid;
}

#utilisateurs .user-detail-deliveries b {
  color: var(--users-ink);
  font-size: 0.77rem;
}

#utilisateurs .user-detail-deliveries small {
  overflow: hidden;
  color: var(--users-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#utilisateurs .user-detail-deliveries time {
  color: #7a8798;
  font-size: 0.72rem;
  white-space: nowrap;
}

#utilisateurs .user-detail-deliveries svg {
  width: 16px;
  height: 16px;
  color: #788597;
}

#utilisateurs .user-detail-mini-list,
#utilisateurs .user-detail-audit {
  display: grid;
  gap: 7px;
}

#utilisateurs .user-detail-mini-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #f8fafc;
}

#utilisateurs .user-detail-mini-list > div > span:first-child {
  min-width: 0;
  display: grid;
}

#utilisateurs .user-detail-mini-list strong {
  overflow: hidden;
  color: var(--users-ink);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#utilisateurs .user-detail-mini-list small {
  color: var(--users-muted);
  font-size: 0.72rem;
}

#utilisateurs .user-detail-audit > div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
}

#utilisateurs .user-detail-audit i {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--users-blue);
  box-shadow: 0 0 0 2px #cbdcf0;
}

#utilisateurs .user-detail-audit p {
  display: grid;
  margin: 0;
}

#utilisateurs .user-detail-audit strong {
  color: var(--users-ink);
  font-size: 0.76rem;
}

#utilisateurs .user-detail-audit small {
  color: var(--users-muted);
  font-size: 0.72rem;
}

#utilisateurs .user-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--users-line);
  border-radius: 16px;
  background: #fbfcfe;
}

#utilisateurs .user-detail-actions h4,
#utilisateurs .user-detail-actions p,
#utilisateurs .user-detail-actions span {
  margin: 0;
}

#utilisateurs .user-detail-actions h4 {
  color: var(--users-ink);
  font-size: 0.94rem;
}

#utilisateurs .user-detail-actions > div:first-child > span {
  color: var(--users-muted);
  font-size: 0.72rem;
}

#utilisateurs .user-detail-actions > div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

#utilisateurs .user-detail-actions button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  color: var(--users-ink);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 780;
  cursor: pointer;
}

#utilisateurs .user-detail-actions button:hover {
  border-color: var(--users-blue);
  background: var(--users-blue-soft);
}

#utilisateurs .user-detail-actions button.is-primary {
  border-color: var(--users-blue);
  color: #fff;
  background: var(--users-blue);
}

#utilisateurs .user-detail-actions button.is-warning {
  border-color: #e7bc87;
  color: #8a490e;
  background: var(--users-orange-soft);
}

#utilisateurs .user-detail-actions button.is-danger {
  border-color: #e9b7b7;
  color: #9d3232;
  background: var(--users-red-soft);
}

.admin-dialog:has(.user-account-dialog) {
  width: min(94vw, 760px);
}

.user-account-dialog {
  display: grid;
  gap: 18px;
}

.user-account-dialog .admin-dialog-grid label,
.user-account-dialog .user-password-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.user-account-dialog label > span {
  color: #46566c;
  font-size: 0.75rem;
  font-weight: 780;
}

.user-account-dialog label > span small,
.user-account-dialog .user-password-field > small {
  color: #778498;
  font-size: 0.72rem;
  font-weight: 600;
}

.user-account-dialog input,
.user-account-dialog select {
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  color: #10233e;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.user-account-dialog input:focus,
.user-account-dialog select:focus {
  border-color: #0b3a79;
  outline: 3px solid rgb(11 58 121 / 13%);
}

.user-account-dialog .user-role-fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
}

.user-account-dialog .user-role-fieldset legend {
  padding: 0 6px;
  color: #10233e;
  font-size: 0.8rem;
  font-weight: 850;
}

.user-account-dialog .user-role-fieldset > p {
  margin: 0 0 11px;
  color: #657389;
  font-size: 0.72rem;
  line-height: 1.45;
}

.user-account-dialog .user-role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.user-account-dialog .user-role-option {
  min-width: 0;
  min-height: 76px;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.admin-dashboard .user-account-dialog .user-role-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.user-account-dialog .user-role-option > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0b3a79;
  background: #eef5ff;
}

.user-account-dialog .user-role-option > span svg {
  width: 17px;
  height: 17px;
}

.user-account-dialog .user-role-option p {
  min-width: 0;
  display: grid;
  margin: 0;
}

.user-account-dialog .user-role-option strong {
  color: #10233e;
  font-size: 0.75rem;
}

.user-account-dialog .user-role-option small {
  color: #657389;
  font-size: 0.68rem;
  line-height: 1.3;
}

.user-account-dialog .user-role-option > i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #b5c1cf;
  border-radius: 6px;
  color: transparent;
  background: #fff;
}

.user-account-dialog .user-role-option > i svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.user-account-dialog .user-role-option:has(input:checked) {
  border-color: #a9c5e8;
  background: #eef5ff;
}

.user-account-dialog .user-role-option:has(input:checked) > span,
.user-account-dialog .user-role-option:has(input:checked) > i {
  border-color: #0b3a79;
  color: #fff;
  background: #0b3a79;
}

.user-account-dialog .user-role-option:has(input:focus-visible) {
  outline: 3px solid rgb(11 58 121 / 18%);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  #utilisateurs .users-summary,
  #utilisateurs .user-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #utilisateurs {
    padding-top: 16px;
  }

  #utilisateurs .users-intro,
  #utilisateurs .user-detail-hero,
  #utilisateurs .user-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard #utilisateurs .users-create-button {
    width: 100%;
  }

  #utilisateurs .users-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #utilisateurs .users-list-filters {
    width: 100%;
  }

  #utilisateurs .users-list-filters label,
  .admin-dashboard #utilisateurs .users-list-filters input,
  .admin-dashboard #utilisateurs .users-list-filters select {
    width: 100%;
  }

  #utilisateurs .user-detail-quick-actions,
  #utilisateurs .user-detail-actions > div:last-child {
    justify-content: flex-start;
  }

  #utilisateurs .user-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #utilisateurs .user-detail-wide {
    grid-column: auto;
  }

  #utilisateurs .user-detail-deliveries > a {
    grid-template-columns: minmax(0, 1fr) auto 16px;
  }

  #utilisateurs .user-detail-deliveries time {
    grid-column: 1;
  }

  .user-account-dialog .user-role-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  #utilisateurs .users-summary,
  #utilisateurs .user-detail-metrics,
  #utilisateurs .user-detail-data,
  .user-account-dialog .admin-dialog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #utilisateurs .user-detail-identity {
    align-items: flex-start;
  }

  #utilisateurs .user-detail-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 17px;
  }

  #utilisateurs .user-detail-quick-actions {
    width: 100%;
  }

  #utilisateurs .user-detail-quick-actions a,
  #utilisateurs .user-detail-quick-actions button,
  #utilisateurs .user-detail-actions button {
    width: 100%;
  }

  #utilisateurs .user-detail-data > div:nth-child(odd) {
    padding-right: 0;
  }

  #utilisateurs .user-detail-deliveries > a {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 16px;
  }

  #utilisateurs .user-detail-deliveries .admin-badge,
  #utilisateurs .user-detail-deliveries time {
    grid-column: 1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #utilisateurs .users-table-row,
  #utilisateurs .users-table-open svg,
  #utilisateurs .user-detail-loading > span {
    transition: none;
    animation: none;
  }
}

/* Backoffice management workspaces: commandes, livreurs et documents. */
.management-page-intro,
.management-list-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.management-page-intro {
  margin-block-end: 24px;
}

.management-page-intro h2,
.management-list-toolbar h3 {
  margin: 0;
  color: #061f49;
}

.management-page-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.management-page-intro p:last-child {
  max-width: 760px;
  margin: 7px 0 0;
  color: #657389;
}

.admin-dashboard .management-create-button {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-inline: 18px;
  border-radius: 12px;
  background: #0a3572;
  box-shadow: 0 10px 22px rgb(10 53 114 / 18%);
}

.management-create-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.management-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-block-end: 24px;
}

.management-summary article {
  min-width: 0;
  display: grid;
  padding: 17px 18px;
  border: 1px solid #dbe4ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(16 35 62 / 5%);
}

.management-summary small,
.management-summary span,
.management-list-toolbar small {
  color: #6d7a8c;
}

.management-summary small {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.management-summary strong {
  margin: 4px 0 1px;
  color: #0a3572;
  font-size: 1.7rem;
  line-height: 1;
}

.management-summary span,
.management-list-toolbar small {
  font-size: 0.74rem;
}

.management-list-card {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(16 35 62 / 6%);
}

.management-list-toolbar {
  padding: 18px 20px;
  border-bottom: 1px solid #dbe4ef;
  background: #fbfcfe;
}

.management-list-toolbar h3 {
  font-size: 1.25rem;
}

.management-filter-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.management-filter-row label {
  min-width: 170px;
  display: grid;
  gap: 5px;
}

.management-filter-row label > span {
  color: #657389;
  font-size: 0.71rem;
  font-weight: 800;
}

.management-filter-row .admin-check {
  min-width: auto;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  background: #fff;
}

.management-filter-row .admin-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.management-table-identity {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.management-table-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #0a3572;
  font-size: 0.76rem;
  font-weight: 850;
}

.management-table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documents-list-card .admin-document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.documents-list-card .admin-empty {
  grid-column: 1 / -1;
}

.admin-document-card {
  align-content: start;
  border-color: #dbe4ef;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgb(16 35 62 / 4%);
}

.admin-document-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-document-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0a3572;
  background: #edf4fd;
}

.admin-document-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-document-thumbnails {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.admin-document-thumbnails.has-back-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-document-thumbnail {
  height: 160px;
  min-width: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  position: relative;
  border: 1px solid #d7e1ec;
  border-radius: 11px;
  background-color: #e9eef5;
  background-image:
    linear-gradient(45deg, rgb(10 53 114 / 3%) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(10 53 114 / 3%) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(10 53 114 / 3%) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(10 53 114 / 3%) 75%);
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  background-size: 14px 14px;
}

.admin-document-thumbnail-label {
  z-index: 2;
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 7px;
  color: #10233e;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 4px 12px rgb(16 35 62 / 10%);
  font-size: 0.64rem;
  font-weight: 820;
  backdrop-filter: blur(5px);
}

.admin-document-thumbnail img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.admin-document-thumbnail img[hidden],
.admin-document-thumbnail-loading[hidden],
.admin-document-thumbnail-error[hidden] {
  display: none;
}

.admin-document-thumbnail-loading {
  display: grid;
  place-items: center;
}

.admin-document-thumbnail-loading i {
  width: 27px;
  height: 27px;
  border: 3px solid #c8d6e6;
  border-top-color: #0a3572;
  border-radius: 50%;
  animation: document-preview-spin 700ms linear infinite;
}

.admin-document-thumbnail-error {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px;
  color: #66758a;
  font-size: 0.69rem;
  font-weight: 750;
  text-align: center;
}

.admin-document-thumbnail-error svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #9d611d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-document-meta,
.driver-detail-metrics,
.driver-detail-data {
  margin: 0;
}

.admin-document-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-document-meta div,
.driver-detail-metrics div,
.driver-detail-data div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-document-meta dt,
.driver-detail-metrics dt,
.driver-detail-data dt {
  color: #738095;
  font-size: 0.66rem;
  font-weight: 760;
}

.admin-document-meta dd,
.driver-detail-metrics dd,
.driver-detail-data dd {
  margin: 0;
  overflow: hidden;
  color: #10233e;
  font-size: 0.75rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-document-reason {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #8a3232 !important;
  background: #fff1f1;
  font-size: 0.74rem;
}

.management-dialog-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #46566c;
  background: #eef5ff;
  font-size: 0.75rem;
  line-height: 1.5;
}

.document-file-field small {
  color: #738095;
  font-size: 0.7rem;
}

.admin-dialog:has(.management-dialog-grid),
.admin-dialog:has(.driver-detail-dialog) {
  width: min(94vw, 780px);
}

.driver-detail-dialog {
  display: grid;
  gap: 15px;
}

.driver-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f4f7fb;
}

.driver-detail-hero .management-table-avatar {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.driver-detail-hero > div {
  min-width: 0;
  display: grid;
}

.driver-detail-hero small {
  overflow: hidden;
  color: #69778b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-detail-metrics,
.driver-detail-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.driver-detail-metrics div,
.driver-detail-data div {
  padding: 11px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
}

.driver-detail-metrics dd {
  color: #0a3572;
  font-size: 1rem;
}

.driver-detail-data {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.driver-detail-documents {
  display: grid;
  gap: 7px;
}

.driver-detail-documents h3,
.driver-detail-documents p {
  margin: 0;
}

.driver-detail-documents > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
}

.driver-detail-documents > div > span:first-child {
  display: grid;
}

.driver-detail-documents small {
  color: #738095;
}

@media (min-width: 760px) {
  .management-dialog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .management-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .management-filter-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .management-page-intro {
    align-items: stretch;
    flex-direction: column;
    margin-block-end: 20px;
  }

  .management-summary {
    margin-block-end: 20px;
  }

  .admin-dashboard .management-create-button {
    width: 100%;
    justify-content: center;
  }

  .management-filter-row,
  .management-filter-row label,
  .management-filter-row .admin-check {
    width: 100%;
  }

  .documents-list-card .admin-document-grid,
  .driver-detail-metrics,
  .driver-detail-data {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-document-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .management-summary,
  .admin-document-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-document-thumbnail {
    height: 140px;
  }

  .driver-detail-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .driver-detail-hero > .admin-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Dedicated management pages: lists navigate, detail pages own every action. */
.management-list-row {
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.management-list-row:hover {
  background: #f5f9ff;
}

.management-list-row:focus-within {
  background: #f5f9ff;
  box-shadow: inset 3px 0 0 #0a3572;
}

.management-row-primary,
.management-table-identity {
  color: inherit;
  text-decoration: none;
}

.management-row-primary {
  min-width: 110px;
  display: block;
}

.management-row-primary:focus-visible,
.management-table-identity:focus-visible,
.management-document-link:focus-visible {
  border-radius: 9px;
  outline: 3px solid rgb(10 53 114 / 18%);
  outline-offset: 3px;
}

.management-row-open {
  width: 46px;
  color: #738095;
  text-align: center;
}

.management-row-open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: color 140ms ease, transform 140ms ease;
}

.management-list-row:hover .management-row-open svg {
  color: #0a3572;
  transform: translateX(3px);
}

.management-document-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.management-document-link:hover {
  border-color: #abc3df;
  box-shadow: 0 12px 28px rgb(16 35 62 / 10%);
  transform: translateY(-2px);
}

.management-document-open {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #edf1f6;
  color: #0a3572;
  font-size: 0.74rem;
  font-weight: 820;
}

.management-document-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 140ms ease;
}

.management-document-link:hover .management-document-open svg {
  transform: translateX(3px);
}

.management-detail-page {
  min-width: 0;
}

.management-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #758297;
  font-size: 0.76rem;
}

.management-detail-breadcrumb a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a3572;
  font-weight: 800;
  text-decoration: none;
}

.management-detail-breadcrumb a:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(10 53 114 / 18%);
  outline-offset: 2px;
}

.management-detail-breadcrumb svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.management-detail-loading {
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(3, 10px);
  place-content: center;
  gap: 7px;
  color: #6d7a8c;
}

.management-detail-loading > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a3572;
  animation: management-detail-pulse 900ms ease-in-out infinite alternate;
}

.management-detail-loading > span:nth-child(2) { animation-delay: 160ms; }
.management-detail-loading > span:nth-child(3) { animation-delay: 320ms; }

.management-detail-loading p {
  grid-column: 1 / -1;
  margin: 7px 0 0;
  font-size: 0.78rem;
}

@keyframes management-detail-pulse {
  to { opacity: 0.35; transform: translateY(-5px); }
}

.management-detail-error strong {
  color: #10233e;
  font-size: 1rem;
}

.management-detail-error p {
  color: #657389;
}

.management-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid #cbdced;
  border-radius: 19px;
  background: linear-gradient(135deg, #f8fbff, #edf5ff);
  box-shadow: 0 10px 30px rgb(13 42 76 / 6%);
}

.management-detail-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.management-detail-symbol,
.management-detail-avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(145deg, #0a3572, #1c5aa5);
  box-shadow: 0 8px 22px rgb(11 58 121 / 17%);
  font-size: 1.3rem;
  font-weight: 850;
}

.management-detail-symbol svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.management-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.management-detail-identity > div:last-child {
  min-width: 0;
}

.management-detail-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.management-detail-title-line h3 {
  margin: 0;
  color: #10233e;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
}

.management-detail-identity p {
  max-width: 760px;
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
  color: #657389;
  font-size: 0.78rem;
}

.management-detail-identity small {
  color: #7a8798;
  font-size: 0.72rem;
}

.management-detail-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.management-detail-quick-actions a,
.management-detail-quick-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #c7d6e7;
  border-radius: 10px;
  color: #0a3572;
  background: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.management-detail-quick-actions a:hover,
.management-detail-quick-actions button:hover {
  border-color: #0a3572;
  background: #eef5ff;
}

.management-detail-quick-actions a:focus-visible,
.management-detail-quick-actions button:focus-visible,
.management-detail-actions button:focus-visible {
  outline: 3px solid rgb(10 53 114 / 18%);
  outline-offset: 2px;
}

.management-detail-quick-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.management-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.management-detail-metrics article {
  min-width: 0;
  display: grid;
  padding: 13px 15px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
}

.management-detail-metrics small,
.management-detail-metrics span {
  overflow: hidden;
  color: #718096;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-detail-metrics small {
  font-weight: 700;
}

.management-detail-metrics strong {
  margin-top: 4px;
  overflow: hidden;
  color: #10233e;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.management-detail-wide {
  grid-column: 1 / -1;
}

.management-detail-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(13 42 76 / 4%);
}

.management-detail-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf1f6;
}

.management-detail-card > header h4,
.management-detail-card > header p {
  margin: 0;
}

.management-detail-card > header h4 {
  color: #10233e;
  font-size: 0.94rem;
}

.management-detail-card > header > span:not(.admin-badge) {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 10px;
  color: #0a3572;
  background: #eef5ff;
  font-size: 0.75rem;
  font-weight: 800;
}

.management-detail-card > header svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.document-preview-card {
  padding: 14px;
}

.document-preview-card > header {
  margin-bottom: 10px;
  padding-bottom: 9px;
}

.document-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.document-preview-grid:not(.has-back-side) {
  width: min(100%, 980px);
  margin-inline: auto;
}

.document-preview-grid.has-back-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-preview-panel {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d4dfeb;
  border-radius: 14px;
  background: #f4f7fb;
}

.document-preview-panel figcaption {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px 9px 14px;
  border-bottom: 1px solid #d4dfeb;
  background: #f9fbfd;
}

.document-preview-panel figcaption > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.document-preview-panel figcaption strong {
  color: #10233e;
  font-size: 0.8rem;
}

.document-preview-panel figcaption span {
  overflow: hidden;
  color: #718096;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-preview-panel figcaption button,
.document-preview-error button {
  min-height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #c5d4e5;
  border-radius: 9px;
  color: #0a3572;
  background: #fff;
  font: inherit;
  font-size: 0.71rem;
  font-weight: 800;
  cursor: pointer;
}

.document-preview-panel figcaption button:hover,
.document-preview-error button:hover {
  border-color: #0a3572;
  background: #eef5ff;
}

.document-preview-panel figcaption button:focus-visible,
.document-preview-error button:focus-visible {
  outline: 3px solid rgb(10 53 114 / 18%);
  outline-offset: 2px;
}

.document-preview-panel figcaption button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.document-preview-canvas {
  height: clamp(240px, 26vw, 320px);
  display: grid;
  overflow: hidden;
  place-items: center;
  position: relative;
  background-color: #e9eef5;
  background-image:
    linear-gradient(45deg, rgb(10 53 114 / 3%) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(10 53 114 / 3%) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(10 53 114 / 3%) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(10 53 114 / 3%) 75%);
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-size: 18px 18px;
}

.document-preview-grid.has-back-side .document-preview-canvas {
  height: clamp(220px, 20vw, 280px);
}

.document-preview-canvas img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.document-preview-canvas img[hidden] {
  display: none;
}

.document-preview-loading,
.document-preview-error {
  max-width: 360px;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 24px;
  color: #66758a;
  text-align: center;
}

.document-preview-loading[hidden],
.document-preview-error[hidden] {
  display: none;
}

.document-preview-loading > span {
  width: 34px;
  height: 34px;
  border: 3px solid #c8d6e6;
  border-top-color: #0a3572;
  border-radius: 50%;
  animation: document-preview-spin 700ms linear infinite;
}

.document-preview-loading p,
.document-preview-error p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
}

.document-preview-error svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #9d611d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.document-preview-error strong {
  color: #10233e;
  font-size: 0.84rem;
}

@keyframes document-preview-spin {
  to { transform: rotate(360deg); }
}

.management-detail-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.management-detail-data > div {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f7;
}

.management-detail-data > div:nth-child(odd) {
  padding-right: 12px;
}

.management-detail-data dt {
  color: #7a8798;
  font-size: 0.72rem;
}

.management-detail-data dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #10233e;
  font-size: 0.78rem;
  font-weight: 750;
}

.management-detail-data a {
  color: #0a3572;
  text-decoration: none;
}

.driver-device-account {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #dbe6f2;
  border-radius: 13px;
  background: #f6f9fd;
}

.driver-device-account > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0a3572;
  background: #e8f1fd;
}

.driver-device-account svg,
.driver-device-item-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.driver-device-account > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.driver-device-account small,
.driver-device-account p {
  margin: 0;
  color: #718096;
  font-size: 0.71rem;
}

.driver-device-account a {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: #0a3572;
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
}

.driver-device-account a:hover {
  text-decoration: underline;
}

.driver-device-account a:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgb(10 53 114 / 17%);
  outline-offset: 2px;
}

.driver-device-account > p {
  padding: 6px 9px;
  border-radius: 8px;
  color: #40536d;
  background: #fff;
  font-weight: 750;
  white-space: nowrap;
}

.driver-device-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.driver-device-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe7f0;
  border-radius: 13px;
  background: #fff;
}

.driver-device-item.is-active {
  border-color: #b8dfc8;
  box-shadow: inset 3px 0 #2f9e62;
}

.driver-device-item > header {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.driver-device-item-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0a3572;
  background: #eef5ff;
}

.driver-device-item > header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.driver-device-item > header strong,
.driver-device-item > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-device-item > header strong {
  color: #10233e;
  font-size: 0.79rem;
}

.driver-device-item > header small {
  color: #718096;
  font-size: 0.68rem;
}

.driver-device-state {
  padding: 5px 8px;
  border-radius: 999px;
  color: #66758a;
  background: #eef2f7;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}

.driver-device-item.is-active .driver-device-state {
  color: #17643c;
  background: #e5f6ec;
}

.driver-device-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
}

.driver-device-meta div {
  min-width: 0;
}

.driver-device-meta dt {
  color: #7a8798;
  font-size: 0.65rem;
}

.driver-device-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #273d59;
  font-size: 0.7rem;
  font-weight: 750;
}

.management-detail-warning {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #efc8c8;
  border-radius: 11px;
  color: #8f3232;
  background: #fff2f2;
}

.management-detail-warning strong,
.management-detail-warning p,
.management-detail-warning small {
  margin: 0;
  font-size: 0.75rem;
}

.management-detail-warning p {
  margin: 4px 0;
}

.management-detail-links {
  display: grid;
}

.management-detail-links > a {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #edf1f6;
  color: inherit;
  text-decoration: none;
}

.management-detail-links > a:last-child {
  border-bottom: 0;
}

.management-detail-links > a:hover {
  background: #f8fbff;
}

.management-detail-links > a:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(10 53 114 / 17%);
  outline-offset: 2px;
}

.management-detail-links > a > span:first-child {
  min-width: 0;
  display: grid;
}

.management-detail-links strong,
.management-detail-links small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-detail-links strong {
  color: #10233e;
  font-size: 0.78rem;
}

.management-detail-links small,
.management-detail-links time {
  color: #718096;
  font-size: 0.71rem;
}

.management-detail-links svg {
  grid-column: -1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #718096;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.management-detail-timeline {
  display: grid;
  gap: 9px;
}

.management-detail-timeline > div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
}

.management-detail-timeline i {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0a3572;
  box-shadow: 0 0 0 2px #cbdcf0;
}

.management-detail-timeline p {
  display: grid;
  margin: 0;
}

.management-detail-timeline strong {
  color: #10233e;
  font-size: 0.76rem;
}

.management-detail-timeline small {
  color: #718096;
  font-size: 0.71rem;
}

.management-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fbfcfe;
}

.management-detail-actions h4,
.management-detail-actions p,
.management-detail-actions span {
  margin: 0;
}

.management-detail-actions h4 {
  color: #10233e;
  font-size: 0.94rem;
}

.management-detail-actions > div:first-child > span {
  color: #718096;
  font-size: 0.72rem;
}

.management-detail-actions > div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.management-detail-actions button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  color: #10233e;
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 780;
  cursor: pointer;
}

.management-detail-actions button:hover {
  border-color: #0a3572;
  background: #eef5ff;
}

.management-detail-actions button.is-primary {
  border-color: #0a3572;
  color: #fff;
  background: #0a3572;
}

.management-detail-actions button.is-warning {
  border-color: #e7bc87;
  color: #8a490e;
  background: #fff5e8;
}

.management-detail-actions button.is-danger {
  border-color: #e9b7b7;
  color: #9d3232;
  background: #fff2f2;
}

@media (max-width: 1100px) {
  .management-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .management-detail-hero,
  .management-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .management-detail-quick-actions,
  .management-detail-actions > div:last-child {
    justify-content: flex-start;
  }

  .management-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-preview-grid.has-back-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-preview-grid.has-back-side .document-preview-canvas {
    height: clamp(220px, 62vw, 300px);
  }

  .management-detail-wide {
    grid-column: auto;
  }

  .driver-device-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .management-detail-links > a {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  .management-detail-links time {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .management-detail-metrics,
  .management-detail-data {
    grid-template-columns: minmax(0, 1fr);
  }

  .management-detail-identity {
    align-items: flex-start;
  }

  .management-detail-symbol,
  .management-detail-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 17px;
  }

  .management-detail-quick-actions,
  .management-detail-quick-actions a,
  .management-detail-quick-actions button,
  .management-detail-actions button {
    width: 100%;
  }

  .management-detail-data > div:nth-child(odd) {
    padding-right: 0;
  }

  .driver-device-account {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .driver-device-account > p {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .driver-device-item > header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .driver-device-state {
    grid-column: 2;
    justify-self: start;
  }

  .driver-device-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .management-detail-links > a {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 16px;
  }

  .management-detail-links .admin-badge,
  .management-detail-links time {
    grid-column: 1;
    justify-self: start;
  }

  .document-preview-card {
    padding: 10px;
  }

  .document-preview-canvas,
  .document-preview-grid.has-back-side .document-preview-canvas {
    height: clamp(210px, 65vw, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .management-list-row,
  .management-row-open svg,
  .management-document-link,
  .management-document-open svg,
  .management-detail-loading > span {
    transition: none;
    animation: none;
  }

  .document-preview-loading > span {
    animation: none;
  }

  .admin-document-thumbnail-loading i {
    animation: none;
  }
}

/* Lots longue distance */
.is-dashboard-page .long-haul-page {
  display: grid;
  gap: 24px;
}

.is-dashboard-page .long-haul-page[hidden] {
  display: none;
}

.is-dashboard-page .long-haul-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.is-dashboard-page .long-haul-intro > div {
  min-width: 0;
  max-width: 980px;
}

.is-dashboard-page .long-haul-intro h2 {
  margin: 6px 0 12px;
  color: var(--brand-primary-dark);
  font-size: clamp(2rem, 4vw, 4.1rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.is-dashboard-page .long-haul-intro p:last-child {
  max-width: 970px;
  margin: 0;
  color: #536276;
  font-size: 0.98rem;
  line-height: 1.6;
}

.is-dashboard-page .long-haul-intro > .button {
  min-width: 174px;
  min-height: 52px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
}

.is-dashboard-page .long-haul-intro > .button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.is-dashboard-page .long-haul-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.is-dashboard-page .long-haul-summary article {
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid #dce4ee;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(3, 27, 63, 0.045);
}

.is-dashboard-page .long-haul-summary article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
}

.is-dashboard-page .long-haul-summary article > span.is-orange {
  background: #fff0e5;
  color: #d95c00;
}

.is-dashboard-page .long-haul-summary article > span.is-blue {
  background: #eaf1fb;
  color: var(--brand-primary);
}

.is-dashboard-page .long-haul-summary article > span.is-green {
  background: #e8f7ef;
  color: #137749;
}

.is-dashboard-page .long-haul-summary article > span.is-red {
  background: #fff0ed;
  color: #bd3d30;
}

.is-dashboard-page .long-haul-summary svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-dashboard-page .long-haul-summary p {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: 0;
}

.is-dashboard-page .long-haul-summary small,
.is-dashboard-page .long-haul-summary b {
  overflow: hidden;
  color: #657489;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.is-dashboard-page .long-haul-summary small {
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.is-dashboard-page .long-haul-summary strong {
  color: var(--brand-primary-dark);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.is-dashboard-page .long-haul-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-dashboard-page .long-haul-flow li {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce4ee;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.is-dashboard-page .long-haul-flow li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--brand-primary);
  border-radius: 11px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
}

.is-dashboard-page .long-haul-flow p {
  min-width: 0;
  display: grid;
  gap: 2px;
  margin: 0;
}

.is-dashboard-page .long-haul-flow strong {
  color: #17283c;
  font-size: 0.82rem;
}

.is-dashboard-page .long-haul-flow small {
  color: #67768a;
  font-size: 0.66rem;
  line-height: 1.35;
}

.is-dashboard-page .long-haul-pool,
.is-dashboard-page .long-haul-register {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dce4ee;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(3, 27, 63, 0.045);
}

.is-dashboard-page .long-haul-pool > header,
.is-dashboard-page .long-haul-register > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid #e5ebf2;
}

.is-dashboard-page .long-haul-pool h3,
.is-dashboard-page .long-haul-register h3 {
  margin: 3px 0 2px;
  color: var(--brand-primary-dark);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.is-dashboard-page .long-haul-pool header small {
  color: #657489;
  font-size: 0.75rem;
}

.is-dashboard-page .long-haul-pool header a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #cfd9e6;
  border-radius: 11px;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.is-dashboard-page .long-haul-pool header a:hover {
  border-color: var(--brand-primary);
  background: #f1f5fb;
}

.is-dashboard-page .long-haul-pool header a:focus-visible,
.is-dashboard-page .long-haul-register select:focus-visible {
  outline: 3px solid rgba(9, 42, 99, 0.22);
  outline-offset: 2px;
}

.is-dashboard-page .long-haul-register select {
  min-width: 160px;
  min-height: 44px;
  padding: 9px 36px 9px 12px;
  border: 1px solid #cfd9e6;
  border-radius: 11px;
  background: var(--white);
  color: #24364b;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
}

.is-dashboard-page .long-haul-pool-list {
  display: grid;
  gap: 10px;
}

.is-dashboard-page .long-haul-pool-list > article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  background: #fbfcfe;
}

.is-dashboard-page .long-haul-pool-list > article > span {
  padding: 7px 9px;
  background: #eaf1fb;
  border-radius: 9px;
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 900;
}

.is-dashboard-page .long-haul-pool-list p,
.is-dashboard-page .long-haul-pool-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.is-dashboard-page .long-haul-pool-list p strong {
  overflow: hidden;
  color: #17283c;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-dashboard-page .long-haul-pool-list p small,
.is-dashboard-page .long-haul-pool-list article > div small {
  color: #68778b;
  font-size: 0.7rem;
}

.is-dashboard-page .long-haul-pool-list article > div {
  justify-items: end;
  text-align: right;
}

.is-dashboard-page .long-haul-pool-list article > div strong {
  color: var(--brand-orange);
  font-size: 0.9rem;
}

.is-dashboard-page .long-haul-batch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.is-dashboard-page .long-haul-batch-list > .admin-empty,
.is-dashboard-page .long-haul-pool-list > .admin-empty {
  grid-column: 1 / -1;
}

.is-dashboard-page .long-haul-batch-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dce4ee;
  border-radius: 17px;
  background: #fbfcfe;
}

.is-dashboard-page .long-haul-batch-card > header,
.is-dashboard-page .long-haul-batch-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.is-dashboard-page .long-haul-batch-card header > div {
  min-width: 0;
}

.is-dashboard-page .long-haul-batch-card header span:first-child {
  color: var(--brand-orange);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.is-dashboard-page .long-haul-batch-card h4 {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--brand-primary-dark);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-dashboard-page .long-haul-batch-route {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #31445b;
  font-size: 0.78rem;
}

.is-dashboard-page .long-haul-batch-route strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-dashboard-page .long-haul-batch-route i {
  color: var(--brand-orange);
  font-style: normal;
}

.is-dashboard-page .long-haul-batch-progress {
  height: 7px;
  overflow: hidden;
  background: #e5ebf2;
  border-radius: 999px;
}

.is-dashboard-page .long-haul-batch-progress i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-orange));
  border-radius: inherit;
}

.is-dashboard-page .long-haul-batch-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.is-dashboard-page .long-haul-batch-card dl > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--white);
  border-radius: 11px;
}

.is-dashboard-page .long-haul-batch-card dt {
  color: #718094;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.is-dashboard-page .long-haul-batch-card dd {
  overflow: hidden;
  margin: 0;
  color: #1e3147;
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-dashboard-page .long-haul-batch-card footer {
  padding-top: 14px;
  border-top: 1px solid #e4eaf1;
}

.is-dashboard-page .long-haul-batch-card footer > span {
  min-width: 0;
  overflow: hidden;
  color: #657489;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.long-haul-dialog-grid {
  align-items: start;
}

.long-haul-choice-fieldset {
  min-width: 0;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 16px;
  border: 1px solid #d7e0ea;
  border-radius: 15px;
}

.long-haul-choice-fieldset legend {
  padding: 0 7px;
  color: #26394f;
  font-size: 0.8rem;
  font-weight: 850;
}

.long-haul-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #fbfcfe;
  cursor: pointer;
}

.long-haul-choice:has(input:checked) {
  border-color: rgba(9, 42, 99, 0.35);
  background: #f1f5fb;
}

.long-haul-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.long-haul-choice > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #afbdcc;
  border-radius: 7px;
  color: transparent;
}

.long-haul-choice input:focus-visible + span {
  outline: 3px solid rgba(9, 42, 99, 0.24);
  outline-offset: 2px;
}

.long-haul-choice input:checked + span {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--white);
}

.long-haul-choice svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.long-haul-choice p {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.long-haul-choice p strong,
.long-haul-choice p small,
.long-haul-choice p b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.long-haul-choice p strong {
  color: #1d3046;
  font-size: 0.8rem;
}

.long-haul-choice p small {
  color: #657489;
  font-size: 0.7rem;
}

.long-haul-choice p b {
  color: var(--brand-orange);
  font-size: 0.68rem;
}

.long-haul-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .is-dashboard-page .long-haul-summary,
  .is-dashboard-page .long-haul-batch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .is-dashboard-page .long-haul-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .is-dashboard-page .long-haul-page {
    gap: 18px;
  }

  .is-dashboard-page .long-haul-intro,
  .is-dashboard-page .long-haul-pool > header,
  .is-dashboard-page .long-haul-register > header {
    align-items: stretch;
    flex-direction: column;
  }

  .is-dashboard-page .long-haul-intro > .button,
  .is-dashboard-page .long-haul-pool header a,
  .is-dashboard-page .long-haul-register select {
    width: 100%;
  }

  .is-dashboard-page .long-haul-summary,
  .is-dashboard-page .long-haul-flow,
  .is-dashboard-page .long-haul-batch-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .is-dashboard-page .long-haul-pool,
  .is-dashboard-page .long-haul-register {
    padding: 18px;
    border-radius: 17px;
  }

  .is-dashboard-page .long-haul-pool-list > article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .is-dashboard-page .long-haul-pool-list article > div {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .is-dashboard-page .long-haul-summary article {
    min-height: 112px;
    padding: 16px;
  }

  .is-dashboard-page .long-haul-batch-card {
    padding: 16px;
  }

  .is-dashboard-page .long-haul-batch-card dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .is-dashboard-page .long-haul-batch-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .is-dashboard-page .long-haul-batch-card .admin-action-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #vue-ensemble .admin-metric,
  #vue-ensemble .admin-metric-arrow,
  .is-dashboard-page .long-haul-batch-progress i {
    transition: none;
  }
}
