.phone-label{display:none}
/* Phone editing uses the existing controls in one movable panel, without duplicate state. */
.mobile-only,.mobile-nav,.mobile-sheet,.mobile-menu{display:none}#rhythmPanel{grid-column:1/-1;min-width:0}.elevation-zoom{position:absolute;right:12px;bottom:64px;z-index:3;display:grid;gap:3px;background:#fffdf1e6;border:1px solid #ced5c2;padding:4px;border-radius:8px}.elevation-zoom button{min-width:40px;min-height:36px;padding:6px;font-size:17px;border:0;background:transparent}.elevation-zoom button:last-child{font-size:11px}.elevation-zoom output{text-align:center;font-size:10px;color:#67765d;padding:3px}.wall-drawing{overflow:auto;scrollbar-width:thin}.wall-drawing[data-tool="pan"]{touch-action:pan-x pan-y;cursor:grab}.wall-drawing[data-tool="pan"] .cell{cursor:grab}.wall-drawing.zoomed{height:100%;max-height:100%;filter:none;align-self:stretch}.wall-drawing svg{height:auto}.mobile-help p{font-size:14px;line-height:1.7}.mobile-menu button{text-align:left}button{touch-action:manipulation}
@media(max-width:700px),(max-width:900px) and (pointer:coarse){
 body{--nav-height:calc(66px + env(safe-area-inset-bottom,0px));--sheet-height:min(calc(var(--app-height,100svh) * .46),420px);height:var(--app-height,100svh);overflow:hidden;overscroll-behavior:none}
 header{height:60px;padding:0 12px;gap:10px;background:var(--paper);position:relative;z-index:15}.brand{font-size:20px;white-space:nowrap}.brand-icon{font-size:27px;margin-right:3px}.header-actions{gap:8px}.header-actions #agentHelp,.header-actions #load,.header-actions #saveStatus,.header-note{display:none!important}.header-actions #export{font-size:13px;min-height:44px;padding:10px 13px;white-space:nowrap}.header-actions #mobileMenuToggle{display:block;width:44px;height:44px;font-size:26px;line-height:1;padding:0;background:transparent;border-color:var(--line)}
 main{padding:8px;margin:0;max-width:none}.intro,.below{display:none}.workspace{display:block;min-width:0}.workspace>.library,.workspace>.settings{display:none}.stage{height:calc(var(--app-height,100svh) - 76px - var(--nav-height));display:flex;flex-direction:column;min-width:0;width:100%;border-radius:10px;overflow:hidden;transition:height .15s ease}.stage>.sun-panel,.stage-footer{display:none}.stage-toolbar{height:54px;min-height:54px;padding:4px 6px;gap:5px}.stage-toolbar>.segmented{min-width:0;flex:1;padding:2px}.stage-toolbar .segmented button{min-height:44px;padding:6px 3px;font-size:11px;flex:1;white-space:nowrap}.history{gap:0}.history button{height:44px;width:36px;padding:3px;font-size:23px!important}.view-tabs{padding:0 8px 6px;min-height:48px;gap:6px}.view-tabs .segmented{flex:1}.view-tabs .segmented button{flex:1;font-size:12px;min-height:40px;padding:8px}.view-tabs>button{min-height:44px;min-width:80px;font-size:11px;padding:5px}
 .wall-scene{flex:1;min-height:120px;height:auto;padding:0}.wall-scene.elevation-view{padding:38px 12px 42px}.wall-drawing{max-height:100%;height:100%;display:flex;align-items:center;min-height:0;touch-action:none}.wall-drawing[data-tool="pan"]{touch-action:pan-x pan-y}.wall-drawing.zoomed{display:block}.wall-drawing svg{max-height:100%;width:100%}.wall-drawing.zoomed svg{max-height:none}.scene-tag{font-size:8px;letter-spacing:1px;top:10px;left:10px;padding:6px 8px}.scene-bottom{font-size:10px;left:8px;right:8px;bottom:8px;padding:6px 8px;min-height:28px;line-height:1.4}.scene-bottom #fill{display:none}.elevation-zoom{bottom:45px;right:9px}.elevation-zoom button{min-width:44px;min-height:40px;font-size:19px}.elevation-zoom button:last-child{font-size:12px}
 .selection-bar{display:block;flex-shrink:0;min-height:54px;padding:10px 12px;line-height:1.35}.selection-bar strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-bar small{font-size:10px;line-height:1.5;margin-top:3px}.selection-bar:not(.has-selection) .selection-actions{display:none}.selection-actions{display:grid;grid-template-columns:1fr 1fr 1.3fr 44px;gap:6px;margin-top:8px;width:100%}.selection-actions button{min-height:44px;padding:8px 6px;font-size:12px}
 .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;height:var(--nav-height);padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px));background:#fffefb;border-top:1px solid #dfe3d7;z-index:30;box-shadow:0 -3px 15px #30452c08}.mobile-nav button{border:0;background:transparent;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;padding:4px;min-height:50px;color:#75826a}.mobile-nav button span{font-size:22px;line-height:25px}.mobile-nav button.active{background:#eaf0e2;color:#355230;font-weight:600}
 .mobile-sheet:not([hidden]){display:flex;flex-direction:column;position:fixed;z-index:20;left:8px;right:8px;bottom:calc(var(--nav-height) + 4px);height:var(--sheet-height);border:1px solid #d6ddcc;border-radius:14px 14px 7px 7px;background:#fffefb;box-shadow:0 -6px 20px #314a2d0d;overflow:hidden}.mobile-sheet-heading{display:flex;justify-content:space-between;align-items:center;padding:5px 12px 5px 16px;min-height:52px;border-bottom:1px solid var(--line);flex-shrink:0}.mobile-sheet-heading h2{font-size:15px}.mobile-sheet-heading button{min-width:64px;min-height:42px;font-size:13px;background:#edf1e7;border-color:#d5dec9}.mobile-sheet-body{overflow:auto;overscroll-behavior:contain;padding:14px;flex:1;min-height:0;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.mobile-sheet-body>aside,.mobile-sheet-body>section,.mobile-sheet-body>.sun-panel{border:0;background:transparent;padding:0;display:block;width:100%}.mobile-sheet-body .library>.panel-heading,.mobile-sheet-body .settings>.panel-heading:first-child{display:none}.mobile-sheet-body .library>.small{font-size:12px;margin:0 0 10px;color:#78856e}.mobile-panel-open .stage{height:calc(var(--app-height,100svh) - 84px - var(--nav-height) - var(--sheet-height));min-height:100px}.mobile-panel-open .stage-toolbar,.mobile-panel-open .view-tabs,.mobile-panel-open .selection-bar{display:none}.mobile-panel-open .scene-bottom{display:none}.mobile-panel-open .scene-tag{max-width:90%;font-size:7px}
 .mobile-sheet button,.mobile-sheet select{min-height:44px}.mobile-sheet input:not([type="range"]):not([type="checkbox"]){font-size:16px;min-height:44px;max-width:100%}.mobile-sheet input[type="range"]{height:32px;accent-color:var(--green);margin:0;touch-action:pan-x}.mobile-sheet input[type="range"]::-webkit-slider-thumb{min-width:24px;min-height:24px}.mobile-sheet input[type="checkbox"]{width:22px;height:22px;flex-shrink:0}.mobile-sheet .small{font-size:12px}.mobile-sheet .micro{font-size:10px;line-height:1.6}.mobile-sheet .muted{color:#7b866f}.mobile-sheet .library-tabs{margin:8px 0 12px}.mobile-sheet .library-tabs button{font-size:13px}.mobile-sheet #blockSearch{margin:0;font-size:16px;padding:10px 12px}.mobile-sheet .block-filters{gap:6px;margin:10px 0}.mobile-sheet .block-filters button{font-size:12px;padding:6px 11px;min-height:44px}.mobile-sheet .block-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;gap:9px;margin:0 0 12px;padding:2px}.mobile-sheet .block-card{display:block;padding:7px;min-width:0}.mobile-sheet .block-card img,.mobile-sheet .block-card svg{width:100%;height:auto;max-height:90px;margin:auto}.mobile-sheet .block-card span{font-size:12px;margin-top:5px;text-align:center;white-space:normal}.mobile-sheet .block-card .new-mark{font-size:7px;text-align:center;line-height:12px}.mobile-sheet .block-info{display:block;padding:12px 0}.mobile-sheet .block-info strong{font-size:13px}.mobile-sheet .block-info span{display:block;font-size:11px;margin:5px 0}.mobile-sheet .block-info button{font-size:12px}.mobile-sheet .brush-setting{float:none;padding:12px 0;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:13px}.mobile-sheet .brush-setting button{min-width:90px;font-size:14px}.mobile-sheet .section-label{display:block;margin:8px 0;font-size:10px}.mobile-sheet .swatches{justify-content:flex-start;gap:12px;padding:6px 2px 14px}.mobile-sheet .swatches button{width:42px;height:42px;min-height:42px;border-width:5px}.mobile-sheet .library-foot{display:none}.mobile-sheet .full-button{font-size:13px;padding:11px}.mobile-sheet .mobile-only{display:block}.mobile-sheet .combo-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:10px}.mobile-sheet .combo-grid svg{height:95px}.mobile-sheet .combo-grid span{font-size:12px}.mobile-sheet .combo-grid small{font-size:10px}.mobile-sheet .combo-info strong{font-size:13px}.mobile-sheet .combo-info span,.mobile-sheet .combo-info small{font-size:11px}.mobile-sheet .combo-info button,.mobile-sheet .capture-combo{font-size:12px}.mobile-sheet .capture-combo summary{min-height:44px;padding:12px 0}.mobile-sheet .capture-size label{font-size:12px}.mobile-sheet .capture-size select{font-size:16px;padding:7px}
 .mobile-sheet #rhythmPanel>.panel-heading{display:none}.mobile-sheet #rhythmPanel>.small{margin-top:0}.mobile-sheet .presets,.mobile-sheet .settings .presets{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;max-height:none;gap:10px}.mobile-sheet .presets button{padding:9px;text-align:left}.mobile-sheet .presets button svg{height:87px}.mobile-sheet .presets button span{font-size:12px}.mobile-sheet .rhythm-source{font-size:12px;min-height:44px}.mobile-sheet .privacy-band label{font-size:13px}.mobile-sheet .privacy-band label span{font-size:12px;float:right}.mobile-sheet .privacy-band .full-button{margin-top:8px}.mobile-sheet .settings label{font-size:13px;margin:18px 0 9px}.mobile-sheet .settings label>span{font-size:12px}.mobile-sheet .settings #units{font-size:14px;min-height:28px}.mobile-sheet .settings select{font-size:16px}.mobile-sheet .settings .input-pair{max-width:100%;gap:12px}.mobile-sheet .settings .input-pair>div{max-width:none;width:calc(50% - 13px);padding:8px 12px}.mobile-sheet .input-pair small{font-size:10px}.mobile-sheet .input-pair input{min-width:0;font-size:18px!important}.mobile-sheet .fit-note{font-size:11px}.mobile-sheet .scene-toggles label{font-size:12px}.mobile-sheet .quantities small{font-size:10px}.mobile-sheet .divider{margin:18px 0}
 .mobile-sheet .sun-heading strong{font-size:15px}.mobile-sheet .sun-heading button{font-size:12px;padding:8px 10px}.mobile-sheet .sun-presets{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mobile-sheet .sun-presets button{font-size:12px;border-radius:7px}.mobile-sheet .light-sliders{grid-template-columns:1fr;gap:8px;margin:14px 0}.mobile-sheet .light-sliders label{font-size:13px}.mobile-sheet .light-sliders input{margin-top:3px}.mobile-sheet .sun-panel>p{font-size:10px;margin-top:8px}
 .mobile-menu:not([hidden]){display:grid;position:fixed;z-index:40;top:58px;right:10px;left:auto;width:min(290px,calc(100vw - 20px));border:1px solid var(--line);background:#fffefb;border-radius:10px;padding:6px;box-shadow:0 12px 35px #273e2826}.mobile-menu button{min-height:48px;border:0;font-size:14px;background:transparent;padding:12px;text-align:left}
 dialog{width:calc(100% - 20px);max-height:calc(var(--app-height,100svh) - 24px);padding:16px;border-radius:12px;overflow:auto}dialog button,dialog a{min-height:44px}.modal-top{margin-bottom:14px}.modal-top h2{font-size:23px}.modal-top button{width:44px;height:44px}.export-options button{font-size:14px;min-height:72px}.export-options small{font-size:12px;line-height:1.5}.catalog-detail{gap:12px}.catalog-detail p{font-size:14px}.catalog-detail .small{font-size:12px}.catalog-detail .primary{width:100%;font-size:13px}.catalog-detail a{padding:8px 0;font-size:13px}.agent-help details{font-size:12px;overflow-wrap:anywhere}.agent-help code{font-size:11px}.agent-help .small{font-size:12px}.prompt-examples blockquote{font-size:17px;padding:14px}table{font-size:12px}#toast{bottom:calc(var(--nav-height) + 14px);max-width:calc(100vw - 28px);width:max-content;font-size:12px;line-height:1.5;z-index:80;padding:11px 16px}
}
@media(max-height:500px) and (max-width:900px) and (pointer:coarse){header{height:52px}body{--nav-height:56px;--sheet-height:48svh}.stage{height:calc(var(--app-height,100svh) - 68px - var(--nav-height))}.stage-toolbar{min-height:46px;height:46px}.stage-toolbar .segmented button{min-height:36px}.view-tabs{min-height:42px}.selection-bar{min-height:44px;padding:7px 10px}.selection-bar small{display:none}.selection-bar .selection-actions{margin-top:4px}.selection-actions button{min-height:36px}.mobile-nav{padding:2px 8px}.mobile-nav button{min-height:48px}.mobile-nav button span{font-size:18px;line-height:21px}.mobile-panel-open .stage{height:calc(var(--app-height,100svh) - 76px - var(--nav-height) - var(--sheet-height))}}
@media(prefers-reduced-motion:reduce){.stage,button{transition:none}}

@media(max-width:700px),(max-width:900px) and (pointer:coarse){.desktop-label{display:none}.phone-label{display:inline}.view-tabs .history{display:flex;gap:0;flex-shrink:0}.view-tabs .history button{height:44px;width:40px;min-width:40px;min-height:44px;border:0;padding:2px;font-size:23px}.view-tabs .segmented{min-width:0}.view-tabs .segmented button{white-space:nowrap;min-width:0;font-size:12px;padding:7px 5px}.view-tabs>#resetCamera{font-size:0;min-width:44px;width:44px;height:44px;padding:0}.view-tabs>#resetCamera::before{content:'⌂';font-size:24px}.stage-toolbar .segmented button{font-size:12px;min-height:44px}.stage-toolbar>.segmented{width:100%}}
