:root {
  --bg: #050507;
  --bg-soft: #09090d;
  --panel: rgba(14, 15, 20, 0.9);
  --panel-strong: rgba(17, 18, 24, 0.98);
  --panel-muted: rgba(12, 13, 18, 0.84);
  --panel-elevated: rgba(22, 24, 31, 0.96);
  --text: #f5f7fb;
  --muted: #8d93a5;
  --muted-strong: #b7bdd0;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #7c8cff;
  --accent-soft: rgba(124, 140, 255, 0.16);
  --success: #4ed3a5;
  --warning: #f6c35b;
  --danger: #ff7c91;
  --glow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 140, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(92, 211, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #09090b 0%, #050507 48%, #040405 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.6), transparent 75%);
}

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

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

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 7, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 600;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.nav-links button {
  font-size: 0.92rem;
}

.nav-links > a:not(.button) {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease;
}

.nav-links > a:not(.button):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links form {
  margin: 0;
}

/* CLI-style authenticated nav */
.nav-links .cli-link {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links .cli-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links .cli-cmd::before {
  content: "./";
  color: rgba(255, 255, 255, 0.3);
}

.nav-links .cli-accent {
  color: var(--success);
  border: 1px solid rgba(78, 211, 165, 0.35);
  background: rgba(78, 211, 165, 0.07);
}

.nav-links .cli-accent::before {
  color: rgba(78, 211, 165, 0.55);
}

.nav-links .cli-accent:hover {
  color: var(--success);
  background: rgba(78, 211, 165, 0.15);
  border-color: rgba(78, 211, 165, 0.6);
}

.nav-user {
  position: relative;
}

.nav-user summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-user summary::-webkit-details-marker {
  display: none;
}

.nav-user summary::after {
  content: " ▾";
  color: rgba(255, 255, 255, 0.3);
}

.nav-user[open] summary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 200px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 15, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.nav-user-menu a,
.nav-user-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.84rem;
}

.nav-user-menu a::before,
.nav-user-menu button::before {
  content: "> ";
  color: rgba(255, 255, 255, 0.3);
}

.nav-user-menu a:hover,
.nav-user-menu button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-user-menu .menu-sep {
  height: 1px;
  margin: 5px 4px;
  background: rgba(255, 255, 255, 0.07);
}

.page-shell {
  padding: 28px 0 0;
}

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 34px 0;
}

.section-heading,
.footer-grid,
.dashboard-top,
.dashboard-panels,
.auth-layout,
.upload-layout,
.report-summary-grid,
.report-grid,
.repocat-grid,
.repocat-insight-grid,
.stats-grid,
.logo-row,
.hero-actions,
.cta-actions,
.jobs-list,
.repocat-answer-stack,
.repocat-reference-list {
  display: grid;
  gap: 24px;
}

.section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: start;
}

.section > .section-heading {
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  align-self: start;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill-accent {
  background: rgba(124, 140, 255, 0.12);
  border-color: rgba(124, 140, 255, 0.22);
  color: #d7dcff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  align-self: start;
  width: fit-content;
  color: var(--muted-strong);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "|";
  color: rgba(255, 255, 255, 0.22);
  font-weight: 400;
}

.eyebrow-accent {
  color: #aab4ff;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.98;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 5.8rem);
}

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

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.lede {
  color: var(--muted-strong);
  font-size: 1.12rem;
  max-width: 60ch;
}

/* Editorial centered hero */
.hero-center {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
  padding: 36px 0 8px;
}

.hero-deco {
  position: absolute;
  top: 4px;
  right: 0;
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.hero-deco-line {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.hero-deco-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-deco-line[hidden] {
  display: none;
}

.display-heading {
  margin: 0;
  display: grid;
  gap: 2px;
}

.display-strong,
.display-ghost {
  display: block;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  font-size: clamp(3.2rem, 7.4vw, 5.6rem);
}

.display-strong {
  color: var(--text);
}

.display-ghost {
  color: rgba(255, 255, 255, 0.22);
  font-size: clamp(3.4rem, 8.2vw, 6.1rem);
}

.hero-sub-center {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--muted-strong);
  font-size: 1.12rem;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.84rem;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--muted-strong);
  font-weight: 600;
  transition: color 180ms ease;
}

.link-quiet:hover {
  color: var(--text);
}

/* RepoCat terminal showcase */
.terminal-card {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 15, 20, 0.96), rgba(8, 9, 13, 0.98));
  box-shadow: var(--glow);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f56;
}

.terminal-dot.yellow {
  background: #ffbd2e;
}

.terminal-dot.green {
  background: #27c93f;
}

.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.terminal-body {
  display: grid;
  gap: 22px;
  padding: 30px 30px 26px;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.98rem;
  color: var(--text);
}

.terminal-sigil {
  flex-shrink: 0;
  color: var(--success);
  font-weight: 700;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-left: 2px solid rgba(94, 228, 154, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.terminal-answer {
  color: var(--muted-strong);
  line-height: 1.75;
  font-size: 0.98rem;
}

.terminal-highlight {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(124, 140, 255, 0.16);
  color: #cfd6ff;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.terminal-cursor[hidden] {
  display: none;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--success);
  vertical-align: -3px;
  animation: terminal-blink 1s steps(1) infinite;
}

.terminal-status,
.terminal-answer-block,
.terminal-input-row {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.terminal-status.is-visible,
.terminal-answer-block.is-visible,
.terminal-input-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-status[hidden],
.terminal-answer-block[hidden],
.terminal-input-row[hidden] {
  display: none;
}

/* Dashboard workspace-status terminal */
.dash-terminal {
  margin-top: 0;
}

.dash-terminal-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 26px 24px;
  min-height: 330px;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
}

.dash-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.95rem;
}

.dash-cmd {
  color: var(--text);
  margin-top: 8px;
}

.dash-cmd:first-child {
  margin-top: 0;
}

.dash-out {
  padding-left: 26px;
  color: var(--muted);
}

.dash-out-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.dash-out-value {
  color: var(--success);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Dashboard module-launcher terminal */
.launcher-body {
  min-height: 0;
  cursor: text;
}

.launcher-index {
  color: var(--muted);
}

.launcher-desc {
  color: var(--muted);
  font-size: 0.88em;
}

.launcher-verb {
  color: var(--muted-strong);
}

.launcher-input-line {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.launcher-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  caret-color: var(--success);
}

.launcher-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.launcher-hint {
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
}

.launcher-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
}

.launcher-error {
  padding-left: 26px;
  color: #ff8d84;
  font-size: 0.88rem;
}

.launcher-launch {
  padding-left: 26px;
  color: var(--success);
  font-size: 0.88rem;
}

/* Upload-page intake terminal */
.terminal-solo {
  max-width: none;
  margin: 0 auto;
}

.terminal-solo .dash-terminal-body {
  min-height: 62vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.upload-terminal.is-dragover {
  border-color: rgba(78, 211, 165, 0.55);
  box-shadow: 0 0 0 1px rgba(78, 211, 165, 0.35), var(--glow);
}

.upload-body {
  min-height: 0;
}

.upload-pick {
  cursor: pointer;
  margin-top: 10px;
  border-radius: 8px;
  transition: background 160ms ease;
}

.upload-pick:hover {
  background: rgba(255, 255, 255, 0.04);
}

.upload-run {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 211, 165, 0.35);
  border-radius: 8px;
  background: rgba(78, 211, 165, 0.07);
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  transition: background 160ms ease, border-color 160ms ease;
}

.upload-run:hover {
  transform: none;
  opacity: 1;
  background: rgba(78, 211, 165, 0.14);
  border-color: rgba(78, 211, 165, 0.6);
}

.upload-run:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Report page terminals */
.score-render {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.score-render.good {
  color: var(--success);
}

.score-render.warn {
  color: #ffbd2e;
}

.score-render.bad,
.term-bad {
  color: #ff8d84;
}

.term-action {
  padding-left: 26px;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.term-check {
  flex-shrink: 0;
  color: var(--success);
}

.term-table-scroll {
  margin: 4px 0 14px 26px;
  overflow-x: auto;
}

.term-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

.term-table th {
  padding: 6px 18px 6px 0;
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.18);
}

.term-table td {
  padding: 6px 18px 6px 0;
  color: var(--muted-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.term-table tr:last-child td {
  border-bottom: none;
}

/* SeedFmt terminal */
.sf-textarea {
  width: calc(100% - 26px);
  margin: 4px 0 6px 26px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
}

.sf-textarea:focus {
  outline: none;
  border-color: rgba(78, 211, 165, 0.45);
}

.sf-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.rc-answer {
  margin: 4px 0 10px;
  padding-left: 26px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.8;
}

.term-pre {
  margin: 4px 0 14px 26px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  color: var(--muted-strong);
  font-size: 0.85rem;
  line-height: 1.65;
}

@keyframes terminal-blink {
  50% {
    opacity: 0;
  }
}

/* Bento feature grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-col {
  padding: 44px 44px 8px;
}

.bento-col + .bento-col {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-block + .bento-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-block h3 {
  margin-top: 16px;
  margin-bottom: 14px;
}

.bento-block p {
  max-width: 48ch;
}

.scan-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.scan-card-title {
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.scan-row {
  display: grid;
  grid-template-columns: 64px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--muted-strong);
}

.scan-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scan-fill {
  height: 100%;
  border-radius: 999px;
}

.scan-fill.success {
  background: var(--success);
}

.scan-fill.warning {
  background: var(--warning);
}

.scan-fill.danger {
  background: var(--danger);
}

.scan-value {
  text-align: right;
  color: var(--muted);
}

.hero-actions {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: start;
  align-items: center;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f4f5f8;
  color: #09090d;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button.ghost {
  background: transparent;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.surface-card,
.report-card,
.job-card,
.auth-card,
.upload-panel,
.metric-card,
.repocat-insight-card,
.repocat-reference,
.page-card,
.preview-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(20, 21, 28, 0.94), rgba(12, 13, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow);
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-column a:hover {
  color: var(--text);
}

.metric-strip,
.field-list,
.job-meta,
.repocat-meta-list,
.repocat-chip-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.code-snippet,
.repocat-excerpt {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(5, 6, 9, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #c6cbdd;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
}

.metric-strip {
  margin-top: 8px;
}

.metric-chip {
  min-width: 150px;
  flex: 1 1 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-chip span,
.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.metric-chip strong,
.metric-value {
  display: block;
  font-size: 1.8rem;
  color: var(--text);
  letter-spacing: -0.04em;
}

.metric-chip strong {
  margin-top: 8px;
}

.logo-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  padding: 6px 0 0;
}

.logo-row span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.cta-band {
  text-align: center;
  padding: 86px 0 96px;
}

.cta-band h2 {
  max-width: 42ch;
  margin: 0 auto;
}

.cta-ghost {
  color: rgba(255, 255, 255, 0.22);
}

.cta-actions {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: center;
  margin-top: 24px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0 60px;
  margin-top: 56px;
}

.footer-grid {
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-column strong {
  color: var(--text);
  font-size: 0.92rem;
}

.footer-column a {
  transition: color 180ms ease;
}

.coming-soon-link {
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 19, 25, 0.98);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--glow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.messages {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.message {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.message.success {
  border-color: rgba(78, 211, 165, 0.22);
  color: #c7ffea;
}

.message.error {
  border-color: rgba(255, 124, 145, 0.22);
  color: #ffd2dc;
}

.dashboard-top {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
}

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

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

.jobs-list,
.repocat-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-card,
.repocat-insight-card,
.repocat-reference {
  display: grid;
  gap: 14px;
}

.repocat-workspace-card.is-active {
  border-color: rgba(124, 140, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(124, 140, 255, 0.12), var(--glow);
}

.job-meta,
.field-list {
  flex-direction: column;
  gap: 8px;
}

.job-meta span,
.field-list span,
.repocat-reference span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.upload-layout,
.auth-layout,
.report-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.report-summary-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.report-card h3,
.report-card h4 {
  margin-bottom: 6px;
}

.score-ring {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(8, 9, 14, 0.98) 52%, transparent 53%),
    conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.score-ring strong {
  font-size: 2.5rem;
}

.score-ring p {
  margin-top: 6px;
  font-size: 0.86rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.preview-table-wrapper {
  overflow-x: auto;
}

form {
  display: grid;
  gap: 16px;
}

form p {
  margin: 0;
  display: grid;
  gap: 8px;
}

label {
  color: var(--text);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(124, 140, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

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

.helptext,
ul.errorlist,
.errornote {
  color: var(--warning);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
}

.intro-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

.repocat-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

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

.repocat-chip-list {
  gap: 10px;
}

.repocat-chip,
.repocat-meta-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.repocat-meta-list span {
  width: 100%;
}

.repocat-graph-card {
  overflow: hidden;
}

.repocat-graph-panel {
  margin-top: 22px;
}

.repocat-graph-shell {
  display: block;
}

.repocat-graph-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.repocat-graph-heading-copy {
  display: grid;
  gap: 14px;
}

.repocat-graph-heading h3 {
  margin: 0;
}

.repocat-graph-heading p {
  max-width: 760px;
  margin: 0;
}

.repocat-graph-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(120, 140, 255, 0.22);
  background:
    radial-gradient(circle at top, rgba(120, 140, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(18, 22, 34, 0.98), rgba(9, 12, 20, 0.98)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  min-height: 320px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.repocat-graph-frame-large {
  min-height: min(70vh, 640px);
  max-height: 640px;
}

.repocat-graph {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.repocat-graph.is-panning {
  cursor: grabbing;
}

.repocat-graph-large {
  height: 100%;
}

.repocat-graph-edge {
  fill: none;
  stroke: rgba(124, 140, 255, 0.34);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: repocat-edge-in 650ms ease backwards;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

@keyframes repocat-edge-in {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes repocat-node-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repocat-graph-edge,
  .repocat-graph-node {
    animation: none;
  }
}

.repocat-graph-edge.is-active {
  stroke: rgba(120, 240, 178, 0.95);
  stroke-width: 3;
}

.repocat-graph-edge.is-muted {
  opacity: 0.12;
}

.repocat-graph-guide {
  fill: none;
  stroke: rgba(215, 222, 244, 0.16);
  stroke-width: 1.2;
  stroke-dasharray: 8 10;
}

.repocat-graph-label {
  fill: rgba(240, 244, 255, 0.96);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.repocat-graph-label-pill {
  fill: rgba(8, 11, 19, 0.78);
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.repocat-graph-node {
  cursor: pointer;
  animation: repocat-node-in 450ms ease backwards;
  transition: opacity 180ms ease, transform 180ms ease;
  outline: none;
}

.repocat-graph-node-labels {
  transition: opacity 200ms ease;
}

.repocat-graph-node.is-minor .repocat-graph-node-labels {
  opacity: 0;
}

.repocat-graph-node.is-minor:hover .repocat-graph-node-labels,
.repocat-graph-node.is-minor:focus-visible .repocat-graph-node-labels,
.repocat-graph-node.is-minor.is-active .repocat-graph-node-labels,
.repocat-graph-node.is-minor.is-neighbor .repocat-graph-node-labels {
  opacity: 1;
}

.repocat-graph-node circle,
.repocat-graph-node text,
.repocat-graph-node rect {
  transition: opacity 180ms ease, transform 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.repocat-graph-node.is-active circle:nth-of-type(2),
.repocat-graph-node:focus-visible circle:nth-of-type(2) {
  stroke: #ffffff;
  stroke-width: 4.5;
}

.repocat-graph-node.is-neighbor {
  opacity: 0.96;
}

.repocat-graph-node.is-muted {
  opacity: 0.28;
}

.repocat-graph-node.is-active .repocat-graph-label-pill,
.repocat-graph-node:focus-visible .repocat-graph-label-pill {
  fill: rgba(15, 20, 32, 0.98);
  stroke: rgba(120, 240, 178, 0.34);
}

.repocat-graph-node.is-active .repocat-graph-label,
.repocat-graph-node:focus-visible .repocat-graph-label {
  fill: #ffffff;
}

.repocat-graph-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 220px;
  max-width: 280px;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 255, 0.22);
  background: rgba(9, 12, 20, 0.96);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.repocat-graph-tooltip strong {
  color: #f8fafc;
  font-size: 0.92rem;
}

.repocat-graph-tooltip span {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.repocat-graph-details {
  position: static;
  width: 100%;
  margin-top: 16px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(120, 140, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(120, 140, 255, 0.1), rgba(10, 14, 24, 0.96)),
    rgba(10, 14, 24, 0.95);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.repocat-graph-details h4,
.repocat-graph-details p {
  margin: 0;
}

.repocat-graph-details h4 {
  color: #f8fafc;
}

.repocat-graph-details p {
  color: #cbd5e1;
}

.repocat-graph-detail-path {
  color: #e2e8f0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.repocat-graph-stats,
.repocat-graph-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.repocat-graph-stats span,
.repocat-graph-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 140, 255, 0.14);
  color: #d7def4;
  font-size: 0.82rem;
}

.repocat-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.repocat-graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.repocat-graph-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 18px currentColor;
}

.repocat-graph-legend span[data-role="entry"]::before {
  background: #78f0b2;
}

.repocat-graph-legend span[data-role="logic"]::before {
  background: #68e6a3;
}

.repocat-graph-legend span[data-role="data"]::before {
  background: #f3d17b;
}

.repocat-graph-legend span[data-role="integration"]::before {
  background: #9ce8c4;
}

.repocat-graph-legend span[data-role="module"]::before {
  background: #d7def4;
}

.repocat-reference strong {
  font-size: 0.98rem;
}

.empty-state {
  text-align: center;
  padding: 46px 24px;
}

@media (max-width: 1100px) {
  .dashboard-top,
  .upload-layout,
  .auth-layout,
  .report-summary-grid,
  .report-grid,
  .repocat-grid,
  .section-heading,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-col + .bento-col {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
  }

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

@media (max-width: 900px) {
  .hero-deco {
    display: none;
  }

  .topbar .shell {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .jobs-list,
  .repocat-list,
  .repocat-insight-grid,
  .stats-grid,
  .dashboard-panels,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .repocat-graph-frame,
  .repocat-graph {
    min-height: 300px;
    height: 300px;
  }

  .repocat-graph-frame-large,
  .repocat-graph-large {
    min-height: 360px;
    height: 360px;
  }

  .repocat-graph-details {
    position: static;
    width: 100%;
    margin-top: 14px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-actions,
  .cta-actions {
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
    justify-content: stretch;
  }

  .button,
  button,
  input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1180px, calc(100% - 24px));
  }

  .section {
    padding: 42px 0;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .surface-card,
  .report-card,
  .job-card,
  .auth-card,
  .upload-panel,
  .metric-card,
  .repocat-insight-card,
  .repocat-reference,
  .page-card,
  .preview-card {
    padding: 18px;
    border-radius: 20px;
  }
}

/* CSV cleaning pipeline walkthrough */
.pipeline-card {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 15, 20, 0.96), rgba(8, 9, 13, 0.98));
  box-shadow: var(--glow);
  overflow: hidden;
}

.pipeline-body {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 0;
}

.pipeline-steps {
  margin: 0;
  padding: 26px 22px;
  list-style: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pipeline-step {
  position: relative;
  padding: 9px 12px 9px 30px;
  border-radius: 12px;
  transition: background 260ms ease, opacity 260ms ease;
  opacity: 0.45;
}

.pipeline-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.pipeline-step.is-active {
  opacity: 1;
  background: rgba(124, 140, 255, 0.1);
}

.pipeline-step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.22);
  animation: pipeline-pulse 1.2s ease infinite;
}

.pipeline-step.is-done {
  opacity: 0.8;
}

.pipeline-step.is-done::before {
  background: var(--success);
  box-shadow: none;
}

.pipeline-step-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.pipeline-step-detail {
  display: block;
  margin-top: 2px;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--muted);
}

@keyframes pipeline-pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(124, 140, 255, 0.1);
  }
}

.pipeline-stage {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.pipeline-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.pipeline-table th,
.pipeline-table td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pipeline-table thead th {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
}

.pipeline-table tbody tr {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 300ms ease, transform 300ms ease, background 320ms ease;
  color: var(--muted-strong);
}

.pipeline-table tbody tr.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.pipeline-table tbody tr:last-child td {
  border-bottom: none;
}

.col-type {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(124, 140, 255, 0.4);
  background: rgba(124, 140, 255, 0.12);
  color: #cfd6ff;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 300ms ease;
}

.col-type.is-visible {
  opacity: 1;
}

.cell-flash {
  animation: pipeline-cell-flash 900ms ease;
}

@keyframes pipeline-cell-flash {
  0% {
    background: rgba(124, 140, 255, 0.3);
  }
  100% {
    background: transparent;
  }
}

.cell-fixed {
  color: #cfd6ff;
}

.cell-imputed {
  color: var(--success);
}

.cell-missing {
  color: var(--danger);
  opacity: 0.85;
}

.cell-suspect {
  color: var(--warning);
}

.pipeline-table tbody tr.is-removed {
  background: rgba(255, 124, 145, 0.06);
  color: rgba(141, 147, 165, 0.6);
  opacity: 0.42;
}

.pipeline-table tbody tr.is-removed td {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 124, 145, 0.55);
}

.row-tag {
  margin-left: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 124, 145, 0.45);
  background: rgba(255, 124, 145, 0.12);
  color: var(--danger);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.pipeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.pipeline-summary.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pipeline-summary[hidden] {
  display: none;
}

.pipeline-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.76rem;
}

.pipeline-chip.success {
  border-color: rgba(78, 211, 165, 0.45);
  background: rgba(78, 211, 165, 0.1);
  color: var(--success);
}

.pipeline-chip.warning {
  border-color: rgba(246, 195, 91, 0.45);
  background: rgba(246, 195, 91, 0.1);
  color: var(--warning);
}

.pipeline-chip.danger {
  border-color: rgba(255, 124, 145, 0.45);
  background: rgba(255, 124, 145, 0.1);
  color: var(--danger);
}

.pipeline-chip.download {
  border-color: rgba(124, 140, 255, 0.5);
  background: rgba(124, 140, 255, 0.14);
  color: #cfd6ff;
}

@media (max-width: 900px) {
  .pipeline-body {
    grid-template-columns: 1fr;
  }

  .pipeline-steps {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 18px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pipeline-step {
    flex-shrink: 0;
    max-width: 220px;
  }

  .pipeline-stage {
    padding: 20px 16px 18px;
  }
}

/* SeedFmt terminal walkthrough */
.terminal-line[hidden] {
  display: none;
}

.sf-check {
  margin-right: 6px;
  color: var(--success);
  font-weight: 700;
}

.sf-payload {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  color: var(--muted);
}

.sf-redacted {
  letter-spacing: 1px;
  color: rgba(124, 140, 255, 0.55);
  text-shadow: 0 0 9px rgba(124, 140, 255, 0.35);
  user-select: none;
}

.sf-seal {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(246, 195, 91, 0.45);
  background: rgba(246, 195, 91, 0.1);
  color: var(--warning);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sf-meter {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.sf-meter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sf-meter[hidden] {
  display: none;
}

.sf-meter-title {
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sf-meter-row {
  display: grid;
  grid-template-columns: 176px 1fr 150px;
  align-items: center;
  gap: 14px;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--muted-strong);
}

.sf-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.sf-meter-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sf-meter-fill.raw {
  background: rgba(255, 124, 145, 0.75);
}

.sf-meter-fill.registry {
  background: var(--success);
}

.sf-meter-fill.native {
  background: var(--accent);
}

.sf-meter-value {
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
}

.sf-meter-value strong {
  color: var(--text);
  font-weight: 600;
}

.sf-meter-delta {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(78, 211, 165, 0.45);
  background: rgba(78, 211, 165, 0.1);
  color: var(--success);
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 300ms ease;
}

.sf-meter-delta.is-visible {
  opacity: 1;
}

.sf-meter-delta[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .sf-meter-row {
    grid-template-columns: 110px 1fr 96px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Terminal-style auth pages (login / signup) */
.auth-solo {
  max-width: 780px;
}

.auth-solo .dash-terminal-body {
  min-height: 0;
  padding: 30px 30px 28px;
}

.auth-label {
  flex-shrink: 0;
  margin: 0;
  color: var(--muted-strong);
  font-weight: 500;
  font-size: 0.95rem;
}

.dash-line input.launcher-input {
  width: auto;
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.dash-line input.launcher-input:focus {
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
}

.dash-line input.launcher-input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 999999s ease;
}

.launcher-hint a {
  color: var(--success);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.launcher-hint a:hover {
  color: var(--text);
}


/* Landing page boot loader */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(124, 140, 255, 0.08), transparent 55%),
    radial-gradient(ellipse at center, rgba(5, 5, 7, 0) 55%, rgba(0, 0, 0, 0.55) 100%),
    var(--bg);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.boot-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.016) 2px,
    rgba(255, 255, 255, 0.016) 4px
  );
}

.boot-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 22vh;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(124, 140, 255, 0.045) 45%,
    rgba(92, 211, 255, 0.05) 55%,
    transparent
  );
  animation: boot-beam-sweep 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes boot-beam-sweep {
  from { transform: translateY(-30vh); }
  to { transform: translateY(140vh); }
}

.boot-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.boot-window {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 15, 20, 0.97), rgba(8, 9, 13, 0.99));
  box-shadow:
    var(--glow),
    0 0 90px rgba(124, 140, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: boot-window-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.boot-loader.is-done .boot-window {
  transform: scale(1.05);
  filter: blur(6px);
}

@keyframes boot-window-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.boot-window .terminal-header {
  padding: 13px 18px;
}

.boot-body {
  padding: 24px 26px 26px;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted-strong);
  display: grid;
  gap: 9px;
}

.boot-line {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  min-height: 1.7em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.boot-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-sigil {
  color: var(--accent);
}

.boot-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.boot-ok {
  color: var(--success);
}

.boot-dim {
  color: var(--muted);
}

.boot-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  align-self: center;
}

.boot-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #5cd3ff);
  box-shadow: 0 0 12px rgba(124, 140, 255, 0.6);
  transition: width 0.68s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.boot-pct {
  min-width: 4ch;
  text-align: right;
  color: var(--muted);
  font-size: 0.82rem;
  align-self: center;
}

.boot-line-engaged {
  margin-top: 6px;
}

.boot-line-engaged.is-visible {
  animation: boot-flicker 0.42s steps(2, jump-none) 1;
}

.boot-engaged {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow:
    0 0 16px rgba(124, 140, 255, 0.75),
    0 0 42px rgba(124, 140, 255, 0.35);
  animation: boot-glow-pulse 1.6s ease-in-out infinite;
}

.boot-cat {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

@keyframes boot-flicker {
  0% { opacity: 0; }
  25% { opacity: 1; }
  40% { opacity: 0.35; }
  60% { opacity: 1; }
  75% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes boot-glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 16px rgba(124, 140, 255, 0.75),
      0 0 42px rgba(124, 140, 255, 0.35);
  }
  50% {
    text-shadow:
      0 0 22px rgba(124, 140, 255, 0.95),
      0 0 60px rgba(92, 211, 255, 0.4);
  }
}

.boot-loader .terminal-cursor {
  transform: translateY(1px);
}
