:root {
  color-scheme: dark;
  --black: #010302;
  --black-2: #050706;
  --ink: #f5f7f2;
  --muted: #a6afa8;
  --dim: #68726d;
  --line: rgba(245, 247, 242, 0.13);
  --line-strong: rgba(245, 247, 242, 0.26);
  --teal: #00e2d1;
  --teal-2: #66fff2;
  --amber: #f0a93a;
  --red: #ef6759;
  --green: #47e38a;
  --panel: rgba(6, 10, 9, 0.78);
  --panel-solid: #08100e;
  --radius: 6px;
  --display: "Helvetica Neue", "Avenir Next", "SF Pro Display", system-ui, sans-serif;
  --body: "Avenir Next", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-family: var(--body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
  font-family: var(--body);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--black);
  background-size: 88px 88px;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.08) 4px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
}

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

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

p,
h1,
h2,
h3,
ol,
dl,
dd {
  margin: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 16px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(1, 3, 2, 0.72);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 226, 209, 0.7);
  border-radius: 3px;
  color: #001714;
  background: var(--teal);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 0 32px rgba(0, 226, 209, 0.3);
}

.brand-mark::after {
  position: absolute;
  right: -7px;
  bottom: 5px;
  width: 14px;
  height: 1px;
  background: var(--teal);
  content: "";
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.topbar-actions,
.hero-actions,
.form-row,
.account-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #001614;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  border-color: rgba(0, 226, 209, 0.8);
  box-shadow: 0 16px 42px rgba(0, 226, 209, 0.22);
}

.button-light {
  color: #030504;
  background: var(--ink);
  border-color: var(--ink);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}

.hero-mission {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: end;
  padding: 132px clamp(24px, 5vw, 72px) 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0.82;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 3, 2, 0.98), rgba(1, 3, 2, 0.74) 38%, rgba(1, 3, 2, 0.1) 72%),
    linear-gradient(180deg, rgba(1, 3, 2, 0.15), rgba(1, 3, 2, 0.2) 58%, rgba(1, 3, 2, 0.96));
}

.hero-copy,
.hero-mission-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.dash-overline,
.section-kicker,
.result-header span,
.mission-card-top span,
.console-row span,
.dash-stats span,
.drop-copy,
.capability-manifest span,
.truth-grid strong {
  color: var(--teal);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-top: 14px;
  max-width: 920px;
  font-size: 78px;
  line-height: 0.94;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-mission-card {
  max-width: 520px;
  justify-self: end;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(3, 6, 5, 0.72);
  backdrop-filter: blur(20px);
}

.mission-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.mission-card-top strong {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.flight-plan {
  display: grid;
  list-style: none;
  padding: 0;
}

.flight-plan li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.flight-plan li:last-child {
  border-bottom: 0;
}

.flight-plan span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.flight-plan strong {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1;
  text-transform: uppercase;
}

.flight-plan small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.dark-band {
  background: rgba(3, 6, 5, 0.78);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(280px, 0.65fr);
  gap: 58px;
  align-items: end;
  margin-top: 14px;
}

h2 {
  font-size: 56px;
  line-height: 0.98;
}

.section p,
.proof-copy p,
.language-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.workflow-steps,
.truth-grid,
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--line);
}

.workflow-steps article,
.truth-grid article,
.dash-stats article {
  min-height: 190px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 45%),
    rgba(7, 12, 10, 0.9);
}

.workflow-steps span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

h3 {
  margin-top: 20px;
  font-size: 26px;
  line-height: 1.04;
}

.workflow-steps p,
.truth-grid p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.language-section {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(280px, 0.68fr);
  gap: 72px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 226, 209, 0.08), transparent 46%),
    rgba(1, 3, 2, 0.86);
}

.language-section h2 {
  margin-top: 16px;
}

.split-proof {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 0.75fr);
  gap: 64px;
  align-items: center;
}

.capability-manifest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.capability-manifest div {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    linear-gradient(150deg, rgba(0, 226, 209, 0.08), transparent 42%),
    rgba(7, 12, 10, 0.92);
}

.capability-manifest strong {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.capability-manifest small {
  color: var(--muted);
  line-height: 1.5;
}

.proof-copy h2,
.proof-copy p,
.proof-copy pre {
  margin-top: 18px;
}

pre {
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #020403;
  color: #cafffa;
  font-size: 13px;
  line-height: 1.7;
}

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

.truth-grid article {
  min-height: 220px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 850;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(320px, 1fr);
  background: #010302;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 72px);
  border-right: 1px solid var(--line);
  background: rgba(4, 8, 7, 0.94);
}

.auth-copy h1 {
  font-size: 56px;
  line-height: 0.98;
}

.auth-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form[hidden] {
  display: none;
}

label,
.field,
.drop-zone {
  display: grid;
  gap: 8px;
}

label span,
.field span,
.drop-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

textarea {
  min-height: 92px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 226, 209, 0.13);
}

.form-message {
  min-height: 20px;
  color: var(--amber);
  font-size: 13px;
}

.auth-switch {
  color: var(--muted);
  font-size: 14px;
}

.auth-switch a {
  color: var(--ink);
  font-weight: 850;
}

.auth-aside {
  position: relative;
  display: grid;
  align-items: end;
  padding: clamp(28px, 7vw, 96px);
  overflow: hidden;
  background: #010302;
}

.auth-aside::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("/assets/teravoice-orbital-hero.png") center / cover no-repeat;
  opacity: 0.72;
}

.auth-aside::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(1, 3, 2, 0.88), rgba(1, 3, 2, 0.22));
}

.mission-console {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(4, 8, 7, 0.72);
  backdrop-filter: blur(18px);
}

.console-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.console-row:last-child {
  border-bottom: 0;
}

.console-row strong {
  max-width: 220px;
  text-align: right;
  font-size: 13px;
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(0, 226, 209, 0.045), transparent 340px),
    #010302;
}

.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(1, 3, 2, 0.88);
  backdrop-filter: blur(18px);
}

.dash-sidebar nav {
  display: grid;
  gap: 8px;
}

.dash-sidebar nav a {
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.dash-sidebar nav a.active,
.dash-sidebar nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-note {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-note strong {
  color: var(--ink);
  font-size: 13px;
}

.dash-main {
  min-width: 0;
  padding: 34px clamp(20px, 4vw, 58px) 64px;
}

.dash-header,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.dash-header h1 {
  margin-top: 8px;
  font-size: 72px;
  line-height: 0.94;
}

.account-menu span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dash-stats {
  margin-top: 34px;
}

.dash-stats article {
  min-height: 112px;
}

.dash-stats strong {
  display: block;
  margin-top: 18px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.studio-panel,
.jobs-panel,
.api-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.panel-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.studio-panel h2,
.jobs-panel h2,
.api-panel h2 {
  font-size: 48px;
  line-height: 0.98;
}

.mode-tabs {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.capability-button {
  display: grid;
  gap: 8px;
  min-height: 74px;
  padding: 14px;
  border: 0;
  color: var(--muted);
  background: rgba(3, 6, 5, 0.92);
  cursor: pointer;
  text-align: left;
}

.capability-button span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 950;
}

.capability-button strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.capability-button.active {
  background:
    linear-gradient(135deg, rgba(0, 226, 209, 0.22), transparent 48%),
    rgba(6, 14, 12, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 226, 209, 0.55);
}

.capability-button.locked {
  cursor: not-allowed;
  opacity: 0.48;
}

.capability-button small {
  color: var(--amber);
  font-size: 11px;
  font-weight: 850;
}

.tab {
  min-width: 92px;
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.tab.active {
  color: #001614;
  background: var(--teal);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 24px;
}

.render-form {
  display: none;
  gap: 14px;
}

.render-form.active {
  display: grid;
}

.advanced-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.text-field[hidden],
.advanced-fields[hidden] {
  display: none;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.drop-zone {
  position: relative;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 226, 209, 0.08), transparent 34%),
    rgba(1, 3, 2, 0.5);
}

.drop-zone::after {
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--teal);
  content: "INGEST";
  font-size: 10px;
  font-weight: 950;
}

.drop-zone:hover {
  border-color: var(--teal);
}

.drop-zone input[type="file"] {
  padding: 12px 0 0;
  border: 0;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
}

.result-panel {
  position: relative;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #020403;
  overflow: hidden;
}

.result-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(0, 226, 209, 0.16) 49% 49.4%, transparent 49.4%),
    linear-gradient(0deg, transparent 0 49%, rgba(255, 255, 255, 0.07) 49% 49.4%, transparent 49.4%);
  background-size: 44px 44px;
  opacity: 0.24;
}

.result-header,
.status-orbit,
.result-panel p,
.result-panel audio,
.result-panel .output-link {
  position: relative;
  z-index: 1;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.result-header strong {
  color: var(--teal);
  text-transform: uppercase;
  font-size: 12px;
}

.status-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  margin: 34px auto 26px;
  border: 1px solid rgba(0, 226, 209, 0.4);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(0, 226, 209, 0.35) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(0, 226, 209, 0.35) 49% 51%, transparent 51%),
    radial-gradient(circle, rgba(0, 226, 209, 0.12), transparent 63%);
}

.status-orbit::before,
.status-orbit::after {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  content: "";
}

.status-orbit::before {
  border: 1px solid rgba(245, 247, 242, 0.15);
}

.status-orbit::after {
  border-top: 2px solid var(--teal);
  border-right: 2px solid transparent;
  border-bottom: 2px solid rgba(240, 169, 58, 0.7);
  border-left: 2px solid transparent;
}

.status-orbit span {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(1, 3, 2, 0.9);
}

.result-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.progress-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.progress-meta span {
  color: var(--dim);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.progress-meta strong {
  color: var(--ink);
}

audio,
.output-link {
  display: none;
  width: 100%;
  margin-top: 18px;
}

.log-panel {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.log-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.log-panel pre {
  max-height: 210px;
  margin: 12px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.job-list {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.job-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.8fr) 110px minmax(170px, 0.8fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(3, 6, 5, 0.94);
}

.job-row strong {
  overflow-wrap: anywhere;
}

.job-row span,
.job-row time {
  color: var(--muted);
  font-size: 13px;
}

.job-status {
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 900;
}

.job-status.failed {
  color: var(--red);
}

.job-status.queued,
.job-status.running {
  color: var(--amber);
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  background: rgba(3, 6, 5, 0.94);
}

.api-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.api-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1120px) {
  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 44px;
  }

  .dash-header h1 {
    font-size: 58px;
  }

  .studio-panel h2,
  .jobs-panel h2,
  .api-panel h2 {
    font-size: 42px;
  }
}

@media (max-width: 980px) {
  .topbar nav {
    display: none;
  }

  .hero-mission,
  .section-head,
  .language-section,
  .split-proof,
  .auth-shell,
  .studio-grid,
  .advanced-fields,
  .api-panel {
    grid-template-columns: 1fr;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(1, 3, 2, 0.96), rgba(1, 3, 2, 0.72)),
      linear-gradient(180deg, rgba(1, 3, 2, 0.12), rgba(1, 3, 2, 0.95));
  }

  .hero-mission-card {
    justify-self: start;
  }

  .dashboard-page {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dash-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-note {
    display: none;
  }

  .auth-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-steps,
  .truth-grid,
  .dash-stats,
  .capability-strip {
    grid-template-columns: 1fr;
  }

  .job-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .button,
  .topbar-actions .text-link {
    flex: 1;
  }

  .hero-mission {
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    font-size: 42px;
  }

  h2,
  .auth-copy h1,
  .dash-header h1,
  .studio-panel h2,
  .jobs-panel h2,
  .api-panel h2 {
    font-size: 34px;
  }

  .capability-manifest,
  .dash-sidebar nav {
    grid-template-columns: 1fr;
  }

  .dash-header,
  .panel-head,
  .account-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
  }

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