:root {
  color-scheme: dark;
  --bg: #0c0d0b;
  --panel: #151711;
  --panel-2: #1d2018;
  --text: #f2f0e7;
  --muted: #a9aa9f;
  --line: #303426;
  --accent: #d9b86c;
  --accent-2: #95c47f;
  --danger: #e27b68;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 184, 108, .13), transparent 34rem),
    linear-gradient(135deg, #0b0c09 0%, #11130e 55%, #090a08 100%);
  color: var(--text);
  min-height: 100vh;
}
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 56px; }
.hero { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 24px; align-items: end; margin-bottom: 28px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: .9; letter-spacing: -.07em; margin-bottom: 18px; max-width: 880px; }
h2 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 0; }
h3 { font-size: .9rem; margin: 0 0 12px; color: #d8d7cd; }
.lede { color: var(--muted); max-width: 680px; font-size: 1.08rem; line-height: 1.55; margin: 0; }
.hero-card, .panel { border: 1px solid var(--line); background: color-mix(in oklab, var(--panel), black 8%); border-radius: 22px; box-shadow: var(--shadow); }
.hero-card { padding: 24px; min-height: 160px; display: flex; flex-direction: column; justify-content: center; }
.metric-label { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
strong { display: block; font-size: 2.25rem; line-height: 1; letter-spacing: -.04em; margin: 8px 0; }
.muted { color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.panel { padding: 22px; }
.full-span { grid-column: 1 / -1; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
button { border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; color: var(--text); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
button:hover { transform: translateY(-1px); }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.primary { background: var(--accent); color: #19150a; font-weight: 850; }
.inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 760; }
input, select { width: 100%; border: 1px solid var(--line); background: #0e100c; color: var(--text); border-radius: 14px; padding: 12px 13px; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 184, 108, .12); }
.gap-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.gap-card > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 17px; padding: 16px; }
.progress { height: 12px; border-radius: 999px; overflow: hidden; background: #292c21; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s ease; }
.advice { color: #d8d2bb; line-height: 1.45; margin: 14px 0 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: item; }
.checklist li { counter-increment: item; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: #10120d; border: 1px solid var(--line); border-radius: 16px; padding: 13px; }
.checklist li::before { content: counter(item); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--accent); font-weight: 900; }
.checkline { display: flex; gap: 10px; align-items: start; color: #deddd3; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 650; }
.checkline input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.checkline.done span { color: var(--muted); text-decoration: line-through; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chapter-card { background: #10120d; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 13px; }
.chapter-card header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.chapter-card h3 { font-size: 1rem; line-height: 1.25; margin: 0; }
.badge { border-radius: 999px; padding: 5px 9px; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.status-messy { background: rgba(226,123,104,.13); color: #ffad9e; }
.status-usable { background: rgba(217,184,108,.14); color: #f2d58e; }
.status-voice { background: rgba(113,169,216,.13); color: #9ed0ff; }
.status-clean { background: rgba(149,196,127,.14); color: #b9eaa4; }
.chapter-card textarea { min-height: 70px; resize: vertical; border: 1px solid var(--line); background: #0c0d0b; color: var(--text); border-radius: 13px; padding: 10px; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.workflow-lane { min-height: 300px; background: #10120d; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.lane-items { display: grid; gap: 10px; }
.source-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 15px; padding: 12px; display: grid; gap: 10px; }
.source-card p { margin: 0; line-height: 1.35; }
.source-card small { color: var(--muted); }
.source-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.source-actions button { padding: 7px 10px; font-size: .78rem; }
dialog { border: 1px solid var(--line); background: transparent; padding: 0; border-radius: 22px; color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-card { width: min(460px, calc(100vw - 32px)); background: var(--panel); padding: 22px; border-radius: 22px; display: grid; gap: 16px; }
.dialog-card menu { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 0; }
@media (max-width: 940px) {
  .hero, .grid, .inputs, .gap-card { grid-template-columns: 1fr; }
  .full-span { grid-column: auto; }
  .board, .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); padding-top: 24px; }
  .panel { padding: 17px; border-radius: 18px; }
  .board, .workflow-grid { grid-template-columns: 1fr; }
  h1 { font-size: 3rem; }
}
