:root {
  --ink: #202744;
  --muted: #7b8098;
  --line: #e1e2ed;
  --surface: #fff;
  --canvas: #f5f5fb;
  --teal: #4b55a5;
  --teal-dark: #363f85;
  --teal-soft: #eceefa;
  --blue: #7864bd;
  --blue-soft: #f0edfa;
  --amber: #b96726;
  --amber-soft: #fff2e6;
  --red: #ad3e38;
  --shadow: 0 14px 40px rgba(42, 47, 91, .11);
}
* { box-sizing: border-box; }
html { background: #e3e3ee; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 50% -8%, #fff, transparent 34%), #e3e3ee;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 60px rgba(36, 40, 79, .15);
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px 8px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand-mark { width: 32px; height: 32px; position: relative; display: grid; place-items: center; }
.brand-mark span { position: absolute; width: 12px; height: 21px; border: 2px solid var(--teal); border-radius: 50%; }
.brand-mark span:nth-child(2) { transform: rotate(60deg); }
.brand-mark span:nth-child(3) { transform: rotate(120deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.icon-button, .notification-button, .avatar, .more-button, .record-button, .text-button, .metric, .evidence-toggle, .slot-card, .document-card, .nav-item {
  border: 0; background: transparent; color: inherit;
}
.icon-button { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; }
.icon-button svg, .notification-button svg { width: 20px; }
.notification-button { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.notification-button span {
  position: absolute; top: 0; right: -1px; min-width: 16px; height: 16px; display: grid; place-items: center;
  color: #fff; background: var(--red); border: 2px solid #fff; border-radius: 9px; font-size: 8px; font-weight: 900;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; color: #fff;
  background: linear-gradient(145deg, #244c55, var(--teal)); font-size: 10px; font-weight: 900;
}
.intro { padding: 26px 20px 18px; }
.eyebrow { margin: 0 0 6px; color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.intro h1 { margin: 0; font: 600 27px/1.12 Georgia, serif; letter-spacing: -.025em; }
.case-stage-pill {
  display: inline-block; margin-top: 10px; padding: 6px 9px; color: var(--teal); background: var(--teal-soft);
  border-radius: 8px; font-size: 8px; font-weight: 850;
}
.intro > p:last-child { margin: 8px 0 0; max-width: 370px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.brief-card {
  margin: 0 20px 27px; padding: 17px; background: linear-gradient(135deg, #fff, #f6f6fc);
  border: 1px solid #cfd2eb; border-radius: 21px; box-shadow: var(--shadow);
}
.brief-header { display: flex; align-items: center; gap: 10px; }
.ai-symbol {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center;
  color: var(--teal); background: var(--teal-soft); border-radius: 13px;
}
.ai-symbol svg { width: 24px; }
.brief-header .eyebrow { margin-bottom: 3px; font-size: 7px; }
.brief-header h2, .section-heading h2, .decision-sheet h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.live-pill { margin-left: auto; color: var(--muted); font-size: 8px; white-space: nowrap; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 15px; }
.metric {
  min-width: 0; padding: 10px 6px; background: #f7f7fb; border: 1px solid #e4e4ee; border-radius: 12px; text-align: left;
}
.metric.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.metric.warning:not(.active) { border-color: #efcfb2; }
.metric strong { display: block; font: 600 22px/1 Georgia, serif; }
.metric span { display: block; margin-top: 5px; font-size: 8px; opacity: .78; }
.brief-note {
  display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start;
  margin-top: 13px; padding: 11px; background: #f0f1fa; border-radius: 12px;
}
.brief-note > span {
  width: 26px; height: 26px; display: grid; place-items: center;
  color: #fff; background: var(--teal); border-radius: 9px; font-size: 8px; font-weight: 900;
}
.brief-note p { margin: 0; color: #4e6568; font-size: 10px; line-height: 1.45; }
.brief-note strong { color: var(--ink); }
.section-block { padding: 0 20px 27px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.section-heading .eyebrow { margin-bottom: 3px; font-size: 7px; }
.section-heading h2 { font-size: 20px; }
.priority, .count-badge {
  padding: 6px 8px; color: var(--amber); background: var(--amber-soft); border-radius: 8px; font-size: 8px; font-weight: 900;
}
.text-button { padding: 4px 0; color: var(--teal); font-size: 10px; font-weight: 850; }
.patient-card, .lab-card {
  padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 7px 18px rgba(42,47,91,.05);
}
.patient-header { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; }
.patient-avatar {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--teal); background: var(--teal-soft); border-radius: 13px; font-size: 11px; font-weight: 900;
}
.patient-header h3 { margin: 0; font-size: 14px; }
.patient-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.more-button { color: var(--muted); font-weight: 900; letter-spacing: .08em; }
.record-button {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--teal);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}
.record-button svg { width: 14px; }
.clinical-summary {
  display: grid; grid-template-columns: 28px 1fr; gap: 9px; margin-top: 14px; padding: 11px;
  background: #f0f1fa; border-radius: 12px;
}
.summary-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 9px; font-size: 8px; font-weight: 900; }
.clinical-summary p { margin: 0; color: #52686b; font-size: 10px; line-height: 1.45; }
.clinical-summary strong { color: var(--ink); }
.stimu-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 9px; padding: 9px 10px; background: #fafafe; border: 1px solid #e6e6ef; border-radius: 11px;
}
.stimu-toolbar > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stimu-toolbar p { display: flex; flex-direction: column; margin: 0; font-size: 8px; }
.stimu-toolbar small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.stimu-toolbar button {
  flex: 0 0 auto; padding: 7px 9px; color: #fff; background: var(--teal); border: 0; border-radius: 8px;
  font-size: 8px; font-weight: 850;
}
.stimu-toolbar button:disabled { opacity: .55; }
.integration-dot { width: 8px; height: 8px; flex: 0 0 auto; background: #a9acb8; border-radius: 50%; }
.integration-dot.loading { background: #d39a42; box-shadow: 0 0 0 4px rgba(211,154,66,.14); }
.integration-dot.connected { background: #3d9b83; box-shadow: 0 0 0 4px rgba(61,155,131,.14); }
.integration-dot.review { background: var(--amber); box-shadow: 0 0 0 4px rgba(185,103,38,.14); }
.integration-dot.offline { background: #b85b5b; }
.intelligence-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:12px; }
.intelligence-tile { padding:11px; background:#fafafe; border:1px solid #e6e6ef; border-radius:12px; }
.intelligence-tile span,.intelligence-tile small { display:block; color:var(--muted); font-size:7px; }
.intelligence-tile strong { display:block; margin:5px 0 3px; color:var(--teal); font:600 18px Georgia,serif; }
.intelligence-tile.risk-tile { background:var(--amber-soft); border-color:#efcfb2; }
.intelligence-tile.risk-tile strong { color:var(--amber); }
.workflow-alert-list { display:flex; flex-direction:column; gap:8px; }
.workflow-alert { display:grid; grid-template-columns:28px 1fr auto; gap:9px; align-items:center; padding:12px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.workflow-alert > span { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; font-size:10px; font-weight:900; }
.workflow-alert.urgent > span { color:var(--amber); background:var(--amber-soft); }
.workflow-alert.complete > span { color:var(--teal); background:var(--teal-soft); }
.workflow-alert strong { font-size:10px; }
.workflow-alert p { margin:4px 0 0; color:var(--muted); font-size:8px; line-height:1.4; }
.workflow-alert small { color:var(--teal); font-size:8px; font-weight:850; }
.workflow-action { padding:7px 8px; color:#fff; background:var(--teal); border:0; border-radius:8px; font-size:8px; font-weight:850; }
.workflow-action:disabled { color:var(--teal); background:var(--teal-soft); }
.dynamic-card { padding:15px; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 7px 18px rgba(42,47,91,.05); }
.monitor-patient-header { display:grid; grid-template-columns:42px 1fr auto; gap:10px; align-items:center; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid var(--line); }
.monitor-patient-header > div { min-width:0; }
.monitor-patient-header strong { font-size:13px; }
.monitor-patient-header p { margin:4px 0 0; color:var(--muted); font-size:8px; }
.dynamic-header { display:flex; justify-content:space-between; gap:10px; align-items:start; }
.dynamic-header div { display:flex; flex-direction:column; }
.dynamic-header strong { font-size:13px; }
.dynamic-header div span { margin-top:4px; color:var(--muted); font-size:8px; }
.dynamic-metrics { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:12px; }
.dynamic-metrics div { padding:10px; background:#fafafe; border-radius:11px; }
.dynamic-metrics span,.dynamic-metrics small { display:block; color:var(--muted); font-size:7px; }
.dynamic-metrics strong { display:block; margin:4px 0 3px; font:600 17px Georgia,serif; }
.mini-trend { height:105px; display:flex; align-items:flex-end; justify-content:space-around; gap:12px; margin-top:13px; padding:10px 12px 8px; background:#f7f7fb; border-radius:12px; }
.mini-trend div { height:100%; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; }
.mini-trend span,.mini-trend strong { color:var(--muted); font-size:7px; font-weight:700; }
.mini-trend i { width:28px; min-height:12px; margin:5px 0; background:linear-gradient(#6b74bb,var(--teal)); border-radius:7px 7px 3px 3px; }
.mini-trend i.forecast { opacity:.35; border:1px dashed var(--teal); background:var(--teal-soft); }
.dynamic-guidance { display:grid; grid-template-columns:28px 1fr; gap:9px; margin-top:11px; padding:11px; background:#f0f1fa; border-radius:12px; }
.dynamic-guidance span { width:28px; height:28px; display:grid; place-items:center; color:#fff; background:var(--teal); border-radius:9px; font-size:8px; font-weight:900; }
.dynamic-guidance p { margin:0; color:#52686b; font-size:9px; line-height:1.48; }
.dynamic-flags { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.flag { padding:5px 7px; border-radius:7px; font-size:7px; font-weight:850; }
.flag.warning { color:var(--amber); background:var(--amber-soft); }
.flag.normal { color:var(--teal); background:var(--teal-soft); }
.trend-grid { display: grid; grid-template-columns: 1fr 92px; gap: 10px; margin-top: 13px; }
.trend-chart, .follicle-panel { padding: 11px; background: #fafafe; border: 1px solid #e6e6ef; border-radius: 13px; }
.chart-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 8px; }
.chart-heading strong { color: var(--teal); font-size: 10px; }
.trend-chart svg { width: 100%; margin-top: 7px; overflow: visible; }
.grid-line { stroke: #e2e3ed; stroke-width: 1; }
.area { fill: url(#chartFill); stroke: none; }
.trend-line { stroke: var(--teal); stroke-width: 2.5; }
.trend-chart circle { fill: #fff; stroke: var(--teal); stroke-width: 2.5; }
.chart-labels { display: flex; justify-content: space-between; color: #91a09f; font-size: 7px; }
.follicle-panel > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 8px; }
.follicle-panel div { display: flex; align-items: baseline; gap: 5px; padding: 5px 0; border-top: 1px solid #e2e3ed; }
.follicle-panel strong { font: 600 17px Georgia, serif; }
.follicle-panel small { color: var(--muted); font-size: 7px; }
.evidence-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 0 0;
  color: var(--teal); border-top: 1px solid var(--line); font-size: 10px; font-weight: 850; text-align: left;
}
.evidence-toggle svg { width: 17px; transition: transform .2s; }
.evidence-toggle.open svg { transform: rotate(180deg); }
.evidence-panel { margin-top: 10px; padding: 10px; background: #fafafe; border-radius: 11px; }
.evidence-panel div { display: grid; grid-template-columns: 18px 1fr; gap: 6px; margin: 6px 0; }
.evidence-panel span { color: var(--teal); font-size: 10px; font-weight: 900; }
.evidence-panel div:last-child span { color: var(--amber); }
.evidence-panel p { margin: 0; color: #586d70; font-size: 9px; line-height: 1.35; }
.slot-list { display: flex; flex-direction: column; gap: 8px; }
.slot-card {
  width: 100%; display: grid; grid-template-columns: 19px 1fr auto; align-items: center; gap: 10px;
  padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; text-align: left;
}
.slot-card.selected { border-color: var(--teal); box-shadow: 0 7px 20px rgba(75,85,165,.13); }
.radio { width: 17px; height: 17px; border: 2px solid #b5b7c9; border-radius: 50%; }
.selected .radio { border: 5px solid var(--teal); }
.slot-main strong { font-size: 12px; }
.slot-main p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.slot-main > div { display: flex; align-items: center; gap: 7px; }
.recommend-pill { padding: 4px 6px; color: var(--teal); background: var(--teal-soft); border-radius: 6px; font-size: 7px; font-weight: 900; }
.capacity { min-width: 45px; text-align: right; }
.capacity strong { display: block; color: var(--teal); font-size: 12px; }
.capacity.high strong { color: var(--amber); }
.capacity span { color: var(--muted); font-size: 7px; }
.dependency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.dependency-grid div { display: flex; align-items: center; gap: 7px; padding: 8px; background: #f0f1fa; border-radius: 10px; }
.check { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 8px; font-weight: 900; }
.dependency-grid p { margin: 0; color: var(--muted); font-size: 8px; }
.dependency-grid strong { color: var(--ink); display: block; }
.lab-header { display: flex; justify-content: space-between; align-items: center; }
.lab-header div { display: flex; flex-direction: column; }
.lab-header strong { font-size: 13px; }
.lab-header div span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.reviewed-pill { padding: 5px 7px; color: var(--teal); background: var(--teal-soft); border-radius: 7px; font-size: 7px; font-weight: 900; }
.embryo-chain { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 12px 10px; background: #f3f3fa; border-radius: 12px; }
.embryo-chain div { display: flex; flex-direction: column; align-items: center; }
.embryo-chain strong { font: 600 17px Georgia, serif; }
.embryo-chain span { margin-top: 2px; color: var(--muted); font-size: 7px; }
.embryo-chain i { width: 15px; height: 1px; position: relative; background: #c2c4d5; }
.embryo-chain i::after { content:""; position:absolute; right:0; top:-2px; border-left:4px solid #c2c4d5; border-top:2.5px solid transparent; border-bottom:2.5px solid transparent; }
.lab-summary { margin: 11px 0 0; color: #52686b; font-size: 9px; line-height: 1.45; }
.document-card {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px;
  padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; text-align: left;
}
.document-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; }
.document-icon svg { width: 21px; }
.document-card strong { font-size: 11px; }
.document-card p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.confidence { color: var(--teal); font-size: 9px; font-weight: 900; }
.bottom-spacer { height: 155px; }
.decision-bar {
  position: fixed; z-index: 25; left: 50%; bottom: 68px; width: min(100%,480px);
  display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%);
  padding: 10px 20px; background: rgba(239,240,250,.97); border-top: 1px solid #d7d9eb; backdrop-filter: blur(18px);
}
.decision-bar div { display: flex; flex-direction: column; }
.decision-bar span { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.decision-bar strong { margin-top: 3px; font-size: 11px; }
.decision-bar button { padding: 11px 14px; color: #fff; background: var(--teal); border: 0; border-radius: 11px; font-size: 10px; font-weight: 850; }
.bottom-nav {
  position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(100%,480px); height: 69px;
  display: grid; grid-template-columns: repeat(5,1fr); transform: translateX(-50%);
  padding: 8px 8px max(8px,env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(20px);
}
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8a8da2; font-size: 7px; font-weight: 800; }
.nav-item svg { width: 19px; }
.nav-item.active { color: var(--teal); }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(22,25,54,.52); backdrop-filter: blur(3px); }
.decision-sheet {
  position: fixed; z-index: 60; left: 50%; bottom: 0; width: min(100%,480px); transform: translateX(-50%);
  padding: 12px 25px 26px; background: #fff; border-radius: 27px 27px 0 0; text-align: center; box-shadow: 0 -20px 50px rgba(28,31,68,.22);
}
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 16px; background: #ddddea; border-radius: 4px; }
.sheet-close { position: absolute; right: 17px; top: 17px; width: 32px; height: 32px; color: var(--muted); background: #f3f3f8; border: 0; border-radius: 50%; font-size: 20px; }
.decision-check { width: 56px; height: 56px; display: grid; place-items: center; margin: 2px auto 14px; color: #fff; background: var(--teal); border: 8px solid var(--teal-soft); border-radius: 50%; font-size: 20px; }
.decision-sheet .eyebrow { margin-top: 0; }
.decision-sheet h2 { font-size: 21px; }
.sheet-summary { margin: 8px auto 15px; max-width: 330px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.decision-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.decision-summary div { padding: 10px 6px; background: #f5f5fa; border-radius: 10px; }
.decision-summary span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.decision-summary strong { display: block; margin-top: 4px; font-size: 10px; }
.review-pack-list { display: flex; flex-direction: column; gap: 9px; margin-top: 13px; text-align: left; }
.review-pack-item { padding: 11px; background: #f7f7fb; border: 1px solid #e4e4ee; border-radius: 13px; }
.review-pack-item.urgent { background: var(--amber-soft); border-color: #efcfb2; }
.review-pack-header { display: flex; align-items: center; gap: 8px; }
.review-pack-header span {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: var(--teal);
  background: #fff;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 900;
}
.review-pack-header strong { font-size: 11px; }
.review-pack-item p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.42; }
.review-action-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-sheet-action {
  padding: 7px 8px;
  color: var(--teal);
  background: #fff;
  border: 1px solid #d7d9eb;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 850;
}
.review-sheet-action.selected {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
.review-sheet-action.selected::before { content: "✓ "; }
.review-sheet-action:not(.selected)::before { content: "+ "; }
.review-sheet-action.sent {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: transparent;
}
.primary-action, .secondary-action { width: 100%; padding: 13px; border-radius: 12px; font-size: 11px; font-weight: 850; }
.primary-action { color: #fff; background: var(--teal); border: 0; }
.secondary-action { margin-top: 7px; color: var(--teal); background: #fff; border: 1px solid #d7d9eb; }
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 150px; max-width: 330px; transform: translate(-50%,20px);
  padding: 11px 15px; color: #fff; background: #30375f; border-radius: 12px; box-shadow: var(--shadow);
  font-size: 10px; opacity: 0; pointer-events: none; transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%,0); }
[hidden] { display: none !important; }
.filtered-out { display: none; }
@media (min-width:768px) {
  body { padding:24px; }
  .app-shell {
    width:min(100%,1120px);
    min-height:calc(100vh - 48px);
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);
    align-content:start;
    column-gap:24px;
    border-radius:28px;
  }
  .topbar,.intro,.brief-card { grid-column:1 / -1; }
  .topbar { padding-left:30px; padding-right:30px; }
  .intro { padding:34px 30px 20px; }
  .intro h1 { font-size:34px; }
  .brief-card { margin:0 30px 30px; }
  .metric { padding:14px 12px; }
  .trigger-block {
    grid-column:1;
    grid-row:4 / span 2;
    padding-left:30px;
    padding-right:0;
  }
  .schedule-block {
    grid-column:2;
    grid-row:4;
    padding-right:30px;
  }
  .lab-feedback-block {
    grid-column:2;
    grid-row:5;
    padding-right:30px;
  }
  .documentation-block {
    grid-column:1 / -1;
    grid-row:6;
    padding-left:30px;
    padding-right:30px;
  }
  .documentation-block .document-card { max-width:540px; }
  .bottom-spacer { grid-column:1 / -1; height:145px; }
  .bottom-nav {
    bottom:24px;
    width:min(calc(100% - 48px),1120px);
    border-radius:0 0 28px 28px;
  }
  .decision-bar {
    bottom:93px;
    width:min(calc(100% - 48px),1120px);
    padding-left:30px;
    padding-right:30px;
  }
  .decision-sheet {
    left:auto;
    right:32px;
    bottom:32px;
    width:450px;
    transform:none;
    border-radius:27px;
  }
  .trend-grid { grid-template-columns:minmax(0,1fr) 120px; }
  .dependency-grid { grid-template-columns:repeat(4,1fr); }
}

@media (min-width:1200px) {
  .app-shell {
    width:min(100%,1280px);
    padding-left:84px;
    grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr);
  }
  .bottom-nav {
    top:24px;
    bottom:24px;
    left:max(24px,calc((100vw - 1280px) / 2));
    width:84px;
    height:auto;
    grid-template-columns:1fr;
    grid-template-rows:repeat(5,78px);
    align-content:center;
    transform:none;
    border-top:0;
    border-right:1px solid var(--line);
    border-radius:28px 0 0 28px;
    box-shadow:8px 0 24px rgba(42,47,91,.05);
  }
  .nav-item { font-size:8px; }
  .nav-item svg { width:23px; }
  .decision-bar {
    left:max(108px,calc((100vw - 1280px) / 2 + 84px));
    right:max(24px,calc((100vw - 1280px) / 2));
    width:auto;
    transform:none;
  }
  .decision-sheet { right:max(32px,calc((100vw - 1280px) / 2 + 32px)); }
}
@media (max-width:370px) {
  .intro,.section-block { padding-left:14px; padding-right:14px; }
  .brief-card { margin-left:14px; margin-right:14px; }
}

/* Presentation readability pass: keep layout stable, lift tiny labels for demos. */
.brand-copy small,
.brief-header .eyebrow,
.section-heading .eyebrow,
.case-stage-pill,
.live-pill,
.metric span,
.priority,
.count-badge,
.text-button,
.record-button,
.stimu-toolbar p,
.stimu-toolbar small,
.stimu-toolbar button,
.intelligence-tile span,
.intelligence-tile small,
.workflow-alert p,
.workflow-alert small,
.workflow-action,
.monitor-patient-header p,
.dynamic-header div span,
.dynamic-metrics span,
.dynamic-metrics small,
.mini-trend span,
.mini-trend strong,
.flag,
.dependency-grid p,
.reviewed-pill,
.document-card p,
.review-pack-header span,
.review-pack-item p,
.review-sheet-action,
.decision-bar span,
.nav-item {
  font-size: 10px;
}

.brief-note p,
.clinical-summary p,
.evidence-toggle,
.evidence-panel p,
.dynamic-guidance p,
.lab-summary,
.sheet-summary,
.review-pack-header strong,
.toast {
  font-size: 12px;
}

.patient-header p,
.workflow-alert strong,
.dynamic-header strong,
.monitor-patient-header strong,
.document-card strong,
.decision-bar strong,
.decision-summary strong {
  font-size: 13px;
}

.patient-header h3,
.lab-header strong {
  font-size: 15px;
}

.intelligence-tile strong,
.dynamic-metrics strong {
  font-size: 20px;
}
