/* Compact editing workspace: scrollable tools and drawers leave the canvas usable. */
.touch-actions,.sheets-drawer-buttons,.sheets-drawer-close{display:none}
@media(max-width:1024px){
 .app-shell{height:var(--app-height,100dvh);min-height:0}.app-header{min-width:0;gap:12px;padding-inline:12px}.app-header .brand-by{display:none}.workspace-body,.viewport{min-width:0}
 .architecture-tools{display:block;max-height:30dvh;overflow-y:auto;flex:none}.architecture-row{display:flex;flex-wrap:nowrap!important;min-width:0;min-height:54px;padding:5px 10px;gap:8px;overflow-x:auto;scrollbar-width:thin}.architecture-row>*{flex-shrink:0}.architecture-row .modify-palette{display:flex;flex-wrap:nowrap;width:auto;order:0;border:0;padding:0;gap:2px}.architecture-row .wall-modes,.architecture-row .floor-modes{display:flex;width:auto;order:0;margin:0;padding:0;flex:none}.architecture-row .wall-modes[hidden],.architecture-row .floor-modes[hidden]{display:none}.architecture-row .mode-button{flex-direction:row;white-space:nowrap}.architecture-row .history-tools{margin-left:0;flex:none}.architecture-row .ribbon-tool,.architecture-row .modify-icon,.architecture-row .history-tools button{min-width:44px;min-height:44px}
 .properties-panel,.hydraulic-library{position:absolute!important;top:0;bottom:0;width:min(330px,85vw)!important;max-width:85vw;z-index:12;background:white;box-shadow:0 4px 24px #234e4b24}.properties-panel{right:0;left:auto}.hydraulic-library{left:0;right:auto}.properties-panel>header,.hydraulic-library>header{position:sticky;top:0;background:white;z-index:2;min-height:48px}.properties-panel button,.hydraulic-library button{min-height:40px}.properties-panel input:not([type=checkbox]):not([type=color]),.properties-panel select,.hydraulic-library input{min-height:42px}.properties-panel .icon-button{min-width:44px}.modify-options{min-height:44px;flex-wrap:wrap}.view-navigation{min-height:44px;gap:0;padding:0 6px}.view-navigation button{min-height:44px}
 dialog{max-height:calc(var(--app-height,100dvh) - 24px);max-width:calc(100vw - 20px);overflow:auto;overscroll-behavior:contain}dialog button,dialog select{min-height:42px}dialog input:not([type=checkbox]):not([type=color]){min-height:42px}.form-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sheets-drawer-buttons{display:flex;gap:5px}.sheets-drawer-buttons button{min-height:40px!important;border:1px solid #c9ded7!important;background:#fff!important;padding:5px 10px!important}.sheets-drawer-close{display:block;min-width:44px;min-height:44px}.sheets-layout input:not([type=checkbox]),.sheets-layout select{font-size:16px;min-height:42px}.sheets-canvas-bar{min-height:50px;flex-wrap:wrap;gap:4px;padding:5px 10px}.sheets-canvas-bar>span{display:none}.sheets-ribbon{display:block;padding:6px 10px}.sheets-tools,.sheets-actions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:4px}.sheets-tools{padding-bottom:4px}.sheets-actions button{flex:none;min-height:40px}.sheets-tools button{min-width:44px;min-height:44px;flex:none}.sheets-tools span{font-size:10px}#sheet-scroll{padding:14px;touch-action:none}#sheet-status{font-size:11px;max-height:42px;overflow:auto}.sheets-properties button{min-height:42px}.sheets-dialog-columns{grid-template-columns:1fr}.sheets-dialog-columns section+section{border:0;padding:0}
}
@media(max-width:700px){
 .app-header{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:5px 8px 0;gap:0;min-height:82px}.app-header .brand{grid-column:1/4;height:36px}.app-header .help-launcher{grid-column:4;grid-row:1;justify-self:end;min-width:40px;min-height:36px;margin:0}.app-header .category-tab{grid-row:2;margin:0;padding:8px 2px!important;width:100%;min-height:42px;font-size:9px!important;letter-spacing:.6px}.app-header .brand-name{font-size:25px}.app-header .brand-mark{width:25px}
 .statusbar{min-height:42px;height:42px;padding:0 8px;gap:8px;overflow-x:auto;overflow-y:hidden}.statusbar>*{flex:none}.statusbar .coordinates,.statusbar .status-grid,.statusbar .status-separator,.statusbar .status-left>span:last-child{display:none}.statusbar .display-modes button,.statusbar .visibility-button{min-width:38px;min-height:38px}.statusbar .measurement{width:auto;flex:1;min-width:0}.measurement input{min-width:70px;font-size:16px}.measurement button{min-height:38px;min-width:38px}.statusbar .display-modes{padding-left:0}
 .properties-panel,.hydraulic-library{top:auto!important;bottom:0;height:auto!important;max-height:47%;width:100%!important;max-width:100%;border-top:1px solid #b9d7ce;border-radius:14px 14px 0 0;overscroll-behavior:contain}.properties-panel>header,.hydraulic-library>header{border-radius:14px 14px 0 0}.properties-panel input:not([type=checkbox]):not([type=color]),.properties-panel select,.hydraulic-library input,dialog input:not([type=checkbox]):not([type=color]),dialog select{font-size:16px}
 .navigation-hint,.three-message:not(.essential-message),.orientation{display:none!important}.project-launcher{bottom:12px;right:10px}.project-trigger{width:46px;height:46px;padding:0;justify-content:center}.project-trigger span,.project-trigger .project-chevron{display:none}.scale{left:12px;bottom:70px}.view-cube{transform:scale(.68);right:4px;top:4px}.motion-limit{bottom:70px;max-width:calc(100% - 24px);padding:10px;font-size:11px}
 .touch-actions{display:flex;position:absolute;left:10px;bottom:12px;z-index:5;gap:5px}.touch-actions button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #c5ddd5;border-radius:9px;background:#fffffff0;color:#087f79;font-size:21px}.touch-actions button[aria-pressed=true]{background:#d0e9e2;border-color:#087f79}.form-columns,.sheets-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.drawing-message{max-width:calc(100% - 20px);left:10px;font-size:12px}
 .sheets-ribbon .sheets-tools button span{display:none}.sheets-ribbon .sheets-tools button{height:42px;padding:7px}.sheets-ribbon .sheets-actions button{font-size:11px}.sheets-ribbon .sheets-actions{padding-top:4px}.sheets-canvas-bar button{min-height:40px}#sheet-status{display:none}.sheet-navigation-bar button{min-height:32px}.sheets-dialog{padding:16px}
}
@media(pointer:coarse) and (min-width:701px){.touch-actions{display:flex;position:absolute;bottom:14px;left:16px;gap:6px;z-index:5}.touch-actions button{width:44px;height:44px;background:white;color:#087f79;border:1px solid #bfd8d1;border-radius:8px;font-size:20px}.touch-actions button[aria-pressed=true]{background:#d0e9e2}.scale{bottom:76px}.navigation-hint,.three-message:not(.essential-message){display:none}}
@media(max-height:500px) and (max-width:1024px){.app-header{display:flex;min-height:42px;height:42px;padding:0 8px}.app-header .brand{height:36px}.app-header .category-tab{min-height:40px;width:auto;flex:1;font-size:9px!important}.app-header .help-launcher{display:none}.architecture-row{min-height:44px}.statusbar{min-height:36px;height:36px}.properties-panel,.hydraulic-library{top:0!important;max-height:100%;width:min(300px,45vw)!important}.sheets-ribbon{display:flex;overflow-x:auto;gap:8px}.sheets-tools,.sheets-actions{overflow:visible;flex:none}.sheets-tools span{display:none}}
.component-balloon{position:absolute;top:14px;left:14px;z-index:7;width:300px;max-width:calc(100% - 180px);max-height:50%;overflow:auto;padding:14px 34px 12px 14px;background:#fffffff5;border:1px solid #bfd9d0;border-radius:12px;box-shadow:0 4px 22px #204b4320;font-size:12px;line-height:1.5}.component-balloon[hidden]{display:none}.component-balloon strong{display:block;color:#22534d}.component-balloon p{margin:6px 0;color:#657f7b}.component-balloon .component-description{color:#22534d;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}.component-balloon summary{cursor:pointer}.balloon-close{position:absolute;top:1px;right:2px;border:0;background:transparent;font-size:21px;width:34px;height:34px}.balloon-edit{border:1px solid #bfd8d0;border-radius:6px;background:#f0f8f4;color:#087f79;padding:7px 10px;margin-top:8px;font-size:11px}.component-description-field textarea{width:100%;resize:vertical;min-height:72px;font:13px inherit;padding:9px;border:1px solid #c9dcd6;border-radius:6px;line-height:1.4;color:#294d49}.component-description-field{display:block!important}.component-description-field textarea{display:block;margin-top:7px}
@media(max-width:700px){.component-balloon{top:8px;left:8px;width:250px;max-width:calc(100% - 115px);font-size:11px;padding:10px 30px 10px 10px;max-height:42%}.balloon-edit{min-height:36px}.component-description-field textarea{font-size:16px}}

@media(max-width:700px) and (min-height:501px){.workspace-body:has(.properties-panel:not([hidden]),.hydraulic-library:not([hidden])) .touch-actions,.workspace-body:has(.properties-panel:not([hidden]),.hydraulic-library:not([hidden])) .project-launcher{bottom:calc(47% + 10px)}}
