/* Shared support pages and sheets. Entry portraits, core chat and video controls keep their established composition. */
body[data-patient-theme]{--b29-paper:#FFFFFF;--b29-canvas:#F9F9F7;--b29-fill:#F0EFEC;--b29-line:#E1E0DA;--b29-ink:#242421;--b29-muted:#65645F;--b29-action:#20201D;--b29-danger:#914B43;--b29-focus:rgb(54 83 201 / .25);}
html body.patient:is(.b27-profile,.b27-records){background:var(--b29-canvas);color:var(--b29-ink);--bg:var(--b29-canvas);--surface:var(--b29-paper);--fill:var(--b29-fill);--line:var(--b29-line);--ink:var(--b29-ink);--ink2:var(--b29-muted);--brand:var(--b29-action);--brand-d:var(--b29-action);}
html body.patient:is(.b27-profile,.b27-records)>.b27-companion{display:none;}
html body.patient:is(.b27-profile,.b27-records)>.htop{width:min(760px,100%);max-width:760px;min-height:76px;padding:16px 20px;margin:0 auto;}
html body.patient:is(.b27-profile,.b27-records) :is(.profile-main,.layout){width:min(720px,calc(100% - 40px));max-width:none;margin:24px auto 48px;padding:0;}
html body.patient:is(.b27-profile,.b27-records) :is(h1,#page-title){font-size:1.875rem;line-height:1.3;font-weight:600;letter-spacing:-.025em;margin:0 0 10px;}
html body.patient:is(.b27-profile,.b27-records) .lead{font-size:.875rem;line-height:1.65;max-width:46ch;margin:0 0 24px;color:var(--b29-muted);}
html body.patient.b27-profile .profile-forms{padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:24px;}
html body.patient.b27-profile .b27-profile-tabs{background:var(--b29-fill);border-radius:16px;}
html body.patient.b27-profile .b27-profile-tabs::before{box-shadow:0 2px 5px -2px rgb(36 36 33 / .14);}
html body.patient.b27-profile .b27-profile-tabs button{font-weight:400;color:var(--b29-muted);}
html body.patient.b27-profile .b27-profile-tabs button[aria-selected=true]{font-weight:600;color:var(--b29-ink);}
html body.patient.b27-profile .profile-forms :is(#profile-form,#password-form){gap:16px;padding:0;}
html body.patient.b27-profile .b29-field-group{border-radius:20px;background:var(--b29-fill);overflow:hidden;}
html body.patient.b27-profile .b29-field-group>label{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:12px;min-height:68px;margin:0 16px;padding:6px 0;border-bottom:1px solid var(--b29-line);color:var(--b29-muted);font-size:.875rem;font-weight:400;box-sizing:border-box;}
html body.patient.b27-profile .b29-field-group>label:last-child{border-bottom:0;}
html body.patient.b27-profile .b29-field-group .label-row{display:flex;align-items:flex-start;flex-direction:column;gap:2px;}
html body.patient.b27-profile .b29-field-group .label-row small{font-size:.6875rem;color:var(--b29-muted);}
html body.patient.b27-profile .b29-field-group input{width:100%;height:50px;min-height:50px;padding:10px 0;border:0;border-radius:8px;background:transparent;box-shadow:none;font-size:1rem;color:var(--b29-ink);text-align:right;}
html body.patient.b27-profile .b29-field-group input::placeholder{color:var(--b29-muted);opacity:1;}
html body.patient.b27-profile .b29-field-group .b26-password-field{min-width:0;}
html body.patient.b27-profile .b29-field-group .b26-password-field input{padding-right:50px;text-align:left;}
html body.patient.b27-profile .b26-password-toggle{width:44px;min-height:44px;right:0;color:var(--b29-muted);background:none;}
html body.patient.b27-profile .profile-forms .field-hint{margin:0 16px;font-size:.75rem;line-height:1.65;color:var(--b29-muted);}
html body.patient.b27-profile .profile-forms button[type=submit]{margin-top:4px;background:var(--b29-action);color:#fff;box-shadow:none;font-weight:500;}
html body.patient.b27-profile #profile-times{margin:20px 0 0;font-size:.6875rem;line-height:1.7;color:var(--b29-muted);}
html body.patient.b27-records .record-search{padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:8px;grid-template-columns:minmax(0,1fr) auto;}
.b29-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html body.patient.b27-records .record-search>label{gap:0;}
html body.patient.b27-records .record-search input[name=q]{height:50px;min-height:50px;border:0;border-radius:16px;background:var(--b29-fill);padding:12px 16px;}
html body.patient.b27-records .record-search .search-submit{min-height:50px;min-width:68px;padding:0 16px;box-shadow:none;background:var(--b29-action);color:#fff;font-weight:500;}
html body.patient.b27-records .record-filters{margin:0;}
html body.patient.b27-records .record-filters>summary{min-height:44px;color:var(--b29-muted);font-size:.75rem;padding:0;}
html body.patient.b27-records .record-filter-fields :is(input,select){background:var(--b29-fill);border:0;}
html body.patient.b27-records .records-summary{margin:12px 0;padding:0;font-size:.75rem;color:var(--b29-muted);}
html body.patient.b27-records .visit-list{display:flex;flex-direction:column;gap:0;padding:0 16px;border-radius:20px;background:var(--b29-fill);overflow:hidden;}
html body.patient.b27-records .visit-card{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;gap:0 14px;align-items:start;padding:14px 0;border:0;border-bottom:1px solid var(--b29-line);border-radius:0;background:transparent;box-shadow:none;}
html body.patient.b27-records .visit-card:last-child{border-bottom:0;}
html body.patient.b27-records .visit-portrait{grid-column:1;grid-row:1;align-self:start;width:44px;height:44px;min-height:44px;border-radius:50%;overflow:hidden;background-size:cover;background-position:50% 50%;}
html body.patient.b27-records .visit-face{display:none;}
html body.patient.b27-records .visit-main{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:0;min-width:0;}
html body.patient.b27-records .visit-heading{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;}
html body.patient.b27-records .visit-heading h2{margin:0;font-size:1rem;line-height:1.4;font-weight:600;}
html body.patient.b27-records .visit-status{padding:3px 7px;font-size:.625rem;line-height:1.4;background:#E4E3DE;color:var(--b29-muted);}
html body.patient.b27-records .visit-status[data-review=true]{background:#F5E9D4;color:#795820;}
html body.patient.b27-records .visit-time{grid-column:1;margin:0;font-size:.75rem;line-height:1.5;color:var(--b29-muted);font-variant-numeric:tabular-nums;}
html body.patient.b27-records .visit-meta{grid-column:2;margin:0;font-size:.75rem;line-height:1.5;color:var(--b29-muted);white-space:nowrap;}
html body.patient.b27-records .visit-actions{grid-column:2;grid-row:2;display:flex;justify-content:flex-start;gap:8px;margin:10px 0 0;padding:0;}
html body.patient.b27-records .visit-actions>:is(a,button){min-height:44px;padding:0 14px;background:#fff;color:var(--b29-ink);box-shadow:none;font-size:.75rem;font-weight:500;}
html body.patient.b27-records .visit-actions>:is(a,button):last-child:not(:first-child){background:var(--b29-action);color:#fff;}
html body.patient.b27-records .records-empty{margin:0;padding:36px 8px;background:transparent;border:0;border-radius:0;box-shadow:none;}
html body.patient.b27-records .records-empty h2{font-size:1.125rem;font-weight:600;}
html body.patient.b27-records .records-empty p{font-size:.8125rem;color:var(--b29-muted);}
html body.patient.b27-records .records-empty>:is(a,button){background:var(--b29-action);color:#fff;box-shadow:none;}
html body.patient.b27-records .records-privacy{margin:22px 0 0;font-size:.6875rem;line-height:1.7;color:var(--b29-muted);}
html body.patient.b27-records .pager{margin-top:18px;font-size:.75rem;}
/* Every patient sheet uses the same frame, header, close control, fill and action palette. */
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#transcript-dialog,#pain-location-dialog)[data-b29-shell][open]{display:flex;flex-direction:column;box-sizing:border-box;inset:0;width:min(720px,calc(100vw - 32px));height:fit-content;min-height:0;max-width:none;max-height:calc(var(--dialog-viewport,100dvh) - 24px);margin:auto;padding:0;overflow:hidden;border:0;border-radius:28px;background:var(--b29-paper);color:var(--b29-ink);box-shadow:0 24px 64px -26px rgb(25 25 23 / .28);--bg:var(--b29-paper);--surface:var(--b29-paper);--fill:var(--b29-fill);--line:var(--b29-line);--ink:var(--b29-ink);--ink2:var(--b29-muted);--brand:var(--b29-action);--brand-d:var(--b29-action);}
html body[data-patient-theme] :is(#summary-dialog,#detail-dialog,#pain-location-dialog)[data-b29-shell][open]{height:min(780px,calc(var(--dialog-viewport,100dvh) - 24px));}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#transcript-dialog,#pain-location-dialog,#voice-preview) .b29-sheet-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;min-height:68px;margin:0;padding:12px 20px;background:var(--b29-paper);border:0;border-bottom:1px solid var(--b29-line);color:var(--b29-ink);}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#transcript-dialog,#pain-location-dialog,#voice-preview) .b29-sheet-head :is(h2,h3){display:block;margin:0;font-size:1.0625em;line-height:1.4;font-weight:600;color:var(--b29-ink);}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#transcript-dialog,#voice-preview) .b29-sheet-close{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:var(--b29-fill);color:var(--b29-muted);box-shadow:none;font-size:0;}
html body[data-patient-theme] .b29-sheet-close .icon{width:20px;height:20px;color:var(--b29-muted);}
.b29-close-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#transcript-dialog) :is(.b26-dialog-scroll,.summary-scroll,#detail-content,#call-transcript-list){min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px;background:var(--b29-paper);color:var(--b29-ink);}
html body[data-patient-theme] #call-transcript-list{min-height:140px;max-height:none;}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#transcript-dialog) :is(.b26-dialog-footer,.summary-footer,.transcript-note){flex:none;margin:0;padding:12px 20px;background:var(--b29-paper);border:0;border-top:1px solid var(--b29-line);color:var(--b29-muted);}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#voice-preview,#pain-location-dialog) :is(.dialog-primary,#b24-summary-generate,#summary-download,#voice-preview-send,#pain-map-confirm){background:var(--b29-action);border-color:var(--b29-action);color:#fff;box-shadow:none;border-radius:99px;font-weight:500;}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#voice-preview,#pain-location-dialog) :is(.dialog-secondary,#summary-copy,#summary-save,#summary-back,#voice-preview-rerecord){background:var(--b29-fill);border:0;color:var(--b29-ink);box-shadow:none;border-radius:99px;font-weight:500;}
html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#voice-preview,#pain-location-dialog) :is(.dialog-primary,.dialog-secondary,#voice-preview-send,#pain-map-confirm):disabled{background:#E4E3DE;border-color:#E4E3DE;color:#77766D;box-shadow:none;opacity:1;}
html body[data-patient-theme] :is(#summary-dialog,#detail-dialog,#settings-dialog) :is(input,textarea,select){background:var(--b29-fill);border:1px solid transparent;border-radius:16px;color:var(--b29-ink);box-shadow:none;}
html body[data-patient-theme] #settings-dialog input[type=checkbox]{accent-color:#3653C9;}
html body[data-patient-theme] #menu-dialog :is(.mi-ic,.fs){background:var(--b29-fill);color:var(--b29-ink);}
html body[data-patient-theme] #menu-dialog .mi{color:var(--b29-ink);}
html body[data-patient-theme] #menu-dialog .mi-t{flex:none;white-space:nowrap;}
html body[data-patient-theme] #menu-dialog .mi-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--b29-muted);}
html body[data-patient-theme] #menu-dialog .mi.warn{color:var(--b29-danger);}
html body[data-patient-theme] #transcript-dialog .transcript-message .message-speaker{font-size:.75em;color:var(--b29-muted);}
html body[data-patient-theme] #transcript-dialog .transcript-message[data-role=assistant] .bub{border:0;border-radius:16px;background:var(--b29-fill);color:var(--b29-ink);padding:14px 16px;box-shadow:none;}
html body[data-patient-theme] #transcript-dialog .transcript-message[data-role=user] .bub{background:#3653C9;color:#fff;border:0;border-radius:16px;padding:14px 16px;}
html body[data-patient-theme] #transcript-dialog .reply-note{border-color:var(--b29-line);color:var(--b29-muted);}
html body[data-patient-theme] #detail-content .record-message[data-role=user] .record-text{background:#3653C9;color:#fff;border:0;border-radius:16px;}
html body[data-patient-theme] #detail-content .record-message[data-role=assistant] .record-text{background:var(--b29-fill);color:var(--b29-ink);border:0;border-radius:16px;padding:14px 16px;}
html body[data-patient-theme] #detail-dialog #detail-content>.actions>:is(a,button){min-height:44px;background:var(--b29-fill);color:var(--b29-ink);box-shadow:none;border:0;border-radius:99px;}
html body[data-patient-theme] dialog[data-b29-shell]::backdrop{background:rgb(25 25 23 / .28);}
/* The recording overlay is not a native dialog, but its review panel uses the same sheet structure. */
html body[data-patient-theme] #voice-overlay[data-state=preview]{background:rgb(25 25 23 / .28);padding:0;}
html body[data-patient-theme] #voice-overlay #voice-preview:not([hidden]){display:flex;flex-direction:column;box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(var(--dialog-viewport,100dvh) - 24px);margin:auto;padding:0;border:0;border-radius:28px;background:var(--b29-paper);color:var(--b29-ink);overflow:hidden;box-shadow:0 24px 64px -26px rgb(25 25 23 / .28);animation:b29-preview-in 220ms cubic-bezier(.23,1,.32,1);}
html body[data-patient-theme] #voice-preview .b29-sheet-body{min-height:0;overflow:auto;padding:20px;background:var(--b29-paper);}
html body[data-patient-theme] #voice-preview .b29-sheet-head h2{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;}
html body[data-patient-theme] #voice-preview .b29-sheet-body>label{display:block;margin:0 0 10px;color:var(--b29-muted);font-size:.8125em;font-weight:400;}
html body[data-patient-theme] #voice-preview #voice-preview-text{width:100%;box-sizing:border-box;min-height:124px;margin:0;padding:14px 16px;background:var(--b29-fill);border:1px solid transparent;border-radius:16px;color:var(--b29-ink);font-size:1em;line-height:1.65;box-shadow:none;}
html body[data-patient-theme] #voice-preview .voice-preview-note{margin:12px 0 0;color:var(--b29-muted);font-size:.8125em;line-height:1.65;}
html body[data-patient-theme] #voice-preview .b29-sheet-footer{flex:none;padding:12px 20px;background:var(--b29-paper);border-top:1px solid var(--b29-line);}
html body[data-patient-theme] #voice-preview .voice-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;}
html body[data-patient-theme] #voice-preview .voice-preview-actions>button{min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:99px;}
html body[data-patient-theme] #voice-preview #voice-preview-send{grid-column:1/-1;order:initial;background:var(--b29-action);color:#fff;}
html body[data-patient-theme] #voice-preview #voice-preview-cancel{background:var(--b29-fill);color:var(--b29-danger);}
/* Doctor-facing reading: full clinical text, quiet section hierarchy and compact source-preserving rows. */
html body[data-patient-theme] #summary-doctor{font-family:inherit;color:var(--b29-ink);font-size:1em;line-height:1.65;}
html body[data-patient-theme] #summary-doctor>section{margin:0 0 24px;padding:0 0 22px;border:0;border-bottom:1px solid var(--b29-line);background:none;border-radius:0;}
html body[data-patient-theme] #summary-doctor>section:last-of-type{margin-bottom:16px;}
html body[data-patient-theme] #summary-doctor h4{margin:0 0 14px;padding:0;font-size:1.0625em;line-height:1.5;font-weight:600;color:var(--b29-ink);}
html body[data-patient-theme] :is(#summary-doctor p,#detail-content[data-doctor-report] > p){font-size:1em;line-height:1.65;color:var(--b29-ink);}
html body[data-patient-theme] :is(#summary-doctor,#detail-content[data-doctor-report]) p[data-b29-clinical]{white-space:normal;margin:0;}
.b29-clinical-line{display:block;margin:0 0 8px;overflow-wrap:anywhere;}
.b29-clinical-line:last-child{margin-bottom:0;}
.b29-clinical-label{font-weight:600;}
.b29-clinical-value{font-weight:400;}
html body[data-patient-theme] #detail-content[data-doctor-report]>h2{margin:8px 0 14px;font-size:1.375em;font-weight:600;line-height:1.4;}
html body[data-patient-theme] #detail-content[data-doctor-report]>h3{margin:28px 0 12px;font-size:1.0625em;line-height:1.5;font-weight:600;}
html body[data-patient-theme] #detail-content[data-doctor-report]>.actions{position:static;margin:0 0 22px;padding:0;border:0;background:none;gap:8px;}
html body[data-patient-theme] #detail-content[data-doctor-report]>.actions>:is(a,button){min-height:44px;margin:0;background:var(--b29-fill);color:var(--b29-ink);border-radius:99px;box-shadow:none;font-size:.75em;font-weight:500;}
html body[data-patient-theme] #detail-content .record-confirmed-badge{color:#28725F;background:#E6F1EC;font-size:.75em;}
html body[data-patient-theme] #b26-summary-state{margin:0 0 24px;font-size:.75em;font-weight:500;}
html body[data-patient-theme] #summary-dialog:has(#summary-doctor:not([hidden])) .summary-footer{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center;}
html body[data-patient-theme] #summary-dialog:has(#summary-doctor:not([hidden])) .summary-footer:has(#summary-actions:not([hidden])) #summary-actions:not([hidden]){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;grid-column:1;grid-row:1;}
html body[data-patient-theme] #summary-dialog:has(#summary-doctor:not([hidden])) #summary-actions button{min-height:44px;padding:6px 4px;font-size:.75em;line-height:1.4;}
.b29-back-icon{display:none;}
.b29-compact-label{display:none;}
html body[data-patient-theme] #summary-dialog:has(#summary-doctor:not([hidden])) :is(.b29-full-label,.b29-back-text){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html body[data-patient-theme] #summary-dialog:has(#summary-doctor:not([hidden])) .b29-compact-label{display:inline;}
html body[data-patient-theme] #summary-dialog:has(#summary-doctor:not([hidden])) .summary-footer:has(#summary-actions:not([hidden])) #summary-back{display:grid;place-items:center;grid-column:2;grid-row:1;width:44px;max-width:none;min-width:44px;height:44px;min-height:44px;padding:0;font-size:0;}
html body[data-patient-theme] #summary-dialog:has(#summary-doctor:not([hidden])) #summary-back .b29-back-icon{display:block;width:20px;height:20px;font-size:1rem;color:var(--b29-ink);}
html body[data-patient-theme] :is([data-b29-shell],.profile-main,.layout) :is(input,textarea,button,a,select):focus-visible{outline:3px solid var(--b29-focus);outline-offset:3px;box-shadow:none;}
html body[data-patient-theme] :is([data-b29-shell],.profile-main,.layout) :is(input,textarea){caret-color:var(--b29-ink);}
html body[data-patient-theme] :is([data-b29-shell],.profile-main,.layout) ::selection{background:#DDE3F8;color:#242421;}
html body[data-patient-theme] :is(.summary-scroll,.b26-dialog-scroll,#detail-content,#call-transcript-list,.b29-sheet-body){scrollbar-width:thin;scrollbar-color:#C6C5BE transparent;}
@keyframes b29-preview-in{from{opacity:.4;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(max-width:719px){
 html:has(body.b27-profile),html:has(body.b27-records){scrollbar-gutter:auto;scrollbar-width:none;}
 html:has(body.b27-profile)::-webkit-scrollbar,html:has(body.b27-records)::-webkit-scrollbar{width:0;}
 html body.patient:is(.b27-profile,.b27-records)>.htop{min-height:72px;padding:14px 20px;}
 html body.patient:is(.b27-profile,.b27-records) :is(.profile-main,.layout){margin-top:24px;}
 html body.patient:is(.b27-profile,.b27-records) :is(h1,#page-title){font-size:1.75rem;}
 html body[data-patient-theme] :is(#menu-dialog,#settings-dialog,#privacy-dialog,#end-dialog,#summary-dialog,#detail-dialog,#transcript-dialog,#pain-location-dialog)[data-b29-shell][open]{inset:auto 0 0;width:100%;max-height:calc(var(--dialog-viewport,100dvh) - 12px);margin:0;border-radius:28px 28px 0 0;}
 html body[data-patient-theme] :is(#summary-dialog,#detail-dialog,#pain-location-dialog)[data-b29-shell][open]{height:min(780px,calc(var(--dialog-viewport,100dvh) - 12px));}
 html body[data-patient-theme] #voice-overlay[data-state=preview]{align-items:flex-end;}
 html body[data-patient-theme] #voice-overlay #voice-preview:not([hidden]){width:100%;margin:0;max-height:calc(var(--dialog-viewport,100dvh) - 12px);border-radius:28px 28px 0 0;}
}
@media(max-width:359px){
 html body.patient:is(.b27-profile,.b27-records)>.htop{padding-inline:16px;}
 html body.patient:is(.b27-profile,.b27-records) :is(.profile-main,.layout){width:calc(100% - 32px);}
 html body.patient.b27-profile .b29-field-group>label{grid-template-columns:82px minmax(0,1fr);gap:8px;margin-inline:14px;}
 html body.patient.b27-records .visit-list{padding-inline:14px;}
 html body.patient.b27-records .visit-card{gap:0 10px;}
 html body.patient.b27-records .visit-actions>:is(a,button){padding-inline:12px;}
}
@media(max-height:540px){
 html body[data-patient-theme] .b29-sheet-head{min-height:56px!important;padding-block:6px!important;}
 html body[data-patient-theme] :is(.b26-dialog-scroll,.summary-scroll,#detail-content,#call-transcript-list,.b29-sheet-body){padding-top:14px!important;padding-bottom:14px!important;}
 html body[data-patient-theme] #voice-preview .voice-preview-actions{grid-template-columns:repeat(3,minmax(0,1fr));}
 html body[data-patient-theme] #voice-preview #voice-preview-send{grid-column:auto;}
 html body[data-patient-theme] #voice-preview #voice-preview-text{min-height:72px;max-height:96px;}
 html body[data-patient-theme] #voice-preview .b29-sheet-footer{padding-block:8px;}
}
@media(hover:hover) and (pointer:fine){html body.patient.b27-records .visit-card:hover{background:transparent;box-shadow:none;}html body.patient.b27-records .visit-actions>:is(a,button):hover{filter:brightness(.96);}html body.patient.b27-profile .profile-forms button[type=submit]:not(:disabled):hover{background:#363630;}}
@media(prefers-reduced-motion:reduce){html body[data-patient-theme] #voice-overlay #voice-preview:not([hidden]){animation:none;}}
html[data-ui-input=keyboard] body[data-patient-theme] #voice-overlay #voice-preview:not([hidden]),html[data-motion-reduced=true] body[data-patient-theme] #voice-overlay #voice-preview:not([hidden]){animation:none;}
/* Full-page conversation entry and record reading; no chat-history modal. */
html[data-record-page=true]:has(body.b27-records){scrollbar-gutter:auto;}
html body.video-call #text-chat-open{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:84px;padding:0;border:0;background:none;color:var(--ink);font-size:.75rem;font-weight:500;}
html body.video-call #text-chat-open .ci{display:grid;place-items:center;width:54px;height:54px;border:1px solid var(--line);border-radius:50%;background:#FFFFFF;}
html body.video-call .cbar #type-panel:not([open]){display:none;}
html body.video-call .cbar #type-panel[open]{grid-column:1/-1;order:4;width:100%;}
html body.video-call #type-panel>summary{display:none;}
html body.video-call #text-chat-open{grid-column:1;grid-row:1;}
html body.video-call .cbar .cmain{grid-column:2;grid-row:1;}
html body.video-call .cbar #hangup{grid-column:3;grid-row:1;}
html[data-record-page=true] body.patient.b27-records{margin:0;padding:0;height:100dvh;overflow:hidden;background:var(--b29-canvas);}
html[data-record-page=true] body.patient.b27-records>:is(.htop,.layout,.b27-companion){display:none;}
html[data-record-page=true] body.patient #detail-dialog.record-page{display:flex;flex-direction:column;width:100%;height:100dvh;max-width:none;max-height:none;position:static;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--b29-canvas);color:var(--b29-ink);}
html[data-record-page=true] body.patient #detail-dialog .dialog-head{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex:none;min-height:72px;padding:12px max(20px,calc((100% - 920px)/2));background:var(--b29-canvas);border-bottom:1px solid var(--b29-line);}
html[data-record-page=true] body.patient #record-detail-title{margin:0;font-size:1.0625rem;line-height:1.5;font-weight:600;order:2;}
html[data-record-page=true] body.patient #close-detail{display:grid;place-items:center;order:1;min-width:44px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:var(--b29-fill);color:var(--b29-ink);font-size:1rem;}
html[data-record-page=true] body.patient #detail-content{flex:1;min-height:0;width:100%;max-width:none;overflow:auto;padding:20px max(20px,calc((100% - 880px)/2));background:transparent;}
html[data-record-page=true] body.patient #detail-content[data-doctor-report]{background:var(--b29-paper);}
html[data-record-page=true] body.patient #detail-dialog>#page-error{margin:8px 20px;}
@media(max-height:540px){html[data-record-page=true] body.patient #detail-dialog .dialog-head{min-height:56px;padding-block:6px;}html body.video-call #text-chat-open{min-height:72px;gap:4px;}html body.video-call #text-chat-open .ci{width:44px;height:44px;}}
