@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #090a0b;
  --ink-soft: #101214;
  --panel: #151719;
  --panel-2: #1b1d20;
  --paper: #f6f3ea;
  --muted: #a6a8aa;
  --muted-light: #c9c9c6;
  --gold: #d5a94f;
  --gold-bright: #f1d47d;
  --gold-deep: #8e6422;
  --line: rgba(255, 255, 255, 0.11);
  --line-gold: rgba(213, 169, 79, 0.28);
  --success: #78c59c;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--gold-bright);
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.page-header .site-header {
  background: #090a0b;
  border-color: var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  width: 230px;
}

.brand--official {
  width: 150px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
}

.brand--official img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand-word {
  display: none;
}

.brand-word small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  position: relative;
  color: #e8e7e3;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--gold);
  transition: right 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.nav-cta {
  overflow: hidden;
  padding: 9px 14px;
  color: var(--ink) !important;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(213, 169, 79, 0.2);
  animation: nav-cta-pulse 2.2s ease-in-out infinite;
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -42%;
  width: 24%;
  height: 240%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent);
  transform: rotate(22deg);
  animation: nav-cta-shine 2.8s ease-in-out infinite;
}

@keyframes nav-cta-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(213, 169, 79, .24), 0 0 0 0 rgba(241, 212, 125, 0);
    filter: brightness(.96) saturate(1);
  }
  50% {
    box-shadow: 0 10px 40px rgba(241, 212, 125, .72), 0 0 0 5px rgba(213, 169, 79, .16);
    filter: brightness(1.24) saturate(1.12);
  }
}

@keyframes nav-cta-shine {
  0%, 48% {
    left: -42%;
    opacity: 0;
  }
  58% {
    opacity: .95;
  }
  78%, 100% {
    left: 122%;
    opacity: 0;
  }
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 770px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.gold-text {
  color: transparent;
  background: linear-gradient(110deg, #fff1ae, var(--gold) 55%, #9b6d28);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 14px 36px rgba(213, 169, 79, 0.2);
}

/* Gold call-to-action: shared pulse and moving highlight. */
.cta-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: nav-cta-pulse 2.2s ease-in-out infinite;
}

.cta-glow::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -42%;
  width: 24%;
  height: 240%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent);
  transform: rotate(22deg);
  animation: nav-cta-shine 2.8s ease-in-out infinite;
}

.btn-secondary {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-dark {
  color: var(--paper);
  background: var(--ink);
}

.arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(4px);
}

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #090a0b url("images/micaramy-hero-rivian-v4.webp") center / cover no-repeat;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.77) 37%, rgba(5, 6, 7, 0.19) 68%, rgba(5, 6, 7, 0.1) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 150px;
}

.hero-copy {
  max-width: 820px;
  will-change: transform;
  transition: transform 0.22s ease-out;
}

.hero-copy .lead {
  max-width: 585px;
  color: #d4d3cf;
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
}

@media (min-width: 961px) {
  .hero {
    animation: hero-background-pan 16s ease-in-out infinite alternate;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: -25% -10%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 72% 42%, rgba(241, 212, 125, .16), transparent 16%);
    animation: hero-gold-drift 8s ease-in-out infinite alternate;
  }

  .hero .gold-text {
    background-size: 220% 100%;
    animation: gold-text-flow 5s ease-in-out infinite alternate;
  }

  .motion-ribbon-track {
    animation-duration: 20s;
  }

  .service-card .card-icon,
  .portal-card .portal-mark,
  .value-card .value-icon {
    animation: icon-float 4.4s ease-in-out infinite;
  }

  .service-card:nth-child(2) .card-icon,
  .portal-card:nth-child(2) .portal-mark,
  .value-card:nth-child(2) .value-icon {
    animation-delay: -1.45s;
  }

  .service-card:nth-child(3) .card-icon,
  .value-card:nth-child(3) .value-icon {
    animation-delay: -2.9s;
  }

  .team-slide.is-active .team-slide-photo {
    animation: team-photo-drift 7s ease-in-out both;
  }
}

@keyframes hero-background-pan {
  from { background-position: 48% center; }
  to { background-position: 55% center; }
}

@keyframes hero-gold-drift {
  from { transform: translate3d(-3%, -1%, 0) scale(.96); opacity: .35; }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: .9; }
}

@keyframes gold-text-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(0); box-shadow: 0 10px 26px rgba(213, 169, 79, .12); }
  50% { transform: translateY(-7px) rotate(2deg); box-shadow: 0 18px 34px rgba(241, 212, 125, .28); }
}

@keyframes hiring-background-pan {
  from { background-position: 47% center; }
  to { background-position: 54% center; }
}

@keyframes team-photo-drift {
  from { transform: scale(1.015) translate3d(-.35%, 0, 0); }
  to { transform: scale(1.055) translate3d(.35%, -.25%, 0); }
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 999;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), #fff2ac);
  box-shadow: 0 0 18px rgba(241, 212, 125, 0.55);
}

.motion-ribbon {
  overflow: hidden;
  padding: 17px 0;
  color: var(--ink);
  background: linear-gradient(90deg, #a47428, var(--gold-bright), #a47428);
  border-block: 1px solid rgba(255,255,255,.28);
}

.motion-ribbon-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: ribbon-scroll 30s linear infinite;
}

.motion-ribbon span {
  font-family: "Manrope", sans-serif;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.motion-ribbon i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: .55;
}

@keyframes ribbon-scroll {
  to { transform: translateX(-50%); }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 9, 0.68);
  backdrop-filter: blur(14px);
}

.stat {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 32px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.stat span {
  color: var(--muted-light);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  padding: 120px 0;
}

.section-compact {
  padding: 86px 0;
}

.section-light {
  color: #191b1d;
  background: var(--paper);
}

.section-light .eyebrow,
.section-light .text-link {
  color: #8a621e;
}

.section-light .lead,
.section-light .body-copy {
  color: #5a5c5e;
}

/* Dark cards inside a light section need their own heading color in night mode. */
.section-light .value-card h3 {
  color: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}

.section-heading > div:first-child {
  max-width: 720px;
}

.section-heading .lead {
  max-width: 500px;
}

.text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.service-card,
.value-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.service-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: -80px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(213, 169, 79, 0.08);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
}

.service-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-icon,
.value-icon {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(213, 169, 79, .16), rgba(213, 169, 79, .035));
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 42px rgba(213, 169, 79, .1);
  transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.card-icon::before,
.value-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(213, 169, 79, .15);
  border-radius: 12px;
}

.card-icon svg,
.value-icon svg,
.portal-mark svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .card-icon,
.value-card:hover .value-icon {
  color: #fff3cf;
  background: linear-gradient(145deg, rgba(213, 169, 79, .3), rgba(163, 111, 31, .11));
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 48px rgba(213, 169, 79, .18);
}

.card-index {
  color: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.service-card p,
.value-card p {
  margin: 13px 0 0;
  color: var(--muted);
}

.service-detail-grid {
  display: grid;
  gap: 18px;
}

.amazon-dsp-section {
  background: linear-gradient(180deg, #090a0b, #111315);
}

.amazon-dsp-feature {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.amazon-dsp-image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.amazon-dsp-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 7, .72));
}

.amazon-dsp-image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.amazon-dsp-image:hover img {
  transform: scale(1.035);
}

.dsp-badge {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  padding: 10px 14px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-detail {
  display: grid;
  grid-template-columns: 90px 0.9fr 1.3fr;
  align-items: start;
  gap: 34px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}

.service-detail .service-no {
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.service-detail-mark {
  width: 68px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--gold-bright);
}

.service-detail-mark svg {
  width: 54px;
  height: 54px;
  padding: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: linear-gradient(145deg, rgba(213, 169, 79, .16), rgba(213, 169, 79, .035));
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(213, 169, 79, .1);
}

.service-detail-mark b {
  font-family: "Manrope", sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
}

.service-detail p {
  margin: 0;
  color: var(--muted-light);
}

.hiring-showcase {
  position: relative;
  padding: clamp(76px, 8vw, 116px) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 20%, rgba(213, 169, 79, .14), transparent 30%),
    linear-gradient(135deg, #111315, #08090a 62%);
}

.hiring-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(213, 169, 79, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 169, 79, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hiring-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
}

.hiring-copy {
  max-width: 580px;
  padding: 24px 0;
}

.hiring-copy h2 {
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.hiring-showcase--page .hiring-copy h1 {
  font-size: clamp(3.1rem, 6vw, 5.8rem);
}

.team-carousel {
  position: relative;
  min-width: 0;
  min-height: clamp(470px, 43vw, 590px);
  overflow: hidden;
  background: #08090a;
  border: 1px solid rgba(241, 212, 125, .38);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .025) inset;
}

.team-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(3, 4, 5, .8) 100%);
}

.team-carousel::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 21px;
}

.team-carousel-track,
.team-slide {
  position: absolute;
  inset: 0;
}

.team-slide {
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(.975) rotateY(2deg);
  transition: opacity .85s ease, transform 1.05s cubic-bezier(.22, 1, .36, 1), visibility .85s;
}

.team-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.team-slide-backdrop,
.team-slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.team-slide-backdrop {
  object-fit: cover;
  filter: blur(24px) brightness(.46) saturate(1.18);
  transform: scale(1.12);
}

.team-slide-photo {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
  will-change: transform;
}

.team-slide figcaption {
  position: absolute;
  z-index: 5;
  right: 84px;
  bottom: 26px;
  left: 86px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(.82rem, 1.25vw, 1rem);
  font-weight: 800;
  letter-spacing: .015em;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .88);
}

.team-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(7, 8, 9, .62);
  border: 1px solid rgba(241, 212, 125, .58);
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .35);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.team-carousel-arrow:hover,
.team-carousel-arrow:focus-visible {
  color: #17130b;
  background: var(--gold-bright);
  transform: translateY(-50%) scale(1.08);
}

.team-carousel-arrow--prev { left: 22px; }
.team-carousel-arrow--next { right: 22px; }

.team-carousel-footer {
  position: absolute;
  z-index: 8;
  right: 22px;
  bottom: 19px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.team-carousel-count {
  color: rgba(255, 255, 255, .78);
  font-family: "Manrope", sans-serif;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.team-carousel-dots {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}

.team-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .38);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width .3s ease, background .3s ease, box-shadow .3s ease;
}

.team-carousel-dot.is-active {
  width: 30px;
  background: var(--gold-bright);
  box-shadow: 0 0 16px rgba(241, 212, 125, .65);
}

.application-section {
  background: linear-gradient(180deg, #111315, #090a0b);
}

.application-wrap {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 50px;
  align-items: start;
}

.quick-form,
.auth-card {
  padding: 34px;
  color: #191b1d;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.quick-form .form-grid {
  margin-top: 0;
}

.quick-form .form-status {
  margin-bottom: 0;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.label-optional {
  color: #777168;
  font-size: .74rem;
  font-weight: 600;
}

.application-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 16px;
  color: #302d27;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.55;
  background: #fbf7ee;
  border: 1px solid #d8c9aa;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.quick-form .field label.application-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  margin-top: 2px;
  accent-color: var(--gold-deep);
  box-shadow: none;
}

.application-consent span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.application-consent strong {
  color: #835b0e;
}

.consent-heading {
  margin-bottom: 8px;
  color: #2d2922;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.required-label {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  color: #3c2b08;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #e5bd68;
  border-radius: 999px;
}

.resume-field input[type="file"] {
  padding: 10px;
  background: #fbf8f1;
  border: 1px dashed #b49a65;
}

.resume-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 13px;
  color: #17130b;
  font: inherit;
  font-weight: 750;
  background: var(--gold-bright);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.resume-field small {
  display: block;
  margin-top: 8px;
  color: #6b665e;
  font-size: .75rem;
  line-height: 1.5;
}

.requirement-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.requirement-list li {
  display: flex;
  gap: 12px;
  color: var(--muted-light);
}

.requirement-list li::before {
  content: "✓";
  color: var(--gold-bright);
  font-weight: 900;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.portal-grid--two {
  width: min(100%, 880px);
  grid-template-columns: repeat(2, 1fr);
  margin-inline: auto;
}

.portal-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
}

.portal-card .portal-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border: 1px solid rgba(255, 239, 196, .35);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(213, 169, 79, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.portal-card:hover .portal-mark {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 22px 52px rgba(213, 169, 79, .28);
}

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

.league-showcase {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: #0d0f10;
  border-block: 1px solid var(--line);
}

.league-visual {
  position: relative;
  min-height: 660px;
  background: #131517 url("images/driver-champions.png") 64% center / cover no-repeat;
}

.league-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #0d0f10), linear-gradient(0deg, rgba(8,9,10,.45), transparent 42%);
}

.league-content {
  display: flex;
  align-items: center;
  padding: 90px clamp(32px, 6vw, 100px) 90px clamp(32px, 5vw, 82px);
}

.league-content > div {
  max-width: 620px;
}

.league-content .body-copy {
  color: var(--muted);
}

.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 32px 0;
}

.reward-chip {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.reward-chip:hover {
  transform: translateY(-3px);
  background: rgba(213,169,79,.07);
  border-color: var(--line-gold);
}

.reward-chip span {
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: .75rem;
  font-weight: 900;
}

.reward-chip strong {
  font-family: "Manrope", sans-serif;
  font-size: .87rem;
  line-height: 1.35;
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card.is-visible {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
}

.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(300px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(241,212,125,.18), transparent 62%);
  transition: opacity .25s ease;
}

.tilt-card:hover::before {
  opacity: 1;
}

.tilt-card:hover {
  --lift: -5px;
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  background: var(--ink);
}

.auth-visual {
  position: relative;
  min-height: 760px;
  background-position: center;
  background-size: cover;
}

.auth-visual.training {
  background-image: linear-gradient(90deg, rgba(5,6,7,.12), rgba(5,6,7,.5)), url("images/training-portal.png");
}

.auth-visual.dispatch {
  background-image: linear-gradient(90deg, rgba(5,6,7,.08), rgba(5,6,7,.5)), url("images/dispatch-portal.png");
}

.auth-visual.driver {
  background-image: linear-gradient(90deg, rgba(5,6,7,.04), rgba(5,6,7,.52)), url("images/driver-portal-team.png?v=20260905-1");
  background-position: center;
}

.auth-visual-copy {
  position: absolute;
  inset: auto 50px 50px;
  max-width: 560px;
  padding: 28px;
  background: rgba(9,10,11,.74);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
}

.auth-visual-copy h1 {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 44px 50px;
}

.auth-panel-inner {
  width: min(100%, 470px);
}

/* Driver account forms: wide, readable, and independently scrollable. */
.auth-panel--scroll {
  align-items: flex-start;
  min-height: 100vh;
  overflow-y: auto;
}

.auth-panel-inner--wide {
  width: min(100%, 650px);
}

.auth-logo {
  width: min(100%, 220px);
  height: 82px;
  margin-bottom: 26px;
  object-fit: contain;
  object-position: left center;
}

.auth-panel h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 26px 0 20px;
  padding: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

.auth-tab {
  min-height: 44px;
  color: var(--muted-light);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.is-active {
  color: var(--ink);
  background: var(--gold);
}

.auth-form {
  display: grid;
  gap: 16px;
}

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

.auth-form-grid .full {
  grid-column: 1 / -1;
}

.auth-helper,
.auth-intro {
  margin: 12px 0 22px;
  color: var(--muted-light);
  font-size: .9rem;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted-light);
  font-size: .84rem;
  line-height: 1.55;
}

.auth-consent input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.verification-code {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .42em;
}

.auth-form [disabled] {
  cursor: wait;
  opacity: .65;
}

.auth-form .field label {
  color: var(--muted-light);
}

.auth-form .field input,
.auth-form .field select {
  color: var(--paper);
  background: rgba(255,255,255,.055);
  border-color: var(--line);
}

.auth-form .form-status {
  margin: 0;
}

.auth-form .form-status.is-error {
  color: #ff9d9d;
}

.auth-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted-light);
  font-size: .84rem;
}

.auth-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: .82rem;
}

.auth-back {
  position: absolute;
  top: 28px;
  right: 34px;
  z-index: 3;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.faq-item summary {
  position: relative;
  padding: 24px 64px 24px 24px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  color: var(--gold-bright);
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted-light);
}

.official-logo-panel {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 35px;
  background: #111315;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.official-logo-panel img {
  width: min(100%, 480px);
  max-height: 380px;
  object-fit: contain;
}

.president-panel {
  position: relative;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  background: #111315;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.president-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 56%, rgba(5, 6, 7, .94) 100%);
}

.president-panel img {
  width: 100%;
  height: 600px;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.president-panel:hover img {
  transform: scale(1.025);
}

.president-panel figcaption {
  position: absolute;
  right: 30px;
  bottom: 26px;
  left: 30px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fffdf8;
}

.president-panel figcaption strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
}

.president-panel figcaption span {
  color: var(--gold-bright);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.visual-panel {
  position: relative;
  min-height: 530px;
  padding: 38px;
  overflow: hidden;
  color: var(--paper);
  background: #111315;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.visual-panel::before,
.visual-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.visual-panel::before {
  width: 420px;
  height: 420px;
  right: -180px;
  top: -130px;
  border: 1px solid rgba(213, 169, 79, 0.35);
  box-shadow: 0 0 110px rgba(213, 169, 79, 0.1);
}

.visual-panel::after {
  width: 230px;
  height: 230px;
  left: -80px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(213, 169, 79, 0.23), transparent 68%);
}

.visual-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.visual-number {
  position: relative;
  z-index: 1;
  margin-top: 100px;
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: clamp(5rem, 10vw, 8.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.visual-panel h3 {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 24px;
  font-size: 1.75rem;
}

.visual-panel p {
  position: relative;
  z-index: 1;
  max-width: 350px;
  color: var(--muted-light);
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #3e4143;
  font-weight: 600;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px 58px;
  color: var(--ink);
  background: linear-gradient(115deg, #f5d77d, #c7953c 55%, #a27025);
  border-radius: var(--radius-lg);
}

.cta-band::after {
  content: "M";
  position: absolute;
  right: 25%;
  top: -56px;
  color: rgba(10, 10, 10, 0.08);
  font-family: "Manrope", sans-serif;
  font-size: 13rem;
  font-weight: 900;
  line-height: 1;
}

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

.cta-band h2 {
  max-width: 700px;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 190px 0 100px;
  background: radial-gradient(circle at 82% 10%, rgba(213, 169, 79, 0.18), transparent 30%), linear-gradient(180deg, #111315, var(--ink));
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -220px;
  top: 80px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--gold-bright);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.value-card {
  padding: 32px;
  background: var(--panel);
  transition: transform .25s ease, border-color .25s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
}

.value-card .value-icon {
  margin-bottom: 58px;
}

.value-grid--four .value-card {
  padding: 27px;
}

.value-grid--four .value-card .value-icon {
  margin-bottom: 42px;
}

.owner-quote {
  position: relative;
  margin: 32px 0 0;
  padding: 26px 28px;
  color: #302b22;
  background: rgba(213, 169, 79, .1);
  border-left: 3px solid var(--gold-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

.company-story .official-logo-panel {
  min-height: 430px;
}

.value-card .number-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 58px;
  color: var(--gold-bright);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid #d7d3c9;
}

.timeline-item {
  position: relative;
  padding: 36px 42px 0 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 0;
  top: -7px;
  background: var(--gold-deep);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-deep);
}

.timeline-item strong {
  color: #8a621e;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-top: 10px;
}

.timeline-item p {
  color: #626467;
}

.driver-hero {
  background: radial-gradient(circle at 80% 8%, rgba(213, 169, 79, 0.23), transparent 32%), linear-gradient(180deg, #131518, #090a0b);
}

.portal-preview {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
  margin-top: 56px;
}

.portal-side,
.portal-main {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.portal-side {
  padding: 32px;
}

.portal-side h3 {
  margin-bottom: 8px;
}

.portal-side > p {
  margin-top: 8px;
  color: var(--muted);
}

.progress-ring {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  margin: 34px auto;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 78%, #292c2f 78% 100%);
}

.progress-ring::before {
  content: "";
  width: 128px;
  height: 128px;
  grid-area: 1 / 1;
  background: var(--panel);
  border-radius: 50%;
}

.progress-ring span {
  position: relative;
  grid-area: 1 / 1;
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius-sm);
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  color: var(--paper);
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
}

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

.portal-main {
  padding: 18px;
}

.portal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 12px 24px;
}

.status-pill,
.tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill {
  color: #b8f2cf;
  background: rgba(76, 171, 113, 0.15);
}

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

.course-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.course-item:hover {
  border-color: var(--line-gold);
}

.course-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 13px;
  font-family: "Manrope", sans-serif;
  font-weight: 900;
}

.course-item h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.course-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.course-state {
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 800;
}

.leaderboard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.leader-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1fr 1fr;
  align-items: center;
  min-height: 78px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

.leader-row:last-child {
  border-bottom: 0;
}

.leader-row.header {
  min-height: 54px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank {
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.driver-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
}

.tier-pill.platinum {
  width: fit-content;
  color: #e9f5f3;
  background: rgba(175, 213, 207, 0.14);
}

.tier-pill.gold {
  width: fit-content;
  color: var(--gold-bright);
  background: rgba(213, 169, 79, 0.14);
}

.points {
  color: var(--muted-light);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 28px;
  background: var(--panel);
}

.contact-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong,
.contact-card a {
  color: var(--paper);
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.contact-form {
  padding: 36px;
  color: #191b1d;
  background: var(--paper);
  border-radius: var(--radius-md);
}

.contact-form h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.83rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: #1b1d1f;
  background: #fff;
  border: 1px solid #d8d5cc;
  border-radius: 11px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(213, 169, 79, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #5a5c5e;
  font-size: 0.85rem;
}

.form-status.is-success {
  color: #236b43;
  font-weight: 700;
}

.form-status.is-error {
  color: #a52a2a;
  font-weight: 700;
}

.quick-form button[disabled] {
  cursor: wait;
  opacity: .7;
}

.site-footer {
  padding: 76px 0 30px;
  background: #070809;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 60px;
}

.footer-brand {
  width: 180px;
}

.footer-brand img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  object-position: left center;
}

.footer-copy {
  max-width: 430px;
  margin: 22px 0 0;
  color: var(--muted);
}

.footer-col h3 {
  margin-bottom: 20px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a,
.footer-links span {
  color: var(--muted-light);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(213, 169, 79, .08);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}

.footer-social a:hover {
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 62px;
  padding-top: 24px;
  color: #777a7d;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 961px) {
  [data-reveal] {
    filter: blur(5px);
    transform: translateY(42px) scale(.98);
    transition: opacity .78s ease, transform .78s cubic-bezier(.2, .8, .2, 1), filter .78s ease;
  }

  [data-reveal].is-visible {
    filter: blur(0);
    transform: none;
  }

  .service-grid [data-reveal]:nth-child(odd),
  .value-grid [data-reveal]:nth-child(odd),
  .portal-grid [data-reveal]:nth-child(odd) {
    transform: translate3d(-34px, 28px, 0) scale(.98);
  }

  .service-grid [data-reveal]:nth-child(even),
  .value-grid [data-reveal]:nth-child(even),
  .portal-grid [data-reveal]:nth-child(even) {
    transform: translate3d(34px, 28px, 0) scale(.98);
  }

  .service-grid [data-reveal].is-visible,
  .value-grid [data-reveal].is-visible,
  .portal-grid [data-reveal].is-visible {
    transform: none;
  }

  /* Keep pointer tilt active after the entrance animation finishes. */
  .tilt-card[data-reveal].is-visible {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  }
}

@media (max-width: 960px) {
  .site-header {
    z-index: 99999;
    overflow: visible;
    background: #090a0b;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 0;
    height: calc(100dvh - 76px);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 20px max(88px, calc(40px + env(safe-area-inset-bottom)));
    background: #090a0b;
    opacity: 1;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .site-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    padding: 17px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav .nav-cta {
    flex: 0 0 auto;
    width: 100%;
    min-height: 52px;
    margin: 18px 0 12px;
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    min-height: 810px;
    background-position: 63% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(5, 6, 7, 0.95), rgba(5, 6, 7, 0.65) 60%, rgba(5, 6, 7, 0.25)), linear-gradient(0deg, var(--ink), transparent 30%);
  }

  .service-grid,
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value-grid--four {
    grid-template-columns: 1fr 1fr;
  }

  .amazon-dsp-feature {
    grid-template-columns: 1fr;
  }

  .service-card:last-child,
  .value-card:last-child {
    grid-column: 1 / -1;
  }

  .value-grid--four .value-card:last-child {
    grid-column: auto;
  }

  .split,
  .portal-preview,
  .contact-grid,
  .application-wrap {
    grid-template-columns: 1fr;
  }

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

  .portal-card:last-child {
    grid-column: 1 / -1;
  }

  .portal-grid--two .portal-card:last-child {
    grid-column: auto;
  }

  .league-showcase {
    grid-template-columns: 1fr;
  }

  .league-visual {
    min-height: 540px;
  }

  .league-visual::after {
    background: linear-gradient(0deg, #0d0f10, transparent 42%);
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 520px;
  }

  .auth-panel {
    padding-top: 70px;
  }

  .visual-panel {
    min-height: 460px;
  }

  .hiring-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hiring-copy {
    max-width: 720px;
  }

  .team-carousel {
    min-height: min(68vw, 620px);
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand {
    width: 194px;
  }

  .brand--official {
    width: 132px;
  }

  .brand--official img {
    width: 100%;
    height: 38px;
  }

  .brand-word {
    font-size: .86rem;
  }

  .site-nav {
    inset: 74px 0 0;
    height: calc(100dvh - 74px);
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero {
    min-height: 870px;
    background-image: url("images/micaramy-hero-rivian-mobile-v1.webp");
    background-position: 76% center;
    background-size: cover;
  }

  .hero-content {
    padding-top: 95px;
    padding-bottom: 270px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(5, 6, 7, 0.93), rgba(5, 6, 7, 0.54)), linear-gradient(0deg, var(--ink), transparent 46%);
  }

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

  .stat {
    min-height: 72px;
    padding: 13px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .league-visual {
    min-height: 420px;
    background-position: 67% center;
  }

  .league-content {
    padding: 64px 22px 76px;
  }

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

  .stat:last-child {
    border-bottom: 0;
  }

  .stat strong {
    min-width: 72px;
    font-size: 1.45rem;
  }

  .section,
  .section-compact {
    padding: 78px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 36px;
  }

  .service-grid,
  .value-grid,
  .timeline,
  .footer-grid,
  .form-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .value-grid--four {
    grid-template-columns: 1fr;
  }

  .amazon-dsp-image,
  .amazon-dsp-image img {
    min-height: 330px;
    height: 330px;
  }

  .portal-card:last-child {
    grid-column: auto;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px;
  }

  .service-detail-mark {
    width: auto;
    justify-items: start;
    grid-template-columns: auto auto;
    align-items: center;
  }

  .president-panel {
    min-height: 500px;
  }

  .president-panel img {
    height: 500px;
  }

  .president-panel figcaption {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }

  .hiring-showcase {
    padding: 72px 0;
  }

  .hiring-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hiring-copy {
    max-width: 680px;
    padding: 0;
  }

  .team-carousel {
    min-height: 560px;
  }

  .quick-form,
  .auth-card {
    padding: 25px 20px;
  }

  .auth-visual {
    min-height: 460px;
  }

  .auth-visual-copy {
    inset: auto 16px 16px;
    padding: 22px;
  }

  .auth-panel {
    padding: 60px 20px 40px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-form-grid .full {
    grid-column: auto;
  }

  .auth-tabs--three {
    grid-template-columns: 1fr;
  }

  .auth-back {
    top: 18px;
    right: 18px;
  }

  .service-card:last-child,
  .value-card:last-child,
  .footer-grid > div:first-child,
  .field.full {
    grid-column: auto;
  }

  .service-card {
    min-height: 300px;
  }

  .visual-panel {
    min-height: 410px;
    padding: 28px;
  }

  .visual-number {
    margin-top: 70px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 38px 26px;
  }

  .page-hero {
    padding: 150px 0 72px;
  }

  .timeline {
    gap: 26px;
    padding-left: 22px;
    border-top: 0;
    border-left: 1px solid #d7d3c9;
  }

  .timeline-item {
    padding: 0 0 0 20px;
  }

  .timeline-item::before {
    left: -29px;
    top: 5px;
  }

  .course-item {
    grid-template-columns: 44px 1fr;
  }

  .course-state {
    grid-column: 2;
  }

  .leader-row {
    grid-template-columns: 48px 1fr auto;
    padding: 0 16px;
  }

  .leader-row > :last-child {
    display: none;
  }

  .leader-row.header > :nth-child(3) {
    text-align: right;
  }

  .contact-form {
    padding: 26px 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Secure Dispatch / Admin dashboard */
.admin-body {
  min-height: 100vh;
  color: #eeeae2;
  background:
    radial-gradient(circle at 88% 4%, rgba(213, 169, 79, 0.18), transparent 28rem),
    linear-gradient(145deg, #080909, #121313 52%, #090909);
}

.portal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.portal-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: flex;
  height: calc(100vh - 36px);
  min-height: 620px;
  margin: 18px 0 18px 18px;
  padding: 22px 17px;
  flex-direction: column;
  overflow: hidden auto;
  border: 1px solid rgba(213, 169, 79, 0.2);
  border-radius: 25px;
  color: #f4efe6;
  background:
    radial-gradient(circle at 35% 0, rgba(213, 169, 79, 0.18), transparent 15rem),
    linear-gradient(180deg, #171a1a 0%, #0f1111 72%, #15130f 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  z-index: 20;
}

.portal-side-brand {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-side-brand img {
  width: 174px;
  max-width: 100%;
  height: 58px;
  object-fit: contain;
}

.portal-side-context {
  padding: 21px 12px 12px;
}

.portal-side-context span,
.portal-side-context strong {
  display: block;
}

.portal-side-context span {
  margin-bottom: 4px;
  color: #9e988e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-side-context strong {
  color: #fff9ee;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
}

.portal-side-nav {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.portal-nav-item {
  position: relative;
  display: grid;
  min-height: 62px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 11px;
  color: #c7c1b7;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a.portal-nav-item:hover {
  color: #fff9ee;
  border-color: rgba(213, 169, 79, 0.24);
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}

.portal-nav-item.is-active {
  color: #fff9ee;
  border-color: rgba(213, 169, 79, 0.4);
  background: linear-gradient(105deg, rgba(213, 169, 79, 0.22), rgba(213, 169, 79, 0.06));
  box-shadow: inset 3px 0 0 var(--gold), 0 10px 26px rgba(0, 0, 0, 0.16);
}

.portal-nav-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(213, 169, 79, 0.18);
  border-radius: 12px;
  background: rgba(213, 169, 79, 0.08);
}

.portal-nav-item.is-active .portal-nav-icon {
  color: #17120b;
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 8px 20px rgba(213, 169, 79, 0.22);
}

.portal-nav-svg {
  width: 22px;
  height: 22px;
}

.portal-nav-copy,
.portal-nav-copy strong,
.portal-nav-copy small {
  display: block;
  min-width: 0;
}

.portal-nav-copy strong {
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
}

.portal-nav-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #8f8980;
  font-size: 0.68rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-nav-disabled {
  margin-top: 8px;
  opacity: 0.7;
  cursor: not-allowed;
  border-color: rgba(118, 170, 255, 0.14);
  background: linear-gradient(105deg, rgba(64, 111, 180, 0.12), rgba(255, 255, 255, 0.02));
}

.portal-nav-disabled .portal-nav-icon {
  color: #8db8ff;
  border-color: rgba(118, 170, 255, 0.2);
  background: rgba(64, 111, 180, 0.12);
}

.portal-coming-soon {
  padding: 5px 7px;
  color: #a9c8ff;
  border: 1px solid rgba(118, 170, 255, 0.22);
  border-radius: 999px;
  background: rgba(64, 111, 180, 0.13);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-side-account {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-side-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  color: #17120b;
  border: 2px solid rgba(213, 169, 79, 0.75);
  border-radius: 50%;
  background: linear-gradient(145deg, #f2d488, #d5a94f);
  font-size: 0.76rem;
  font-weight: 900;
}

.portal-side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-side-account-copy,
.portal-side-account-copy span,
.portal-side-account-copy strong,
.portal-side-account-copy small {
  display: block;
  min-width: 0;
}

.portal-side-account-copy span {
  color: #8f8980;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-side-account-copy strong,
.portal-side-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-side-account-copy strong {
  margin-top: 2px;
  color: #fff9ee;
  font-size: 0.82rem;
}

.portal-side-account-copy small {
  margin-top: 2px;
  color: #8f8980;
  font-size: 0.65rem;
}

.portal-side-logout {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #c9c3ba;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.portal-side-logout:hover {
  color: #fff;
  border-color: rgba(213, 169, 79, 0.4);
  background: rgba(213, 169, 79, 0.12);
}

.portal-side-logout .portal-nav-svg {
  width: 19px;
  height: 19px;
}

.portal-page {
  min-width: 0;
}

.admin-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 70px;
}

.admin-topbar,
.admin-heading,
.admin-section-head,
.admin-identity,
.driver-review-head,
.driver-review-actions,
.roster-row,
.roster-actions,
.dialog-actions {
  display: flex;
  align-items: center;
}

.admin-topbar {
  min-height: 76px;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 18px;
  border: 1px solid rgba(213, 169, 79, 0.24);
  border-radius: 18px;
  background: rgba(17, 18, 18, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.admin-brand {
  width: 142px;
}

.admin-brand img {
  width: 100%;
  height: 52px;
  object-fit: contain;
}

.admin-identity {
  gap: 18px;
  text-align: right;
}

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

.driver-header-identity {
  gap: 12px;
}

.driver-header-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(213, 169, 79, 0.72);
  border-radius: 50%;
  color: #17120b;
  background: linear-gradient(145deg, #f2d488, #d5a94f);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.2);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.driver-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-header-name {
  min-width: 0;
}

.admin-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-heading {
  justify-content: space-between;
  gap: 28px;
  padding: 58px 6px 30px;
}

.admin-heading h1,
.admin-section h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.12;
}

.admin-heading h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.admin-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: #b8b3ab;
}

.admin-alert {
  margin-bottom: 22px;
  padding: 13px 17px;
  color: #d7d1c7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.admin-alert[data-kind="success"] {
  color: #b8f0cf;
  background: rgba(54, 151, 94, 0.12);
  border-color: rgba(90, 201, 133, 0.3);
}

.admin-alert[data-kind="warning"] {
  color: #ffe1a1;
  background: rgba(213, 169, 79, 0.12);
  border-color: rgba(213, 169, 79, 0.34);
}

.admin-alert[data-kind="error"] {
  color: #ffc1c1;
  background: rgba(190, 57, 57, 0.12);
  border-color: rgba(240, 88, 88, 0.32);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-stat-filter {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-stat-filter:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 169, 79, 0.4);
}

.admin-stat-filter:focus-visible {
  outline: 3px solid rgba(213, 169, 79, 0.38);
  outline-offset: 3px;
}

.admin-stat-filter.is-active {
  border-color: rgba(213, 169, 79, 0.72);
  background: linear-gradient(135deg, rgba(213, 169, 79, 0.22), rgba(213, 169, 79, 0.07));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.admin-stat-filter small {
  display: block;
  margin-top: 8px;
  color: #8f8a82;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-stat.is-pending {
  border-color: rgba(213, 169, 79, 0.48);
  background: linear-gradient(135deg, rgba(213, 169, 79, 0.18), rgba(213, 169, 79, 0.05));
}

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

.admin-stat span {
  color: #aaa59d;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-stat strong {
  margin-top: 6px;
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
}

.admin-section {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(17, 18, 18, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.admin-section-head {
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
}

.admin-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.admin-section-copy {
  max-width: 620px;
  margin: 0;
  color: #aaa59d;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.driver-account-head {
  align-items: flex-end;
}

.driver-account-search {
  display: grid;
  width: min(100%, 410px);
  gap: 6px;
}

.driver-account-search > label {
  color: #aaa59d;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-account-search > div {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: #0f1010;
}

.driver-account-search input {
  min-width: 0;
  width: 100%;
  padding: 11px 13px;
  color: #f3efe7;
  border: 0;
  outline: 0;
  background: transparent;
}

.driver-account-search > div:focus-within {
  border-color: rgba(213, 169, 79, 0.72);
  box-shadow: 0 0 0 3px rgba(213, 169, 79, 0.12);
}

.driver-account-search button {
  align-self: stretch;
  padding: 0 13px;
  color: var(--gold-bright);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 800;
}

.driver-account-search small {
  color: #8f8a82;
  font-size: 0.76rem;
}

.admin-filter,
.review-action {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.admin-filter {
  padding: 8px 13px;
  color: #bdb8b0;
  background: transparent;
  border-radius: 8px;
}

.admin-filter.is-active {
  color: #16120c;
  background: var(--gold);
}

.driver-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.driver-review-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #161818;
}

.driver-review-head {
  justify-content: space-between;
  gap: 16px;
}

.driver-review-identity h3 {
  margin: 0;
  font-size: 1.3rem;
}

.driver-email {
  display: block;
  margin-top: 3px;
  color: var(--gold-bright);
  word-break: break-word;
}

.account-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  color: #e9e5dd;
  background: rgba(255, 255, 255, 0.09);
}

.status-pending_approval { color: #ffe2a2; background: rgba(213, 169, 79, 0.16); }
.status-active { color: #a9edc5; background: rgba(78, 177, 118, 0.15); }
.status-suspended,
.status-rejected { color: #ffc1c1; background: rgba(211, 73, 73, 0.15); }

.roster-match {
  display: grid;
  gap: 2px;
  margin: 17px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.roster-match.is-match {
  color: #b9f1cf;
  background: rgba(66, 173, 108, 0.12);
  border: 1px solid rgba(91, 205, 136, 0.22);
}

.roster-match.is-missing {
  color: #e9d1a0;
  background: rgba(213, 169, 79, 0.09);
  border: 1px solid rgba(213, 169, 79, 0.2);
}

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

.driver-detail {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.driver-detail span,
.driver-detail strong {
  display: block;
}

.driver-detail span {
  color: #98938b;
  font-size: 0.75rem;
}

.driver-detail strong {
  overflow-wrap: anywhere;
  font-size: 0.89rem;
  line-height: 1.45;
}

.driver-review-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-action {
  padding: 10px 14px;
  color: #e9e6df;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.review-action.approve { color: #102118; background: #78c59c; }
.review-action.danger { color: #ffd5d5; background: rgba(204, 70, 70, 0.18); }

.roster-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(213, 169, 79, 0.2);
  border-radius: 16px;
  background: rgba(213, 169, 79, 0.045);
}

.roster-form .field label,
.review-dialog .field label {
  display: block;
  margin-bottom: 6px;
  color: #c4beb5;
  font-size: 0.82rem;
  font-weight: 700;
}

.roster-form input,
.review-dialog textarea {
  width: 100%;
  padding: 11px 12px;
  color: #f3efe7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #0f1010;
}

.roster-notes { grid-column: span 2; }
.roster-form-actions { display: flex; align-items: end; gap: 9px; }

.roster-list,
.approval-history {
  display: grid;
  gap: 9px;
}

.roster-row,
.history-row {
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.roster-row.is-inactive { opacity: 0.55; }
.roster-identity strong,
.roster-identity span,
.history-row strong,
.history-row span,
.history-row time { display: block; }
.roster-identity span,
.roster-meta,
.history-row span,
.history-meta { color: #9f9a92; font-size: 0.84rem; }
.roster-meta { display: flex; gap: 18px; margin-left: auto; }
.roster-actions { gap: 12px; }
.history-row { display: grid; grid-template-columns: 1fr minmax(200px, 0.8fr) auto; }
.history-note { margin: 0; color: #c9c3ba; }
.history-meta { text-align: right; }

.admin-empty {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: #aaa59d;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.admin-empty p { margin: 4px 0 0; }

.review-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  color: #eeeae2;
  border: 1px solid rgba(213, 169, 79, 0.38);
  border-radius: 20px;
  background: #171818;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.review-dialog::backdrop { background: rgba(0, 0, 0, 0.74); backdrop-filter: blur(5px); }
.review-dialog form { position: relative; padding: 28px; }
.review-dialog h2 { margin: 0 0 10px; font-family: "Manrope", sans-serif; }
.review-dialog p:not(.eyebrow) { color: #afa99f; }
.dialog-close { position: absolute; top: 13px; right: 15px; color: #d7d1c8; background: transparent; border: 0; font-size: 1.8rem; cursor: pointer; }
.dialog-actions { justify-content: flex-end; gap: 10px; margin-top: 20px; }

html[data-theme="light"] .admin-body {
  color: #1d1912;
  background: radial-gradient(circle at 88% 4%, rgba(213, 169, 79, 0.22), transparent 28rem), #f4efe5;
}

html[data-theme="light"] .admin-topbar,
html[data-theme="light"] .admin-section {
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(65, 47, 18, 0.13);
  box-shadow: 0 20px 55px rgba(83, 58, 17, 0.09);
}

html[data-theme="light"] .admin-heading p:not(.eyebrow),
html[data-theme="light"] .admin-section-copy,
html[data-theme="light"] .admin-stat span,
html[data-theme="light"] .driver-detail span,
html[data-theme="light"] .roster-identity span,
html[data-theme="light"] .roster-meta,
html[data-theme="light"] .history-row span,
html[data-theme="light"] .history-meta { color: #665e52; }

html[data-theme="light"] .admin-stat,
html[data-theme="light"] .driver-review-card,
html[data-theme="light"] .driver-detail,
html[data-theme="light"] .roster-row,
html[data-theme="light"] .history-row {
  background: #ffffff;
  border-color: rgba(65, 47, 18, 0.12);
}

html[data-theme="light"] .admin-stat-filter.is-active {
  border-color: rgba(171, 120, 28, 0.55);
  background: linear-gradient(135deg, rgba(213, 169, 79, 0.26), rgba(255, 255, 255, 0.96));
}

html[data-theme="light"] .admin-stat-filter small,
html[data-theme="light"] .driver-account-search > label,
html[data-theme="light"] .driver-account-search small { color: #665e52; }

html[data-theme="light"] .driver-account-search > div {
  border-color: rgba(65, 47, 18, 0.18);
  background: #ffffff;
}

html[data-theme="light"] .driver-account-search input { color: #1d1912; }
html[data-theme="light"] .driver-account-search button { border-left-color: rgba(65, 47, 18, 0.12); background: #eee7da; }

html[data-theme="light"] .admin-filter { color: #554d42; }
html[data-theme="light"] .admin-filters { background: #eee6d8; }
html[data-theme="light"] .roster-form { background: #fff9ed; }
html[data-theme="light"] .roster-form .field label { color: #51493f; }
html[data-theme="light"] .roster-form input { color: #1d1912; background: #ffffff; border-color: rgba(65, 47, 18, 0.18); }
html[data-theme="light"] .review-action:not(.approve):not(.danger) { color: #29231a; background: #eee7da; }

/* Secure Driver dashboard */
.driver-dashboard-shell {
  width: min(1180px, calc(100% - 40px));
}

.driver-welcome {
  align-items: flex-end;
}

.driver-active-badge {
  padding: 10px 16px;
  font-size: 0.82rem;
  box-shadow: 0 0 0 6px rgba(78, 177, 118, 0.06);
}

.driver-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.5fr);
  gap: 22px;
}

.driver-dashboard-grid .admin-section {
  margin-top: 0;
}

.driver-access-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(213, 169, 79, 0.34);
  background:
    radial-gradient(circle at 100% 0, rgba(213, 169, 79, 0.2), transparent 16rem),
    rgba(17, 18, 18, 0.92);
}

.driver-access-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  place-items: center;
  color: #102118;
  background: #78c59c;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(120, 197, 156, 0.08);
  font-size: 1.5rem;
  font-weight: 900;
}

.driver-access-card h2 {
  margin: 0 0 12px;
}

.driver-access-card > p:not(.eyebrow) {
  color: #b8b3ab;
  line-height: 1.7;
}

.driver-access-meta {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.driver-access-meta span,
.driver-access-meta strong {
  display: block;
}

.driver-access-meta span {
  color: #98938b;
  font-size: 0.78rem;
}

.driver-access-meta strong {
  margin-top: 3px;
  color: #eeeae2;
  font-size: 0.9rem;
}

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

#driver-profile {
  scroll-margin-top: 24px;
}

.driver-photo-editor {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.driver-photo-frame {
  position: relative;
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(213,169,79,.7);
  border-radius: 50%;
  color: #17120b;
  background: linear-gradient(145deg, #f2d488, #d5a94f);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  font-size: 2rem;
  font-weight: 900;
}

.driver-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-photo-form label {
  display: block;
  margin-bottom: 5px;
  color: #eeeae2;
  font-weight: 900;
}

.driver-photo-form > p {
  margin: 0 0 12px;
  color: #98938b;
  font-size: .84rem;
}

.driver-photo-form input[type="file"] {
  width: 100%;
  padding: 10px;
  color: #c9c4bb;
  border: 1px dashed rgba(213,169,79,.45);
  border-radius: 10px;
  background: rgba(0,0,0,.16);
}

.driver-photo-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.driver-photo-actions .btn {
  padding: 10px 14px;
}

.driver-photo-form .form-status {
  min-height: 1.3em;
  margin-top: 10px;
  font-size: .82rem;
}

.driver-review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.driver-review-avatar {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  object-fit: cover;
  border: 2px solid rgba(213,169,79,.55);
  border-radius: 50%;
}

.driver-review-avatar-fallback {
  color: #17120b;
  background: #d5a94f;
  font-size: .9rem;
  font-weight: 900;
}

.driver-profile-details .driver-detail {
  min-height: 72px;
}

.driver-detail-wide {
  grid-column: 1 / -1;
}

.driver-next-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.driver-next-section .admin-section-head {
  flex: 1;
  margin-bottom: 0;
}

.driver-quick-links {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

html[data-theme="light"] .driver-access-card {
  background:
    radial-gradient(circle at 100% 0, rgba(213, 169, 79, 0.2), transparent 16rem),
    #fffdf8;
}

html[data-theme="light"] .driver-access-card > p:not(.eyebrow),
html[data-theme="light"] .driver-access-meta span {
  color: #665e52;
}

html[data-theme="light"] .driver-access-meta {
  border-top-color: rgba(65, 47, 18, 0.12);
}

html[data-theme="light"] .driver-access-meta strong {
  color: #1d1912;
}

html[data-theme="light"] .driver-photo-editor {
  border-color: rgba(65,47,18,.12);
  background: #fff9ed;
}

html[data-theme="light"] .driver-photo-form label { color: #1d1912; }
html[data-theme="light"] .driver-photo-form > p { color: #665e52; }
html[data-theme="light"] .driver-photo-form input[type="file"] { color: #51493f; background: #fff; }

@media (max-width: 1100px) {
  .portal-layout { grid-template-columns: 244px minmax(0, 1fr); }
  .portal-sidebar { margin-left: 12px; padding-inline: 12px; }
  .portal-nav-item { grid-template-columns: 40px minmax(0, 1fr); }
  .portal-coming-soon { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .portal-layout { display: block; }
  .portal-sidebar {
    position: relative;
    top: auto;
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 12px;
    padding: 10px 12px 12px;
    overflow: visible;
    border-radius: 19px;
  }
  .portal-side-brand {
    grid-column: 1;
    grid-row: 1;
    min-height: 52px;
    justify-content: flex-start;
    padding: 0 8px;
    border-bottom: 0;
  }
  .portal-side-brand img { width: 142px; height: 46px; }
  .portal-side-context { display: none; }
  .portal-side-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 7px;
    padding-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .portal-nav-item {
    min-width: 184px;
    min-height: 54px;
    grid-template-columns: 38px minmax(0, 1fr);
    flex: 0 0 auto;
    padding: 7px 10px;
  }
  a.portal-nav-item:hover { transform: translateY(-1px); }
  .portal-nav-icon { width: 38px; height: 38px; border-radius: 10px; }
  .portal-nav-svg { width: 20px; height: 20px; }
  .portal-nav-disabled { min-width: 245px; margin-top: 0; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .portal-coming-soon { grid-column: auto; }
  .portal-side-account {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 40px 36px;
    margin: 0;
    padding: 0;
    border-top: 0;
  }
  .portal-side-avatar { width: 40px; height: 40px; }
  .portal-side-account-copy { display: none; }
}

@media (max-width: 1050px) {
  .driver-review-list { grid-template-columns: 1fr; }
  .driver-dashboard-grid { grid-template-columns: 1fr; }
  .driver-next-section { align-items: flex-start; flex-direction: column; }
  .roster-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-notes { grid-column: span 1; }
  .history-row { grid-template-columns: 1fr 1fr; }
  .history-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .admin-shell { width: min(100% - 22px, 1440px); padding-top: 12px; }
  .admin-topbar { align-items: flex-start; padding: 12px; }
  .admin-identity { align-items: flex-end; gap: 8px; font-size: 0.8rem; }
  .admin-identity strong { max-width: 170px; overflow-wrap: anywhere; }
  .driver-header-identity { gap: 7px; }
  .driver-header-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 0.72rem; }
  .admin-logout { padding: 8px 10px; font-size: 0.75rem; }
  .admin-heading { align-items: flex-start; flex-direction: column; padding: 42px 4px 24px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-section { padding: 18px 14px; }
  .admin-section-head { align-items: flex-start; flex-direction: column; }
  .driver-account-search { width: 100%; }
  .admin-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .admin-filter { white-space: nowrap; }
  .driver-details { grid-template-columns: 1fr; }
  .driver-welcome { align-items: flex-start; }
  .driver-photo-editor { grid-template-columns: 1fr; justify-items: center; }
  .driver-photo-form { width: 100%; }
  .driver-profile-details { grid-template-columns: 1fr; }
  .driver-detail-wide { grid-column: auto; }
  .driver-quick-links { width: 100%; flex-direction: column; }
  .driver-quick-links .btn { width: 100%; }
  .driver-review-head { align-items: flex-start; }
  .roster-form { grid-template-columns: 1fr; }
  .roster-row { align-items: flex-start; flex-direction: column; }
  .roster-meta { margin-left: 0; flex-wrap: wrap; }
  .history-row { grid-template-columns: 1fr; }
  .history-note { grid-column: auto; }
  .history-meta { text-align: left; }
}

@media (max-width: 460px) {
  .portal-sidebar { margin: 8px; padding-inline: 8px; }
  .portal-side-brand img { width: 112px; }
  .portal-side-account { grid-template-columns: 36px 34px; gap: 6px; }
  .portal-side-avatar { width: 36px; height: 36px; }
  .portal-side-logout { width: 34px; height: 34px; }
  .portal-nav-item { min-width: 138px; }
  .portal-nav-copy small { display: none; }
  .portal-nav-disabled { min-width: 215px; }
  .admin-brand { width: 108px; }
  .admin-stat { padding: 16px; }
  .admin-stat strong { font-size: 1.6rem; }
  .driver-review-head { flex-direction: column; }
  .driver-photo-actions { flex-direction: column; }
  .driver-photo-actions .btn { width: 100%; }
  .driver-review-actions { justify-content: stretch; }
  .review-action { flex: 1 1 100%; }
}

@media (max-width: 960px) and (max-height: 700px) {
  .site-nav {
    padding-top: 10px;
  }

  .site-nav a {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .site-nav .nav-cta {
    min-height: 46px;
    margin-top: 10px;
  }
}

/* Driver Training Center */
.training-shell {
  width: min(1240px, calc(100% - 40px));
}

.training-topnav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}

.training-topnav a {
  padding: 9px 13px;
  color: #aaa59d;
  font-size: .82rem;
  font-weight: 800;
  border-radius: 8px;
}

.training-topnav a.is-active {
  color: #17130d;
  background: var(--gold);
}

.training-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 44px;
  align-items: center;
  min-height: 390px;
  margin: 28px 0 22px;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(213,169,79,.32);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(7,8,8,.97) 0%, rgba(7,8,8,.88) 48%, rgba(7,8,8,.54) 100%),
    url("images/training-portal.png") center 42% / cover;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

.training-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -52% 34%;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,169,79,.22), transparent 66%);
  pointer-events: none;
}

.training-hero-copy,
.training-ring { position: relative; z-index: 1; }
.training-hero h1 { max-width: 850px; margin: 0; font-family: "Manrope",sans-serif; font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: 1.02; }
.training-hero-copy > p:not(.eyebrow) { max-width: 720px; margin: 20px 0 0; color: #c8c2b8; font-size: 1.05rem; line-height: 1.75; }
.training-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.training-save-note { color: #a8a29a; font-size: .78rem; }

.training-ring { display: grid; width: 190px; height: 190px; place-items: center; }
.training-ring svg { position: absolute; inset: 0; width: 100%; transform: rotate(-90deg); }
.training-ring circle { fill: none; stroke-width: 7; }
.training-ring-track { stroke: rgba(255,255,255,.12); }
.training-ring-value { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset .7s ease; }
.training-ring div { display: grid; text-align: center; }
.training-ring strong { font-family: "Manrope",sans-serif; font-size: 2.6rem; line-height: 1; }
.training-ring span { margin-top: 7px; color: #aaa59d; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.training-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.training-summary article {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}

.training-summary span,
.training-summary strong { display: block; }
.training-summary span { color: #9e9991; font-size: .78rem; font-weight: 700; }
.training-summary strong { margin-top: 4px; color: var(--gold-bright); font-family: "Manrope",sans-serif; font-size: 1.7rem; }
.training-filter-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.05); }
.training-course-grid { display: grid; gap: 12px; }
.training-loading { padding: 36px; color: #aaa59d; text-align: center; }

.training-course-card {
  --course-accent: var(--gold);
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) 160px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.training-course-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--course-accent) 55%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--course-accent) 8%, transparent), rgba(255,255,255,.035)); }
.training-course-card.accent-blue { --course-accent: #65aee8; }
.training-course-card.accent-red { --course-accent: #e47777; }
.training-course-card.accent-orange { --course-accent: #e69b5d; }
.training-course-card.accent-green { --course-accent: #78c59c; }
.training-course-card.accent-purple { --course-accent: #b49be8; }
.training-course-index { display: grid; width: 54px; height: 54px; place-items: center; color: var(--course-accent); border: 1px solid color-mix(in srgb, var(--course-accent) 45%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--course-accent) 10%, transparent); font-family: "Manrope",sans-serif; font-size: 1.05rem; font-weight: 900; }
.training-course-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.training-course-tags span { padding: 4px 7px; color: #aaa59d; border-radius: 5px; background: rgba(255,255,255,.06); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.training-course-main h3 { margin: 0; font-size: 1.15rem; }
.training-course-main > p { margin: 6px 0 0; color: #aaa59d; font-size: .9rem; line-height: 1.55; }
.training-course-meta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 10px; color: #918c84; font-size: .73rem; }
.training-course-meta strong { color: var(--course-accent); }
.training-card-progress { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.training-card-progress span { display: block; height: 100%; border-radius: inherit; background: var(--course-accent); }
.training-course-action { display: grid; justify-items: end; gap: 15px; text-align: right; }
.training-status { display: inline-flex; width: max-content; padding: 6px 9px; border-radius: 99px; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.training-status.status-not_started { color: #b7b1a8; background: rgba(255,255,255,.075); }
.training-status.status-in_progress { color: #ffe1a1; background: rgba(213,169,79,.14); }
.training-status.status-completed { color: #a9edc5; background: rgba(78,177,118,.15); }
.training-disclaimer { margin: 20px 8px 0; padding: 15px 18px; color: #938e86; border-left: 3px solid var(--gold); font-size: .82rem; line-height: 1.6; }

/* Individual lesson */
.training-lesson-shell { width: min(1180px, calc(100% - 40px)); }
.lesson-progress-bar { position: sticky; top: 0; z-index: 12; height: 4px; margin-top: 10px; overflow: hidden; background: rgba(255,255,255,.06); }
.lesson-progress-bar span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .1s linear; }
.lesson-header { padding: 60px 6px 32px; }
.lesson-back { display: inline-block; margin-bottom: 28px; color: var(--gold-bright); font-size: .83rem; font-weight: 800; }
.lesson-header-grid { display: grid; grid-template-columns: minmax(0,1fr) 110px; gap: 30px; align-items: end; }
.lesson-header h1 { max-width: 880px; margin: 0; font-family: "Manrope",sans-serif; font-size: clamp(2.5rem,5vw,5.2rem); line-height: 1.03; }
.lesson-summary { max-width: 760px; margin: 18px 0 0; color: #b8b3ab; font-size: 1.04rem; line-height: 1.7; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lesson-meta span { padding: 7px 10px; color: #cbc5bc; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(255,255,255,.04); font-size: .75rem; font-weight: 800; }
.lesson-number { color: rgba(213,169,79,.25); font-family: "Manrope",sans-serif; font-size: 6rem; font-weight: 900; line-height: .85; text-align: right; }
.lesson-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
.lesson-content { margin-top: 0; padding: clamp(24px,5vw,54px); }
.lesson-sidebar { position: sticky; top: 24px; display: grid; gap: 16px; }
.lesson-sidebar .admin-section { margin-top: 0; }
.lesson-checkpoint h2 { margin-bottom: 10px; }
.lesson-checkpoint > p:not(.eyebrow) { color: #aaa59d; font-size: .88rem; line-height: 1.6; }
.training-confirm { display: flex; gap: 10px; align-items: flex-start; color: #c8c2b8; font-size: .84rem; line-height: 1.45; cursor: pointer; }
.training-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold); }
.lesson-checkpoint .btn { width: 100%; margin-top: 17px; }
.lesson-checkpoint .btn:disabled { opacity: .42; cursor: not-allowed; }
.lesson-status-card { display: grid; gap: 5px; }
.lesson-status-card > span { color: #8f8a82; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.lesson-status-card > strong { color: var(--gold-bright); font-size: 1.25rem; }
.lesson-status-card > small { color: #9c978f; }
.lesson-status-card[data-status="completed"] > strong { color: #78c59c; }
.lesson-section { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 22px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.lesson-section:first-child { padding-top: 0; }
.lesson-section-marker { display: grid; align-content: start; justify-items: center; gap: 9px; color: var(--gold); }
.lesson-section-number { color: var(--gold); font-family: "Manrope",sans-serif; font-size: .82rem; font-weight: 900; }
.lesson-section-marker svg { width: 38px; height: 38px; padding: 8px; color: #8bc7ef; border: 1px solid rgba(139,199,239,.22); border-radius: 12px; background: rgba(33,104,151,.12); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lesson-section h2 { margin: 0 0 12px; font-size: clamp(1.35rem,2.5vw,2rem); }
.lesson-section p,
.lesson-section li { color: #c0bbb2; line-height: 1.75; }
.lesson-section p { margin: 0; }
.lesson-section ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; }
.lesson-section li::marker { color: var(--gold); }
.lesson-sources { margin-top: 30px; padding: 20px; border: 1px solid rgba(213,169,79,.2); border-radius: 13px; background: rgba(213,169,79,.05); }
.lesson-sources h2 { margin: 0 0 10px; font-size: 1rem; }
.lesson-sources div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lesson-sources a { color: var(--gold-bright); font-size: .8rem; font-weight: 700; }
.lesson-feature-image { margin: 0 0 34px; overflow: hidden; border-radius: 18px; }
.lesson-feature-image img { width: 100%; max-height: 480px; object-fit: cover; }
.lesson-video { position: relative; margin-bottom: 34px; padding-top: 56.25%; overflow: hidden; border-radius: 18px; background: #000; }
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-video-link { margin-bottom: 32px; }
.lesson-video-library { margin-top: 38px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.08); }
.lesson-resource-heading { margin-bottom: 18px; }
.lesson-resource-heading h2 { margin: 0 0 8px; font-size: clamp(1.45rem,2.5vw,2rem); }
.lesson-resource-heading > p:last-child { margin: 0; color: #a9a49c; line-height: 1.65; }
.lesson-video-grid { display: grid; gap: 18px; }
.lesson-video-card { overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.025); }
.lesson-video-card .lesson-video { margin: 0; border-radius: 0; }
.lesson-video-card .lesson-video-link { margin: 18px; }
.lesson-video-card > div:last-child { padding: 17px 19px 19px; }
.lesson-video-card h3 { margin: 0 0 5px; font-size: 1rem; }
.lesson-video-card p { margin: 0 0 9px; color: #969189; font-size: .78rem; }
.lesson-video-card a { color: var(--gold-bright); font-size: .78rem; font-weight: 800; }

.training-quiz { margin-top: 24px; scroll-margin-top: 20px; }
.quiz-question-list { display: grid; gap: 15px; }
.quiz-question { margin: 0; padding: 20px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; }
.quiz-question legend { display: flex; gap: 12px; padding: 0 8px; font-weight: 800; }
.quiz-question legend span { color: var(--gold); }
.quiz-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.quiz-options label { display: flex; gap: 9px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); cursor: pointer; }
.quiz-options label:has(input:checked) { border-color: rgba(213,169,79,.6); background: rgba(213,169,79,.1); }
.quiz-options input { accent-color: var(--gold); }
.quiz-feedback { min-height: 0; margin: 11px 0 0; padding: 0 11px; font-size: .8rem; line-height: 1.55; }
.quiz-feedback.is-correct { padding: 9px 11px; color: #b9f1cf; border-radius: 8px; background: rgba(66,173,108,.1); }
.quiz-feedback.is-incorrect { padding: 9px 11px; color: #ffd0b6; border-radius: 8px; background: rgba(219,110,74,.1); }
.quiz-submit-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.quiz-submit-row span { color: #99948b; font-size: .82rem; }
.quiz-submit-row span.is-error { color: #ffc1c1; }
.quiz-result { display: grid; grid-template-columns: 105px minmax(0,1fr) auto; gap: 22px; align-items: center; margin-top: 20px; padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.quiz-result.is-passed { border-color: rgba(120,197,156,.36); background: rgba(120,197,156,.07); }
.quiz-result.is-failed { border-color: rgba(230,155,93,.35); background: rgba(230,155,93,.06); }
.quiz-result > div:first-child span,
.quiz-result > div:first-child strong { display: block; text-align: center; }
.quiz-result > div:first-child span { color: #aaa59d; font-size: .72rem; }
.quiz-result > div:first-child strong { color: var(--gold-bright); font-family: "Manrope",sans-serif; font-size: 2.3rem; }
.quiz-result h3 { margin: 0; }
.quiz-result p { margin: 5px 0 0; color: #aaa59d; font-size: .86rem; }

/* Training administration */
.training-admin-heading { align-items: flex-end; }
.training-admin-stats { margin-top: 0; }
.admin-course-list { display: grid; gap: 9px; }
.admin-course-row { display: grid; grid-template-columns: 48px minmax(0,1fr) 100px 120px; gap: 15px; align-items: center; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.035); }
.admin-course-number { display: grid; width: 42px; height: 42px; place-items: center; color: var(--gold); border-radius: 11px; background: rgba(213,169,79,.09); font-family: "Manrope",sans-serif; font-weight: 900; }
.admin-course-copy > div { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-course-copy > div span { color: #9c978f; font-size: .61rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.admin-course-copy h3 { margin: 4px 0 0; }
.admin-course-copy p { margin: 4px 0 0; color: #9f9a92; font-size: .81rem; line-height: 1.45; }
.admin-course-meta { display: grid; gap: 3px; color: #9f9a92; font-size: .75rem; }
.admin-course-meta strong { color: #d5d0c7; }
.admin-course-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.danger-link { color: #e88a8a !important; }
.training-driver-tools { display: grid; grid-template-columns: minmax(240px,1fr) minmax(280px,1fr); gap: 10px; min-width: min(100%,560px); }
.training-driver-select,
.training-driver-search { display: grid; gap: 5px; }
.training-driver-select span,
.training-driver-search span { color: #aaa59d; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.training-driver-select select,
.training-driver-search input { width: 100%; padding: 10px 12px; color: #f3efe7; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: #0f1010; }
.driver-search-empty { grid-column: 1/-1; }
.driver-training-overview { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.driver-training-overview > div { padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); }
.driver-training-overview span,
.driver-training-overview strong,
.driver-training-overview small { display: block; }
.driver-training-overview span { color: #98938b; font-size: .7rem; }
.driver-training-overview strong { margin-top: 4px; font-size: 1.1rem; }
.driver-training-overview small { margin-top: 2px; color: #aaa59d; overflow-wrap: anywhere; }
.training-record-table-wrap { overflow-x: auto; }
.training-record-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.training-record-table th { padding: 10px 12px; color: #98938b; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.training-record-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.065); }
.training-record-table td:first-child { min-width: 230px; }
.training-record-table td strong,
.training-record-table td span { display: block; }
.training-record-table td:first-child span { margin-top: 3px; color: #938e86; font-size: .72rem; }

.lesson-builder-dialog { width: min(920px,calc(100% - 26px)); max-height: calc(100vh - 30px); overflow-y: auto; }
.lesson-builder-dialog > form { padding: 30px; }
.lesson-builder-dialog > form > p:not(.eyebrow) { margin-top: 4px; }
.lesson-builder-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 20px; }
.lesson-builder-grid .full { grid-column: 1/-1; }
.lesson-builder-dialog .field label { display: block; margin-bottom: 6px; color: #c4beb5; font-size: .79rem; font-weight: 700; }
.lesson-builder-dialog .field label span { color: #8f8a82; font-weight: 500; }
.lesson-builder-dialog input,
.lesson-builder-dialog textarea,
.lesson-builder-dialog select { width: 100%; padding: 11px 12px; color: #f3efe7; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: #0f1010; }
.lesson-builder-dialog small { display: block; margin-top: 5px; color: #8f8a82; }
.lesson-question-builder { display: grid; gap: 13px; margin-top: 22px; }
.builder-question { position: relative; padding: 16px; border: 1px solid rgba(213,169,79,.2); border-radius: 13px; }
.builder-question legend { padding: 0 8px; color: var(--gold); font-weight: 900; }
.builder-remove { position: absolute; top: 12px; right: 14px; font-size: .74rem; }
.builder-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.lesson-edit-dialog { width: min(1040px,calc(100% - 26px)); }
.edit-builder-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); }
.edit-builder-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.edit-builder-heading h3 { margin: 2px 0 0; }
.edit-section-builder { display: grid; gap: 13px; }
.edit-section textarea { resize: vertical; }
.edit-current-media { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px; color: #aaa59d; border: 1px dashed rgba(255,255,255,.15); border-radius: 10px; }
.edit-current-media img { width: 96px; height: 58px; object-fit: cover; border-radius: 7px; }
.edit-current-media a { color: var(--gold-bright); font-weight: 800; }
.answer-review-dialog { width: min(760px,calc(100% - 26px)); max-height: calc(100vh - 30px); overflow-y: auto; }
.answer-dialog-inner { position: relative; padding: 28px; }
.answer-attempt { margin-top: 18px; padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; }
.answer-attempt header { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.answer-attempt header span { color: #9f9a92; font-size: .75rem; }
.answer-row { margin-top: 9px; padding: 11px; border-left: 3px solid #78c59c; border-radius: 7px; background: rgba(120,197,156,.06); }
.answer-row.is-incorrect { border-left-color: #e47777; background: rgba(228,119,119,.06); }
.answer-row p { margin: 0 0 5px; color: #ddd7ce; font-weight: 700; }
.answer-row span { display: block; color: #aaa59d; font-size: .77rem; }

html[data-theme="light"] .training-topnav { background: #eee6d8; border-color: rgba(65,47,18,.11); }
html[data-theme="light"] .training-topnav a { color: #5b5245; }
html[data-theme="light"] .training-hero { color: #f6f1e9; }
html[data-theme="light"] .training-summary article,
html[data-theme="light"] .training-course-card,
html[data-theme="light"] .admin-course-row,
html[data-theme="light"] .driver-training-overview > div { background: #fff; border-color: rgba(65,47,18,.12); }
html[data-theme="light"] .training-summary span,
html[data-theme="light"] .training-course-main > p,
html[data-theme="light"] .training-course-tags span,
html[data-theme="light"] .training-course-meta,
html[data-theme="light"] .training-disclaimer,
html[data-theme="light"] .lesson-summary,
html[data-theme="light"] .lesson-section p,
html[data-theme="light"] .lesson-section li,
html[data-theme="light"] .lesson-checkpoint > p:not(.eyebrow),
html[data-theme="light"] .training-confirm,
html[data-theme="light"] .admin-course-copy p,
html[data-theme="light"] .driver-training-overview span,
html[data-theme="light"] .driver-training-overview small { color: #665e52; }
html[data-theme="light"] .training-filter-row { background: #eee6d8; }
html[data-theme="light"] .training-course-tags span { background: #f1eadf; }
html[data-theme="light"] .training-card-progress { background: #e8e0d5; }
html[data-theme="light"] .lesson-meta span,
html[data-theme="light"] .quiz-question,
html[data-theme="light"] .quiz-options label { color: #30291f; border-color: rgba(65,47,18,.13); background: #fff; }
html[data-theme="light"] .lesson-section { border-bottom-color: rgba(65,47,18,.11); }
html[data-theme="light"] .training-driver-select select,
html[data-theme="light"] .training-driver-search input,
html[data-theme="light"] .lesson-builder-dialog input,
html[data-theme="light"] .lesson-builder-dialog textarea,
html[data-theme="light"] .lesson-builder-dialog select { color: #1d1912; border-color: rgba(65,47,18,.18); background: #fff; }
html[data-theme="light"] .training-record-table th,
html[data-theme="light"] .training-record-table td { border-color: rgba(65,47,18,.1); }
html[data-theme="light"] .edit-builder-section { border-top-color: rgba(65,47,18,.12); }
html[data-theme="light"] .edit-current-media { color: #665e52; border-color: rgba(65,47,18,.18); background: #fff; }

@media (max-width: 980px) {
  .training-hero { grid-template-columns: 1fr; }
  .training-ring { display: none; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .admin-course-row { grid-template-columns: 48px minmax(0,1fr) 100px; }
  .admin-course-actions { grid-column: 2/-1; justify-content: flex-start; }
  .driver-training-overview { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .training-shell,
  .training-lesson-shell { width: min(100% - 22px,1240px); }
  .training-topnav { order: 3; width: 100%; }
  .training-topnav a { flex: 1; text-align: center; }
  .training-hero { min-height: 430px; margin-top: 14px; padding: 32px 22px; background-position: 62% center; }
  .training-hero h1 { font-size: clamp(2.3rem,12vw,3.7rem); }
  .training-summary { grid-template-columns: repeat(2,1fr); }
  .training-section-head { align-items: stretch; }
  .training-filter-row { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .training-filter-row button { white-space: nowrap; }
  .training-course-card { grid-template-columns: 48px minmax(0,1fr); padding: 15px; }
  .training-course-index { width: 42px; height: 42px; }
  .training-course-action { grid-column: 2; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; }
  .lesson-header { padding-top: 38px; }
  .lesson-header-grid { grid-template-columns: 1fr; }
  .lesson-number { display: none; }
  .lesson-sidebar { grid-template-columns: 1fr; }
  .lesson-content { padding: 24px 18px; }
  .lesson-section { grid-template-columns: 32px minmax(0,1fr); gap: 12px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-result { grid-template-columns: 80px 1fr; }
  .quiz-result .btn { grid-column: 1/-1; width: 100%; }
  .admin-course-row { grid-template-columns: 42px minmax(0,1fr); }
  .admin-course-meta { grid-column: 2; display: flex; gap: 12px; }
  .admin-course-actions { grid-column: 2; }
  .driver-training-overview { grid-template-columns: 1fr 1fr; }
  .training-progress-head { align-items: stretch; }
  .training-driver-tools { width: 100%; min-width: 0; }
  .lesson-builder-grid,
  .builder-options { grid-template-columns: 1fr; }
  .edit-builder-heading { align-items: flex-start; flex-direction: column; }
  .answer-attempt header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .training-summary { grid-template-columns: 1fr 1fr; }
  .training-course-card { grid-template-columns: 1fr; }
  .training-course-index { display: none; }
  .training-course-action { grid-column: 1; }
  .driver-training-overview { grid-template-columns: 1fr; }
  .training-driver-tools { grid-template-columns: 1fr; }
}

/* =====================================
   TRUSTED COMPANIES
===================================== */

.trust-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(213, 169, 79, 0.14),
      transparent 40%
    ),
    linear-gradient(180deg, #101214, #090a0b);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-section::before {
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(213, 169, 79, 0.13);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.trust-heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.trust-heading .eyebrow {
  justify-content: center;
}

.trust-heading .lead {
  margin-inline: auto;
}

.trust-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.trust-grid--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.trust-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.trust-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 30%;
  height: 300%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  transform: rotate(25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.trust-card:hover {
  transform: translateY(-8px);
  border-color: rgba(213, 169, 79, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.trust-card:hover::after {
  left: 130%;
}

.trust-logo {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 45px;
  background: #ffffff;
  border-radius: 18px;
}

.trust-logo img {
  width: auto;
  max-width: 75%;
  max-height: 100px;
  object-fit: contain;
}

.trust-card-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px 18px 20px;
}

.trust-number {
  color: #f1d47d;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.trust-card-content h3 {
  margin-bottom: 8px;
  color: #f6f3ea;
}

.trust-card-content p {
  margin: 0;
  color: #a6a8aa;
}

.trust-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 18px 18px;
  padding: 8px 13px;
  color: #c9c9c6;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.trust-status i {
  width: 7px;
  height: 7px;
  background: #d5a94f;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(213, 169, 79, 0.8);
}

/* Trusted companies — mobile */
@media (max-width: 680px) {
  .trust-section {
    padding: 80px 0;
  }

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

  .trust-logo {
    min-height: 170px;
    padding: 34px;
  }
}

/* =====================================
   DAY / NIGHT THEME TOGGLE
===================================== */

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --panel: #ffffff;
  --panel-2: #f2ecdf;
  --paper: #fffdf8;
  --muted: #70695d;
  --muted-light: #4e483e;
  --line: rgba(55, 42, 19, 0.15);
  --line-gold: rgba(142, 100, 34, 0.32);
  --shadow: 0 24px 65px rgba(80, 57, 18, 0.13);
}

.theme-toggle {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 100002;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--gold-bright);
  background: rgba(9, 10, 11, 0.9);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.theme-toggle--auth {
  top: 24px;
  left: 24px;
  right: auto;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  border-color: var(--gold-bright);
  box-shadow: 0 16px 40px rgba(213, 169, 79, 0.22);
}

.theme-icon {
  grid-area: 1 / 1;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
  transition: opacity .22s ease, transform .3s ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(.55) rotate(-45deg);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: scale(.55) rotate(45deg);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

html[data-theme="light"] body {
  color: #1d1912;
  background: #f8f5ed;
}

html[data-theme="light"] .theme-toggle {
  color: #8e6422;
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(142, 100, 34, 0.35);
  box-shadow: 0 12px 34px rgba(80, 57, 18, 0.15);
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.is-scrolled,
html[data-theme="light"] .page-header .site-header {
  background: rgba(255, 253, 248, 0.97);
  border-color: rgba(55, 42, 19, 0.13);
}

html[data-theme="light"] .site-nav a,
html[data-theme="light"] .menu-toggle {
  color: #272117;
}

html[data-theme="light"] .menu-toggle {
  background: rgba(142, 100, 34, 0.06);
  border-color: rgba(55, 42, 19, 0.18);
}

html[data-theme="light"] .site-nav {
  background: #fffdf8;
}

html[data-theme="light"] .nav-cta {
  color: #17130d !important;
  background: linear-gradient(135deg, #f1d47d, #d5a94f);
}

html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a[aria-current="page"] {
  color: #8a621e;
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .text-link,
html[data-theme="light"] .breadcrumb a,
html[data-theme="light"] .rank,
html[data-theme="light"] .course-state {
  color: #8a621e;
}

html[data-theme="light"] .gold-text {
  background: linear-gradient(110deg, #6f4911, #bd8730 55%, #7d5518);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .btn-secondary {
  color: #242018;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(55, 42, 19, 0.24);
}

html[data-theme="light"] .hero {
  background-color: #f8f5ed;
}

html[data-theme="light"] .hero::before {
  background: linear-gradient(90deg, rgba(255, 253, 248, .97) 0%, rgba(255, 253, 248, .84) 39%, rgba(255, 253, 248, .25) 70%, rgba(255, 253, 248, .08) 100%), linear-gradient(0deg, #f8f5ed 0%, transparent 22%);
}

html[data-theme="light"] .hero-copy .lead,
html[data-theme="light"] .hiring-copy .lead {
  color: #4f493f;
}

html[data-theme="light"] .stat-strip {
  background: rgba(255, 253, 248, 0.88);
  border-color: rgba(55, 42, 19, 0.14);
}

html[data-theme="light"] .stat {
  border-color: rgba(55, 42, 19, 0.14);
}

html[data-theme="light"] .stat strong {
  color: #8a621e;
}

html[data-theme="light"] .stat span {
  color: #4f493f;
}

html[data-theme="light"] .hero-particles {
  opacity: .38;
}

html[data-theme="light"] .section-light {
  color: #1d1912;
  background: #fffdf8;
}

html[data-theme="light"] .service-card,
html[data-theme="light"] .value-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .portal-card,
html[data-theme="light"] .portal-side,
html[data-theme="light"] .portal-main,
html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(55, 42, 19, 0.14);
  box-shadow: 0 18px 48px rgba(80, 57, 18, 0.07);
}

html[data-theme="light"] .section-light .value-card h3 {
  color: #1d1912;
}

html[data-theme="light"] .service-detail {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(55, 42, 19, 0.14);
}

html[data-theme="light"] .amazon-dsp-section {
  background: linear-gradient(180deg, #f8f5ed, #eee5d4);
}

html[data-theme="light"] .amazon-dsp-image {
  background: #ffffff;
  border-color: rgba(142, 100, 34, .28);
}

html[data-theme="light"] .owner-quote {
  color: #3f382e;
  background: rgba(213, 169, 79, .12);
}

html[data-theme="light"] .service-detail p,
html[data-theme="light"] .requirement-list li {
  color: #5f584d;
}

html[data-theme="light"] .official-logo-panel,
html[data-theme="light"] .president-panel,
html[data-theme="light"] .visual-panel {
  background: #f4ecdc;
  border-color: rgba(142, 100, 34, 0.24);
}

html[data-theme="light"] .card-icon,
html[data-theme="light"] .value-icon,
html[data-theme="light"] .service-detail-mark {
  color: #8a621e;
}

html[data-theme="light"] .card-icon,
html[data-theme="light"] .value-icon,
html[data-theme="light"] .service-detail-mark svg {
  background: linear-gradient(145deg, rgba(213, 169, 79, .16), rgba(255, 255, 255, .75));
  box-shadow: 0 14px 34px rgba(142, 100, 34, .11);
}

html[data-theme="light"] .visual-panel {
  color: #1d1912;
}

html[data-theme="light"] .hiring-showcase {
  background-color: #f8f5ed;
}

html[data-theme="light"] .hiring-showcase::before {
  background-image:
    linear-gradient(rgba(142, 100, 34, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 100, 34, .075) 1px, transparent 1px);
}

html[data-theme="light"] .application-section {
  background: linear-gradient(180deg, #f8f5ed, #eee5d4);
}

html[data-theme="light"] .quick-form,
html[data-theme="light"] .contact-form,
html[data-theme="light"] .auth-card {
  color: #19160f;
  background: #fffdf8;
  border: 1px solid rgba(55, 42, 19, 0.12);
}

html[data-theme="light"] .league-showcase {
  color: #1d1912;
  background: #f8f5ed;
  border-color: rgba(55, 42, 19, 0.14);
}

html[data-theme="light"] .league-visual::after {
  background: linear-gradient(90deg, transparent 58%, #f8f5ed), linear-gradient(0deg, rgba(255,253,248,.4), transparent 42%);
}

html[data-theme="light"] .reward-chip,
html[data-theme="light"] .mini-stat,
html[data-theme="light"] .course-item,
html[data-theme="light"] .leader-row.header {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(55, 42, 19, 0.1);
}

html[data-theme="light"] .reward-chip strong,
html[data-theme="light"] .mini-stat strong,
html[data-theme="light"] .contact-card strong,
html[data-theme="light"] .contact-card a {
  color: #1d1912;
}

html[data-theme="light"] .page-hero,
html[data-theme="light"] .driver-hero {
  background: radial-gradient(circle at 82% 10%, rgba(213,169,79,.2), transparent 31%), linear-gradient(180deg, #fffdf8, #f1eadc);
}

html[data-theme="light"] .progress-ring {
  background: conic-gradient(var(--gold-deep) 0 78%, #ded6c7 78% 100%);
}

html[data-theme="light"] .progress-ring::before {
  background: #ffffff;
}

html[data-theme="light"] .progress-ring span,
html[data-theme="light"] .points,
html[data-theme="light"] .tier-pill.gold {
  color: #7e581c;
}

html[data-theme="light"] .leaderboard {
  background: #ffffff;
  border-color: rgba(55, 42, 19, 0.14);
}

html[data-theme="light"] .tier-pill.platinum {
  color: #345e58;
  background: rgba(74, 129, 121, 0.12);
}

html[data-theme="light"] .status-pill {
  color: #276342;
  background: rgba(56, 139, 90, 0.13);
}

html[data-theme="light"] .auth-page {
  color: #1d1912;
  background: #f8f5ed;
}

html[data-theme="light"] .auth-panel {
  background: #f8f5ed;
}

html[data-theme="light"] .auth-tabs {
  background: #eee6d7;
  border-color: rgba(55, 42, 19, 0.13);
}

html[data-theme="light"] .auth-tab {
  color: #5e574c;
}

html[data-theme="light"] .auth-tab.is-active {
  color: #17130d;
  background: var(--gold);
}

html[data-theme="light"] .auth-form .field label {
  color: #4f493f;
}

html[data-theme="light"] .auth-form .field input,
html[data-theme="light"] .auth-form .field select {
  color: #1d1912;
  background: #ffffff;
  border-color: rgba(55, 42, 19, 0.18);
}

html[data-theme="light"] .auth-helper,
html[data-theme="light"] .auth-intro,
html[data-theme="light"] .auth-consent,
html[data-theme="light"] .auth-form-options,
html[data-theme="light"] .auth-note {
  color: #5e574c;
}

html[data-theme="light"] .auth-form .form-status.is-error {
  color: #a11d26;
}

html[data-theme="light"] .auth-visual-copy,
html[data-theme="light"] .auth-visual-copy .lead {
  color: #f8f5ed;
}

html[data-theme="light"] .auth-visual-copy .eyebrow {
  color: var(--gold-bright);
}

html[data-theme="light"] .trust-section {
  color: #1d1912;
  background: radial-gradient(circle at 50% 0%, rgba(213,169,79,.18), transparent 40%), linear-gradient(180deg, #fffdf8, #f1eadc);
  border-color: rgba(55, 42, 19, 0.13);
}

html[data-theme="light"] .trust-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(55, 42, 19, 0.14);
  box-shadow: 0 18px 48px rgba(80, 57, 18, 0.08);
}

html[data-theme="light"] .trust-card-content h3 {
  color: #1d1912;
}

html[data-theme="light"] .trust-status {
  color: #514a40;
  background: #eee6d7;
}

html[data-theme="light"] .site-footer {
  color: #1d1912;
  background: #fffdf8;
  border-color: rgba(55, 42, 19, 0.14);
}

html[data-theme="light"] .footer-col h3 {
  color: #8a621e;
}

html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-links span,
html[data-theme="light"] .footer-copy {
  color: #5e574c;
}

html[data-theme="light"] .footer-bottom {
  color: #746c60;
  border-color: rgba(55, 42, 19, 0.14);
}

html[data-theme="light"] .footer-social a {
  color: #8a621e;
  background: rgba(142, 100, 34, .07);
  border-color: rgba(142, 100, 34, .28);
}

html[data-theme="light"] .footer-social a:hover {
  color: #fffdf8;
  background: #8a621e;
}

@media (max-width: 960px) {
  .theme-toggle {
    top: 88px;
    right: 14px;
  }

  .theme-toggle--auth {
    top: 18px;
    left: 18px;
    right: auto;
  }

  html[data-theme="light"] .site-nav {
    background: #fffdf8;
  }
}

@media (max-width: 680px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
    top: 84px;
  }

  .theme-toggle--auth {
    top: 14px;
  }

  html[data-theme="light"] .hero::before {
    background: linear-gradient(90deg, rgba(255,253,248,.94), rgba(255,253,248,.55)), linear-gradient(0deg, #f8f5ed, transparent 46%);
  }

  .hiring-showcase {
    padding: 62px 0;
  }

  .team-carousel {
    min-height: 500px;
    border-radius: 23px;
  }

  .team-carousel::after {
    inset: 8px;
    border-radius: 16px;
  }

  .team-carousel-arrow {
    top: auto;
    bottom: 17px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .team-carousel-arrow:hover,
  .team-carousel-arrow:focus-visible {
    transform: scale(1.06);
  }

  .team-carousel-arrow--prev { left: 16px; }
  .team-carousel-arrow--next { right: 16px; }

  .team-carousel-footer {
    right: 70px;
    bottom: 23px;
    left: 70px;
    justify-content: center;
  }

  .team-carousel-count,
  .team-slide figcaption {
    display: none;
  }

  html[data-theme="light"] .league-visual::after {
    background: linear-gradient(0deg, #f8f5ed, transparent 42%);
  }
}


/* === MICA v3.1.0 Staff Portals === */
.staff-portals-menu{position:relative;display:inline-block}.staff-portals-menu summary{list-style:none;cursor:pointer;font:inherit;color:inherit;padding:.55rem .15rem}.staff-portals-menu summary::-webkit-details-marker{display:none}.staff-portals-menu summary::after{content:"⌄";margin-left:.42rem;font-size:.8em}.staff-portals-dropdown{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%);z-index:90;min-width:290px;padding:10px;background:#111315;border:1px solid rgba(223,184,105,.28);border-radius:16px;box-shadow:0 22px 50px rgba(0,0,0,.28)}.staff-portals-dropdown::before{content:"";position:absolute;top:-7px;left:50%;width:14px;height:14px;background:#111315;border-left:1px solid rgba(223,184,105,.28);border-top:1px solid rgba(223,184,105,.28);transform:translateX(-50%) rotate(45deg)}.staff-portals-dropdown a{display:flex!important;gap:12px;align-items:center;padding:12px 14px!important;border-radius:11px;color:#fff!important;text-decoration:none!important}.staff-portals-dropdown a:hover{background:linear-gradient(90deg,rgba(213,169,79,.18),rgba(255,255,255,.04))}.staff-portals-dropdown a>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(213,169,79,.16)}.staff-portals-dropdown strong{display:block;font-size:.94rem}.staff-portals-dropdown small{display:block;margin-top:2px;color:#aeb2b6;font-size:.72rem;font-weight:500}
.staff-login-body{margin:0;min-height:100vh;background:radial-gradient(circle at top,#292725 0,#111315 45%,#090a0b 100%);color:#fff}.staff-login-page{min-height:100vh;display:grid;place-items:center;padding:46px 18px;position:relative}.staff-login-back{position:fixed;z-index:5;top:20px;left:20px;padding:10px 14px;border-radius:999px;background:rgba(10,11,12,.72);backdrop-filter:blur(12px);color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.14);font-weight:700}.staff-login-card{--staff-bg:none;position:relative;isolation:isolate;width:min(100%,520px);min-height:760px;overflow:hidden;border-radius:28px;background:#111 center/cover no-repeat;background-image:var(--staff-bg);box-shadow:0 35px 90px rgba(0,0,0,.48),0 0 0 1px rgba(224,184,104,.24)}.staff-login-overlay{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(5,6,7,.08) 0%,rgba(5,6,7,.18) 26%,rgba(5,6,7,.82) 54%,rgba(5,6,7,.98) 100%),linear-gradient(135deg,transparent 52%,rgba(197,143,52,.20) 52.2%,transparent 68%)}.staff-login-brand{padding:28px}.staff-login-brand img{display:block;width:148px;max-height:90px;object-fit:contain;filter:drop-shadow(0 8px 22px rgba(0,0,0,.42))}.staff-login-content{position:absolute;left:0;right:0;bottom:0;padding:34px 34px 28px}.staff-login-icon{display:grid;place-items:center;width:72px;height:72px;margin-bottom:18px;border-radius:50%;font-size:30px;background:rgba(10,11,12,.82);border:2px solid #d9aa52;box-shadow:0 12px 35px rgba(0,0,0,.28)}.staff-login-content h1{margin:.15rem 0 .3rem;font-size:clamp(2.1rem,7vw,3rem);letter-spacing:-.04em}.staff-login-tagline{margin:0 0 24px;color:#e5c989;font-weight:700;letter-spacing:.13em;text-transform:uppercase;font-size:.75rem}.staff-login-form{display:grid;gap:14px}.staff-login-form .field{display:grid;gap:7px}.staff-login-form label{color:#e8e8e8;font-size:.78rem;font-weight:700}.staff-login-form input{width:100%;box-sizing:border-box;padding:15px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(14,16,18,.76);color:#fff;outline:none}.staff-login-form input:focus{border-color:#d5a94f;box-shadow:0 0 0 3px rgba(213,169,79,.15)}.staff-login-button{width:100%;justify-content:center;margin-top:4px}.staff-login-help{margin:16px 0 0;color:#b9bdc1;font-size:.77rem}.staff-login-help a{color:#e4bd70}.staff-version{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.13);color:#c8c8c8;text-align:center;font-size:.75rem}.staff-version span{padding:0 6px;color:#d5a94f}.staff-dashboard-shell{min-height:100vh;padding:34px;background:#f7f4ee}.staff-dashboard-top{max-width:1180px;margin:0 auto 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.staff-dashboard-top img{width:170px}.staff-dashboard-card{max-width:1180px;margin:auto;padding:42px;border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.09)}.staff-dashboard-version{margin-top:30px;color:#777;font-size:.8rem}@media (max-width:860px){.site-nav .staff-portals-menu{display:block;width:100%}.staff-portals-menu summary{padding:12px 0}.staff-portals-dropdown{position:static;transform:none;min-width:0;margin:4px 0 8px;box-shadow:none}.staff-portals-dropdown::before{display:none}.staff-login-card{min-height:720px}.staff-login-page{padding:76px 12px 18px}.staff-login-back{top:12px;left:12px}.staff-login-content{padding:26px 22px 22px}.staff-login-brand{padding:22px}.staff-login-brand img{width:132px}}

/* === MICA v3.5 Operations workspace === */
.operations-shell{width:min(1180px,calc(100% - 40px))}.operations-heading{align-items:flex-end}.operations-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.operations-action-card{position:relative;margin-top:0;color:inherit;text-decoration:none;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.operations-action-card::after{content:"";position:absolute;width:180px;height:180px;right:-75px;bottom:-95px;border-radius:50%;background:rgba(213,169,79,.12)}.operations-action-card:hover{transform:translateY(-3px);border-color:rgba(213,169,79,.46);box-shadow:0 22px 48px rgba(0,0,0,.16)}.operations-action-card h2{margin:.25rem 0 .7rem}.operations-action-card>p:not(.eyebrow){max-width:34rem;color:#736b60;line-height:1.65}.operations-card-icon,.operations-assignment-mark{display:grid;width:58px;height:58px;margin-bottom:26px;place-items:center;color:#17120b;border-radius:17px;background:linear-gradient(145deg,#f0cf7b,#d5a94f);box-shadow:0 12px 30px rgba(167,119,29,.2)}.operations-card-icon .portal-nav-svg,.operations-assignment-mark .portal-nav-svg{width:28px;height:28px}.operations-card-link{position:relative;z-index:1;display:inline-block;margin-top:18px;color:#8a6117;font-weight:900}.operations-status-panel{margin-top:22px}.operations-status-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.operations-status-list>span{display:block;padding:18px;border:1px solid rgba(65,47,18,.12);border-radius:15px;background:#fffaf0}.operations-status-list strong,.operations-status-list small{display:block}.operations-status-list strong{color:#272118}.operations-status-list small{margin-top:7px;color:#6f675d}.operations-module-badge{padding:10px 15px;border:1px solid rgba(213,169,79,.38);border-radius:999px;color:#75520f;background:rgba(213,169,79,.14);font-size:.78rem;font-weight:900}.operations-assignment-hero{display:flex;gap:24px;align-items:center;margin-top:0}.operations-assignment-hero .operations-assignment-mark{flex:0 0 72px;width:72px;height:72px;margin:0;border-radius:21px}.operations-assignment-hero h2{margin:.15rem 0 .55rem}.operations-assignment-hero p:last-child{margin-bottom:0;color:#6e665b;line-height:1.7}.operations-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.operations-step-grid .admin-section{margin-top:22px}.operations-step-grid article>span{display:inline-grid;width:36px;height:36px;place-items:center;border-radius:50%;color:#6b4a0d;background:#f1deb1;font-size:.75rem;font-weight:900}.operations-step-grid h2{margin:18px 0 8px}.operations-step-grid p{margin:0;color:#70685d;line-height:1.65}.operations-coming-panel{display:flex;align-items:center;justify-content:space-between;gap:24px}.operations-coming-panel h2{margin:.15rem 0 .55rem}.operations-coming-panel p:last-child{margin-bottom:0;color:#70685d}.operations-profile-card{max-width:900px;margin-top:0}.operations-profile-head{display:flex;align-items:center;gap:20px;margin-bottom:28px;padding-bottom:26px;border-bottom:1px solid rgba(65,47,18,.12)}.operations-profile-avatar{display:grid;flex:0 0 92px;width:92px;height:92px;place-items:center;border:3px solid rgba(213,169,79,.72);border-radius:50%;color:#17120b;background:linear-gradient(145deg,#f2d488,#d5a94f);box-shadow:0 12px 30px rgba(0,0,0,.12);font-size:1.5rem;font-weight:900}.operations-profile-head h2{margin:.18rem 0 .3rem}.operations-profile-head p:last-child{margin:0;color:#70685d}.operations-body .driver-detail{border-color:rgba(65,47,18,.12);background:#fffaf0}.operations-body .driver-detail span{color:#746b60}.operations-body .driver-detail strong{color:#272118}
@media(max-width:900px){.operations-overview-grid,.operations-step-grid{grid-template-columns:1fr}.operations-status-list{grid-template-columns:1fr}.operations-coming-panel{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.operations-shell{width:min(100% - 24px,1180px)}.operations-heading{align-items:flex-start}.operations-assignment-hero{align-items:flex-start;flex-direction:column}.operations-profile-head{align-items:flex-start;flex-direction:column}.operations-profile-avatar{width:78px;height:78px;flex-basis:78px}}

/* === MICA v3.6 Van Assignment & Driver Notifications === */
.driver-profile-editor{margin-top:22px}.driver-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.driver-profile-fields label,.assignment-upload-form label,.assignment-template-label{display:grid;gap:7px;color:#494238;font-weight:800}.driver-profile-fields input,.assignment-upload-form input,.assignment-template-label textarea{box-sizing:border-box;width:100%;padding:13px 14px;border:1px solid rgba(65,47,18,.2);border-radius:11px;background:#fff;color:#211b12;font:inherit;outline:none}.driver-profile-fields input:focus,.assignment-upload-form input:focus,.assignment-template-label textarea:focus{border-color:#b9862b;box-shadow:0 0 0 3px rgba(213,169,79,.17)}.driver-profile-fields input[readonly]{background:#f1ede5;color:#71695e}.driver-profile-fields small{color:#766e63;font-weight:500}.driver-profile-wide{grid-column:1/-1}.driver-profile-actions{display:flex;align-items:center;gap:18px;margin-top:24px}.driver-profile-actions .form-status{margin:0}.driver-profile-prompt h2{margin:.25rem 0 .55rem}.driver-profile-prompt p:not(.eyebrow){color:#70685d;line-height:1.65}.driver-profile-prompt .btn{display:inline-flex;margin-top:15px;text-decoration:none}
.assignment-workflow-card,.assignment-template-card,.assignment-review-card{margin-top:22px}.assignment-upload-form{display:grid;grid-template-columns:minmax(180px,.6fr) minmax(280px,1.4fr) auto;gap:16px;align-items:end}.assignment-upload-form .btn{min-height:49px}.assignment-format-note{margin:18px 0 0;color:#6f675d;font-size:.9rem}.assignment-format-note a{color:#8a6117;font-weight:900}.assignment-template-label textarea{resize:vertical;line-height:1.6}.assignment-token-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.assignment-token-list span{padding:7px 10px;border-radius:999px;background:#f2e6c8;color:#795613;font:700 .78rem ui-monospace,SFMono-Regular,Menlo,monospace}.assignment-status[data-kind="loading"]{background:#f4ead3;color:#66501f}.assignment-status[data-kind="error"]{background:#fde7e7;color:#8c1e27}.assignment-status[data-kind="success"]{background:#e1f3e8;color:#17633a}.assignment-table-wrap{overflow:auto;border:1px solid rgba(65,47,18,.13);border-radius:14px}.assignment-table{width:100%;min-width:1050px;border-collapse:collapse}.assignment-table th,.assignment-table td{padding:13px 12px;border-bottom:1px solid rgba(65,47,18,.1);text-align:left;vertical-align:middle}.assignment-table th{background:#f5efe3;color:#5f5547;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}.assignment-table td{color:#302a22;font-size:.88rem}.assignment-table tbody tr:last-child td{border-bottom:0}.assignment-table input{width:18px;height:18px;accent-color:#b17b20}.assignment-match{font-weight:900}.assignment-match-matched{color:#167142!important}.assignment-match-unmatched,.assignment-match-ambiguous,.assignment-match-duplicate,.assignment-match-invalid{color:#a02730!important}.assignment-send-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px}.assignment-send-row p{max-width:700px;margin:0;color:#6f675d;line-height:1.55}
.driver-assignment-overview{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:22px}.driver-current-assignment,.driver-notification-panel{margin-top:0}.assignment-live-badge{padding:7px 10px;border-radius:999px;background:#e1f3e8;color:#17633a;font-size:.72rem;font-weight:900;text-transform:uppercase}.driver-van-card{display:grid;grid-template-columns:1fr 1fr;gap:12px}.driver-van-card>div{padding:20px;border:1px solid rgba(153,106,25,.2);border-radius:15px;background:#fff8e7}.driver-van-card span,.driver-van-card strong{display:block}.driver-van-card span{color:#786e60;font-size:.78rem}.driver-van-card strong{margin-top:7px;color:#272017;font-size:1.35rem}.driver-assignment-instruction{margin:18px 0 0;color:#6f675d;line-height:1.6}.notification-count{display:inline-grid;min-width:24px;height:24px;padding:0 5px;place-items:center;border-radius:999px;background:#d5a94f;color:#17120b;font-size:.72rem;vertical-align:middle}.driver-notification-list{display:grid;gap:10px;max-height:340px;overflow:auto}.assignment-notice{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px;border:1px solid rgba(65,47,18,.12);border-radius:13px;background:#fbf8f2}.assignment-notice.is-unread{border-color:rgba(213,169,79,.55);background:#fff8e5}.assignment-notice strong,.assignment-notice p,.assignment-notice small{display:block}.assignment-notice p{margin:5px 0;color:#5f584e;line-height:1.45}.assignment-notice small{color:#898075}.assignment-read-button{flex:0 0 auto;padding:7px 9px;border:1px solid rgba(65,47,18,.15);border-radius:8px;background:#fff;color:#795613;font-weight:800;cursor:pointer}.assignment-feed-empty{color:#7a7267}.assignment-live-toast{position:fixed;z-index:9999;right:24px;bottom:24px;width:min(420px,calc(100% - 48px));padding:18px;border:1px solid rgba(213,169,79,.55);border-radius:15px;background:#161817;color:#fff;box-shadow:0 22px 55px rgba(0,0,0,.32);line-height:1.5}.driver-schedule-panel{margin-top:22px}.driver-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.driver-week-grid>div{padding:15px 10px;border:1px dashed rgba(65,47,18,.2);border-radius:12px;background:#fbf8f2;text-align:center}.driver-week-grid strong,.driver-week-grid span{display:block}.driver-week-grid strong{font-size:.8rem}.driver-week-grid span{margin-top:8px;color:#8b8378;font-size:.75rem}
@media(max-width:980px){.assignment-upload-form{grid-template-columns:1fr 1fr}.assignment-upload-form .btn{grid-column:1/-1}.driver-assignment-overview{grid-template-columns:1fr}.driver-week-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:680px){.driver-profile-fields,.assignment-upload-form,.driver-van-card{grid-template-columns:1fr}.driver-profile-wide,.assignment-upload-form .btn{grid-column:auto}.driver-profile-actions,.assignment-send-row{align-items:stretch;flex-direction:column}.driver-week-grid{grid-template-columns:repeat(2,1fr)}}

/* === MICA v3.6.2 High-contrast portal forms and assignment cards === */
.assignment-workflow-card,
.assignment-template-card,
.assignment-review-card,
.driver-profile-editor,
.driver-current-assignment,
.driver-notification-panel,
.driver-schedule-panel {
  color: #1d1912;
  background: #fffdf8;
  border-color: rgba(65, 47, 18, 0.2);
}

.assignment-workflow-card h2,
.assignment-template-card h2,
.assignment-review-card h2,
.driver-profile-editor h2,
.driver-current-assignment h2,
.driver-notification-panel h2,
.driver-schedule-panel h2 {
  color: #17130d;
}

.assignment-workflow-card .admin-section-copy,
.assignment-template-card .admin-section-copy,
.assignment-review-card .admin-section-copy,
.driver-profile-editor .admin-section-copy,
.driver-schedule-panel .admin-section-copy {
  color: #4f473d;
}

.assignment-upload-form label,
.assignment-template-label,
.driver-profile-fields label {
  color: #211b12;
  font-size: 0.9rem;
  font-weight: 900;
}

.assignment-upload-form input,
.assignment-template-label textarea,
.driver-profile-fields input {
  color: #17130d;
  background: #ffffff;
  border-color: #8c7b60;
}

.assignment-upload-form input::file-selector-button {
  margin-right: 12px;
  padding: 8px 11px;
  color: #17130d;
  border: 1px solid #b58a38;
  border-radius: 7px;
  background: #f0d58f;
  font-weight: 800;
  cursor: pointer;
}

.assignment-template-label textarea::placeholder,
.driver-profile-fields input::placeholder {
  color: #6b6256;
  opacity: 1;
}

.driver-profile-fields input[readonly] {
  color: #3f382e;
  background: #ebe4d7;
}

.driver-profile-fields small,
.assignment-format-note,
.assignment-send-row p {
  color: #51493e;
}

.assignment-table-wrap {
  background: #ffffff;
  border-color: #b9aa91;
}

.assignment-table th {
  color: #241e16;
  background: #eadfc9;
  border-bottom-color: #b9aa91;
}

.assignment-table td {
  color: #1d1912;
  background: #ffffff;
  border-bottom-color: #d8cebd;
}

.assignment-table tbody tr:nth-child(even) td {
  background: #faf6ed;
}

.driver-van-card > div {
  color: #1d1912;
  background: #fff3d5;
  border-color: #c79b42;
}

.driver-van-card > div > span {
  color: #4c4337;
  font-weight: 800;
}

.driver-van-card strong {
  color: #12100c;
  font-weight: 900;
}

.driver-van-card strong [data-assignment-van] {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.driver-assignment-instruction,
.assignment-feed-empty {
  color: #4f473d;
}

.assignment-notice strong {
  color: #17130d;
}

.assignment-notice p {
  color: #40392f;
}

.assignment-notice small {
  color: #62594c;
}

.driver-week-grid > div {
  color: #1d1912;
  background: #fffaf0;
  border-color: #9d8b70;
}

.driver-week-grid strong {
  color: #17130d;
  font-size: 0.86rem;
  font-weight: 900;
}

.driver-week-grid span {
  color: #51493e;
  font-size: 0.78rem;
  font-weight: 700;
}

/* === MICA v3.8 Push controls, photo contrast, and upcoming modules === */
.portal-layout [hidden] { display: none !important; }
.driver-profile-editor .driver-photo-editor {
  color: #211b12;
  background: #fff8e8;
  border-color: #b7a07a;
}
.driver-profile-editor .driver-photo-form label { color: #17130d; font-weight: 900; }
.driver-profile-editor .driver-photo-form > p,
.driver-profile-editor .driver-photo-form .form-status { color: #4e4232; }
.driver-profile-editor .driver-photo-form .form-status.is-error { color: #a01d2c; }
.driver-profile-editor .driver-photo-form .form-status.is-success { color: #166537; }
.driver-profile-editor .driver-photo-form input[type="file"] {
  color: #17130d;
  background: #fff;
  border: 1px solid #9f8760;
  border-radius: 10px;
  padding: 10px;
  max-width: 100%;
  font-size: 16px;
}
.driver-profile-editor .driver-photo-form input::file-selector-button {
  padding: 9px 12px;
  margin-right: 10px;
  color: #211b12;
  background: #f0d58f;
  border: 1px solid #af7d24;
  border-radius: 7px;
  font-weight: 800;
}
.driver-profile-editor .driver-photo-actions .btn-secondary,
.driver-push-panel .btn-secondary,
.assignment-template-actions .btn-secondary {
  color: #302310;
  background: #fff4d7;
  border-color: #b18535;
}
.driver-push-panel,.driver-upcoming-panel {
  color: #211b12;
  background: #fffdf8;
  border-color: #c7b48f;
  margin-top: 22px;
}
.driver-push-panel h2,.driver-upcoming-panel h2 { color: #17130d; }
.driver-push-panel p,.driver-push-panel small { color: #4e4232; line-height: 1.6; }
.push-actions,.assignment-template-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.push-status { font-weight: 800; margin-bottom: 8px; }
.push-status.is-error { color: #a01d2c; }
.assignment-template-actions > span { color: #4e4232; font-size: .86rem; }
.driver-upcoming-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.driver-upcoming-grid > article { display: flex; gap: 12px; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid #c9b795; border-radius: 14px; background: #fff7e4; }
.upcoming-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #f0d58f; color: #614412; border-radius: 12px; }
.module-coming-soon { display: inline-block; color: #385a88; background: #edf3fc; border: 1px solid #aac1df; border-radius: 999px; padding: 6px 10px; font-size: .72rem; font-weight: 900; }
@media(max-width:680px) {
  .driver-upcoming-grid { grid-template-columns: 1fr; }
  .push-actions,.assignment-template-actions { align-items: stretch; flex-direction: column; }
  .push-actions .btn,.assignment-template-actions .btn { width: 100%; }
}

/* === MICA v3.7 Paced sending and mobile navigation === */
.portal-menu-toggle {
  display: none;
}

.assignment-send-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.assignment-progress {
  margin-top: 18px;
  padding: 16px;
  color: #211b12;
  border: 1px solid #c7b48f;
  border-radius: 14px;
  background: #fff9eb;
}

.assignment-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.assignment-progress-head strong,
.assignment-progress-head span {
  color: #211b12;
}

.assignment-progress-head span {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
}

.assignment-progress progress {
  display: block;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: #b47b1f;
  background: #e8dec9;
}

.assignment-progress progress::-webkit-progress-bar { background: #e8dec9; }
.assignment-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #b47b1f, #e0b85d); }
.assignment-progress progress::-moz-progress-bar { background: linear-gradient(90deg, #b47b1f, #e0b85d); }
.assignment-send-sending { color: #865d13 !important; }
.assignment-send-sent { color: #167142 !important; }
.assignment-send-partial { color: #875b0a !important; }
.assignment-send-failed { color: #a02730 !important; }

@media (max-width: 900px) {
  .portal-sidebar {
    position: sticky;
    top: 8px;
    z-index: 80;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 8px 10px;
    overflow: visible;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  }

  .portal-side-brand {
    min-width: 0;
  }

  .portal-menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
    align-self: center;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #fff9ee;
    border: 1px solid rgba(213, 169, 79, 0.35);
    border-radius: 11px;
    background: rgba(213, 169, 79, 0.11);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
  }

  .portal-menu-bars {
    display: grid;
    width: 19px;
    gap: 4px;
  }

  .portal-menu-bars > span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: #e8c879;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .portal-sidebar.is-mobile-open .portal-menu-bars > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .portal-sidebar.is-mobile-open .portal-menu-bars > span:nth-child(2) { opacity: 0; }
  .portal-sidebar.is-mobile-open .portal-menu-bars > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .portal-side-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0 0 14px 14px;
    background: rgba(8, 10, 10, 0.96);
  }

  .portal-sidebar.is-mobile-open .portal-side-nav {
    display: grid;
  }

  .portal-nav-item,
  .portal-nav-disabled {
    width: auto;
    min-width: 0;
    margin-top: 0;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .portal-coming-soon {
    grid-column: 2;
    justify-self: start;
  }

  .portal-side-account {
    grid-column: 3;
  }

  .portal-side-version {
    display: none;
  }

  .portal-page {
    padding-bottom: 38px;
  }
}

@media (max-width: 680px) {
  .portal-sidebar {
    margin: 7px;
  }

  .portal-side-brand img {
    width: 108px;
  }

  .portal-menu-toggle > span:last-child {
    display: none;
  }

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

  .portal-nav-copy small {
    display: block;
  }

  .assignment-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .assignment-table,
  .assignment-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .assignment-table thead {
    display: none;
  }

  .assignment-table tbody {
    display: grid;
    gap: 12px;
  }

  .assignment-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid #c8b99e;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(42, 31, 13, 0.07);
  }

  .assignment-table td,
  .assignment-table tbody tr:nth-child(even) td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 45px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    background: #fff;
  }

  .assignment-table td::before {
    content: attr(data-label);
    color: #625748;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .assignment-send-row,
  .assignment-send-actions,
  .assignment-progress-head {
    align-items: stretch;
    flex-direction: column;
  }

  .assignment-send-actions .btn {
    width: 100%;
  }

  .assignment-progress-head span {
    text-align: left;
  }

  .assignment-live-toast {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}
/* v3.9 Weather and device settings */
.portal-page .driver-push-panel { margin:24px 0 28px; padding:24px; }
.driver-push-panel .push-actions { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0 14px; }
.driver-push-panel .push-status { margin:12px 0; }
.weather-page { min-width:0; }
.weather-page .weather-city-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:24px 0; }
.weather-page .admin-section { background:#fff; color:#172b3b; min-width:0; }
.weather-page .admin-section h2,.weather-page .admin-section h3 { color:#122536; }
.weather-page .admin-section p,.weather-page .admin-section small,.weather-page .admin-section .eyebrow { color:#425469; }
.weather-city-symbol { font-size:38px; color:#ad761b; }
.weather-hour-scroll { overflow-x:auto; padding:4px 0 14px; scrollbar-color:#b68b35 #eef2f5; }
.weather-hour-grid { display:flex; gap:10px; }
.weather-hour { flex:0 0 105px; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:16px 9px; border:1px solid #d9e1e8; border-radius:14px; background:#f5f8fb; color:#243b50; }
.weather-hour strong { color:#142c41; font-size:23px; }
.weather-hour time { font-weight:700; font-size:13px; }
.weather-hour-icon { font-size:30px; }
.weather-condition { font-size:12px; min-height:36px; }
.weather-page .weather-stale { color:#a13b12!important; font-weight:600; }
.weather-alert { border:1px solid #d4dee7; border-left:5px solid #b4862c; border-radius:12px; padding:18px; margin:15px 0; background:#fff9e9; }
.weather-alert.is-danger { background:#fff3ef; border-left-color:#bb3429; }
.weather-alert summary { cursor:pointer; color:#153b61; font-weight:700; padding:10px 0; }
.weather-official-text { white-space:pre-line; }
.weather-source { font-size:13px; line-height:1.7; }
/* Light-theme notification hotfix: keep the existing dark-theme palette. */
html[data-theme="light"] .admin-alert[data-kind="success"] {
  color: #14532d;
  background: #e6f4ea;
  border-color: #78aa88;
}
html[data-theme="light"] .assignment-live-toast {
  color: #14532d;
  background: #e6f4ea;
  border-color: #78aa88;
  box-shadow: 0 14px 36px rgba(20, 83, 45, .18);
}
@media(max-width:760px) { .weather-page .weather-city-grid { grid-template-columns:1fr; gap:16px; } .weather-page .admin-section { padding:18px; } .weather-page .admin-section-head { flex-wrap:wrap; gap:12px; } .portal-page .driver-push-panel { margin:18px 0 22px; padding:18px; } }

/* MICA v3.9.6: shared gold / charcoal palette. */
html[data-theme="light"] {
  --mica-page:#f6f1e7; --mica-panel:#fffdf7; --mica-card:#f8efd9;
  --mica-text:#241c10; --mica-muted:#62543d; --mica-accent:#79530e;
  --mica-line:#cbb58b; --mica-gradient:linear-gradient(135deg,#fffdf7,#f5e8c7);
  --mica-header:linear-gradient(120deg,#fff7e3,#ebd5a6);
  --mica-field:#fffefa; --mica-readonly:#eee5d4; --mica-shadow:0 12px 32px #76551814;
  --mica-ok:#16532e; --mica-ok-bg:#e7f3e8; --mica-error:#991f27; --mica-error-bg:#fff0ed;
  color-scheme:light;
}
html[data-theme="dark"],html:not([data-theme]) {
  --mica-page:#0c0c0b; --mica-panel:#181713; --mica-card:#242016;
  --mica-text:#fff5e0; --mica-muted:#d0c3ab; --mica-accent:#f0cd76;
  --mica-line:#73603b; --mica-gradient:linear-gradient(135deg,#242018,#14130f);
  --mica-header:linear-gradient(120deg,#30271a,#171510);
  --mica-field:#15140f; --mica-readonly:#29251c; --mica-shadow:0 12px 32px #00000040;
  --mica-ok:#b8efcb; --mica-ok-bg:#193321; --mica-error:#ffc4c4; --mica-error-bg:#3b1e1e;
  color-scheme:dark;
}
html[data-theme] body:is(.admin-body,.staff-login-body),html[data-theme] .staff-dashboard-shell {
  color:var(--mica-text);background:var(--mica-page);
}
html[data-theme] body.admin-body .portal-page :is(.admin-section,.admin-stat,.driver-access-card,.driver-upcoming-grid>article),
html[data-theme] body .admin-shell :is(.admin-section,.admin-stat,.driver-review-card),
html[data-theme] body .staff-dashboard-card {
  background:var(--mica-gradient);color:var(--mica-text);border-color:var(--mica-line);box-shadow:var(--mica-shadow);
}
html[data-theme] body.admin-body .portal-page :is(h1,h2,h3,strong),
html[data-theme] body .admin-shell :is(h1,h2,h3,strong),
html[data-theme] body .staff-dashboard-card :is(h1,h2,h3,strong) {color:var(--mica-text)}
html[data-theme] body.admin-body .portal-page :is(p,small,label,.driver-detail span,.driver-week-grid span,.admin-stat span,.assignment-format-note,.assignment-feed-empty),
html[data-theme] body .admin-shell :is(p,small,label,.driver-detail span,.admin-stat span) {color:var(--mica-muted)}
html[data-theme] body.admin-body .portal-page :is(.eyebrow,.gold-text,.operations-card-link,.weather-clock,.weather-city-symbol,.weather-source a),
html[data-theme] body .admin-shell :is(.eyebrow,.gold-text,.operations-card-link) {color:var(--mica-accent)}
html[data-theme] body.admin-body .portal-page :is(.driver-van-card>div,.driver-week-grid>div,.assignment-notice,.driver-detail,.operations-status-list>span,.weather-hour,.weather-summary,.assignment-progress),
html[data-theme] body .admin-shell :is(.driver-detail,.operations-status-list>span,.assignment-progress) {background:var(--mica-card);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body.admin-body .portal-page :is(.assignment-notice.is-unread,.weather-hour.is-current),
html[data-theme] body .admin-shell .admin-stat-filter.is-active {background:var(--mica-header);border-color:#b88b36;color:var(--mica-text);box-shadow:inset 3px 0 #d5a94f}
html[data-theme] body.admin-body .portal-page :is(.driver-profile-fields input,.driver-photo-form input,.assignment-upload-form input,.assignment-template-label textarea),
html[data-theme] body .admin-shell :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {color:var(--mica-text);background:var(--mica-field);border-color:var(--mica-line)}
html[data-theme] body.admin-body .portal-page input[readonly],html[data-theme] body .admin-shell input[readonly] {background:var(--mica-readonly);color:var(--mica-muted)}
html[data-theme] body.admin-body .portal-page :is(input,textarea)::placeholder,html[data-theme] body .admin-shell :is(input,textarea)::placeholder {color:var(--mica-muted);opacity:1}
html[data-theme] body.admin-body .portal-page input::file-selector-button {color:#241c10;background:linear-gradient(135deg,#f4dc99,#d5a94f);border:1px solid #a37726;border-radius:8px}
html[data-theme] body .admin-shell :is(th,td) {color:var(--mica-text);background:var(--mica-panel);border-color:var(--mica-line)}
html[data-theme] body .admin-shell th,html[data-theme] body .admin-shell tbody tr:nth-child(even) td {background:var(--mica-card)}
html[data-theme] body.admin-body .portal-page .btn-primary,html[data-theme] body .admin-shell .btn-primary {color:#21180b;background:linear-gradient(135deg,#f4dc99,#d5a94f);border-color:#ba8b34}
html[data-theme] body.admin-body .portal-page :is(.btn-secondary,.assignment-read-button),html[data-theme] body .admin-shell .btn-secondary {color:var(--mica-accent);background:var(--mica-card);border-color:var(--mica-line)}
html[data-theme] body.admin-body .portal-page :is(.assignment-live-badge,.module-coming-soon,.notification-count),html[data-theme] body .admin-shell .operations-module-badge {color:var(--mica-accent);background:var(--mica-card);border-color:var(--mica-line)}
html[data-theme] body.admin-body .portal-page :is(.upcoming-icon,.operations-card-icon,.driver-access-mark) {color:#241c10;background:linear-gradient(135deg,#f4dc99,#d5a94f)}
html[data-theme] body.admin-body .portal-page :is(.weather-hero,.dashboard-weather-card,.weather-nearby-card) {background:var(--mica-gradient);color:var(--mica-text);border-color:var(--mica-line);box-shadow:var(--mica-shadow)}
html[data-theme] body.admin-body .portal-page :is(.weather-hero,.dashboard-weather-card,.weather-nearby-card) :is(h1,h2,strong,time) {color:var(--mica-text)}
html[data-theme] body.admin-body .portal-page :is(.weather-summary-copy>span,.weather-summary-label,.weather-timeline-heading,.weather-hour small,.weather-condition,.weather-nearby-card [data-city-status]) {color:var(--mica-muted)}
html[data-theme] body.admin-body .portal-page :is(.weather-summary-metrics span,.weather-hour) {background:var(--mica-card);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body.admin-body .portal-page .weather-summary-copy strong {color:var(--mica-text)}
html[data-theme] body.admin-body .portal-page :is(.weather-city-symbol,[data-dashboard-weather-icon]) {color:var(--mica-accent)}
html[data-theme] body.admin-body .portal-page .weather-hour-scroll {scrollbar-color:#b88b36 var(--mica-card)}
html[data-theme] body.admin-body .portal-page .weather-summary:has(>p:only-child) {background:linear-gradient(100deg,var(--mica-card) 20%,var(--mica-panel) 45%,var(--mica-card) 70%);background-size:250% 100%}
html[data-theme] body.admin-body .portal-page .weather-alert {color:var(--mica-text);background:var(--mica-card);border-color:var(--mica-line);border-left-color:#b88b36}
html[data-theme] body.admin-body .portal-page .weather-alert.is-danger {background:var(--mica-error-bg);border-left-color:var(--mica-error)}
html[data-theme] body.admin-body .portal-page .weather-alert summary {color:var(--mica-text)}
html[data-theme] body.admin-body .portal-page .weather-stale {color:var(--mica-accent)!important}
html[data-theme] body :is(.admin-alert,.assignment-live-toast) {color:var(--mica-text);background:var(--mica-card);border-color:var(--mica-line)}
html[data-theme] body .admin-alert[data-kind="success"] {color:var(--mica-ok);background:var(--mica-ok-bg);border-color:var(--mica-ok)}
html[data-theme] body .admin-alert[data-kind="error"] {color:var(--mica-error);background:var(--mica-error-bg);border-color:var(--mica-error)}
html[data-theme] body .admin-alert[data-kind="warning"] {color:var(--mica-accent);background:var(--mica-card);border-color:#b88b36}
html[data-theme] body.admin-body .portal-page :is(.form-status.is-error,.push-status.is-error),html[data-theme] body .admin-shell .form-status.is-error {color:var(--mica-error)}
html[data-theme] body.admin-body .portal-page .form-status.is-success,html[data-theme] body .admin-shell .form-status.is-success {color:var(--mica-ok)}
html[data-theme] body .portal-sidebar {background:var(--mica-gradient);border-color:var(--mica-line)}
html[data-theme] body .portal-sidebar :is(.portal-nav-copy strong,.portal-side-account-copy strong,.portal-side-context strong) {color:var(--mica-text)}
html[data-theme] body .portal-sidebar :is(.portal-nav-copy small,.portal-side-account-copy span,.portal-side-account-copy small,.portal-side-context>span) {color:var(--mica-muted)}
html[data-theme] body .portal-sidebar :is(.portal-nav-icon,.portal-menu-toggle,.portal-side-logout,.portal-coming-soon) {color:var(--mica-accent);background:var(--mica-card);border-color:var(--mica-line)}
html[data-theme] body .portal-sidebar .portal-nav-item {border-color:transparent}
html[data-theme] body .portal-sidebar :is(.portal-nav-item.is-active,a.portal-nav-item:hover) {background:var(--mica-header);border-color:var(--mica-line)}
html[data-theme] body .portal-sidebar :is(.portal-side-account,.portal-profile-last) {border-color:var(--mica-line)}
html[data-theme] body .staff-login-content :is(h1,label) {color:var(--mica-text)}
html[data-theme] body .staff-login-content :is(.staff-login-help,.staff-version) {color:var(--mica-muted)}
html[data-theme] body .staff-login-content :is(.staff-login-tagline,a) {color:var(--mica-accent)}
html[data-theme] body .staff-login-content input {background:var(--mica-field);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body .staff-login-overlay {background:linear-gradient(180deg,transparent 0%,var(--mica-page) 60%,var(--mica-page) 100%)}
html[data-theme] body .staff-login-card {border:1px solid var(--mica-line)}
html[data-theme] body .staff-login-back {background:var(--mica-panel);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body :is(.auth-main,.auth-panel,.auth-card) {background:var(--mica-gradient);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body .auth-main :is(h1,h2,label) {color:var(--mica-text)}
html[data-theme] body .auth-main :is(p,small,.auth-helper,.auth-note) {color:var(--mica-muted)}
html[data-theme] body .auth-form .field :is(input,select) {color:var(--mica-text);background:var(--mica-field);border-color:var(--mica-line)}

html[data-theme] body.admin-body .portal-page .weather-now-label {color:var(--mica-accent)}
html[data-theme] body .admin-shell :is(input,textarea,select):focus {border-color:#b88b36;box-shadow:0 0 0 3px #d5a94f30}

/* Staff dialogs and sign-in forms use the same palette as driver cards. */
html[data-theme] body.admin-body :is(.review-dialog,.lesson-builder-dialog){background:var(--mica-gradient);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body.admin-body :is(.review-dialog,.lesson-builder-dialog) :is(h2,label,legend){color:var(--mica-text)}
html[data-theme] body.admin-body :is(.review-dialog,.lesson-builder-dialog) :is(p,small,label span){color:var(--mica-muted)}
html[data-theme] body.admin-body :is(.review-dialog,.lesson-builder-dialog) :is(input,textarea,select){background:var(--mica-field);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body.admin-body :is(.dialog-close,.admin-filter){color:var(--mica-accent);background:var(--mica-card);border-color:var(--mica-line)}
html[data-theme] body.admin-body .admin-filter.is-active{color:#21180b;background:#d5a94f;border-color:#b88b36}
html[data-theme] body.mica-staff-page{background:var(--mica-page);color:var(--mica-text)}
html[data-theme] body.mica-staff-page .mica-signin-panel{background:var(--mica-gradient);border-color:var(--mica-line)}
html[data-theme] body.mica-staff-page .mica-signin-panel :is(h1,label){color:var(--mica-text)}
html[data-theme] body.mica-staff-page :is(.mica-login-intro,.mica-access-help,.mica-panel-bottom,.mica-secure-label,.mica-staff-footer){color:var(--mica-muted)}
html[data-theme] body.mica-staff-page :is(.mica-login-eyebrow,.mica-access-help a,.mica-role-icon,.mica-password-toggle){color:var(--mica-accent)}
html[data-theme] body.mica-staff-page .mica-input-wrap{background:var(--mica-field);border-color:var(--mica-line)}
html[data-theme] body.mica-staff-page .mica-signin-form input:not([type="hidden"]){color:var(--mica-text)}
html[data-theme] body.mica-staff-page .mica-signin-form input::placeholder{color:var(--mica-muted)}
html[data-theme] body.mica-staff-page .mica-signin-form input:-webkit-autofill{-webkit-text-fill-color:var(--mica-text);box-shadow:0 0 0 100px var(--mica-field) inset;caret-color:var(--mica-text)}
html[data-theme] body.mica-staff-page .theme-toggle{display:inline-flex}

html[data-theme] body.mica-staff-page .mica-chooser-card{background:var(--mica-gradient);color:var(--mica-text);border-color:var(--mica-line)}
html[data-theme] body.mica-staff-page .mica-chooser :is(h1,h2){color:var(--mica-text)}
html[data-theme] body.mica-staff-page .mica-chooser :is(p,.mica-chooser-card p){color:var(--mica-muted)}
html[data-theme] body.mica-staff-page .mica-chooser-action{color:var(--mica-accent);border-color:var(--mica-line)}
