/* INCUBASE Workspace: the Logbook design system.
   Brand: navy ink, electric blue for actions, lime only for "now", cyan-to-lime from the logo mark. */
@font-face {
  font-family: Instrument;
  src: url("/assets/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font: Instrument, system-ui, sans-serif;
  --font-display: Instrument, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --bg: #f7f6f2;
  --surface: #fff;
  --surface-2: #f0f0ea;
  --ink: #0d1629;
  --ink-2: #2d3542;
  --muted: #555d6a;
  --line: #e2e3dd;
  --line-strong: #c3c6bf;
  --accent: #1261ed;
  --accent-hover: #0b45b5;
  --accent-text: #fff;
  --accent-soft: #e5edff;
  --blue: #1261ed;
  --lime: #d8f830;
  --lime-ink: #0d1629;
  --now: #eefab8;
  --navy: #0d1629;
  --navy-2: #14243b;
  --navy-3: #1b2d47;
  --on-navy: #f7f6f2;
  --on-navy-muted: #a9b8cc;
  --danger: #a3261b;
  --warn: #9a3410;
  --shadow: 0 1px 2px #0d16290a, 0 8px 24px #0d16290a;
  --c-engagement: #1261ed;
  --c-research: #0b8a9a;
  --c-development: #d9480f;
  --c-meeting: #0d1629;
  --c-programme: #7a8496;
  --c-achievement: #d8f830;
  --heat-0: #ebebe4;
  --heat-1: #cfdcff;
  --heat-2: #93b4fb;
  --heat-3: #4f86f3;
  --heat-4: #1261ed;
  --supports-bg: #e5edff;
  --supports: #0b45b5;
  --inconclusive-bg: #efeee6;
  --inconclusive: #514a1f;
  --contradicts-bg: #fde6dc;
  --contradicts: #9a3410;
  --sidebar: 248px;
  --radius: 16px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1526;
  --surface: #12213a;
  --surface-2: #1a2c47;
  --ink: #edf3fa;
  --ink-2: #ccd6e4;
  --muted: #a9b8cc;
  --line: #24365a;
  --line-strong: #3a4e72;
  --accent: #7eb5ff;
  --accent-hover: #a8ceff;
  --accent-text: #0b1526;
  --accent-soft: #1b3358;
  --blue: #7eb5ff;
  --now: #2a3a12;
  --navy: #070f1d;
  --navy-2: #12213a;
  --navy-3: #1a2c47;
  --danger: #ff9f8f;
  --warn: #ffb38a;
  --shadow: 0 1px 2px #0003, 0 8px 24px #0003;
  --c-engagement: #7eb5ff;
  --c-research: #3cc7d8;
  --c-development: #ff8a4c;
  --c-meeting: #edf3fa;
  --c-programme: #8f9bb0;
  --heat-0: #1a2c47;
  --heat-1: #20406f;
  --heat-2: #2f5ea6;
  --heat-3: #4f86f3;
  --heat-4: #8fbaff;
  --supports-bg: #1b3358;
  --supports: #b9d4ff;
  --inconclusive-bg: #2c2f2a;
  --inconclusive: #e2dcb2;
  --contradicts-bg: #3d2318;
  --contradicts: #ffc2a1;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
h4 {
  font-size: 14px;
}
p {
  margin-top: 10px;
}
small {
  display: block;
}
kbd {
  font: 500 11px/1 var(--font-mono);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}
button,
input,
select,
textarea,
a,
summary,
label {
  outline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--blue);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 13px;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.brand {
  width: 136px;
  display: block;
}
.brand img {
  width: 100%;
  height: auto;
}
.logo-dark {
  display: none;
}
:root[data-theme="dark"] .logo-light {
  display: none;
}
:root[data-theme="dark"] .logo-dark {
  display: block;
}
.eyebrow {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.lede {
  color: var(--muted);
  font-size: 16px;
  margin-top: 8px;
  max-width: 64ch;
}
.lede a,
.filter-note a,
.panel-head a,
.thread a,
.quiet-row a {
  color: var(--accent);
  font-weight: 600;
}
.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 99;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip:focus {
  left: 10px;
}

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.button:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}
.button.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button kbd {
  background: #ffffff2e;
  border-color: #ffffff40;
  color: inherit;
}
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.icon-button:hover {
  border-color: var(--ink);
}
.theme-sun,
:root[data-theme="dark"] .theme-moon {
  display: none;
}
:root[data-theme="dark"] .theme-sun,
.theme-moon {
  display: inline-grid;
}
.chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.chip:hover {
  border-color: var(--ink);
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.row-actions form {
  margin: 0;
}

/* Shell */
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: var(--on-navy);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 16px 18px;
  overflow-y: auto;
  z-index: 30;
}
.workspace-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px;
}
.workspace-brand img {
  width: 132px;
  height: auto;
}
.workspace-brand span {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.workspace-brand:hover {
  color: var(--on-navy);
}
.workspace-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--navy-2);
}
:root[data-theme="dark"] .workspace-context {
  background: #0f1c31;
}
.workspace-context b {
  font-size: 15px;
  display: block;
  line-height: 1.25;
}
.workspace-context small {
  font-size: 13px;
  color: var(--on-navy-muted);
}
.context-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  color: #c6cfdc;
  font-size: 15px;
  font-weight: 500;
}
.sidebar nav a:hover {
  background: var(--navy-3);
  color: #fff;
}
.sidebar nav a[aria-current] {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 650;
}
.sidebar :focus-visible {
  outline-color: var(--lime);
}
.nav-label {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  padding: 18px 12px 8px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #22344f;
  padding-top: 16px;
}
.sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  color: var(--on-navy);
  font-size: 14px;
}
.sidebar-bottom a:hover,
.sidebar-bottom a[aria-current] {
  background: var(--navy-3);
  color: #fff;
}
.sidebar-bottom small {
  color: var(--on-navy-muted);
  font-size: 12px;
}
.me-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font: 500 12px/1 var(--font-mono);
  flex-shrink: 0;
}
.sidebar-bottom .public-link {
  color: var(--on-navy-muted);
  font-size: 13px;
  justify-content: space-between;
}
.public-link .icon {
  width: 16px;
  height: 16px;
}
.app {
  margin-left: var(--sidebar);
  min-height: 100vh;
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px clamp(16px, 3vw, 40px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mobile-toggle {
  display: none;
}
.topbar-search {
  flex: 1;
  max-width: 560px;
  min-width: 0;
}
.topbar-search label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
}
.topbar-search label:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.topbar-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}
.topbar-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions form {
  margin: 0;
}
.main {
  padding: 32px clamp(16px, 3vw, 40px) 72px;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.main > * {
  min-width: 0;
}
.notice {
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 14px;
}
.view-as {
  background: #f3d78f;
  color: #382b13;
  position: sticky;
  top: 76px;
  z-index: 14;
  padding: 12px clamp(16px, 3vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.view-as span {
  display: block;
  font-size: 13px;
}
.view-as .button {
  color: #382b13;
  background: #fff5d9;
  border-color: #c5aa65;
}

/* Page building blocks */
.page-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px 24px;
}
.page-heading h1 {
  overflow-wrap: anywhere;
}
.page-heading .actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}
.panel > h2 {
  margin-bottom: 14px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.narrow {
  max-width: 680px;
}
.section {
  margin-top: 6px;
}
h2.section {
  margin: 10px 0 12px;
}
.section > h2 {
  margin-bottom: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
a.badge:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.status-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.empty {
  text-align: center;
  padding: 48px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--now);
  color: var(--ink);
  margin-bottom: 10px;
}
.empty p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 14px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
dl {
  margin: 0;
}
dt {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
dd {
  margin: 2px 0 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 var(--font-mono);
  background: var(--surface-2);
  padding: 12px;
  border-radius: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 32px;
}
.danger summary {
  color: var(--danger);
}

/* Venture logos: the tile follows the logo's shape so nothing is clipped or shrunk to nothing */
.venture-logo,
.venture-initial {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  grid-template: 100% / 100%;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  overflow: hidden;
}
.venture-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.venture-logo.wide {
  width: 76px;
}
.venture-initial {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--lime);
  font: 500 14px/1 var(--font-mono);
}
.sidebar .venture-logo,
.sidebar .venture-initial {
  width: 44px;
  height: 44px;
  border: 0;
}
.sidebar .venture-logo.wide {
  width: 72px;
}
.venture-logo.xs,
.venture-initial.xs {
  width: 24px;
  height: 24px;
  padding: 2px;
  border-radius: 6px;
  font-size: 9px;
}
.venture-logo.xs.wide {
  width: 44px;
}
.venture-logo.sm,
.venture-initial.sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  padding: 3px;
  font-size: 12px;
}
.venture-logo.sm.wide {
  width: 64px;
}
.venture-logo.lg,
.venture-initial.lg {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  padding: 8px;
  font-size: 22px;
}
.venture-logo.lg.wide {
  width: 150px;
}
.venture-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--ink);
}

/* Category dots and findings */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--c-programme);
}
.cat-engagement {
  background: var(--c-engagement);
}
.cat-research {
  background: var(--c-research);
}
.cat-development {
  background: var(--c-development);
}
.cat-meeting {
  background: var(--c-meeting);
}
.cat-programme {
  background: var(--c-programme);
}
.cat-achievement {
  background: var(--c-achievement);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.finding {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--inconclusive-bg);
  color: var(--inconclusive);
}
.finding.supports {
  background: var(--supports-bg);
  color: var(--supports);
}
.finding.contradicts {
  background: var(--contradicts-bg);
  color: var(--contradicts);
}
.finding.open {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
}
.finding-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink-2);
}

/* Logbook header and week meter */
.logbook-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
}
.lh-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.lh-identity h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.lh-identity .eyebrow {
  margin-bottom: 6px;
}
.lh-identity .lede {
  margin-top: 6px;
  font-size: 15px;
}
.week-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 260px);
}
.week-meter .mono {
  font-size: 12px;
  color: var(--muted);
}
.week-meter b {
  color: var(--ink);
  font-weight: 500;
}
.steps {
  display: flex;
  gap: 3px;
}
.steps span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.steps span.done {
  background: var(--accent);
}

/* The journey rail */
.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px 16px;
  min-width: 0;
}
.rail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  margin-bottom: 12px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend .dot {
  width: 10px;
  height: 10px;
}
.rail-scroll {
  position: relative;
  overflow-x: auto;
  margin: 0 -6px;
  padding: 2px 6px 4px;
}
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(46px, 1fr);
  gap: 4px;
}
.wk-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 0 10px;
  border-radius: 12px;
  color: var(--ink);
  border: 1.5px solid transparent;
}
a.wk-inner:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.wk.current .wk-inner {
  background: var(--now);
}
.wk.selected .wk-inner {
  border-color: var(--ink);
}
.wk-mile {
  height: 14px;
  display: flex;
  align-items: center;
}
.diamond {
  width: 9px;
  height: 9px;
  background: var(--ink);
  transform: rotate(45deg);
  display: inline-block;
}
.wk-stack {
  height: 118px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 5px;
}
.wk.future .wk-stack {
  width: 24px;
  border-bottom: 2px dashed var(--line-strong);
}
.wk.quiet .wk-stack {
  width: 18px;
  border-bottom: 2px solid var(--line-strong);
}
.wk-more {
  font: 500 10px/1 var(--font-mono);
  color: var(--muted);
}
.wk-code {
  font: 500 12px/1 var(--font-mono);
}
.wk-range {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.wk.future .wk-code {
  color: var(--muted);
}
.rail-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.rail-miles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Logbook feed */
.logbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.logbook-layout.wide {
  grid-template-columns: minmax(0, 1fr);
}
.logbook-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.logbook {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.filter-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.filter-top > .field {
  flex: 1 1 200px;
  min-width: 0;
}
.filter-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-panel details {
  margin-top: 10px;
}
.filter-panel summary {
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px 16px;
  margin-top: 12px;
}
.filter-note {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 14px;
}
.week {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 96px;
}
.week-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.week-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.week-head h2 .mono {
  font-size: 14px;
}
.week-range {
  color: var(--ink-2);
}
.now-chip {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 4px 8px;
  border-radius: 6px;
}
.week-sum {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}
.quiet-week .week-head {
  border-bottom-color: var(--line-strong);
}
.quiet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
}
.quiet-row p {
  margin: 0;
}
.entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.entry-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.entry-date .mono {
  font-size: 11px;
  color: var(--muted);
}
.entry-date strong {
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
}
.entry-date .dot {
  margin-top: 10px;
}
.entry-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.entry-meta > * + *::before {
  content: "·";
  margin: 0 8px;
  color: var(--line-strong);
}
.entry h3 {
  font-size: 19px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.entry h3 a:hover {
  color: var(--accent);
}
.entry-text {
  margin: 0;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.entry-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  max-width: 100%;
}
.link-chip .icon {
  width: 15px;
  height: 15px;
}
a.link-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.link-chip.quiet {
  color: var(--muted);
  border-style: dashed;
}
.activity-media {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.activity-media a {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.activity-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdf-tile,
.media-more {
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-2);
}

/* Open threads */
.threads {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.thread {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.thread h2 {
  font-size: 16px;
  margin-bottom: 10px;
}
.thread p {
  margin: 0;
  font-size: 14px;
}
.thread .hint {
  margin: -4px 0 10px;
}
.thread > .button {
  margin-top: 12px;
}
.thread.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}
.thread.dark p,
.thread.dark .mono {
  color: var(--on-navy-muted);
}
.thread.dark a {
  color: var(--on-navy);
  font-weight: 500;
}
.thread.dark a:hover {
  color: var(--lime);
}
.thread.dark :focus-visible {
  outline-color: var(--lime);
}
.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thread-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-size: 14px;
  line-height: 1.4;
}
.thread-list .mono {
  font-size: 11px;
}
.thread a {
  font-weight: 600;
}
.thread-list li.upcoming {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.thread-list small {
  color: var(--muted);
}
.cal {
  width: 50px;
  flex-shrink: 0;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.cal .mono {
  font-size: 10px;
  color: var(--muted);
}
.cal b {
  font-size: 18px;
}
.pilot-steps {
  display: flex;
  gap: 3px;
  width: 100%;
  max-width: 220px;
}
.pilot-steps span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.pilot-steps span.done {
  background: var(--accent);
}
.pilot-status {
  font-size: 11px;
  color: var(--muted);
}
.pilot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 120px;
}
.pilot-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.status-closed {
  background: var(--contradicts-bg);
  color: var(--contradicts);
  border-color: transparent;
}

/* Cohort pulse */
.pulse-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px 32px;
}
.pulse-head h1 {
  max-width: 22ch;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
}
.pulse-head mark {
  background: var(--lime);
  color: var(--lime-ink);
  padding: 0 6px;
  border-radius: 6px;
}
.pulse-stats {
  display: flex;
  gap: 28px;
}
.pulse-stats dt {
  margin: 0;
}
.pulse-stats dd {
  font-size: 28px;
  line-height: 1.1;
  margin-top: 4px;
}
.sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.sort a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
}
.sort a[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.table-scroll {
  position: relative;
  overflow-x: auto;
}
table.pulse {
  border-collapse: separate;
  border-spacing: 4px;
  width: 100%;
  min-width: 860px;
  margin: 0 -4px;
}
table.pulse th,
table.pulse td {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
}
table.pulse thead th {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
}
table.pulse thead th:first-child {
  text-align: left;
}
table.pulse thead th.cur {
  color: var(--ink);
}
table.pulse tbody th {
  text-align: left;
  width: 210px;
  padding-right: 8px;
}
/* The venture column stays put while the weeks scroll sideways on small screens. */
table.pulse tbody th,
table.pulse thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}
table.pulse tbody th a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
}
table.pulse tbody th span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.heat {
  display: block;
  height: 30px;
  min-width: 26px;
  border-radius: 7px;
  background: var(--heat-0);
}
.heat.l1 {
  background: var(--heat-1);
}
.heat.l2 {
  background: var(--heat-2);
}
.heat.l3 {
  background: var(--heat-3);
}
.heat.l4 {
  background: var(--heat-4);
}
.heat.lf {
  background: transparent;
  border: 1.5px dashed var(--line-strong);
}
.heat.cur {
  box-shadow: 0 0 0 2px var(--ink);
}
table.pulse td.last,
table.pulse th.last {
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
  padding-left: 10px;
  color: var(--ink-2);
}
table.pulse td.is-quiet {
  color: var(--warn);
  font-weight: 650;
}
table.pulse td.is-none {
  color: var(--muted);
}
.heat-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.heat-legend .heat {
  display: inline-block;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 4px;
}
.pulse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.latest-list li > .mono {
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.latest-list li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.latest-venture {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.latest-list a {
  font-weight: 650;
}
.milestone-card {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 20px;
  padding: 22px;
}
.milestone-card .eyebrow {
  color: var(--lime);
}
.milestone-card h2 {
  font-size: 24px;
}
.milestone-card p {
  color: var(--on-navy-muted);
  font-size: 14px;
}
.milestone-card dl {
  margin: 16px 0 18px;
}
.milestone-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid #22344f;
}
.milestone-card dt {
  margin: 0;
  color: var(--on-navy-muted);
  font-size: 14px;
}
.milestone-card dd {
  margin: 0;
}
.milestone-card .button {
  width: 100%;
}
.milestone-card :focus-visible {
  outline-color: var(--lime);
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > span,
.field > label,
legend {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}
.field select[multiple] {
  min-height: 120px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field input[type="file"] {
  padding: 9px;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-stack fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-stack h2 {
  font-size: 17px;
}
.form-stack .panel,
.form-stack [data-validation] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-stack [data-validation] h2 {
  margin-top: 6px;
}
.form-stack .panel > h2 {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.form-main,
.form-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0;
  background: linear-gradient(transparent, var(--bg) 30%);
}
.form-actions .button {
  min-width: 180px;
  min-height: 50px;
  font-size: 15px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 32px;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.category-picker {
  border: 0;
  padding: 0;
  margin: 0;
}
.category-picker legend {
  margin-bottom: 10px;
  padding: 0;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cat-chip {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}
.cat-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.cat-chip .dot {
  margin-top: 3px;
}
.cat-chip small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.cat-chip:hover {
  border-color: var(--ink);
}
.cat-chip:has(input:checked) {
  border: 2px solid var(--ink);
  background: var(--now);
  padding: 9px 11px;
}
.cat-chip:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.date-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.date-quick {
  display: flex;
  gap: 6px;
}
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
}
.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--accent);
}
.dropzone input {
  margin-top: 8px;
  max-width: 100%;
  font-size: 13px;
}
.dropzone-title {
  font-weight: 650;
}
.upload-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.participants {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.participants legend {
  margin-bottom: 8px;
  padding: 0;
}
.password-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding-right: 5px;
}
.password-wrap:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.field .password-wrap input {
  border: 0;
  outline: none;
  flex: 1;
}
.reveal {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}

/* Detail pages */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.detail-grid > * {
  min-width: 0;
}
.narrative h2 {
  font-size: 15px;
  margin: 20px 0 6px;
  color: var(--ink);
}
.narrative > h2:first-child,
.narrative > .finding-row + h2 {
  margin-top: 14px;
}
.narrative p {
  margin: 0;
  color: var(--ink-2);
}
.narrative .byline {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.detail-grid aside h3 {
  font-size: 14px;
  margin: 18px 0 6px;
}
.detail-grid aside > .button {
  margin: 10px 8px 0 0;
}
.connected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plain-list {
  margin: 0;
  padding-left: 18px;
}
.revision {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.revision h3 {
  font-size: 14px;
}
.revision p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.revision details {
  margin-top: 8px;
}
.revision summary {
  font-size: 13px;
  color: var(--accent);
}
details.panel > summary {
  min-height: 24px;
}
details.panel[open] > summary {
  margin-bottom: 8px;
}
.history-item {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.history-item p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.contact-private p {
  margin: 2px 0 0;
}
.contact-private h3 {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* Lists, evidence, tables */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
}
.contact-row:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.contact-row > .icon {
  color: var(--muted);
}
.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--lime);
  font: 500 16px/1 var(--font-mono);
}
.contact-identity {
  flex: 1;
  min-width: 0;
}
.contact-identity h2 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.contact-identity p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.contact-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.contact-meta b {
  color: var(--ink);
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.evidence-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
}
.evidence-card:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.evidence-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.evidence-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--on-navy);
}
.media-label.cleared {
  background: var(--lime);
  color: var(--lime-ink);
}
.evidence-info {
  padding: 14px 16px 16px;
}
.evidence-info h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.evidence-info p {
  margin: 4px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.evidence-info > span {
  font-size: 11px;
  color: var(--muted);
}
.pdf-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--ink-2);
}
.pdf-cover .icon {
  width: 36px;
  height: 36px;
}
.evidence-preview img {
  margin: 0 auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}
.table-wrap {
  position: relative;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
caption {
  text-align: left;
  padding: 16px 18px 6px;
  font-weight: 650;
}
th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td small {
  color: var(--muted);
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.migration-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.migration-row span {
  color: var(--muted);
  font-size: 13px;
}
.migration-row code {
  font: 11px/1.4 var(--font-mono);
  overflow-wrap: anywhere;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
}
.metric > .icon {
  grid-row: span 2;
  color: var(--accent);
}
.metric strong {
  font: 500 24px/1.1 var(--font-mono);
}
.metric > span {
  font-size: 13px;
  color: var(--muted);
}

/* Sign in and plain pages */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-width: 0;
}
.login-brand img {
  width: 160px;
  height: auto;
}
.login-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.login-copy .eyebrow {
  color: var(--on-navy-muted);
  margin: 0;
}
.login-copy h1 {
  font-size: clamp(46px, 5.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 11ch;
}
.login-copy h1 em {
  font-style: normal;
  color: var(--lime);
}
.login-copy p {
  margin: 0;
  max-width: 36ch;
  font-size: 18px;
  line-height: 1.55;
  color: #c6cfdc;
}
.login-rail {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  max-width: 560px;
}
.lr-col {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
}
.lr-dot {
  width: 14px;
  height: 14px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #07cde8;
}
.lr-dot.t1 {
  background: #2be3b0;
}
.lr-dot.t2 {
  background: #8ff05a;
}
.lr-dot.t3 {
  background: #d8f830;
}
.lr-code {
  order: -1;
  margin-top: 6px;
  font: 500 10px/1 var(--font-mono);
  color: #8a9bb3;
}
.login-story :focus-visible {
  outline-color: var(--lime);
}
.login-form {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px);
}
.login-form > .theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
}
.auth-card {
  width: 100%;
  max-width: 410px;
}
.auth-card h2 {
  font-size: 30px;
  letter-spacing: -0.025em;
}
.auth-card > .muted {
  margin: 8px 0 24px;
}
.auth-card .form-actions {
  position: static;
  background: none;
  padding: 4px 0 0;
}
.auth-card .form-actions .button {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}
.auth-note {
  margin: 20px 0 10px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.auth-card > .text-button {
  padding: 0;
}
.setup-card,
.auth-error {
  width: calc(100% - 32px);
  max-width: 620px;
  margin: 12vh auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.setup-card .brand,
.auth-error .brand {
  margin-bottom: 10px;
}
.auth-error h1 {
  font-size: 26px;
}
.auth-error .button,
.setup-card > .button {
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 1200px) {
  .logbook-layout,
  .pulse-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .threads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
@media (max-width: 1080px) {
  .form-layout,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .sidebar {
    display: none;
    width: min(86vw, 300px);
    box-shadow: 0 0 0 100vmax #0d162980;
  }
  .nav-open .sidebar {
    display: flex;
  }
  .app {
    margin-left: 0;
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .topbar {
    min-height: 68px;
    padding: 12px 16px;
    gap: 8px;
  }
  .view-as {
    top: 68px;
  }
  .topbar-search kbd,
  .log-button kbd {
    display: none;
  }
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-story {
    gap: 32px;
  }
  .login-rail {
    max-width: 380px;
    gap: 4px;
  }
  .lr-dot {
    width: 10px;
    height: 10px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .main {
    padding: 22px 16px 56px;
    gap: 20px;
  }
  .log-button {
    width: 44px;
    padding: 0;
  }
  .log-button span {
    display: none;
  }
  .topbar-search label {
    padding: 0 10px;
  }
  .entry {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }
  .entry-date strong {
    font-size: 22px;
  }
  .entry h3 {
    font-size: 17px;
  }
  .activity-media {
    margin-left: 0;
    width: 100%;
  }
  .week-sum {
    margin-left: 0;
    width: 100%;
  }
  .cat-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cat-chip small {
    display: none;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-actions .button {
    width: 100%;
  }
  .lh-identity {
    gap: 14px;
  }
  .venture-logo.lg,
  .venture-initial.lg {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .venture-logo.lg.wide {
    width: 120px;
  }
  .contact-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }
  .contact-meta,
  .pilot-meta {
    align-items: flex-start;
    width: 100%;
    padding-left: 60px;
    white-space: normal;
  }
  .contact-row > .icon {
    display: none;
  }
  .pulse-stats {
    gap: 18px;
  }
  table.pulse {
    min-width: 720px;
  }
  table.pulse tbody th {
    width: 132px;
    max-width: 132px;
  }
  table.pulse tbody th a {
    font-size: 14px;
    gap: 8px;
  }
  table.pulse tbody th span:last-child {
    max-width: 84px;
  }
  .pulse-stats dd {
    font-size: 22px;
  }
  .rail-card {
    padding: 16px 14px 14px;
  }
  .panel {
    padding: 18px 16px;
  }
  .metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading .actions {
    width: 100%;
  }
  .login-copy h1 {
    font-size: 44px;
  }
  .login-copy p {
    font-size: 16px;
  }
  .auth-card h2 {
    font-size: 26px;
  }
  .login-form > .theme-toggle {
    top: 14px;
    right: 14px;
  }
  .login-form {
    padding-top: 72px;
  }
}

/* Reports, presentation and print */
.report-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.report-type {
  display: block;
}
.report-type > .icon {
  color: var(--accent);
  margin-bottom: 30px;
  width: 25px;
  height: 25px;
}
.report-type h2 {
  font-size: 20px;
}
.report-type p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.report-type > span {
  font-size: 11px;
  display: block;
  margin-top: 24px;
  color: var(--accent);
}
.report-activity-choice {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.report-activity-choice > .check {
  font-weight: 600;
}
.report-activity-choice > p {
  margin-left: 25px;
  font-size: 11px;
  color: var(--muted);
}
.report-choices {
  margin-top: 25px;
}
.report-evidence-choice {
  min-width: 0;
}
.report-evidence-choice > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 5px;
}
.report-evidence-choice textarea {
  font-size: 11px;
}
.empty-inline {
  padding: 24px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  border-radius: 6px;
}
.export-form {
  margin: 0 0 20px;
}
.report-document {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 55px 60px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 35px;
  margin-bottom: 40px;
  font-size: 9px;
  color: var(--muted);
  text-align: right;
}
.report-document > h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.12;
}
.report-period {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.report-intro {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.7;
  margin: 35px 0;
}
.report-document > h2 {
  font-size: 23px;
  font-family: var(--font-display);
  font-weight: 400;
  margin: 38px 0 18px;
}
.report-highlight {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid-page;
}
.report-source {
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 8px;
}
.report-highlight h3 {
  font-size: 21px;
}
.report-highlight h4 {
  margin-top: 20px;
  font-size: 12px;
}
.report-highlight p {
  font-size: 12px;
  line-height: 1.8;
}
.report-highlight .hint {
  font-size: 9px;
  color: var(--muted);
}
.report-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.report-photos figure {
  margin: 0;
  break-inside: avoid;
}
.report-photos img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  background: var(--surface-2);
}
figcaption {
  font-size: 12px;
  margin-top: 10px;
}
figcaption small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}
.report-footer {
  font-size: 9px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 45px;
}
.presentation-body {
  background: #0d1629;
  color: #f7f6f2;
}
.presentation {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(ellipse at top right, #1c3c70 0, transparent 60%), #0d1629;
}
.presentation-header {
  height: 85px;
  padding: 25px 5vw;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #ffffff18;
  position: relative;
  z-index: 2;
}
.presentation-header .brand {
  width: 140px;
}
.presentation-header .logo-light {
  display: none !important;
}
.presentation-header .logo-dark {
  display: block !important;
}
.presentation-header > span {
  font-size: 10px;
  color: #c6cfdc;
}
.presentation-header > a {
  margin-left: auto;
  font-size: 10px;
  color: #c6cfdc;
}
.slide {
  min-height: calc(100vh - 170px);
  padding: 6vh 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-wrap: anywhere;
}
.slide .eyebrow {
  color: #c6cfdc;
}
.slide h1,
.slide h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-size: clamp(40px, 5.5vw, 88px);
  max-width: 1100px;
}
.title-slide h1 {
  max-width: 1000px;
}
.slide-period {
  font-size: 14px;
  color: #c6cfdc;
  margin-top: 30px;
}
.slide-intro {
  font-size: clamp(14px, 1.6vw, 23px);
  line-height: 1.6;
  max-width: 850px;
  color: #c6cfdc;
  margin-top: 25px;
}
.slide-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #d8f830;
  margin-top: 5vh;
}
.slide-note {
  max-width: 900px;
  color: #c6cfdc;
  font-size: 13px;
  margin: 24px 0;
}
.stats-slide .metrics {
  gap: 20px;
  margin-top: 45px;
}
.presentation .metric {
  background: #ffffff07;
  border-color: #ffffff20;
  color: #f7f6f2;
  padding: 30px;
}
.presentation .metric strong {
  font-size: 52px;
}
.presentation .metric > span {
  color: #c6cfdc;
}
.presentation .metric > .icon {
  color: #d8f830;
}
.presentation .badge {
  background: #ffffff12;
  color: #c6cfdc;
}
.venture-title-slide .venture-logo,
.venture-title-slide .venture-initial {
  height: 100px;
  width: 120px;
  padding: 15px;
  margin-bottom: 35px;
  font-size: 60px;
}
.venture-title-slide > p:last-child {
  color: #c6cfdc;
  margin-top: 25px;
}
.activity-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}
.slide-copy h2 {
  font-size: clamp(32px, 3.7vw, 62px);
  margin-top: 20px;
}
.slide-copy > p:not(.eyebrow) {
  font-size: clamp(13px, 1.4vw, 20px);
  line-height: 1.6;
  color: #c6cfdc;
  margin-top: 25px;
}
.slide-source {
  font-size: 10px !important;
  color: #aebbd0 !important;
}
.slide-photo {
  margin: 0;
}
.slide-photo img {
  max-height: 62vh;
  max-width: 100%;
  width: 100%;
  object-fit: contain;
}
.slide-photo figcaption {
  font-size: 12px;
  color: #c6cfdc;
}
.slide-no-photo {
  min-height: 45vh;
  border: 1px solid #ffffff20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff03;
  border-radius: 12px;
}
.slide-no-photo .icon {
  width: 40px;
  height: 40px;
  color: #d8f830;
}
.slide-no-photo p {
  font-family: var(--font-display);
  font-size: 22px;
  color: #c6cfdc;
  margin-top: 25px;
}
.evidence-slide {
  padding: 30px 7vw;
}
.evidence-slide figure {
  margin: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 5vw;
}
.evidence-slide img {
  width: 100%;
  height: 65vh;
  object-fit: contain;
}
.evidence-slide h2 {
  font-size: clamp(26px, 3vw, 48px);
}
.evidence-slide figcaption > span {
  font-size: 11px;
  color: #c6cfdc;
  display: block;
  margin-top: 30px;
}
.presentation-controls {
  height: 85px;
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff18;
  gap: 12px;
  font-size: 10px;
  color: #c6cfdc;
}
.presentation-controls > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.presentation-controls button {
  background: transparent;
  border: 1px solid #ffffff38;
  color: #f7f6f2;
  padding: 7px 13px;
  border-radius: 5px;
}
.presentation-controls [data-slide-status] {
  margin-left: 12px;
}
.presentation-directory {
  margin-top: 25px;
  max-height: 55vh;
  overflow: auto;
}
.presentation-directory .table-wrap {
  --surface: #14243b;
  --surface-2: #1b2d47;
  --line: #2d4263;
  --muted: #c6cfdc;
  --ink: #f7f6f2;
}
.empty-slide > p:last-child {
  max-width: 650px;
  color: #c6cfdc;
  margin-top: 30px;
}
.validation-conclusion {
  border-left: 2px solid #d8f830;
  padding-left: 15px;
}
@media (max-width: 1200px) {
  .report-types {
    gap: 12px;
  }
  .report-type {
    padding: 20px;
  }
  .report-document {
    padding: 40px;
  }
}
@media (max-width: 980px) {
  .report-types {
    grid-template-columns: 1fr;
  }
  .report-type {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 5px 16px;
  }
  .report-type > .icon {
    grid-row: 1/4;
    margin: 0;
  }
  .report-type > span {
    margin-top: 10px;
  }
  .report-type p {
    margin-top: 5px;
  }
  .report-document {
    padding: 30px;
  }
  .report-photos {
    grid-template-columns: 1fr;
  }
  .presentation .metric {
    padding: 20px;
  }
  .presentation .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-slide {
    gap: 4vw;
  }
  .slide-photo img {
    max-height: 50vh;
  }
}
@media (max-width: 720px) {
  .report-document {
    padding: 28px 20px;
  }
  .report-header {
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 28px;
  }
  .report-header > .brand {
    width: 110px;
  }
  .report-header > span {
    font-size: 8px;
  }
  .report-document > h1 {
    font-size: 32px;
  }
  .report-document > .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .report-document .metric {
    padding: 12px 8px;
    gap: 3px;
  }
  .report-document .metric > .icon {
    width: 16px;
  }
  .report-document .metric strong {
    font-size: 22px;
  }
  .report-document .metric > span {
    font-size: 8px;
  }
  .report-intro {
    font-size: 17px;
  }
  .report-choices {
    grid-template-columns: 1fr;
  }
  .report-evidence-choice > img {
    height: 240px;
  }
  .report-evidence-choice textarea {
    font-size: 16px;
  }
  .presentation-header {
    height: 72px;
    padding: 20px 6vw;
    gap: 15px;
  }
  .presentation-header .brand {
    width: 110px;
  }
  .presentation-header > span {
    display: none;
  }
  .presentation-header > a {
    font-size: 9px;
  }
  .slide {
    min-height: calc(100vh - 150px);
    padding: 40px 7vw;
  }
  .slide h1,
  .slide h2 {
    font-size: clamp(34px, 8vw, 55px);
  }
  .slide .eyebrow {
    font-size: 8px;
  }
  .slide-intro {
    font-size: 16px;
  }
  .slide-period {
    font-size: 11px;
  }
  .presentation .metric {
    padding: 20px 15px;
  }
  .presentation .metric strong {
    font-size: 38px;
  }
  .presentation .metric > span {
    font-size: 9px;
  }
  .slide-note {
    font-size: 11px;
  }
  .activity-slide {
    display: flex;
    gap: 28px;
  }
  .slide-photo {
    width: 100%;
  }
  .slide-photo img {
    height: 32vh;
  }
  .slide-copy h2 {
    font-size: 34px;
  }
  .slide-copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .slide-no-photo {
    display: none;
  }
  .presentation-controls {
    height: 78px;
    padding: 18px 6vw;
    position: sticky;
    bottom: 0;
    background: #0d1629f5;
    font-size: 9px;
  }
  .presentation-controls > span {
    display: none;
  }
  .presentation-controls button {
    font-size: 11px;
  }
  .evidence-slide figure {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .evidence-slide img {
    height: 44vh;
  }
  .evidence-slide h2 {
    font-size: 27px;
  }
  .evidence-slide figcaption > span {
    margin-top: 15px;
  }
  .presentation-directory th,
  .presentation-directory td {
    font-size: 9px;
    padding: 10px;
  }
  .empty-slide h2 {
    font-size: 34px;
  }
  .empty-slide > p:last-child {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
    animation: none !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 16mm;
  }
  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f0f0ea;
    --ink: #0d1629;
    --muted: #4f5764;
    --line: #d8dad5;
    --accent: #1261ed;
  }
  .sidebar,
  .topbar,
  .app-footer,
  .page-heading,
  .export-form,
  .view-as,
  .skip {
    display: none !important;
  }
  .app {
    margin: 0;
  }
  .main {
    padding: 0;
    max-width: none;
  }
  .report-document {
    padding: 0;
    border: 0;
    max-width: none;
  }
  .report-document > h1 {
    font-size: 30pt;
  }
  .report-header {
    padding-bottom: 20px;
    margin-bottom: 25px;
  }
  .report-header .logo-light {
    display: block !important;
  }
  .report-header .logo-dark {
    display: none !important;
  }
  .report-photos img {
    max-height: 95mm;
  }
  .report-highlight {
    break-inside: avoid-page;
  }
  .metric {
    box-shadow: none;
  }
  .report-document .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .metric strong {
    font-size: 20pt;
  }
  .metric > span {
    font-size: 8pt;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  table {
    font-size: 8pt;
  }
  th,
  td {
    padding: 7px;
    overflow-wrap: anywhere;
  }
  thead {
    display: table-header-group;
  }
  tr,
  figure {
    break-inside: avoid-page;
  }
  a {
    color: inherit;
  }
  .report-document .hint {
    font-size: 8pt;
  }
  .report-footer {
    font-size: 7pt;
  }
}
.presentation-ventures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 35px;
}
.presentation-ventures > div {
  border-top: 1px solid #ffffff25;
  padding-top: 12px;
}
.presentation-ventures b {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.presentation-ventures span {
  font-size: 10px;
  color: #c6cfdc;
}
@media (max-width: 720px) {
  .presentation-ventures {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .presentation-ventures b {
    font-size: 12px;
  }
  .presentation-ventures span {
    font-size: 9px;
  }
}
