/* ─── Ambient Scribe bar ─────────────────────────────────────── */
.ov2-scribe-bar {
  height: 46px; flex-shrink: 0;
  background: #f0f9ff; border-bottom: 1px solid #bae6fd;
  transition: background 0.2s, border-color 0.2s;
}
.ov2-scribe-bar.paused { background: var(--bg-base); border-bottom-color: var(--border); }

.ov2-mic-pulse {
  width: 28px; height: 28px; border-radius: 50%;
  background: #2563eb; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(37,99,235,0.5);
  animation: micPulse 1.8s infinite;
}
.ov2-scribe-bar.paused .ov2-mic-pulse { background: var(--text-3); animation: none; box-shadow: none; }
@keyframes micPulse {
  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); }
}

.ov2-scribe-label { font-size: 11.5px; font-weight: 700; color: #1d4ed8; }
.ov2-scribe-bar.paused .ov2-scribe-label { color: var(--text-2); }
.ov2-scribe-caption { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.ov2-scribe-count { font-size: 11.5px; font-weight: 600; color: #1d4ed8; white-space: nowrap; }
.ov2-scribe-toggle {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid #bae6fd; color: #1d4ed8;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.ov2-scribe-toggle:hover { background: #e0f2fe; }

/* ─── AI Patient Brief ───────────────────────────────────────── */
.ov2-brief {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #dbeafe; border-radius: 12px; padding: 16px 18px;
}
.ov2-brief-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ov2-brief-label { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #1d4ed8; margin-bottom: 4px; }
.ov2-brief-text { font-size: 13.5px; line-height: 1.55; color: var(--text-1); margin-bottom: 6px; }
.ov2-brief-meta { font-size: 11px; color: var(--text-3); }
.ov2-brief-meta a { color: #2563eb; font-weight: 600; }

/* ─── Risk snapshot strip ────────────────────────────────────── */
.ov2-risk-strip { padding-top: 12px; padding-bottom: 12px; margin-top: 8px; }
.ov2-risk-badge {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 20px; white-space: nowrap;
}
.ov2-risk-badge.critical { background: #fecaca; color: #b91c1c; border: 1px solid #fca5a5; }

.ov2-chip {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  white-space: nowrap; display: inline-flex; align-items: center;
}
.ov2-chip.chip-critical { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ov2-chip.chip-warn     { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.ov2-view-all { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ov2-view-all:hover { color: var(--accent); }

/* ─── Section headers ────────────────────────────────────────── */
.ov2-soap-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.ov2-soap-tag.soap-o { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ov2-section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.ov2-section-sub { font-size: 11px; color: var(--text-3); }
.ov2-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;
}
.ov2-ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  background: #2563eb; color: #fff; padding: 3px 9px; border-radius: 20px;
}

/* ─── Vitals grid ─────────────────────────────────────────────── */
.ov2-vitals-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ov2-vs-card {
  border-radius: 10px; border: 1px solid var(--border); border-top-width: 3px;
  padding: 12px 14px 10px; background: var(--bg-surface);
}
.ov2-vs-card.vs-critical { border-top-color: #dc2626; background: #fef2f2; }
.ov2-vs-card.vs-high     { border-top-color: #f59e0b; background: #fffbeb; }
.ov2-vs-card.vs-low      { border-top-color: #eab308; background: #fefce8; }
.ov2-vs-card.vs-neutral  { border-top-color: var(--border); }

.ov2-vs-name { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.ov2-vs-badge { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; padding: 1px 7px; border-radius: 4px; }
.ov2-vs-badge.badge-critical { background: #fecaca; color: #b91c1c; }
.ov2-vs-badge.badge-abnormal { background: #fed7aa; color: #b45309; }

.ov2-vs-value { display: flex; align-items: baseline; gap: 2px; margin-top: 6px; line-height: 1; }
.ov2-vs-num { font-size: 32px; font-weight: 700; letter-spacing: -1px; color: var(--text-1); }
.ov2-vs-num-sm { font-size: 24px; }
.ov2-vs-num-neutral { color: var(--text-1); }
.ov2-vs-card.vs-critical .ov2-vs-num { color: #dc2626; }
.ov2-vs-card.vs-high .ov2-vs-num     { color: #d97706; }
.ov2-vs-card.vs-low .ov2-vs-num      { color: #ca8a04; }
.ov2-vs-slash { font-size: 22px; color: var(--text-3); font-weight: 300; margin: 0 1px; }
.ov2-vs-unit { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ─── AI Draft findings list ─────────────────────────────────── */
.ov2-finding-list { display: flex; flex-direction: column; gap: 8px; }
.ov2-finding-item {
  display: flex; align-items: center; gap: 12px;
  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;
}
.ov2-finding-item.resolved-confirm { background: #f0fdf4; border-color: #bbf7d0; }
.ov2-finding-item.resolved-dismiss { background: #f8fafc; border-color: var(--border); opacity: 0.5; }
.ov2-finding-text { font-size: 13px; color: var(--text-1); flex-grow: 1; }
.ov2-finding-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ov2-btn-confirm, .ov2-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; cursor: pointer;
  background: var(--bg-base); color: var(--text-2);
}
.ov2-btn-confirm:hover { background: #dcfce7; border-color: #86efac; color: #15803d; }
.ov2-btn-dismiss:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

/* ─── Lower grid + cards ──────────────────────────────────────── */
.ov2-lower-grid { display: grid; grid-template-columns: 1fr 1.2fr; padding-bottom: 4px; }
.ov2-col { min-width: 0; }
.ov2-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.ov2-card-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-2); }
.ov2-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; }
.ov2-empty-state { font-size: 12.5px; color: var(--text-3); padding: 8px 0; }

.ov2-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; }
.ov2-lab-row:last-child { border-bottom: none; }
.ov2-lab-abnormal { background: #fef2f2; margin: 0 -16px; padding: 7px 16px; }
.ov2-lab-name { color: var(--text-1); }
.ov2-lab-val { color: var(--text-1); font-weight: 600; white-space: nowrap; }
.ov2-lab-unit { font-size: 10.5px; font-weight: 400; color: var(--text-3); }
.ov2-lab-ref { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ov2-lab-ok { color: #16a34a; }
.ov2-lab-low { color: #dc2626; }
.ov2-lab-date { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

.ov2-med-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ov2-med-row:last-child { border-bottom: none; }
.ov2-med-conflict { background: #fef2f2; margin: 0 -16px; padding: 10px 16px; position: relative; border-radius: 6px; }
.ov2-med-conflict-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #dc2626; border-radius: 3px 0 0 3px; }
.ov2-med-name { font-size: 13px; font-weight: 500; color: var(--text-1); }
.ov2-med-conflict .ov2-med-name { color: #b91c1c; }
.ov2-med-dose { font-size: 11px; color: var(--text-3); }
.ov2-med-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ov2-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; }

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

/* ─── Quick Orders (right panel) ─────────────────────────────── */
.ov2-quick-orders-title { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }
.ov2-quick-orders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ov2-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);
}
.ov2-order-btn i { font-size: 16px; color: var(--accent); }
.ov2-order-btn:hover { background: var(--accent-bg); border-color: var(--accent); }

/* ─── Checklist auto-done state ──────────────────────────────── */
.vl-check-circle.vl-check-done {
  background: #16a34a; border-color: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.ov2-auto-tag {
  font-size: 9px; font-weight: 800; background: #dbeafe; color: #1d4ed8;
  padding: 0 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle;
}
