:root {
  --hero-font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hero-canvas: #f4f7fa;
  --hero-surface: #ffffff;
  --hero-surface-subtle: #f7f9fc;
  --hero-surface-muted: #eef3f7;
  --hero-border: #dce5ed;
  --hero-border-strong: #c7d5e0;
  --hero-text: #182433;
  --hero-text-muted: #667485;
  --hero-platform: #164f7b;
  --hero-platform-dark: #0d3455;
  --hero-traffic: #1c75bc;
  --hero-theory: #f1592d;
  --hero-drive: #137f80;
  --hero-success: #2d7d46;
  --hero-warning: #9a5a00;
  --hero-danger: #b42318;
  --hero-info: #176aa3;
  --hero-focus: rgba(27, 101, 167, .24);
  --hero-radius-sm: 8px;
  --hero-radius: 12px;
  --hero-radius-lg: 16px;
  --hero-shadow-sm: 0 4px 14px rgba(22, 34, 51, .055);
  --hero-shadow: 0 12px 30px rgba(22, 34, 51, .075);
  --hero-space-1: 4px;
  --hero-space-2: 8px;
  --hero-space-3: 12px;
  --hero-space-4: 16px;
  --hero-space-5: 20px;
  --hero-space-6: 24px;
  --hero-space-8: 32px;
  --hero-header-height: 72px;
  --hero-product-accent: var(--hero-platform);
  --hero-product-accent-soft: #eaf2f8;
}

.hero-product-traffic {
  --hero-product-accent: var(--hero-traffic);
  --hero-product-accent-soft: #e8f2fb;
}

.hero-product-theory {
  --hero-product-accent: var(--hero-theory);
  --hero-product-accent-soft: #fff0ea;
  --hero-focus: rgba(241, 89, 45, .24);
}

.hero-product-drive {
  --hero-product-accent: var(--hero-drive);
  --hero-product-accent-soft: #e5f4f2;
  --hero-focus: rgba(19, 127, 128, .24);
}

.hero-platform-app {
  background: var(--hero-canvas);
  color: var(--hero-text);
  font-family: var(--hero-font);
  -webkit-font-smoothing: antialiased;
}

.hero-platform-app :focus-visible {
  outline: 3px solid var(--hero-focus);
  outline-offset: 2px;
}

.hero-platform-app .hero-platform-header {
  background: rgba(255, 255, 255, .97);
  border: 0;
  border-bottom: 1px solid var(--hero-border);
  box-shadow: 0 2px 10px rgba(22, 34, 51, .035);
  min-height: var(--hero-header-height);
  padding-block: 0 !important;
}

.hero-platform-app .hero-platform-header__inner {
  align-items: center;
  min-height: var(--hero-header-height);
}

.hero-product-brand {
  align-items: center;
  color: var(--hero-text) !important;
  display: inline-flex;
  gap: 11px;
  min-width: max-content;
  text-decoration: none !important;
}

.hero-product-brand__mark {
  align-items: center;
  background: var(--hero-product-accent);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  letter-spacing: -.02em;
  overflow: hidden;
  width: 38px;
}

.hero-platform-app .hero-product-brand__mark img {
  border-radius: inherit;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  padding: 6px;
  width: 100% !important;
}

.hero-empty-state-art {
  display: block;
  height: auto;
  margin: 0 auto 16px;
  max-width: min(190px, 55vw);
}

.hero-empty-state-art--compact {
  max-width: min(145px, 45vw);
}

.hero-product-brand__copy {
  display: grid;
  line-height: 1.05;
}

.hero-product-brand__copy small {
  color: var(--hero-text-muted);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-product-brand__copy strong {
  color: var(--hero-text);
  font-size: 1rem;
  font-weight: 800;
  margin-top: 3px;
}

.hero-platform-app .hero-product-switcher > .nav-link,
.hero-platform-app .hero-product-switcher > button,
.hero-platform-app .platform-product-switcher > .nav-link,
.hero-platform-app .platform-product-switcher > button {
  align-items: center;
  background: var(--hero-product-accent-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--hero-product-accent) !important;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
}

.hero-platform-app .hero-product-menu,
.hero-platform-app .platform-product-switcher .dropdown-menu {
  border: 1px solid var(--hero-border);
  border-radius: var(--hero-radius);
  box-shadow: var(--hero-shadow);
  min-width: 250px;
  padding: 7px;
}

.hero-platform-app .hero-product-menu a,
.hero-platform-app .hero-product-menu .dropdown-item,
.hero-platform-app .platform-product-switcher .dropdown-menu a,
.hero-platform-app .platform-product-switcher .platform-product-current {
  align-items: center;
  border-radius: var(--hero-radius-sm);
  color: var(--hero-text) !important;
  display: flex;
  justify-content: space-between;
  padding: 10px 11px;
}

.hero-platform-app .hero-product-menu .active,
.hero-platform-app .platform-product-switcher .dropdown-item.active,
.hero-platform-app .platform-product-switcher .platform-product-current {
  background: var(--hero-product-accent-soft);
  color: var(--hero-product-accent) !important;
  font-weight: 800;
}

.hero-platform-app .hero-product-menu small,
.hero-platform-app .platform-product-switcher small {
  color: var(--hero-text-muted);
  font-size: .7rem;
  font-weight: 700;
}

.hero-platform-app .hero-product-menu .dropdown-item.active small,
.hero-platform-app .platform-product-switcher .dropdown-item.active small,
.hero-platform-app .platform-product-switcher .platform-product-current small {
  color: var(--hero-product-accent) !important;
  opacity: .72;
}

.hero-account-context {
  align-items: center;
  display: flex;
  gap: 10px;
}

.hero-build-version {
  color: inherit;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  opacity: .48;
  white-space: nowrap;
}

.hero-build-version--fixed {
  bottom: .5rem;
  pointer-events: none;
  position: fixed;
  right: .75rem;
  z-index: 20;
}

.hero-account-context__identity {
  display: grid;
  line-height: 1.1;
  min-width: max-content;
}

.hero-account-context__identity strong {
  color: var(--hero-text);
  font-size: .87rem;
  font-weight: 800;
}

.hero-account-context__identity small {
  color: var(--hero-text-muted);
  font-size: .72rem;
  font-weight: 650;
  margin-top: 3px;
}

.hero-school-switcher {
  background-color: var(--hero-surface-subtle);
  border-color: var(--hero-border);
  border-radius: 10px;
  color: var(--hero-text);
  font-size: .82rem;
  min-height: 40px;
}

.hero-platform-app .btn {
  border-radius: 10px;
  font-weight: 750;
  min-height: 40px;
}

.hero-platform-app .btn-primary {
  background: var(--hero-product-accent);
  border-color: var(--hero-product-accent);
  color: #fff !important;
}

.hero-platform-app .btn-primary:hover,
.hero-platform-app .btn-primary:focus {
  filter: brightness(.92);
}

.hero-platform-app .btn-outline-primary {
  border-color: var(--hero-product-accent);
  color: var(--hero-product-accent) !important;
}

.hero-platform-app .form-control,
.hero-platform-app .form-select,
.hero-platform-app select,
.hero-platform-app textarea {
  border-color: var(--hero-border-strong);
  border-radius: 10px;
  min-height: 42px;
}

.hero-platform-app .form-control:focus,
.hero-platform-app .form-select:focus,
.hero-platform-app select:focus,
.hero-platform-app textarea:focus {
  border-color: var(--hero-product-accent);
  box-shadow: 0 0 0 3px var(--hero-focus);
}

.hero-card,
.hero-platform-app .dashboard-card,
.hero-platform-app .content-band,
.hero-platform-app .overview-card {
  background: var(--hero-surface);
  border-color: var(--hero-border);
  border-radius: var(--hero-radius);
  box-shadow: var(--hero-shadow-sm);
}

.hero-page-header,
.hero-platform-app .page-title-band,
.hero-platform-app .page-header {
  align-items: flex-end;
  display: flex;
  gap: var(--hero-space-5);
  justify-content: space-between;
}

.hero-platform-app .page-title-band h1,
.hero-platform-app .page-header h1 {
  color: var(--hero-text);
  font-weight: 800;
  letter-spacing: -.025em;
}

.hero-platform-app .brand-kicker,
.hero-platform-app .section-heading > span,
.hero-eyebrow {
  color: var(--hero-product-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-status {
  align-items: center;
  background: var(--hero-surface-muted);
  border: 1px solid var(--hero-border);
  border-radius: 999px;
  color: var(--hero-text-muted);
  display: inline-flex;
  font-size: .74rem;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 9px;
}

.hero-status.is-success {
  background: #edf8f0;
  border-color: #bfe1ca;
  color: var(--hero-success);
}

.hero-status.is-warning {
  background: #fff8eb;
  border-color: #f0d29f;
  color: var(--hero-warning);
}

.hero-status.is-danger {
  background: #fff1ef;
  border-color: #f2c4bf;
  color: var(--hero-danger);
}

.hero-auth-page {
  min-height: 100vh;
}

.hero-auth-page .hero-platform-header {
  margin-bottom: 0 !important;
}

.hero-auth-page .hero-platform-header .navbar-collapse,
.hero-auth-page .hero-platform-header .navbar-toggler {
  display: none !important;
}

.hero-auth-main {
  padding: clamp(24px, 5vw, 64px) 20px;
}

.hero-auth-shell {
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(20, 42, 63, .12);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  margin: 0 auto;
  max-width: 1040px;
  min-height: 610px;
  overflow: hidden;
}

#LoginBox.hero-auth-shell {
  max-width: 1040px;
}

.hero-auth-story {
  background:
    radial-gradient(circle at 88% 12%, var(--hero-product-accent) 0, transparent 30%),
    linear-gradient(145deg, var(--hero-platform-dark), #123f63 62%, #185d86);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 58px);
  position: relative;
}

.hero-auth-story::after {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  content: "";
  height: 250px;
  position: absolute;
  right: -125px;
  top: 145px;
  width: 250px;
}

.hero-auth-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  gap: 12px;
  position: relative;
  text-decoration: none;
  width: fit-content;
  z-index: 1;
}

.hero-auth-brand:hover {
  color: #fff;
  text-decoration: none;
}

.hero-auth-brand__mark {
  align-items: center;
  background: var(--hero-product-accent);
  border-radius: 12px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 7px;
  width: 44px;
}

.hero-auth-brand__mark img {
  height: 100%;
  width: 100%;
}

.hero-auth-brand__copy {
  display: grid;
  line-height: 1.05;
}

.hero-auth-brand__copy small {
  color: rgba(255, 255, 255, .68);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-auth-brand__copy strong {
  color: #fff;
  font-size: 1.08rem;
  margin-top: 4px;
}

.hero-auth-story-copy {
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.hero-auth-eyebrow {
  color: #b9d8ee;
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-auth-story h1 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 0 0 18px;
}

.hero-auth-story p {
  color: rgba(255, 255, 255, .76);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.hero-auth-products {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.hero-auth-product {
  align-items: center;
  color: rgba(255, 255, 255, .72);
  display: flex;
  font-size: .76rem;
  font-weight: 650;
  gap: 9px;
}

.hero-auth-product::before {
  background: var(--hero-product-dot);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
  content: "";
  height: 8px;
  width: 8px;
}

.hero-auth-product strong {
  color: #fff;
  font-size: .8rem;
  min-width: 82px;
}

.hero-auth-product--traffic { --hero-product-dot: var(--hero-traffic); }
.hero-auth-product--theory { --hero-product-dot: var(--hero-theory); }
.hero-auth-product--drive { --hero-product-dot: #32b7b1; }

.hero-auth-panel {
  align-self: center;
  padding: clamp(34px, 5vw, 62px);
}

.hero-auth-panel__header {
  margin-bottom: 28px;
}

.hero-auth-panel__header .hero-eyebrow {
  display: block;
  margin-bottom: 8px;
}

.hero-auth-panel__header h2 {
  color: var(--hero-text);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -.035em;
  margin: 0 0 10px;
}

.hero-auth-panel__header p,
.hero-auth-help {
  color: var(--hero-text-muted);
  line-height: 1.55;
  margin: 0;
}

.hero-auth-form .form-group,
.hero-auth-form .mb-3 {
  margin-bottom: 18px !important;
}

.hero-auth-form label {
  color: var(--hero-text);
  display: block;
  font-size: .83rem;
  font-weight: 750;
  margin-bottom: 7px;
}

.hero-auth-form .form-control {
  font-size: 1rem;
  min-height: 50px;
}

.hero-auth-form .field-validation-error,
.hero-auth-form .text-danger {
  display: block;
  font-size: .78rem;
  margin-top: 5px;
}

.hero-auth-form .validation-summary-valid {
  display: none;
}

.hero-auth-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 4px 0 20px;
}

.hero-auth-row .form-check {
  align-items: center;
  display: flex;
  gap: 7px;
  margin: 0;
}

.hero-auth-row .form-check label,
.hero-auth-row .form-check-label {
  color: var(--hero-text-muted);
  font-weight: 600;
  margin: 0;
}

.hero-auth-reset {
  color: var(--hero-product-accent) !important;
  font-size: .84rem;
  font-weight: 750;
  padding: 0;
  text-decoration: none;
}

.hero-auth-help {
  border-top: 1px solid var(--hero-border);
  font-size: .8rem;
  margin-top: 22px;
  padding-top: 18px;
  text-align: center;
}

.hero-system-state {
  align-items: flex-start;
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  border-left: 4px solid var(--hero-info);
  border-radius: var(--hero-radius-lg);
  box-shadow: var(--hero-shadow-sm);
  display: grid;
  gap: 8px;
  margin-block: 20px;
  padding: clamp(22px, 4vw, 34px);
}

.hero-system-state--warning {
  border-left-color: #d88a16;
}

.hero-system-state__label {
  color: var(--hero-product-accent);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-system-state h2 {
  color: var(--hero-text);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 820;
  letter-spacing: -.025em;
  margin: 0;
}

.hero-system-state p {
  color: var(--hero-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.hero-system-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 991.98px) {
  .hero-platform-app .hero-platform-header__inner {
    align-items: stretch;
  }

  .hero-account-context {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 0;
  }

  .hero-page-header,
  .hero-platform-app .page-title-band,
  .hero-platform-app .page-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 799.98px) {
  .hero-auth-main {
    padding: 18px 12px 32px;
  }

  .hero-auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-auth-story {
    gap: 28px;
    padding: 28px;
  }

  .hero-auth-story-copy h1 {
    font-size: 2rem;
  }

  .hero-auth-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-auth-product {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-auth-product strong {
    min-width: 0;
  }

  .hero-auth-product span {
    display: none;
  }

  .hero-auth-panel {
    padding: 32px 26px;
  }
}
