@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 400; src: url("/static/fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 500; src: url("/static/fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 600; src: url("/static/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 700; src: url("/static/fonts/sora-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --color-bg: #f3f2f0;
  --color-bg-soft: #fbfaf8;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-strong: #fff;
  --color-text: #0d0f14;
  --color-muted: #5e6470;
  --color-border: rgba(13, 15, 20, 0.13);
  --color-blue: #2a3bff;
  --color-blue-soft: #5c6cff;
  --color-lilac: #b8b2ff;
  --color-green: #18865d;
  --color-amber: #b66a09;
  --color-red: #c43e4d;
  --color-neutral: #777d89;
  --shadow-soft: 0 26px 80px rgba(13, 15, 20, 0.08);
  --max-width: 1180px;
  --header-width: 1280px;
  --header-height: 86px;
  font-family: "Sora", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #070b12;
  --color-bg-soft: #0d121b;
  --color-surface: rgba(255, 255, 255, 0.045);
  --color-surface-strong: #121824;
  --color-text: #f3f2f0;
  --color-muted: #a8afbc;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-green: #54c895;
  --color-amber: #f1ad54;
  --color-red: #ef7d89;
  --color-neutral: #a8afbc;
  --shadow-soft: 0 26px 80px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { background: var(--color-bg); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 70% 0%, rgba(184, 178, 255, 0.14), transparent 36rem),
    radial-gradient(circle at 8% 12%, rgba(42, 59, 255, 0.08), transparent 30rem),
    var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
}
body, button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input { border-radius: 7px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-blue) 45%, transparent);
  outline-offset: 3px;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: .04em;
  margin-left: 8px;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  font-weight: 100;
  line-height: 1;
}
.brand span {
  width: .16em;
  height: .16em;
  margin: 0 0 .13em .1em;
  border-radius: 999px;
  background: var(--color-blue);
}
.eyebrow { color: var(--color-muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }

.console-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--header-width), calc(100% - 48px));
  min-height: var(--header-height);
  margin: 0 auto;
  backdrop-filter: blur(18px);
}
.header-actions { display: flex; grid-column: 3; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }
.secondary-button, .text-button {
  min-height: 42px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}
.theme-toggle:hover { border-color: var(--color-blue); transform: translateY(-2px); }
.theme-toggle__icon { color: currentColor; }
.theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
.secondary-button { padding: 0 17px; }
.text-button { margin-top: 14px; padding: 0 14px; background: transparent; }
.secondary-button:hover { border-color: var(--color-blue); }

.console-shell { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; padding: 58px 0 96px; }
.overview { display: block; }
.overview__copy { max-width: none; }
.overview h1 { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0 .22em; max-width: none; font-size: clamp(2.45rem, 5.2vw, 4.65rem); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; white-space: nowrap; }
.overview__brand { display: inline-flex; align-items: center; gap: .18em; color: var(--color-blue); white-space: nowrap; }
.overview__sphere { width: .16em; height: .16em; flex: 0 0 auto; border-radius: 50%; background: var(--color-blue); }
.overview__updated { margin-top: 18px; color: var(--color-muted); font-size: .86rem; }
.overview-status-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: stretch; margin-top: 48px; }
.hero-status {
  min-height: 194px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-neutral);
  border-radius: 9px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.status-border--healthy, .status-border--operational { border-top-color: var(--color-green); }
.status-border--degraded { border-top-color: var(--color-amber); }
.status-border--suspended { border-top-color: var(--color-red); }
.status-heading { display: flex; align-items: center; gap: 10px; color: var(--color-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.hero-status strong { display: block; margin-top: 22px; font-size: 2rem; font-weight: 520; }
.hero-status p { margin-top: 10px; color: var(--color-muted); font-size: .88rem; }
.hero-alerts { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.hero-alerts p { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; margin: 0; color: var(--color-text); font-size: .74rem; }
.hero-alerts p > span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--color-amber) 14%, transparent); color: var(--color-amber); font-size: .68rem; font-weight: 750; }
.hero-alerts small { grid-column: 2; margin-top: -7px; color: var(--color-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--color-neutral); box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-neutral) 14%, transparent); }
.status-dot--healthy, .status-dot--operational, .status-dot--succeeded { background: var(--color-green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-green) 14%, transparent); }
.status-dot--degraded { background: var(--color-amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-amber) 14%, transparent); }
.status-dot--suspended, .status-dot--failed { background: var(--color-red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-red) 14%, transparent); }

.pilot-card { display: grid; grid-template-columns: 1fr minmax(260px, .45fr); gap: 30px; align-items: center; padding: 26px 30px; border: 1px solid var(--color-border); border-radius: 9px; background: color-mix(in srgb, var(--color-blue) 5%, var(--color-surface)); }
.pilot-card h2 { margin-top: 5px; font-size: 1.3rem; font-weight: 550; }
.pilot-card p:not(.eyebrow) { margin-top: 4px; color: var(--color-muted); font-size: .88rem; }
.pilot-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.pilot-progress span { color: var(--color-blue); font-weight: 650; }
progress { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 999px; background: var(--color-border); }
progress::-webkit-progress-bar { background: var(--color-border); }
progress::-webkit-progress-value { background: var(--color-blue); }
progress::-moz-progress-bar { background: var(--color-blue); }

.console-section { padding-top: 92px; }
.console-section--primary { padding-top: 48px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 400px); gap: 30px; align-items: end; margin-bottom: 28px; }
.section-heading h2 { margin-top: 6px; font-size: clamp(1.8rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -.035em; }
.section-heading > p { color: var(--color-muted); }
.stage-card { padding: 26px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); box-shadow: var(--shadow-soft); }
.infrastructure-list small { display: block; margin-top: 18px; color: var(--color-muted); font-size: .72rem; }
.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--color-neutral) 12%, transparent); color: var(--color-neutral); font-size: .7rem; font-weight: 650; white-space: nowrap; }
.status-pill--healthy, .status-pill--operational, .status-pill--succeeded { background: color-mix(in srgb, var(--color-green) 12%, transparent); color: var(--color-green); }
.status-pill--degraded { background: color-mix(in srgb, var(--color-amber) 14%, transparent); color: var(--color-amber); }
.status-pill--suspended, .status-pill--failed { background: color-mix(in srgb, var(--color-red) 12%, transparent); color: var(--color-red); }
.compact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 0; }
.compact-stats div { padding-top: 12px; border-top: 1px solid var(--color-border); }
.compact-stats dt { color: var(--color-muted); font-size: .68rem; }
.compact-stats dd { margin: 3px 0 0; font-weight: 620; }

.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage-card { position: relative; min-height: 264px; }
.stage-index { color: var(--color-blue); font-size: .75rem; font-weight: 700; }
.stage-card > .status-pill { position: absolute; top: 22px; right: 22px; }
.stage-card h3 { margin-top: 30px; font-size: 1.12rem; font-weight: 550; }
.stage-card > strong { display: block; margin-top: 24px; font-size: 2.6rem; font-weight: 500; line-height: 1; }
.stage-card > p { margin-top: 5px; color: var(--color-muted); font-size: .78rem; }

.infrastructure-list { display: grid; border: 1px solid var(--color-border); border-radius: 9px; overflow: hidden; background: var(--color-surface); }
.infrastructure-list article { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; min-height: 102px; padding: 20px 24px; border-bottom: 1px solid var(--color-border); }
.infrastructure-list article:last-child { border-bottom: 0; }
.infrastructure-list h3 { font-size: 1rem; font-weight: 550; }
.infrastructure-list p { margin-top: 2px; color: var(--color-muted); font-size: .84rem; }
.infrastructure-list small { margin-top: 3px; }
.source-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 0; }
.source-stats div { display: flex; gap: 6px; align-items: baseline; }
.source-stats dt { color: var(--color-muted); font-size: .68rem; }
.source-stats dd { margin: 0; font-size: .78rem; font-weight: 650; }

.table-shell { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); }
table { width: 100%; min-width: 840px; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--color-border); text-align: left; }
th { color: var(--color-muted); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .035em; }
td { font-size: .82rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--color-blue) 3%, transparent); }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .78em; }
.empty-row { padding: 40px; color: var(--color-muted); text-align: center; }
.console-footer { display: flex; justify-content: space-between; gap: 20px; width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; padding: 26px 0 42px; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: .72rem; }

.auth-body { min-height: 100vh; display: grid; }
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; width: min(1080px, calc(100% - 48px)); margin: auto; padding: 48px 0; }
.auth-shell--single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.auth-intro { display: flex; flex-direction: column; justify-content: center; min-height: 620px; padding: clamp(40px, 7vw, 86px); border-radius: 12px 0 0 12px; background: #050910; color: white; }
.auth-intro .eyebrow { margin-top: auto; color: rgba(255,255,255,.58); }
.auth-intro h1 { margin-top: 15px; font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.auth-intro > p:last-child { max-width: 520px; margin-top: 24px; color: rgba(255,255,255,.68); }
.auth-intro .brand { margin-bottom: auto; }
.login-card { display: flex; flex-direction: column; justify-content: center; min-height: 620px; padding: clamp(38px, 6vw, 76px); border: 1px solid var(--color-border); border-radius: 0 12px 12px 0; background: var(--color-surface-strong); box-shadow: var(--shadow-soft); }
.auth-shell--single .login-card { min-height: auto; border-radius: 12px; }
.login-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.login-card h2 { margin-top: 5px; font-size: 1.7rem; font-weight: 520; }
.login-card h1 { margin-top: 8px; font-size: 2rem; font-weight: 520; }
.login-card > p:not(.eyebrow, .form-error, .security-note) { margin-top: 18px; color: var(--color-muted); }
.login-form { display: grid; margin-top: 38px; }
.login-form label { margin: 18px 0 7px; font-size: .78rem; font-weight: 600; }
.login-form input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--color-border); background: var(--color-bg-soft); color: var(--color-text); }
.login-form input:focus { border-color: var(--color-blue); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 26px; padding: 0 20px; border: 1px solid transparent; border-radius: 7px; background: var(--color-blue); color: white; font-weight: 650; cursor: pointer; box-shadow: 0 12px 32px rgba(42,59,255,.22); }
a.primary-button { align-self: flex-start; }
.primary-button:hover { background: var(--color-blue-soft); }
.security-note { margin-top: 20px; color: var(--color-muted); font-size: .72rem; }
.form-error { margin-top: 24px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--color-red) 35%, var(--color-border)); border-radius: 7px; background: color-mix(in srgb, var(--color-red) 8%, transparent); color: var(--color-red); font-size: .8rem; }

@media (max-width: 1080px) {
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .console-header { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }
}

@media (max-width: 760px) {
  .console-shell, .console-footer { width: min(100% - 28px, var(--max-width)); }
  .console-header { width: 100%; }
  .console-header .brand { margin-left: 14px; }
  .header-actions { margin-right: 14px; }
  .console-shell { padding: 36px 0 96px; }
  .overview h1 { flex-wrap: wrap; font-size: clamp(2.2rem, 8.5vw, 2.95rem); white-space: normal; }
  .overview-status-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-status { min-height: auto; }
  .pilot-card, .section-heading { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr; }
  .console-section { padding-top: 68px; }
  .console-section--primary { padding-top: 40px; }
  .infrastructure-list article { grid-template-columns: auto 1fr; }
  .infrastructure-list .status-pill { grid-column: 2; justify-self: start; }
  .console-footer { flex-direction: column; }
  .auth-shell { grid-template-columns: 1fr; width: min(100% - 28px, 560px); padding: 20px 0; }
  .auth-intro { min-height: 320px; padding: 34px; border-radius: 12px 12px 0 0; }
  .auth-intro h1 { font-size: 2.7rem; }
  .auth-intro .eyebrow { margin-top: 70px; }
  .login-card { min-height: auto; padding: 34px; border-radius: 0 0 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Texto disponível para tecnologias assistivas sem interferir no layout. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
