:root {
  color-scheme: light;
  --bg: #fafafa;
  --bg-accent: #eef2f7;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --text: #1a202c;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #0a0f1e;
  --primary-soft: #e2e8f0;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius-card: 6px;
  --radius-control: 4px;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #e2e8f0;
}

*::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

.shell {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

html[data-site="labs"] .shell {
  width: 100%;
  padding: 0;
}

.labs-site {
  --labs-ink: #071018;
  --labs-muted: #64727f;
  --labs-paper: #f7f8f5;
  --labs-panel: rgba(255, 255, 255, 0.78);
  --labs-border: rgba(7, 16, 24, 0.12);
  --labs-green: #00a878;
  --labs-cyan: #1a8fb8;
  --labs-amber: #c87921;
  --labs-red: #d44737;
  width: 100%;
  min-height: 100vh;
  margin-left: 0;
  overflow: hidden;
  color: var(--labs-ink);
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(26, 143, 184, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #fbfbf7 0%, var(--labs-paper) 48%, #eef1ee 100%);
}

.labs-site[hidden],
.oncology-app[hidden] {
  display: none;
}

.labs-nav {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 54px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(249, 250, 247, 0.82);
  box-shadow: 0 24px 70px rgba(7, 16, 24, 0.12);
  backdrop-filter: blur(18px);
}

.labs-mark,
.labs-nav-links,
.labs-nav-action,
.labs-button,
.labs-product a {
  text-decoration: none;
}

.labs-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--labs-ink);
  font-size: 13px;
  font-weight: 800;
}

.labs-mark-symbol {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(7, 16, 24, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(0, 168, 120, 0.95), rgba(26, 143, 184, 0.78)),
    #ffffff;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.42);
}

.labs-nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(7, 16, 24, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.labs-nav-links a,
.labs-nav-action {
  color: #33424c;
  font-size: 12px;
  font-weight: 700;
}

.labs-nav-links a {
  padding: 9px 12px;
  border-radius: 6px;
}

.labs-nav-links a:hover {
  background: rgba(7, 16, 24, 0.06);
  color: #071018;
}

.labs-nav-action {
  justify-self: end;
  padding: 11px 14px;
  border: 1px solid rgba(7, 16, 24, 0.14);
  border-radius: 6px;
  background: #071018;
  color: #ffffff;
}

.labs-hero {
  position: relative;
  min-height: min(820px, 100vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 132px max(24px, calc((100vw - 1180px) / 2)) 42px;
  isolation: isolate;
}

.labs-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #d9e0df;
}

.labs-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(247, 248, 245, 0.98) 0%,
      rgba(247, 248, 245, 0.9) 32%,
      rgba(247, 248, 245, 0.24) 74%,
      rgba(247, 248, 245, 0.1) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247, 248, 245, 0.2) 0%,
      rgba(247, 248, 245, 0.88) 92%
    );
}

.labs-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: labsHeroDrift 18s ease-in-out infinite alternate;
}

.labs-hero-content {
  width: min(760px, 100%);
  max-width: calc(100vw - 48px);
  padding-top: 48px;
}

.labs-kicker {
  color: #52606a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.labs-hero h1,
.labs-section h2,
.labs-founder h2 {
  margin: 0;
  color: var(--labs-ink);
  letter-spacing: 0;
}

.labs-hero h1 {
  max-width: 13ch;
  margin-top: 18px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.96;
  font-weight: 800;
}

.labs-hero-copy {
  width: min(680px, 100%);
  max-width: calc(100vw - 48px);
  margin-top: 28px;
  color: #34434e;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.labs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.labs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.labs-button:hover {
  transform: translateY(-1px);
}

.labs-button-primary {
  border: 1px solid #071018;
  background: #071018;
  color: #ffffff;
}

.labs-button-secondary {
  border: 1px solid rgba(7, 16, 24, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: #071018;
}

.labs-hero-proof {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  border: 1px solid rgba(7, 16, 24, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.12);
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(7, 16, 24, 0.12);
}

.labs-hero-proof div {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.labs-hero-proof span,
.labs-product-topline,
.labs-method-grid span {
  font-size: 11px;
  font-weight: 800;
  color: var(--labs-cyan);
  text-transform: uppercase;
}

.labs-hero-proof strong {
  font-size: 17px;
  line-height: 1.2;
}

.labs-hero-proof p {
  color: #5e6d78;
  font-size: 13px;
  line-height: 1.45;
}

.labs-marquee {
  display: flex;
  gap: 1px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: #071018;
  overflow: auto;
}

.labs-marquee span {
  min-width: max-content;
  padding: 16px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce8eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.labs-section {
  padding: 104px max(24px, calc((100vw - 1180px) / 2));
}

.labs-section-header {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.labs-section h2,
.labs-founder h2 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 800;
}

.labs-section-header > p:last-child,
.labs-enterprise-copy > p,
.labs-founder > p {
  color: var(--labs-muted);
  font-size: 17px;
  line-height: 1.55;
}

.labs-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.labs-product {
  min-height: 330px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--labs-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(7, 16, 24, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.labs-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(7, 16, 24, 0.11);
}

.labs-product-featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(7, 16, 24, 0.96), rgba(18, 36, 48, 0.92)),
    #071018;
  color: #ffffff;
}

.labs-product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #82909a;
}

.labs-product-featured .labs-product-topline {
  color: rgba(255, 255, 255, 0.68);
}

.labs-product-state {
  color: var(--labs-green);
}

.labs-product h3,
.labs-method-grid h3 {
  margin: 0;
  color: inherit;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.labs-product p,
.labs-method-grid p,
.labs-capability-grid span {
  margin: 0;
  color: #5e6d78;
  font-size: 14px;
  line-height: 1.55;
}

.labs-product-featured p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.labs-product a {
  justify-self: start;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
}

.labs-method {
  background: #ffffff;
}

.labs-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--labs-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--labs-border);
}

.labs-method-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  background: #fbfbf7;
}

.labs-enterprise {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
  background: #071018;
  color: #ffffff;
}

.labs-enterprise .labs-kicker,
.labs-enterprise h2 {
  color: #ffffff;
}

.labs-enterprise-copy {
  display: grid;
  gap: 16px;
}

.labs-enterprise-copy > p {
  color: rgba(255, 255, 255, 0.68);
}

.labs-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.labs-capability-grid div {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.labs-capability-grid strong {
  color: #ffffff;
  font-size: 18px;
}

.labs-capability-grid span {
  color: rgba(255, 255, 255, 0.66);
}

.labs-founder {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
  background: #f2f4f1;
  border-top: 1px solid rgba(7, 16, 24, 0.1);
}

.labs-founder > p {
  align-self: start;
}

.labs-founder .labs-button {
  justify-self: start;
  grid-column: 1 / -1;
}

@keyframes labsHeroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .labs-hero-media img {
    animation: none;
  }

  .labs-button,
  .labs-product {
    transition: none;
  }
}

@media (max-width: 980px) {
  .labs-nav {
    grid-template-columns: 1fr auto;
  }

  .labs-nav-links {
    display: none;
  }

  .labs-hero {
    min-height: auto;
    padding-top: 120px;
  }

  .labs-hero-media::after {
    background:
      linear-gradient(
        180deg,
        rgba(247, 248, 245, 0.96) 0%,
        rgba(247, 248, 245, 0.82) 46%,
        rgba(247, 248, 245, 0.96) 100%
      ),
      linear-gradient(
        90deg,
        rgba(247, 248, 245, 0.94),
        rgba(247, 248, 245, 0.45)
      );
  }

  .labs-hero h1 {
    max-width: 10ch;
  }

  .labs-hero-content,
  .labs-hero-copy,
  .labs-hero-actions,
  .labs-hero h1 {
    max-width: min(620px, calc(100vw - 72px));
  }

  .labs-hero-actions,
  .labs-button {
    width: min(420px, 100%);
  }

  .labs-hero-proof,
  .labs-product-grid,
  .labs-method-grid,
  .labs-enterprise,
  .labs-capability-grid,
  .labs-founder {
    grid-template-columns: 1fr;
  }

  .labs-product-featured {
    grid-column: auto;
  }

  .labs-section,
  .labs-founder {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 620px) {
  .labs-nav {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 48px;
    gap: 10px;
  }

  .labs-mark {
    font-size: 12px;
  }

  .labs-nav-action {
    padding: 10px 11px;
    font-size: 11px;
  }

  .labs-hero {
    padding: 98px 18px 28px;
  }

  .labs-hero-content,
  .labs-hero-copy,
  .labs-hero-actions,
  .labs-hero h1 {
    max-width: calc(100vw - 72px);
  }

  .labs-hero h1 {
    font-size: clamp(42px, 14vw, 60px);
  }

  .labs-hero-copy {
    font-size: 17px;
  }

  .labs-hero-actions,
  .labs-button {
    width: 100%;
  }

  .labs-hero-proof {
    margin-top: 48px;
  }

  .labs-section,
  .labs-founder {
    padding-left: 18px;
    padding-right: 18px;
  }

  .labs-section h2,
  .labs-founder h2 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .labs-product,
  .labs-method-grid article,
  .labs-capability-grid div {
    min-height: auto;
    padding: 18px;
  }
}

.labs-site {
  --labs-ink: #111111;
  --labs-muted: rgba(17, 17, 17, 0.48);
  --labs-faint: rgba(17, 17, 17, 0.1);
  --labs-paper: #ffffff;
  --labs-soft: #f4f4f1;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: var(--labs-ink);
  background: var(--labs-paper);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.labs-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    linear-gradient(90deg, var(--labs-faint) 1px, transparent 1px),
    linear-gradient(0deg, var(--labs-faint) 1px, transparent 1px);
  background-size: 25vw 25vh;
}

.labs-site > * {
  position: relative;
  z-index: 1;
}

.labs-site[hidden],
.oncology-app[hidden] {
  display: none;
}

.labs-nav {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  width: min(1312px, calc(100% - 64px));
  min-height: 70px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  border: 2px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.labs-mark,
.labs-nav-links a,
.labs-nav-action,
.labs-route,
.labs-footer a {
  color: inherit;
  text-decoration: none;
}

.labs-mark {
  justify-self: start;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.labs-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 42px);
  padding: 0;
  border: 0;
  background: transparent;
}

.labs-nav-links a,
.labs-nav-action,
.labs-kicker,
.labs-entry-meta,
.labs-thesis-bar,
.labs-thesis-index,
.labs-route-bottom,
.labs-proof-header,
.labs-proof-grid span,
.labs-faq-header,
.labs-faq-list summary span,
.labs-footer {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.labs-nav-links a {
  padding: 0;
  border-radius: 0;
  color: rgba(17, 17, 17, 0.5);
  font-size: 13px;
  transition: color 180ms ease;
}

.labs-nav-links a:hover {
  background: transparent;
  color: var(--labs-ink);
}

.labs-nav-action {
  justify-self: end;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: transparent;
  color: rgba(17, 17, 17, 0.7);
  font-size: 13px;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.labs-nav-action:hover {
  border-color: #6c6e6b;
  background: #6c6e6b;
  color: #ffffff;
}

.labs-entry {
  position: relative;
  height: 100svh;
  min-height: 720px;
  display: block;
  padding: 148px max(64px, calc((100vw - 1312px) / 2)) 5vh;
  background: #ffffff;
}

.labs-entry-meta {
  position: absolute;
  top: 118px;
  right: max(64px, calc((100vw - 1312px) / 2));
  display: grid;
  grid-template-columns: repeat(4, auto);
  margin: 0;
  color: rgba(17, 17, 17, 0.38);
  font-size: 11px;
  line-height: 1.6;
}

.labs-entry-meta p {
  min-width: 120px;
  padding-left: 20px;
  padding-right: 28px;
  border-left: 1px solid rgba(17, 17, 17, 0.1);
}

.labs-entry-claim {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  display: grid;
  gap: 18px;
  margin: 0;
}

.labs-entry-claim h1 {
  max-width: 12ch;
  margin: 0;
  color: rgba(17, 17, 17, 0.88);
  font-size: clamp(46px, 6vw, 94px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: 0;
}

.labs-entry-claim p:last-child {
  width: min(680px, 100%);
  margin: 0;
  color: rgba(17, 17, 17, 0.54);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.labs-entry-wordmark {
  position: absolute;
  left: max(64px, calc((100vw - 1312px) / 2));
  bottom: clamp(14px, 2.5vh, 28px);
  z-index: 0;
  max-width: none;
  display: flex;
  align-items: flex-end;
  margin: 0;
  color: rgba(17, 17, 17, 0.86);
  font-size: clamp(112px, 16vw, 224px);
  line-height: 0.78;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.labs-entry-wordmark span {
  display: inline-block;
  opacity: 0;
  animation: labsFlickerIn 900ms forwards;
}

.labs-entry-wordmark span:nth-child(1) {
  animation-delay: 160ms;
}

.labs-entry-wordmark span:nth-child(2) {
  animation-delay: 440ms;
}

.labs-entry-wordmark span:nth-child(3) {
  animation-delay: 280ms;
}

.labs-entry-wordmark span:nth-child(4) {
  animation-delay: 700ms;
}

.labs-entry-wordmark span:nth-child(5) {
  animation-delay: 520ms;
}

.labs-entry-wordmark span:nth-child(6) {
  animation-delay: 880ms;
}

.labs-entry-wordmark span:nth-child(7) {
  animation-delay: 620ms;
}

.labs-thesis {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #ffffff;
}

.labs-thesis-alt {
  background: #fbfbf8;
}

.labs-thesis-bar,
.labs-proof-header,
.labs-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(28px, calc((100vw - 1312px) / 2));
  color: rgba(17, 17, 17, 0.42);
  font-size: 12px;
}

.labs-thesis-bar span:nth-child(2),
.labs-proof-header span:nth-child(2),
.labs-faq-header span:nth-child(2) {
  color: rgba(17, 17, 17, 0.58);
}

.labs-thesis-index {
  position: absolute;
  left: max(28px, calc((100vw - 1312px) / 2));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  color: rgba(17, 17, 17, 0.2);
  font-size: 15px;
}

.labs-thesis-index span {
  transition: color 220ms ease;
}

.labs-thesis-index .is-active {
  color: rgba(17, 17, 17, 0.6);
}

.labs-thesis-copy {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 80px max(64px, calc((100vw - 1312px) / 2));
  text-align: center;
}

.labs-kicker {
  color: rgba(17, 17, 17, 0.36);
  font-size: 12px;
  line-height: 1;
}

.labs-thesis h2,
.labs-pipeline h2,
.labs-faq-intro h2 {
  max-width: 980px;
  margin: 0;
  color: rgba(17, 17, 17, 0.86);
  font-size: clamp(34px, 5vw, 74px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
}

.labs-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 84px max(24px, calc((100vw - 1312px) / 2));
  background: #ffffff;
}

.labs-route {
  position: relative;
  min-height: min(640px, 70vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(28px, 5vw, 48px);
  transition:
    background-color 420ms ease,
    color 420ms ease,
    transform 220ms ease;
}

.labs-route:hover {
  transform: translateY(-4px);
}

.labs-route-dark {
  background: #1b1b1f;
  color: rgba(255, 255, 255, 0.9);
}

.labs-route-light {
  background: #f3f3f0;
  color: rgba(17, 17, 17, 0.86);
}

.labs-route-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.labs-route h3 {
  max-width: 440px;
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
}

.labs-route-top > span {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.35;
}

.labs-route p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0;
  color: currentColor;
  opacity: 0.42;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
}

.labs-venture-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 560px;
  margin: 8px 0 0;
  padding: 0;
  color: currentColor;
  list-style: none;
  opacity: 0.54;
}

.labs-venture-list li {
  padding-top: 10px;
  border-top: 1px solid currentColor;
  font-size: 13px;
  line-height: 1.35;
}

.labs-route-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  color: currentColor;
  opacity: 0.28;
  font-size: 12px;
}

.labs-route-figure {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.12;
}

.labs-route-figure span {
  position: absolute;
  border: 1px solid currentColor;
}

.labs-route-diamond span {
  width: clamp(160px, 28vw, 420px);
  height: clamp(160px, 28vw, 420px);
  transform: rotate(45deg);
}

.labs-route-diamond span:nth-child(2) {
  width: clamp(110px, 20vw, 300px);
  height: clamp(110px, 20vw, 300px);
}

.labs-route-diamond span:nth-child(3) {
  width: clamp(60px, 12vw, 160px);
  height: clamp(60px, 12vw, 160px);
}

.labs-route-hex span {
  width: clamp(160px, 28vw, 420px);
  height: clamp(160px, 28vw, 420px);
  clip-path: polygon(50% 0, 94% 26%, 94% 74%, 50% 100%, 6% 74%, 6% 26%);
}

.labs-route-hex span:nth-child(2) {
  width: clamp(105px, 20vw, 280px);
  height: clamp(105px, 20vw, 280px);
}

.labs-route-hex span:nth-child(3) {
  width: clamp(58px, 12vw, 150px);
  height: clamp(58px, 12vw, 150px);
}

.labs-route-hex span:nth-child(4) {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
}

.labs-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding: 110px max(28px, calc((100vw - 1312px) / 2));
  background: #ffffff;
}

.labs-pipeline-copy {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 26px;
}

.labs-pipeline-copy p:last-child {
  max-width: 540px;
  margin: 0;
  color: rgba(17, 17, 17, 0.5);
  font-size: 18px;
  line-height: 1.65;
}

.labs-pipeline-map {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 34px;
}

.labs-pipeline-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 16%,
      rgba(17, 17, 17, 0.14) 16.2%,
      transparent 16.4%,
      transparent 50%,
      rgba(17, 17, 17, 0.14) 50.2%,
      transparent 50.4%,
      transparent 83%,
      rgba(17, 17, 17, 0.14) 83.2%,
      transparent 83.4%
    ),
    linear-gradient(
      0deg,
      transparent 16%,
      rgba(17, 17, 17, 0.14) 16.2%,
      transparent 16.4%,
      transparent 50%,
      rgba(17, 17, 17, 0.14) 50.2%,
      transparent 50.4%,
      transparent 83%,
      rgba(17, 17, 17, 0.14) 83.2%,
      transparent 83.4%
    );
}

.pipeline-node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(17, 17, 17, 0.56);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 12px;
  text-transform: uppercase;
  animation: labsPulse 4.8s ease-in-out infinite;
}

.pipeline-node:nth-child(2) {
  animation-delay: 400ms;
}

.pipeline-node:nth-child(3) {
  animation-delay: 800ms;
}

.pipeline-node:nth-child(4) {
  animation-delay: 1200ms;
}

.pipeline-node:nth-child(5) {
  animation-delay: 1600ms;
}

.pipeline-node:nth-child(6) {
  animation-delay: 2000ms;
}

.labs-proof {
  padding: 0 max(28px, calc((100vw - 1312px) / 2)) 110px;
  background: #ffffff;
}

.labs-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  border-left: 1px solid rgba(17, 17, 17, 0.1);
}

.labs-proof-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.labs-proof-grid article {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 32px;
  border-right: 1px solid rgba(17, 17, 17, 0.1);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.labs-proof-grid h3 {
  margin: 0;
  color: rgba(17, 17, 17, 0.86);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 400;
}

.labs-proof-grid p {
  margin: 0;
  color: rgba(17, 17, 17, 0.5);
  font-size: 15px;
  line-height: 1.65;
}

.labs-faq {
  padding: 0 max(28px, calc((100vw - 1312px) / 2)) 120px;
  background: #ffffff;
}

.labs-faq-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 72px;
  align-items: end;
  margin: 42px 0 72px;
}

.labs-faq-intro p {
  max-width: 480px;
  margin: 0;
  color: rgba(17, 17, 17, 0.46);
  font-size: 17px;
  line-height: 1.7;
}

.labs-faq-list {
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.labs-faq-list details {
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.labs-faq-list summary {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  padding: 28px 0;
  color: rgba(17, 17, 17, 0.86);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 400;
  list-style: none;
  cursor: pointer;
}

.labs-faq-list summary::-webkit-details-marker {
  display: none;
}

.labs-faq-list summary::after {
  content: "+";
  margin-left: auto;
  color: rgba(17, 17, 17, 0.42);
  font-size: 34px;
  line-height: 0.8;
  font-weight: 300;
  transition: transform 260ms ease;
}

.labs-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.labs-faq-list summary span {
  flex: 0 0 auto;
  padding-top: 6px;
  color: rgba(17, 17, 17, 0.32);
  font-size: 12px;
}

.labs-faq-list details p {
  max-width: 860px;
  margin: 0;
  padding: 0 70px 34px 64px;
  color: rgba(17, 17, 17, 0.52);
  font-size: 17px;
  line-height: 1.7;
}

.labs-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 32px;
  padding: 34px 28px 46px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(244, 244, 241, 0.62);
  color: rgba(17, 17, 17, 0.46);
  font-size: 12px;
}

.labs-footer a:hover {
  color: var(--labs-ink);
}

@keyframes labsFlickerIn {
  0%,
  40% {
    opacity: 0;
  }

  48% {
    opacity: 1;
  }

  58% {
    opacity: 0.28;
  }

  72%,
  100% {
    opacity: 1;
  }
}

@keyframes labsPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .labs-entry-wordmark span,
  .pipeline-node {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .labs-nav {
    top: 0;
    left: 0;
    width: 100%;
    min-height: 58px;
    transform: none;
    grid-template-columns: 1fr auto;
    padding: 16px 20px;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .labs-nav-links {
    display: none;
  }

  .labs-nav-action {
    min-width: 112px;
  }

  .labs-entry {
    position: relative;
    min-height: 760px;
    padding: 92px 20px 44px;
  }

  .labs-entry-meta {
    position: static;
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
    margin-bottom: 34px;
    padding-top: 56px;
  }

  .labs-entry-meta p {
    min-width: 0;
    padding-right: 12px;
  }

  .labs-entry-claim {
    width: min(620px, 100%);
    margin-bottom: 138px;
  }

  .labs-entry-claim h1 {
    max-width: 11ch;
    font-size: clamp(38px, 11vw, 62px);
  }

  .labs-entry-claim p:last-child {
    font-size: 16px;
  }

  .labs-entry-wordmark {
    position: absolute;
    left: 18px;
    right: auto;
    bottom: 34px;
    display: flex;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    align-self: auto;
    font-size: clamp(70px, 21vw, 100px);
    line-height: 0.8;
    transform: none;
  }

  .labs-thesis {
    min-height: 72svh;
  }

  .labs-thesis-bar,
  .labs-proof-header,
  .labs-faq-header {
    padding: 24px 20px;
    font-size: 10px;
  }

  .labs-thesis-index {
    left: 20px;
    font-size: 13px;
  }

  .labs-thesis-copy {
    padding: 70px 34px 70px 54px;
  }

  .labs-routes,
  .labs-pipeline,
  .labs-proof-grid,
  .labs-faq-intro {
    grid-template-columns: 1fr;
  }

  .labs-routes,
  .labs-pipeline {
    padding-left: 20px;
    padding-right: 20px;
  }

  .labs-route {
    min-height: 480px;
  }

  .labs-pipeline-copy {
    position: static;
  }

  .labs-pipeline-map {
    min-height: 380px;
    padding: 0;
  }

  .labs-proof,
  .labs-faq {
    padding-left: 20px;
    padding-right: 20px;
  }

  .labs-faq-intro {
    gap: 24px;
    margin-bottom: 42px;
  }

  .labs-faq-list summary {
    gap: 18px;
  }

  .labs-faq-list details p {
    padding-left: 42px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .labs-nav-action {
    display: none;
  }

  .labs-mark {
    font-size: 19px;
  }

  .labs-thesis-bar span:nth-child(2),
  .labs-proof-header span:nth-child(2),
  .labs-faq-header span:nth-child(2) {
    display: none;
  }

  .labs-route-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .labs-entry-claim {
    margin-bottom: 116px;
  }

  .labs-venture-list {
    grid-template-columns: 1fr;
  }

  .labs-pipeline-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

.landing-shell {
  min-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: minmax(360px, 2fr) minmax(420px, 3fr);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  overflow: hidden;
  background: #fafafa;
}

.landing-brand {
  background: #0a0f1e;
  color: #ffffff;
}

.landing-brand-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}

.landing-wordmark-wrap {
  display: grid;
  gap: 8px;
}

.landing-wordmark {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.landing-wordmark-rule {
  width: 32px;
  height: 1px;
  background: #1e3a5f;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(40px, 5vw, 48px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

h2 {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.4;
  color: #94a3b8;
}

.grid {
  display: grid;
  gap: 10px;
}

.landing-copy {
  max-width: 460px;
  margin: auto 0;
}

.landing-proof-points {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

.landing-access {
  background: #fafafa;
}

.landing-access-inner {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.access-form {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
}

[data-view-section] {
  display: grid;
  gap: 10px;
}

#clinician-view-section {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.clinician-mode-shell {
  display: grid;
  gap: 12px;
}

.clinician-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #1e3a5f;
  border-radius: 999px;
  background: transparent;
}

.mode-toggle-button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-toggle-button.is-active {
  background: #1e3a5f;
  color: #ffffff;
  border-color: #1e3a5f;
  box-shadow: none;
}

.clinician-workspace {
  display: grid;
  gap: 10px;
  grid-template-columns: 200px minmax(480px, 1fr) 420px;
  align-items: start;
}

.clinician-cohort-workspace {
  display: grid;
  gap: 10px;
}

.clinician-cohort-panel {
  display: grid;
  gap: 10px;
}

.clinician-cohort-panel .surface-display {
  white-space: normal;
}

.cohort-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.clinician-primary,
.clinician-secondary,
.clinician-cohort-panel {
  align-self: start;
}

.clinician-sidebar {
  align-self: start;
  position: sticky;
  top: 18px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.clinician-sidebar h2 {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.clinician-sidebar .card-copy {
  margin-top: 0;
  margin-bottom: 10px;
  max-width: none;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.clinician-primary {
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.clinician-secondary {
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.clinician-patient-picker {
  min-width: 220px;
  flex: 1 1 240px;
}

.clinician-inline-actions {
  align-items: end;
}

#admin-view-section {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.card-wide {
  width: 100%;
}

.workflow-card {
  display: grid;
  gap: 12px;
}

.workflow-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workflow-stack {
  gap: 12px;
}

.workflow-section {
  display: grid;
  gap: 8px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.workflow-actions {
  display: grid;
  gap: 8px;
}

.workflow-optional {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
  padding: 8px 10px;
}

.workflow-optional summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.workflow-optional[open] summary {
  margin-bottom: 8px;
}

.card-copy {
  max-width: 60ch;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.access-card-header {
  display: grid;
  gap: 0;
  margin-bottom: 4px;
}

.access-card-header h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a202c;
}

.stack {
  display: grid;
  gap: 8px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

label span {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.access-form label span {
  margin-bottom: 6px;
  color: #64748b;
}

input,
select,
textarea,
button {
  font: inherit;
}

.access-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  color: #1a202c;
  padding: 0 12px;
  font-size: 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.access-form input:focus {
  outline: none;
  border-color: #0a0f1e;
  box-shadow: 0 0 0 3px rgba(10, 15, 30, 0.08);
}

.sign-in-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: #0a0f1e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.sign-in-button:hover {
  opacity: 0.92;
}

.access-footnote {
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

#auth-status {
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #991b1b;
}

.workspace-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 16px;
  background: #0a0f1e;
  border-color: #0a0f1e;
}

.workspace-topbar-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-topbar-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}

.workspace-topbar-title-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.workspace-topbar-divider,
.workspace-topbar-actions-divider {
  width: 1px;
  height: 18px;
  background: #1e3a5f;
}

.workspace-topbar-title {
  font-size: 13px;
  font-weight: 400;
  color: #94a3b8;
}

.workspace-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.workspace-signout {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.workspace-signout:hover {
  text-decoration: underline;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--text);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  min-height: 116px;
  resize: vertical;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
}

button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

button:hover {
  border-color: var(--primary);
  background: var(--bg-accent);
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.button-primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

button:active {
  transform: translateY(1px);
}

.surface-display,
pre {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-subtle);
  padding: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.summary-display,
.alerts-display {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text);
}

.summary-display {
  margin-top: 0;
  padding: 8px 20px 12px;
}

.alerts-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.patient-list-display,
.timeline-display {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text);
}

.patient-list-stack {
  display: grid;
  gap: 0;
  max-height: 70vh;
  overflow: auto;
}

.patient-list-item {
  width: 100%;
  display: grid;
  gap: 4px;
  justify-items: start;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  transition: all 0.15s ease;
  color: #9ca3af;
}

.patient-list-item:hover {
  background: #f1f5f9;
}

.patient-list-item:has(.patient-alert-badge) .patient-list-name {
  color: #374151;
  font-weight: 600;
}

.patient-list-item:has(.patient-alert-badge) .patient-list-id {
  color: #6b7280;
}

.patient-list-id-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-list-item.is-selected {
  background: #ffffff;
  box-shadow: inset 2px 0 0 #0a0f1e;
}

.patient-list-item.is-selected .patient-list-name {
  color: #111827;
  font-weight: 600;
}

.patient-list-item.is-selected .patient-list-id {
  color: #64748b;
}

.patient-list-id {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
}

.patient-list-name {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.25;
}

.patient-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: auto;
  border-radius: 999px;
  background: #dc6b6b;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

.clinical-timeline {
  position: relative;
}

.clinical-timeline-list {
  display: grid;
  gap: 8px;
}

.clinical-event {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-left: 10px;
}

.clinical-event::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}

.clinical-event::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.clinical-event-key::after {
  background: var(--primary);
}

.clinical-event-date {
  font-size: 11px;
  color: var(--text-soft);
  padding-top: 2px;
}

.clinical-event-body {
  display: grid;
  gap: 2px;
}

.clinical-event-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.clinical-event-summary {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.timeline-more {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.timeline-more summary,
.alert-details-group summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.not-indicated-group summary {
  cursor: pointer;
}

.alert-details-group {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.timeline-grid,
.timeline-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.timeline-panels {
  margin-top: 10px;
}

.timeline-panels-compact {
  margin-top: 0;
}

.timeline-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
}

.timeline-panel h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.summary-stack,
.alert-stack {
  display: grid;
  gap: 8px;
}

.summary-header,
.alert-card-header,
.surface-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.summary-header-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.surface-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.surface-title {
  margin-top: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.surface-subtitle {
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
  white-space: normal;
}

.surface-section {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.summary-stack > .surface-section:last-child {
  margin-bottom: 0;
}

.rail-section-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.rail-section-header {
  display: grid;
  gap: 0;
}

.rail-section-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.rail-section-copy,
.rail-section-count {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.rail-section-count {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 1px 6px;
  border: 0;
  border-radius: 4px;
  background: #0a0f1e;
  color: #ffffff;
  font-size: 10px;
}

.clinical-summary-block {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-width: 0;
  flex: 0 0 auto;
}

.alerts-section-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

.clinical-summary-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.clinical-summary-item {
  color: #1a202c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.context-grid {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.context-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.context-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.context-label {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.context-value-group {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.context-value {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}

.context-meta {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.therapy-options-section {
  margin: 16px 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.therapy-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.therapy-options-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nccn-version-badge {
  font-size: 10px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.position-breadcrumb {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.35;
}

.position-breadcrumb span + span::before {
  content: " › ";
  color: #cbd5e1;
}

.therapy-option {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.therapy-option:last-child {
  border-bottom: none;
}

.therapy-option-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0;
  line-height: 1.3;
}

.therapy-option-status-pill {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #166534;
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: 999px;
}

.therapy-option-reason {
  font-size: 12px;
  color: #475569;
  margin-left: 16px;
  margin-top: 0;
  line-height: 1.35;
}

.therapy-option-reason-pending {
  font-style: italic;
}

.therapy-option-ref {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 16px;
  margin-top: 0;
  opacity: 1;
}

.therapy-option-blocked-reason {
  font-size: 11px;
  color: #991b1b;
  margin-left: 16px;
  margin-top: 0;
}

.option-indicator-indicated {
  color: #0d9488;
}

.option-indicator-fulfilled {
  color: #16a34a;
}

.option-indicator-eligible {
  color: #3b82f6;
}

.option-indicator-pending {
  color: #94a3b8;
}

.option-indicator-blocked {
  color: #d97706;
}

.option-indicator-not-indicated {
  color: #94a3b8;
}

.not-indicated-toggle {
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: underline;
}

.surface-section-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.surface-body,
.surface-meta,
.alert-meta {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.biomarker-implication {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 8px 12px;
  background: #f0fdf4;
  border-left: 3px solid #0d9488;
  border-radius: 0 4px 4px 0;
}

.biomarker-implication-dot {
  color: #0d9488;
  font-size: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.biomarker-implication-text {
  font-size: 12px;
  color: #134e4a;
  font-style: italic;
  line-height: 1.5;
}

.meta-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 10px 12px;
}

.meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.meta-value {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #1a202c;
  font-weight: 600;
}

.meta-value.is-positive {
  color: #0f766e;
}

.meta-value.is-negative {
  color: #475569;
}

.meta-value.is-unknown {
  color: #94a3b8;
  font-style: italic;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.badge-neutral {
  color: #475467;
  background: #f8fafc;
  border-color: var(--line);
}

.badge-danger {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.badge-warning {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.badge-attention {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.badge-success {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.alert-card {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 6px;
  background: var(--surface);
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.alert-highlighted {
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.18),
    0 6px 18px rgba(15, 23, 42, 0.04);
  border-color: rgba(37, 99, 235, 0.3);
}

.cohort-groups {
  display: grid;
  gap: 8px;
  white-space: normal;
}

.cohort-group {
  display: grid;
  gap: 8px;
  white-space: normal;
}

.cohort-group .alert-stack {
  gap: 8px;
}

.cohort-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cohort-group-toggle {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 8px 10px;
  text-align: left;
}

.cohort-group-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cohort-group-title-danger {
  color: #b42318;
}

.cohort-group-title-warning {
  color: #b54708;
}

.cohort-group-title-attention {
  color: #a15c07;
}

.cohort-group-chevron {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.cohort-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.cohort-alert-card {
  padding: 0;
  white-space: normal;
}

.cohort-alert-button {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  white-space: normal;
}

.cohort-patient-context {
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.cohort-alert-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.cohort-alert-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cohort-alert-meta-inline {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.due-chip {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.due-chip-normal {
  background: #f3f4f6;
  color: #374151;
}

.due-chip-soon {
  background: #ffedd5;
  color: #9a3412;
}

.due-chip-overdue {
  background: #fee2e2;
  color: #991b1b;
}

.cohort-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cohort-stat-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.cohort-stat-value {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0a0f1e;
}

.cohort-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.cohort-stat-neutral .cohort-stat-value {
  color: var(--text);
}

.cohort-stat-high .cohort-stat-value {
  color: #b42318;
}

.cohort-stat-overdue .cohort-stat-value {
  color: #7f1d1d;
}

.cohort-stat-due-soon .cohort-stat-value {
  color: #b54708;
}

.cohort-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cohort-filter-button {
  border-radius: 4px;
  padding: 6px 10px;
  background: #f1f5f9;
  color: #475569;
  transition: all 0.15s ease;
}

.cohort-filter-button.is-active {
  border-color: #0a0f1e;
  background: #0a0f1e;
  color: #ffffff;
}

.cohort-table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.cohort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cohort-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cohort-table-status-column {
  white-space: nowrap;
}

.cohort-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cohort-table-row {
  cursor: pointer;
}

.cohort-table-row:hover {
  background: #f8fafc;
}

.cohort-table-patient {
  font-weight: 600;
  color: var(--text);
}

.alert-danger {
  border-left-color: var(--danger);
  background: #ffffff;
}

.alert-warning {
  border-left-color: var(--warning);
  background: #ffffff;
}

.alert-neutral {
  border-left-color: #65a30d;
}

.alert-title {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}

.alert-reason {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}

.decision-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 8px 0;
  font-size: 13px;
  line-height: 1.35;
  flex-wrap: wrap;
}

.decision-action {
  color: #1a202c;
  font-weight: 600;
}

.decision-separator {
  color: #94a3b8;
}

.decision-status {
  font-weight: 500;
}

.decision-status-ready {
  color: #065f46;
}

.decision-status-pending {
  color: #92400e;
}

.decision-status-blocked {
  color: #991b1b;
}

.decision-readiness-details {
  margin: 6px 0 0;
}

.decision-readiness-details summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.alert-card-body {
  display: grid;
  gap: 6px;
}

.alerts-section-card .alert-stack {
  gap: 8px;
}

.escalation-window {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.escalation-window-danger {
  border-color: #fecaca;
  background: #fff5f5;
}

.escalation-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.progress-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #dc2626 100%);
  min-width: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: width 0.15s ease;
}

.readiness-block {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.readiness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.readiness-confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.readiness-confidence-label {
  font-size: 11px;
  color: var(--text-muted);
}

.readiness-list {
  display: grid;
  gap: 4px;
}

.readiness-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.readiness-icon {
  flex: 0 0 auto;
}

.readiness-label {
  color: var(--text);
}

.readiness-reason {
  color: var(--text-muted);
  font-size: 11px;
}

.readiness-reason-documented {
  color: #b42318;
}

.readiness-reason-schema {
  color: var(--text-muted);
  font-style: italic;
}

.decision-readiness-block {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}
.readiness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.readiness-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}
.readiness-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.confidence-high {
  background: #d1fae5;
  color: #065f46;
}
.confidence-medium {
  background: #fef3c7;
  color: #92400e;
}
.confidence-low {
  background: #fed7aa;
  color: #9a3412;
}
.confidence-insufficient {
  background: #f3f4f6;
  color: #6b7280;
}
.readiness-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.readiness-field {
  font-size: 0.8rem;
  padding: 2px 0;
}
.readiness-present {
  color: #065f46;
}
.readiness-missing-doc {
  color: #991b1b;
}
.readiness-missing-schema {
  color: #6b7280;
}
.readiness-reason {
  font-style: italic;
  opacity: 0.8;
}

.surveillance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.risk-calculation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.risk-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
}

.risk-card-header {
  display: grid;
  gap: 2px;
}

.risk-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.risk-card-subtitle {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.risk-metric-list,
.risk-missing-list {
  display: grid;
  gap: 4px;
}

.risk-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.risk-metric-label {
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.risk-metric-value {
  font-size: 14px;
  line-height: 1.35;
  color: #1a202c;
}

.risk-progress-bar {
  margin-top: 2px;
}

.risk-progress-fill {
  background: linear-gradient(90deg, #64748b 0%, #0f766e 100%);
}

.risk-missing-item,
.risk-unavailable {
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.risk-unavailable {
  font-style: italic;
}

.surveillance-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 10px 12px;
}

.surveillance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.surveillance-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.surveillance-meta-grid {
  display: grid;
  gap: 2px;
}

.surveillance-meta,
.surveillance-footnote {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.alert-details {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  padding-bottom: 0;
}

.alert-details summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.alert-details[open] summary {
  margin-bottom: 4px;
}

.cohort-alert-card .alert-card-body {
  gap: 3px;
}

.cohort-alert-card .surface-kicker {
  font-size: 11px;
  line-height: 1.15;
}

.cohort-alert-card .alert-details {
  margin-top: 0;
}

.cohort-alert-card .alert-details p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: pre-wrap;
  border: 0;
}

#view-status,
#auth-status,
#patient-create-status,
#patient-summary-status,
#cohort-alert-status,
#timeline-status {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 24px, 1200px);
    padding-top: 18px;
  }

  .landing-shell {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-brand-inner,
  .landing-access-inner {
    padding: 24px;
  }

  .landing-copy {
    margin: 12px 0 24px;
  }

  h1 {
    max-width: none;
  }

  .summary-header,
  .alert-card-header,
  .surface-section-header,
  .workflow-header,
  .workspace-topbar {
    flex-direction: column;
  }

  .timeline-grid,
  .timeline-panels {
    grid-template-columns: 1fr;
  }

  #clinician-view-section,
  #admin-view-section {
    grid-template-columns: 1fr;
  }

  .clinician-workspace {
    grid-template-columns: 1fr;
  }

  .clinician-mode-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cohort-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cohort-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surveillance-grid {
    grid-template-columns: 1fr;
  }

  .risk-calculation-grid {
    grid-template-columns: 1fr;
  }

  .clinician-sidebar {
    position: static;
  }

  .clinical-event {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 12px;
  }

  .cohort-alert-meta {
    justify-items: start;
  }
}
