:root[data-automotive] {
  color-scheme: dark;
  --display-font: "Inter", system-ui, sans-serif;
  --page: #090b0e;
  --page-bg: var(--page);
  --background: var(--page);
  --ink: #f4f7fb;
  --text: var(--ink);
  --muted: #aeb9c8;
  --panel: #12171e;
  --panel-raised: #0e1218;
  --profile-featured: linear-gradient(145deg, #171f2b, #10151c 65%);
  --line: #27313d;
  --line-strong: #394758;
  --soft: #18212c;
  --soft-strong: #1c2b3a;
  --accent: var(--brand-primary, #62abff);
  --accent-text: #8cc2ff;
  --accent-ink: #071018;
  --success: var(--brand-accent, #47df9b);
  --accent-shadow: 0 5px 22px #62abff18;
  --panel-shadow: 0 24px 60px #0005;
  background: var(--page);
}

[data-business-segments] legend {
  margin-bottom: 10px;
  font: inherit;
}

[data-automotive] .public-tenant-header {
  border-bottom: 1px solid var(--line);
}

[data-automotive] .public-tenant-hero {
  min-height: 0;
  padding-block: clamp(2.7rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 84% 40%, #62abff12, transparent 52%);
}

[data-automotive] .public-tenant-hero h1 {
  margin-block: 1rem;
  max-width: 17ch;
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 6.2vw, 5.35rem);
  letter-spacing: -.045em;
}

[data-automotive] .public-tenant-hero [data-public-intro] {
  max-width: 50ch;
  margin-bottom: 1.6rem;
  color: var(--muted);
  line-height: 1.6;
}

[data-automotive] .public-tenant-hero .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

[data-automotive] :is(.public-tenant-header, .tenant-page) .flow-brand-mark:has(img) {
  --automotive-mark-size: clamp(54px, 6vw, 64px);
  flex: 0 0 auto;
  width: var(--automotive-mark-size);
  height: var(--automotive-mark-size);
  padding: 4px;
  overflow: visible;
  border-radius: 10px;
  background: #e2eaf4;
  color-scheme: light;
}

[data-automotive] :is(.public-tenant-header, .tenant-page) .flow-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-automotive] .public-logo {
  width: min(32vw, 245px);
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 60px #0006;
}

[data-automotive] .public-logo:has(img) {
  aspect-ratio: 1.55;
  background: #e2eaf4;
}

[data-automotive] .public-logo img {
  object-fit: contain;
  padding: 7%;
}

[data-automotive] .public-item-card {
  border-color: var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: none;
}

[data-automotive] .public-item-card span,
[data-automotive] .registration-success-shell p,
[data-automotive] .cpf-validation {
  color: var(--muted);
}

[data-automotive] .public-visit {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-raised);
}

[data-automotive] .public-visit strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--success);
  font-size: .8rem;
}

[data-automotive] .public-visit span {
  color: var(--muted);
  font-size: .9rem;
}

[data-automotive] .public-section {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

[data-automotive] [data-public-services-heading]::after {
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: .65rem;
  background: #ead45e;
  content: "";
}

[data-automotive] .public-item-card:focus-within,
[data-automotive] .public-item-card:hover {
  border-color: var(--line-strong);
}

[data-automotive] .cpf-validation.valid {
  color: var(--success);
}

[data-automotive] .cpf-validation.invalid {
  color: #ff9a93;
}

[data-automotive] .app-release-version {
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
}

@media (max-width: 720px) {
  [data-automotive] .public-tenant-hero {
    gap: 1.5rem;
  }

  [data-automotive] .public-logo {
    width: min(42vw, 176px);
    justify-self: start;
    font-size: 2.75rem;
  }
}
[data-automotive] .tenant-login {
  min-height: 100svh;
  background: radial-gradient(ellipse at 13% 22%, #16325255, transparent 52%), #090b0e;
  color-scheme: dark;
  color: #f4f7fb;
}

[data-automotive] .tenant-login:has(.tenant-login-banner:not(.hidden)) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(20px, 5vw, 74px);
  padding-inline: max(28px, calc((100vw - 1180px) / 2));
}

[data-automotive] .tenant-login > .flow-brand {
  position: absolute;
  color: #f4f7fb;
}

[data-automotive] .tenant-login > .flow-brand small,
[data-automotive] .tenant-login-card p {
  color: #aeb9c8;
}

[data-automotive] .tenant-login-card {
  --panel: #12171e;
  --tenant-danger: #ffb4aa;
  --tenant-positive: #8fe2b8;
  width: min(100%, 460px);
  margin-block-start: 40px;
  border: 1px solid #394758;
  background: var(--panel);
  box-shadow: 0 24px 75px #0006;
}

[data-automotive] .tenant-login-card .eyebrow { color: #9acaff; }
[data-automotive] .tenant-login-card .field { color: #f4f7fb; }
[data-automotive] .tenant-login-card .field input {
  border-color: #394758;
  background: #0e1218;
  color: #f4f7fb;
}
[data-automotive] .tenant-login-card .mini-button { color: #d7e7fb; }
[data-automotive] .automotive-banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #394758;
  border-radius: 18px;
}

[data-automotive] .automotive-banner-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  filter: blur(14px);
  opacity: .36;
}

[data-automotive] .automotive-banner-artwork {
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
}

[data-automotive] .public-tenant-banner { margin-block-start: 22px; }

@media (max-width: 820px) {
  [data-automotive] .tenant-mobile-logo .flow-brand-mark:has(img) {
    --automotive-mark-size: 48px;
  }

  [data-automotive] .tenant-login:has(.tenant-login-banner:not(.hidden)) {
    grid-template-columns: 1fr;
    align-content: center;
  }
  [data-automotive] .tenant-login-banner { display: none; }
}

/* A dialog is its own dark surface, even when the dashboard underneath is light. */
[data-automotive] :is(.tenant-dialog, .entity-dialog) {
  --tenant-ink: #f4f7fb;
  --tenant-muted: #bac7d5;
  --tenant-line: #42556b;
  --tenant-card: #182331;
  --tenant-danger: #ffb4aa;
  --tenant-positive: #8fe2b8;
  --text: #f4f7fb;
  --muted: #bac7d5;
  --line: #42556b;
  --line-strong: #60758a;
  --soft: #1b2938;
  --soft-strong: #223347;
  --panel: #182331;
  --panel-raised: #141c26;
  --accent-text: #a5d1ff;
  color: var(--text);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color-scheme: dark;
}
[data-automotive] .tenant-page .tenant-dialog :is(.field, .icon-close, .button-secondary, .mini-button) { color: var(--tenant-ink); }
[data-automotive] :is(.tenant-dialog, .entity-dialog) :is(input, textarea, select):not([type="checkbox"], [type="radio"], [type="file"]) {
  color: var(--tenant-ink);
  background: var(--soft);
  border-color: #60758a;
}
[data-automotive] .tenant-page .tenant-dialog :is(.button-secondary, .mini-button, input[type="file"]) {
  color: var(--tenant-ink);
  background: #1b2938;
  border-color: #60758a;
}
[data-automotive] .tenant-page .tenant-dialog :is(.field > small, .field > span small, .eyebrow, .form-note, .empty-state) { color: var(--tenant-muted); }
[data-automotive] :is(.tenant-login-card, .tenant-dialog, .entity-dialog) :is(input, textarea)::placeholder { color: #b4c0cc; opacity: 1; }
[data-automotive] :is(.tenant-dialog, .entity-dialog) :is(button, input, textarea, select, a):focus-visible { outline: 2px solid #a5d1ff; outline-offset: 2px; }
