:root {
  color-scheme: dark;
  --bg: #07040b;
  --panel: rgba(24, 16, 34, 0.8);
  --panel-strong: rgba(38, 26, 52, 0.94);
  --text: #fbf7ff;
  --muted: #b7a8c9;
  --line: rgba(216, 170, 255, 0.18);
  --cyan: #d391ff;
  --blue: #6de7ff;
  --silver: #efe2ff;
  --green: #7dffbd;
  --gold: #ffd36a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(120deg, rgba(216, 170, 255, 0.04) 12%, transparent 12%, transparent 50%, rgba(216, 170, 255, 0.04) 50%, rgba(216, 170, 255, 0.04) 62%, transparent 62%),
    radial-gradient(circle at 20% 10%, rgba(211, 145, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(109, 231, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #07040b 0%, #120a1c 48%, #07040b 100%);
  background-size: 36px 36px, auto, auto, auto;
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(211, 145, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035) 48%, rgba(211, 145, 255, 0.11)),
    rgba(24, 16, 34, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.25);
}

.auth-card h1 {
  margin: 14px 0 14px;
  font-size: clamp(38px, 7vw, 64px);
}

.auth-card p {
  color: var(--muted);
  line-height: 1.62;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.auth-form label {
  color: var(--silver);
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(4, 8, 13, 0.72);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(211, 145, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(211, 145, 255, 0.12);
}

.auth-error {
  min-height: 24px;
  margin: 14px 0 0;
  color: #ff9fa8 !important;
  font-weight: 800;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand,
.nav-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--silver);
  font-size: 16px;
  letter-spacing: 0;
}

.brand strong {
  color: white;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(211, 145, 255, 0.48)),
    linear-gradient(180deg, #0e1117, #1a212b);
  box-shadow: 0 0 30px rgba(211, 145, 255, 0.26);
  position: relative;
}

.mark::after {
  content: "";
  position: absolute;
  inset: 10px 8px 8px;
  border: 2px solid #061016;
  border-top: 0;
  transform: skewX(-10deg);
}

.nav-link {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-header {
  max-width: 760px;
  padding: 30px 0 16px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
}

.signal-panel,
.use-cases {
  display: none;
}

.primary,
.secondary,
.analyzer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  text-align: center;
}

.primary,
.analyzer button {
  color: #020508;
  background: linear-gradient(135deg, white, var(--cyan));
  box-shadow: 0 18px 50px rgba(211, 145, 255, 0.24);
}

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

.signal-panel,
.analyzer,
.report,
.case-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-panel {
  min-height: 420px;
  border-radius: 28px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.panel-header,
.metric-grid {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.pulse {
  color: var(--green);
}

.metric-grid {
  display: grid;
  gap: 14px;
  margin-top: 110px;
}

.metric-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid strong {
  font-size: 22px;
}

.scan-line {
  position: absolute;
  inset: 62px 26px auto;
  height: 160px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(109, 231, 255, 0.38), transparent);
  filter: blur(18px);
  animation: scan 4s ease-in-out infinite;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(135px);
  }
}

.demo {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
  padding: 36px 0 72px;
}

.analyzer,
.report {
  border-radius: 24px;
  padding: 22px;
}

label {
  display: block;
  margin: 0 0 10px;
  color: var(--silver);
  font-size: 14px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.field-hint {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  outline: none;
}

input,
select {
  min-height: 52px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

#repoUrls {
  min-height: 154px;
}

.analyzer button {
  width: 100%;
  margin-top: 18px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(109, 231, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(109, 231, 255, 0.1);
}

.workspace {
  display: grid;
  gap: 16px;
  padding: 18px 0 72px;
}

.agent-runner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(109, 231, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(109, 231, 255, 0.11), rgba(181, 110, 255, 0.09)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.agent-runner h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.agent-runner p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.agent-runner-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: 220px;
}

.agent-runner-actions span {
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(109, 231, 255, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(109, 231, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agent-runner-actions .primary {
  min-width: 230px;
  min-height: 62px;
  font-size: 1rem;
}

.autopilot-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
}

.autopilot-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.autopilot-switch i {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 170, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  transition: 160ms ease;
}

.autopilot-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: 160ms ease;
}

.autopilot-switch input:checked + i {
  border-color: rgba(125, 255, 189, 0.7);
  background: rgba(125, 255, 189, 0.18);
}

.autopilot-switch input:checked + i::after {
  transform: translateX(16px);
  background: var(--green);
}

.autopilot-switch input:focus-visible + i {
  box-shadow: 0 0 0 4px rgba(109, 231, 255, 0.14);
}

.agent-pipeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.agent-pipeline div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(216, 170, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.agent-pipeline span,
.agent-pipeline small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-pipeline strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.agent-pipeline [data-state="running"] {
  border-color: rgba(109, 231, 255, 0.52);
  background: rgba(109, 231, 255, 0.1);
}

.agent-pipeline [data-state="done"] {
  border-color: rgba(125, 255, 189, 0.5);
  background: rgba(125, 255, 189, 0.09);
}

.agent-pipeline [data-state="warning"] {
  border-color: rgba(255, 211, 106, 0.48);
  background: rgba(255, 211, 106, 0.08);
}

.agent-pipeline [data-state="error"] {
  border-color: rgba(255, 113, 134, 0.52);
  background: rgba(255, 113, 134, 0.09);
}

.agent-pipeline [data-state="running"] small,
.agent-pipeline [data-state="running"] span {
  color: var(--blue);
}

.agent-pipeline [data-state="done"] small,
.agent-pipeline [data-state="done"] span {
  color: var(--green);
}

.autopilot-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: 12px 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(109, 231, 255, 0.24);
  border-radius: 12px;
  background: rgba(1, 10, 19, 0.64);
}

.autopilot-progress[hidden] {
  display: none;
}

.autopilot-progress > div:first-child span {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.autopilot-progress > div:first-child strong {
  line-height: 1.45;
}

.autopilot-progress progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  accent-color: var(--green);
}

.autopilot-progress progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

.autopilot-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.autopilot-candidates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.autopilot-candidates:empty {
  display: none;
}

.autopilot-candidates article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(216, 170, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.autopilot-candidates article[data-selected="true"] {
  border-color: rgba(125, 255, 189, 0.58);
  background: rgba(125, 255, 189, 0.09);
}

.autopilot-candidates article > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--bg);
  background: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
}

.autopilot-candidates strong,
.autopilot-candidates small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopilot-candidates small,
.autopilot-progress > small {
  color: var(--muted);
}

.autopilot-candidates b {
  color: var(--green);
}

.autopilot-progress > small {
  grid-column: 1 / -1;
  line-height: 1.5;
}

.world-model-card,
.quick-source {
  margin: 0;
}

.world-model-card {
  padding: 22px;
  border: 1px solid rgba(109, 231, 255, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 211, 106, 0.18), transparent 32%),
    radial-gradient(circle at 90% 18%, rgba(111, 231, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(141, 92, 255, 0.09));
  box-shadow: var(--shadow);
}

.world-model-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 18px;
  align-items: start;
}

.world-model-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
}

.world-model-head p,
.world-lens-preview p {
  margin: 0;
  color: var(--muted);
}

.lens-select-wrap {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.lens-select-wrap select,
.lens-select-wrap input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(109, 231, 255, 0.35);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(7, 10, 15, 0.86);
  font: inherit;
  font-weight: 900;
}

.lens-select-wrap input {
  min-height: 48px;
  border-color: rgba(211, 145, 255, 0.26);
  background: rgba(7, 10, 15, 0.56);
  font-size: 15px;
}

.lens-select-wrap input::placeholder {
  color: rgba(237, 244, 255, 0.42);
}

.custom-lens-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.custom-lens-examples button {
  min-height: 34px;
  border: 1px solid rgba(109, 231, 255, 0.24);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.custom-lens-examples button:hover {
  border-color: rgba(211, 145, 255, 0.48);
  color: var(--text);
  background: rgba(211, 145, 255, 0.12);
}

.world-signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
  align-items: stretch;
}

.world-signal-row textarea {
  min-height: 110px;
  resize: vertical;
}

.world-signal-row button {
  min-width: 144px;
}

.world-signal-actions {
  display: grid;
  gap: 10px;
  align-content: stretch;
}

.next-action-guide {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(109, 231, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109, 231, 255, 0.11), rgba(211, 145, 255, 0.1)),
    rgba(0, 0, 0, 0.2);
}

.next-action-guide span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-action-guide strong {
  color: var(--text);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.15;
}

.next-action-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.next-action-guide[data-next-state="ready"] {
  border-color: rgba(28, 233, 183, 0.42);
  background:
    radial-gradient(circle at 8% 50%, rgba(28, 233, 183, 0.18), transparent 18rem),
    rgba(0, 0, 0, 0.2);
}

.next-button {
  position: relative;
  border-color: rgba(255, 211, 106, 0.62) !important;
  color: #080808 !important;
  background: linear-gradient(135deg, #fff7dc, #6de7ff) !important;
  box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.12), 0 16px 42px rgba(109, 231, 255, 0.24);
}

.is-working {
  cursor: progress !important;
  filter: saturate(1.15);
  animation: workingPulse 1s ease-in-out infinite alternate;
}

@keyframes workingPulse {
  from {
    box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.12), 0 16px 42px rgba(109, 231, 255, 0.18);
  }
  to {
    box-shadow: 0 0 0 5px rgba(255, 211, 106, 0.22), 0 20px 54px rgba(109, 231, 255, 0.34);
  }
}

.world-scout-strip {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.world-scout-live {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 211, 106, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 211, 106, 0.12), rgba(109, 231, 255, 0.1)),
    rgba(0, 0, 0, 0.2);
}

.world-scout-live strong {
  color: var(--gold);
}

.world-scout-live span {
  color: var(--muted);
  line-height: 1.45;
}

.world-scout-empty,
.world-scout-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.world-scout-empty strong,
.world-scout-empty span,
.world-scout-item span,
.world-scout-item strong,
.world-scout-item small {
  display: block;
}

.world-scout-empty span,
.world-scout-item p,
.world-scout-item small {
  color: var(--muted);
}

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

.world-scout-item.selected {
  border-color: rgba(28, 233, 183, 0.48);
  background:
    linear-gradient(135deg, rgba(28, 233, 183, 0.08), rgba(109, 231, 255, 0.08)),
    rgba(0, 0, 0, 0.2);
}

.world-scout-item span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-scout-item strong {
  margin-top: 5px;
  font-size: 1.06rem;
}

.world-scout-item p {
  margin: 6px 0;
}

.world-lens-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
  margin-top: 14px;
}

.world-lens-preview article {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.world-lens-preview strong,
.world-lens-preview span {
  display: block;
}

.world-lens-preview strong {
  font-size: 1.05rem;
}

.world-lens-preview span {
  margin: 6px 0;
  color: var(--blue);
  font-weight: 900;
}

.quick-source .analyzer {
  display: grid;
  gap: 12px;
  max-width: none;
  padding: 22px;
  border-radius: 22px;
}

.quick-source .analyzer button {
  display: none;
}

.advanced-workspace {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0.72;
}

.advanced-workspace summary {
  min-height: 54px;
  padding: 16px 18px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.advanced-workspace summary::marker {
  color: var(--cyan);
}

.advanced-workspace[open] {
  padding: 0 16px 16px;
}

.tabs {
  display: inline-grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  color: #020508;
  background: linear-gradient(135deg, white, var(--cyan));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.report {
  min-height: 420px;
  background: var(--panel-strong);
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  color: var(--text);
  margin-bottom: 8px;
}

.orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, white 0%, var(--cyan) 42%, transparent 70%);
  box-shadow: 0 0 48px rgba(109, 231, 255, 0.34);
}

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

.report-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.report-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-card p {
  margin: 0;
  color: var(--silver);
  line-height: 1.5;
}

.report-card.wide {
  background: linear-gradient(135deg, rgba(109, 231, 255, 0.11), rgba(255, 255, 255, 0.052));
}

.strength-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strength-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.strength-list strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.strength-list span {
  margin: 0;
  color: var(--silver);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.source-evidence-list li {
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
}

.source-evidence-list strong {
  color: #f5fbff;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.vault-form,
.vault-panel,
.daily-form,
.daily-report,
.money-form,
.money-report,
.brain-form,
.brain-panel,
.build-form,
.build-panel,
.local-form,
.local-report {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.vault-form button,
.daily-form button,
.money-form button,
.brain-form button,
.build-form button,
.local-form button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  color: #020508;
  background: linear-gradient(135deg, white, var(--cyan));
  cursor: pointer;
  font-weight: 800;
}

.daily-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.money-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.brain-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  gap: 22px;
  align-items: start;
}

.build-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  gap: 22px;
  align-items: start;
}

.agent-first-build {
  grid-template-columns: minmax(0, 1fr);
}

.build-form h2,
.build-panel h2 {
  margin-bottom: 8px;
}

.build-panel {
  min-height: 640px;
  background: var(--panel-strong);
}

.build-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.build-status-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.build-status-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.build-status-grid strong {
  color: var(--text);
  font-size: 24px;
}

.run-summary,
.build-summary {
  margin-bottom: 0;
}

.mvp-empty-state {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid rgba(109, 231, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(109, 231, 255, 0.08), rgba(181, 110, 255, 0.07)),
    rgba(255, 255, 255, 0.04);
}

.mvp-empty-state h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
}

.mvp-empty-state p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.run-hero {
  margin-bottom: 12px;
  padding: 22px;
  border: 1px solid rgba(109, 231, 255, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109, 231, 255, 0.16), rgba(181, 110, 255, 0.12)),
    rgba(0, 0, 0, 0.2);
}

.run-hero span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.run-hero h2 {
  margin: 8px 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

.run-hero p {
  margin: 0;
  color: var(--silver);
  line-height: 1.55;
}

.run-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.action-card {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  border-color: rgba(109, 231, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(109, 231, 255, 0.12), rgba(125, 255, 189, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.action-card h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.action-card .primary {
  width: fit-content;
  min-width: 240px;
  min-height: 56px;
}

.product-create-status {
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(109, 231, 255, 0.28);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.product-create-status strong,
.product-create-status span {
  color: var(--silver);
}

.github-create-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(109, 231, 255, 0.18);
}

.compiler-result,
.release-gate-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(109, 231, 255, 0.22);
  border-radius: 12px;
  background: rgba(4, 9, 16, 0.48);
}

.compiler-result[data-ok="true"],
.release-gate-result[data-pass="true"] {
  border-color: rgba(125, 255, 189, 0.42);
  background: rgba(125, 255, 189, 0.08);
}

.compiler-result[data-ok="false"],
.release-gate-result[data-pass="false"] {
  border-color: rgba(255, 113, 134, 0.42);
  background: rgba(255, 113, 134, 0.08);
}

.release-gate-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.release-gate-result p {
  margin: 0;
}

.release-gate-result summary {
  cursor: pointer;
  color: var(--silver);
  font-weight: 850;
}

.release-gate-result ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.release-gate-result li {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.release-gate-result li strong,
.release-gate-result li span {
  display: block;
}

.release-gate-result li[data-ok="true"] strong {
  color: var(--green);
}

.release-gate-result li[data-ok="false"] strong {
  color: #ffb6c2;
}

.github-create-result a {
  color: var(--green);
  overflow-wrap: anywhere;
}

.deploy-create-result {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(125, 255, 189, 0.24);
  border-radius: 10px;
  background: rgba(125, 255, 189, 0.08);
}

.deploy-create-result strong {
  color: var(--green);
}

.deploy-create-result span {
  overflow-wrap: anywhere;
}

.github-create-result p {
  margin: 0;
  color: #ffb6c2;
}

.github-create-result ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.github-create-result li {
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.github-create-result li[data-ok="true"] strong {
  color: var(--green);
}

.github-create-result li[data-ok="false"] strong {
  color: #ffb6c2;
}

.github-create-result li strong,
.github-create-result li span {
  display: block;
  font-size: 0.84rem;
}

.viability-card {
  border-color: rgba(125, 255, 189, 0.34);
  background:
    linear-gradient(135deg, rgba(125, 255, 189, 0.1), rgba(211, 145, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.micro-niche-card {
  border-color: rgba(255, 211, 106, 0.34);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 211, 106, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 211, 106, 0.07));
}

.taste-card {
  border-color: rgba(255, 107, 139, 0.38);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 139, 0.2), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(109, 231, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(211, 145, 255, 0.075));
}

.world-proof-card {
  border-color: rgba(205, 141, 255, 0.34);
}

.viability-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.viability-score span {
  color: var(--green);
}

.viability-score strong {
  color: var(--text);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.9;
}

.viability-list {
  margin-top: 14px;
}

.price-reason {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(125, 255, 189, 0.26);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.price-reason strong,
.price-reason span {
  display: block;
}

.price-reason strong {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-reason span {
  color: var(--silver);
  line-height: 1.55;
}

.landing-kit-card {
  border-color: rgba(211, 145, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(211, 145, 255, 0.14), rgba(109, 231, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.landing-kit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.landing-kit-head h3 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.palette-strip {
  display: inline-grid;
  grid-template-columns: repeat(4, 28px);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
}

.palette-strip i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.landing-kit-grid,
.landing-pricing-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.landing-kit-grid div,
.landing-pricing-preview article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.landing-kit-grid strong,
.landing-pricing-preview span {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-kit-grid p,
.landing-pricing-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-pricing-preview strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
}

.launch-kit-card {
  border-color: rgba(109, 231, 255, 0.28);
  background:
    radial-gradient(circle at 90% 10%, rgba(109, 231, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(211, 145, 255, 0.1), rgba(24, 201, 137, 0.08)),
    rgba(255, 255, 255, 0.045);
}

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

.launch-copy-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.launch-copy-grid span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-copy-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.run-command-bar,
.recent-runs-card,
.daily-queue-card,
.product-registry-card {
  border: 1px solid rgba(109, 231, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.factory-records {
  border: 1px solid rgba(109, 231, 255, 0.2);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.factory-records > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--silver);
  cursor: pointer;
  font-weight: 900;
}

.factory-records[open] > summary {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(109, 231, 255, 0.16);
}

.factory-records > section + section {
  margin-top: 14px;
}

.run-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
}

.run-command-bar strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.run-primary-actions {
  margin-left: auto;
}

.run-primary-actions .primary {
  min-height: 46px;
  padding-inline: 24px;
  white-space: nowrap;
}

.run-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.run-advanced-actions {
  max-width: 100%;
}

.run-advanced-actions summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-weight: 800;
}

.run-advanced-actions .run-command-actions {
  margin-top: 10px;
}

.recent-runs-card,
.daily-queue-card,
.product-registry-card {
  padding: 18px;
}

.recent-runs-head,
.recent-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.recent-runs-head {
  margin-bottom: 12px;
}

.recent-runs-head h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 32px);
}

.recent-runs-list {
  display: grid;
  gap: 10px;
}

.daily-queue-list {
  display: grid;
  gap: 10px;
}

.daily-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(125, 255, 189, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(125, 255, 189, 0.08), rgba(109, 231, 255, 0.06)),
    rgba(0, 0, 0, 0.2);
}

.daily-queue-item strong,
.daily-queue-item small {
  display: block;
}

.daily-queue-item strong {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 32px);
}

.daily-queue-item p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.daily-queue-item small {
  color: var(--green);
  font-weight: 800;
}

.recent-run {
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.recent-run strong,
.recent-run span {
  display: block;
}

.recent-run span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-empty {
  min-height: 92px;
}

.registry-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.registry-stats div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(109, 231, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.registry-stats span,
.registry-kicker {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registry-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
}

.product-registry-list {
  display: grid;
  gap: 10px;
}

.registry-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(109, 231, 255, 0.06), rgba(211, 145, 255, 0.06)),
    rgba(0, 0, 0, 0.2);
}

.registry-product strong,
.registry-product small {
  display: block;
}

.registry-product strong {
  margin-top: 5px;
  font-size: clamp(20px, 3vw, 30px);
}

.registry-product p {
  margin: 6px 0;
  color: var(--muted);
}

.registry-product small,
.registry-path {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.registry-product-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.registry-product-side b {
  color: var(--green);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.registry-product-side div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.registry-product-side a,
.registry-product-side span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(109, 231, 255, 0.2);
  border-radius: 999px;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.06);
}

.build-summary-grid {
  display: grid;
  gap: 12px;
}

.manual-controls {
  margin-top: 16px;
  border: 1px solid rgba(109, 231, 255, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.manual-controls summary {
  min-height: 58px;
  padding: 18px;
  color: var(--silver);
  cursor: pointer;
  font-weight: 900;
}

.manual-controls-body {
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
}

.manual-controls .build-form {
  box-shadow: none;
}

.manual-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.build-json {
  overflow: auto;
  min-height: 300px;
  max-height: 520px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--silver);
  background: rgba(0, 0, 0, 0.3);
  white-space: pre-wrap;
  line-height: 1.5;
}

.patch-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(109, 231, 255, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.patch-panel h2 {
  margin: 0;
  font-size: 22px;
}

.patch-panel .build-json {
  min-height: 180px;
  max-height: 360px;
}

.brain-form h2,
.brain-panel h2 {
  margin-bottom: 8px;
}

.brain-panel {
  min-height: 620px;
  background: var(--panel-strong);
}

.agent-status-card,
.manual-memory {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.agent-status-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-status-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 24px;
}

.agent-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.manual-memory {
  margin-top: 14px;
}

.manual-memory summary {
  cursor: pointer;
  color: var(--silver);
  font-weight: 850;
}

.manual-memory label {
  margin-top: 14px;
}

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

.brain-stats div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.brain-stats span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brain-stats strong {
  color: var(--text);
  font-size: 26px;
}

.brain-feed {
  display: grid;
  gap: 12px;
}

.agent-suggestions {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.agent-suggestion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(125, 255, 189, 0.24);
  border-radius: 16px;
  background: rgba(125, 255, 189, 0.065);
}

.agent-suggestion-head strong {
  color: var(--green);
}

.agent-suggestion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(125, 255, 189, 0.2);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.agent-suggestion-card h3 {
  margin-bottom: 8px;
}

.agent-suggestion-card p {
  margin: 0 0 12px;
  color: var(--silver);
  line-height: 1.5;
}

.agent-actions {
  display: flex;
  gap: 8px;
}

.agent-actions button {
  min-height: 38px;
  border: 1px solid rgba(109, 231, 255, 0.25);
  border-radius: 11px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-weight: 850;
}

.brain-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.052);
}

.brain-card-head,
.brain-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brain-card h3 {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.brain-card p {
  margin: 0;
  color: var(--silver);
  line-height: 1.55;
  white-space: pre-wrap;
}

.brain-type {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(109, 231, 255, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(109, 231, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brain-card-meta {
  color: var(--muted);
  font-size: 13px;
}

.brain-card-meta button {
  min-height: 34px;
  border: 1px solid rgba(255, 116, 116, 0.34);
  border-radius: 10px;
  padding: 0 10px;
  color: #ffd6d6;
  background: rgba(255, 82, 82, 0.13);
  cursor: pointer;
  font-weight: 850;
}

.danger-button {
  border-color: rgba(255, 116, 116, 0.34) !important;
  color: #ffd6d6 !important;
  background: rgba(255, 82, 82, 0.13) !important;
}

.danger-button:hover {
  border-color: rgba(255, 116, 116, 0.72) !important;
  background: rgba(255, 82, 82, 0.2) !important;
}

.local-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.model-manager {
  display: grid;
  gap: 18px;
  max-width: 960px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.model-status-card,
.downloaded-card,
.hf-search-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.model-status-card h2,
.downloaded-card h2,
.hf-search-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  letter-spacing: 0;
}

.model-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.utility-hidden {
  display: none !important;
}

.bridge-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(109, 231, 255, 0.22);
  border-radius: 14px;
  background: rgba(109, 231, 255, 0.06);
}

.bridge-status span,
.runtime-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bridge-status strong,
.runtime-grid strong {
  color: var(--silver);
  overflow-wrap: anywhere;
}

.model-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 16px;
  border: 1px solid rgba(109, 231, 255, 0.32);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 850;
  overflow: hidden;
}

.model-status-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-toggle,
.downloaded-model-card button,
.hf-search-row button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.status-toggle {
  min-width: 78px;
  min-height: 44px;
  border-radius: 12px;
  color: #020508;
  background: linear-gradient(135deg, white, var(--cyan));
}

.status-toggle.on {
  color: #04110b;
  background: var(--green);
}

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

.runtime-grid div {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.runtime-grid span {
  display: block;
  margin-bottom: 8px;
}

.downloaded-card {
  padding-bottom: 20px;
}

.downloaded-models {
  display: grid;
  gap: 10px;
}

.downloaded-model-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
}

.downloaded-model-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.downloaded-model-card span {
  color: var(--muted);
  font-size: 13px;
}

.downloaded-model-card button,
.hf-search-row button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  color: #020508;
  background: linear-gradient(135deg, white, var(--cyan));
}

.model-extra-actions {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.model-extra-actions summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.model-extra-actions button {
  margin-top: 10px;
}

.hf-search-card {
  background: linear-gradient(135deg, rgba(109, 231, 255, 0.08), rgba(255, 255, 255, 0.045));
}

.hf-search-card h2 {
  color: var(--text);
  font-size: 26px;
  letter-spacing: 0;
}

.hf-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.hf-search-row button {
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
}

.commercial-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid rgba(0, 255, 188, 0.28);
  border-radius: 14px;
  color: var(--green);
  background: rgba(0, 255, 188, 0.055);
}

.commercial-filter input {
  width: 28px;
  min-height: 28px;
}

.hf-note,
.hf-result-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hf-results {
  display: grid;
  gap: 12px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 8px;
}

.hf-model-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.hf-model-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.hf-model-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.hf-model-title span {
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 950;
}

.hf-model-title strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(109, 231, 255, 0.25);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(109, 231, 255, 0.08);
  font-size: 12px;
}

.hf-selected-file {
  margin: 12px 0 0;
  color: var(--silver);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hf-file-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(109, 231, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.hf-file-list > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hf-file-list p {
  margin: 0;
  color: var(--muted);
}

.hf-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.hf-file-row span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hf-file-row button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 11px;
  color: #031014;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.hf-file-row button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.model-actions button {
  min-height: 38px;
  border: 1px solid rgba(109, 231, 255, 0.25);
  border-radius: 11px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-weight: 850;
}

.model-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.model-actions .danger-button {
  border-color: rgba(255, 116, 116, 0.34);
  color: #ffd6d6;
  background: rgba(255, 82, 82, 0.13);
}

.model-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-badges span {
  padding: 8px 10px;
  border: 1px solid rgba(111, 255, 212, 0.5);
  border-radius: 8px;
  color: var(--green);
  background: rgba(0, 255, 188, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.download-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.download-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 850;
}

.download-progress-head strong {
  color: var(--cyan);
}

.download-progress-track {
  overflow: hidden;
  height: 10px;
  border: 1px solid rgba(109, 231, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
}

.download-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.25s ease;
}

.model-log {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  line-height: 1.45;
}

.local-report {
  min-height: 560px;
  background: var(--panel-strong);
}

.local-output {
  display: grid;
  gap: 16px;
}

.local-output pre {
  overflow: auto;
  min-height: 440px;
  max-height: 640px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--silver);
  background: rgba(0, 0, 0, 0.32);
  white-space: pre-wrap;
  line-height: 1.55;
}

.money-grid,
.money-kpis,
.pricing-grid {
  display: grid;
  gap: 12px;
}

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

.money-report {
  min-height: 560px;
  background: var(--panel-strong);
}

.money-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.money-kpis .report-card p {
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
}

.money-hero {
  border-color: rgba(125, 255, 189, 0.24);
  background: linear-gradient(135deg, rgba(125, 255, 189, 0.15), rgba(109, 231, 255, 0.075));
}

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

.pricing-card {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.pricing-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 24px;
}

.pricing-card p {
  color: var(--silver);
  line-height: 1.45;
}

.daily-report {
  min-height: 560px;
  background: var(--panel-strong);
}

.plan-hero {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid rgba(109, 231, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(109, 231, 255, 0.16), rgba(255, 255, 255, 0.055));
}

.plan-hero span {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-hero h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
}

.plan-hero p {
  margin: 0;
  color: var(--silver);
  line-height: 1.5;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vault-head,
.vault-actions,
.search-row,
.source-meta {
  display: flex;
  align-items: center;
}

.vault-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.vault-head h2 {
  margin-bottom: 6px;
}

.vault-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.vault-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.small {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.search-row {
  gap: 10px;
  margin-bottom: 14px;
}

.search-row input {
  flex: 1;
}

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

.source-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.source-select {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
}

.source-select input {
  width: 20px;
  min-height: 20px;
}

.source-card h3 {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.source-card p {
  color: var(--silver);
  line-height: 1.45;
}

.source-meta {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.source-meta a {
  color: var(--cyan);
}

.empty-library {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.use-cases {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.use-cases h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.use-cases p {
  color: var(--muted);
  line-height: 1.6;
}

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

.case-grid article {
  border-radius: 22px;
  padding: 20px;
}

.case-grid span {
  color: var(--cyan);
  font-weight: 800;
}

.case-grid h3 {
  margin: 36px 0 10px;
  font-size: 20px;
}

@media (max-width: 860px) {
  .demo,
  .use-cases,
  .world-model-head,
  .world-signal-row,
  .world-scout-item,
  .world-lens-preview,
  .library-layout,
  .daily-layout,
  .money-layout,
  .brain-layout,
  .build-layout,
  .local-layout {
    grid-template-columns: 1fr;
  }

  .money-kpis,
  .brain-stats,
  .build-status-grid,
  .pricing-grid,
  .launch-copy-grid {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    min-height: 340px;
  }

  .metric-grid {
    margin-top: 70px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .world-signal-row button {
    width: 100%;
  }

  .world-signal-actions {
    grid-template-columns: 1fr;
  }

  .autopilot-progress,
  .autopilot-candidates {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 14px;
  }

  h1 {
    font-size: 46px;
  }

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

  .tabs,
  .agent-runner,
  .agent-pipeline,
  .two-col,
  .money-grid,
  .hf-search-row,
  .runtime-grid,
  .model-status-row,
  .downloaded-model-card,
  .run-summary-grid,
  .launch-copy-grid article,
  .commercial-filter,
  .source-card,
  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row {
    display: grid;
  }

  .agent-runner-actions {
    justify-items: stretch;
    min-width: 0;
  }

  .autopilot-switch {
    justify-content: flex-start;
  }

  .agent-runner-actions .primary,
  .action-card .primary {
    width: 100%;
    min-width: 0;
  }

  .strength-list li {
    grid-template-columns: 1fr;
  }

  .run-command-bar,
  .recent-runs-head,
  .recent-run {
    align-items: stretch;
    flex-direction: column;
  }

  .run-primary-actions,
  .run-primary-actions .primary {
    width: 100%;
  }

  .run-command-actions,
  .run-command-actions button,
  .recent-run button {
    width: 100%;
  }
}
