/* Visit-only stock and ink. The branded blue home canvas is independent. */
body.premium-ui.in-visit[data-page="visit"] {
  --frame-paper:#f2f2ef;
  --frame-ink:#292e32;
  --frame-muted:#585f62;
  --line:#dddfdc;
  background:var(--frame-paper);
}
body.premium-ui.desktop-workbench .round-sheet {
  --sheet-ink:#292e32; --sheet-sub:#4d5558; --sheet-muted:#5d6568;
  --sheet-line:#dddfdd; --sheet-blue:#144bc4; --sheet-card:#fff;
  --sheet-lift:0 3px 8px -5px rgba(40,43,40,.12);
}
body.premium-ui.in-visit .clinic-frame .round-sheet.visit-page {
  max-width:1900px; margin:auto; padding:0 clamp(14px,1.65vw,32px); width:100%;
  min-height:620px; color:var(--sheet-ink);
}
body.premium-ui.desktop-workbench .round-sheet .patient-bar {
  display:flex; align-items:center; flex-wrap:nowrap; gap:14px; min-height:72px;
  padding:8px 0; background:transparent; border:0;
}
.round-sheet .patient-bar .visit-back { width:40px; min-width:40px; }
body.premium-ui.desktop-workbench .round-sheet .patient-summary { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
body.premium-ui.desktop-workbench .round-sheet .patient-summary h1 { margin:0; font-size:clamp(19px,1.5vw,24px); font-weight:620; line-height:1.35; letter-spacing:-.45px; color:#142b49; }
body.premium-ui.desktop-workbench .round-sheet .patient-summary p { color:var(--sheet-sub); margin:0; font-size:15px; }
body.premium-ui.desktop-workbench .round-sheet .mode-badge { font-size:14px; font-weight:500; padding:2px 8px; background:#e2ebf8; color:#365878; border:0; border-radius:6px; }
body.premium-ui.desktop-workbench .round-sheet .save-indicator { margin-left:auto; flex:none; color:#4f647c; }
body.premium-ui.desktop-workbench .round-sheet .workspace {
  display:grid; grid-template-columns:minmax(0,32fr) minmax(0,40fr) minmax(0,28fr);
  grid-template-areas:"dialogue questions notes"; gap:16px; align-items:stretch; flex:1; min-height:0;
}
body.premium-ui.in-visit .clinic-frame .round-sheet .workspace > .card {
  display:flex; flex-direction:column; grid-column:auto; border-radius:18px; border:1px solid var(--sheet-line);
  box-shadow:var(--sheet-lift); background:var(--sheet-card); min-width:0; min-height:0; height:auto; overflow:hidden;
}
body.premium-ui.desktop-workbench .round-sheet .workspace > .conversation { grid-area:dialogue; }
body.premium-ui.desktop-workbench .round-sheet .workspace > .assistant-panel { grid-area:questions; border-top:3px solid var(--sheet-blue); }
body.premium-ui.desktop-workbench .round-sheet .workspace > .facts-panel { grid-area:notes; }
body.premium-ui.in-visit .clinic-frame .round-sheet .workspace > .assistant-panel { background:#fafaf8; }
body.premium-ui.in-visit .clinic-frame .round-sheet .workspace > .facts-panel { background:#fcfcfb; }
body.premium-ui.desktop-workbench .round-sheet .panel-heading {
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0;
  min-height:60px; flex:none; padding:8px 18px; position:relative;
  background:transparent; border:0; border-bottom:1px solid var(--sheet-line);
}
body.premium-ui.desktop-workbench .round-sheet .panel-heading h2 { margin:0; font-size:20px;line-height:1.4; letter-spacing:-.55px; font-weight:620; color:var(--sheet-ink); white-space:nowrap; }
body.premium-ui.desktop-workbench .round-sheet .panel-heading .count,
.round-sheet #advice-badge { display:inline-grid; place-items:center; min-width:22px; padding:1px 6px; border-radius:7px; font-variant-numeric:tabular-nums; font-size:14px; line-height:1.45; color:#365581; background:#e7effa; }
body.premium-ui.desktop-workbench .round-sheet .panel-heading .button { min-height:42px; font-size:15px; padding:5px 7px; color:#426389; }
body.premium-ui.desktop-workbench .round-sheet .conversation-tools,
body.premium-ui.desktop-workbench .round-sheet .assistant-tools { display:flex; align-items:center; gap:2px; flex:none; }
body.premium-ui.desktop-workbench .round-sheet .assistant-title { display:grid; gap:2px; align-items:center; min-width:0; }
.round-sheet .live-status:empty { display:none; }
.round-sheet .round-more { position:relative; }
.round-sheet .round-more summary,.round-sheet .assistant-tools .sound-toggle { display:grid; place-items:center; width:42px; min-height:42px; padding:0; list-style:none; border:0; color:#456088; background:transparent; border-radius:8px; cursor:pointer; }
.round-sheet .round-more summary::-webkit-details-marker { display:none; }
.round-sheet .sound-toggle span { display:none; }
.round-sheet .round-more summary:focus-visible,.round-sheet .round-more summary:hover,.round-sheet .round-more[open] summary { background:#edf3fc; }
.round-sheet .round-more > div { position:absolute; right:0; top:100%; z-index:12; background:white; border:1px solid var(--sheet-line); border-radius:12px; padding:4px; box-shadow:0 8px 20px #19386424; min-width:146px; }
.round-sheet .round-more button { display:block; text-align:left; width:100%; padding:9px 12px; min-height:44px; border:0; background:transparent; color:#2b4262; font:inherit; }
.round-sheet .round-more button:hover { background:#edf3fc; }
body.premium-ui.desktop-workbench .round-sheet .round-tabs { flex:none; display:flex; margin:0; padding:0 14px; gap:14px; border:0; border-radius:0; border-bottom:1px solid var(--sheet-line); background:transparent; }
body.premium-ui.desktop-workbench .round-sheet .round-tabs button { flex:none; border-radius:0; min-height:46px; padding:8px 4px; font-size:15px; font-weight:500; background:transparent; border:0; border-bottom:2px solid transparent; color:var(--sheet-sub); box-shadow:none; }
body.premium-ui.desktop-workbench .round-sheet .round-tabs button[aria-selected="true"] { color:#1446ad; border-bottom-color:#1753c4; font-weight:620; }
body.premium-ui.desktop-workbench .round-sheet .assistant-content,body.premium-ui.desktop-workbench .round-sheet .facts-content {
  min-height:0; max-height:none; flex:1; margin:0; padding:0 18px 16px; overflow:auto; scrollbar-gutter:stable; scrollbar-color:#b9c9dc transparent;
}
body.premium-ui.desktop-workbench .round-sheet .assistant-content:has(.clinical-focus),.round-sheet .facts-content:has(.draft-heading) { padding-top:12px; }
body.premium-ui.desktop-workbench .round-sheet .assistant-disclaimer { border-top:1px solid #e2e9f2; background:#fcfdff; color:#526378; padding:8px 14px; font-size:14px; flex:none; line-height:1.5; }
/* A warm index tab and a paper edge carry the risk cue without a yellow wash. */
body.premium-ui.desktop-workbench .round-sheet #patient-priority:not([hidden]) {
  position:relative; z-index:1; flex:none; display:flex; align-items:flex-start; gap:8px;
  min-height:0; margin:12px 16px 8px; padding:10px 12px 10px 18px;
  border:1px solid #e1dacd; border-bottom-color:#d2c8b7; border-radius:12px;
  color:#393b36; background:#fffdf9;
  box-shadow:inset 0 1px 0 white,0 2px 0 -1px #d3c9b8,0 4px 6px -3px #48402e30,0 12px 18px -10px #443b2d42;
}
body.premium-ui.desktop-workbench .round-sheet #patient-priority:not([hidden])::before {
  content:""; position:absolute; inset:12px auto 12px 0; width:3px; background:#a86a15; border-radius:0 2px 2px 0; pointer-events:none;
}
.round-sheet .priority-banner-copy { flex:1; min-width:0; }
body.premium-ui.desktop-workbench .round-sheet .priority-banner .priority-banner-symbol { display:none; }
body.premium-ui.desktop-workbench .round-sheet .priority-banner-heading strong { font-size:14px; line-height:1.5; color:#86521a; }
body.premium-ui.desktop-workbench .round-sheet .priority-banner-copy p { color:#443f37; font-size:15px; line-height:1.5; margin:2px 0 0; }
body.premium-ui.desktop-workbench .round-sheet #patient-priority p { text-wrap:pretty; }
body.premium-ui.desktop-workbench .round-sheet .priority-banner-action { color:#825020; background:transparent; border:0; min-height:44px; padding:4px 6px; box-shadow:none; font-size:14px; }
.round-sheet .followup-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 0 5px; }
.round-sheet .followup-head h3 { font-size:15px; font-weight:560; color:var(--sheet-sub); margin:0; }
.round-sheet .followup-head > span { color:#536880; font-size:14px; }
.followup-list { list-style:none; padding:0; margin:0; }
.followup-row { --rank:#2156bc; --rank-light:#ecf2fd; display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; gap:12px; border-bottom:1px solid #e0e7f0; padding:13px 0 9px; text-align:left; }
.followup-row[data-tone="red"] { --rank:#c03243; --rank-light:#fceef0; }
.followup-row[data-tone="amber"] { --rank:#a95406; --rank-light:#fff1de; }
.followup-row.is-focused { outline:2px solid #83a6e0; outline-offset:-2px; }
.followup-rank { display:grid; place-items:center; background:var(--rank); color:#fff; font-size:18px; font-weight:650; line-height:1; width:32px; height:32px; border-radius:10px; font-variant-numeric:tabular-nums; }
.followup-copy,.followup-question { min-width:0; }
.followup-question { font-size:17px; font-weight:550; line-height:1.55; color:#1c304d; margin:0; overflow-wrap:anywhere; }
.followup-row:first-child {
  position:relative; margin:8px 1px 12px; padding:12px;
  border:1px solid #deded8; border-bottom-color:#c8cac3; border-radius:12px; background:#fff;
  box-shadow:inset 0 1px 0 white,0 2px 0 -1px #cdd0c9,0 4px 7px -3px #2a352d32,0 14px 20px -12px #29352c4d;
}
.followup-row:first-child:focus-visible,.followup-row:first-child.is-focused { outline:2px solid #2051ac; outline-offset:-2px; }
.followup-row:first-child .followup-question { font-size:18px; font-weight:620; }
.followup-row-meta { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:14px; line-height:1.4; color:#51637a; }
.followup-topic { color:var(--rank); font-size:14px; font-weight:500; }
body.premium-ui .button.followup-mark { min-height:44px; padding:5px 8px; border:0; background:transparent; box-shadow:none; color:#455d7e; font-size:14px; flex:none; }
body.premium-ui .button.followup-mark:hover { background:#e8f0fb; color:#163f91; }
/* This is an action, never a checked/completed status on a pending row. */
body.premium-ui .button.mark-as-asked {
  border:1px solid #ced6dc; border-radius:8px; background:#fff;
  color:#354c62; padding-inline:10px; font-weight:500; white-space:nowrap;
}
body.premium-ui .button.mark-as-asked:hover { background:#f4f6f7; border-color:#9caeba; }
body.premium-ui .button.mark-as-asked:active { background:#eaf0f3; }
body.premium-ui .button.mark-as-asked:focus-visible { outline:2px solid #2358b8; outline-offset:2px; }
.followup-mark .icon { width:16px; height:16px; }
.followup-history,.followup-awaiting,.followup-references,.round-missing { padding:0; border-bottom:1px solid var(--sheet-line,#dce5ef); margin:4px 0 0; }
.followup-history > summary,.followup-awaiting > summary,.followup-references > summary,.round-missing > summary { min-height:44px; padding:10px 0; cursor:pointer; font-size:15px; font-weight:550; color:#3d526d; }
.followup-history > summary span,.followup-awaiting > summary span,.followup-references > summary span,.round-missing > summary span { padding-left:6px; font-variant-numeric:tabular-nums; color:#516784; }
.followup-history ul,.followup-awaiting ul { margin:0; padding:0; list-style:none; }
.followup-awaiting li,.followup-history li,.followup-references article { border-top:1px solid #e5eaf2; padding:10px 2px; }
.followup-awaiting li p,.followup-history li p,.followup-references p,.followup-evidence blockquote { font-size:15px; margin:0 0 4px; line-height:1.65; }
.followup-evidence summary { color:#456284; font-size:14px; padding:6px 0; cursor:pointer; }
.completed-variants { margin-top:8px; }
.completed-variants > summary { min-height:44px; padding:8px 0; color:#456284; font-size:15px; cursor:pointer; }
.completed-variants > ul { padding-left:16px; border-left:2px solid #e5eaf2; }
.completed-variants > ul > li { padding:12px 0; }
.completed-wordings:empty { display:none; }
.completed-wordings:not(:empty) { margin-top:8px; padding-left:16px; border-left:2px solid #e5eaf2; }
body.premium-ui.desktop-workbench .round-sheet .conversation-feed { padding:4px 16px; overflow:auto; scrollbar-color:#bbc9da transparent; }
body.premium-ui.desktop-workbench .round-sheet .turn,body.premium-ui.desktop-workbench .round-sheet .turn.patient { display:grid; grid-template-columns:32px minmax(0,1fr); gap:10px; margin:0; padding:12px 0; border:0; border-bottom:1px solid #e8eef5; border-radius:0; background:transparent; text-align:left; }
body.premium-ui.desktop-workbench .round-sheet .turn .speaker-avatar { width:32px; height:32px; margin:1px 0 0; flex-basis:32px; border:1px solid #d9e4ef; }
body.premium-ui.desktop-workbench .round-sheet .turn .turn-bubble { width:100%; max-width:none; }
body.premium-ui.desktop-workbench .round-sheet .turn .turn-top { min-height:30px; display:flex; align-items:center; gap:8px; }
body.premium-ui.desktop-workbench .round-sheet .turn .turn-top > span { font-size:15px; color:#244878; font-weight:600; }
body.premium-ui.desktop-workbench .round-sheet .turn.patient .turn-top > span { color:#35626b; }
body.premium-ui.desktop-workbench .round-sheet .turn .turn-top time { font-size:14px; color:#57687d; }
body.premium-ui.desktop-workbench .round-sheet .turn .turn-edit { margin-left:auto; width:38px; min-width:38px; min-height:40px; height:40px; }
body.premium-ui.desktop-workbench .round-sheet .turn p,body.premium-ui.desktop-workbench .round-sheet .turn.patient p { display:block; width:auto; background:transparent; border:0; padding:0; margin:0; font-size:16px; line-height:1.7; color:#1b314b; }
body.premium-ui.desktop-workbench .round-sheet .turn.selected,body.premium-ui.desktop-workbench .round-sheet .turn.source-highlight { background:#eaf2ff; border-radius:8px; }
body.premium-ui.desktop-workbench .round-sheet .conversation-empty,body.premium-ui.desktop-workbench .round-sheet .advice-caught-up,.round-facts-empty { display:grid; justify-items:center; align-content:center; gap:12px; padding:36px 12px; min-height:150px; text-align:center; color:var(--sheet-muted); }
.round-sheet .conversation-empty h3,.round-sheet .advice-caught-up h3,.round-facts-empty strong { font-size:16px; font-weight:500; margin:0; }
.round-facts-empty .icon { width:26px; height:26px; }
body.premium-ui.desktop-workbench .round-sheet .round-fact { display:grid; grid-template-columns:1fr; text-align:left; gap:4px; min-height:52px; padding:14px 0; border:0; border-bottom:1px solid #dce5ef; background:transparent; }
.round-sheet .round-fact .fact-label { font-size:15px; color:#4a607b; font-weight:550; }
.round-sheet .round-fact .fact-value { font-size:16px;color:#1c314c; line-height:1.65; }
.round-sheet .round-fact-origin { color:#566b7f; font-size:15px; }
.round-sheet .round-missing > div { display:flex; gap:6px; flex-wrap:wrap; padding-bottom:10px; }
.round-sheet .round-missing button { color:#334f71; background:white; border:1px solid #d9e3f0; border-radius:8px; padding:6px 10px; min-height:42px; font:inherit; font-size:15px; }
.round-timeline { margin-top:20px; }
.round-timeline h3 { color:#485d76; font-size:16px; margin:0 0 6px; }
.round-timeline button { display:flex; width:100%; gap:10px; align-items:baseline; padding:8px 0; min-height:44px; font:inherit; text-align:left; background:transparent; border:0; }
.round-timeline button > span { color:#566e89; font-size:14px; white-space:nowrap; }
.round-timeline button strong { font-size:15px; font-weight:500; }

/* Hospital reports have a document entry point independent of spoken history. */
.hospital-record-access { margin-top:24px; padding-top:16px; border-top:1px solid var(--sheet-line,#dddfdd); }
.hospital-record-access > header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.hospital-record-access h3 { margin:0; color:#323a40; font-size:16px; font-weight:600; }
.hospital-link-state { display:inline-flex; align-items:center; gap:6px; color:#596365; font-size:15px; line-height:1.5; }
.hospital-link-state > svg { width:18px; height:18px; }
.hospital-link-state[data-hospital-state="connected"] { color:#29745c; }
.hospital-record-entries { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.premium-ui .hospital-record-entry { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; min-height:148px; margin:0; padding:16px; text-align:left; font:inherit; background:#fff; color:#29363e; border:1px solid #daddd8; border-radius:14px; box-shadow:0 3px 0 -2px #cbd0c8,0 8px 20px -14px #26372d5c; cursor:pointer; }
.hospital-record-icon { display:flex; align-items:center; justify-content:center; flex:none; width:36px; height:36px; border:1px solid #dce5ef; border-radius:10px; background:#f5f8fc; color:#335d94; }
.hospital-record-icon > svg { width:23px; height:23px; }
.hospital-record-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
.hospital-record-copy strong { font-size:16px; font-weight:600; line-height:1.5; }
.hospital-record-copy > span { font-size:15px; line-height:1.5; color:#596467; }
.hospital-record-copy .hospital-record-count { margin-top:4px; color:#3f5e82; }
body.premium-ui .hospital-record-entry:hover,body.premium-ui .hospital-document:hover { border-color:#a6b8c9; background:#fcfdff; }
body.premium-ui .hospital-record-entry:active,body.premium-ui .hospital-document:active { background:#f1f5f8; box-shadow:none; }
.hospital-record-entry:focus-visible,.hospital-document:focus-visible { outline:3px solid #2359b2; outline-offset:3px; }
body.premium-ui #dialog.hospital-records-dialog[open] { box-sizing:border-box; display:grid; grid-template-rows:auto minmax(0,1fr) auto; width:min(760px,calc(100vw - 32px)); height:min(740px,calc(100dvh - 32px)); max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); padding:0; overflow:hidden; background:#fff; border:1px solid #d5dad6; border-radius:20px; box-shadow:0 24px 72px -28px #26322b73; }
body.premium-ui #dialog.hospital-records-dialog .dialog-header,body.premium-ui #dialog.hospital-records-dialog .dialog-footer { position:static; padding:16px 24px; background:#fff; }
body.premium-ui #dialog.hospital-records-dialog .dialog-body { padding:20px 24px; min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; }
.hospital-records-view { color:#29343a; font-size:16px; line-height:1.6; }
.hospital-record-patient { margin:0 0 16px; font-size:16px; }
.hospital-link-banner { display:flex; gap:12px; padding:16px; border:1px solid #dce0da; border-radius:12px; background:#f6f7f4; }
.hospital-link-banner > svg { flex:none; width:24px; height:24px; margin-top:2px; color:#617375; }
.hospital-link-banner strong { font-weight:600; }
.hospital-link-banner p { margin:4px 0 0; color:#566063; }
.hospital-link-banner[data-hospital-state="connected"] { border-color:#cedfd5; background:#f6faf7; }
.hospital-link-banner[data-hospital-state="connected"] strong { color:#28654e; }
.hospital-documents-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:24px 0 16px; }
.hospital-documents-header h3,.hospital-local-record h3 { margin:0; font-size:17px; font-weight:600; }
.hospital-record-empty { display:grid; justify-items:center; align-content:center; gap:12px; min-height:220px; padding:24px 16px; text-align:center; border:1px solid #e0e3dd; border-radius:14px; background:#fcfcfa; }
.hospital-record-empty > svg { width:32px; height:32px; color:#758286; }
.hospital-record-empty strong { font-size:18px; font-weight:550; }
.hospital-record-empty p { max-width:440px; margin:0; font-size:16px; color:#626c6e; }
.hospital-record-error { padding:12px 16px; color:#8d4c22; background:#fff8ee; border-left:3px solid #bb8349; overflow-wrap:anywhere; }
.hospital-record-loading { min-height:120px; display:grid; place-content:center; padding:16px; color:#59676e; }
.hospital-document-list { display:grid; gap:12px; }
body.premium-ui .hospital-document { display:flex; align-items:center; gap:16px; width:100%; min-height:88px; padding:16px; border:1px solid #dce1db; border-radius:12px; background:#fff; font:inherit; text-align:left; color:#29343a; cursor:pointer; }
.hospital-document > span:nth-child(2) { display:grid; gap:8px; min-width:0; flex:1; }
.hospital-document strong { font-size:17px; font-weight:600; overflow-wrap:anywhere; }
.hospital-document > span:nth-child(2) > span { color:#5d6a6e; font-size:15px; overflow-wrap:anywhere; }
.hospital-document-open { flex:none; color:#2259ab; font-size:16px; }
.hospital-local-record { margin-top:24px; padding-top:16px; border-top:1px solid #dce1db; }
.hospital-local-record p { margin:8px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.hospital-report-document { color:#29343a; font-size:16px; line-height:1.8; }
.hospital-report-document > header { padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid #dce1db; }
.hospital-report-document h3 { margin:0; font-size:22px; line-height:1.5; font-weight:600; }
.hospital-report-document > header p { margin:8px 0 0; color:#5d6a6e; }
.hospital-report-document > div { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:620px) {
  body.premium-ui #dialog.hospital-records-dialog[open] { width:calc(100vw - 16px); height:calc(100dvh - 20px); max-width:calc(100vw - 16px); max-height:calc(100dvh - 20px); border-radius:16px; }
  body.premium-ui #dialog.hospital-records-dialog .dialog-header,body.premium-ui #dialog.hospital-records-dialog .dialog-footer { padding:12px 16px; }
  body.premium-ui #dialog.hospital-records-dialog .dialog-body { padding:16px; }
  .hospital-record-entries { gap:8px; }
  body.premium-ui .hospital-record-entry { padding:12px; }
  .hospital-document { flex-wrap:wrap; }
  .hospital-document-open { margin-left:52px; }
}
body.premium-ui.desktop-workbench .round-sheet .recording-dock { display:flex; flex:none; align-items:center; justify-content:space-between; gap:16px; min-height:80px; padding:10px 0; background:transparent; }
body.premium-ui.desktop-workbench .round-sheet .recording-console,body.premium-ui.desktop-workbench .round-sheet .report-dock { border:0; border-radius:0; box-shadow:none; background:transparent; min-height:54px; padding:2px 0; flex:none; width:auto; max-width:100%; }
body.premium-ui.desktop-workbench .round-sheet .round-switch { display:none; }
@media (min-width:851px) and (max-width:1099px) {
  body.premium-ui.desktop-workbench .round-sheet .workspace { grid-template-areas:"dialogue secondary"; grid-template-columns:minmax(0, .94fr) minmax(0,1.06fr); gap:12px; }
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab] > .conversation { display:flex; grid-area:dialogue; }
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab] > .assistant-panel { display:flex; grid-area:secondary; }
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab] > .facts-panel { display:none; grid-area:secondary; }
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab="facts"] > .assistant-panel { display:none; }
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab="facts"] > .facts-panel { display:flex; }
  body.premium-ui.desktop-workbench .round-sheet .round-switch { display:flex; align-self:flex-end; gap:6px; margin:0 0 8px; padding:0; border:0; background:transparent; }
  .round-sheet .round-switch button[data-value="chat"] { display:none; }
  .round-sheet .round-switch button { min-height:44px; padding:4px 14px; border-radius:9px; background:#fff; color:#405674; }
  .round-sheet .round-switch button[aria-pressed="true"],.round-switch:has([data-value="chat"][aria-pressed="true"]) button[data-value="assistant"] { background:#dce8fc; color:#194798; }
}
@media (max-width:850px) {
  body.premium-ui.in-visit .clinic-frame .round-sheet.visit-page { min-height:620px; padding:0 12px; }
  body.premium-ui.desktop-workbench .round-sheet .patient-bar { min-height:62px; gap:8px; flex-wrap:wrap; }
  body.premium-ui.desktop-workbench .round-sheet .patient-summary { flex:1; display:block; }
  body.premium-ui.desktop-workbench .round-sheet .patient-summary p { font-size:14px; margin-top:2px; }
  body.premium-ui.desktop-workbench .round-sheet .round-switch { display:flex; flex:none; gap:4px; padding:3px; margin:0 0 8px; border:0; border-radius:12px; background:#e4e5e1; }
  body.premium-ui.desktop-workbench .round-sheet .round-switch button { min-height:44px; padding:5px; border-radius:9px; font-size:15px; }
  body.premium-ui.desktop-workbench .round-sheet .workspace { display:flex; flex-direction:column; gap:0; min-height:0; }
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab] > .card { display:none; flex:1; height:auto; min-height:0; }
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab="chat"] > .conversation,
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab="assistant"] > .assistant-panel,
  body.premium-ui.desktop-workbench .round-sheet .workspace[data-phone-tab="facts"] > .facts-panel { display:flex; }
  body.premium-ui.desktop-workbench .round-sheet .recording-dock { display:flex; flex-direction:column; align-items:stretch; min-height:0; gap:0; padding:6px 0 4px; }
  body.premium-ui.desktop-workbench .round-sheet .recording-console,body.premium-ui.desktop-workbench .round-sheet .report-dock { width:100%; justify-content:space-between; }
}
@media (max-width:520px) {
  body.premium-ui.desktop-workbench .round-sheet #patient-priority:not([hidden]) {
    display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 8px;
    padding:2px 12px 10px 16px;
  }
  .round-sheet #patient-priority .priority-banner-copy { display:contents; }
  .round-sheet #patient-priority .priority-banner-heading { grid-area:1 / 1; align-self:center; }
  .round-sheet #patient-priority .priority-banner-action { grid-area:1 / 2; }
  body.premium-ui.desktop-workbench .round-sheet #patient-priority p { grid-area:2 / 1 / auto / -1; margin:0; -webkit-line-clamp:3; }
  body.premium-ui.desktop-workbench .round-sheet .patient-summary h1 { font-size:18px; }
  body.premium-ui.desktop-workbench .round-sheet .patient-bar .save-indicator { display:none; }
  body.premium-ui.desktop-workbench .round-sheet .panel-heading { min-height:52px; padding-inline:12px; }
  body.premium-ui.desktop-workbench .round-sheet .panel-heading h2 { font-size:18px; }
  body.premium-ui.desktop-workbench .round-sheet .assistant-content,body.premium-ui.desktop-workbench .round-sheet .facts-content { padding-inline:12px; }
  body.premium-ui.desktop-workbench .round-sheet .report-dock { flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) { .round-sheet * { scroll-behavior:auto; } }

.round-sheet #round-mobile-count:not([hidden]) { display:inline-grid; min-width:20px; place-items:center; font-size:14px; color:#244f98; background:#f5f9ff; border-radius:6px; }
.round-sheet .facts-content > .fact-inspector { margin:12px 0; }
.round-sheet .priority-banner .priority-banner-copy p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* Keep the face and speaker label separate, even with legacy avatar crops. */
body.premium-ui.desktop-workbench .round-sheet .turn .speaker-avatar.avatar-portrait {
  min-width:32px; min-height:32px; max-width:32px; max-height:32px; align-self:start; justify-self:start;
}
body.premium-ui.desktop-workbench .round-sheet .turn .speaker-avatar.avatar-portrait img {
  width:100%; height:100%; object-fit:cover; transform:scale(1.48); transform-origin:50% 24%;
}
body.premium-ui.desktop-workbench .round-sheet .round-switch button {
  display:inline-flex; flex-flow:row nowrap; align-items:center; justify-content:center; gap:6px; white-space:nowrap;
}
@media(min-width:851px) and (max-width:1099px) {
  body.premium-ui.desktop-workbench .round-sheet .round-switch button[data-value="chat"] { display:none; }
}
.followup-row[data-tone="red"] { --rank:#c52940; }
.followup-row[data-tone="amber"] { --rank:#b45309; }
@media(min-width:851px) {
  .followup-copy { display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:start; align-items:start; gap:3px 8px; }
  .followup-copy .followup-question { grid-column:1; grid-row:1; }
  .followup-copy .followup-row-meta { display:contents; }
  .followup-copy .followup-topic { grid-column:1; grid-row:2; line-height:1.45; }
  .followup-copy .followup-mark { grid-column:2; grid-row:1 / 3; align-self:center; }
  .followup-row { padding:11px 0; }
  .followup-row:first-child { padding:12px; }
}
/* Keep secondary questions available without crowding the current exchange. */
.followup-more { margin-top:16px; border-top:1px solid #dce3e6; padding-top:8px; }
.followup-more > summary { min-height:44px; padding:10px 0; color:#445b72; font-size:16px; font-weight:500; cursor:pointer; }
.followup-more > summary span { margin-left:8px; font-variant-numeric:tabular-nums; }
