#phoneViewMenu,#phoneFit{display:none}
body.phoneLandscape[data-page=editor]{--phone-bar:52px;--phone-top:env(safe-area-inset-top);height:var(--phone-visible-height,100dvh)}
body.phoneLandscape[data-page=editor] #editorBar{display:grid;grid-template-columns:44px minmax(0,1fr) 184px 44px 44px 44px 58px;gap:4px;flex-wrap:nowrap;position:relative;height:calc(var(--phone-bar) + var(--phone-top));padding:calc(4px + var(--phone-top)) max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left));align-items:center}
body.phoneLandscape #editorBar label{display:block;max-width:none;width:100%;min-width:0}
body.phoneLandscape #editorBar .fieldCaption,body.phoneLandscape #projectStatus{display:none}
body.phoneLandscape #projectName{font-size:14px;min-height:44px;width:100%;text-overflow:ellipsis}
body.phoneLandscape #editorBar>button{min-width:44px;min-height:44px;padding:9px;margin:0}
body.phoneLandscape #editorBar #saveProject span{display:none}
body.phoneLandscape #editorBar>.primary{font-size:13px;min-width:58px;padding:8px}
body.phoneLandscape #editorBar .canvasTabs{display:grid;grid-template-columns:1fr 1fr;position:static;inset:auto;transform:none;width:184px;max-width:none;height:44px;padding:3px;margin:0;border:1px solid var(--line);border-radius:8px;gap:2px;background:var(--ui-eceae6,#eceae6);opacity:1}
body.phoneLandscape #editorBar .canvasTabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;min-height:36px;height:36px;margin:0;padding:3px;border:0;border-radius:5px;background:transparent;font-size:12px;transform:none}
body.phoneLandscape #editorBar .canvasTabs button[aria-pressed=true]{background:var(--ui-ffffff,#ffffff);color:var(--ui-716b63,#716b63);box-shadow:0 1px 3px #716b6310}
body.phoneLandscape #editorBar .canvasTabs .icon{width:17px;height:17px}
body.phoneLandscape #editorBar #tabProperties{display:none}
body.phoneLandscape #editorBar .canvasTabs button:active{transform:none}
body.phoneLandscape #phoneViewMenu{display:block;position:relative;width:44px;height:44px}
#phoneViewMenu summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer;list-style:none;border-radius:6px}#phoneViewMenu summary::-webkit-details-marker{display:none}
#phoneViewMenu[open] summary{background:var(--ui-e8e6e2,#e8e6e2)}
#phoneViewMenu>div{position:fixed;z-index:600;right:max(8px,env(safe-area-inset-right));top:calc(56px + env(safe-area-inset-top));width:220px;max-height:calc(var(--phone-visible-height,100dvh) - 72px);overflow:auto;padding:6px;background:var(--ui-ffffff,#ffffff);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #716b6320}
#phoneViewMenu button{display:flex;justify-content:flex-start;width:100%;border:0;border-radius:5px;min-height:44px;padding:10px 12px;font-size:13px}#phoneViewMenu p{font-size:11px;margin:8px 12px;color:var(--ui-706e6a,#706e6a)}
body.phoneLandscape[data-page=editor] #editorMain{height:calc(var(--phone-visible-height,100dvh) - var(--phone-bar) - var(--phone-top));padding:4px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) calc(max(8px,env(safe-area-inset-left)) + 54px);gap:0}
body.phoneLandscape #editorMain>#notice,body.phoneLandscape #editorMain .canvasHelp,body.phoneLandscape #editorMain .canvasTag{display:none}
body.phoneLandscape #editorMain>.workspace{display:block!important;position:relative;padding:0;flex:1;min-height:0;height:100%}
body.phoneLandscape #editorMain .workspace>.panel{height:100%;margin:0;border-radius:7px;overflow:hidden}
body.phoneLandscape #editorMain .planPanel,body.phoneLandscape #editorMain .viewPanel{display:flex;flex-direction:column}
body.phoneLandscape #editorMain .panelHead{display:none}
body.phoneLandscape #editorMain .canvasWrap,body.phoneLandscape #editorMain #modelStage{width:100%;height:100%;min-height:0;flex:1;position:relative}
body.phoneLandscape[data-pane=plan] #editorMain .viewPanel,body.phoneLandscape[data-pane=plan] #editorMain .inspector,body.phoneLandscape[data-pane=model] #editorMain .planPanel,body.phoneLandscape[data-pane=model] #editorMain .inspector,body.phoneLandscape[data-pane=properties] #editorMain .planPanel,body.phoneLandscape[data-pane=properties] #editorMain .viewPanel{display:none}
body.phoneLandscape #editorMain>.toolbar{position:absolute;z-index:100;display:flex;flex-direction:column;justify-content:center;align-items:center;left:max(6px,env(safe-area-inset-left));right:auto;top:50%;bottom:auto;transform:translateY(-50%);width:48px;max-width:48px;height:auto;padding:3px 2px;gap:1px;border-radius:9px;background:#ffffffef;box-shadow:0 2px 12px #716b6310}
body.phoneLandscape #editorMain .toolbar button{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;min-height:44px;height:44px;flex:none;padding:10px;gap:0;font-size:0;border-radius:6px}
body.phoneLandscape #editorMain .toolbar button span{display:none}
body.phoneLandscape #editorMain .toolbar .icon{width:22px;height:22px}
body.phoneLandscape .toolbar #undo,body.phoneLandscape .toolbar #redo,body.phoneLandscape .toolbar .divider{display:none}
body.phoneLandscape #phoneFit{display:flex;position:absolute;z-index:20;right:10px;top:10px;width:44px;height:44px;min-width:44px;padding:10px;background:#ffffffe8;border-radius:8px}
body.phoneLandscape[data-pane=properties] #phoneFit,body.phoneLandscape.walking #phoneFit{display:none}
body.phoneLandscape #enterWalk{right:10px;bottom:10px;min-height:44px;padding:10px 12px;font-size:12px}
body.phoneLandscape #editorMain>.furnitureCatalog{left:calc(max(8px,env(safe-area-inset-left)) + 54px);right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-width:600px;max-height:calc(var(--phone-visible-height,100dvh) - 72px)}
body.phoneLandscape #editorMain .inspector{height:100%!important;max-height:100%;overflow:auto}
body.phoneLandscape :is(#newDoorLabel,#newWindowLabel){position:fixed;left:calc(max(8px,env(safe-area-inset-left)) + 52px);bottom:max(12px,env(safe-area-inset-bottom));min-width:200px;font-size:12px}
body.phoneLandscape #closureNotice{position:absolute;left:8px;top:8px;right:64px;z-index:12;font-size:11px}
body.phoneLandscape #studioStatus{bottom:max(10px,env(safe-area-inset-bottom));font-size:12px}
/* At exceptionally short browser heights, retain all six 44px targets in one row. */
body.phoneLandscapeShort[data-page=editor] #editorMain{padding-left:max(8px,env(safe-area-inset-left));padding-bottom:calc(60px + env(safe-area-inset-bottom))}
body.phoneLandscapeShort #editorMain>.toolbar{top:auto;bottom:max(5px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);flex-direction:row;width:284px;max-width:284px}
body.phoneLandscapeShort #editorMain>.furnitureCatalog{left:max(8px,env(safe-area-inset-left));bottom:calc(60px + env(safe-area-inset-bottom));max-height:calc(var(--phone-visible-height,100dvh) - 126px)}
body.phoneLandscape #editorMain .toolbar #undo,body.phoneLandscape #editorMain .toolbar #redo,body.phoneLandscape #editorMain .toolbar .divider{display:none}
/* All header controls participate in one bounded grid; long names cannot size it. */
body.phoneLandscape[data-page=editor] #editorBar{width:100%;max-width:100%;min-width:0;grid-template-columns:44px minmax(0,1fr) minmax(156px,184px) 44px 44px 44px 58px}
body.phoneLandscape #editorBar label{width:100%;max-width:none;min-width:0;overflow:hidden}
body.phoneLandscape #projectName{display:block;min-width:0;max-width:100%;width:100%;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.phoneLandscape #editorBar .canvasTabs{position:static;inset:auto;transform:none;width:100%;max-width:184px;padding:0;border:0;box-shadow:inset 0 0 0 1px var(--line)}
body.phoneLandscape #editorBar .canvasTabs button{min-height:44px;height:44px}

body.phoneLandscape #editorBar>#tabletPropertiesToggle{display:block;width:44px;height:44px;min-width:44px;border:1px solid var(--line);border-radius:8px;background:var(--ui-fffefa,#fffefa)}
body.phoneLandscape #phoneViewMenu [data-phone-action=dimensions]{display:none}

body.phoneLandscape #editorMain>:is(#newDoorLabel,#newWindowLabel){z-index:120}
