/* Studio Cockpit — Monitor surface. Plain, dense, legible.
   Follows the light/dark + system-ui approach of VentureStudioOS/dashboard/index.html. */

:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, sans-serif;
  --line: color-mix(in srgb, currentColor 16%, transparent);
  --line-strong: color-mix(in srgb, currentColor 30%, transparent);
  --panel: color-mix(in srgb, currentColor 4%, transparent);
  --accent: #3b82f6;
  --flag: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  line-height: 1.45;
  font-size: 15px;
}

.muted { opacity: .62; font-size: .85rem; }

a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  border-bottom: 1px solid var(--line);
  background: Canvas;
}
.topbar-inner {
  max-width: 900px; margin: 0 auto; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22a05c; display: inline-block;
}
.brand .ro {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; opacity: .7;
}

/* ---- layout ---- */
main { max-width: 900px; margin: 0 auto; padding: 8px 16px 40px; }
h2 {
  font-size: 1rem; margin: 32px 0 10px; padding-top: 8px;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; margin-top: 18px; }
.count { font-weight: 400; opacity: .55; font-size: .85rem; }

.jump { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; }
.jump a { text-decoration: none; }
.jump a:hover { text-decoration: underline; }

/* ---- portfolio board ---- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  background: var(--panel); text-decoration: none; color: inherit; display: block;
  transition: border-color .12s ease;
}
a.card:hover { border-color: var(--line-strong); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.card-head strong { font-size: 1rem; }
.stage {
  color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .72rem;
  white-space: nowrap; text-transform: lowercase;
}
.kill { font-size: .82rem; margin-top: 8px; }
.kill.missing { color: var(--flag); }
.kill .lbl { opacity: .55; }

/* ---- tables ---- */
.wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { text-align: left; padding: 8px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; opacity: .7; }
tr:last-child td { border-bottom: 0; }
.status-pill {
  font-size: .72rem; border-radius: 999px; padding: 1px 8px;
  border: 1px solid var(--line-strong); text-transform: lowercase;
}

/* ---- decision queue ---- */
.memo { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: var(--panel); }
.memo h3 { margin: 0 0 4px; font-size: .95rem; }
.memo .memo-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.memo .q { margin: 6px 0 0; }

/* ---- budget ---- */
.cap { margin: 12px 0; }
.cap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cap-name { font-weight: 600; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: #22a05c; border-radius: 999px; }
.bar.flagged > span { background: var(--flag); }
.cap.total .cap-name { font-size: 1.02rem; }
.cap .notes { font-size: .8rem; }
.flag-note { color: var(--flag); font-size: .8rem; }

/* ---- venture detail ---- */
.back { display: inline-block; margin: 16px 0 6px; text-decoration: none; opacity: .8; }
.back:hover { text-decoration: underline; }
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-head h2 { border: 0; margin: 8px 0; padding: 0; font-size: 1.3rem; }
.checklist { list-style: none; padding: 0; margin: 8px 0; }
.checklist li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; }
.checklist .box { font-family: ui-monospace, monospace; opacity: .8; }
.checklist li.done { opacity: .6; }
.checklist li.done .txt { text-decoration: line-through; }

/* ---- empty states ---- */
.empty {
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 18px 16px; opacity: .8; font-size: .9rem;
}
.empty strong { display: block; margin-bottom: 3px; opacity: .95; }

/* ---- footer ---- */
.foot {
  max-width: 900px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
