/* A remote-control screen, with all primary controls visible without scrolling. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body,button,svg{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea{-webkit-user-select:text;user-select:text}
#app{height:100dvh;overflow:hidden}
.shell,.shell.home{height:100dvh;min-height:0;max-height:100dvh;padding:clamp(12px,2.4vh,24px) clamp(18px,4vw,60px) 8px;overflow:hidden}
.page-header{flex-shrink:0;min-height:0;margin:0 0 8px;gap:22px}
.page-header h1{font-size:clamp(30px,4vw,54px)}
.page-demo{flex-shrink:0;font-size:clamp(15px,1.6vw,20px);margin:0 0 14px}
.back-button{min-height:54px;padding:12px 20px;font-size:23px;border-radius:18px}
.footer{flex-shrink:0;min-height:46px;padding:4px 2px 0}
.footer .text-button{min-height:42px}
.page-content{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
.home-header{flex-shrink:0;padding:0 0 clamp(12px,2vh,24px)}
.home-header h1{font-size:clamp(34px,5vw,68px)}
.home-header p{font-size:clamp(23px,3vw,42px);margin:4px 0}
.home-header .demo-note{font-size:clamp(15px,1.7vw,22px)}
.home-stage{display:grid;grid-template-columns:minmax(0,1fr) clamp(65px,7vw,92px);gap:18px;flex:1;min-height:0}
.home .home-main{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:clamp(12px,2vh,20px);min-height:0}
.home .big-button{height:100%;grid-template-columns:clamp(80px,12vw,170px) minmax(0,1fr);padding:12px clamp(20px,4vw,60px);gap:clamp(20px,3vw,45px);font-size:clamp(32px,5.5vw,80px);min-height:0;border-radius:36px}
.home .big-button .icon{height:min(16vh,170px);max-height:100%;width:100%}
.more-arrow{border:2px solid #fff;border-radius:30px;background:#f4fbffda;color:#143349;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;font-size:22px;font-weight:800;padding:8px}
.more-arrow svg{height:55px;width:55px}
.inline-help{margin:0;display:flex;justify-content:flex-end;flex-shrink:0}
.inline-help button{min-height:56px;font-size:24px;padding:11px 24px;border-radius:18px}
.inline-help svg{width:30px;height:30px}
/* Garden controls form a two-by-two panel even on a narrow display. */
.page-garden .controls-grid{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}
.page-garden .control-button{min-height:0;height:100%;padding:clamp(15px,2vw,26px);font-size:clamp(24px,2.7vw,39px);gap:20px;border-radius:28px}
.page-garden .control-button svg{width:clamp(48px,6vw,74px);height:clamp(48px,6vw,74px)}
.control-button small{font-size:clamp(17px,1.6vw,21px);line-height:1.3;margin-top:7px}
.garden-summary{margin:0;flex-shrink:0;padding:12px 20px;font-size:21px;border-radius:20px;min-height:56px}
.garden-scene{margin:0;flex-shrink:0;align-items:center}
.garden-scene .subtle-note{font-size:17px;line-height:1.4}
.window-demo{width:110px;height:64px;border-width:5px}
/* Camera images take the remaining space; their labels never disappear below it. */
.camera-grid{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}
.camera-card{display:flex;flex-direction:column;min-height:0;overflow:hidden;border-radius:25px}
.camera-card .camera-scene{flex:1;min-height:0;aspect-ratio:auto}
.camera-label{flex-shrink:0;padding:11px 20px;font-size:clamp(22px,2.5vw,32px);line-height:1.15}
.camera-hint{font-size:17px;margin-top:3px}
.feed-disclaimer{font-size:17px;line-height:1.35;margin:0;flex-shrink:0}
.feed-heading{flex-shrink:0;font-size:20px;margin:0}
.feed-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(275px,1fr);gap:20px;align-items:stretch}
.feed-layout>div:first-child{min-height:0;display:flex;flex-direction:column;gap:10px}
.feed-frame{flex:1;min-height:0;display:flex;border-radius:24px}
.feed-frame .camera-scene{height:100%;aspect-ratio:auto}
.feed-tools{min-height:0;display:grid;grid-auto-rows:minmax(0,1fr);gap:14px;align-content:stretch}
.feed-tools .control-button{min-height:0;height:100%;font-size:clamp(25px,2.7vw,37px);padding:20px;gap:16px}
.feed-tools .control-button svg{width:56px;height:56px}
.feed-tools .control-button small{font-size:18px}
.door-state{flex-shrink:0;margin:0;font-size:19px;gap:8px}
.door-state span{padding:8px 13px}
/* Extra controls reuse the same large, clearly labelled button language. */
.harness-content{gap:clamp(10px,2vh,20px)}
.harness-heading{display:flex;align-items:center;justify-content:center;gap:20px;flex-shrink:0;text-align:left}
.harness-heading>svg{width:75px;height:75px}
.harness-heading h2,.health-instruction h2,.feeling-content>h2{font-size:clamp(27px,3vw,40px);letter-spacing:-.025em;line-height:1.2}
.harness-heading p{font-size:22px;margin-top:7px}
.strength-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px;flex:1;min-height:0}
.strength-button{min-height:0;border:3px solid #fff;background:#e4f4ff;border-radius:24px;color:#102c43;font-size:clamp(36px,5vw,64px);font-weight:800;box-shadow:var(--shadow)}
.strength-button.selected{background:#b3e7a2;border-color:#28602d;box-shadow:inset 0 0 0 3px #28602d}
.harness-status{text-align:center;font-size:25px;flex-shrink:0}
.lift-button{display:flex;align-items:center;justify-content:center;gap:24px;min-height:76px;height:clamp(76px,12vh,120px);border:2px solid white;border-radius:26px;font-size:clamp(32px,4vw,50px);font-weight:800;flex-shrink:0}
.lift-button svg{width:55px;height:55px}
.harness-content>.subtle-note{font-size:17px;text-align:center;flex-shrink:0}
.health-instruction{flex-shrink:0;text-align:center}
.health-instruction p{font-size:24px;margin-top:6px}
.body-map-container{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}
.body-map{height:100%;width:auto;max-width:100%;overflow:visible;filter:drop-shadow(0 5px 3px #25496815)}
.body-region{fill:url(#body-shade);stroke:#30617f;stroke-width:1.7;cursor:pointer;transition:fill .15s}
.body-region:hover,.body-region:focus{fill:#d5edb2;stroke:#244e2c;stroke-width:3;outline:none}
.body-region:focus-visible{filter:drop-shadow(0 0 4px #07273d)}
.body-region.last-recorded{fill:#b0dc9c}
.body-detail{fill:none;stroke:#2b5875;stroke-width:2.6;stroke-linecap:round;pointer-events:none}
.health-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}
.health-last{font-size:20px;line-height:1.3}
.feeling-content>h2{flex-shrink:0;text-align:center;margin:5px 0 12px}
.feeling-buttons{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.feeling-button{border:3px solid #fff;border-radius:34px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;font-size:clamp(30px,4vw,54px);font-weight:800;box-shadow:var(--shadow);padding:20px;min-height:0}
.feeling-red{background:#f6a8a8;color:#6b1020}.feeling-orange{background:#ffd396;color:#663500}.feeling-green{background:#b0e39f;color:#154526}
.feeling-face{width:min(80%,180px);max-height:60%;fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round;flex-shrink:1}
.feeling-face .face-eye{fill:currentColor;stroke:none}
.recorded-choice{outline:5px solid #15354a;outline-offset:-8px}
.recorded-status{display:flex;align-items:center;justify-content:center;gap:12px;min-height:60px;flex-shrink:0;font-size:24px;text-align:center}
.recorded-status.saved{font-size:34px;color:#1a5631;font-weight:800}
.recorded-status svg{height:42px;width:42px}
.feeling-content>.subtle-note{text-align:center;font-size:17px;flex-shrink:0}
/* Help and administration also respect the visible screen height. */
.help-shell{gap:clamp(10px,2vh,24px);padding:clamp(20px,4vh,40px) clamp(28px,8vw,120px)}
.help-icon{width:clamp(65px,10vh,110px);height:clamp(65px,10vh,110px);flex-shrink:0}
.help-shell h1{font-size:clamp(34px,5.6vw,76px);flex-shrink:0}
.countdown{font-size:clamp(85px,19vh,210px);flex-shrink:1;min-height:0}
.cancel-button{min-height:90px;height:clamp(90px,17vh,170px);padding:16px 24px;font-size:clamp(34px,5vw,70px);flex-shrink:0}
.cancel-button svg{height:70px;width:70px}
.help-message{font-size:clamp(20px,2.3vw,31px);flex-shrink:0}
.help-shell .demo-note{font-size:clamp(15px,1.7vw,22px);flex-shrink:0}
.connecting-dots{height:60px;flex-shrink:0}
.admin-panel{flex:1;min-height:0;padding:24px;display:flex;flex-direction:column;gap:12px;overflow:hidden}
.admin-panel h2{font-size:30px;margin:0!important;flex-shrink:0}
.admin-panel p{font-size:21px;line-height:1.35;margin:0;flex-shrink:0}
.admin-actions{gap:14px;flex-shrink:0}
.admin-actions .utility-button{min-height:58px;font-size:23px;min-width:0;padding:12px}
.admin-log{flex:1;min-height:0;margin:0;padding-left:28px;display:flex;flex-direction:column;justify-content:space-evenly;font-size:20px;line-height:1.3;gap:5px}
.log-pager{display:flex;align-items:center;justify-content:center;gap:20px;flex-shrink:0}
.log-pager button{border:2px solid #547083;border-radius:14px;min-height:45px;padding:8px 18px;font-size:20px;font-weight:700;background:#e2f1fb}
dialog{max-height:calc(100dvh - 24px);padding:clamp(20px,3vh,36px);overflow:hidden}
dialog h2{font-size:clamp(27px,4vh,36px);margin-bottom:12px}
dialog p{font-size:clamp(18px,2.7vh,23px);margin-bottom:16px}
dialog button{min-height:58px;font-size:23px;padding:12px 18px}
dialog input{min-height:54px;padding:12px;font-size:22px;margin-bottom:12px}
.toast{bottom:54px;font-size:22px;padding:14px 24px}
@media(max-width:900px){
 .feed-layout{grid-template-columns:minmax(0,1.25fr) minmax(220px,1fr);gap:16px}
 .feed-tools{grid-template-columns:1fr}.feed-tools .control-button{font-size:26px;padding:16px;gap:12px}
 .home .big-button{font-size:clamp(31px,5.3vw,54px)}
 .page-garden .control-button{flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;font-size:27px}
 .page-garden .control-button svg{width:54px;height:54px}
 .harness-heading h2{font-size:31px}
}
@media(max-width:600px){
 .shell,.shell.home{padding:14px 14px 4px;min-height:0}
 .home-header{padding:15px 0 16px}.home-header h1{font-size:clamp(28px,8vw,37px)}.home-header p{font-size:22px;margin:7px 0}
 .home-stage{grid-template-columns:minmax(0,1fr) 46px;gap:9px}
 .home .big-button{grid-template-columns:54px minmax(0,1fr);padding:12px 14px;gap:10px;font-size:clamp(25px,6.8vw,37px);border-radius:26px}
 .home .big-button .icon{width:54px;height:70px}
 .more-arrow{border-radius:22px;font-size:13px;gap:12px;padding:3px}.more-arrow svg{width:35px;height:35px}
 .footer{min-height:44px}.footer .text-button{font-size:15px}.footer .admin-entry{font-size:13px}
 .page-header{gap:9px;margin-bottom:7px;flex-wrap:nowrap;padding:0}.page-header h1{width:auto;order:0;font-size:clamp(25px,7vw,34px);line-height:1.05}
 .back-button{min-height:48px;max-width:42%;font-size:17px;padding:10px 12px;gap:7px;border-radius:15px;flex-shrink:0}.back-button svg{width:23px;height:23px;flex-shrink:0}
 .page-demo{font-size:14px;margin-bottom:12px;line-height:1.3;text-align:center}
 .page-content{gap:10px}
 .page-garden .controls-grid{gap:10px}
 .page-garden .control-button{font-size:clamp(21px,5.7vw,27px);padding:15px;border-radius:23px;gap:10px;align-items:flex-start}
 .page-garden .control-button small{font-size:15px;line-height:1.25;margin-top:7px}
 .page-garden .control-button svg{width:47px;height:47px}
 .garden-summary{padding:10px 13px;font-size:17px;min-height:50px;gap:10px;border-radius:17px}.garden-summary svg{width:26px;height:26px}
 .garden-scene{gap:12px}.garden-scene .subtle-note{font-size:13px;line-height:1.3}.window-demo{width:75px;height:48px;border-width:4px}
 .inline-help button{min-height:48px;width:100%;padding:10px 16px;font-size:21px;justify-content:center}.inline-help svg{width:25px;height:25px}
 .camera-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
 .camera-card{border-radius:20px}.camera-card .camera-scene{aspect-ratio:auto}
 .camera-label{font-size:21px;padding:12px 10px;gap:4px}.camera-label svg{width:21px;height:21px;flex-shrink:0}.camera-hint{display:none}
 .camera-meta{left:6px;right:6px;top:7px;flex-wrap:wrap;gap:5px;align-content:flex-start;font-size:10px}.camera-meta span{padding:5px 6px}.live-indicator:before{height:6px;width:6px;margin-right:4px}
 .door-overlay{font-size:12px;padding:6px 8px;left:7px;bottom:9px}
 .feed-disclaimer{font-size:13px;line-height:1.3}.feed-heading{font-size:15px;gap:5px;margin:0;flex-wrap:nowrap}
 .feed-layout{display:flex;flex-direction:column;gap:12px}.feed-layout>div:first-child{flex:1;min-height:0;gap:8px}
 .feed-tools{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr;flex-shrink:0;height:125px;gap:8px}
 .feed-tools .control-button{flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:19px;padding:10px 6px;gap:8px;border-radius:20px}
 .feed-tools .control-button:only-child{grid-column:1 / -1;flex-direction:row;font-size:27px;gap:18px}
 .feed-tools .control-button svg{width:38px;height:38px}.feed-tools .control-button small{display:none}
 .door-state{gap:7px;font-size:15px}.door-state span{padding:7px 11px}
 .harness-heading{gap:12px}.harness-heading>svg{width:48px;height:48px}.harness-heading h2{font-size:26px}.harness-heading p{font-size:16px;margin-top:6px}
 .strength-grid{gap:10px}.strength-button{font-size:36px;border-radius:18px;border-width:2px}.strength-button.selected{box-shadow:inset 0 0 0 2px #28602d}
 .harness-status{font-size:22px}.lift-button{height:85px;min-height:70px;font-size:36px;gap:18px;border-radius:23px}.lift-button svg{height:46px;width:46px}
 .harness-content>.subtle-note{font-size:14px}
 .health-instruction h2,.feeling-content>h2{font-size:29px}.health-instruction p{font-size:21px;margin-top:4px}
 .health-bottom{flex-direction:column;gap:8px;align-items:stretch}.health-last{font-size:16px;text-align:center}.health-bottom .inline-help{display:flex}
 .feeling-buttons{gap:9px}.feeling-button{font-size:26px;padding:12px 8px;border-radius:25px;gap:18px}.feeling-face{width:90%;max-height:50%;stroke-width:5}
 .recorded-status{font-size:20px;min-height:60px}.recorded-status.saved{font-size:31px}.recorded-status svg{height:36px;width:36px}.feeling-content>.subtle-note{font-size:14px}
 .help-shell{padding:22px 26px;gap:18px}.help-shell h1{font-size:37px}.help-icon{height:85px;width:85px}.countdown{font-size:clamp(90px,18vh,160px)}.help-message{font-size:21px}
 .cancel-button{font-size:36px;min-height:100px;height:120px;gap:16px;justify-content:center}.cancel-button svg{height:48px;width:48px}.help-shell .demo-note{font-size:15px}
 .admin-panel{padding:18px;gap:12px}.admin-panel h2{font-size:25px}.admin-panel p{font-size:17px}.admin-actions{flex-wrap:nowrap;gap:8px}.admin-actions .utility-button{font-size:17px;min-height:64px;gap:6px}.utility-button svg{width:24px;height:24px}.admin-log{font-size:17px;padding-left:22px;gap:10px}.log-pager{gap:15px;font-size:17px}.log-pager button{font-size:17px;padding:8px 13px}
 .toast{font-size:19px;padding:12px 18px;bottom:50px}
}
@media(max-height:650px){
 .shell,.shell.home{padding-top:10px;padding-bottom:4px}.home-header{padding:0 0 10px}.home-header h1{font-size:36px}.home-header p{font-size:26px}.home-header .demo-note{font-size:15px}
 .page-header h1{font-size:30px}.back-button{min-height:44px;padding:8px 14px;font-size:20px}.page-demo{font-size:14px;margin-bottom:8px}.page-content{gap:8px}.footer{min-height:40px}.footer .text-button{min-height:38px}
 .page-garden .control-button{flex-direction:row;font-size:23px;padding:12px;gap:12px;align-items:center}.page-garden .control-button svg{width:45px;height:45px}.control-button small{font-size:15px}
 .garden-scene{display:none}.garden-summary{font-size:18px;padding:8px 14px;min-height:45px}.inline-help button{min-height:44px;font-size:20px;padding:8px 18px}
 .camera-label{padding:8px 14px;font-size:23px}.camera-hint{display:none}.camera-grid{gap:12px}.feed-disclaimer{font-size:14px}.feed-tools .control-button{padding:12px;font-size:24px}.feed-tools .control-button small{display:none}.door-state{font-size:16px}
 .harness-heading>svg{height:45px;width:45px}.harness-heading h2{font-size:26px}.harness-heading p{font-size:17px;margin-top:4px}.harness-status{font-size:21px}.lift-button{height:62px;min-height:62px;font-size:30px}.lift-button svg{height:40px;width:40px}.harness-content>.subtle-note{font-size:14px}.strength-button{font-size:35px}
 .health-instruction h2,.feeling-content>h2{font-size:27px}.health-instruction p{font-size:19px}.health-last{font-size:16px}.feeling-content>h2{margin:0}.recorded-status{min-height:45px;font-size:20px}.recorded-status.saved{font-size:28px}.feeling-content>.subtle-note{font-size:14px}
 .help-shell{gap:10px;padding-top:16px;padding-bottom:16px}.help-icon{width:60px;height:60px}.help-shell h1{font-size:36px}.countdown{font-size:clamp(70px,17vh,130px)}.help-message{font-size:20px}.cancel-button{min-height:75px;height:80px;font-size:35px}.cancel-button svg{width:48px;height:48px}.help-shell .demo-note{font-size:15px}.connecting-dots{height:40px}
 .admin-panel{gap:10px;padding:18px}.admin-panel h2{font-size:25px}.admin-panel p{font-size:18px}.admin-log{font-size:17px}.admin-actions .utility-button{min-height:48px;font-size:20px}
}
@media(max-height:500px) and (min-width:601px){
 .home-header h1{font-size:29px}.home-header p{font-size:21px}.home-header .demo-note{font-size:13px}.home .big-button{font-size:34px;grid-template-columns:70px 1fr;padding:8px 35px}.home .big-button .icon{height:65px}
 .page-header h1{font-size:27px}.page-header{margin-bottom:4px}.page-demo{margin-bottom:6px}.page-content{gap:6px}.footer .text-button{font-size:16px}
 .help-shell{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr auto;gap:10px 30px;align-content:center}.help-icon{grid-column:1 / -1;height:45px;width:45px}.help-shell h1{grid-column:1 / -1;font-size:31px}.help-shell .countdown,.help-shell .connecting-dots{grid-column:1;grid-row:3;align-self:center}.help-message{grid-column:1;grid-row:4}.help-shell .cancel-button{grid-column:2;grid-row:3 / 5;height:100%;min-height:90px;font-size:33px}.help-shell .demo-note{grid-column:1 / -1;font-size:13px}
}

.camera-photo{width:100%;height:100%;background:none;object-fit:cover}
@media(max-height:650px) and (max-width:600px){
 .page-garden .control-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;font-size:20px;padding:10px;gap:5px}
 .page-garden .control-button svg{width:32px;height:32px}.page-garden .control-button small{display:none}
 .page-header h1{font-size:26px}.back-button{font-size:16px;padding:8px 10px}
 .feed-tools{height:100px}.feed-tools .control-button{font-size:17px;padding:8px 5px}.feed-tools .control-button svg{height:30px;width:30px}
 .health-bottom{gap:6px}.health-last{font-size:14px}
 .admin-panel h2{font-size:23px}.admin-panel p{font-size:16px}.admin-actions .utility-button{font-size:16px;min-height:50px}
}
