:root{--ink:#0b2941;--teal:#087b78;--muted:#506675;--paper:#f6f7f4;--line:#dbe3e3;--soft:#e7efeb;--danger:#a32f36;--white:#fff;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e4aa3d;outline-offset:3px}button{border:1px solid var(--line);border-radius:8px;background:#fff;min-height:44px;padding:10px 16px}button:hover:not(:disabled){border-color:var(--teal)}[hidden]{display:none!important}.site-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px clamp(24px,4vw,68px);border-bottom:1px solid var(--line);background:#fff}.brand{text-decoration:none;font-weight:800;font-size:22px}.brand span{font-weight:500}.back{font-size:15px;text-decoration:none;color:var(--teal)}main{max-width:1600px;margin:auto;padding:38px clamp(24px,4vw,68px) 55px}.intro{max-width:1050px}.eyebrow{font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--teal);margin:0 0 12px}h1{font-size:clamp(36px,4vw,58px);line-height:1.08;letter-spacing:-.045em;margin:0}h1 em{font-style:normal;color:var(--teal)}.intro>p:last-child{font-size:21px;line-height:1.45;color:var(--muted);max-width:870px;margin:18px 0 26px}.tabs{display:flex;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:18px}.tabs button,.tabs a{border:0;background:transparent;text-decoration:none;padding:12px 18px;min-height:46px;border-radius:8px;font-size:17px}.tabs .active{background:var(--ink);color:#fff}.tabs a{color:var(--teal)}.scenario-bar{margin:30px 0 18px;display:flex;gap:25px;justify-content:space-between;align-items:center}.scenario-bar h2{font-size:23px;margin:0 0 7px;letter-spacing:-.02em}.scenario-bar p{font-size:15px;line-height:1.45;color:var(--muted);max-width:570px;margin:0}.presets{display:flex;gap:8px}.presets button{font-weight:800;font-size:22px;min-width:92px;text-align:left;padding:10px 13px}.presets small{display:block;font-weight:500;font-size:12px;margin-top:3px;white-space:nowrap}.presets [aria-pressed=true]{border-color:var(--teal);background:var(--soft);box-shadow:inset 0 -3px var(--teal)}.stepper{display:flex;gap:12px;list-style:none;padding:0;margin:24px 0 22px}.stepper li{flex:1}.stepper button{width:100%;text-align:left;border:0;background:transparent;color:var(--muted);font-size:16px;padding:8px 0}.stepper b{display:inline-grid;place-items:center;width:31px;height:31px;margin-right:8px;background:#e0e7e4;border-radius:50%}.stepper [aria-current=step]{color:var(--teal);font-weight:700}.stepper [aria-current=step] b{background:var(--teal);color:#fff}.phones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:start}.phone{position:relative;border:7px solid #122b3d;border-radius:35px;overflow:hidden;background:#fff;box-shadow:0 18px 35px #0b294116;min-width:0;height:795px;display:flex;flex-direction:column;transition:box-shadow .2s}.phone.current{box-shadow:0 18px 35px #0b294127,0 0 0 3px #087b7833}.phone.locked{background:#f8faf9}.phone-notch{height:27px;flex:none;position:relative;background:#fff}.phone-notch:before{content:"";position:absolute;left:calc(50% - 44px);top:7px;width:88px;height:12px;border-radius:20px;background:#122b3d}.phone-header{padding:15px 20px 18px;background:#fff;border-bottom:1px solid var(--line)}.device-tag{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--teal)}.phone-header h3{font-size:23px;margin:5px 0 4px;letter-spacing:-.03em}.phone-header small{font-size:11px;color:var(--muted)}.phone-scroll{padding:18px 19px 24px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#bccfc8 transparent;overscroll-behavior:contain}.patient{display:flex;align-items:center;gap:10px;margin-bottom:18px}.avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;color:var(--teal);background:var(--soft);font-weight:700}.patient strong{font-size:14px}.patient small{font-size:10px;display:block;color:var(--muted);margin-top:3px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{display:block;font-size:12px;line-height:1.35;margin-bottom:13px;color:#314e61}input,select{display:block;width:100%;min-width:0;height:43px;margin-top:6px;border:1px solid #c5d4d0;border-radius:7px;background:#fff;padding:7px 9px;font-size:14px;color:var(--ink)}select{padding-right:20px}fieldset{border:0;border-top:1px solid var(--line);margin:10px 0 0;padding:16px 0 0;min-width:0}legend{padding:0 8px 0 0;font-weight:700;font-size:14px}.field-help{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 14px}.primary{width:100%;background:var(--teal);color:#fff;border:0;font-size:13px;font-weight:700;line-height:1.4;padding:13px 12px;margin:8px 0 10px}.primary:hover:not(:disabled){background:#076664}.empty{padding:45px 10px;color:var(--muted)}.empty>span{font-size:48px;font-weight:300;letter-spacing:-.06em;color:#b7cac3}.empty h4{font-size:21px;line-height:1.25;color:var(--ink);margin:18px 0 12px}.empty p{font-size:15px;line-height:1.55}.group-badge{padding:17px 18px;border-radius:10px;background:#e6f2eb;border-left:4px solid #267558}.group-badge span{font-size:11px;display:block}.group-badge strong{display:block;font-size:29px;letter-spacing:-.03em;margin-top:4px}.group-badge[data-group=B]{background:#fff3d7;border-color:#b98413}.group-badge[data-group=C],.group-badge[data-group=D]{background:#fbe8e6;border-color:#a32f36;color:#852931}.reason{font-size:13px;line-height:1.45;margin:12px 0}.readings{border-top:1px solid var(--line)}.readings>div{padding:11px 0;border-bottom:1px solid var(--line)}.readings span{display:block;font-size:11px;color:var(--muted)}.readings strong{display:block;font-size:14px;margin-top:5px;line-height:1.4}.context-note{font-size:11px;line-height:1.5;color:var(--muted);padding-left:10px;border-left:2px solid #cadbd4}.route h4{font-size:13px;margin:17px 0 6px}.route p{font-size:12px;line-height:1.5;margin:0}.confirm{display:flex;align-items:flex-start;gap:9px;margin-top:22px}.confirm input{width:19px;height:19px;margin:0;flex:none;accent-color:var(--teal)}.message-scroll{background:#edf2ed}.channel-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}.channel-tabs button{font-size:12px;min-height:38px;padding:7px 9px}.channel-tabs [aria-pressed=true]{background:var(--teal);color:#fff;border-color:var(--teal)}.channel-header{font-size:11px;text-align:center;color:var(--muted);margin:16px 0}.bubble{background:#fff;padding:14px;border-radius:0 12px 12px;box-shadow:0 2px 3px #0b29410b}.bubble p{font-size:13px;line-height:1.6;margin:0;white-space:pre-line;overflow-wrap:anywhere}.bubble small{display:block;font-size:9px;color:var(--muted);margin-top:12px}.document-links{display:grid;gap:7px;margin-top:12px}.document-links button{display:flex;align-items:center;gap:11px;text-align:left;border:0;padding:11px 12px}.document-links button>span{font-size:24px;line-height:1;color:var(--teal)}.document-links strong{font-size:12px;display:block}.document-links small{font-size:10px;display:block;color:var(--muted);margin-top:4px}.audio-box{margin-top:12px;background:#fff;padding:12px;border-radius:8px;display:flex;gap:6px;flex-wrap:wrap}.audio-box button{font-size:11px;padding:7px 8px;min-height:36px}.audio-box p{margin:3px 0 0;font-size:10px;color:var(--muted);line-height:1.45;width:100%}.followup{padding-top:10px;margin-top:15px;border-top:1px solid #cedbd2}.followup h4{font-size:14px;margin:8px 0}.followup>p{font-size:12px;line-height:1.4}.followup>button{font-size:12px;line-height:1.45;text-align:left;color:var(--teal);background:#f8fffa}.urgent-message{background:#fff0ec;border-left:4px solid var(--danger);padding:13px;margin-top:10px;font-size:12px;line-height:1.5}.urgent-message strong{color:#8d2630}.urgent-message p{margin:8px 0}.urgent-message small{font-size:10px}.call-state{text-align:center;padding:14px 0}.call-symbol{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:var(--teal);color:#fff;font-size:32px;margin:0 auto 10px}.call-state strong{display:block;font-size:16px}.call-state p{font-size:11px;color:var(--muted)}.simulation-note{font-size:14px;line-height:1.6;color:var(--muted);padding:20px 0;margin-top:15px;border-bottom:1px solid var(--line)}.simulation-note strong{color:var(--ink)}.source-details{margin-top:22px;line-height:1.6;font-size:14px;color:var(--muted)}.source-details summary{cursor:pointer;font-weight:700;color:var(--ink);min-height:44px}.source-details a{color:var(--teal)}.reports-heading{max-width:850px;margin:32px 0}.reports-heading h2{font-size:34px;line-height:1.12;letter-spacing:-.03em}.reports-heading p{font-size:20px;line-height:1.5;color:var(--muted)}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}.report{background:#fff;border:1px solid var(--line);padding:30px;border-radius:6px}.report header{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;border-bottom:3px solid var(--teal);padding-bottom:19px}.report header strong{font-size:20px}.report header strong span{display:block;font-size:14px;font-weight:500;margin-top:4px}.report header>b{font-size:9px;letter-spacing:.06em;background:#e7efeb;padding:7px}.report-id{font-size:12px;color:var(--muted);line-height:1.6;margin:19px 0}.report h3{font-size:29px;letter-spacing:-.04em;margin:0}.report-sub{font-size:13px;color:var(--muted);margin:7px 0 23px}.report table{width:100%;border-collapse:collapse;font-size:17px}.report caption{text-align:left;position:absolute;clip:rect(0,0,0,0)}.report th,.report td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line)}.report th{font-size:12px;color:var(--muted)}.report td:last-child{font-weight:700;white-space:nowrap}.report tr.highlight{background:#edf6f0}.report-note{font-size:13px;line-height:1.6;color:var(--muted);margin:23px 0}.report footer{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:15px}.ns1-result{padding:23px;background:#edf6f0;margin:24px 0 28px;border-left:4px solid var(--teal)}.ns1-result span,.ns1-result small{display:block;font-size:13px;color:var(--muted)}.ns1-result strong{display:block;font-size:32px;margin:7px 0}.report h4{font-size:18px}.report>p:not([class]){font-size:17px;line-height:1.55}dialog{border:0;border-radius:14px;padding:28px;color:var(--ink);width:min(620px,calc(100vw - 32px));max-height:85dvh;overflow:auto;box-shadow:0 24px 80px #0004}dialog::backdrop{background:#071d2db3}.dialog-head{display:flex;align-items:flex-start;gap:20px;justify-content:space-between}.dialog-head h2{font-size:26px;margin:5px 0 20px;letter-spacing:-.025em}.dialog-head button{flex:none;min-width:44px;padding:5px;font-size:24px}.dialog-note{font-size:12px;line-height:1.5;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}#previewBody{font-size:16px;line-height:1.6;white-space:pre-line}.live-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1700px){.phone{height:880px}.phone-scroll{padding:22px 24px 28px}.phone-header{padding:18px 24px}.phone-header h3{font-size:26px}label{font-size:14px}input,select{font-size:16px;height:46px}.field-help,.context-note{font-size:13px}.bubble p,.route p{font-size:15px}.readings strong{font-size:16px}}
@media(max-width:1100px){main{padding-left:26px;padding-right:26px}.phones{gap:16px}.phone{border-width:5px;border-radius:29px}.phone-scroll{padding:14px 12px}.phone-header{padding:13px 13px 15px}.phone-header h3{font-size:20px}.scenario-bar{align-items:flex-start;flex-direction:column}.presets{width:100%}.presets button{flex:1}.stepper button{font-size:14px}}
@media(max-width:800px){.site-header{padding:18px 22px;gap:12px}.brand{font-size:19px}.brand span{display:block;font-size:13px;margin-top:4px}.back{font-size:12px;max-width:110px;text-align:right}main{padding:28px 22px 40px}.intro>p:last-child{font-size:19px}.tabs{gap:4px}.tabs button,.tabs a{font-size:14px;padding:10px 12px}.scenario-bar h2{font-size:22px}.scenario-bar p{font-size:15px}.presets{gap:6px}.presets button{min-width:0;padding:10px;font-size:23px}.presets small{font-size:10px}.stepper{gap:4px;margin:22px 0 18px}.stepper button{font-size:11px;line-height:1.35;text-align:center;padding:6px}.stepper b{display:grid;margin:0 auto 5px;width:28px;height:28px}.phones{display:block;max-width:430px;margin:auto}.phone{display:none;width:100%;height:auto;max-height:none;min-height:620px;border-width:6px;border-radius:32px}.phone.current{display:flex}.phone-scroll{overflow:visible;padding:18px}.phone-header{padding:15px 18px}.phone-header h3{font-size:24px}label{font-size:13px}input,select{font-size:16px;height:46px}.field-help,.context-note{font-size:12px}.primary{font-size:14px;min-height:49px}.bubble p,.route p{font-size:14px}.readings strong{font-size:15px}.readings span{font-size:12px}.reason{font-size:14px}.confirm{font-size:14px}.simulation-note{font-size:13px}.reports-heading h2{font-size:30px}.reports-heading p{font-size:19px}.report-grid{grid-template-columns:1fr}.report{padding:23px}.report header strong{font-size:19px}.report table{font-size:15px}.channel-tabs button{font-size:13px;min-height:44px}.audio-box button{min-height:44px;font-size:12px}.followup>button{font-size:13px;min-height:60px}.document-links strong{font-size:13px}.document-links small{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.site-header,.tabs,.stepper,.presets,.source-details,.audio-box,.followup{display:none!important}.phone{box-shadow:none;height:auto;display:block!important;overflow:visible}.phone-scroll{overflow:visible}.phones{display:grid;grid-template-columns:repeat(3,1fr)}main{padding:12px}.report{break-inside:avoid}.report-grid{gap:16px}}

/* Compact presentation surface; each device retains its own scroll area. */
.communication-state{display:block;font-size:10px;color:var(--teal);font-weight:700;padding-bottom:8px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.service-note{font-size:14px;line-height:1.6;color:var(--muted);padding:20px 0;margin-top:15px;border-bottom:1px solid var(--line)}
.service-note strong{color:var(--ink)}#territoryFrame{display:block;width:100%;height:820px;border:0;background:var(--paper);border-radius:12px;margin-top:16px}
body.embedded .site-header,body.embedded .intro,body.embedded .service-note,body.embedded .source-details{display:none}
body.embedded main{max-width:none;padding:8px 12px 10px}
body.embedded .tabs{gap:4px;padding:0 0 6px;flex-wrap:nowrap}
body.embedded .tabs button{min-height:34px;padding:6px 12px;font-size:12px;white-space:nowrap}
body.embedded .scenario-bar{flex-direction:row;align-items:center;margin:9px 0 5px;gap:12px}
body.embedded .scenario-bar h2{font-size:16px;margin:0 0 4px}
body.embedded .scenario-bar p{font-size:11px;max-width:440px;line-height:1.35}
body.embedded .presets{width:auto;flex:none;gap:5px}
body.embedded .presets button{min-width:67px;min-height:43px;font-size:17px;padding:5px 9px}
body.embedded .presets small{font-size:9px;margin-top:1px}
body.embedded .stepper{margin:5px 0 7px;gap:14px}
body.embedded .stepper button{min-height:28px;font-size:12px;padding:2px 0}
body.embedded .stepper b{width:23px;height:23px;margin-right:5px;font-size:11px}
body.embedded .phones{gap:14px}
body.embedded .phone{height:calc(100dvh - 147px);min-height:240px;max-height:820px;border-width:3px;border-radius:17px;box-shadow:none}
body.embedded .phone.current{box-shadow:0 0 0 2px #087b7829}
body.embedded .phone-notch{display:none}
body.embedded .phone-header{padding:8px 12px}
body.embedded .phone-header .device-tag,body.embedded .phone-header small{display:none}
body.embedded .phone-header h3{font-size:17px;margin:0}
body.embedded .phone-scroll{padding:10px 12px;overflow:auto}
body.embedded [data-panel=intake] .phone-scroll{padding-bottom:68px}
body.embedded #clinicalForm>.primary{position:absolute;bottom:0;left:0;width:100%;margin:0;border-radius:0;min-height:42px;z-index:2}
body.embedded .empty{padding:13px 3px}
body.embedded .empty>span{font-size:30px}
body.embedded .empty h4{font-size:17px;margin:9px 0}
body.embedded .empty p{font-size:12px;line-height:1.45}
body.embedded .reports-heading{margin:14px 0}
body.embedded .reports-heading h2{font-size:22px;margin:0 0 7px}
body.embedded .reports-heading p{font-size:14px;margin:0}
body.embedded .report-grid{gap:15px}
body.embedded .report{padding:19px}
body.embedded .report h3{font-size:24px}
body.embedded .report header{padding-bottom:12px}
body.embedded .report-id{margin:12px 0}
body.embedded .report table{font-size:15px}
body.embedded .report th,body.embedded .report td{padding:10px 8px}
body.embedded #territoryFrame{height:calc(100dvh - 58px);min-height:360px;margin-top:7px}
@media(min-width:801px) and (max-height:550px){
 body.embedded main{position:relative}
 body.embedded .tabs{padding-right:285px}
 body.embedded .scenario-bar{position:absolute;right:12px;top:8px;margin:0}
 body.embedded .scenario-bar>div:first-child{display:none}
 body.embedded .presets button{min-width:62px;min-height:34px;font-size:14px;padding:3px 8px}
 body.embedded .presets small{font-size:8px}
 body.embedded .stepper{margin:6px 0 7px}
 body.embedded .phone{height:calc(100dvh - 95px)}
 body.embedded .channel-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 body.embedded .channel-tabs button{min-height:31px;font-size:10px;padding:5px 3px}
 body.embedded .channel-header{margin:9px 0;font-size:10px}
 body.embedded .group-badge{padding:11px 14px}
 body.embedded .group-badge strong{font-size:25px}
 body.embedded .reason{font-size:12px;margin:9px 0}
 body.embedded .readings>div{padding:8px 0}
 body.embedded .readings strong{font-size:13px}
}
@media(max-width:800px){
 body.embedded main{padding:7px 9px 12px}
 body.embedded .tabs{overflow-x:auto;scrollbar-width:thin}
 body.embedded .tabs button{font-size:11px;padding:7px 9px}
 body.embedded .scenario-bar{display:block;margin-top:10px}
 body.embedded .scenario-bar h2{font-size:16px}
 body.embedded .scenario-bar p{font-size:11px}
 body.embedded .presets{display:flex;margin-top:8px;width:100%}
 body.embedded .presets button{flex:1;min-width:0}
 body.embedded .presets small{font-size:10px}
 body.embedded .stepper{gap:3px;margin:7px 0}
 body.embedded .stepper button{font-size:10px;line-height:1.2;padding:4px 1px}
 body.embedded .stepper b{display:inline-grid;width:21px;height:21px;margin:0 3px 0 0}
 body.embedded .phones{max-width:520px}
 body.embedded .phone{height:calc(100dvh - 218px);min-height:290px;max-height:none;border-radius:18px}
 body.embedded .phone-scroll{padding:13px 15px;overscroll-behavior:contain}
 body.embedded .phone-header h3{font-size:20px}
 body.embedded .report-grid{grid-template-columns:1fr}
 body.embedded .report{padding:18px}
 body.embedded .reports-heading h2{font-size:22px}
 body.embedded #territoryFrame{height:calc(100dvh - 57px)}
}
/* One presentation task per frame: clinical review or patient follow-up. */
body.presentation-stage{height:100dvh;overflow:hidden;background:#f6f7f4}
body.presentation-stage>main,body.presentation-stage>.site-header{display:none!important}
#presentationStage{height:100dvh;display:flex;flex-direction:column;gap:10px;padding:12px 16px;max-width:1500px;margin:auto}
#presentationStage .stage-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;flex:none}
#presentationStage h2{font-size:20px;line-height:1.2;margin:0;letter-spacing:-.025em}
#presentationStage .stage-profiles{display:flex;gap:6px;flex:none}
#presentationStage .stage-profiles button{display:flex;align-items:center;gap:6px;padding:7px 10px;min-height:42px;font-size:16px}
#presentationStage .stage-profiles b{font-size:18px}
#presentationStage .stage-profiles span{font-size:13px}
#presentationStage .stage-profiles [aria-pressed=true]{background:#e2efea;border-color:var(--teal);box-shadow:inset 0 -3px var(--teal)}
#presentationStage .stage-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8c5bc transparent;border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px 20px}
#presentationStage .stage-entry{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:0}
#presentationStage h3{font-size:19px;line-height:1.25;letter-spacing:-.025em;margin:0 0 12px}
#presentationStage .stage-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
#presentationStage label{font-size:16px;line-height:1.25;margin:0 0 10px;color:var(--ink)}
#presentationStage input:not([type=checkbox]),#presentationStage select{font-size:17px;height:43px;padding:7px 10px;margin-top:5px}
#presentationStage .stage-wide{grid-column:1/-1}
#presentationStage .stage-help{font-size:14px;line-height:1.35;color:var(--muted);margin:0}
#presentationStage .stage-additional{border-top:1px solid var(--line);margin:3px 0 10px;padding-top:9px}
#presentationStage .stage-additional summary{font-size:16px;font-weight:600;cursor:pointer;min-height:30px}
#presentationStage .stage-additional .stage-field-grid{margin-top:9px}
#presentationStage .stage-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0;padding:0;border:0;font-size:16px;color:var(--muted)}
#presentationStage .stage-footer button{font-size:16px;min-height:44px;padding:10px 16px;white-space:nowrap}
#presentationStage .stage-primary{background:var(--teal);color:#fff;border-color:var(--teal);font-weight:700}
#presentationStage .stage-review-heading{display:flex;align-items:baseline;gap:20px;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:12px}
#presentationStage .stage-review-heading h3{font-size:27px;color:var(--teal);margin:0}
#presentationStage .stage-review-heading>span{font-size:16px;color:var(--muted)}
#presentationStage .stage-review-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:30px}
#presentationStage .stage-results{margin:0}
#presentationStage .stage-results>div{padding:7px 0 10px;border-bottom:1px solid var(--line)}
#presentationStage .stage-results dt{font-size:16px;color:var(--muted)}
#presentationStage .stage-results dd{font-size:19px;font-weight:650;line-height:1.3;margin:3px 0 0}
#presentationStage .stage-clinical-note{font-size:16px;line-height:1.4;color:var(--muted);margin:13px 0 0}
#presentationStage .stage-route h4{font-size:18px;margin:3px 0 5px}
#presentationStage .stage-route p{font-size:16px;line-height:1.42;margin:0 0 13px}
#presentationStage .stage-confirm{display:flex;align-items:center;gap:9px;margin:0;font-size:16px}
#presentationStage .stage-confirm input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--teal)}
#presentationStage[data-mode=followup] .stage-scroll{background:#eaf1ed;padding:14px 22px}
#presentationStage .stage-chat{max-width:1040px;margin:auto}
#presentationStage .stage-chat-meta{display:flex;justify-content:space-between;gap:16px;font-size:15px;color:#365d55;margin-bottom:10px}
#presentationStage .stage-message{background:#fff;padding:17px 21px;border-radius:0 12px 12px;box-shadow:0 2px 5px #0b29410b}
#presentationStage .stage-message p{font-size:18px;line-height:1.45;margin:0 0 12px}
#presentationStage .stage-message p:last-child{margin-bottom:0}
#presentationStage .stage-followup-footer{justify-content:flex-start;gap:10px}
#presentationStage .stage-channel-choice{margin-left:auto;position:relative}
#presentationStage .stage-channel-choice summary{font-size:16px;cursor:pointer;padding:10px 8px;min-height:44px}
#presentationStage .stage-channel-choice>div{position:absolute;right:0;bottom:calc(100% + 8px);width:180px;display:grid;gap:4px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 30px #0b294125;z-index:5}
#presentationStage .stage-channel-choice button{text-align:left}
#presentationStage .stage-patient-message{margin:14px 0 14px auto;background:#d6ece0;padding:13px 18px;border-radius:10px 0 10px 10px;max-width:650px;font-size:18px;line-height:1.4}
#presentationStage .stage-urgent{border-left:4px solid #a32f36;background:#fff6f2}
#presentationStage .stage-urgent strong{font-size:19px;color:#8a3034;display:block;margin-bottom:8px}
@media(min-width:801px) and (max-height:500px){
 #presentationStage{padding:8px 12px;gap:8px}
 #presentationStage .stage-scroll{padding:12px 16px}
 #presentationStage h3{margin-bottom:8px}
 #presentationStage label{margin-bottom:8px}
 #presentationStage .stage-entry{gap:26px}
 #presentationStage .stage-help{font-size:13px}
 #presentationStage .stage-message{padding:14px 18px}
 #presentationStage .stage-message p{font-size:17px;line-height:1.4;margin-bottom:10px}
}
@media(max-width:800px){
 #presentationStage{padding:9px;gap:8px}
 #presentationStage .stage-toolbar{display:block}
 #presentationStage h2{font-size:19px;margin-bottom:8px}
 #presentationStage .stage-profiles{gap:5px}
 #presentationStage .stage-profiles button{flex:1;padding:6px;gap:4px;min-height:42px;justify-content:center}
 #presentationStage .stage-profiles span{font-size:10px}
 #presentationStage .stage-profiles b{font-size:18px}
 #presentationStage .stage-scroll{padding:14px}
 #presentationStage .stage-entry,#presentationStage .stage-review-grid{grid-template-columns:1fr;gap:22px}
 #presentationStage h3{font-size:19px}
 #presentationStage .stage-field-grid{gap:0 10px}
 #presentationStage label{font-size:16px}
 #presentationStage .stage-help{font-size:14px}
 #presentationStage .stage-footer{flex-wrap:wrap;gap:8px}
 #presentationStage .stage-footer>span{display:none}
 #presentationStage .stage-footer button{font-size:15px;padding:9px 12px}
 #presentationStage #stageEntryFooter button{width:100%}
 #presentationStage .stage-review-footer .stage-confirm{order:-1;width:100%;font-size:16px;padding:2px 0}
 #presentationStage .stage-review-footer>button{flex:1}
 #presentationStage .stage-review-heading{display:block}
 #presentationStage .stage-review-heading h3{margin-bottom:5px}
 #presentationStage .stage-review-heading>span{font-size:15px}
 #presentationStage[data-mode=followup] .stage-scroll{padding:12px}
 #presentationStage .stage-chat-meta{font-size:13px}
 #presentationStage .stage-message{padding:14px}
 #presentationStage .stage-message p{font-size:17px;line-height:1.45}
 #presentationStage .stage-followup-footer{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 #presentationStage .stage-followup-footer>button{font-size:14px;white-space:normal;padding:7px}
 #presentationStage .stage-channel-choice{margin:0}
 #presentationStage .stage-channel-choice summary{font-size:15px}
 #presentationStage .stage-patient-message{font-size:17px;padding:12px}
}
#presentationStage .stage-results>div{padding:5px 0 7px}#presentationStage .stage-opening-message{margin:0 0 10px auto;padding:9px 14px;font-size:16px}
@media(min-width:1300px){
 #presentationStage{padding:18px 22px;gap:15px}
 #presentationStage h2{font-size:25px}
 #presentationStage h3{font-size:24px;margin-bottom:16px}
 #presentationStage .stage-profiles button{font-size:20px;min-height:48px;padding:9px 14px;gap:8px}
 #presentationStage .stage-profiles b{font-size:23px}
 #presentationStage .stage-profiles span{font-size:17px}
 #presentationStage .stage-scroll{padding:22px 26px}
 #presentationStage .stage-entry{gap:40px}
 #presentationStage label{font-size:20px;margin-bottom:15px}
 #presentationStage input:not([type=checkbox]),#presentationStage select{font-size:20px;height:50px;padding:9px 12px;margin-top:7px}
 #presentationStage .stage-help{font-size:17px}
 #presentationStage .stage-additional summary{font-size:20px}
 #presentationStage .stage-footer,#presentationStage .stage-footer button,#presentationStage .stage-confirm,#presentationStage .stage-channel-choice summary{font-size:20px}
 #presentationStage .stage-footer button{min-height:50px;padding:12px 20px}
 #presentationStage .stage-confirm input{width:23px;height:23px}
 #presentationStage .stage-review-heading h3{font-size:33px}
 #presentationStage .stage-review-heading>span,#presentationStage .stage-results dt,#presentationStage .stage-clinical-note{font-size:20px}
 #presentationStage .stage-results dd{font-size:24px}
 #presentationStage .stage-results>div{padding:7px 0 12px}
 #presentationStage .stage-route h4{font-size:23px;margin-bottom:8px}
 #presentationStage .stage-route p{font-size:20px;line-height:1.45;margin-bottom:18px}
 #presentationStage[data-mode=followup] .stage-scroll{padding:22px 30px}
 #presentationStage .stage-chat{max-width:1240px}
 #presentationStage .stage-chat-meta{font-size:19px;margin-bottom:15px}
 #presentationStage .stage-message{padding:22px 26px}
 #presentationStage .stage-message p{font-size:22px;line-height:1.45;margin-bottom:16px}
 #presentationStage .stage-patient-message{font-size:22px;max-width:780px}
 #presentationStage .stage-opening-message{font-size:20px;padding:13px 18px;margin-bottom:16px}
 #presentationStage .stage-urgent strong{font-size:24px}
}
/* Reuse of the former presentation's WhatsApp handset: inbox, chat,
   documents, waveform player, transcript and composer. */
#presentationStage.original-messenger .stage-scroll{display:flex;justify-content:center;align-items:stretch;overflow:hidden;padding:4px 12px;background:transparent;border:0}
#presentationStage.original-messenger .stage-chat{max-width:400px;width:100%;height:100%;margin:0;min-height:0}
#presentationStage .legacy-phone{position:relative;border:7px solid #102d3f;border-radius:34px;background:#102d3f;box-shadow:0 12px 30px #0b294126;flex:none}
#presentationStage .legacy-side{position:absolute;left:-11px;top:80px;width:4px;height:48px;border-radius:4px 0 0 4px;background:#0b2433}
#presentationStage .legacy-screen{position:relative;display:flex;height:100%;min-height:0;flex-direction:column;border-radius:26px;overflow:hidden;background:#fff}
#presentationStage .legacy-island{position:absolute;top:6px;left:50%;z-index:2;width:78px;height:17px;border-radius:14px;background:#071a25;transform:translateX(-50%)}
#presentationStage .legacy-status{display:flex;flex:0 0 27px;align-items:center;justify-content:space-between;padding:5px 16px 2px;background:#0b665c;color:#fff;font-size:11px;font-weight:750}
#presentationStage .legacy-inbox,#presentationStage .legacy-chat-view{display:flex;flex:1;min-height:0;flex-direction:column}
#presentationStage .legacy-header{display:flex;align-items:center;gap:9px;flex:0 0 55px;padding:6px 12px;background:#0b665c;color:#fff}
#presentationStage .legacy-header>div{min-width:0;flex:1}
#presentationStage .legacy-header strong{display:block;font-size:18px;line-height:1.15}
#presentationStage .legacy-header small{display:block;margin-top:4px;font-size:12px;color:#d9eee9}
#presentationStage .legacy-back{display:grid;place-items:center;border:0;background:none;color:#fff;width:32px;height:40px;padding:0;font-size:37px;line-height:1}
#presentationStage .legacy-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#eff8f5;color:#08756e;border-radius:50%;font-size:17px;font-weight:800;letter-spacing:-.05em}
#presentationStage .legacy-header-icons{font-size:20px;letter-spacing:1px}
#presentationStage .legacy-header-icons{display:flex;gap:14px}
#presentationStage .legacy-header-icons svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#presentationStage .legacy-chat-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:10px 13px 13px;background-color:#efeae2;background-image:radial-gradient(#d8d1c74d 1px,transparent 1px);background-size:16px 16px;scrollbar-width:thin;scrollbar-color:#9bb9b0 transparent}
#presentationStage .legacy-date{display:block;width:max-content;margin:0 auto 8px;padding:5px 9px;background:#e2ece9;border-radius:6px;font-size:11px;color:#57716d}
#presentationStage .legacy-message{max-width:92%;margin-top:8px;padding:10px 12px;border-radius:0 10px 10px 10px;background:#fff;color:#263b42;box-shadow:0 1px 2px #0002}
#presentationStage .legacy-message p{font-size:16px;line-height:1.4;margin:0 0 9px}
#presentationStage .legacy-message p:last-child{margin:0}
#presentationStage .legacy-patient{max-width:83%;margin:7px 0 9px auto;padding:10px 12px;background:#d9fdd3;color:#234139;border-radius:9px 0 9px 9px;font-size:15px;line-height:1.4}
#presentationStage .legacy-documents{display:grid;gap:7px;margin-top:8px}
#presentationStage .legacy-file{display:grid;width:91%;grid-template-columns:40px 1fr 20px;gap:10px;align-items:center;min-height:60px;padding:8px 10px;border:1px solid #e1e8e4;border-radius:9px;background:#fff;color:#263b42;text-align:left;box-shadow:0 1px 2px #0001}
#presentationStage .legacy-file-icon{display:grid;place-items:center;width:39px;height:43px;background:#e74b42;border-radius:3px;color:#fff;font-size:10px;font-weight:800}
#presentationStage .legacy-file-icon.booklet{background:#167d76}
#presentationStage .legacy-file strong{display:block;font-size:15px;line-height:1.25}
#presentationStage .legacy-file small{display:block;margin-top:3px;font-size:11px;color:#72878b}
#presentationStage .legacy-audio{display:flex;align-items:center;gap:9px;min-height:78px;width:96%;max-width:96%;padding:13px 12px 11px}
#presentationStage .legacy-audio-avatar{display:grid;place-items:center;width:33px;height:33px;flex:none;background:#d4ede6;border-radius:50%;color:#08776c;font-size:13px;font-weight:800}
#presentationStage .legacy-play{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:50%;background:#0f887e;color:#fff;font-size:17px}
#presentationStage .legacy-play:disabled{opacity:.5}
#presentationStage .legacy-wave-wrap{flex:1;min-width:0}
#presentationStage .legacy-waveform{display:flex;gap:2px;height:37px;align-items:center;cursor:pointer;outline-offset:3px}
#presentationStage .legacy-waveform span{width:3px;max-width:4px;min-width:1px;flex:1;border-radius:99px;background:#98afb2}
#presentationStage .legacy-waveform span.is-played{background:#0f8378}
#presentationStage .legacy-audio-meta{display:flex;justify-content:space-between;gap:8px;margin-top:4px;font-size:10px;color:#71878b}
#presentationStage .legacy-audio-fallback{font-size:12px;line-height:1.3;color:#617974;margin:8px 0}
#presentationStage .legacy-transcript{margin:8px 0 0;border:0;border-radius:7px;background:#e0f1eb;color:#08766d;font-size:12px;font-weight:750;min-height:36px;padding:9px 11px}
#presentationStage .legacy-composer{display:flex;align-items:center;gap:7px;flex:0 0 43px;padding:6px 9px;background:#efeae2;color:#78918c}
#presentationStage .legacy-composer>button:first-of-type{flex:1;min-width:0;height:31px;text-align:left;padding:0 12px;background:#fff;border:0;border-radius:99px;font-size:13px;color:#718781}
#presentationStage .legacy-composer>button:last-child{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#0b7d71;color:#fff;padding:0}
#presentationStage .legacy-urgent{border-left:4px solid #a43c36;background:#fff7f3}
#presentationStage .legacy-urgent strong{display:block;font-size:16px;color:#96352f;margin-bottom:6px}
#presentationStage .legacy-list-header{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;color:#075e54}
#presentationStage .legacy-list-header strong{font-size:24px}
#presentationStage .legacy-search{margin:0 13px 10px;padding:10px 15px;border-radius:22px;background:#f0f2f5;font-size:13px;color:#6d7b80}
#presentationStage .legacy-filters{display:flex;gap:7px;padding:0 13px 9px;font-size:12px}
#presentationStage .legacy-filters span{padding:6px 11px;border-radius:99px;background:#f0f2f5;color:#596b70}
#presentationStage .legacy-filters .active{background:#d9fdd3;color:#0a675e}
#presentationStage .legacy-conversation{display:grid;width:100%;grid-template-columns:45px 1fr auto;gap:10px;align-items:center;padding:12px 15px;min-height:75px;border:0;border-bottom:1px solid #edf0f1;border-radius:0;background:#fff;color:#263b42;text-align:left}
#presentationStage .legacy-conversation strong{display:block;font-size:16px}
#presentationStage .legacy-conversation small{display:block;margin-top:5px;font-size:12px;color:#718086}
#presentationStage .legacy-conversation time{font-size:11px;color:#718086}
#presentationStage .legacy-conversation.muted{opacity:.75}
#presentationStage .legacy-unread{display:grid;place-items:center;width:21px;height:21px;background:#25d366;color:#fff;border-radius:50%;font-size:11px}
@media(min-width:1300px){
 #presentationStage.original-messenger .stage-chat{max-width:440px}
 #presentationStage .legacy-header{flex-basis:64px;padding:9px 15px}
 #presentationStage .legacy-header strong{font-size:21px}
 #presentationStage .legacy-header small{font-size:14px}
 #presentationStage .legacy-message p,#presentationStage .legacy-patient{font-size:18px}
 #presentationStage .legacy-file{min-height:70px}
 #presentationStage .legacy-file strong{font-size:17px}
 #presentationStage .legacy-file small{font-size:13px}
 #presentationStage .legacy-audio{min-height:91px}
 #presentationStage .legacy-audio-meta{font-size:12px}
 #presentationStage .legacy-transcript{font-size:14px}
 #presentationStage .legacy-composer{flex-basis:47px}
}
@media(min-width:600px) and (max-width:1299px){
 #presentationStage.original-messenger{padding:10px 12px;gap:10px}
 #presentationStage.original-messenger .stage-toolbar{display:flex;align-items:center;gap:12px}
 #presentationStage.original-messenger h2{font-size:18px;margin:0;white-space:nowrap}
 #presentationStage.original-messenger .stage-profiles{gap:5px}
 #presentationStage.original-messenger .stage-profiles button{padding:7px;gap:5px;min-height:40px}
 #presentationStage.original-messenger .stage-profiles span{font-size:12px}
 #presentationStage.original-messenger .stage-followup-footer{display:flex;flex-wrap:nowrap;gap:6px}
 #presentationStage.original-messenger .stage-followup-footer>button{font-size:14px;min-height:40px;padding:8px 10px;white-space:nowrap}
 #presentationStage.original-messenger .stage-channel-choice{margin-left:auto}
 #presentationStage.original-messenger .stage-channel-choice summary{font-size:14px;padding:8px 4px;min-height:40px;white-space:nowrap}
}
@media(min-width:900px) and (min-height:650px){#presentationStage.original-messenger .stage-chat{max-width:440px}}
@media(max-width:800px){
 #presentationStage.original-messenger .stage-scroll{padding:0 2px}
 #presentationStage .legacy-phone{border-width:5px;border-radius:28px}
 #presentationStage .legacy-screen{border-radius:23px}
 #presentationStage .legacy-header{padding:5px 8px;gap:6px;flex-basis:52px}
 #presentationStage .legacy-header strong{font-size:15px}
 #presentationStage .legacy-header small{font-size:11px}
 #presentationStage .legacy-header-icons{display:none}
 #presentationStage .legacy-avatar{width:34px;height:34px}
 #presentationStage .legacy-chat-scroll{padding:8px}
 #presentationStage .legacy-file{width:98%;grid-template-columns:34px 1fr 15px;gap:7px}
 #presentationStage .legacy-file-icon{width:32px;height:38px}
 #presentationStage .legacy-file strong{font-size:13px}
 #presentationStage .legacy-file small{font-size:10px}
 #presentationStage .legacy-message{max-width:96%}
 #presentationStage .legacy-message p,#presentationStage .legacy-patient{font-size:15px}
 #presentationStage .legacy-audio{gap:6px;padding:9px 8px;width:100%;max-width:100%}
 #presentationStage .legacy-audio-avatar{width:26px;height:26px}
 #presentationStage .legacy-play{width:37px;height:37px}
 #presentationStage .legacy-audio-meta{font-size:9px}
 #presentationStage .legacy-waveform{gap:1px}
 #presentationStage .legacy-conversation{padding:10px;grid-template-columns:37px 1fr 20px;gap:7px}
 #presentationStage .legacy-conversation strong{font-size:14px}
}
