.vivo-page { gap:14px; }
.vivo-head { display:grid; gap:4px; }
.vivo-head h1 { margin-top:2px; font-size:clamp(36px,5.5vw,74px); }
.vivo-setup,.vivo-status,.vivo-care { min-width:0; padding:clamp(11px,1.8vw,20px); border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.vivo-setup { display:grid; gap:9px; justify-items:start; }
.vivo-setup label { font-weight:700; }
.vivo-setup label small { font-weight:400; }
.vivo-setup input { min-height:44px; max-width:100%; }
.vivo-seed-error:empty { display:none; }
.vivo-session { min-width:0; display:grid; gap:12px; }
.vivo-stage { min-width:0; display:grid; gap:7px; }
.vivo-status { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 15px; }
.vivo-intro { font-weight:630; }
.vivo-clock { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
[data-vivo-time] { font-variant-numeric:tabular-nums; font-family:var(--mono); color:var(--accent); font-size:20px; }
.vivo-modes { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.vivo-modes [aria-pressed=true] { background:var(--soft); color:var(--accent); font-weight:700; border-color:var(--accent); }
.vivo-bedside { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); align-items:start; gap:10px; }
.vivo-bedside > :only-child { grid-column:1/-1; }
.vivo-caption { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; column-gap:6px; font-size:14px; color:var(--muted); }
.vivo-note,.vivo-exam { padding:7px 9px; background:var(--soft); border-radius:6px; max-width:none; }
.vivo-note-source { display:block; margin-top:3px; font-size:13px; }
.vivo-exam { margin-top:6px; background:var(--bg); border:1px solid var(--line); }
.vivo-care { min-width:0; }
.vivo-back-bed { margin-bottom:6px; }
.vivo-care:has(.vivo-actions) { background:transparent; border:0; padding:0; }
.vivo-care .vivo-actions { margin-top:8px; }
.vivo-session:has(.vivo-actions) .vivo-actions-tabs {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%); z-index:5; width:min(1204px,calc(100% - 24px));
  border:1px solid var(--line); box-shadow:0 -5px 20px #0e132033; border-radius:10px 10px 0 0; padding:6px;
  padding-bottom:calc(6px + env(safe-area-inset-bottom,0px)); background:var(--surface);
}
.vivo-session :is(button,input,summary,select) { scroll-margin-bottom:130px; }
:root:has(.vivo-actions) body { padding-bottom:130px; }
@media (min-width:1160px) {
  .vivo-session:has(.vivo-actions) { grid-template-columns:minmax(0,1.9fr) minmax(360px,1fr); align-items:start; gap:16px; }
  .vivo-stage { position:sticky; top:12px; }
  :root[data-visit] .vivo-stage { top:calc(var(--study-header-height,0px) + 7px); }
  .vivo-back-bed { display:none; }
}
@media (max-width:820px) {
  .vivo-status { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:7px; padding:9px; }
  .vivo-intro { flex-basis:100%; font-size:15px; line-height:1.25; }
  .vivo-clock { font-size:15px; }
  .vivo-modes { gap:3px; }
  .vivo-modes button { padding-inline:7px; font-size:16px; }
  .vivo-bedside { grid-template-columns:minmax(0,1fr); gap:7px; }
  .vivo-bedside > [data-vivo-monitor] { grid-row:1; }
  :root[data-visit] .vivo-session { scroll-margin-top:var(--study-header-height,0px); }
  .vivo-head { gap:1px; }
  .vivo-page { gap:9px; }
  .vivo-session:has(.vivo-actions) .vivo-actions-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .vivo-session .vivo-actions-tabs .vivo-control-button { padding:4px 2px; font-size:14px; }
  .vivo-session .vivo-actions-tabs [data-vivo-tab=proc] { font-size:12px; }
  .vivo-session:has(.vivo-actions) .vivo-room-exam-list { display:none; }
  :root[data-visit] .vivo-session :is(.vivo-stage,.vivo-care) { scroll-margin-top:var(--study-header-height,0px); }
}
