/* Cars24 Car-a-thon — Cars24 Lego design-system layer. */
:root {
  /* Primitive layer: values from the supplied Cars24 Lego skill. */
  --base-black: #0A0A0A;
  --base-white: #FFFFFF;
  --brand-blue-25: #F6F5FF;
  --brand-blue-50: #EDEBFF;
  --brand-blue-100: #E3E1FF;
  --brand-blue-200: #C6C1FF;
  --brand-blue-250: #A39AFF;
  --brand-blue-300: #4736FE;
  --brand-blue-400: #4031E5;
  --brand-blue-500: #392BCB;
  --brand-blue-700: #2B2098;
  --brand-blue-900: #191359;
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-400: #A1A1A1;
  --neutral-500: #737373;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --slate-400: #90A1B9;
  --slate-700: #314158;
  --slate-800: #1D293D;
  --slate-900: #0F172B;
  --slate-950: #020618;
  --red-100: #FFE2E2;
  --red-500: #FB2C36;
  --red-950: #460809;
  --green-100: #DCFCE7;
  --green-500: #00C951;
  --green-950: #032E15;

  /* Structural layer. */
  --lego-spacing-2: 2px;
  --lego-spacing-4: 4px;
  --lego-spacing-6: 6px;
  --lego-spacing-8: 8px;
  --lego-spacing-10: 10px;
  --lego-spacing-12: 12px;
  --lego-spacing-14: 14px;
  --lego-spacing-16: 16px;
  --lego-spacing-18: 18px;
  --lego-spacing-20: 20px;
  --lego-spacing-24: 24px;
  --lego-spacing-28: 28px;
  --lego-spacing-30: 30px;
  --lego-spacing-32: 32px;
  --lego-spacing-36: 36px;
  --lego-spacing-40: 40px;
  --lego-spacing-42: 42px;
  --lego-spacing-48: 48px;
  --lego-spacing-56: 56px;
  --border-none: 0px;
  --border-thin: 0.5px;
  --border-regular: 1px;
  --border-medium: 1.5px;
  --border-bold: 2px;
  --radius-none: 0px;
  --radius-xxs: 4px;
  --radius-xs: 8px;
  --radius-s: 12px;
  --radius-m: 14px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --radius-xxl: 24px;
  --radius-xxxl: 32px;
  --radius-full: 999px;

  /* Cars24 semantic layer. Components consume only these aliases. */
  --lego-color-surface-default-rest: var(--slate-950);
  --lego-color-surface-subtle-rest: var(--slate-900);
  --lego-color-surface-raised-rest: var(--slate-800);
  --lego-color-surface-inverse-rest: var(--neutral-50);
  --lego-color-surface-brand-primary-rest: var(--brand-blue-300);
  --lego-color-surface-brand-primary-hover: var(--brand-blue-400);
  --lego-color-surface-brand-primary-active: var(--brand-blue-500);
  --lego-color-surface-brand-primary-disabled: var(--brand-blue-100);
  --lego-color-surface-brand-subtle-rest: var(--brand-blue-900);
  --lego-color-surface-feedback-danger-rest: var(--red-950);
  --lego-color-surface-feedback-success-rest: var(--green-950);
  --lego-color-text-primary-rest: var(--base-white);
  --lego-color-text-secondary-rest: var(--slate-400);
  --lego-color-text-disabled-rest: var(--neutral-500);
  --lego-color-text-inverse-rest: var(--base-white);
  --lego-color-text-on-light-primary-rest: var(--base-black);
  --lego-color-text-on-light-secondary-rest: var(--neutral-700);
  --lego-color-text-brand-primary-rest: var(--brand-blue-250);
  --lego-color-text-feedback-danger-rest: var(--red-100);
  --lego-color-text-feedback-success-rest: var(--green-100);
  --lego-color-border-default-rest: var(--slate-700);
  --lego-color-border-subtle-rest: var(--slate-800);
  --lego-color-border-brand-primary-rest: var(--brand-blue-300);
  --lego-color-border-feedback-danger-rest: var(--red-500);
  --lego-color-border-feedback-success-rest: var(--green-500);
}

[data-brand="cars24"] {
  --brand-font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --brand-primary: var(--brand-blue-300);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

/* Global brand context. */
body {
  background: var(--lego-color-surface-default-rest);
  color: var(--lego-color-text-primary-rest);
  font-family: var(--brand-font);
  font-weight: var(--weight-regular);
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 6rem;
}

section[id] {
  scroll-margin-top: 6rem;
}

body {
  --ink: var(--lego-color-surface-default-rest);
  --panel: var(--lego-color-surface-subtle-rest);
  --panel2: var(--lego-color-surface-raised-rest);
  --line: var(--lego-color-border-default-rest);
  --muted: var(--lego-color-text-secondary-rest);
  --cream: var(--lego-color-text-primary-rest);
  --orange: var(--lego-color-surface-brand-primary-rest);
  --amber: var(--brand-blue-200);
  --mint: var(--green-500);
  --blue: var(--brand-blue-250);
  --radius: var(--radius-xxl);
}

.wrap {
  width: min(77.5rem, calc(100% - (var(--lego-spacing-24) * 2)));
}

.nav {
  position: fixed;
  z-index: 200;
  inset: 0 0 auto;
  padding-block: var(--lego-spacing-20);
  border-bottom: var(--border-regular) solid color-mix(in srgb, white 10%, transparent);
  background: color-mix(in srgb, var(--lego-color-surface-default-rest) 88%, transparent);
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 18%);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.brand {
  gap: var(--lego-spacing-12);
  font-family: var(--brand-font);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.brand-logo-frame {
  position: relative;
  display: block;
  width: 7.5rem;
  height: 2.5rem;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo {
  position: absolute;
  display: block;
  width: 10rem;
  height: 10rem;
  max-width: none;
  inset: -3.75rem auto auto -1.1875rem;
}

.brand-event {
  padding-left: var(--lego-spacing-12);
  border-left: var(--border-regular) solid var(--lego-color-border-default-rest);
  color: var(--lego-color-text-secondary-rest);
  font-size: 0.6875rem;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navlinks {
  gap: var(--lego-spacing-28);
}

.navlinks a {
  color: var(--lego-color-text-primary-rest);
  font-family: var(--brand-font);
  font-weight: var(--weight-semibold);
}

.pill {
  padding: var(--lego-spacing-12) var(--lego-spacing-16);
  border-radius: var(--radius-full);
  background: var(--lego-color-surface-brand-primary-rest);
  color: var(--lego-color-text-inverse-rest) !important;
}

.pill:hover {
  background: var(--lego-color-surface-brand-primary-hover);
}

.hero {
  background:
    radial-gradient(circle at 75% 45%, color-mix(in srgb, var(--brand-blue-700) 70%, transparent), transparent 30%),
    radial-gradient(circle at 27% 24%, color-mix(in srgb, var(--brand-blue-900) 62%, transparent), transparent 25%),
    var(--lego-color-surface-default-rest);
}

.hero-grid {
  background-image:
    linear-gradient(color-mix(in srgb, var(--lego-color-border-brand-primary-rest) 28%, transparent) var(--border-regular), transparent var(--border-regular)),
    linear-gradient(90deg, color-mix(in srgb, var(--lego-color-border-brand-primary-rest) 28%, transparent) var(--border-regular), transparent var(--border-regular));
}

.hero h1,
.section h2,
.round h3,
.prize-amount,
.success h3,
.footer-logo {
  font-family: var(--brand-font);
  font-weight: var(--weight-bold);
}

#challenge .section-head h2 {
  letter-spacing: -0.035em;
  word-spacing: 0.08em;
}

.hero h1 span {
  -webkit-text-stroke-color: color-mix(in srgb, var(--lego-color-text-primary-rest) 55%, transparent);
}

.hero-art {
  position: absolute;
  z-index: 2;
  top: 4.5rem;
  right: -2vw;
  width: min(64vw, 66rem);
  height: 39rem;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, var(--base-black) 24%, var(--base-black) 88%, transparent);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.06);
  transform-origin: center;
  animation: hero-art-drift 12s ease-in-out infinite alternate;
}

@keyframes hero-art-drift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-1.2%, -0.8%, 0); }
}

/* Abstract 3D wash-tunnel sculpture — the event's signature hero object. */
.wash-sculpture {
  position: absolute;
  z-index: 2;
  top: 7.5rem;
  right: 3vw;
  width: 31rem;
  height: 31rem;
  perspective: 60rem;
  pointer-events: none;
}

.tunnel-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-28deg);
}

.portal {
  position: absolute;
  border: var(--border-bold) solid var(--lego-color-border-brand-primary-rest);
  border-radius: var(--radius-xxxl);
  background: color-mix(in srgb, var(--brand-blue-300) 5%, transparent);
  box-shadow:
    0 0 var(--lego-spacing-32) color-mix(in srgb, var(--brand-blue-300) 28%, transparent),
    inset 0 0 var(--lego-spacing-24) color-mix(in srgb, var(--brand-blue-200) 12%, transparent);
  animation: portal-pulse 4.8s ease-in-out infinite;
}

.portal-back {
  inset: 6rem;
  transform: translateZ(-7rem);
  opacity: 0.38;
}

.portal-mid {
  inset: 4rem;
  transform: translateZ(-2rem);
  opacity: 0.62;
  animation-delay: -1.6s;
}

.portal-front {
  inset: 2rem;
  transform: translateZ(3rem);
  border-color: var(--brand-blue-200);
  animation-delay: -3.2s;
}

.light-curtain {
  position: absolute;
  inset: 5rem 7rem;
  display: flex;
  justify-content: space-between;
  transform: translateZ(1rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  opacity: 0.72;
}

.light-curtain i {
  width: var(--border-bold);
  height: 100%;
  background: linear-gradient(transparent, var(--brand-blue-200), transparent);
  box-shadow: 0 0 var(--lego-spacing-12) var(--brand-blue-200);
  animation: wash-scan 2.8s ease-in-out infinite;
}

.light-curtain i:nth-child(2) { animation-delay: -0.45s; }
.light-curtain i:nth-child(3) { animation-delay: -0.9s; }
.light-curtain i:nth-child(4) { animation-delay: -1.35s; }
.light-curtain i:nth-child(5) { animation-delay: -1.8s; }

.vehicle-form {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12rem;
  height: 4.75rem;
  border: var(--border-medium) solid color-mix(in srgb, var(--base-white) 55%, transparent);
  border-radius: var(--radius-full) var(--radius-full) var(--radius-l) var(--radius-l);
  background: linear-gradient(145deg, var(--brand-blue-250), var(--brand-blue-500));
  box-shadow: 0 var(--lego-spacing-24) var(--lego-spacing-48) color-mix(in srgb, var(--base-black) 65%, transparent);
  transform: translate3d(-50%, -50%, 5rem) rotateZ(2deg);
  animation: vehicle-float 4.8s ease-in-out infinite;
}

.vehicle-glass {
  position: absolute;
  left: 2.8rem;
  top: -1.65rem;
  width: 6.3rem;
  height: 2.4rem;
  border: var(--border-regular) solid color-mix(in srgb, var(--base-white) 45%, transparent);
  border-radius: var(--radius-full) var(--radius-full) var(--radius-xs) var(--radius-xs);
  background: color-mix(in srgb, var(--slate-950) 82%, transparent);
  transform: skewX(-12deg);
}

.wheel {
  position: absolute;
  bottom: -0.8rem;
  width: 2.1rem;
  height: 1.35rem;
  border: var(--border-bold) solid var(--brand-blue-200);
  border-radius: var(--radius-full);
  background: var(--lego-color-surface-default-rest);
}

.wheel-left { left: 1.5rem; }
.wheel-right { right: 1.5rem; }

.sculpture-caption {
  position: absolute;
  right: var(--lego-spacing-24);
  bottom: var(--lego-spacing-24);
  display: flex;
  align-items: center;
  gap: var(--lego-spacing-10);
  color: var(--lego-color-text-secondary-rest);
  font-size: 0.6875rem;
  line-height: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sculpture-caption span {
  width: var(--lego-spacing-32);
  height: var(--border-regular);
  background: var(--lego-color-border-brand-primary-rest);
}

@keyframes portal-pulse {
  0%, 100% { opacity: 0.46; filter: brightness(0.9); }
  50% { opacity: 0.92; filter: brightness(1.22); }
}

@keyframes wash-scan {
  0%, 100% { transform: translateY(-30%) scaleY(0.65); opacity: 0.28; }
  50% { transform: translateY(30%) scaleY(1); opacity: 1; }
}

@keyframes vehicle-float {
  0%, 100% { transform: translate3d(-50%, -50%, 5rem) rotateZ(2deg); }
  50% { transform: translate3d(-50%, -54%, 6rem) rotateZ(-1deg); }
}

.lead b,
.ticker b,
.section-kicker {
  color: var(--lego-color-text-brand-primary-rest);
}

.btn {
  padding: var(--lego-spacing-12) var(--lego-spacing-16);
  border: var(--border-regular) solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--brand-font);
  font-weight: var(--weight-semibold);
}

.btn-primary {
  background: var(--lego-color-surface-brand-primary-rest);
  color: var(--lego-color-text-inverse-rest);
  box-shadow: 0 var(--lego-spacing-14) var(--lego-spacing-44) color-mix(in srgb, var(--brand-blue-300) 24%, transparent);
}

.btn-primary:hover {
  background: var(--lego-color-surface-brand-primary-hover);
}

.btn-primary:active {
  background: var(--lego-color-surface-brand-primary-active);
}

.btn-primary:disabled {
  background: var(--lego-color-surface-brand-primary-disabled);
  color: var(--lego-color-text-disabled-rest);
}

.btn-ghost {
  border-color: var(--lego-color-border-default-rest);
  background: var(--lego-color-surface-subtle-rest);
  color: var(--lego-color-text-primary-rest);
}

.hero-meta,
.statement,
.form-shell,
.deadline {
  border: var(--border-regular) solid var(--lego-color-border-default-rest);
}

.hero-meta,
.deadline {
  border-radius: var(--radius-xl);
}

.statement,
.prize {
  border-radius: var(--radius-xxl);
}

.form-shell {
  border-radius: var(--radius-xxxl);
}

.meta,
.form-shell,
.deadline,
.profile-chip,
.count,
.format-card,
.consent {
  background: var(--lego-color-surface-subtle-rest);
}

.meta span,
.section-copy,
.statement p,
.step-lead,
.hint,
.success p,
.profile-chip span {
  color: var(--lego-color-text-secondary-rest);
}

.orbital {
  border: var(--border-regular) solid color-mix(in srgb, var(--lego-color-border-brand-primary-rest) 45%, transparent);
}

.orbital:after {
  border-color: color-mix(in srgb, var(--brand-blue-200) 55%, transparent);
}

.orb-dot {
  background: var(--brand-blue-200);
  box-shadow: 0 0 var(--lego-spacing-32) var(--brand-blue-200);
}

.ticker {
  border-block: var(--border-regular) solid var(--lego-color-border-subtle-rest);
  background: var(--lego-color-surface-subtle-rest);
}

.criterion {
  border-radius: var(--radius-xxl);
  color: var(--lego-color-text-inverse-rest);
}

.criterion:nth-child(1) { background: var(--brand-blue-300); }
.criterion:nth-child(2) { background: var(--brand-blue-400); }
.criterion:nth-child(3) { background: var(--brand-blue-500); }
.criterion:nth-child(4) { background: var(--brand-blue-700); }

.rounds {
  background: var(--lego-color-surface-inverse-rest);
  color: var(--lego-color-text-on-light-primary-rest);
}

.round-list,
.round {
  border-color: var(--neutral-200);
}

.round p,
.round-no,
.round h3 span,
.round-date span {
  color: var(--lego-color-text-on-light-secondary-rest);
}

.tag {
  border: var(--border-regular) solid var(--neutral-400);
  border-radius: var(--radius-full);
}

.prize-main {
  background: var(--lego-color-surface-brand-primary-rest);
  color: var(--lego-color-text-inverse-rest);
}

.prize-student {
  background: var(--lego-color-surface-subtle-rest);
  border: var(--border-regular) solid var(--lego-color-border-default-rest);
}

.register {
  background:
    radial-gradient(circle at 16% 25%, color-mix(in srgb, var(--brand-blue-900) 42%, transparent), transparent 23%),
    var(--lego-color-surface-default-rest);
}

.avatar {
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--brand-blue-300), var(--brand-blue-200));
  color: var(--lego-color-text-inverse-rest);
}

.profile-chip,
.count,
.format-card,
.consent {
  border-radius: var(--radius-m);
}

.public-chip {
  justify-content: flex-start;
}

.public-chip > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.lookup-toggle {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--lego-spacing-10);
  min-width: 13.25rem;
  padding: var(--lego-spacing-10) var(--lego-spacing-12);
  border: var(--border-regular) solid var(--lego-color-border-default-rest);
  border-radius: var(--radius-m);
  background: var(--lego-color-surface-raised-rest);
  color: var(--lego-color-text-primary-rest);
  font-family: var(--brand-font);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lookup-toggle:hover {
  border-color: var(--lego-color-border-brand-primary-rest);
  background: color-mix(in srgb, var(--brand-blue-300) 12%, var(--lego-color-surface-raised-rest));
  transform: translateY(-1px);
}

.lookup-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-blue-300) 28%, transparent);
  outline-offset: 2px;
}

.lookup-toggle.active {
  border-color: var(--lego-color-border-brand-primary-rest);
  background: color-mix(in srgb, var(--brand-blue-300) 18%, var(--lego-color-surface-raised-rest));
}

.lookup-toggle-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: var(--border-regular) solid var(--lego-color-border-brand-primary-rest);
  border-radius: var(--radius-full);
  background: var(--lego-color-surface-brand-primary-rest);
  color: var(--lego-color-text-inverse-rest);
  line-height: 0;
}

.lookup-toggle-icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.lookup-toggle-copy,
.lookup-toggle-copy strong,
.lookup-toggle-copy small {
  display: block;
}

.lookup-toggle-copy strong {
  color: var(--lego-color-text-primary-rest);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  line-height: 1.1rem;
}

.lookup-toggle-copy small {
  margin-top: 0.0625rem;
  color: var(--lego-color-text-secondary-rest);
  font-size: 0.6875rem;
  line-height: 1rem;
}

.lookup-toggle-arrow {
  color: var(--lego-color-text-brand-primary-rest);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.lookup-toggle.active .lookup-toggle-arrow {
  transform: rotate(90deg);
}

.lookup-panel {
  margin-top: var(--lego-spacing-16);
  padding: var(--lego-spacing-20);
  border: var(--border-regular) solid var(--lego-color-border-brand-primary-rest);
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--brand-blue-900) 35%, var(--lego-color-surface-subtle-rest));
}

.lookup-panel[hidden] {
  display: none;
}

.lookup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lego-spacing-16);
  margin-bottom: var(--lego-spacing-16);
}

.lookup-head strong,
.lookup-head span {
  display: block;
}

.lookup-head strong {
  color: var(--lego-color-text-primary-rest);
  font-weight: var(--weight-semibold);
}

.lookup-head span {
  margin-top: var(--lego-spacing-4);
  color: var(--lego-color-text-secondary-rest);
  font-size: 0.75rem;
}

.lookup-head button {
  width: var(--lego-spacing-32);
  height: var(--lego-spacing-32);
  border: var(--border-regular) solid var(--lego-color-border-default-rest);
  border-radius: var(--radius-full);
  background: var(--lego-color-surface-raised-rest);
  color: var(--lego-color-text-primary-rest);
  cursor: pointer;
}

.lookup-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--lego-spacing-12);
  margin-bottom: var(--lego-spacing-12);
}

.lookup-error {
  margin-bottom: var(--lego-spacing-8);
  color: var(--lego-color-text-feedback-danger-rest);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.lookup-message {
  margin-bottom: var(--lego-spacing-12);
  padding: var(--lego-spacing-10) var(--lego-spacing-12);
  border: var(--border-regular) solid var(--lego-color-border-feedback-success-rest);
  border-radius: var(--radius-xs);
  background: var(--lego-color-surface-feedback-success-rest);
  color: var(--lego-color-text-feedback-success-rest);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.lookup-code-field input {
  letter-spacing: 0.32em;
  font-variant-numeric: tabular-nums;
}

.lookup-head button {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
}

.step-tab:disabled {
  color: var(--lego-color-text-disabled-rest);
  cursor: not-allowed;
  opacity: 0.6;
}

.step-tab:focus-visible,
.format-toggle input:focus-visible + .format-card {
  outline: 3px solid color-mix(in srgb, var(--brand-blue-300) 34%, transparent);
  outline-offset: 3px;
}

.required-label::after,
.required-note span {
  content: " *";
  color: var(--lego-color-text-feedback-danger-rest);
}

.required-note span::after {
  content: "";
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lego-spacing-16);
  margin-bottom: var(--lego-spacing-20);
}

.required-note,
.draft-tools {
  margin: 0;
  color: var(--lego-color-text-secondary-rest);
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.draft-tools {
  display: flex;
  align-items: center;
  gap: var(--lego-spacing-10);
  text-align: right;
}

.draft-tools button {
  padding: var(--lego-spacing-6) var(--lego-spacing-10);
  border: var(--border-regular) solid var(--lego-color-border-default-rest);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--lego-color-text-primary-rest);
  cursor: pointer;
}

.form-actions.no-back {
  justify-content: flex-end;
}

.closed-state {
  padding: var(--lego-spacing-48) var(--lego-spacing-30);
  text-align: center;
}

.closed-state h3 {
  margin: var(--lego-spacing-20) 0 var(--lego-spacing-10);
  font-size: 2rem;
}

.closed-state p {
  max-width: 31rem;
  margin: 0 auto var(--lego-spacing-24);
  color: var(--lego-color-text-secondary-rest);
  line-height: 1.6;
}

.field label,
.hint,
.step-tab {
  font-size: 0.75rem;
}

.field .error {
  font-size: 0.75rem;
  line-height: 1.2rem;
}

.step-tab.active {
  border-color: var(--lego-color-border-brand-primary-rest);
}

.step-tab.done {
  color: var(--lego-color-text-feedback-success-rest);
  border-color: var(--lego-color-border-feedback-success-rest);
}

.field input,
.field select,
.field textarea {
  padding: var(--lego-spacing-12) var(--lego-spacing-16);
  border: var(--border-regular) solid var(--lego-color-border-default-rest);
  border-radius: var(--radius-xs);
  background: var(--lego-color-surface-raised-rest);
  color: var(--lego-color-text-primary-rest);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border: var(--border-medium) solid var(--lego-color-border-brand-primary-rest);
  box-shadow: 0 0 0 var(--lego-spacing-4) color-mix(in srgb, var(--brand-blue-300) 16%, transparent);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border: var(--border-medium) solid var(--lego-color-border-feedback-danger-rest);
}

.error,
.word-row .warn {
  color: var(--lego-color-text-feedback-danger-rest);
}

.format-toggle input:checked + .format-card {
  border: var(--border-medium) solid var(--lego-color-border-brand-primary-rest);
  background: color-mix(in srgb, var(--brand-blue-300) 16%, var(--lego-color-surface-subtle-rest));
}

.consent input {
  accent-color: var(--lego-color-surface-brand-primary-rest);
}

.server-alert {
  border: var(--border-regular) solid var(--lego-color-border-feedback-danger-rest);
  border-radius: var(--radius-s);
  background: var(--lego-color-surface-feedback-danger-rest);
  color: var(--lego-color-text-feedback-danger-rest);
}

.success-icon {
  background: var(--lego-color-surface-feedback-success-rest);
  color: var(--lego-color-text-feedback-success-rest);
}

.reg-id,
.existing {
  border-color: var(--lego-color-border-feedback-success-rest);
  color: var(--lego-color-text-feedback-success-rest);
}

.existing {
  border-radius: var(--radius-s);
  background: var(--lego-color-surface-feedback-success-rest);
}

footer {
  border-color: var(--lego-color-border-subtle-rest);
  color: var(--lego-color-text-secondary-rest);
}

.card {
  border: var(--border-regular) solid var(--lego-color-border-default-rest);
  border-radius: var(--radius-xxl);
  background: var(--lego-color-surface-subtle-rest);
}

.mark {
  color: var(--lego-color-text-brand-primary-rest);
  font-family: var(--brand-font);
  font-weight: var(--weight-bold);
}

.card a {
  padding: var(--lego-spacing-12) var(--lego-spacing-16);
  border-radius: var(--radius-s);
  background: var(--lego-color-surface-brand-primary-rest);
  color: var(--lego-color-text-inverse-rest);
  font-family: var(--brand-font);
  font-weight: var(--weight-semibold);
}

.card a:hover {
  background: var(--lego-color-surface-brand-primary-hover);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--lego-spacing-16);
}

@media (max-width: 37.5rem) {
  body {
    max-width: 100vw;
    overflow-x: clip;
  }

  .wrap {
    width: calc(100% - 1.75rem);
    max-width: 77.5rem;
  }

  .brand-logo-frame {
    width: 6.75rem;
  }

  .brand-event {
    display: none;
  }

  .public-chip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .lookup-toggle {
    width: 100%;
    min-width: 0;
  }

  .lookup-fields {
    grid-template-columns: 1fr;
  }

  .navlinks {
    position: absolute;
    right: var(--lego-spacing-14);
    min-width: 0;
    gap: var(--lego-spacing-8);
  }

  .navlinks > a:not(.pill) {
    display: none !important;
  }

  .navlinks .pill {
    display: inline-flex !important;
    width: auto;
    max-width: none;
    padding: var(--lego-spacing-10) var(--lego-spacing-12);
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
  }

  .navlinks .pill::before {
    content: "Enter";
    font-size: 0.75rem;
  }

  .navlinks .pill span {
    font-size: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding: 7.5rem 0 var(--lego-spacing-56);
  }

  .hero h1 {
    max-width: 100%;
    margin: var(--lego-spacing-24) 0;
    font-size: clamp(4rem, 20vw, 5.2rem);
    line-height: 0.82;
    white-space: normal;
  }

  .hero-art {
    right: -16rem;
    width: 52rem;
    height: 31rem;
  }

  .lead {
    width: 100%;
    max-width: 100%;
    font-size: 1.2rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-bottom,
  .hero-bottom > div {
    width: 100%;
    min-width: 0;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.625rem;
    white-space: normal;
  }

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

  .hero-meta .meta:last-child {
    grid-column: 1 / -1;
  }

  .form-meta,
  .draft-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .draft-tools {
    text-align: left;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 56.25rem) {
  .hero-art {
    top: 7rem;
    right: -12rem;
    width: 62rem;
    opacity: 0.48;
  }

  .wash-sculpture {
    top: 8rem;
    right: -11rem;
    transform: scale(0.78);
    opacity: 0.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img,
  .portal,
  .light-curtain i,
  .vehicle-form {
    animation: none;
  }
}
