:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #647069;
  --paper: #f5f6ef;
  --card: #ffffff;
  --line: #dce1d9;
  --green: #1c6848;
  --green-soft: #e2f1e8;
  --amber: #8a5b10;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
.landing { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 80% 10%, #d7eadf, transparent 38%), var(--paper); }
.hero { width: min(760px, calc(100% - 40px)); padding: 64px 0; }
h1 { margin: 8px 0 18px; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; }
.lead { max-width: 650px; color: var(--muted); font-size: 1.28rem; line-height: 1.55; }
.eyebrow { color: var(--green); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.button { display: inline-block; border: 0; border-radius: 999px; padding: 13px 22px; color: white; background: var(--green); text-decoration: none; cursor: pointer; font-weight: 700; }
.fine-print { margin-top: 24px; color: var(--muted); font-size: .85rem; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: var(--card); border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.user { color: var(--muted); margin-right: 16px; }
.link-button, .tabs button { border: 0; color: var(--green); background: transparent; cursor: pointer; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 50px auto; }
.panel { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 36px rgba(30, 45, 37, .05); }
.panel h1 { max-width: 760px; font-size: clamp(2rem, 4vw, 3.6rem); }
form { display: grid; gap: 10px; max-width: 440px; margin-top: 30px; }
label { font-weight: 700; }
input { width: 100%; border: 1px solid #abb5ad; border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.cluster-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cluster-heading h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.state { border-radius: 999px; padding: 8px 14px; color: var(--amber); background: #f7ebcf; font-weight: 750; text-transform: capitalize; }
.state.ready { color: var(--green); background: var(--green-soft); }
.state.failed { color: #922; background: #f7dddd; }
.tabs { display: flex; gap: 20px; margin: 8px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 12px 2px; color: var(--muted); }
.tabs button.active { color: var(--ink); border-bottom: 2px solid var(--green); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.metric span { display: block; color: var(--muted); font-size: .82rem; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
pre { overflow: auto; padding: 16px; border-radius: 10px; background: #132019; color: #dff4e7; font-size: .82rem; }
.steps, .logs { padding: 0; list-style: none; }
.steps li, .logs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice { margin-bottom: 18px; padding: 14px 18px; border-radius: 10px; background: #f7dddd; color: #741f1f; }
.create-panel { margin-bottom: 22px; }
.create-panel h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.graph-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 32px; }
.graph-card { width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--card); text-align: left; cursor: pointer; }
.graph-card.active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.graph-card strong, .graph-card span { display: block; }
.graph-card span { margin-top: 5px; color: var(--muted); text-transform: capitalize; }
.button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 640px) { .cluster-heading { align-items: flex-start; flex-direction: column; } .tabs { overflow-x: auto; } }
