/* === Design tokens (light + dark) === */
:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --wash: #f4f4f5;
  --text: #171717;
  --text-secondary: #4d4d4d;
  --text-muted: #7d7d7d;
  --border: #ebebeb;
  --border-strong: #d4d4d4;
  --accent: #0070f3;
  --crimson: #e5484d;
  --teal: #45dec5;
  --amber: #eeca2d;
  --sky: #52aeff;

  --shadow-card: rgba(0,0,0,0.08) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 2px 0, rgb(250,250,250) 0 0 0 1px;
  --shadow-hover: rgba(0,0,0,0.08) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 2px 0, rgba(0,0,0,0.04) 0 8px 8px -8px, rgb(250,250,250) 0 0 0 1px;
  --shadow-ring: rgb(235,235,235) 0 0 0 1px;

  --font-sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --canvas: #0a0a0a;
  --surface: #111111;
  --wash: #161616;
  --text: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --accent: #3291ff;

  --shadow-card: rgba(255,255,255,0.06) 0 0 0 1px, rgba(0,0,0,0.4) 0 2px 2px 0, rgba(255,255,255,0.02) 0 0 0 1px;
  --shadow-hover: rgba(255,255,255,0.1) 0 0 0 1px, rgba(0,0,0,0.5) 0 2px 2px 0, rgba(0,0,0,0.4) 0 8px 8px -8px;
  --shadow-ring: rgba(255,255,255,0.08) 0 0 0 1px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "liga", "ss05";
  background: var(--canvas);
  color: var(--text);
  font-size: 16px;
  line-height: 1.56;
  letter-spacing: -0.32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.18s ease, color 0.18s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* === Layout === */
.shell { max-width: 880px; margin: 0 auto; padding: 0 32px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 880px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 100px; background: var(--text);
}
.brand .live {
  background: #22c55e;
  box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 18%, transparent);
}

/* === Toggle group (segmented) === */
.toggles { display: flex; gap: 8px; align-items: center; }
.seg {
  display: inline-flex; padding: 3px;
  background: var(--wash); border: 1px solid var(--border);
  border-radius: 100px;
}
.seg button {
  border: none; background: transparent; color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 12px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0;
}
.seg button.active {
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-ring);
}
.seg svg { width: 12px; height: 12px; }

/* === Aurora background (full-width, behind hero) === */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* Soft fade out at the bottom so the aurora dissolves into the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0) 100%);
}
.aurora-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
[data-theme="light"] .aurora-bg { opacity: 0.9; mix-blend-mode: normal; filter: saturate(1.3) brightness(1.15); }
[data-theme="dark"] .aurora-bg { opacity: 0.85; }

@media (max-width: 640px) {
  .aurora-bg { height: 520px; }
}

/* === Hero === */
.hero { padding: 96px 0 48px; position: relative; z-index: 1; }
.shell { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 100px;
  margin-bottom: 24px;
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 100px; background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 22%, transparent);
}
h1.name {
  font-size: 48px; line-height: 1.17; letter-spacing: -0.72px;
  font-weight: 600; margin: 0 0 8px;
}
.hero-name {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-muted); letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: lowercase;
}
.hero-name::before {
  content: "// "; color: var(--text-muted);
}
h1.hero-headline {
  font-size: 88px; line-height: 0.96; letter-spacing: -2.5px;
  font-weight: 600; margin: 0 0 18px;
  color: var(--text);
}
.hero-tag {
  font-size: 22px; line-height: 1.4; letter-spacing: -0.4px;
  color: var(--text-secondary); margin: 0 0 32px; font-weight: 400;
}
.hero-down {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-secondary); letter-spacing: 0;
  transition: background 0.12s ease, transform 0.12s ease;
}
.hero-down:hover { background: var(--wash); }
.hero-down svg {
  width: 14px; height: 14px;
  animation: heroDownBob 1.6s ease-in-out infinite;
}
@keyframes heroDownBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (max-width: 640px) {
  h1.hero-headline { font-size: 56px; letter-spacing: -1.5px; }
  .hero-tag { font-size: 18px; }
}
.subtitle {
  font-size: 20px; line-height: 1.5; letter-spacing: -0.32px;
  color: var(--text-secondary); margin: 0 0 32px; font-weight: 400;
}
.lede { font-size: 16px; line-height: 1.7; color: var(--text-secondary); max-width: 640px; }
.lede + .lede { margin-top: 16px; }

/* === Section === */
section.block { padding: 56px 0; border-top: 1px solid var(--border); }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
h2 {
  font-size: 32px; line-height: 1.25; letter-spacing: -0.65px;
  font-weight: 600; margin: 0;
}
.block-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  letter-spacing: 0;
}
.h-meta {
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 400; color: var(--text-muted);
  letter-spacing: 0; margin-left: 12px;
  vertical-align: middle;
}

/* === Cases / receipts === */
.cases .cases-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.cases-stack {
  display: grid;
}
.cases-stack > .case-slot {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  color: var(--text-muted);
  font-weight: 400;
  text-wrap: pretty;
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}
.case-slot.is-out {
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
  visibility: hidden;
}
.case-slot.is-flick {
  opacity: 0;
  filter: blur(2px);
}
.case-slot.is-in {
  opacity: 1;
  filter: blur(0);
  animation: caseIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) both;
}
@keyframes caseIn {
  0% { opacity: 0; filter: blur(3px); transform: translateY(4px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.case-mark {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.case-mark.mark-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.4px;
}
.case-mark.mark-caps {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.cases-side {
  padding-top: 8px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.cases-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
.cases-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--canvas);
  border-radius: 100px;
  padding: 10px 14px 10px 18px;
  font-size: 13px; font-weight: 500;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.cases-cta:hover { transform: translateY(-1px); opacity: 0.92; }
.cases-cta svg { width: 14px; height: 14px; }
.cases-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.case-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.2px;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.case-pill-icon { width: 14px; height: 14px; flex-shrink: 0; }
.case-pill.active .case-pill-icon { filter: brightness(1.1) saturate(1.1); }
.case-pill:hover { background: var(--wash); color: var(--text); }
.case-pill.active {
  background: var(--text);
  color: var(--canvas);
  border-color: var(--text);
}
@media (max-width: 720px) {
  .cases .cases-row { grid-template-columns: 1fr; gap: 28px; }
  .cases-prose p { font-size: 24px; letter-spacing: -0.4px; }
  .cases-side { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
}

/* === Mindset cards (Vercel-style grid w/ illustrations) === */
.mindset-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.mindset-cell {
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 320px;
}
.mindset-cell:nth-child(3n) { border-right: none; }
.mindset-cell:nth-last-child(-n+3) { border-bottom: none; }

.mindset-intro { gap: 16px; justify-content: flex-start; }
.mindset-intro { background: var(--canvas); }
.mindset-intro .block-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  letter-spacing: 0;
}
h2.mindset-h {
  font-size: 30px; line-height: 1.15; letter-spacing: -0.6px;
  font-weight: 600; margin: 0;
}
.mindset-lede {
  font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0;
}

.mindset-cell-head { display: flex; flex-direction: column; gap: 8px; }
.mindset-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 0;
}
.mindset-cell h3 {
  font-size: 18px; font-weight: 600; margin: 0;
  letter-spacing: -0.3px; line-height: 1.3;
}
.mindset-cell p {
  margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary);
}
.mindset-illo-wrap {
  margin-top: auto;
  padding-top: 8px;
}
.illo {
  width: 100%; height: auto; display: block;
  border-radius: 10px;
}

@media (max-width: 880px) {
  .mindset-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .mindset-cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .mindset-cell:nth-child(2n) { border-right: none; }
  .mindset-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .mindset-cell:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .mindset-grid-v2 { grid-template-columns: 1fr; }
  .mindset-cell { border-right: none !important; }
  .mindset-cell:not(:last-child) { border-bottom: 1px solid var(--border) !important; }
  .mindset-cell:last-child { border-bottom: none !important; }
}

/* legacy mindset selectors kept for safety, no-op */
.mindset-grid { display: none; }

/* === Skill stack list === */
.legend {
  display: inline-flex; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 0;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .dot {
  width: 8px; height: 8px; border-radius: 100px; display: inline-block;
}
.legend .shipped { background: #22c55e; }
.legend .tried { background: #eeca2d; }
.legend .studied { background: var(--text-muted); }

.skill-list {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); overflow: hidden;
}
.skill-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  padding: 14px 18px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s ease;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: transparent;
  border-left: none; border-right: none; border-top: none;
  color: inherit;
}
.skill-row:last-child { border-bottom: none; }
.skill-row:hover { background: var(--wash); }
.skill-row[disabled] { cursor: default; }
.skill-row[disabled]:hover { background: transparent; }

.skill-row .idx {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0;
}
.skill-row .body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.skill-row .name { font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.skill-row .name .marker {
  width: 7px; height: 7px; border-radius: 100px; background: #22c55e;
}
.skill-row .name .marker.tried { background: #eeca2d; }
.skill-row .name .marker.studied { background: var(--text-muted); }
.skill-row .desc { font-size: 13px; color: var(--text-secondary); }
.item-glyph {
  width: 10px; height: 10px; display: inline-block;
  margin-right: 4px; vertical-align: -1px; flex-shrink: 0;
}
.skill-row .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.skill-row .tag.mcp { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.skill-row .tag.artifact { color: #8b5cf6; border-color: color-mix(in srgb, #8b5cf6 40%, transparent); }
[data-theme="dark"] .skill-row .tag.artifact { color: #a78bfa; border-color: color-mix(in srgb, #a78bfa 35%, transparent); }
.skill-row .chev {
  width: 16px; height: 16px; color: currentColor;
  opacity: 0.7; transition: opacity 0.12s ease, transform 0.12s ease;
}
.skill-row:hover .chev { opacity: 1; transform: translateX(2px); }
.skill-row.active { background: var(--wash); }
.skill-row.active .chev { opacity: 1; }

/* === Soft skills === */
.soft-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.soft-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
}
.soft-card h3 {
  font-size: 14px; font-weight: 600; margin: 0 0 8px;
  font-family: var(--font-mono); letter-spacing: 0; color: var(--text);
}
.soft-card h3::before {
  content: ""; display: inline-block; width: 4px; height: 4px;
  background: var(--text); border-radius: 100px;
  vertical-align: middle; margin-right: 10px;
}
.soft-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

/* === Industries / Tools === */
.industries {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 14px; color: var(--text);
}
.industry-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: -0.2px;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.industry-chip:hover { background: var(--wash); border-color: var(--border-strong); }
.industry-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.tools-stack { display: flex; flex-direction: column; gap: 24px; }
.tools-group { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.tools-group-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--text-muted);
  padding-top: 6px;
}
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px; color: var(--text);
  letter-spacing: -0.2px;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.tool-chip:hover { background: var(--wash); border-color: var(--border-strong); }
.tool-logo {
  width: 16px; height: 16px;
  object-fit: contain;
}
[data-theme="dark"] .tool-logo {
  filter: brightness(0.95);
}
.tool-mono {
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--text); color: var(--canvas);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.tool-name { font-weight: 500; }
.tool-role {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0;
  padding-left: 6px; border-left: 1px solid var(--border);
}
@media (max-width: 640px) {
  .tools-group { grid-template-columns: 1fr; gap: 8px; }
}

.tools-finish {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;
}
.tools-finish-num {
  font-size: 40px; line-height: 1.1; letter-spacing: -0.72px;
  font-weight: 500; color: var(--text-muted);
}
.tools-finish-tail {
  font-size: 18px; line-height: 1.4; color: var(--text-muted);
  letter-spacing: -0.32px;
}
@media (max-width: 640px) {
  .tools-finish-num { font-size: 32px; }
  .tools-finish-tail { font-size: 16px; }
}

/* === CTA === */
.cta {
  padding: 64px 32px;
  border-radius: 16px;
  background: var(--surface);
  margin: 32px 0 96px;
  position: relative; overflow: hidden;
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    linear-gradient(120deg, #5227FF 0%, #3b82f6 35%, #7cff67 60%, #3b82f6 85%, #5227FF 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: 32px; margin: 0 0 12px; }
.cta p { font-size: 16px; color: var(--text-secondary); margin: 0 0 24px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--canvas);
  border: none; border-radius: 100px;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  font-family: var(--font-sans);
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 100px;
  padding: 10px 16px; font-size: 14px;
  font-family: var(--font-sans);
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 48px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* === Side panel === */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.32);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  z-index: 80;
}
.scrim.open { opacity: 1; pointer-events: auto; }
[data-theme="dark"] .scrim { background: rgba(0,0,0,0.6); }

.panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(640px, 100vw);
  background: var(--canvas);
  border-left: 1px solid var(--border);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 40px -20px rgba(0,0,0,0.18);
}
.panel.open { transform: translateX(0); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--canvas); flex-shrink: 0;
}
.panel-head .title-bits {
  display: flex; flex-direction: column; gap: 2px;
}
.panel-head .crumb {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 0; text-transform: uppercase;
}
.panel-head .ttl { font-size: 15px; font-weight: 600; }
.panel-close {
  background: transparent; border: 1px solid var(--border);
  border-radius: 100px;
  width: 30px; height: 30px;
  padding: 0;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.panel-close:hover { background: var(--wash); color: var(--text); border-color: var(--border-strong); }
.panel-close svg { width: 14px; height: 14px; }
.panel-body {
  flex: 1; overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.panel-body > * { flex-shrink: 0; }
.artifact-blurb {
  margin: 0 0 4px;
  font-size: 16px; line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.3px;
  font-weight: 500;
}

/* === MCP card === */
.mcp-hero {
  font-size: 18px; line-height: 1.5; color: var(--text);
  border-left: 2px solid var(--text); padding-left: 14px;
  font-weight: 500; letter-spacing: -0.32px;
}
.mcp-section h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 8px; font-weight: 500;
}
.mcp-section p { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.mcp-choices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mcp-choices li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.55;
}
.mcp-choices li b { color: var(--text); font-weight: 600; }
.mcp-install {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--text); color: var(--canvas);
  border-radius: 100px; padding: 8px 14px; align-self: flex-start;
}
.mcp-install:hover { opacity: 0.9; }

/* === Terminal === */
.term {
  background: #0d0d0d; color: #e6e6e6;
  border-radius: 10px; overflow: hidden;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55;
  border: 1px solid #1f1f1f;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #161616; border-bottom: 1px solid #232323;
}
.term-bar .lights { display: flex; gap: 6px; }
.term-bar .lights span {
  width: 10px; height: 10px; border-radius: 100px; background: #444;
}
.term-bar .lights span:nth-child(1) { background: #ff5f57; }
.term-bar .lights span:nth-child(2) { background: #febc2e; }
.term-bar .lights span:nth-child(3) { background: #28c840; }
.term-bar .label {
  font-size: 11px; color: #8a8a8a; letter-spacing: 0.3px;
  flex: 1; text-align: center;
}
.term-body { padding: 14px 16px; }
.term-line { display: flex; gap: 8px; align-items: baseline; }
.term-prompt { color: #8a8a8a; user-select: none; }
.term-cmd { color: #e6e6e6; }
.term-out { color: #b8b8b8; white-space: pre-wrap; }
.term-out .ok { color: #4ade80; }
.term-out .warn { color: #fbbf24; }
.term-out .err { color: #f87171; }
.term-out .info { color: #60a5fa; }
.term-out .dim { color: #6b6b6b; }
.term-cursor {
  display: inline-block; width: 7px; height: 13px;
  background: #e6e6e6; vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed #232323;
}
.term-actions button,
.term-actions a {
  background: transparent; border: 1px solid #2a2a2a;
  color: #cfcfcf; padding: 5px 10px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 11px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.term-actions button:hover,
.term-actions a:hover { background: #181818; border-color: #3a3a3a; }
.term-actions button.primary,
.term-actions a.primary {
  background: #fff; color: #000; border-color: #fff;
}
.term-actions a.primary:hover { background: #f4f4f4; border-color: #f4f4f4; }
.term-actions button.danger { color: #f87171; border-color: #3a1f1f; }
.term-actions button.danger:hover { background: #1d0d0d; }

/* artifact-specific */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.bar-row .lbl { width: 110px; color: #b8b8b8; font-size: 11px; }
.bar-row .bar { height: 8px; background: #1d1d1d; border-radius: 100px; flex: 1; overflow: hidden; }
.bar-row .bar > i { display: block; height: 100%; background: #4ade80; transition: width 0.6s ease; }
.bar-row .val { color: #e6e6e6; font-size: 11px; width: 56px; text-align: right; }

.kvs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12px; }
.kvs .k { color: #8a8a8a; }
.kvs .v { color: #e6e6e6; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.metric {
  background: #131313; border: 1px solid #1f1f1f; border-radius: 6px; padding: 10px 12px;
}
.metric .lbl { font-size: 10px; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.4px; }
.metric .v { font-size: 18px; color: #e6e6e6; margin-top: 2px; }
.metric .v.ok { color: #4ade80; }
.metric .v.warn { color: #fbbf24; }
.metric .v.err { color: #f87171; }
.metric .delta { font-size: 10px; color: #8a8a8a; margin-top: 2px; }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; margin-top: 6px; }
.spark i { display: block; width: 4px; background: #4ade80; border-radius: 1px; opacity: 0.85; }

/* === Observability dashboard (artifact 4) === */
.dash-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid #1f1f1f;
}
.dash-head-title { font-size: 14px; color: #e6e6e6; font-weight: 500; letter-spacing: -0.01em; }
.dash-head-title .dim { color: #6b6b6b; font-weight: 400; }
.dash-head-sub { font-size: 11px; color: #6b6b6b; margin-top: 2px; }
.dash-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #b8b8b8; letter-spacing: 0.12em; font-weight: 500; }
.dash-live-dot {
  width: 7px; height: 7px; border-radius: 100px; background: #7c5cff;
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5);
  animation: dashPulse 1.6s ease-in-out infinite;
}
@keyframes dashPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(124, 92, 255, 0); }
}

.dash-strip {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  margin-top: 12px;
  border: 1px solid #1f1f1f; border-radius: 8px; background: #111;
  overflow: hidden;
}
.dash-strip-cell { padding: 12px 14px; border-right: 1px solid #1f1f1f; }
.dash-strip-cell:last-child { border-right: none; }
.dash-strip-lbl { font-size: 10px; color: #6b6b6b; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.dash-strip-v { font-size: 22px; color: #f4f4f4; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dash-strip-delta { font-size: 11px; color: #8a8a8a; margin-top: 2px; }
.dash-strip-delta.up { color: #3ecf8e; }
.dash-strip-delta.down { color: #7c5cff; }

.dash-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px;
}
.dash-card {
  background: #111; border: 1px solid #1f1f1f; border-radius: 8px;
  padding: 12px 14px;
}
.dash-card-head { display: flex; align-items: center; justify-content: space-between; }
.dash-card-lbl { font-size: 10px; color: #6b6b6b; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.dash-card-v {
  font-size: 22px; color: #f4f4f4; margin-top: 4px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.dash-trend { font-size: 11px; font-weight: 500; }
.dash-trend.down { color: #7c5cff; }
.dash-trend.warn { color: #f5a524; }
.dash-trend.ok { color: #3ecf8e; }
.dash-card-foot { font-size: 11px; color: #8a8a8a; margin-top: 4px; }
.dash-card-foot.warn { color: #f5a524; }
.dash-card-foot.ok { color: #3ecf8e; }
.dash-spark { display: block; width: 100%; height: 36px; margin-top: 8px; }

.dash-anom { margin-top: 8px; }
.dash-anom-list { margin-top: 8px; display: flex; flex-direction: column; }
.dash-anom-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  align-items: center; padding: 7px 0;
  border-top: 1px solid #1a1a1a;
  font-size: 12px;
}
.dash-anom-row:first-child { border-top: none; }
.dash-anom-ts { color: #6b6b6b; font-variant-numeric: tabular-nums; }
.dash-anom-msg { color: #d4d4d4; }

.dash-pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 500;
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: 0.02em;
}
.dash-pill.sev-warn { background: rgba(245, 165, 36, 0.12); color: #f5a524; }
.dash-pill.sev-info { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.dash-pill.sev-ok   { background: rgba(62, 207, 142, 0.12); color: #3ecf8e; }
.dash-pill.sev-neut { background: rgba(255, 255, 255, 0.05); color: #b8b8b8; }

.dash-contrib { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dash-contrib-row {
  display: grid; grid-template-columns: 130px 1fr 50px; gap: 10px;
  align-items: center; font-size: 12px;
}
.dash-contrib-name { color: #d4d4d4; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; }
.dash-contrib-bar { height: 6px; background: #1a1a1a; border-radius: 100px; overflow: hidden; }
.dash-contrib-bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #7c5cff, #5a3fff);
  border-radius: 100px;
}
.dash-contrib-val { color: #b8b8b8; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .dash-strip { grid-template-columns: 1fr; }
  .dash-strip-cell { border-right: none; border-bottom: 1px solid #1f1f1f; }
  .dash-strip-cell:last-child { border-bottom: none; }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .dash-anom-row { grid-template-columns: 56px 1fr; }
  .dash-anom-row .dash-pill { grid-column: 2; justify-self: start; }
}

.advisor-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 10px; padding: 8px 0; border-bottom: 1px dashed #1d1d1d;
  align-items: start;
}
.advisor-row:last-child { border-bottom: none; }
.advisor-row .who { color: #fbbf24; font-size: 11px; }
.advisor-row .what { color: #cfcfcf; font-size: 12px; line-height: 1.5; }

.level-row {
  display: grid; grid-template-columns: 28px 1fr 80px; gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.1s ease;
}
.level-row:hover { background: #131313; }
.level-row.sel { background: #131313; border-color: #2a2a2a; }
.level-row .ix { font-size: 10px; color: #8a8a8a; }
.level-row .nm { font-size: 12px; color: #e6e6e6; }
.level-row .nm small { color: #8a8a8a; display: block; font-size: 10px; }
.level-row .cost { text-align: right; font-size: 12px; color: #4ade80; }
.level-row .cost.high { color: #f87171; }
.level-row .cost.mid { color: #fbbf24; }

.cascade-log {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.55;
  color: #cfcfcf; margin: 8px 0 4px;
}
.cascade-log .cl-row { display: flex; gap: 6px; align-items: baseline; white-space: pre-wrap; }
.cascade-log .cl-row.indent { padding-left: 18px; }
.cascade-log .cl-mark { color: #6b6b6b; user-select: none; }
.cascade-log .cl-key { color: #e6e6e6; }
.cascade-log .cl-key.ok { color: #4ade80; }
.cascade-log .cl-row.ok { color: #4ade80; }
.cascade-log .cl-row.err { color: #f87171; }
.cascade-log .cl-row.dim { color: #8a8a8a; }
.cascade-log .cl-spin { color: #fbbf24; display: inline-block; min-width: 12px; }
.cascade-log .cl-gap { height: 6px; }

/* === Cost benchmark log (artifact 2) === */
.cost-log {
  margin-top: 10px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12.5px;
  line-height: 1.55;
  color: #d4d4d4;
}
.cost-log .cl-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 1px 0; }
.cost-log .cl-row.sys { color: #60a5fa; }
.cost-log .cl-row.dim { color: #6b6b6b; }
.cost-log .cl-gap { height: 6px; }

.cost-log .cl-block { padding: 4px 0; }
.cost-log .cl-block + .cl-block { border-top: 1px dashed #1a1a1a; margin-top: 2px; padding-top: 6px; }
.cost-log .cl-row.worker { padding-left: 4px; }
.cost-log .cl-row.sub { padding-left: 60px; }
.cost-log .cl-sep { color: #4a4a4a; }
.cost-log .cl-icon { width: 14px; display: inline-block; text-align: center; }
.cost-log .cl-row.pending .cl-icon { color: #f5a524; }
.cost-log .cl-row.ok .cl-icon { color: #3ecf8e; }
.cost-log .cl-ix { color: #6b6b6b; min-width: 42px; }

.cost-log .cl-pending-name { color: #8a8a8a; }
.cost-log .cl-stack { color: #d4d4d4; }
.cost-log .cl-row.pending .cl-stack { color: #8a8a8a; }
.cost-log .cl-row.ok .cl-stack { color: #b8b8b8; }
.cost-log .cl-cost {
  color: #f4f4f4; font-weight: 600; font-variant-numeric: tabular-nums;
  min-width: 90px; display: inline-block;
}
.cost-log .cl-row.worker .cl-cost:first-of-type { min-width: 78px; }
.cost-log .cl-risk-prefix { color: #6b6b6b; }
.cost-log .cl-risk { color: #eab308; }

.cost-log .cl-row.result { padding-left: 4px; gap: 8px; }
.cost-log .cl-result-lbl { color: #8a8a8a; display: inline-block; }
.cost-log .cl-result-v { color: #f4f4f4; font-variant-numeric: tabular-nums; }
.cost-log .cl-result-v b { color: #f4f4f4; font-weight: 600; }
.cost-log .strike { color: #6b6b6b; text-decoration: line-through; }
.cost-log .cl-accent { color: #a78bfa; font-weight: 600; }

.cl-disclosure {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed #232323;
  font-size: 11px; color: #6b6b6b; font-style: italic;
}

/* === Advisory board grid (artifact 1) === */
.adv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 8px 0 4px;
  align-items: start;
}
@media (max-width: 640px) { .adv-grid { grid-template-columns: 1fr; } }
.adv-card {
  background: #111; border: 1px solid #1f1f1f; border-radius: 6px;
  overflow: hidden;
}
.adv-card.ok { border-color: #233;  }
.adv-card-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px; background: transparent;
  border: none; color: inherit; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 12px;
}
.adv-card.pending .adv-card-head { cursor: default; opacity: 0.7; }
.adv-card.ok .adv-card-head:hover { background: #161616; }
.adv-card .cl-icon { width: 14px; text-align: center; flex-shrink: 0; }
.adv-card.pending .cl-icon { color: #f5a524; }
.adv-card.ok .cl-icon { color: #3ecf8e; }
.adv-card .cl-ix { color: #6b6b6b; min-width: 36px; flex-shrink: 0; }
.adv-name { color: #e6e6e6; font-weight: 500; flex: 1; }
.adv-card.pending .adv-name { color: #8a8a8a; }
.adv-primary { color: #6b6b6b; font-size: 11px; flex-shrink: 0; }
.adv-toggle { color: #6b6b6b; width: 14px; text-align: center; flex-shrink: 0; }
.adv-detail {
  padding: 10px 12px 12px 32px;
  border-top: 1px solid #1a1a1a;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; line-height: 1.55;
}
.adv-row { display: flex; gap: 8px; align-items: baseline; }
.adv-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 1px 6px; border-radius: 3px; flex-shrink: 0;
  font-weight: 500;
}
.adv-row.green .adv-tag { background: rgba(62, 207, 142, 0.12); color: #3ecf8e; }
.adv-row.red .adv-tag   { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.adv-row.q .adv-tag     { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.adv-row.green span:last-child { color: #d4d4d4; }
.adv-row.red span:last-child   { color: #d4d4d4; }
.adv-row.q span:last-child     { color: #b8b8b8; font-style: italic; }

.cl-row.blindspot {
  display: block;
  padding: 3px 0;
  color: #fca5a5;
}
.cl-bs-num { color: #f87171; font-weight: 600; margin-right: 6px; }

.cascade-log .cl-divider {
  color: #2a2a2a; user-select: none; letter-spacing: 0; margin: 6px 0;
  white-space: nowrap; overflow: hidden;
}

.cascade-log .cl-summary-pre {
  margin: 0; padding: 0;
  font-family: inherit; font-size: inherit; line-height: 1.55;
  white-space: pre; color: #cfcfcf;
}
.cascade-log .cl-summary-pre .sk { color: #8a8a8a; }
.cascade-log .cl-summary-pre .sv { color: #e6e6e6; }
.cascade-log .cl-summary-pre .sn { color: #6b6b6b; }

/* HITL terminal log */
.hitl-log {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.55;
  margin: 4px 0 8px;
  max-height: 180px; overflow-y: auto;
  transition: max-height 350ms ease;
}
.hitl-log.compressed { max-height: 90px; }
.hitl-line { color: #cfcfcf; white-space: pre-wrap; }
.hitl-line.agent { color: #9ec5fe; }
.hitl-line.out { color: #cfcfcf; }
.hitl-line.ok { color: #4ade80; }
.hitl-line.err { color: #f87171; }
.hitl-line.warn { color: #fbbf24; }
.hitl-line.dim { color: #6b6b6b; }
.hitl-cursor {
  display: inline-block; width: 7px; height: 13px; vertical-align: -2px;
  background: #cfcfcf; animation: blink 1s steps(2, end) infinite;
}
.hitl-foot {
  margin-top: 12px; font-size: 11px; color: #6b6b6b; line-height: 1.5;
  border-top: 1px dashed #232323; padding-top: 10px;
}

/* Stripe-style approval card */
.stripe-card {
  background: #fff; color: #18181b;
  border-radius: 18px; padding: 18px 16px 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 18px 40px -16px rgba(0,0,0,0.5), 0 6px 18px -10px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  animation: scSlideIn 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes scSlideIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.sc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #f4f4f5; color: #18181b;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px; font-weight: 600;
  align-self: center;
}
.sc-headline {
  font-size: 17px; font-weight: 600; line-height: 1.25;
  text-align: center; color: #09090b;
  letter-spacing: -0.01em;
}
.sc-headline .sc-amt { color: #09090b; }

.sc-section {
  background: #fafafa;
  border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.sc-merch { display: flex; align-items: center; gap: 10px; }
.sc-merch-logo {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.sc-merch-meta { flex: 1; min-width: 0; }
.sc-merch-name { font-size: 13px; font-weight: 600; color: #18181b; }
.sc-merch-url {
  font-size: 11px; color: #71717a;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.sc-inspect {
  border: 1px solid #d4d4d8; background: #fff;
  color: #3f3f46; font-size: 11px; font-weight: 500;
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
  transition: background 120ms;
}
.sc-inspect:hover { background: #f4f4f5; }
.sc-divider { height: 1px; background: #e4e4e7; }

.sc-line { display: flex; align-items: center; gap: 10px; }
.sc-line-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #e4e4e7; display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.sc-line-meta { flex: 1; min-width: 0; }
.sc-line-name { font-size: 13px; font-weight: 600; color: #18181b; word-break: break-word; }
.sc-line-sub { font-size: 11px; color: #71717a; }
.sc-line-price {
  font-size: 13px; font-weight: 500; color: #18181b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sc-pm {
  flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px;
}
.sc-pm-logo {
  width: 32px; height: 22px; border-radius: 4px;
  background: linear-gradient(135deg, #1a1f71 0%, #1a1f71 50%, #f7b600 50%, #f7b600 100%);
  color: #fff; font-weight: 800; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px; flex-shrink: 0;
}
.sc-pm-meta { flex: 1; min-width: 0; }
.sc-pm-name { font-size: 13px; font-weight: 600; color: #18181b; }
.sc-pm-num {
  font-size: 11px; color: #71717a;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.sc-pm-arrow { color: #a1a1aa; font-size: 18px; }

.sc-timer {
  font-size: 12px; color: #71717a;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: color 200ms;
}
.sc-timer.warn { color: #d97706; }
.sc-timer.danger { color: #dc2626; font-weight: 600; }
.sc-timer-paused { color: #18181b; font-weight: 500; }
.sc-timer-hint { color: #a1a1aa; font-size: 12px; }

.sc-actions { display: flex; gap: 8px; }
.sc-reject, .sc-approve {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: background 120ms, transform 60ms;
}
.sc-reject { background: #f4f4f5; color: #18181b; }
.sc-reject:hover { background: #e4e4e7; }
.sc-approve { background: #7c3aed; color: #fff; }
.sc-approve:hover { background: #6d28d9; }
.sc-reject:active, .sc-approve:active { transform: scale(0.98); }

.sc-foot { font-size: 10px; color: #a1a1aa; text-align: center; }

/* Success state */
.sc-success {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 0;
}
.sc-check {
  width: 40px; height: 40px; border-radius: 100px;
  background: #dcfce7; color: #15803d;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.sc-success-title { font-size: 15px; font-weight: 600; color: #09090b; }
.sc-success-sub { font-size: 12px; color: #52525b; word-break: break-word; text-align: center; }
.sc-receipt {
  font-size: 12px; color: #7c3aed;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-decoration: none; margin-top: 4px; word-break: break-all; text-align: center;
}
.sc-receipt:hover { text-decoration: underline; }

/* Replan / timeout */
.sc-replan { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 4px; }
.sc-replan-title {
  font-size: 14px; font-weight: 600; color: #09090b; margin-bottom: 2px;
  text-align: center;
}
.sc-replan-title.danger { color: #dc2626; }
.sc-replan-sub { font-size: 12px; color: #52525b; text-align: center; line-height: 1.5; margin-bottom: 4px; }
.sc-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px;
  background: #fafafa; border: 1px solid #e4e4e7;
  color: #18181b; font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: background 120ms, border-color 120ms;
}
.sc-opt:hover { background: #f4f4f5; border-color: #d4d4d8; }
.sc-opt-tag {
  font-size: 11px; color: #15803d; background: #dcfce7;
  padding: 2px 8px; border-radius: 100px; font-weight: 600;
}

@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .shell, .topbar-inner { padding-left: 16px; padding-right: 16px; }
  .topbar-inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 11px; gap: 8px; min-width: 0; flex: 1 1 auto; }
  .brand span:nth-child(2) {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .toggles { gap: 6px; flex-shrink: 0; }
  .seg button { padding: 5px 8px; font-size: 0; gap: 0; }
  .seg button svg { width: 14px; height: 14px; }
  h1.hero-headline { font-size: 44px; letter-spacing: -1.2px; line-height: 1.02; }
  .hero-tag { font-size: 16px; }
  .hero-name { font-size: 13px; }
  .eyebrow { white-space: nowrap; }
  h2 { font-size: 22px; }
  .hero { padding: 48px 0 24px; }
  .lede { font-size: 15px; }
  .panel { width: 100vw; }
  .panel-body { padding: 16px; gap: 14px; }
  .panel-head { padding: 14px 16px; }

  /* Terminal artifacts shrink to fit */
  .term-body { padding: 12px 10px; font-size: 12px; }
  .term-bar { padding: 8px 10px; }
  .term-bar .label { font-size: 10px; }
  .cost-log { font-size: 11px; }
  .cost-log .cl-row { gap: 6px; }

  /* Advisory board cards */
  .adv-card-head { padding: 8px; font-size: 11px; gap: 6px; }
  .adv-card .cl-ix { min-width: 28px; font-size: 11px; }
  .adv-detail { padding: 10px 12px 12px 28px; font-size: 11px; }

  /* Dashboard tighter */
  .dash-strip-v, .dash-card-v { font-size: 18px; }
  .dash-contrib-row { grid-template-columns: 100px 1fr 44px; gap: 8px; font-size: 11px; }
  .dash-contrib-name { font-size: 10px; }

  /* Footer wraps */
  footer .btn-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  h1.hero-headline { font-size: 36px; }
  .brand span:nth-child(2) { font-size: 10px; }
}

/* === Fade-up entrance === */
.fade-up { animation: fadeUp 0.45s cubic-bezier(0.32,0.72,0,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
