.floor-start{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#f5f9faf2;z-index:8}.floor-start[hidden]{display:none}.floor-start strong{font-size:22px}.floor-start p{margin:0;color:#607984}.floor-start button{min-width:190px}.base-controls{display:grid;gap:8px;margin-bottom:16px}.mobile-object-button{display:none}
@media(max-width:720px){
 body:has(.mobile-editor:not([hidden])){overflow:hidden;height:100dvh;display:flex;flex-direction:column}
 body:has(.mobile-editor:not([hidden]))>.topbar{flex-shrink:0;padding:5px 8px;gap:4px;min-height:0;flex-wrap:wrap}
 body:has(.mobile-editor:not([hidden])) .topbar .brand,body:has(.mobile-editor:not([hidden])) .topbar .trial{display:none!important}
 body:has(.mobile-editor:not([hidden])) .topbar nav{display:flex;overflow:auto;gap:2px;width:100%;justify-content:space-between}
 body:has(.mobile-editor:not([hidden])) .topbar nav button{padding:7px;font-size:12px;white-space:nowrap}
 body:has(.mobile-editor:not([hidden]))>.notice{display:none}
 body:has(.mobile-editor:not([hidden])) .account-menu{display:flex;margin:0;padding:0;gap:10px}
 .mobile-editor:not([hidden]){display:flex;flex:1;min-height:0;flex-direction:column;padding:0!important;max-width:none;width:100%;overflow:hidden}
 .mobile-editor>.projectbar,.mobile-editor>.floor-bar,.mobile-editor .editor-layout>.toolpanel,.mobile-editor .editor-layout>.inspector{display:none}
 .mobile-editor-top{display:flex;gap:6px;padding:7px 8px;background:white;border-bottom:1px solid #d9e4e8;flex-shrink:0}.mobile-editor-top button{flex:1;padding:9px 4px;font-size:13px;min-width:0}
 .mobile-editor .editor-layout{display:flex;flex:1;min-height:0;overflow:hidden;border:0;border-radius:0;margin:0}
 .mobile-editor .canvas-section{display:flex;flex-direction:column;position:static;width:100%;height:100%;min-height:0;border:0}
 .mobile-editor .canvas-toolbar{flex-shrink:0;padding:4px;min-height:36px;gap:2px;flex-wrap:wrap}.mobile-editor .canvas-toolbar button{padding:5px;font-size:11px}.mobile-editor .canvas-actions{gap:2px}.mobile-editor .canvas-actions .divider{display:none}
 .mobile-editor .canvas-wrap{flex:1;min-height:0;aspect-ratio:auto;width:100%;position:relative;overflow:hidden}.mobile-editor #canvas{width:100%;height:100%;min-height:0;aspect-ratio:auto;display:block}
 .mobile-editor .canvas-footer{padding:3px 6px;font-size:10px;flex-shrink:0}.mobile-editor .canvas-footer button{font-size:10px}.mobile-editor .canvas-hint{display:none}.mobile-editor .canvas-badge{font-size:10px;padding:3px}
 .mobile-editor-dock{display:flex;flex-shrink:0;background:#173640;padding:5px 3px max(5px,env(safe-area-inset-bottom));gap:2px}.mobile-editor-dock button{flex:1;border:0;border-radius:7px;background:transparent;color:white;font-size:12px;min-height:46px;padding:4px 1px}.mobile-editor-dock button.active{background:#087f75}.mobile-editor-dock button:disabled{opacity:.4}
 .mobile-editor-sheet{height:35dvh;max-height:310px;min-height:100px;flex-shrink:0;background:white;border-top:1px solid #cedce2;display:flex;flex-direction:column}.mobile-editor-sheet[hidden]{display:none}.mobile-editor-sheet>header{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;border-bottom:1px solid #eef2f4;flex-shrink:0}.mobile-sheet-body{overflow:auto;overscroll-behavior:contain;padding:10px 12px;min-height:0}.mobile-sheet-body>.button{margin:4px}.mobile-sheet-body .step-content,.mobile-sheet-body .inspector{display:block;padding:0;border:0}.mobile-sheet-body .projectbar{display:block;padding:0}.mobile-sheet-body .projectbar .actions{flex-wrap:wrap}.mobile-sheet-body .floor-bar{padding:8px 0}.mobile-sheet-body .step-content>h2{display:none}.mobile-sheet-body .summary{display:none}
 .mobile-editor .mobile-object-button:not([hidden]){display:block;position:absolute;right:8px;top:8px;z-index:5}.mobile-editor .floor-start strong{font-size:17px}.mobile-editor .floor-start{gap:7px}.mobile-editor .floor-start button{padding:8px}.mobile-editor .quick-object-actions{bottom:8px}
 dialog{max-height:90dvh;overflow:auto}
}

@media(max-width:720px){.mobile-editor #step1>.base-controls,.mobile-editor #step1>label.upload,.mobile-editor #step1>.section-actions,.mobile-editor #step1>p:first-of-type,.mobile-editor #step1 #blankFloor,.mobile-editor #step1 #reuseSource{display:none}}

/* Compact controls share the badge row, leaving the drawing unobstructed. */
.canvas-badge-row{position:absolute;top:6px;left:6px;right:6px;display:flex;align-items:center;gap:4px;z-index:6;pointer-events:none;white-space:nowrap}
.canvas-badge-row>*{pointer-events:auto}
.canvas-badge-row #canvasBadge{position:static;flex:0 1 auto;min-width:0;max-width:40%;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:16px;padding:3px 5px;margin:0}
.canvas-badge-row #quickObjectActions{position:static;display:flex;gap:4px;transform:none;box-shadow:none;background:none;border:0;padding:0;margin:0}
.canvas-badge-row #quickObjectActions[hidden]{display:none}
.canvas-badge-row .mobile-object-button:not([hidden]),.canvas-badge-row #quickObjectActions button{position:static!important;display:inline-flex!important;align-items:center;font-size:10px!important;line-height:16px!important;padding:3px 5px!important;min-width:0!important;min-height:22px!important;height:22px!important;border-radius:4px;box-shadow:none;margin:0;white-space:nowrap}
.canvas-badge-row .mobile-object-button[hidden],.canvas-badge-row #quickObjectActions button[hidden]{display:none!important}
.wall-width-controls{padding:8px 12px;background:#fff;border-bottom:1px solid #dae5e8}.wall-width-controls .field{margin:6px 0}.wall-width-controls output{float:right}
@media(max-width:720px){.mobile-editor .canvas-section>.wall-width-controls{display:none}.mobile-editor-top button{font-size:12px;padding:9px 2px}.mobile-sheet-body>.wall-width-controls{padding:0;border:0}}
