@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b1116;
  --bg-deep: #080d11;
  --surface: #10191f;
  --surface-raised: #142229;
  --surface-soft: #172831;
  --ink: #eef4ed;
  --ink-strong: #fbfff5;
  --muted: #91a59d;
  --muted-strong: #b3c1ba;
  --line: #263a41;
  --line-bright: #3a5359;
  --lime: #d9f277;
  --lime-soft: #b8d365;
  --cyan: #7fddd5;
  --blue: #8faeff;
  --amber: #f2c879;
  --coral: #ff9a86;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-theme='light'] {
  --bg: #eef1ec;
  --bg-deep: #e5eae4;
  --surface: #f8faf6;
  --surface-raised: #ffffff;
  --surface-soft: #e9efea;
  --ink: #17241e;
  --ink-strong: #0d1712;
  --muted: #64786f;
  --muted-strong: #476057;
  --line: #d4dfd8;
  --line-bright: #b6c9be;
  --lime: #63821c;
  --lime-soft: #7f9b37;
  --cyan: #247e7c;
  --blue: #3f63b1;
  --amber: #9e6a14;
  --coral: #ad4d3a;
  --shadow: 0 22px 58px rgba(50, 76, 61, 0.12);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { color: var(--bg); background: var(--lime); }

.site-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 27px 18px 18px;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
  z-index: 10;
}

.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px; cursor: pointer; }
.brand-mark { position: relative; width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-18deg); }
.brand-mark i { display: block; width: 5px; height: 20px; border-radius: 2px; background: var(--lime); }
.brand-mark i:first-child { height: 12px; margin-top: 8px; opacity: .63; }
.brand-mark i:last-child { height: 15px; margin-top: 5px; opacity: .82; }
.brand-type { display: flex; flex-direction: column; line-height: 1.04; letter-spacing: .105em; }
.brand-type span { color: var(--muted-strong); font-family: var(--mono); font-size: 10px; }
.brand-type strong { color: var(--ink-strong); font-family: var(--display); font-size: 12px; letter-spacing: .07em; }

.workspace-switcher {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 43px 0 29px;
  padding: 13px 13px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.workspace-switcher:hover { border-color: var(--line-bright); background: var(--surface-raised); transform: translateY(-1px); }
.switcher-kicker, .system-card-head, .system-card-meta, .theme-switch, .nav-index, .topbar-note, .breadcrumb, .eyebrow, .panel-kicker, .field-label, .data-label, .meta-label, .capsule, .table-head, .event-time, .source-meta, .route-kicker, .lab-status, .code-label, .footer-note { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.switcher-kicker { color: var(--muted); font-size: 9px; }
.switcher-value { display: flex; align-items: center; gap: 7px; color: var(--muted-strong); font-size: 13px; }
.switcher-glyph { position: absolute; right: 12px; bottom: 12px; color: var(--lime); font-size: 14px; }
.status-dot, .live-pulse { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 11%, transparent); }
.live-pulse { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 10%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--lime) 0%, transparent); } }

.primary-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 39px; padding: 0 11px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; font-size: 13px; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav-item:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.nav-item.is-active { color: var(--ink-strong); background: var(--surface-raised); border-color: var(--line); box-shadow: inset 2px 0 0 var(--lime); }
.nav-index { min-width: 19px; color: var(--muted); font-size: 9px; }
.nav-item.is-active .nav-index { color: var(--lime); }
.nav-badge { margin-left: auto; min-width: 23px; padding: 2px 5px; color: var(--bg); background: var(--lime); border-radius: 3px; font-family: var(--mono); font-size: 9px; text-align: center; }

.sidebar-foot { display: grid; gap: 17px; margin-top: auto; }
.system-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.system-card-head, .system-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 9px; }
.system-card-head { color: var(--muted-strong); }
.system-status { color: var(--lime); }
.system-meter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 15px 0 12px; }
.system-meter span { height: 11px; border-radius: 2px; background: var(--line); }
.system-meter span:nth-child(-n+9) { background: var(--lime-soft); }
.system-meter span:nth-child(7) { background: var(--cyan); }
.system-card-meta { color: var(--muted); font-size: 8px; }
.theme-switch { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; cursor: pointer; text-align: left; font-size: 9px; }
.theme-switch:hover { color: var(--ink); }
.theme-icon { color: var(--cyan); font-size: 16px; line-height: 1; }
.shortcut { margin-left: auto; padding: 1px 5px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; font-size: 8px; }

.main-column { min-width: 0; background: var(--bg); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 0 clamp(24px, 4.5vw, 68px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 10px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.icon-button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; color: var(--muted-strong); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-family: var(--mono); font-size: 12px; }
.icon-button:hover { color: var(--ink); border-color: var(--line-bright); }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; color: var(--bg); background: var(--lime); border-radius: 50%; font-family: var(--mono); font-size: 9px; font-weight: 500; }
.app-view { padding: 52px clamp(24px, 4.5vw, 68px) 80px; max-width: 1560px; margin: 0 auto; }

.crawler-fallback { max-width: 820px; }
.crawler-fallback h1 { margin: 0 0 18px; color: var(--ink-strong); font-family: var(--display); font-size: clamp(42px, 6vw, 76px); font-weight: 500; letter-spacing: -.07em; line-height: .98; }
.crawler-lede { max-width: 680px; margin: 0 0 30px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.crawler-nav { display: grid; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.crawler-nav a, .crawler-note a { color: var(--lime); text-decoration: none; }
.crawler-nav a:hover, .crawler-note a:hover { color: var(--ink-strong); text-decoration: underline; }
.crawler-bullets { display: grid; gap: 7px; margin: 24px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.crawler-note { margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.route-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--lime); font-size: 10px; }
.view-title { margin: 0; color: var(--ink-strong); font-family: var(--display); font-size: clamp(30px, 4vw, 58px); font-weight: 500; line-height: 1.03; letter-spacing: -.06em; }
.view-title em { color: var(--lime); font-style: normal; }
.view-intro { max-width: 465px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: clamp(30px, 6vw, 92px); align-items: start; }
.hero-copy { padding: 23px 0 0; }
.hero-copy h1 { max-width: 780px; margin: 0 0 21px; color: var(--ink-strong); font-family: var(--display); font-size: clamp(46px, 7vw, 100px); font-weight: 500; letter-spacing: -.085em; line-height: .94; }
.hero-copy h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p { max-width: 560px; margin: 0 0 36px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: -17px 0 24px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }
.trust-strip span::before { content: '·'; margin-right: 7px; color: var(--lime); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--cyan); font-size: 10px; }
.eyebrow::after { content: ''; width: 42px; height: 1px; background: var(--line-bright); }

.prompt-box { display: block; overflow: hidden; border: 1px solid var(--line-bright); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.prompt-box:focus-within { border-color: var(--lime-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 8%, transparent), var(--shadow); }
.prompt-topline { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 0; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.prompt-topline span:last-child { color: var(--lime); }
.prompt-box textarea { display: block; width: 100%; min-height: 126px; resize: vertical; padding: 14px 15px; color: var(--ink-strong); background: transparent; border: 0; outline: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 28px); line-height: 1.22; letter-spacing: -.03em; }
.prompt-box textarea::placeholder { color: var(--muted); opacity: .75; }
.prompt-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 11px 11px 15px; border-top: 1px solid var(--line); }
.prompt-hint { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.primary-button, .secondary-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 15px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; font-size: 13px; font-weight: 600; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.primary-button { color: var(--bg); background: var(--lime); }
.primary-button:hover { background: var(--ink-strong); transform: translateY(-1px); }
.secondary-button { color: var(--ink); background: var(--surface-raised); border-color: var(--line-bright); }
.secondary-button:hover { border-color: var(--lime-soft); transform: translateY(-1px); }
.quiet-button { min-height: 32px; padding: 0 10px; color: var(--muted-strong); background: transparent; border-color: var(--line); font-size: 12px; }
.quiet-button:hover { color: var(--ink); border-color: var(--line-bright); }
.button-arrow { font-size: 15px; line-height: 1; }
.example-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.example-label { margin-right: 3px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.example-chip { padding: 7px 10px; color: var(--muted-strong); background: transparent; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; font-size: 12px; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.example-chip:hover { color: var(--ink-strong); border-color: var(--line-bright); background: var(--surface); }

.pulse-card { position: relative; min-height: 414px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pulse-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 65%, color-mix(in srgb, var(--cyan) 4%, transparent) 65% 66%, transparent 66%); pointer-events: none; }
.panel-topline, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-kicker { color: var(--muted); font-size: 9px; }
.panel-code { color: var(--cyan); font-family: var(--mono); font-size: 10px; }
.pulse-visual { position: relative; display: grid; place-items: center; min-height: 276px; margin: 10px 0 6px; }
.orbit-ring { position: absolute; border: 1px solid var(--line-bright); border-radius: 50%; transform: rotate(-12deg); }
.orbit-ring.one { width: 255px; height: 255px; }
.orbit-ring.two { width: 190px; height: 190px; border-style: dashed; border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); }
.orbit-ring.three { width: 112px; height: 112px; border-color: var(--lime-soft); box-shadow: 0 0 0 10px color-mix(in srgb, var(--lime) 4%, transparent), 0 0 40px color-mix(in srgb, var(--lime) 12%, transparent); }
.orbit-ring::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 8%, transparent); }
.orbit-ring.one::after { top: 18px; right: 45px; }
.orbit-ring.two::after { left: 8px; bottom: 34px; background: var(--cyan); }
.orbit-core { position: relative; z-index: 1; display: grid; place-items: center; width: 69px; height: 69px; border-radius: 50%; background: var(--lime); color: var(--bg); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: -.04em; }
.orbit-label { position: absolute; color: var(--muted-strong); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.orbit-label.top { top: 29px; left: 17px; }
.orbit-label.right { right: 13px; top: 118px; color: var(--cyan); }
.orbit-label.bottom { bottom: 28px; left: 43px; color: var(--lime); }
.pulse-list { display: grid; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); }
.pulse-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted-strong); font-size: 12px; }
.pulse-row span:first-child { display: flex; align-items: center; gap: 8px; }
.pulse-row span:last-child { color: var(--lime); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }

.section-wrap { margin-top: 70px; }
.section-label { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.section-label strong { color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.section-label span { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 17px; margin-top: 17px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.capability-panel { padding: 20px; }
.capability-headline { margin: 20px 0 8px; color: var(--ink-strong); font-family: var(--display); font-size: 28px; letter-spacing: -.05em; line-height: 1.05; }
.capability-copy { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.capability-lines { display: grid; gap: 10px; margin-top: 28px; }
.capability-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted-strong); font-size: 12px; }
.capability-line span:last-child { color: var(--lime); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.event-panel { padding: 20px; }
.event-list { display: grid; gap: 0; margin-top: 22px; }
.event-item { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.event-marker { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--cyan); }
.event-item:first-child .event-marker { background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 9%, transparent); }
.event-name { color: var(--muted-strong); font-family: var(--mono); font-size: 10px; letter-spacing: .02em; }
.event-desc { margin-top: 2px; color: var(--muted); font-size: 11px; }
.event-time { color: var(--muted); font-size: 8px; white-space: nowrap; }

.workspace-shell { margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--line-bright); animation: rise .38s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.workspace-title { margin: 9px 0 6px; color: var(--ink-strong); font-family: var(--display); font-size: clamp(26px, 4vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.workspace-query { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; }
.workspace-actions { display: flex; gap: 8px; }
.workspace-status { display: flex; align-items: center; gap: 8px; color: var(--lime); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.workspace-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 23px 0 18px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.workspace-meta strong { color: var(--muted-strong); font-weight: 500; }
.progress-track { height: 3px; overflow: hidden; background: var(--line); border-radius: 3px; }
.progress-track span { display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left center; animation: progress 1.2s ease both; }
@keyframes progress { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 17px; margin-top: 18px; }
.result-panel { padding: 20px; }
.result-panel .panel-head { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.result-panel .panel-head strong { color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.result-panel .panel-head span { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 17px 0; }
.metric-card { min-height: 97px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); }
.metric-card .metric-value { display: block; margin: 10px 0 3px; color: var(--ink-strong); font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: -.06em; }
.metric-card .metric-name { color: var(--muted); font-size: 11px; }
.metric-card .metric-change { color: var(--lime); font-family: var(--mono); font-size: 9px; }
.insight-block { padding: 16px; border-left: 2px solid var(--lime); background: color-mix(in srgb, var(--lime) 5%, var(--surface)); }
.insight-block p { margin: 0; color: var(--muted-strong); font-size: 15px; line-height: 1.6; }
.insight-block p strong { color: var(--ink); font-weight: 600; }
.result-table-wrap { margin-top: 18px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.result-table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; }
.result-table th, .result-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
.result-table th { color: var(--muted); background: var(--surface-raised); font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.result-table td { color: var(--muted-strong); font-size: 12px; }
.result-table tr:last-child td { border-bottom: 0; }
.result-table td:first-child { color: var(--ink); font-weight: 600; }
.score-bar { width: 80px; height: 4px; overflow: hidden; background: var(--line); border-radius: 5px; }
.score-bar span { display: block; height: 100%; background: var(--cyan); border-radius: 5px; }
.spec-panel { padding: 20px; }
.spec-panel .code-window { margin-top: 19px; }
.code-window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-deep); }
.code-window-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.code-dots { display: flex; gap: 5px; }
.code-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-bright); }
.code-label { color: var(--muted); font-size: 8px; }
.code-window pre { overflow: auto; margin: 0; padding: 15px; color: var(--muted-strong); font-family: var(--mono); font-size: 10px; line-height: 1.75; }
.code-window .key { color: var(--cyan); }
.code-window .string { color: var(--lime); }
.code-window .number { color: var(--amber); }
.component-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.component-pill { padding: 6px 8px; color: var(--muted-strong); border: 1px solid var(--line); border-radius: 5px; font-family: var(--mono); font-size: 9px; }
.component-pill.is-live { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 35%, var(--line)); }
.ask-strip { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ask-strip input { min-width: 0; flex: 1; padding: 5px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.ask-strip input::placeholder { color: var(--muted); }
.ask-strip button { min-height: 30px; padding: 0 10px; }

.loading-state { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.loading-spinner { width: 30px; height: 30px; border: 1px solid var(--line-bright); border-top-color: var(--lime); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state strong { display: block; color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 500; }
.loading-state p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.loading-stages { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.loading-stage { padding: 5px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 9px; }
.loading-stage.is-active { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 40%, var(--line)); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lab-card { position: relative; display: flex; flex-direction: column; min-height: 195px; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.lab-card:hover, .lab-card.is-selected { border-color: var(--line-bright); background: var(--surface-raised); transform: translateY(-2px); }
.lab-card.is-selected { box-shadow: inset 0 2px 0 var(--lime); }
.lab-card-index { color: var(--lime); font-family: var(--mono); font-size: 10px; }
.lab-card h3 { margin: 25px 0 5px; color: var(--ink-strong); font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.05em; }
.lab-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.lab-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.lab-status { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; }
.lab-status .status-dot { width: 5px; height: 5px; }
.lab-status.validated { color: var(--lime); }
.lab-status.experimental { color: var(--amber); }
.lab-workbench { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 17px; margin-top: 17px; padding: 20px; border: 1px solid var(--line-bright); border-radius: var(--radius); background: var(--surface); }
.lab-workbench-copy h2 { margin: 13px 0 8px; color: var(--ink-strong); font-family: var(--display); font-size: 29px; font-weight: 500; letter-spacing: -.06em; line-height: 1.02; }
.lab-workbench-copy p { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.workbench-code { margin-top: 25px; }
.demo-surface { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-deep); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.demo-head strong { color: var(--muted-strong); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.demo-head span { color: var(--cyan); font-family: var(--mono); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.field { display: grid; gap: 5px; }
.field-label { color: var(--muted); font-size: 8px; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; padding: 9px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; outline: 0; font-size: 13px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--lime-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 8%, transparent); }
.field textarea { min-height: 88px; resize: vertical; font-family: var(--mono); font-size: 11px; }
.field input[type='file'] { padding: 7px; font-size: 11px; }
.demo-action { margin-top: 13px; }
.demo-action button { width: 100%; }
.output-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.output-metric { padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.output-metric strong { display: block; color: var(--lime); font-family: var(--display); font-size: 19px; letter-spacing: -.05em; }
.output-metric span { color: var(--muted); font-size: 10px; }
.local-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 7px; color: var(--lime); border: 1px solid color-mix(in srgb, var(--lime) 27%, var(--line)); border-radius: 4px; font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.local-badge .status-dot { width: 4px; height: 4px; }
.drop-zone { display: grid; place-items: center; min-height: 112px; padding: 18px; text-align: center; border: 1px dashed var(--line-bright); border-radius: 6px; background: color-mix(in srgb, var(--cyan) 3%, var(--surface)); }
.drop-zone strong { display: block; color: var(--muted-strong); font-size: 13px; }
.drop-zone span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.data-preview { overflow: auto; max-height: 190px; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; }
.mini-table { width: 100%; min-width: 420px; border-collapse: collapse; text-align: left; }
.mini-table th, .mini-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.mini-table th { color: var(--cyan); font-weight: 500; }
.mini-table td { color: var(--muted-strong); }
.json-editor { min-height: 212px; }
.json-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.json-chip { padding: 5px 7px; color: var(--muted-strong); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 9px; }
.json-chip.is-on { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 35%, var(--line)); }
.runtime-list { display: grid; gap: 0; }
.runtime-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.runtime-row strong { color: var(--muted-strong); font-family: var(--mono); font-size: 10px; font-weight: 400; }
.runtime-row span { color: var(--lime); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.runtime-row span.no { color: var(--muted); }
.pipeline { display: grid; gap: 6px; }
.pipeline-step { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 6px; }
.pipeline-step > span:first-child { color: var(--lime); font-family: var(--mono); font-size: 9px; }
.pipeline-step strong { color: var(--muted-strong); font-family: var(--mono); font-size: 10px; font-weight: 400; }
.pipeline-step em { color: var(--muted); font-family: var(--mono); font-size: 8px; font-style: normal; text-transform: uppercase; }
.pipeline-step.is-done { border-color: color-mix(in srgb, var(--lime) 26%, var(--line)); }

.registry-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 17px; }
.table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.table-toolbar strong { color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.toolbar-count { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.registry-table { width: 100%; border-collapse: collapse; text-align: left; }
.registry-table th, .registry-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.registry-table th { color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.registry-table td { color: var(--muted-strong); font-family: var(--mono); font-size: 10px; }
.registry-table tr { cursor: pointer; transition: background .15s ease; }
.registry-table tbody tr:hover, .registry-table tbody tr.is-selected { background: var(--surface-raised); }
.registry-table tbody tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--lime); }
.registry-table td:first-child { color: var(--ink); font-weight: 500; }
.pill-status { display: inline-block; padding: 3px 6px; border-radius: 3px; font-size: 8px; text-transform: uppercase; }
.pill-status.stable { color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, transparent); }
.pill-status.experimental { color: var(--amber); background: color-mix(in srgb, var(--amber) 9%, transparent); }
.detail-panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-panel h2 { margin: 15px 0 7px; color: var(--ink-strong); font-family: var(--display); font-size: 29px; font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.detail-panel > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 20px 0; }
.detail-meta div { padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.detail-meta span { display: block; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.detail-meta strong { display: block; margin-top: 5px; color: var(--muted-strong); font-family: var(--mono); font-size: 10px; font-weight: 400; }

.runs-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); gap: 17px; }
.run-list { display: grid; gap: 9px; }
.run-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 13px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.run-number { display: grid; place-items: center; width: 36px; height: 36px; color: var(--lime); border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--line)); border-radius: 50%; font-family: var(--mono); font-size: 10px; }
.run-card h3 { margin: 0 0 4px; color: var(--ink); font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -.03em; }
.run-card p { margin: 0; color: var(--muted); font-size: 11px; }
.run-card-meta { display: flex; gap: 10px; margin-top: 11px; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.run-card .run-action { align-self: center; }
.event-log { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.log-stream { position: relative; display: grid; gap: 0; margin-top: 21px; }
.log-stream::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 4px; width: 1px; background: var(--line-bright); }
.log-row { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 11px; padding: 0 0 16px; }
.log-row:last-child { padding-bottom: 0; }
.log-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 3px; border: 2px solid var(--surface); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.log-row:first-child .log-dot { background: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.log-row strong { display: block; color: var(--muted-strong); font-family: var(--mono); font-size: 10px; font-weight: 400; }
.log-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.log-row time { display: block; margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; }

.architecture-stack { display: grid; gap: 9px; max-width: 1000px; margin: 0 auto; }
.arch-layer { display: grid; grid-template-columns: 28px 170px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.arch-layer:nth-child(1) { border-left: 2px solid var(--lime); }
.arch-layer:nth-child(2) { border-left: 2px solid var(--cyan); }
.arch-layer:nth-child(3) { border-left: 2px solid var(--blue); }
.arch-layer:nth-child(4) { border-left: 2px solid var(--amber); }
.arch-layer:nth-child(5) { border-left: 2px solid var(--coral); }
.arch-number { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.arch-layer h3 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.arch-layer p { margin: 0; color: var(--muted); font-size: 12px; }
.arch-layer code { color: var(--muted-strong); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.arch-arrow { display: grid; place-items: center; height: 17px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 45px; }
.principle { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.principle span { color: var(--lime); font-family: var(--mono); font-size: 9px; }
.principle h3 { margin: 17px 0 7px; color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -.04em; }
.principle p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.architecture-note { max-width: 760px; margin: 45px auto 0; padding: 21px; border: 1px solid var(--line-bright); border-radius: var(--radius); background: color-mix(in srgb, var(--lime) 4%, var(--surface)); }
.architecture-note strong { display: block; color: var(--lime); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.architecture-note p { margin: 10px 0 0; color: var(--muted-strong); font-family: var(--display); font-size: 22px; line-height: 1.23; letter-spacing: -.04em; }

.empty-state { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-bright); border-radius: var(--radius); background: var(--surface); }
.empty-state strong { display: block; color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.empty-state p { max-width: 420px; margin: 8px auto 18px; color: var(--muted); font-size: 13px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 330px; padding: 12px 14px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-bright); border-left: 2px solid var(--lime); border-radius: 7px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; font-size: 13px; }
.toast.is-visible { opacity: 1; transform: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(3, 7, 9, .68); backdrop-filter: blur(5px); }
.modal { width: min(500px, 100%); padding: 21px; border: 1px solid var(--line-bright); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.modal h2 { margin: 12px 0 7px; color: var(--ink-strong); font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.06em; }
.modal p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.shortcut-list { display: grid; gap: 8px; margin: 20px 0; }
.shortcut-row { display: flex; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-strong); font-size: 12px; }
.shortcut-row kbd { padding: 3px 6px; color: var(--lime); border: 1px solid color-mix(in srgb, var(--lime) 30%, var(--line)); border-radius: 4px; font-family: var(--mono); font-size: 9px; }

@media (max-width: 1080px) {
  .site-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .hero-grid, .preview-grid, .workspace-grid, .registry-layout, .runs-layout { grid-template-columns: 1fr; }
  .pulse-card { min-height: 330px; }
  .pulse-visual { min-height: 210px; }
  .orbit-ring.one { width: 190px; height: 190px; }
  .orbit-ring.two { width: 145px; height: 145px; }
  .orbit-ring.three { width: 86px; height: 86px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-workbench { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-shell { display: block; }
  .sidebar { position: relative; height: auto; display: block; padding: 17px 16px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-switcher, .sidebar-foot { display: none; }
  .primary-nav { display: flex; gap: 2px; overflow-x: auto; margin-top: 19px; padding-bottom: 2px; }
  .nav-item { min-width: max-content; min-height: 34px; padding: 0 9px; }
  .nav-index { display: none; }
  .nav-badge { margin-left: 2px; }
  .topbar { min-height: 58px; padding: 0 16px; }
  .topbar-note { display: none; }
  .app-view { padding: 34px 16px 54px; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { font-size: clamp(43px, 14vw, 74px); }
  .hero-copy > p { font-size: 15px; }
  .prompt-actions { align-items: flex-start; flex-direction: column; }
  .prompt-actions .primary-button { width: 100%; }
  .example-row { align-items: flex-start; flex-direction: column; }
  .example-label { margin-bottom: 3px; }
  .pulse-card { min-height: 390px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-head { flex-direction: column; }
  .workspace-actions { width: 100%; }
  .workspace-actions button { flex: 1; }
  .card-grid, .principles-grid { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 24px 1fr; gap: 7px 12px; }
  .arch-layer p { grid-column: 2; }
  .arch-layer code { grid-column: 2; }
  .run-card { grid-template-columns: 34px minmax(0, 1fr); }
  .run-card .run-action { grid-column: 2; justify-self: start; }
  .registry-table { min-width: 620px; }
  .table-panel { overflow-x: auto; }
}

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