/* Scope repairs to home and robotic preview; preserve the Lap Chole mission layout. */
html{min-height:100%;scroll-padding-top:env(safe-area-inset-top)}
body:has([data-screen="landing"].active),body:has([data-screen="robochole"].active){height:auto!important;min-height:100svh;overflow-y:auto!important}
[data-screen="landing"].active,[data-screen="robochole"].active{height:auto!important;max-height:none!important;overflow:visible!important;min-height:calc(100svh - 90px);padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
[data-screen="landing"] .landing-grid{width:100%;min-width:0;max-width:1100px;height:auto!important;overflow:visible!important}
[data-screen="landing"] .procedure-card{height:auto!important;min-height:130px;white-space:normal!important;overflow:visible!important}
[data-screen="landing"] .procedure-copy{min-width:0;overflow-wrap:anywhere}
[data-screen="landing"] .procedure-copy strong{white-space:normal!important;line-height:1.15!important}
.s4-home-tools{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 25px;align-items:center}
.s4-home-tools button,.s4-profile input{font:inherit;min-height:46px;background:#173a2e;color:#e6eedb;border:1px solid #6f8b70;border-radius:9px;padding:10px 15px}
.s4-home-tools span{font-size:13px;color:#c5d5bd}.rx-dialog{overflow:auto;max-height:calc(100dvh - 30px);overscroll-behavior:contain;padding-bottom:max(24px,env(safe-area-inset-bottom))}
.s4-profile label{display:grid;gap:9px}.s4-profile input{width:100%;font-size:16px}.s4-profile button{margin:6px 0}.rx-lab button,.rx-lab select,.rx-lab input{touch-action:manipulation;overflow-wrap:anywhere}
.rx-lab,.rx-lab section,.rx-lab aside,.rx-lab main{min-width:0}.rx-lab input[type=checkbox]{width:22px;min-height:22px;justify-self:start}
.rx-bmi{margin:12px 0!important}.rx-bmi-visual{display:flex;gap:12px;align-items:center}.rx-bmi-visual svg{width:90px;flex-shrink:0}.rx-bmi-visual p{font-size:13px!important}
.rx-study{margin:0;background:#244637;border:1px solid #637f72;border-radius:12px;padding:12px;width:100%}.rx-study svg{width:100%;height:190px}.rx-study figcaption{font-size:12px;line-height:1.4;color:#cdddc8}.rx-study-thumb svg{height:80px}.rx-review-thumb{width:100%;max-height:300px;object-fit:contain}.rx-cord-study{background:#153a2e;padding:18px;border:1px solid #66856a;border-radius:14px;margin:20px 0}.rx-cord-study svg{width:100%;height:auto}.rx-cord-actions{display:flex;flex-wrap:wrap;gap:10px}.rx-cord-actions fieldset{flex:1;min-width:200px;border:1px solid #66856a}.rx-cord-actions button{margin:4px}.rx-patient-right,.rx-patient-left{position:absolute;top:34px;color:#e9ead4;font:10px monospace}.rx-patient-right{left:12px}.rx-patient-left{right:12px}
@media(max-width:800px){.rx-guided{display:flex;flex-direction:column}.rx-objective{order:0}.rx-task-dock{order:1;width:100%;margin:0 0 16px}.rx-guided-room{order:2;width:100%}.rx-enter-art{display:grid;height:180px}.rx-enter-art img{height:170px}.rx-sprint03 .rx-console-layout{grid-template-columns:1fr}.rx-topbar>div{flex-wrap:wrap}.rx-sprint03 .rx-roles span{display:block}.rx-console-schematic{min-width:0}.rx-inventory-layout .rx-panel{scroll-margin-top:20px}}
@media(max-width:500px){.topbar{padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important}.landing-grid{padding:20px 16px!important}#landingTitle{font-size:clamp(30px,9vw,43px)!important;line-height:1.12!important;max-width:100%}.procedure-list{width:100%;gap:12px!important}.procedure-card{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:10px!important;padding:20px 14px!important}.procedure-copy strong{font-size:24px!important}.procedure-cta{grid-column:2;font-size:12px!important;position:static!important}.procedure-arrow{display:none!important}.s4-home-tools{align-items:stretch}.s4-home-tools button{flex:1 1 130px}.rx-sprint03{padding:16px 12px}.rx-times{gap:5px}.rx-times button{padding:10px 7px}.rx-sprint03 .rx-room{height:450px}.rx-arm-grid{grid-template-columns:1fr}.rx-console-schematic>img{height:330px}.rx-pedals{padding:14px}.rx-console-part{max-width:48%;white-space:normal}.rx-menu button{flex:1 1 120px}}
@media(max-height:500px) and (orientation:landscape){.rx-dialog{max-height:90dvh}.rx-enter-heading{grid-template-columns:1fr}.rx-topbar{position:static}.rx-sprint03 .rx-room{height:440px}}
/* Avoid moving hit targets during rapid navigation and mobile keyboard focus. */
html:has([data-screen="landing"].active),html:has([data-screen="robochole"].active){scroll-behavior:auto!important}
[data-screen="landing"].active,[data-screen="robochole"].active{animation:none!important;transform:none!important}
body:has([data-screen="landing"].active) .map-link span:first-child,body:has([data-screen="robochole"].active) .map-link span:first-child{display:inline;font-size:10px}
[data-screen="landing"], [data-screen="landing"] *{box-sizing:border-box!important}
[data-screen="landing"] .landing-grid,[data-screen="landing"] .procedure-list,[data-screen="landing"] .procedure-card{width:100%!important;max-width:100%!important;min-width:0!important}
@media(max-width:500px){[data-screen="landing"].active{padding:24px 12px 36px!important;display:block!important}[data-screen="landing"] .landing-grid{padding:0!important}[data-screen="landing"] .procedure-list{display:grid!important;gap:12px!important}}
