:root {
  --bg-1: #050505;
  --bg-2: #0c0c0c;
  --bg-3: #161616;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f4;
  --muted: #a0a0a0;
  --accent: #d9ff3f;
  --accent-2: #ffffff;
  --success: #d9ff3f;
  --error: #ff6b5f;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "SF Pro Display", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(217, 255, 63, 0.14), transparent 22%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  width: 18rem;
  height: 18rem;
  top: 5rem;
  right: 8rem;
  background: rgba(255, 255, 255, 0.09);
}

body::after {
  width: 20rem;
  height: 20rem;
  bottom: 2rem;
  left: 5rem;
  background: rgba(217, 255, 63, 0.18);
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 56px;
  display: grid;
  gap: 20px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #d8d8d8);
  color: #050505;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(255, 255, 255, 0.08);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
}

.nav-auth-button,
.link-button {
  text-decoration: none;
}

.navlinks a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.navlinks a.active,
.navlinks a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.upload-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 100% 100%, rgba(217, 255, 63, 0.08), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.github-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.upload-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(217, 255, 63, 0.24);
  background: rgba(255, 255, 255, 0.025);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-picker {
  min-width: 152px;
  text-align: center;
}

.file-meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.upload-feedback {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.upload-feedback.is-busy {
  color: var(--accent);
}

.upload-feedback.is-error {
  color: var(--error);
}

.upload-feedback.is-success {
  color: var(--text);
}

.hero,
.panel,
.metric {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(115%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
}

.hero {
  padding: 28px 30px 30px;
  border-radius: 36px;
  position: relative;
  overflow: hidden;
}

.compact-hero {
  min-height: auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 38%, rgba(217, 255, 63, 0.05));
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-side {
  display: flex;
  align-items: stretch;
}

.hero-side-card {
  width: 100%;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.metric {
  border-radius: 24px;
  padding: 18px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-label {
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 10px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.metric-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 20px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

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

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
}

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

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

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  border-radius: 28px;
  padding: 22px 22px 24px;
  display: grid;
  gap: 16px;
}

.feature-card,
.step-card {
  align-content: start;
}

.step-mini-card {
  min-height: 170px;
  align-content: start;
}

.capability-grid {
  align-items: stretch;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -56px;
  width: 148px;
  height: 148px;
  border-radius: 999px;
  background: rgba(217, 255, 63, 0.08);
  filter: blur(16px);
  pointer-events: none;
}

.dashboard-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.9rem;
}

.panel h2,
.panel h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-note {
  max-width: 19rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: #e7e7e7;
  line-height: 1.7;
}

.body-copy,
.feature-card p,
.step-card p {
  margin: 0;
  color: #e4e4e4;
  line-height: 1.7;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.93rem;
  color: #ececec;
}

.muted-label {
  color: var(--muted);
  font-size: 0.88em;
  font-weight: 500;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(217, 255, 63, 0.45);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(217, 255, 63, 0.08);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(244, 244, 244, 0.9) 50%),
    linear-gradient(135deg, rgba(244, 244, 244, 0.9) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035));
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  color-scheme: dark;
}

select option {
  background: #111111;
  color: var(--text);
}

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

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.button {
  border: 0;
  border-radius: 18px;
  padding: 12px 18px;
  cursor: pointer;
  color: #050505;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), #fbffe9);
  box-shadow: 0 12px 30px rgba(217, 255, 63, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  width: fit-content;
}

.control-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.control-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.status-pill.passed {
  color: var(--success);
}

.status-pill.failed,
.status-pill.error {
  color: var(--error);
}

.json-card,
.log-card,
.timeline-card {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.agent-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.assessment-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.assessment-section > span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.assessment-list {
  margin: 0;
  padding-left: 18px;
  color: #ededed;
  line-height: 1.6;
}

.assessment-list li + li {
  margin-top: 6px;
}

.agent-brief-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.agent-brief-card span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.agent-brief-card p {
  margin: 0;
  color: #ededed;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-card p {
  margin: 10px 0 0;
  color: #e9e9e9;
  line-height: 1.55;
}

.timeline-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #f0f0f0;
  font-size: 0.86rem;
}

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

.empty {
  color: var(--muted);
  padding: 16px 0;
}

.run-list {
  display: grid;
  gap: 12px;
}

.run-item {
  text-align: left;
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  color: var(--text);
  border-radius: 20px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.tone-good {
  border-color: rgba(217, 255, 63, 0.28);
}

.tone-alert {
  border-color: rgba(255, 107, 95, 0.26);
}

.run-item:hover {
  border-color: rgba(217, 255, 63, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
  transform: translateY(-1px);
}

.selected-report-panel {
  align-content: start;
}

.report-shell {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}

.detail-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-stat {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.detail-stat span,
.detail-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-stat strong {
  font-size: 1.1rem;
}

.detail-section {
  display: grid;
  gap: 8px;
}

.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-section-wide {
  grid-column: 1 / -1;
}

.run-item span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-item strong {
  text-transform: capitalize;
  font-size: 1.05rem;
}

.run-item small {
  color: var(--muted);
}

.wireframe-panel {
  gap: 18px;
}

.wireframe-grid {
  display: grid;
  gap: 14px;
}

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

.wire-block {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 14px
    );
  border: 1px dashed rgba(217, 255, 63, 0.28);
}

.wire-block span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.wire-block strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.wire-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.insight-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 20px;
}

.auth-shell {
  width: min(920px, calc(100% - 32px));
  max-width: 920px;
  gap: 16px;
}

.auth-hero {
  min-height: auto;
  display: grid;
  gap: 22px;
  animation: authRise 320ms ease both;
}

.auth-card {
  gap: 18px;
  animation: authRise 320ms ease both;
  animation-delay: 70ms;
}

.auth-message {
  color: var(--muted);
  line-height: 1.5;
}

.auth-error {
  color: var(--error);
}

.auth-google-stack {
  gap: 12px;
}

.google-signin-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  padding: 14px 0 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.auth-helper-copy {
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
}

.auth-actions-inline {
  display: flex;
  justify-content: center;
}

.auth-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-flow-step {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 13px
    );
  border: 1px dashed rgba(255, 255, 255, 0.14);
  transform: translateY(6px);
  opacity: 0;
  animation: authStepIn 360ms ease forwards;
}

.auth-flow-step:nth-child(2) {
  animation-delay: 70ms;
}

.auth-flow-step:nth-child(3) {
  animation-delay: 140ms;
}

.auth-flow-step.is-active {
  border-color: rgba(217, 255, 63, 0.26);
}

.auth-flow-step span {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-flow-step strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.auth-flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authStepIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-topline,
  .panel-head,
  .control-footer,
  .topnav,
  .nav-auth {
    flex-direction: column;
    align-items: start;
  }

  .hero-grid,
  .layout,
  .insight-shell,
  .dashboard-shell,
  .split,
  .dashboard-summary-grid,
  .four-up,
  .three-up,
  .two-up,
  .three-lane,
  .agent-brief-grid,
  .assessment-grid,
  .report-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .panel-note {
    max-width: none;
    text-align: left;
  }

  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .upload-picker {
    align-items: flex-start;
  }

  .github-import {
    grid-template-columns: 1fr;
  }

  .auth-flow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1200px);
    margin-top: 10px;
  }

  .hero,
  .panel {
    border-radius: 24px;
    padding: 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Overview-only redesign */
.page-overview {
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(900px 520px at 120% 0%, rgba(217, 255, 63, 0.12), transparent 58%),
    linear-gradient(155deg, #050505, #0b0b0b 48%, #151515);
  background-size: 120% 120%;
  animation: overviewBgShift 18s ease-in-out infinite alternate;
}

@keyframes overviewBgShift {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}

.page-overview .overview-shell {
  width: min(1400px, calc(100% - 36px));
  gap: 16px;
}

.page-overview .overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.page-overview .overview-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.page-overview .heading-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
}

.page-overview .three-panel-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(460px, 1.5fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.page-overview .control-panel,
.page-overview .live-panel,
.page-overview .results-panel {
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.page-overview .nested-head {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 8px;
}

.page-overview .nested-head h3,
.page-overview .live-panel h3,
.page-overview .results-panel h3 {
  margin: 0;
}

.page-overview .summary-panel {
  padding: 12px;
  border-radius: 18px;
}

.page-overview .results-panel #json-output {
  max-height: 42vh;
  overflow: auto;
}

.page-overview .live-panel #logs {
  margin-top: 4px;
  padding: 12px;
  border-radius: 18px;
}

.page-overview .timeline {
  max-height: 28vh;
  overflow: auto;
}

.page-overview .reveal-card {
  animation: cardIn 280ms ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-overview .button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.page-overview .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(217, 255, 63, 0.22), 0 14px 30px rgba(217, 255, 63, 0.16);
  filter: saturate(110%);
}

.page-overview .status-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  min-width: 98px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
}

.page-overview .status-pill.idle {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.page-overview .status-pill.running {
  border-color: rgba(217, 255, 63, 0.35);
  color: var(--accent);
}

.page-overview .status-pill.completed {
  border-color: rgba(217, 255, 63, 0.35);
  color: var(--success);
}

.page-overview .status-pill.error {
  border-color: rgba(255, 107, 95, 0.35);
  color: var(--error);
}

.loading-indicator {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px 0;
}

.loading-indicator.visible {
  display: inline-flex;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.logs-split {
  grid-template-columns: 1fr;
}

.terminal-card {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.94), rgba(18, 18, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal {
  max-height: 25vh;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 4px 0;
  font-family: "Consolas", "Cascadia Mono", monospace;
  font-size: 0.84rem;
}

.terminal-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  color: #ededed;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  animation: lineIn 220ms ease forwards;
}

.terminal-line .log-icon {
  font-size: 0.82rem;
  opacity: 0.95;
}

.terminal-line .log-text {
  overflow-wrap: anywhere;
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-overview .run-item {
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.page-overview .run-item:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 255, 63, 0.3);
  box-shadow: 0 10px 26px rgba(217, 255, 63, 0.1);
}

.page-overview .metric {
  border-radius: 18px;
  min-height: 98px;
}

.page-overview .hero-stats {
  grid-template-columns: 1fr;
  margin-top: 0;
}

@media (max-width: 1280px) {
  .page-overview .three-panel-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.3fr);
  }

  .page-overview .results-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-overview .results-panel .panel-head,
  .page-overview .results-panel #summary,
  .page-overview .results-panel #json-output {
    grid-column: 1 / -1;
  }

  .page-overview .results-panel .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-overview .three-panel-grid {
    grid-template-columns: 1fr;
  }

  .page-overview .results-panel,
  .page-overview .results-panel .hero-stats {
    grid-template-columns: 1fr;
  }

  .page-overview .overview-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
