*{box-sizing:border-box}body{margin:0;background:#0c151d;color:#e9f0f5;font-family:system-ui,-apple-system,sans-serif}header{height:80px;border-bottom:1px solid #263440;display:flex;align-items:center;justify-content:space-between;padding:0 4vw}.brand{font-size:26px;letter-spacing:3px;font-weight:800}.dot{color:#68dec4;font-size:12px;margin-left:7px}.sub{margin-left:24px;font-size:11px;letter-spacing:2px;color:#93a5b3}.tag{font-size:12px;color:#a2b5c2;background:#172630;padding:8px 13px;border-radius:30px}main{max-width:1550px;margin:auto;padding:28px 4vw}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:2px;color:#6fd8c4;font-weight:700}h1{font-size:30px;font-weight:550;letter-spacing:-1px;margin:9px 0}p{color:#9fb1bf;font-size:13px;line-height:1.6;margin:5px 0}button,select{background:#22343f;color:#e1eef3;border:1px solid #3d5361;border-radius:7px;padding:10px 14px;cursor:pointer;font:inherit;font-size:12px}button:hover,button.active{background:#365c60;border-color:#68dec4}button:focus-visible,select:focus-visible{outline:2px solid #68dec4}kbd{margin-left:10px;color:#89a3b2}.views{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.panel{border:1px solid #30424e;border-radius:12px;overflow:hidden;background:#13212b}.panelhead,.panelbottom{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-size:10px;letter-spacing:1.5px}.panelhead span:last-child{color:#69dec4;letter-spacing:0;font-size:12px}#endo{height:410px;position:relative;background:#05090c}canvas{display:block;width:100%;height:100%}.cross{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#ffffff66;font-size:22px;pointer-events:none}.viewnote{position:absolute;bottom:16px;left:18px;color:#ffffff77;font-size:11px}.panelbottom{letter-spacing:0;color:#a4bac8;gap:10px;height:67px}#overview{height:300px}.handle{height:177px;border-top:1px solid #30424e;display:flex;align-items:center;padding:0 16px;background:#162731}.handle svg{width:55%;max-height:155px}.handle strong{font-size:13px}.handle p{font-size:11px}.controls{margin-top:18px;display:flex;justify-content:space-between;gap:20px;border:1px solid #30424e;border-radius:12px;padding:20px;background:#13212b}.keygroups{display:flex;gap:22px;margin-top:12px}.keygroups>div{display:flex;gap:5px;align-items:center;flex-wrap:wrap;max-width:155px}.keygroups span{width:100%;color:#a7bac8;font-size:11px;margin-top:4px}.keygroups button{min-width:40px;padding:9px}.readouts{display:flex;gap:25px;align-items:center}.readouts span{display:block;font-size:9px;color:#849eaf;letter-spacing:1px}.readouts b{display:block;font-size:23px;font-weight:450;margin-top:8px;white-space:nowrap}.lesson{display:flex;gap:20px;align-items:center;padding:20px 0}.lessonnum{color:#6bdcc4;font-size:10px;letter-spacing:1.5px;white-space:nowrap}.lesson p{flex:1}footer{font-size:10px;color:#768e9e;border-top:1px solid #263440;padding:14px 0}@media(max-width:650px){.views{grid-template-columns:1fr}.controls{flex-direction:column}.tag{display:none}.keygroups{flex-wrap:wrap}.intro h1{font-size:23px}.lesson{flex-wrap:wrap}.sub{margin-left:12px}#endo{height:350px}}
#endo{height:560px}#overview{height:280px;position:relative;overflow:hidden}.handle{height:347px;padding:0 12px;gap:4px}.handle>div:last-child{width:32%;min-width:95px}#scopeview{width:68%;height:100%;position:relative}.maplabel{position:absolute;font-size:9px;color:#c8d7e2;pointer-events:none;white-space:nowrap;background:#13212ba8;padding:2px 4px;border-radius:3px}.maplabel.target{color:#67e6c5}.modelerror{padding:35px;color:#ffc6ad;font-size:14px}.loading{position:absolute;top:20px;left:20px;color:#9ab2c1;font-size:12px}#overview:after{content:'Patient right ←  ·  → Patient left';position:absolute;bottom:8px;left:12px;color:#7894a6;font-size:9px;pointer-events:none}@media(max-width:650px){#endo{height:420px}.handle{height:300px}}

.leverlabel{display:block;font-size:9px;letter-spacing:1px;color:#7edbc5;margin-top:20px}#leverInput{width:100%;accent-color:#67dec4;margin:12px 0 2px;cursor:pointer}.rangeends{display:flex;justify-content:space-between;font-size:10px;color:#9fb1bf}.contact{color:#ffbf86}.viewnote{right:16px;background:#11182088;border-radius:4px;padding:6px;line-height:1.5}.readouts{gap:16px}.keygroups{gap:14px}@media(min-width:651px) and (max-width:1050px){.controls{flex-wrap:wrap}.readouts{gap:35px}}

.mapcontrols{display:flex;align-items:center;gap:8px;font-size:10px;color:#9fb1bf;letter-spacing:0}.mapcontrols select{padding:5px 7px;font-size:11px}#overview.segmentmap{height:365px}#labelLegend{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#101f28;border-top:1px solid #30424e;font-size:10px;line-height:1.8;color:#b4c9d4}#labelLegend[hidden]{display:none}#labelLegend strong{color:#69dec4;display:block;font-size:9px;margin-bottom:5px}#labelLegend p{grid-column:1/-1;font-size:10px;margin:0}.camera{align-self:start}

.leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.leaders line{stroke:#728b9b;stroke-width:.65;opacity:.55}

#overview.segmentmap{height:320px}.handle{height:300px}#labelLegend{display:block;padding:0}#labelLegend[hidden]{display:none}#labelLegend summary{padding:12px;cursor:pointer;color:#85d9c6}.legendbody{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 12px 12px}.legendbody p{grid-column:1/-1}.panelhead{min-height:48px}.maplabel{font-size:9px}

#overview.segmentmap .maplabel{font-size:8px;background:#13212bf0;max-width:112px;white-space:normal;line-height:12px;padding:1px 3px}.panelhead #location{max-width:65%;text-align:right}.viewnote{font-size:10px}

.assistance{display:flex;gap:16px;align-items:center;justify-content:space-between;font-size:11px;color:#9fb1bf;padding:8px 0 18px}.assistance label{display:flex;align-items:center;gap:7px}.assistance input{accent-color:#68dec4}.assistance span{white-space:nowrap}.lesson select{max-width:300px}.lesson{flex-wrap:wrap}.lesson p{min-width:200px}@media(max-width:650px){.assistance{align-items:flex-start;flex-direction:column}}

#overview.segmentmap .maplabel{width:112px;white-space:nowrap;max-width:none}

#overview.segmentmap .maplabel{background:transparent;text-shadow:0 1px 3px #0b1821;font-size:8.5px}

.modebar{display:flex;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}.modebar label{font-size:10px;letter-spacing:1.5px;color:#6fd8c4}.modebar span{font-size:11px;color:#96aab8}#ebusPanel{margin-bottom:20px;border-color:#806944}#ebusPanel[hidden]{display:none}.ebus-grid{display:grid;grid-template-columns:1.3fr 1fr}.scan{background:#060b0e;min-width:0}.scan canvas{height:auto;aspect-ratio:720/390}.station-lesson{padding:20px;border-left:1px solid #30424e}.station-lesson h2{font-size:20px;margin:14px 0 8px;font-weight:500}.station-lesson select{width:100%;margin-top:12px}.scan-controls{display:flex;gap:14px;flex-wrap:wrap;padding:14px;font-size:11px;color:#b4c4cd}.scan-controls label{display:flex;align-items:center;gap:6px}.scan-controls input[type=range]{width:100px}.scan-controls input,.guide-toggle input{accent-color:#e3b96f}#stationChips{display:flex;flex-wrap:wrap;gap:5px;margin:16px 0}#stationChips button{padding:6px 9px}#stationChips .selected{border-color:#e3b96f;color:#f3cc83}#stationChips .found:after{content:' ✓';color:#68dec4}.guide-toggle{font-size:11px;color:#b4c4cd}.station-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}#scanGuidance{min-height:44px;color:#e8c991}#scanFeedback{font-size:11px}.ebus-notes{border-top:1px solid #30424e;padding:12px 18px;font-size:11px;color:#a4bac8}.ebus-notes summary{cursor:pointer}.ebus-notes p{font-size:11px;margin-top:10px}.ebus-notes a{color:#82dece}.node-label{position:absolute;background:#352d20;color:#ffda98;border:1px solid #997749;border-radius:12px;padding:2px 5px;font-size:10px;transform:translate(-50%,-50%);pointer-events:none}.node-label[hidden]{display:none}.ebus-mode .maplabel,.ebus-mode .leaders{visibility:hidden}.ebus-mode #overview{height:320px}@media(max-width:650px){.ebus-grid{grid-template-columns:1fr}.station-lesson{border-left:0;border-top:1px solid #30424e}.modebar span{display:none}}

.ebus-mode .controls{position:sticky;bottom:0;z-index:5;background:#13212bf5;padding:10px 16px;box-shadow:0 -8px 25px #0004}.ebus-mode .controls .eyebrow{display:none}.ebus-mode .keygroups{margin-top:0}.ebus-mode .readouts b{font-size:18px}.ebus-mode .readouts{gap:12px}

.scan-structures{font-size:11px;padding:0 14px;color:#dbc18f;min-height:35px}.scan-movement{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:12px 14px}.scan-movement span{width:100%;font-size:9px;letter-spacing:1px;color:#91a8b6}.scan-movement button{padding:9px 11px}

/* EBUS uses one synchronized three-view desk; bronch mode restores original DOM. */
.ebus-mode main{max-width:1800px;padding:16px 2vw}.ebus-mode header{height:55px}.ebus-mode .intro{margin-bottom:12px}.ebus-mode .intro h1{font-size:24px}.ebus-mode .intro p,.ebus-mode .intro .eyebrow{display:none}.ebus-mode .modebar{margin-bottom:12px}#ebusWorkspace{display:grid;grid-template-columns:1fr 1.2fr .9fr;gap:10px;padding:10px;align-items:start}#ebusWorkspace>.panel,#ebusWorkspace>.scan{min-width:0;border:1px solid #30424e;border-radius:8px;overflow:hidden}#ebusWorkspace #endo{height:290px}#ebusWorkspace .panelhead{padding:10px;font-size:9px;letter-spacing:.7px}#ebusWorkspace .panelbottom{height:60px;padding:8px;font-size:10px}#ebusWorkspace .panelbottom button{padding:6px;font-size:10px}#ebusWorkspace .scan canvas{height:260px;object-fit:contain;background:#030303}#ebusWorkspace #overview{height:220px}#ebusWorkspace .handle{height:178px}#ebusWorkspace .handle strong{font-size:10px}#ebusWorkspace .handle p{font-size:9px}#ebusWorkspace .leverlabel{margin-top:6px}#ebusWorkspace #labelLegend{display:none}#ebusWorkspace .scan-controls{gap:8px;padding:10px;font-size:10px}#ebusWorkspace .scan-controls input[type=range]{width:65px}#ebusWorkspace .scan-structures{font-size:10px;min-height:28px;margin:0}#ebusWorkspace .scan-movement{padding:8px 10px}#ebusWorkspace .scan-movement span{display:none}#ebusWorkspace .scan-movement button{padding:7px 9px}.ebus-mode .ebus-grid{display:block}.ebus-mode .station-lesson{border-left:0;border-top:1px solid #30424e;padding:12px 18px;display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}.ebus-mode .station-lesson>.eyebrow,.ebus-mode #stationTitle{display:none}.ebus-mode .station-lesson select{margin:0}.ebus-mode #stationChips{margin:0;grid-column:2;grid-row:1}.ebus-mode #stationLandmark{font-size:11px}.ebus-mode #scanGuidance{min-height:0;font-size:11px}.ebus-mode .station-actions{margin:5px 0}.ebus-mode #scanFeedback{margin:5px 0}.ebus-mode .lesson,.ebus-mode .assistance{display:none}.ebus-mode .controls{margin-top:10px}.ebus-mode .ebus-notes{padding:9px 18px}.ebus-mode #ebusPanel{margin-bottom:0}.ebus-mode .guide-toggle{align-self:center}.ebus-mode #ebusWorkspace .handle>div:last-child{min-width:72px}.ebus-mode #ebusWorkspace .rangeends{font-size:9px}@media(max-width:699px){#ebusWorkspace{grid-template-columns:1fr 1fr}#ebusWorkspace>.panel:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}#ebusWorkspace>.panel:last-child>.panelhead{grid-column:1/-1}#ebusWorkspace #endo{height:230px}#ebusWorkspace .scan canvas{height:200px}.ebus-mode .station-lesson{display:block}.ebus-mode #stationChips{margin:10px 0}.ebus-mode .modebar span{display:none}}@media(min-width:1100px){#ebusWorkspace #endo{height:340px}#ebusWorkspace .scan canvas{height:310px}#ebusWorkspace #overview{height:270px}}

.ebus-mode #ebusWorkspace .mapcontrols{display:none}.scan-motion-readout{font-size:10px;color:#7bd6c1;padding:7px 10px;margin:0;border-top:1px solid #263640}.ebus-mode #ebusWorkspace #scopeview{width:55%;flex-shrink:0}.ebus-mode #ebusWorkspace .handle>div:last-child{width:45%;min-width:0}.ebus-mode #ebusWorkspace .handle p{line-height:1.3}.ebus-mode #ebusWorkspace .handle{padding:0 6px}.ebus-mode #ebusWorkspace .scan-movement{flex-wrap:nowrap;gap:4px}.ebus-mode #ebusWorkspace .scan-movement button{min-width:0;flex:1;padding:7px 3px}.ebus-mode .modebar span{font-size:0}.ebus-mode .modebar span:after{content:'Three synchronized views · same keyboard controls';font-size:11px}@media(min-width:700px) and (max-width:1099px){#ebusWorkspace .scan canvas{height:220px}#ebusWorkspace #endo{height:260px}#ebusWorkspace .scan-controls{display:grid;grid-template-columns:1fr;gap:5px}.ebus-mode #ebusWorkspace .handle{height:155px}.ebus-mode .modebar span{display:none}}

.tour{margin:0 10px 10px;padding:12px 16px;border:1px solid #867046;border-radius:8px;background:#19272e}.tour-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.tour-heading strong{color:#f2ce85;font-size:13px}.tour p{font-size:11px;margin:7px 0}.tour #tourStatus{color:#b3e8d8}.tour-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.tour button{padding:7px 11px}.tour button:disabled{opacity:.35;cursor:default}.tour p:empty{display:none}

.tour-live-note{grid-column:1/-1;color:#b3e8d8;background:#23342e;border-left:3px solid #d5b773;font-size:11px;padding:8px 12px;margin:0}.tour-live-note[hidden]{display:none}

.practice{margin:0 10px 10px;padding:14px 16px;border:1px solid #568b80;border-radius:8px;background:#142b2b}.practice-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.practice-heading strong{font-size:13px;color:#90e3d0}.practice p{font-size:12px}.practice-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.practice-actions label{font-size:11px}.practice button{padding:8px 11px}.practice button:disabled{opacity:.4;cursor:default}#practicePrompt{color:#f1d499;font-weight:600;margin-top:12px}#practiceLive{color:#9de1d0}#practiceScore{font-size:11px;color:#a9bfcd}.practice-active .tour,.practice-active .tour-live-note,.practice-active .station-lesson,.practice-active #stationProgress,.practice-active #location,.practice-active #route,.practice-active #message,.practice-active #labelLegend{display:none!important}.practice-active #practicePanel{border-color:#90e3d0}#practiceSession[hidden],#practiceStart[hidden],#practiceExit[hidden]{display:none}.practice-active .views:empty{display:none}

.brand-lockup{line-height:1.2}.header-credit{font-size:10px;line-height:1.3;margin-top:4px;color:#9caeb9;letter-spacing:.15px}.header-credit span{font-size:10px;font-family:Georgia,serif;font-style:italic;color:#d8c393}.ebus-mode header{min-height:65px}
.brand-lockup{flex-shrink:0;white-space:nowrap}

/* A shared control surface; mobile keeps it within thumb reach. */
.layout-switch{display:flex;align-items:center;gap:8px;font-size:11px;color:#a9bfcd;margin-left:auto;margin-right:15px}.layout-switch select{padding:8px}.touch-tools{display:none}[data-key]{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.keygroups>div{max-width:180px}input[type=range]{touch-action:pan-y}button[aria-pressed=true]{background:#365c60;border-color:#68dec4}
.mobile-layout header{height:auto;min-height:82px;padding:12px 16px;gap:12px;flex-wrap:wrap}.mobile-layout .brand{font-size:22px}.mobile-layout .sub{font-size:9px;margin-left:10px;letter-spacing:1px}.mobile-layout .tag{display:none}.mobile-layout .layout-switch{margin:0}.mobile-layout main{max-width:760px;padding:16px 12px calc(255px + env(safe-area-inset-bottom))}.mobile-layout .intro{gap:10px}.mobile-layout h1{font-size:23px}.mobile-layout .intro p{font-size:12px}.mobile-layout #reset{flex-shrink:0;padding:12px}.mobile-layout kbd{display:none}.mobile-layout button,.mobile-layout select{min-height:44px}.mobile-layout .modebar{gap:8px}.mobile-layout .modebar select{max-width:100%;width:100%}.mobile-layout .modebar>span{display:none}.mobile-layout .views{grid-template-columns:1fr;gap:12px}.mobile-layout #endo{height:280px}.mobile-layout #overview,.mobile-layout #overview.segmentmap{height:280px}.mobile-layout .handle{height:210px}.mobile-layout .panelhead{padding:12px;letter-spacing:.5px;gap:8px}.mobile-layout .panelbottom{height:auto;min-height:58px;padding:10px}.mobile-layout .controls{position:fixed;bottom:0;left:0;right:0;z-index:20;margin:0;border-radius:16px 16px 0 0;border-color:#547a80;display:flex;flex-direction:column;gap:7px;padding:9px max(10px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom));background:#13212bf7;box-shadow:0 -8px 30px #0007;backdrop-filter:blur(12px)}.mobile-layout .controls>div:first-child{width:100%}.mobile-layout .controls .eyebrow{display:none}.mobile-layout .keygroups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}.mobile-layout .keygroups>div{display:grid;grid-template-columns:1fr 1fr;max-width:none;gap:4px}.mobile-layout .keygroups>div:last-child{display:none}.mobile-layout .keygroups span{grid-column:1/-1;text-align:center;font-size:9px;margin:0}.mobile-layout .keygroups button{min-width:0;padding:6px 2px;min-height:48px;font-size:11px;font-weight:600}.mobile-layout .touch-tools{display:flex;gap:7px;align-items:center}.mobile-layout .touch-tools label{flex:1;min-width:0;font-size:10px;color:#9ce0d1}.mobile-layout #touchLever{display:block;width:100%;height:30px;margin:0;accent-color:#68dec4;touch-action:none}.mobile-layout .touch-tools button{font-size:11px;padding:8px}.mobile-layout .readouts{justify-content:space-around;gap:12px;border-top:1px solid #30424e;padding-top:5px}.mobile-layout .readouts>div{display:flex;align-items:center;gap:6px}.mobile-layout .readouts b{font-size:15px;margin:0}.mobile-layout .readouts span{font-size:8px;letter-spacing:.4px}.mobile-layout .lesson{gap:10px}.mobile-layout .lesson select{max-width:100%;width:100%}.mobile-layout .assistance{flex-direction:column;align-items:flex-start}.mobile-layout .practice-heading,.mobile-layout .tour-heading{flex-wrap:wrap}.mobile-layout .practice,.mobile-layout .tour{margin:0 8px 8px;padding:12px}.mobile-layout #ebusWorkspace{grid-template-columns:1fr;padding:8px;gap:10px}.mobile-layout #ebusWorkspace>.panel:last-child{display:block;grid-column:auto}.mobile-layout #ebusWorkspace #endo{height:240px}.mobile-layout #ebusWorkspace .scan canvas{height:auto;aspect-ratio:720/390}.mobile-layout #ebusWorkspace #overview{height:250px}.mobile-layout #ebusWorkspace .handle{height:200px}.mobile-layout #ebusWorkspace .scan-controls{display:flex;gap:12px}.mobile-layout #ebusWorkspace .scan-movement{display:none}.mobile-layout .station-lesson{display:block;padding:12px}.mobile-layout #stationChips{margin:10px 0}.mobile-layout #leverInput{height:32px}.mobile-layout footer{line-height:1.6}.desktop-layout{min-width:960px}.desktop-layout .views{grid-template-columns:1.2fr 1fr}.desktop-layout #ebusWorkspace{grid-template-columns:1fr 1.2fr .9fr}.desktop-layout #ebusWorkspace>.panel:last-child{display:block;grid-column:auto}
@media(max-height:500px){.mobile-layout .controls{padding-top:5px;gap:4px}.mobile-layout .keygroups button{min-height:40px}.mobile-layout .keygroups span{display:none}.mobile-layout main{padding-bottom:205px}}

.mobile-layout .keygroups span{display:none}.mobile-layout .layout-switch{position:relative;z-index:25}.desktop-layout .layout-switch{position:fixed;top:8px;right:12px;z-index:25;background:#13212b;padding:4px;border-radius:8px}.desktop-layout header .tag{margin-right:220px}

/* Landscape touch desk: both live images remain above the compact console. */
@media (orientation:landscape) and (max-height:600px){
 .mobile-layout header{min-height:44px;height:44px;padding:2px max(12px,env(safe-area-inset-left));flex-wrap:nowrap;gap:10px}
 .mobile-layout .brand{font-size:18px}.mobile-layout .sub{font-size:8px}.mobile-layout .header-credit{font-size:9px;margin-top:0}.mobile-layout .layout-switch{margin-left:auto}.mobile-layout .layout-switch select{min-height:36px;padding:5px}
 .mobile-layout main,.mobile-layout.ebus-mode main{max-width:none;padding:4px max(10px,env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
 .mobile-layout .intro{position:absolute;top:48px;right:max(10px,env(safe-area-inset-right));margin:0}.mobile-layout .intro>div{display:none}.mobile-layout #reset{min-height:36px;padding:7px;font-size:11px}
 .mobile-layout .modebar{height:40px;margin:0 110px 4px 0;gap:8px;flex-wrap:nowrap}.mobile-layout .modebar label{font-size:8px;white-space:nowrap}.mobile-layout .modebar select{width:auto;min-width:0;min-height:36px;padding:6px;font-size:11px}
 .mobile-layout #ebusPanel>.panelhead{display:none}.mobile-layout #ebusWorkspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:4px;gap:8px;align-items:start}
 .mobile-layout #ebusWorkspace>.camera{grid-column:1;grid-row:1}.mobile-layout #ebusWorkspace>.scan{grid-column:2;grid-row:1}
 .mobile-layout #ebusWorkspace>.panel:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.mobile-layout #ebusWorkspace>.panel:last-child>.panelhead{grid-column:1/-1}
 .mobile-layout #ebusWorkspace .panelhead,.mobile-layout .views .panelhead{height:26px;min-height:26px;padding:4px 8px;font-size:9px}
 .mobile-layout #ebusWorkspace #endo,.mobile-layout #ebusWorkspace .scan canvas{height:max(100px,calc(100dvh - 210px - env(safe-area-inset-bottom)));aspect-ratio:auto;object-fit:contain}
 .mobile-layout #ebusWorkspace .panelbottom{min-height:44px;padding:4px 8px;font-size:10px}.mobile-layout #ebusWorkspace .panelbottom button{min-height:36px}
 .mobile-layout #ebusWorkspace #overview,.mobile-layout #ebusWorkspace .handle{height:220px}.mobile-layout #ebusWorkspace .scan-controls{gap:8px;padding:8px}
 .mobile-layout .views{grid-template-columns:1fr 1fr;gap:8px}.mobile-layout .views #endo{height:max(150px,calc(100dvh - 210px))}.mobile-layout .views #overview{height:180px}
 .mobile-layout .controls,.mobile-layout.ebus-mode .controls{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:4px 10px;padding:5px max(10px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border-radius:10px 10px 0 0}
 .mobile-layout .keygroups{gap:6px}.mobile-layout .keygroups button{min-height:44px;font-size:10px}.mobile-layout .touch-tools{gap:5px}.mobile-layout .touch-tools button{padding:5px;min-height:44px;font-size:10px}.mobile-layout #touchLever{height:30px}.mobile-layout .readouts{grid-column:1/-1;padding-top:3px}.mobile-layout .readouts b{font-size:13px}
}
