@font-face {
  font-family: Geist;
  src: url("fonts/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("fonts/Geist-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --bg-warm: #f7f6f3;
  --surface: #ffffff;
  --sidebar: #fbfbfc;
  --ink: #16181d;
  --ink-2: #3f4550;
  --muted: #6b7280;
  --faint: #9aa1ad;
  --line: #e6e8ec;
  --line-2: #d7dbe2;
  --brand: #c2410c;
  --brand-hot: #ea580c;
  --brand-soft: #fff4ed;
  --brand-line: #fdba8c;
  --blue: #1d4ed8;
  --blue-ink: #1e3a8a;
  --blue-soft: #eff6ff;
  --blue-line: #bfdbfe;
  --amber: #b45309;
  --amber-ink: #92400e;
  --amber-soft: #fffbeb;
  --amber-line: #fde68a;
  --green: #047857;
  --green-soft: #ecfdf5;
  --green-line: #a7f3d0;
  --rose: #be123c;
  --rose-soft: #fff1f2;
  --rose-line: #fecdd3;
  --violet: #5b4dff;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 1px 3px rgba(22, 24, 29, 0.05);
  --shadow-md: 0 4px 16px rgba(22, 24, 29, 0.06);
  --sidebar-w: 232px;
  --radius: 10px;
  --radius-sm: 7px;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; }

.app {
  display: flex;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}
body.shot .app,
html.shot .app {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}
body.shot .shell,
html.shot .shell,
body.shot .main,
html.shot .main {
  overflow: visible;
  height: auto;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-name { font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.nav-section {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav-item:hover { background: #eef0f3; text-decoration: none; color: var(--ink); }
.nav-item.active {
  background: #eceff3;
  color: var(--ink);
  font-weight: 600;
}
.nav-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; flex: 0 0 auto; }
.nav-item .badge {
  margin-left: auto;
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid var(--rose-line);
  font-size: 11px;
  font-weight: 650;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-sub {
  padding-left: 12px;
}
.nav-sub .nav-item { padding: 6px 10px 6px 26px; font-size: 13px; color: var(--muted); }
.nav-toggle { justify-content: space-between; }
.nav-toggle .chev {
  width: 14px; height: 14px; color: var(--faint);
  transition: transform .15s ease;
}
.nav-toggle.open .chev { transform: rotate(180deg); }

.sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.user-chip:hover { background: #eef0f3; text-decoration: none; }
.avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: #1e3a5f;
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.user-role { font-size: 11px; color: var(--muted); }

/* ---------- Shell / topbar ---------- */
.shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.topbar {
  flex: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .here { color: var(--ink); font-weight: 550; }
.crumbs .sep { color: var(--faint); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.role-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  padding: 2px 7px;
  border-radius: 999px;
}

.main {
  flex: 1;
  overflow: auto;
  padding: 28px 32px 48px;
}

/* ---------- Common typography / bits ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-title { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; margin: 0 0 4px; }
.page-sub { margin: 0; color: var(--muted); font-size: 14px; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 140px;
  box-shadow: var(--shadow);
}
.kpi .label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi .value { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; margin-top: 2px; }
.kpi.warn { border-color: var(--rose-line); background: var(--rose-soft); }
.kpi.warn .value { color: var(--rose); }
.kpi.alert { border-color: var(--amber-line); background: var(--amber-soft); }
.kpi.alert .value { color: var(--amber-ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.pill-revise, .pill-assumption { background: var(--amber-soft); color: var(--amber-ink); border-color: var(--amber-line); }
.pill-testing { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue-line); }
.pill-research, .pill-idea { background: #f4f0ff; color: #5b21b6; border-color: #ddd6fe; }
.pill-launched { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.pill-killed { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.pill-waiting { background: var(--rose-soft); color: var(--rose); border-color: var(--rose-line); }
.pill-filed, .pill-done { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.pill-draft, .pill-queued { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.pill-confirmed { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.pill-unknown { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.pill-urgent { background: var(--rose-soft); color: var(--rose); border-color: var(--rose-line); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn:hover { background: #f8fafc; text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #2a2e36; }
.btn-ghost { box-shadow: none; background: transparent; }
.btn-danger { color: var(--rose); border-color: var(--rose-line); background: var(--rose-soft); }
.btn-good { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-h {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-b { padding: 14px 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }

/* ---------- Business cards (home + list) ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.biz-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.biz-card:hover {
  text-decoration: none;
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.biz-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.biz-card-name { font-size: 16px; font-weight: 650; color: var(--brand); letter-spacing: -0.02em; }
.biz-card-slug { font-size: 12px; color: var(--faint); margin-top: -2px; }
.biz-card-line { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 12px; min-height: 40px; }
.biz-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.biz-card-next {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13px;
}
.biz-card-next .lbl { font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.biz-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Business header + tabs ---------- */
.biz-header { margin-bottom: 8px; }
.biz-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.biz-title { font-size: 28px; font-weight: 650; letter-spacing: -0.035em; margin: 0 0 4px; }
.biz-oneliner { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 720px; }
.biz-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  position: relative;
}
.step .dot {
  width: 20px; height: 20px; border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  color: var(--muted);
}
.step.done { color: var(--green); }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.current { color: var(--blue-ink); font-weight: 650; }
.step.current .dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-kill {
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--faint);
}
.step-kill .dot { border-style: dashed; }

.nextbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}
.nextbar-main { flex: 1; padding: 12px 16px; display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.nextbar-bar { width: 4px; background: var(--brand-hot); flex: 0 0 auto; }
.nextbar-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.nextbar-text { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.nextbar-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nextbar-side {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 20px;
}
.tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px 9px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }

/* ---------- Overview cards ---------- */
.idea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.idea-card h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.idea-card p, .idea-card li { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.idea-card ul { margin: 0; padding-left: 18px; }
.idea-card li + li { margin-top: 4px; }
.idea-card.span-2 { grid-column: 1 / -1; }
.kill-card {
  border-color: var(--rose-line);
  background: linear-gradient(180deg, #fff 0%, var(--rose-soft) 160%);
}
.kill-card h3 { color: var(--rose); }
.doc-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 8px; }
.doc-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.doc-btn:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); text-decoration: none; }
.doc-btn .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.doc-btn .ico svg { width: 20px; height: 20px; }
.doc-btn strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.doc-btn span { display: block; font-size: 12.5px; color: var(--muted); }

.callout {
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.callout.urgent { border-color: var(--rose-line); background: var(--rose-soft); }
.callout svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.callout h3 { margin: 0 0 2px; font-size: 13.5px; font-weight: 650; }
.callout p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* ---------- Docs reader ---------- */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.docs-rail { position: sticky; top: 0; max-height: calc(100vh - 16px); overflow: auto; }
.doc-group { margin-bottom: 16px; }
.doc-group h4 {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 8px;
}
.doc-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
}
.doc-link:hover { background: #eceff3; text-decoration: none; color: var(--ink); }
.doc-link.active { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-weight: 650; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px; box-shadow: var(--shadow); }
.toc a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover { background: #f3f4f6; text-decoration: none; }
.toc a.active { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.toc a.h3 { padding-left: 16px; font-size: 12px; color: var(--muted); }

.reader {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.reader-head {
  padding: 16px 28px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.reader-head h1 { margin: 0; font-size: 20px; letter-spacing: -0.03em; font-weight: 650; }
.reader-head .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.reader-body { padding: 8px 28px 28px; flex: 1; }
.reader-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 0 0 12px 12px;
}
.reader-nav a, .reader-nav span {
  display: flex;
  flex-direction: column;
  max-width: 46%;
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.reader-nav .dir { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.reader-nav .right { text-align: right; margin-left: auto; }
.reader-nav a:hover { color: var(--brand); text-decoration: none; }

.md h1 { font-size: 22px; letter-spacing: -0.03em; margin: 1.2em 0 .4em; }
.md h2 { font-size: 17px; letter-spacing: -0.02em; margin: 1.4em 0 .45em; padding-top: 4px; }
.md h3 { font-size: 14.5px; margin: 1.2em 0 .35em; }
.md h1:first-child, .md h2:first-child { margin-top: 0.4em; }
.md p { margin: 0 0 0.8em; color: var(--ink-2); }
.md li { margin: 0 0 0.3em; color: var(--ink-2); }
.md ul, .md ol { margin: 0 0 0.9em; padding-left: 1.25em; }
.md hr { border: none; border-top: 1px solid var(--line); margin: 1.4em 0; }
.md strong { color: var(--ink); font-weight: 650; }
.md blockquote {
  margin: 0 0 0.9em;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--brand-line);
  color: var(--ink-2);
}
.md code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 4px;
}
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}
.md th, .md td {
  border: 1px solid var(--line-2);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.md th {
  background: #f7f8fa;
  font-weight: 650;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}
.md tr:nth-child(even) td { background: #fafbfc; }

/* ---------- Tests / decisions ---------- */
.test-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.test-card { padding: 0; overflow: hidden; }
.test-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 14px 16px 8px; }
.test-id { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.test-name { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; margin: 2px 0 4px; }
.test-hyp { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.test-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.test-cell { padding: 12px 16px; border-right: 1px solid var(--line); }
.test-cell:last-child { border-right: none; }
.test-cell .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 4px; }
.test-cell.pass .lbl { color: var(--green); }
.test-cell.kill .lbl { color: var(--rose); }
.test-meta { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: #fafbfc; }

.decision-table, .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.decision-table th, .data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.decision-table td, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.decision-table tr:last-child td, .data-table tr:last-child td { border-bottom: none; }

/* ---------- Setup / costs ---------- */
.setup-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
.amount { font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.claim { font-size: 10.5px; }

/* ---------- Activity ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.timeline li {
  position: relative;
  padding: 0 0 18px 20px;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--brand-hot);
}
.timeline .when { font-size: 12px; font-weight: 650; color: var(--muted); }
.timeline .what { font-size: 14px; font-weight: 600; margin: 1px 0 2px; }
.timeline .det { font-size: 13px; color: var(--ink-2); }

/* ---------- Home extras ---------- */
.split { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 16px; margin-top: 8px; }
.need-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.need-item:last-child { border-bottom: none; }
.need-item:hover { background: #fafbfc; text-decoration: none; }
.need-biz { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.need-title { font-size: 13.5px; font-weight: 600; }
.need-det { font-size: 12.5px; color: var(--muted); }

.empty { color: var(--muted); padding: 24px; text-align: center; }

.dialog-back {
  position: fixed; inset: 0;
  background: rgba(22,24,29,.4);
  display: grid; place-items: center;
  z-index: 50;
}
.dialog {
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 16px 48px rgba(22,24,29,.2);
}
.dialog h3 { margin: 0 0 8px; }
.dialog p { margin: 0 0 16px; color: var(--ink-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12px; }

/* Playbook / admin lists */
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #fafbfc; text-decoration: none; }
.list-row strong { font-weight: 600; }

@media (max-width: 1100px) {
  .biz-grid, .grid-3, .doc-buttons, .idea-grid, .setup-grid, .split, .test-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-rail { position: static; }
  .stepper { flex-wrap: wrap; border-radius: 12px; }
}
@media (max-width: 800px) {
  .app { height: auto; overflow: visible; flex-direction: column; }
  .sidebar { width: 100%; flex: none; border-right: none; border-bottom: 1px solid var(--line); }
  .shell { overflow: visible; }
  .main { padding: 20px 16px 40px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
}

.nextbar.slim { margin-bottom: 12px; }
.nextbar.slim .nextbar-main { padding: 8px 16px; }
.nextbar.slim .nextbar-text { font-size: 13.5px; font-weight: 550; }
.biz-header.compact .biz-title { font-size: 24px; }
.biz-header.compact { margin-bottom: 4px; }
.idea-grid > .card,
.setup-grid > .card { height: 100%; }
