/* Active encounters use one viewport. Long records and techniques scroll inside
   their workspace; browser scrolling and zoom events are never intercepted. */
body.encounter-workspace-active #view{padding:8px 12px!important;max-width:none;margin:0;min-height:0}
body.encounter-workspace-active .topbar{min-height:50px;padding:6px 14px;gap:10px}
body.encounter-workspace-active .topbar .brand .sub{display:none}
body.encounter-workspace-active .workspace-nav{display:none}
body.encounter-workspace-active .room.ew-room{height:var(--ew-available,calc(100dvh - 90px));max-height:var(--ew-available);min-height:0;max-width:none;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(420px,1.18fr);grid-template-rows:minmax(0,1fr) 48px;gap:8px 12px;align-items:stretch;margin:0}
.ew-room>.unity-room{grid-column:1;grid-row:1;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;margin:0;padding:0;border-radius:16px}
.ew-room .unity-heading{flex:0 0 auto;min-height:43px;padding:7px 12px;gap:8px}
.ew-room .unity-heading h2{font-size:19px}
.ew-room .unity-heading .patient-heading-actions{gap:6px;flex-wrap:nowrap}
.ew-room #patientFocus{font-size:10px;min-height:30px;padding:5px 7px}
.ew-room .unity-heading .state-pill{font-size:10px;padding:4px 7px}
body.encounter-workspace-active .ew-room #roomViewport{flex:1 1 0;height:0!important;min-height:0!important;width:100%}
.ew-room .trial-disclosure{font-size:10px;padding:4px 8px;flex:0 0 auto}
.ew-right{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ew-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px;flex:0 0 auto;padding:6px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.ew-tabs button{border:1px solid transparent;background:transparent;color:var(--ink-2);font:inherit;font-size:12px;font-weight:650;padding:9px 3px;border-radius:9px;cursor:pointer;white-space:nowrap}
.ew-tabs button span{font-size:16px;vertical-align:middle;margin-right:3px}
.ew-tabs button[aria-selected=true]{background:var(--surface);border-color:var(--line);color:var(--accent);box-shadow:0 2px 6px #172e3510}
.ew-tabs button:focus-visible,.ew-room button:focus-visible,.ew-room select:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.ew-panels{flex:1 1 0;min-height:0;display:flex;position:relative}
.ew-panels>[data-ew-panel]{flex:1 1 0;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.ew-panels>[hidden]{display:none!important}
.ew-room .ew-conversation{display:none!important}
#ewTalkLog,#ewRecordLog{display:flex;flex:1 1 0;min-height:0;overflow:hidden}
.ew-room .stream{min-height:0!important;height:auto!important;max-height:none;padding:12px;overflow-y:auto;flex:1 1 0;scrollbar-gutter:stable;overscroll-behavior:auto}
.ew-room .stream .bubble{font-size:13px;line-height:1.45;padding:9px 11px}
.ew-room .stream .turn{margin-bottom:11px}
.ew-room .conversation-empty{padding:16px 10px;font-size:13px}
.ew-right>.composer{flex:0 0 auto;padding:8px 10px;border-top:1px solid var(--line);background:var(--surface);margin:0}
.ew-right .composer-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;align-items:end}
.ew-right .composer .mic-wrap.hidden{display:none}.ew-right .composer-row:has(.mic-wrap.hidden){grid-template-columns:minmax(0,1fr) auto auto}

.ew-room .composer #btnSay,.ew-room .composer #stopPatient,.ew-room .composer .mic-btn{min-height:36px;font-size:11px;padding:7px 9px}
.ew-room .composer .hint{font-size:10px;line-height:1.3;margin:5px 0 0}.ew-room .interim:empty{display:none}
.ew-bottom{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:12px;padding:5px 7px;background:var(--surface);min-width:0}
.ew-bottom-tools{display:flex;align-items:center;gap:6px;min-width:0}.ew-bottom .btn{min-height:34px;padding:6px 10px;font-size:12px;white-space:nowrap}
/* Position is a segmented control: every supported position is one click, the
   current one is shown by state AND label weight (never colour alone), and the
   selection is only ever painted from the engine's recorded posture. */
.ew-position{display:inline-flex;align-items:stretch;gap:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface-2);min-width:0}
.ew-pos{display:inline-flex;align-items:center;gap:4px;border:0;border-right:1px solid var(--line);background:transparent;color:var(--ink-2);font-size:11px;font-weight:500;padding:6px 9px;min-height:34px;white-space:nowrap;cursor:pointer}
.ew-pos:last-child{border-right:0}
.ew-pos:hover:not(:disabled){background:var(--surface-3);color:var(--ink)}
.ew-pos:focus-visible{outline:3px solid var(--focus);outline-offset:-3px;z-index:1}
.ew-pos[aria-pressed="true"]{background:var(--accent);color:var(--on-accent);font-weight:650}
.ew-pos:disabled{opacity:.5;cursor:wait}
.ew-pos-i{font-size:10px;opacity:.75}
.ew-pos[aria-pressed="true"] .ew-pos-i{opacity:1}
/* Voice is a toggle, so its state is carried by label text and aria-pressed. */
.ew-toggle.is-on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}
.ew-toggle.is-unavailable{opacity:.55;text-decoration:line-through}
.ew-bottom #btnEnd{margin-left:auto;white-space:nowrap;font-size:12px;min-height:34px;padding:6px 12px}
.ew-stored[hidden]{display:none!important}.ew-record-note{font-size:11px;padding:8px 12px;margin:0;color:var(--ink-2);border-bottom:1px solid var(--line)}
.ew-room .ew-panel-title{padding:11px 12px 8px;flex:0 0 auto}.ew-panel-title h2{font-size:17px;margin:0 0 4px}.ew-panel-title span{font-size:11px}
.ew-exam-filters{padding:0 12px 8px;display:grid;grid-template-columns:1fr 1fr;gap:7px;flex:0 0 auto}.ew-exam-filters label{font-size:10px;font-weight:650;display:flex;flex-direction:column;gap:4px;min-width:0}.ew-exam-filters select,.ew-exam-filters input{min-width:0;width:100%;padding:6px 8px;min-height:33px;font-size:12px;max-width:none}.ew-search{grid-column:1/-1}
.ew-room #manCount{padding:0 12px 6px;flex:0 0 auto}.ew-exam-detail{flex:1 1 0;min-height:0;overflow:auto;padding:0 12px 8px}.ew-exam-detail .maneuver{padding:10px;border-radius:10px;margin:0}.ew-exam-detail .man-head{display:flex;flex-wrap:wrap;gap:5px;font-size:12px}.ew-exam-detail .m-label{flex-basis:100%;font-size:14px}.ew-exam-detail .man-note{font-size:11px;line-height:1.4;margin:8px 0}.ew-exam-detail .chips{border:0;padding:5px 0;margin:0;display:flex;gap:6px;flex-wrap:wrap}.ew-exam-detail legend{font-size:11px;font-weight:650}.ew-exam-detail .chip{font-size:11px;display:flex;align-items:center;gap:5px;margin:0}.ew-exam-detail .chip input{width:15px;height:15px}.ew-exam-detail .tiny{font-size:10px;line-height:1.35}
.ew-exam-footer{padding:8px 12px;border-top:1px solid var(--line);background:var(--surface);flex:0 0 auto}.ew-exam-footer #examRunning{font-size:11px;margin-bottom:5px}.ew-exam-footer #examRunning:empty{display:none}.ew-exam-footer .btn{width:100%;min-height:36px;font-size:12px}
body.encounter-workspace-active #ewPanelGuide>#encounterGuide{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none;max-height:none!important;height:100%;min-height:0;display:flex!important;flex-direction:column;overflow:hidden;background:var(--surface)!important}
.ew-guide-scroll{flex:1 1 0;min-height:0;overflow:auto;padding:10px 12px;scrollbar-gutter:stable}.ew-guide-footer{flex:0 0 auto;border-top:1px solid var(--line);padding:7px 10px;background:var(--surface)}
.ew-room .case-guide-top{gap:5px}.ew-room .case-guide-top .eyebrow{font-size:9px}.ew-room .case-guide-top h2{font-size:16px;margin:3px 0 5px}.ew-room .guide-position{font-size:10px}.ew-room .guide-case-context{display:none}.ew-room .guide-current{padding:9px;margin:6px 0;border-radius:8px}.ew-room .guide-current h3{font-size:14px;margin:6px 0}.ew-room .guide-current-label{font-size:10px}.ew-room .guide-current-label>span+span{display:none}.ew-room .guide-current blockquote{font-size:13px;line-height:1.4;padding:7px 9px;margin:7px 0}.ew-room .guide-why{font-size:11px;line-height:1.4;margin:6px 0}.ew-room .guide-urgency{font-size:10px;margin:3px 0;padding:5px 0}.ew-room .guide-urgency summary{font-size:10px}.ew-room .guide-message,.ew-room .guide-sources{font-size:10px;line-height:1.35}.ew-room .guide-technique{font-size:11px;padding:7px}.ew-room .guide-technique .small{font-size:10px}.ew-room .guide-actions{gap:5px;flex-wrap:wrap}.ew-room .guide-navigation{gap:4px;margin:5px 0 0}.ew-room .guide-actions .btn,.ew-room .guide-navigation .btn,.ew-room #ewGuideMore{font-size:10px;min-height:30px;padding:5px 7px;white-space:normal}.ew-room #ewGuideMore{margin-top:5px}.ew-room .guide-current .guide-message{margin-bottom:0}.ew-room #guideApplication:empty,.ew-room #recoveryBody:empty{display:none}.ew-room .recovery-card{padding:9px!important}.ew-room .recovery-card h3{font-size:14px}.ew-room .recovery-routine{font-size:10px}.ew-room .recovery-card .small{font-size:11px}
#ewPanelGuide>.encounter-guide:not(.case-guide){padding:12px!important;overflow:auto!important}.ew-room .guide-top h2{font-size:17px}.ew-room .guide-top .small{display:none}.ew-room .encounter-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ew-room .guide-purpose{font-size:12px!important}
.ew-guide-loading{padding:15px}.ew-room .ai-conversation{flex:0 0 auto;margin:6px;max-height:125px;overflow:auto;font-size:11px}.ew-room .voice-bar{font-size:11px;padding:5px 10px;flex:0 0 auto}
.ew-sheet{position:fixed;inset:0;margin:auto;width:min(720px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 20px 90px #102b4450;overflow:hidden}.ew-sheet::backdrop{background:#102b4466}.ew-sheet[open]{display:flex;flex-direction:column}.ew-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);flex:0 0 auto}.ew-sheet-head h2{font-size:19px;margin:0}.ew-sheet-body{padding:16px 18px;min-height:0;overflow:auto;font-size:13px}.ew-sheet-body>details>summary{display:none}.ew-sheet-body #patientVoiceSettings{margin:0!important;padding:0!important;max-width:none}.ew-sheet-body .bedside-card{padding:0;border:0;box-shadow:none}.ew-sheet-body .rapport{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ew-sheet-body .scene-help{padding:0;background:transparent}.ew-sheet-body .ew-view-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ew-sheet-body .guide-route,.ew-sheet-body .guide-coverage{display:block!important}.ew-sheet-body .guide-route select{font-size:13px}.ew-sheet-body .guide-route{margin:0;padding:0;border:0}.ew-sheet-body #toolRefuse{margin-top:12px}
body.encounter-workspace-active .room.ew-room.patient-focus{grid-template-columns:minmax(0,2.8fr) minmax(300px,1fr)}
@media(max-width:1150px){body.encounter-workspace-active .room.ew-room{grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr);gap:7px}.ew-room .unity-heading h2{font-size:16px}.ew-room .unity-heading{padding:7px 9px}.ew-room .state-pill{max-width:120px;overflow:hidden}.ew-bottom .btn{font-size:11px;padding:6px 8px}.ew-pos{padding:6px 7px;font-size:10px}.ew-pos-i{display:none}}
@media(max-height:680px) and (min-width:850px){.ew-room .ew-panel-title{padding:7px 10px}.ew-panel-title h2{font-size:15px}.ew-panel-title span{display:none}.ew-exam-filters{gap:5px;padding-bottom:5px}.ew-exam-filters label{gap:2px}.ew-exam-filters select,.ew-exam-filters input{min-height:29px;padding:4px 6px}.ew-right>.composer{padding:6px 8px}.ew-tabs button{padding:7px 3px}.ew-guide-scroll{padding:7px 9px}.ew-room .guide-actions .btn,.ew-room .guide-navigation .btn,.ew-room #ewGuideMore{min-height:27px;padding:4px 6px}.ew-guide-footer{padding:5px 8px}.ew-room .guide-current{padding:7px}.ew-room .guide-current blockquote{margin:5px 0;padding:5px 7px}.ew-room .guide-current .guide-message{display:none}.ew-room .guide-current-label{display:none}.ew-room .guide-urgency{margin:0}.ew-room .guide-position{max-width:95px}.ew-room .guide-case-context{display:none}}
@media(max-width:849px){body.encounter-workspace-active #view{padding:6px!important}body.encounter-workspace-active .room.ew-room,body.encounter-workspace-active .room.ew-room.patient-focus{grid-template-columns:minmax(0,1fr) minmax(290px,1fr);gap:6px;grid-template-rows:minmax(0,1fr) 46px}.ew-room .unity-heading{align-items:flex-start;flex-direction:column;gap:3px}.ew-room .unity-heading h2{font-size:15px}.ew-room .unity-heading .patient-heading-actions{width:100%;justify-content:space-between}.ew-room .unity-heading .state-pill{font-size:9px}.ew-bottom-tools{gap:4px}.ew-bottom .btn{font-size:10px;padding:5px 7px}.ew-pos{padding:5px 6px;font-size:10px}.ew-pos-i{display:none}.ew-bottom #btnEnd{font-size:10px;padding:5px 8px}.ew-bottom{gap:5px;padding:4px}.ew-room .composer #stopPatient{font-size:10px;padding:5px}.ew-room .composer #btnSay{font-size:10px;padding:5px}}
@media(max-width:619px),(max-height:420px){body.encounter-workspace-active .room.ew-room,body.encounter-workspace-active .room.ew-room.patient-focus{height:auto;max-height:none;display:flex!important;flex-direction:column}.ew-room>.unity-room{height:45dvh;min-height:250px}.ew-right{height:65dvh;min-height:370px}.ew-bottom{position:sticky;bottom:5px;z-index:8;flex-wrap:wrap;min-height:48px}.ew-position{flex-wrap:wrap}.ew-bottom-tools{flex-wrap:wrap}.ew-room .unity-heading{flex-direction:row}.ew-room .unity-heading .patient-heading-actions{width:auto}.ew-sheet-body .ew-view-grid{grid-template-columns:1fr 1fr}}

.ew-latest-reply{display:none;align-items:flex-start;gap:6px;border-top:1px solid var(--line);background:var(--surface-2);padding:6px 9px;flex:0 0 auto;min-height:0}.ew-latest-reply p{font-size:11px;line-height:1.4;max-height:46px;overflow:auto;margin:0;flex:1;min-width:0}.ew-latest-reply .btn{font-size:10px;padding:3px 5px;min-height:24px;white-space:nowrap}.ew-room:not([data-workspace-tab=talk]):not([data-workspace-tab=record]) .ew-latest-reply{display:flex}#ewPanelGuide .guide-route,#ewPanelGuide .guide-coverage{display:none!important}

/* The workspace took over #toggleRecord ("Full record") for the Record tab,
   so nothing could add .full-record any more and these turns became
   permanently invisible: the station brief, the supplied vitals line, and
   every simulator message -- "Examination in progress", "An examination is
   already running", "interrupted before it finished", refusals and the
   offline notice. Failures in particular must not be silent. */
.ew-right .turn.sys,.ew-right .turn.station{display:block}
.ew-right .turn.station .bubble{background:var(--surface-2);border-style:dashed;color:var(--ink-2);font-size:13px}

body.encounter-workspace-active #app{min-height:0}body.encounter-workspace-active #view{flex:0 0 auto}.ew-room .ew-guide-footer #ewGuideMore{margin:0}.ew-room .ew-guide-footer .guide-navigation{justify-content:space-between;flex-wrap:nowrap}.ew-room .ew-guide-footer .guide-actions{display:flex;flex-wrap:nowrap}.ew-room .ew-guide-footer .guide-actions .primary{flex:1}.ew-room .case-guide-top .eyebrow{display:none}.ew-room .ew-guide-footer{padding:6px 9px}

.ew-small-screen{display:none}@media(max-width:619px),(max-height:420px){.ew-small-screen{display:block;font-size:11px;line-height:1.4;margin:3px 4px 6px;color:var(--ink-2)}}

/* Focused bedside tools: one next action, a real conversation, and obtained evidence. */
/* Wide screens: the work panel is the bigger half. At 1440 this reads as a   ~660px patient beside a ~750px workspace, instead of 792 vs 608 with the   conversation as the loser. */
@media(min-width:850px){body.encounter-workspace-active .room.ew-room:not(.patient-focus){grid-template-columns:minmax(0,1fr) minmax(460px,1.2fr)!important}}
@media(min-width:1600px){body.encounter-workspace-active .room.ew-room:not(.patient-focus){grid-template-columns:minmax(0,1fr) minmax(520px,1.1fr)!important}}
.ew-tabs{padding:5px;gap:4px}.ew-tabs button{padding:10px 6px;font-size:13px}.ew-tabs button span{margin-right:5px}
#ewGuideCard{flex:0 1 auto;max-height:55%;min-height:140px;overflow:auto;border-bottom:1px solid var(--line);padding:12px 14px}
body.encounter-workspace-active #ewGuideCard>#encounterGuide{display:block!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none;background:transparent!important}
#ewGuideCard .ew-guide-scroll{padding:0;overflow:visible}#ewGuideCard .ew-guide-footer{padding:7px 0 0;border:0;background:transparent}
#ewGuideCard .case-guide-top{display:flex;align-items:center;justify-content:space-between}#ewGuideCard .case-guide-top h2{font-size:13px;margin:0;color:var(--ink-2)}
#ewGuideCard .guide-current{border:0;border-radius:0;background:transparent;margin:8px 0 0;padding:0}
#ewGuideCard .guide-current h3{font-size:15px;line-height:1.35;margin:5px 0}
#ewGuideCard .guide-current blockquote{border-left:3px solid var(--accent);font-size:15px;line-height:1.45;padding:4px 10px;margin:8px 0;background:transparent}
#ewGuideCard .guide-why{font-size:12px;line-height:1.45;margin:6px 0}
#ewGuideCard .guide-current-label{display:flex;font-size:10px;color:var(--accent);text-transform:uppercase;letter-spacing:.06em}
#ewGuideCard .guide-message:empty,#ewGuideCard .guide-sources,#ewGuideCard .guide-case-context,#ewGuideCard #guideApplication,#ewGuideCard #recoveryBody,#ewGuideCard .reasoning-expand,#ewGuideCard .guided-first{display:none!important}
#ewGuideCard .guide-message:not(:empty){display:block;font-size:11px}
#ewGuideCard .guide-route,#ewGuideCard .guide-coverage{display:none!important}
#ewGuideCard .guide-actions .btn,#ewGuideCard .guide-navigation .btn{font-size:12px;min-height:32px;padding:6px 9px}
#ewGuideCard .guide-technique{padding:4px 0;background:transparent}#ewGuideCard .guide-technique>.small{display:none}
#ewGuideCard .guide-navigation{margin:7px 0 0;gap:7px}#ewGuideCard .guide-current-label>span+span{display:none}
#ewGuideChat{display:flex;flex:1 1 48%;min-height:110px;overflow:hidden}.ew-guide-chat-label{font-size:10px;letter-spacing:.02em;padding:7px 13px 0;color:var(--ink-2)}
.ew-room[data-workspace-tab=guide] .ew-latest-reply{display:none!important}.ew-room .stream .bubble{font-size:14px;line-height:1.5}.ew-room .stream .turn{margin-bottom:12px}
.ew-board-search{display:flex;gap:6px;align-items:center;padding:0 12px 9px}.ew-board-search input{flex:1;min-width:0;font-size:13px;padding:8px 10px;border-radius:9px}.ew-board-search .btn{font-size:11px;white-space:nowrap}
.ew-exam-scroll{flex:1;min-height:0;overflow:auto;padding:0 12px 12px}#ewExamBoard[hidden],.ew-exam-detail[hidden],.ew-exam-footer[hidden]{display:none!important}
.ew-exam-scroll .ew-exam-detail{padding:0;overflow:visible}.ew-action-group{margin:0 0 15px}.ew-action-group h3,.ew-record-group h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-2);margin:10px 0 8px}
.ew-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ew-action-tile{display:grid;grid-template-columns:22px 1fr;gap:5px 7px;align-items:start;text-align:left;padding:12px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--ink);cursor:pointer;min-height:83px;font:inherit}
.ew-action-tile:hover{border-color:var(--accent);background:var(--surface)}.ew-action-tile>span{grid-row:1/3;font-size:19px;color:var(--accent)}.ew-action-tile b{font-size:12px;line-height:1.35}.ew-action-tile small{font-size:10px;color:var(--ink-2)}
#ewRecordLog{display:block;overflow:auto;padding:3px 14px 14px}.ew-record-group{margin:8px 0 18px}.ew-record-group h3{display:flex;justify-content:space-between}.ew-record-group details{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:0;background:transparent;color:var(--ink)}
.ew-record-group summary{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.45;padding:11px 0;cursor:pointer;list-style:none}.ew-record-group summary::-webkit-details-marker{display:none}.ew-check{display:inline-grid;place-items:center;width:21px;height:21px;flex:none;border-radius:6px;background:var(--surface-2);color:var(--accent);font-weight:bold}.ew-check.uncertain{color:var(--ink-2)}
.ew-record-group details>div{padding:0 4px 11px 30px}.ew-record-group p{font-size:13px;line-height:1.5;white-space:pre-line;margin:4px 0}.ew-record-group small{font-size:10px;color:var(--ink-2)}.ew-record-group .ew-empty{font-size:12px;color:var(--ink-2);padding:5px 0}.ew-record-note{line-height:1.5}
.ew-right>.composer .hint{font-size:10px}.ew-room .composer #stopPatient{font-size:10px}
@media(max-height:720px){#ewGuideCard{padding:9px 12px;flex-basis:58%}#ewGuideCard .guide-current h3{font-size:13px}#ewGuideCard .guide-current blockquote{font-size:13px;margin:5px 0}#ewGuideCard .guide-why{font-size:11px}.ew-guide-chat-label{padding-top:4px}#ewGuideCard .guide-actions .btn,#ewGuideCard .guide-navigation .btn{min-height:28px;padding:4px 8px;font-size:11px}}
@media(max-width:849px){.ew-action-grid{gap:6px}.ew-action-tile{padding:9px 7px;grid-template-columns:17px 1fr}.ew-tabs button{font-size:11px}.ew-tabs button span{font-size:13px;margin-right:2px}}

/* Examination feedback remains visible while using the action board. */
.ew-exam-outcome{flex:0 1 auto;max-height:32%;overflow:auto;margin:8px 12px;padding:12px 14px;border:1px solid var(--accent-line,#a8d2c1);border-radius:12px;background:var(--panel,#262b37);color:var(--text,#eceef5)}
.ew-exam-outcome p{margin:6px 0 0;white-space:pre-line;font-size:14px;line-height:1.45}
.ew-new-badge{font-size:10px;background:#b5e8c8;color:#17372b;border-radius:8px;padding:2px 5px;margin-left:3px}
.ew-record-new{outline:2px solid #b5e8c8;outline-offset:-3px;animation:ew-record-pulse .65s ease-in-out 2}
@keyframes ew-record-pulse{50%{background:#477863;box-shadow:inset 0 0 0 2px #b5e8c8}}
@media(prefers-reduced-motion:reduce){.ew-record-new{animation:none}}

/* Audit: keep on-demand coaching readable without burying the conversation. */
#ewGuideCard .ew-coached .encounter-steps,#ewGuideCard .ew-coached .guide-expand,#ewGuideCard .ew-coached .eyebrow{display:none!important}
#ewGuideCard .ew-coached .guide-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 8px}
#ewGuideCard .ew-coached .guide-top h2{font-size:15px;margin:0}
#ewGuideCard .ew-coached .guide-top>.small{display:none}
#ewGuideCard .ew-coached #unstuckButton{font-size:12px;padding:7px 10px;margin-left:auto}
.ew-coach-stage{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--ink-2);margin:8px 0}
.ew-coach-stage select{min-width:0;flex:1;padding:6px 9px;font-size:12px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px}
#ewGuideCard .ew-coached .guide-purpose{display:block!important;padding:7px 0;font-size:13px;line-height:1.5;color:var(--ink);background:transparent}
.ew-action-tile:disabled{opacity:.55;cursor:wait}
.ew-action-tile:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Talk owns coaching; the primary navigation stays Talk, Examine, Record. */
.ew-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.ew-action-tile{grid-template-columns:1fr;padding:9px 7px;gap:4px;min-width:0}.ew-action-tile>span{display:none}.ew-action-tile b{font-size:11px;overflow-wrap:anywhere}.ew-action-tile small{grid-column:1!important;font-size:10px}
#ewPanelTalk{display:flex;flex-direction:column;min-height:0;overflow:hidden}#ewPanelTalk[hidden]{display:none}#ewTalkLog{flex:1;min-height:70px;overflow:auto}
/* The coach is a quiet card at the top of Talk, not a heavy green banner the
   conversation has to fight. It reads as guidance beside the work, and its
   header is a thin collapse control rather than a title bar. */
/* The next step sits between the conversation and the composer, because that
   is the order the student works in: read the answer, read the suggestion,
   type. Above the log it was 518px from the box you type into and pushed the
   newest reply down; here it is 139px away and the conversation gains an
   exchange. Measured on the same 12-turn encounter at 1440x900. */
#ewPanelTalk{display:flex;flex-direction:column;min-height:0}
#ewPanelTalk #ewTalkLog{flex:1 1 auto;min-height:0}
.ew-talk-guide{margin:0 8px 8px;flex:0 0 auto;max-height:46%;overflow:auto;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:10px;background:var(--surface-2)}
/* One row: the move, then the ways to act on it. */
.ew-talk-guide .coach-next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center}
.ew-talk-guide .coach-move{grid-column:1;font-size:14px}
.ew-talk-guide .coach-actions{grid-column:2;grid-row:1;justify-content:flex-end}
.ew-talk-guide .coach-label{grid-column:1/-1;font-size:10px}
.ew-talk-guide .coach-meta,.ew-talk-guide .coach-why,.ew-talk-guide .coach-conflict{grid-column:1/-1}
@media(max-width:1180px){.ew-talk-guide .coach-next{grid-template-columns:1fr}.ew-talk-guide .coach-actions{grid-column:1;grid-row:auto;justify-content:flex-start}}
.ew-talk-guide>summary{position:sticky;top:0;z-index:2;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;background:var(--surface-2);color:var(--muted);font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;list-style:none;border-bottom:1px solid var(--line)}
.ew-talk-guide>summary::-webkit-details-marker{display:none}
.ew-talk-guide>summary:hover{color:var(--ink)}
.ew-guide-toggle::after{content:'Hide';font-size:10px;letter-spacing:.04em;text-transform:none;font-weight:600}
.ew-talk-guide:not([open])>summary{border-bottom:0}
.ew-talk-guide:not([open]) .ew-guide-toggle::after{content:'Show'}
#ewPanelTalk #ewGuideCard{max-height:none;min-height:0;padding:12px;border:0}.ew-talk-guide:not([open]) #ewGuideCard{display:none}
@media(max-width:500px){.ew-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Bedside: grouped by purpose, with actions and suggestions visibly distinct.
   An action carries a tick (state, not a lock - it stays repeatable); a
   suggestion carries a chevron because it only reaches the composer. */
.ew-bedside{display:flex;flex-direction:column;gap:14px}
.ew-bs-group h3{margin:0 0 2px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.ew-bs-note{margin:0 0 7px;font-size:11px;color:var(--ink-2);line-height:1.45}
.ew-bs-items{display:flex;flex-direction:column;gap:4px}
.ew-bs{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 10px;
  border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);
  font-size:12.5px;line-height:1.35;cursor:pointer}
.ew-bs:hover{border-color:var(--accent);background:var(--surface-2)}
.ew-bs:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.ew-bs-tick{flex:0 0 auto;width:15px;text-align:center;color:var(--ink-3);font-size:12px}
.ew-bs.used .ew-bs-tick{color:var(--ok,#2b7d5f)}
.ew-bs.used{background:var(--surface-2)}
.ew-bs-done{margin-left:auto;font-size:9.5px;color:var(--ink-3);letter-spacing:.05em;text-transform:uppercase}
.ew-bs-status{margin:2px 0 0;font-size:11px;color:var(--accent);min-height:0}
.ew-bs-status:empty{display:none}

/* Record: a fact summary, not a transcript. Definition rows keep the label and
   the finding on one line so a whole history reads in one pass; nothing here
   repeats a speaker, a timestamp or a chat bubble. */
#ewRecordLog{display:block;overflow:auto;padding:3px 14px 16px}
.ew-rec-empty{font-size:12px;line-height:1.55;color:var(--ink-2);padding:10px 2px}
.ew-rec-group{margin:6px 0 16px}
.ew-rec-group h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-2);margin:14px 0 5px;padding-bottom:4px;border-bottom:1px solid var(--line);font-weight:700}
/* A continuation row keeps the value column aligned and drops the echoed label.
   The row still reads as its own fact because the rule above it stays. */
.ew-rec-row dt.ew-rec-cont{min-height:1px}
.ew-rec{margin:0}
.ew-rec-row{display:grid;grid-template-columns:minmax(92px,25%) 1fr;gap:12px;padding:5px 0;border-bottom:1px solid var(--line)}
.ew-rec-row:last-child{border-bottom:0}
.ew-rec-row dt{font-size:11.5px;color:var(--ink-2);line-height:1.55;font-weight:600}
.ew-rec-row dd{margin:0;font-size:13px;line-height:1.5;color:var(--ink)}
.ew-rec-note{font-size:10.5px;color:var(--ink-2);white-space:nowrap}
.ew-rec-doc{display:block;font-size:11px;color:var(--ink-2);margin-top:2px}
.ew-rec-gaps .ew-rec-row dd{color:var(--ink-2)}
@media(max-width:520px){.ew-rec-row{grid-template-columns:1fr;gap:0}.ew-rec-row dt{font-weight:600}}

/* What a single click puts on the record. Components are stated technique and
   they gate which findings are released, so the claim belongs on the tile. */
.ew-action-tile .ew-states{display:block;margin-top:2px;font-size:10px;line-height:1.35;color:var(--ink-2);opacity:.9}

/* Secondary examination systems: present, but not competing with the core route. */
.ew-more-systems{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
.ew-more-systems>summary{cursor:pointer;font-size:11.5px;font-weight:650;color:var(--ink-2);padding:4px 0;list-style:none}
.ew-more-systems>summary::-webkit-details-marker{display:none}
.ew-more-systems>summary::before{content:'\25b8 ';display:inline-block;transition:transform .12s}
.ew-more-systems[open]>summary::before{transform:rotate(90deg)}
@media(prefers-reduced-motion:reduce){.ew-more-systems>summary::before{transition:none}}

/* Inside the workspace the coach is a next-step card. The reasoning map and the
   stage strip are still reachable from "Show approach" and "Other moves"; they
   do not belong stacked under a one-line suggestion. */
#ewPanelGuide .reasoning-expand,#ewPanelGuide .guide-application:empty,#ewPanelGuide #recoveryBody:empty{display:none}
#ewPanelGuide .guide-top{display:flex;align-items:center;gap:8px;justify-content:flex-start;margin:0 0 6px}
#ewPanelGuide .guide-top .eyebrow{font-size:10.5px;color:var(--ink-2)}
#ewPanelGuide .guide-top>div{flex:1 1 auto;min-width:0}

/* The shell keeps its own stuck/approach buttons so their handlers stay wired;
   inside the workspace the coach card offers them in its action row instead. */
/* Clipping these to 1px left them in the tab order. A keyboard user reached an
   invisible "I'm stuck", spent a recorded assistance count on it, and saw
   nothing -- the shell copy writes into #recoveryBody, which is display:none in
   this card. The card's own row calls the same functions, so remove them. */
#ewPanelGuide .guide-top #unstuckButton,#ewPanelGuide .guide-top #toggleGuide,#ewPanelGuide #ewCoachMoves{display:none!important}
#ewPanelGuide .guide-top:not(:has(.eyebrow:not(:empty))){display:none}

/* Bedside: the effect reads off the group heading, the short courtesy actions
   sit two-up so the whole set is visible without scrolling, and the dialogue
   suggestions stay full width because they are sentences. */
.ew-bs-group h3{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-2);margin:14px 0 7px}
.ew-bs-kind{font-size:10.5px;letter-spacing:0;text-transform:none;font-weight:500;color:var(--ink-3)}
.ew-bs-group.ew-bs-action .ew-bs-items{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ew-bs-group.ew-bs-action .ew-bs{padding:8px 10px}
.ew-bs-partial{text-transform:none;letter-spacing:0}
@media(max-width:640px){.ew-bs-group.ew-bs-action .ew-bs-items{grid-template-columns:1fr}}

/* An examination you have already performed reads as one you have not. The
   ledger knows; the tile now says so, so the student does not have to open
   Record to find out what is left. */
.ew-action-tile .ew-done-flag{display:block;margin-top:3px;font-size:10px;font-weight:700;letter-spacing:.02em;color:var(--accent)}
.ew-action-tile.is-done{background:var(--accent-soft);border-color:var(--accent-line,var(--line))}
.ew-action-tile.is-done>b{color:var(--ink-2)}

/* The coach card pays for itself in the conversation's height; keep it tight. */
#ewPanelTalk #ewGuideCard{padding:9px 12px 10px}

/* Reading an earlier answer should survive a new turn arriving. When it does
   not follow the student to the bottom, this says the log moved on. */
.ew-talk-log-wrap,#ewTalkLog{position:relative}
.stream-jump{position:absolute;left:50%;transform:translateX(-50%);bottom:10px;z-index:4;
 border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);
 border-radius:999px;padding:5px 13px;font-size:11.5px;font-weight:650;cursor:pointer;
 box-shadow:0 6px 18px #1f24332e}
.stream-jump[hidden]{display:none}
.stream-jump:hover{background:var(--accent-hover,var(--accent))}
.coach-stage-note{margin:0 0 12px;font-size:12.5px;line-height:1.5;color:var(--ink-2)}

/* Short windows: the card has to fit the move and the three ways to act on it.
   The gaps/progress line is the one part that is genuinely optional, and
   clipping "Why this" in half reads as a broken card rather than a scroller. */
@media(max-height:780px){
 #ewPanelTalk .coach-meta{display:none}
 .ew-talk-guide{max-height:52%}
}

/* Jump to a body system. Only appears when the list is long enough that
   scrolling to find one is the slow part (exam rehearsal's full catalog). */
.ew-exam-regions{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 2px}
.ew-exam-regions[hidden]{display:none}
.ew-exam-regions button{font:inherit;font-size:10.5px;font-weight:600;line-height:1.2;cursor:pointer;padding:5px 9px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2)}
.ew-exam-regions button:hover{color:var(--ink)}
.ew-exam-regions button[aria-current="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.ew-exam-regions button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Guided and coached offer the same two actions; they should not look like
   different features. The draft button was stretching to 624px beside a 91px
   ghost, so one card had a banner and the other had a button row. */
#ewGuideCard .guide-actions{gap:6px}
#ewGuideCard .guide-actions .btn{flex:0 0 auto;width:auto}
.ew-panel-title #ewRefuse{margin-left:auto;flex:0 0 auto}

/* Why the whole board just went dead, beside the board. */
.ew-exam-running:empty{display:none}
.ew-exam-running{margin:6px 0 0;color:var(--ink-2)}
.ew-view-status:empty{display:none}
.ew-view-status{margin:10px 0 0;font-size:12.5px;color:var(--ink-2)}

.ew-oldcarts-title{font-size:13px;margin:18px 0 6px;color:var(--ink);font-weight:700}.ew-oldcarts-empty{font-size:12px;color:var(--ink-3);margin:0 0 10px}

/* Stacked screens need room for the action board even while a finding is
   visible. A viewport-sized flex column collapsed the board to zero height. */
@media(max-width:619px),(max-height:420px){
 .ew-right:has(#ewPanelExam:not([hidden])){height:auto;min-height:65dvh}
 .ew-right:has(#ewPanelExam:not([hidden])) .ew-panels{flex:0 0 auto;display:block}
 .ew-panels>#ewPanelExam:not([hidden]){display:block;overflow:visible}
 #ewPanelExam:not([hidden]) .ew-exam-scroll{flex:0 0 auto;height:55dvh;min-height:250px}
 #ewPanelExam .ew-exam-outcome{flex:0 0 auto;max-height:none}
 .ew-bottom{position:static}
}

/* Short desktop windows scroll the exam panel as one unit; fixed headers and
   results must not consume all the height available to its action buttons. */
@media(min-width:620px) and (max-height:780px){
 .ew-panels>#ewPanelExam{display:block;overflow-y:auto}
 #ewPanelExam .ew-exam-scroll{overflow:visible;min-height:180px}
 #ewPanelExam .ew-exam-outcome{max-height:none}
}

/* Task workspace, September 12: one predictable toolbar, task-sized columns,
   stable editor and optional assistance. Earlier device breakpoints yield here. */
@media(min-width:850px){
 body.encounter-workspace-active .room.ew-room:not(.patient-focus){grid-template-columns:minmax(320px,.65fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto}
 body.encounter-workspace-active .room.ew-room:not(.patient-focus):is([data-workspace-tab=exam],[data-workspace-tab=record]){grid-template-columns:minmax(300px,.45fr) minmax(0,1fr)!important}
}
.ew-room .composer #say{font-size:15px;line-height:1.5;min-height:58px;max-height:160px;resize:none;overflow:auto;padding:10px 12px;border-radius:10px}
.ew-room .composer #btnSay,.ew-room .composer .mic-btn{font-size:13px;min-height:40px;padding:8px 12px}
.ew-right>.composer .hint{font-size:11px;margin:5px 0 0}
.ew-tabs button{font-size:14px;min-height:42px}
.ew-room .stream .bubble{font-size:15px;line-height:1.55}
.ew-room .stream .who{font-size:11px;letter-spacing:.02em}
.ew-room .stream .turn{margin-bottom:16px}
.ew-room #ewTalkLog{position:relative;overflow:hidden}
.ew-talk-guide{max-height:230px;margin:0 10px 8px;flex-shrink:0}
.ew-talk-guide>summary{font-size:12px;letter-spacing:.02em;text-transform:none;padding:9px 12px}
#ewPanelTalk #ewGuideCard{padding:10px 12px}
.ew-room .guide-current-label{display:none}
.ew-room .guide-current blockquote{font-size:15px!important;margin:6px 0!important}
.ew-room .guide-current h3{font-size:14px!important}
.ew-room .guide-actions .btn,.ew-room .guide-navigation .btn{font-size:12px!important;min-height:34px!important}
.ew-room .ew-guide-scroll{overflow:visible}
.ew-room .ew-guide-footer{padding:6px 0 0}
.ew-room .ew-latest-reply{padding:8px 12px;align-items:center;gap:8px}
.ew-latest-reply #ewReturnTalk{margin-left:auto;white-space:nowrap;font-size:12px}
.ew-room:is([data-workspace-tab=exam],[data-workspace-tab=record]) .ew-right>.composer{display:none}
.ew-room[data-workspace-tab=talk] #ewReturnTalk{display:none}
.ew-bottom{flex-wrap:wrap;gap:7px;padding:6px 8px}
.ew-bottom-tools{flex-wrap:wrap;gap:6px;flex:1 1 auto}
.ew-bottom .btn,.ew-pos{font-size:12px!important;min-height:36px;padding:7px 10px!important}
.ew-position{flex-wrap:wrap}
.ew-room .unity-heading{flex-wrap:wrap;min-height:46px}
.ew-room .unity-heading .patient-heading-actions{flex-wrap:wrap}
.ew-room #patientFocus{font-size:11px}
.ew-action-tile{min-height:95px;padding:12px 10px;gap:5px}
.ew-action-tile b{font-size:13px;line-height:1.4;overflow-wrap:normal}
.ew-action-tile small{font-size:11px;line-height:1.4}
.ew-action-tile.is-running{outline:2px solid var(--accent);outline-offset:-2px}
.ew-board-search{padding:0 14px 8px}
.ew-board-search input{font-size:14px;min-height:38px}
.ew-board-search .btn,.ew-exam-regions button{min-height:32px;font-size:12px}
.ew-panel-title h2{font-size:17px}
.ew-exam-outcome{background:var(--surface-2);color:var(--ink);border-left:3px solid var(--accent);max-height:35%;padding:10px 12px}
.ew-exam-outcome p{font-size:14px;margin:5px 0 8px}
.ew-exam-outcome .btn{font-size:12px;min-height:32px}
.ew-oldcarts-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}
.ew-oldcarts-slot{min-width:0;border-bottom:1px solid var(--line);padding:2px 0 8px}
.ew-oldcarts-title{font-size:13px!important;margin:5px 0!important}
.ew-oldcarts-empty{font-size:12px!important;margin:3px 0!important}
.ew-oldcarts-slot .ew-rec-row{display:block;padding:2px 0}
.ew-oldcarts-slot .ew-rec-row dt{font-size:11px}
.ew-rec-row dd{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.ew-source-detail{margin:4px 0 0;border:0;background:none;padding:0}
.ew-source-detail summary{font-size:11px;color:var(--ink-2);cursor:pointer}
.ew-source-detail p{font-size:13px;margin:5px 0}
.ew-suggestion{border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:8px;margin:0 0 8px;background:var(--surface-2)}
.ew-suggestion[hidden]{display:none}
.ew-suggestion>summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;padding:7px 10px;font-size:12px;list-style:none}
.ew-suggestion-state{color:var(--ink-2)}
.ew-suggestion-body{padding:0 10px 10px;max-height:210px;overflow:auto}
#ewSuggestionText{font-size:14px;line-height:1.5;margin:5px 0 8px}
#ewSuggestionWhy{margin:0;border:0;padding:0;background:none;font-size:12px}
#ewDraftStatus{font-size:12px;color:var(--ink-2);margin:8px 0}
.ew-draft-actions{display:flex;gap:5px;flex-wrap:wrap}
.ew-draft-actions .btn{font-size:12px;min-height:34px}
.ew-selected-move{padding:10px 12px;background:var(--surface-2);border-left:3px solid var(--accent);border-radius:8px}
.ew-selected-move p{font-size:14px;margin:0 0 6px}
.ew-bs{font-size:14px;min-height:40px}
.ew-bs-group h3{font-size:12px}
.ew-bs-kind{font-size:11px}
@media(max-width:1100px) and (min-width:850px){.ew-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ew-room .unity-heading .patient-heading-actions{justify-content:flex-start}}
@media(max-width:849px){
 body.encounter-workspace-active .room.ew-room,body.encounter-workspace-active .room.ew-room.patient-focus{height:auto;max-height:none;display:flex!important;flex-direction:column}
 .ew-room>.unity-room{height:300px;min-height:260px}
 .ew-bottom{order:1;position:static}
 .ew-right{order:2;height:720px;min-height:560px;max-height:90dvh}
 .ew-small-screen{display:none!important}
 .ew-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ew-room .ew-tabs button{font-size:13px}
 .ew-talk-guide{max-height:220px}
 .ew-room .unity-heading{flex-direction:row}
 .ew-room .unity-heading .patient-heading-actions{width:auto}
}
@media(max-width:480px){.ew-oldcarts-grid{grid-template-columns:1fr}.ew-room .ew-latest-reply p{display:none}.ew-room .ew-latest-reply{flex-wrap:wrap}.ew-position{gap:0}.ew-pos{font-size:11px!important;padding:7px!important}}

#ewGuideCard .guide-current-label{display:none}
#ewGuideCard .guide-current .guide-why{font-size:12px;margin:4px 0}
.ew-exam-outcome progress{width:100%;height:6px;accent-color:var(--accent);display:block;margin-top:8px}
.ew-room .ew-guide-footer{position:sticky;bottom:0;background:var(--surface-2)!important;z-index:2}
.ew-room .guide-navigation{gap:5px;flex-wrap:wrap}
.ew-suggestion-body .ew-draft-actions button{min-height:34px}

/* Guide navigation remains visible; the teaching body can scroll independently. */
body.encounter-workspace-active #ewGuideCard>#encounterGuide.case-guide{display:flex!important;flex-direction:column}
#ewGuideCard .case-guide>.ew-guide-scroll{min-height:0;flex:1 1 auto;overflow:auto}
#ewGuideCard .case-guide>.ew-guide-footer{flex:0 0 auto}
#ewGuideCard .case-guide .guide-current{margin:4px 0}
@media(max-width:849px){.ew-room.ew-guide-visible>.unity-room{height:700px;min-height:700px;scroll-margin-top:70px}}

.ew-talk-guide{max-height:260px}
#ewPanelTalk #ewGuideCard{max-height:215px;display:flex;min-height:0;padding:8px 12px}
#ewGuideCard>.case-guide{flex:1 1 auto;min-height:0}


/* Tablet and touch use: targets stay easy to tap at either orientation. Font
   sizes in editable fields also avoid Safari's automatic input-focus zoom. */
@media(pointer:coarse){
 .ew-room .ew-tabs button,.ew-room #patientFocus,.ew-bottom .btn,.ew-pos,
 .ew-room .composer #btnSay,.ew-room .composer #stopPatient,.ew-room .composer .mic-btn,
 .ew-room .guide-actions .btn,.ew-room .guide-navigation .btn,
 .ew-room .ew-board-search .btn,.ew-room .ew-exam-regions button,
 .ew-room .ew-exam-outcome .btn,.ew-room .ew-draft-actions .btn,
 .ew-sheet .btn,.ew-sheet .ew-bs,.ew-room #ewReturnTalk{min-height:44px!important}
 .ew-room .ew-tabs button{font-size:14px}
 .ew-room .composer #say,.ew-room .ew-board-search input,
 .ew-sheet input:not([type=checkbox]):not([type=radio]),.ew-sheet select,.ew-sheet textarea{font-size:16px}
 .ew-room .ew-board-search input{min-height:44px}
 .ew-sheet .ew-bs-group.ew-bs-action .ew-bs{padding:10px 12px}
 .ew-sheet .ew-bs{line-height:1.45}
 .ew-room .ew-source-detail summary,.ew-room .ew-more-systems>summary,
 .ew-room .ew-talk-guide>summary,.ew-room .ew-suggestion>summary{min-height:44px;padding-top:12px;padding-bottom:12px}
 .ew-room .guide-why summary{padding:10px 0;min-height:44px}
 .ew-room .ew-guide-footer{position:static}
 .ew-room #ewPanelTalk #ewGuideCard{max-height:245px}
 .ew-room .ew-talk-guide{max-height:295px}
 .ew-room .ew-bottom{padding-bottom:max(6px,env(safe-area-inset-bottom))}
 .ew-sheet-head{padding:12px 16px}
 .ew-sheet{max-height:calc(100dvh - 24px)}
}
/* With the software keyboard up, or a short landscape window, the conversation
   must retain a readable area. Its optional coach can scroll within its card. */
@media(pointer:coarse) and (max-height:850px) and (min-width:850px){
 .ew-room .ew-talk-guide{max-height:260px}
 .ew-room #ewPanelTalk #ewGuideCard{max-height:210px}
 .ew-room #ewTalkLog{min-height:100px}
 .ew-room .ew-panels>#ewPanelTalk{overflow:auto}
 .ew-room .composer #say{max-height:110px}
}
