/* Phone layout and the native editor share the Blue Living palette. */
html,body{height:100%;overscroll-behavior:none}body{background:#F5F6F8}
#blue-root{position:fixed;inset:0;overflow:hidden;background:#F5F6F8}
#blue-root>.sc-host{width:100%;height:100%;min-height:0}
#blue-root>.sc-host>.fh{width:100%;height:100%;max-width:none;min-height:0}
#blue-root .screen>header:first-child{padding-top:max(18px,env(safe-area-inset-top))!important;min-height:76px!important}
#blue-root .screen>.bottom,#blue-root .bottom-cta{padding-bottom:max(16px,env(safe-area-inset-bottom))}
#blue-root button:focus-visible{outline:3px solid #2457FF;outline-offset:3px}
#blue-root .menu{max-height:calc(100dvh - 128px);overflow-y:auto}
#blue-root .room{box-shadow:none}
#blue-root .blue-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}
#blue-root .blue-tools button{border:1px solid var(--line-2);background:var(--surface);color:var(--text);border-radius:12px;min-height:48px;padding:7px;font:600 13px/1.3 Manrope,sans-serif}
#blue-native-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--fh-white);border-bottom:1px solid var(--fh-hairline)}
#blue-native-bar strong{flex:1;font:700 17px/1.3 Manrope,sans-serif}
#blue-native-bar button{min-height:44px;border:0;border-radius:12px;padding:8px 12px;background:transparent;color:var(--fh-signal-blue)}
#blue-native-back{font-size:26px!important;min-width:44px}
#blue-native-data-tabs{padding:12px 20px;background:var(--fh-cloud)}
#blue-native-data-tabs>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
#blue-native-data-tabs button{min-height:44px;border:0;border-radius:12px;background:var(--fh-white);color:var(--fh-ink);font-size:13px}
#blue-native-data-tabs button[aria-current=page]{background:#2457FF;color:#fff}
#blue-native-data-tabs p{font:400 12px/1.5 Manrope,sans-serif;color:var(--fh-ink-62);margin:10px 0 0}
.blue-native #fhHeader{position:static}.blue-native .fh-header__top{display:none}.blue-native #fhTabs{display:none}
.blue-native #fhApp{min-height:calc(100dvh - 65px)}
.blue-native .fh-screen{padding:18px 20px 32px;max-width:100%;width:100%}
.blue-native .fh-h2{font:600 22px/1.3 Manrope,sans-serif;margin:4px 0 12px}
.blue-native .fh-canvas-wrap{border-radius:20px;background:var(--fh-white)}
.blue-native .fh-canvas-toolbar{gap:6px;flex-wrap:wrap}.blue-native .fh-canvas-toolbar button{min-height:44px;border-radius:12px}
.blue-native .fh-add-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.blue-native .fh-add-row button{min-height:46px;border-radius:12px}
.blue-native [data-plan-full],.blue-native [data-3d-full]{display:none}
.blue-native .fh-gear,.blue-native .fh-sp-device{display:none!important}
.blue-native .fh-detail{border-radius:18px}.blue-native .fh-detail input{min-height:44px}
body[data-blue-native-screen=capture] [data-screen=room]>:not(#fhCaptureStart):not(#fhCaptureResult):not(#blue-capture-plan){display:none!important}
#blue-capture-plan{width:100%;margin-top:16px;min-height:48px}
body:not([data-blue-native-screen=capture]) #blue-capture-plan{display:none}
html[data-blue-theme=dark]{--fh-cloud:#080D28;--fh-white:#10183A;--fh-ink:#F5F6FA;--fh-ink-72:#C7CEEA;--fh-ink-62:#B7C0DF;--fh-ink-55:#9AA7CC;--fh-hairline:rgba(183,201,255,.15);--fh-border:#42537F;--fh-signal-blue:#B7C9FF}
html[data-blue-theme=dark] body{background:#080D28}
html[data-blue-theme=dark] .fh-capture-review{background:#080D28;color:#F5F6FA}
html[data-blue-theme=dark] .fh-capture-review button,html[data-blue-theme=dark] .fh-capture-review input{background:#10183A;color:#F5F6FA;border-color:#42537F}
html[data-blue-theme=dark] .fh-capture-review .primary{background:#2457FF}
html[data-blue-theme=dark] .fh-capture-review .muted{color:#B7C0DF}
@media(prefers-reduced-motion:reduce){#blue-root *{animation:none!important;transition:none!important}}
@media(min-width:700px){#blue-root>.sc-host>.fh{max-width:600px;margin:auto;position:relative}#blue-root{background:#E9EEF8}.blue-native #fhApp,.blue-native #blue-native-bar{max-width:800px;margin:auto}}

#blue-root[hidden],#blue-native-bar[hidden],#blue-native-data-tabs[hidden],#fhApp[hidden]{display:none!important}
#blue-root{z-index:100}#blue-native-bar{z-index:110}
#blue-root .blue-ios-settings{margin-top:16px;display:grid;gap:1px;border-radius:16px;overflow:hidden;background:var(--line)}
#blue-root .blue-ios-settings button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:56px;padding:16px;text-align:left;border:0;background:var(--surface);color:var(--text);font:500 calc(17px * var(--ts))/1.45 Manrope,sans-serif}
#blue-root .blue-ios-settings button:after{content:'›';color:var(--text-3);font-size:20px}
#blue-root .blue-version{font:14px/1.6 'IBM Plex Mono',monospace;color:var(--text-3);margin:16px 4px}
#blue-root .screen{animation:blue-screen-in .22s ease-out}
@keyframes blue-screen-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media print{
 @page{size:A4;margin:0}
 html,body{height:auto!important;overflow:visible!important;background:white!important}
 body>*:not(#blue-root){display:none!important}
 #blue-root,#blue-root>.sc-host,#blue-root .fh,#blue-root .screen,#blue-root .scroll,#blue-root .pp-page,#blue-root .pp-view{position:static!important;display:block!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;width:auto!important;padding:0!important;margin:0!important;transform:none!important}
 #blue-root header,#blue-root .bottom,#blue-root .bottom-cta,#blue-root button,#blue-root .toast{display:none!important}
 #blue-root *{box-shadow:none!important;animation:none!important}
 #blue-root .a4{position:relative!important;transform:none!important;margin:0!important;width:210mm!important;height:296mm!important;overflow:hidden!important;break-after:page;background:white!important;color:#161A2C!important}
 #blue-root .a4:last-child{break-after:auto}
}

.blue-native #fhCreateSheet{z-index:150}
