/* Keep the horizon clear. Height editing is docked at the bottom, details in a separate dialog. */
.simple-ui.eye-live-ui #eye-banner{top:auto;bottom:10px;left:12px;right:76px;width:390px;max-width:calc(100% - 90px);max-height:calc(100% - 24px);padding:10px 12px;border-radius:14px;background:#14242ff7;overflow:auto}
.simple-ui #eye-banner #eye-live-head{display:flex;align-items:center;gap:8px;margin:0 0 4px;flex-wrap:wrap}
#eye-live-title{flex:1;min-width:100px;font-size:15px;line-height:1.4}
.simple-ui #eye-banner #eye-live-head button{flex:0 0 auto;font-size:13px;min-height:44px;padding:6px 9px;margin:0}
#eye-live-controls{border-top:1px solid #415865;padding-top:6px}
#eye-mode-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#eye-mode-row>label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.simple-ui #eye-height-mode{width:auto;max-width:65%;min-height:44px;font-size:14px;padding:5px 7px;margin:0}
#eye-height-hint{font-size:11px;line-height:1.4;color:#bed0da;flex:1;min-width:75px}
#eye-height-stepper{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;align-items:end;margin:6px 0}
.simple-ui #eye-banner #eye-height-stepper button{min-height:48px;height:48px;font-size:25px;margin:0;padding:3px;line-height:1}
#eye-height-label{display:block;font-size:12px;line-height:1.4;margin-bottom:2px}
.eye-height-number{display:flex;align-items:center;gap:5px}
.simple-ui #eye-height-value{width:100%;min-width:0;min-height:48px;height:48px;font-size:23px;text-align:center;padding:4px;margin:0;appearance:textfield}
#eye-height-unit{flex:0 0 auto;font-size:15px;color:#dcecf2}
#eye-height-value[aria-invalid=true]{outline:2px solid #efb295}
#eye-height-applied{font-size:11px;line-height:1.4;margin:4px 0;color:#c8dbe2}
#eye-height-feedback{font-size:12px;line-height:1.45;color:#92e2c9;margin:4px 0}
#eye-height-feedback.eye-height-error{color:#ffcfad}
.simple-ui #eye-banner #eye-live-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.simple-ui #eye-banner #eye-live-actions button{min-height:44px;font-size:13px;margin:0;padding:6px}
.simple-ui #eye-banner .simple-eye-summary{font-size:11px;margin:4px 0 0;line-height:1.35;white-space:normal}
#eye-information{width:480px;max-width:calc(100% - 24px);max-height:calc(var(--simple-height,100dvh) - 30px);padding:0 18px 16px;background:#14242f;color:#ecf4f8;border:1px solid #6a8390;border-radius:16px;overflow:auto;overscroll-behavior:contain}
#eye-information::backdrop{background:#07121ccc}
.eye-information-head{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:0;background:#14242f;padding:12px 0}
.eye-information-head h2{margin:0;font-size:17px}.eye-information-head button{min-height:48px}
#eye-information>.simple-fold{margin-top:0;border-top:0}#eye-information>.simple-fold>summary{display:none}
#eye-information p,#eye-information .small,#eye-information strong{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
#eye-information a.context-maps{white-space:normal;font-size:14px}
.simple-ui #eye-banner.eye-height-collapsed #eye-live-head{margin:0}
.simple-ui #eye-banner.eye-height-collapsed #eye-live-title{font-size:14px}
@media(max-width:760px){
 .simple-ui.eye-live-ui #eye-banner{left:8px;right:8px;bottom:8px;width:auto;max-width:none;max-height:calc(100% - 16px);padding:8px 10px}
 .simple-ui #eye-banner #eye-live-head button{font-size:12px;padding:5px 7px}
 #eye-live-title{font-size:14px;min-width:90px}
 #eye-height-mode{flex:0 1 auto}
}
@media(max-width:350px){#eye-height-hint{display:none}.simple-ui #eye-height-mode{max-width:100%}}
@media(max-height:520px){.simple-ui.eye-live-ui #eye-banner{right:72px;max-width:410px;max-height:calc(100% - 16px)}}
@media(prefers-reduced-motion:reduce){#eye-banner *,#eye-information *{transition:none!important}}
/* Override legacy #eye-banner div/p rules only for the new height editor. */
.simple-ui #eye-banner #eye-height-stepper{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;align-items:end;margin:6px 0}
.simple-ui #eye-banner #eye-height-input-wrap{display:block;min-width:0;margin:0}
.simple-ui #eye-banner .eye-height-number{display:flex;align-items:center;gap:5px;margin:0;min-width:0}
.simple-ui #eye-banner #eye-live-title{font-size:14px;line-height:1.4}
.simple-ui #eye-banner #eye-mode-row{display:flex;align-items:center;gap:8px;margin:0}
.simple-ui #eye-banner #eye-height-applied{display:block!important;font-size:11px;line-height:1.4;margin:4px 0}
.simple-ui #eye-banner #eye-height-feedback:not([hidden]){display:block!important;font-size:12px;line-height:1.45;margin:4px 0}
/* v0.9.1: a readable title and a compact, scrollable editor. Scoped to this map only. */
.simple-ui .brand{flex:1;min-width:0}
.simple-ui .brand .yodo-title{font-family:'Zen Maru Gothic','Hiragino Maru Gothic ProN','Yu Gothic',system-ui,sans-serif;font-weight:700;font-size:21px;line-height:1.2;letter-spacing:0;margin:0}
.simple-ui .yodo-title>span{display:block;white-space:nowrap}
.simple-ui .yodo-title>span:last-child{font-size:.82em;color:#bce5d9;margin-top:2px}
.simple-ui .brand>p{display:none}
.simple-ui header .header-right{flex-shrink:0;margin-left:0}
.simple-ui.eye-live-ui #eye-banner{display:flex;flex-direction:column;max-height:min(390px,55%);overflow:hidden}
.simple-ui #eye-banner #eye-live-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;flex-shrink:0;align-items:center;gap:6px;margin:0 0 4px}
.simple-ui #eye-banner #eye-live-title{min-width:0;overflow-wrap:anywhere;font-size:13px}
.simple-ui #eye-banner #eye-live-location,.simple-ui #eye-banner #eye-live-caution{display:block!important;flex-shrink:0;margin:1px 0;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.simple-ui #eye-banner #eye-live-location{color:#e2f3eb;font-weight:600}
.simple-ui #eye-banner #eye-live-caution{color:#c5d5dc;font-size:11px}
.simple-ui #eye-banner #eye-live-controls{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.simple-ui #eye-banner #eye-height-recovery{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}
.simple-ui #eye-banner #eye-height-recovery button{font-size:12px;min-height:44px;flex:1 1 42%;margin:0}
.simple-ui #eye-banner .simple-eye-summary{flex-shrink:0;font-size:10px;padding-top:3px}
.simple-ui #eye-banner.eye-height-collapsed{max-height:30%}
.simple-ui #eye-banner.eye-height-collapsed #eye-live-head{margin:0}
.simple-ui #eye-banner.eye-height-collapsed .simple-eye-summary{display:none!important}
@media(max-width:760px){
 .simple-ui .brand .yodo-title{font-size:16px;letter-spacing:0;line-height:1.22}
 .simple-ui header{padding:6px 10px;gap:5px}
 .simple-ui.eye-live-ui #eye-banner{max-height:52%}
 .simple-ui.eye-live-ui #eye-banner.eye-height-collapsed{max-height:28%}
 .simple-ui #eye-banner #eye-height-hint{font-size:10px}
 .simple-ui #eye-banner #eye-live-head button{min-height:44px}
}
@media(max-width:480px){
 html[lang=en] .simple-ui{--header:102px}
 html[lang=en] .simple-ui header{flex-wrap:wrap;align-content:center;row-gap:2px}
 html[lang=en] .simple-ui header .brand{flex:1 0 100%}
 html[lang=en] .simple-ui header .header-right{width:100%;justify-content:flex-end}
}
