.ov3-main { position: relative; }
.ov3-stream { max-width: 980px; display: flex; flex-direction: column; gap: 18px; }

/* ─── Utility bar: scribe + ask AI ───────────────────────────── */
.ov3-utility-bar {
  height: 46px; flex-shrink: 0;
  background: #f0f9ff; border-bottom: 1px solid #bae6fd;
  transition: background 0.2s, border-color 0.2s;
}
.ov3-utility-bar.paused { background: var(--bg-base); border-bottom-color: var(--border); }
.ov3-mic-pulse {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; animation: ov3MicPulse 1.8s infinite;
}
.ov3-utility-bar.paused .ov3-mic-pulse { background: var(--text-3); animation: none; }
@keyframes ov3MicPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.ov3-scribe-label { font-size: 11.5px; font-weight: 700; color: #1d4ed8; }
.ov3-utility-bar.paused .ov3-scribe-label { color: var(--text-2); }
.ov3-scribe-caption { font-size: 12px; color: var(--text-2); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov3-ask-ai-pill {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #fff; border: 1px solid var(--border-md); color: var(--text-2);
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
}
.ov3-ask-ai-pill i { color: #2563eb; }
.ov3-ask-ai-pill kbd { font-size: 10px; background: var(--bg-base); border: 1px solid var(--border); border-radius: 4px; padding: 1px 4px; }
.ov3-ask-ai-pill:hover { border-color: #2563eb; }
.ov3-scribe-toggle {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  background: #fff; border: 1px solid #bae6fd; color: #1d4ed8;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}

/* ─── Focus card — "Right now" ───────────────────────────────── */
.ov3-focus-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border: 1.5px solid #fca5a5; border-radius: 14px; padding: 18px 20px;
}
.ov3-focus-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: #dc2626; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ov3-focus-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: #b91c1c; }
.ov3-focus-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-top: 2px; }
.ov3-focus-sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.ov3-focus-btn {
  background: #dc2626; color: #fff; border: none; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}
.ov3-focus-btn:hover { background: #b91c1c; }

/* ─── Calm-state AI brief (no urgent action to surface) ──────── */
.ov3-brief-calm {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.ov3-brief-calm-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--bg-base); color: var(--text-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.ov3-brief-calm-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.ov3-brief-calm-text { font-size: 13px; line-height: 1.5; color: var(--text-2); margin-bottom: 0; }

/* ─── Findings empty state ────────────────────────────────────── */
.ov3-finding-empty {
  display: flex; align-items: center; font-size: 12.5px; color: var(--text-3);
  background: var(--bg-base); border: 1px dashed var(--border-md);
  border-radius: 10px; padding: 14px 16px;
}

/* ─── Block header ────────────────────────────────────────────── */
.ov3-block { display: flex; flex-direction: column; gap: 10px; }
.ov3-block-header { }
.ov3-block-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.ov3-block-sub { font-size: 11px; color: var(--text-3); }
.ov3-link { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ov3-link:hover { color: var(--accent); }
.ov3-synced-tag {
  font-size: 11px; font-weight: 600; color: #15803d; background: #f0fdf4;
  border: 1px solid #bbf7d0; padding: 2px 9px; border-radius: 20px; white-space: nowrap;
}
.ov3-ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 800; background: #2563eb; color: #fff;
  padding: 3px 9px; border-radius: 20px;
}
.ov3-count-badge { font-size: 10px; font-weight: 700; background: var(--bg-active); color: var(--text-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 20px; }

/* ─── Trend cards with sparklines ────────────────────────────── */
.ov3-trend-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ov3-trend-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-top-width: 3px;
  border-radius: 10px; padding: 12px 14px 10px;
}
.ov3-trend-card.trend-critical { border-top-color: #dc2626; background: #fef2f2; }
.ov3-trend-card.trend-high     { border-top-color: #f59e0b; background: #fffbeb; }
.ov3-trend-card.trend-low      { border-top-color: #eab308; background: #fefce8; }
.ov3-trend-card.trend-neutral  { border-top-color: var(--border); }
.ov3-trend-name { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.ov3-trend-delta { font-size: 10.5px; font-weight: 700; }
.ov3-trend-delta.up   { color: #dc2626; }
.ov3-trend-delta.down { color: #ca8a04; }
.ov3-trend-delta.flat { color: var(--text-3); }
.ov3-trend-value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: var(--text-1); margin-top: 4px; line-height: 1; }
.ov3-trend-slash { font-size: 18px; color: var(--text-3); font-weight: 300; margin: 0 1px; }
.ov3-spark { width: 100%; height: 24px; margin-top: 6px; display: block; }
.ov3-spark polyline { fill: none; stroke-width: 2; stroke: var(--text-3); }
.trend-critical .ov3-spark polyline { stroke: #dc2626; }
.trend-high .ov3-spark polyline     { stroke: #d97706; }
.trend-low .ov3-spark polyline      { stroke: #ca8a04; }
.ov3-trend-unit { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ─── Findings — swipe-to-triage style ───────────────────────── */
.ov3-finding-list { display: flex; flex-direction: column; gap: 8px; }
.ov3-finding-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
  transition: opacity 0.3s, height 0.3s, padding 0.3s, margin 0.3s;
  overflow: hidden;
}
.ov3-grip { color: var(--text-3); font-size: 13px; cursor: grab; flex-shrink: 0; }
.ov3-finding-item.resolved-confirm { background: #f0fdf4; border-color: #bbf7d0; }
.ov3-finding-item.resolved-dismiss { background: #f8fafc; opacity: 0.5; }
.ov3-finding-text { font-size: 13px; color: var(--text-1); flex-grow: 1; }
.ov3-finding-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ov3-btn-confirm, .ov3-btn-dismiss {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-md);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--bg-base); color: var(--text-2);
}
.ov3-btn-confirm:hover { background: #dcfce7; border-color: #86efac; color: #15803d; }
.ov3-btn-dismiss:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

/* ─── Generic card / med / lab styles ────────────────────────── */
.ov3-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.ov3-empty-card { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; }

.ov3-med-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ov3-med-row:last-child { border-bottom: none; }
.ov3-med-conflict { background: #fef2f2; margin: 0 -16px; padding: 10px 16px; position: relative; border-radius: 6px; }
.ov3-med-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #dc2626; border-radius: 3px 0 0 3px; }
.ov3-med-name { font-size: 13px; font-weight: 500; color: var(--text-1); }
.ov3-med-conflict .ov3-med-name { color: #b91c1c; }
.ov3-med-dose { font-size: 11px; color: var(--text-3); }
.ov3-med-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ov3-med-flag { font-size: 10.5px; font-weight: 700; background: #fecaca; color: #b91c1c; padding: 3px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }

.ov3-lab-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.ov3-lab-row:last-child { border-bottom: none; }
.ov3-lab-abnormal { background: #fef2f2; margin: 0 -16px; padding: 7px 16px; }
.ov3-lab-name { color: var(--text-1); }
.ov3-lab-val { color: var(--text-1); font-weight: 600; white-space: nowrap; }
.ov3-lab-unit { font-size: 10.5px; font-weight: 400; color: var(--text-3); }
.ov3-lab-ref { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ov3-lab-ok { color: #16a34a; }
.ov3-lab-low { color: #dc2626; }
.ov3-lab-date { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

/* ─── Sign-off capstone ───────────────────────────────────────── */
.ov3-signoff-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1.5px solid #bbf7d0; border-radius: 14px; padding: 16px 20px;
}
.ov3-signoff-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ov3-signoff-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.ov3-signoff-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ov3-signoff-btn-secondary {
  background: #fff; border: 1px solid var(--border-md); color: var(--text-2);
  font-size: 12.5px; font-weight: 600; padding: 9px 16px; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}
.ov3-signoff-btn-primary {
  background: #16a34a; border: none; color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}
.ov3-signoff-btn-primary:hover { background: #15803d; }

/* ─── Patient info accordion (lowest priority) ───────────────── */
.ov3-info-accordion { border-top: 1px solid var(--border); padding-top: 4px; }
.ov3-accordion-toggle { background: none; border: none; padding: 10px 0; cursor: pointer; text-align: left; width: 100%; }
.ov3-accordion-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-2); }
.ov3-acc-chevron { font-size: 13px; color: var(--text-3); transition: transform 0.2s ease; }
.ov3-accordion-body { display: none; }
.ov3-accordion-body.open { display: block; }
.ov3-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ov3-info-block { background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.ov3-info-block-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.ov3-info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 12px; }
.ov3-info-row > span:first-child { color: var(--text-2); }
.ov3-info-row > span:last-child { color: var(--text-1); text-align: right; }

/* ─── Floating Next-Action button ────────────────────────────── */
.ov3-fab {
  position: absolute; bottom: 20px; right: 24px; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  background: #1d4ed8; color: #fff; border: none;
  font-size: 13px; font-weight: 700; padding: 12px 18px; border-radius: 30px;
  box-shadow: 0 8px 24px rgba(29,78,216,0.35);
}
.ov3-fab:hover { background: #1e40af; }
.ov3-fab.done,
.ov3-fab.ready { background: #16a34a; box-shadow: 0 8px 24px rgba(22,163,74,0.35); }
.ov3-fab i { font-size: 15px; }

/* ─── Right panel progress ring ──────────────────────────────── */
.ov3-progress-ring {
  --pct: 0%;
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--accent) var(--pct), var(--border) var(--pct));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ov3-progress-ring::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg-surface);
}
.ov3-progress-ring span { position: relative; font-size: 12px; font-weight: 700; color: var(--text-1); }
.ov3-progress-title { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.ov3-progress-sub { font-size: 11px; color: var(--text-3); }

/* ─── Quick orders ────────────────────────────────────────────── */
.ov3-quick-orders-title { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }
.ov3-quick-orders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ov3-order-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 4px; font-size: 10px; font-weight: 600; color: var(--text-2);
}
.ov3-order-btn i { font-size: 16px; color: var(--accent); }
.ov3-order-btn:hover { background: var(--accent-bg); border-color: var(--accent); }

.ov3-auto-tag {
  font-size: 9px; font-weight: 800; background: #dbeafe; color: #1d4ed8;
  padding: 0 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle;
}
