:root{color-scheme:light;--paper:#f1f2f4;--ink:#252832;--muted:#777b84;--blue:#346bfa;--blue-soft:#e8eeff;--glass:rgba(255,255,255,.68);--line:rgba(70,75,90,.1);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:var(--paper)}button,input,select,textarea{font:inherit;color:inherit;touch-action:manipulation}button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:transparent;border:0;cursor:pointer;border-radius:12px;padding:10px;white-space:nowrap;transition:background .12s,color .12s}button:hover{background:rgba(100,110,130,.07)}button:active{background:rgba(100,110,130,.13)}button:disabled{opacity:.34;cursor:default}button:disabled:hover{background:transparent}button[aria-pressed=true],button.active{color:var(--blue);background:var(--blue-soft)}button:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.icon{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.glass{background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.49));border:1px solid rgba(255,255,255,.94);box-shadow:0 9px 24px rgba(25,30,45,.09),inset 0 0 0 1px rgba(30,35,45,.015);backdrop-filter:blur(22px) saturate(115%);-webkit-backdrop-filter:blur(22px) saturate(115%)}[hidden]{display:none!important}#workspace{position:absolute;top:var(--visual-top,0);left:0;width:100%;height:var(--visual-height,100%)}#canvas{position:absolute;inset:0;width:100%;height:100%;outline:none;touch-action:none;user-select:none}#canvas[data-tool=hand]{cursor:grab}#canvas[data-tool=hand]:active{cursor:grabbing}#canvas[data-tool=wall],#canvas[data-tool=room],#canvas[data-tool=measure],#canvas[data-tool=insert],#canvas[data-tool=led]{cursor:crosshair}#scene [data-object]{pointer-events:bounding-box}#selection{pointer-events:none}#selection [data-handle]{pointer-events:all;cursor:crosshair}
.plan-capsule{position:absolute;top:42px;left:46px;height:70px;min-width:264px;border-radius:20px;padding:14px 18px;gap:17px;text-align:left}.wordmark{font-size:28px;letter-spacing:-1.7px;font-weight:500;color:#10141c}.plan-divider{height:39px;width:1px;background:var(--line)}.plan-info{display:grid;gap:6px;min-width:98px;max-width:190px}.plan-info>span{overflow:hidden;text-overflow:ellipsis}.plan-info small{font-size:12px;color:var(--muted);font-weight:400}.plan-info small:before{content:"";display:inline-block;margin-right:5px;width:6px;height:6px;background:#a0a4ac;border-radius:50%}.plan-info small[data-status=dirty]:before{background:#c3933a}.plan-info small[data-status=error]:before{background:#c3564b}.chevron{width:16px;color:var(--muted)}.top-actions{position:absolute;top:44px;right:44px;display:flex;align-items:flex-end;flex-direction:column;gap:20px}.top-actions button{height:56px;border-radius:18px;padding:0 21px}.top-actions button[data-action=layers]{height:49px;min-width:146px}.print-scale{padding:9px 19px;border-radius:16px;font-variant-numeric:tabular-nums;color:#555a65;font-size:13px;margin-top:-4px}.zoom-capsule{position:absolute;left:54px;top:39%;width:56px;padding:8px 4px;border-radius:24px;display:flex;flex-direction:column;align-items:center;gap:3px}.zoom-capsule button{width:44px;height:45px}.zoom-capsule span{font-size:12px;height:34px;display:grid;place-items:center;font-variant-numeric:tabular-nums}.history-capsule{position:absolute;bottom:158px;left:50px;padding:3px 6px;border-radius:17px;display:flex;gap:2px}.history-capsule button{width:47px;height:45px}.history-capsule .icon{width:21px}.tool-capsule{position:absolute;bottom:55px;left:50%;transform:translateX(-50%);padding:12px 25px;display:flex;gap:10px;border-radius:26px;min-height:98px}.tool-capsule button{flex-direction:column;gap:10px;width:76px;padding:8px 6px;font-size:13px;color:#626773;border-radius:16px}.tool-capsule .icon{width:27px;height:27px;stroke-width:1.45;color:var(--ink)}.tool-capsule button.active{color:var(--blue);background:transparent}.tool-capsule button.active .icon{color:var(--blue)}.tool-capsule button:hover{background:rgba(100,110,130,.055)}.demo-label{position:absolute;left:54px;bottom:45px;color:var(--muted);font-size:12px;pointer-events:none}.scale-bar{position:absolute;bottom:65px;right:105px;text-align:center;font-size:12px;pointer-events:none}.scale-bar i{display:block;border-bottom:1px solid var(--ink);height:12px;position:relative}.scale-bar i:before,.scale-bar i:after{content:"";position:absolute;height:8px;width:1px;background:var(--ink);bottom:-4px}.scale-bar i:before{left:0}.scale-bar i:after{right:0}
.context-panel{position:absolute;width:258px;right:58px;top:30.5%;border-radius:21px;max-height:calc(100% - 350px);overflow:auto;scrollbar-width:thin;padding:17px 15px}.context-panel.wide{width:305px;right:42px;top:255px;max-height:calc(100% - 390px)}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:8px}.panel-title h1{font-size:15px;margin:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel-title button{padding:3px;color:var(--muted)}.panel-title .icon{width:17px;height:17px}.field{display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.36);border-radius:11px;padding:6px 7px;margin-bottom:5px;min-height:43px;font-size:12px}.field>span{flex:1}.field input,.field select,.field textarea{min-width:0;width:101px;border:1px solid rgba(45,50,65,.13);border-radius:8px;background:rgba(255,255,255,.48);box-shadow:0 1px 3px #25283204;padding:8px;text-align:right;font-variant-numeric:tabular-nums;font-size:12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 2px #346bfa14}.field input[type=number]{appearance:textfield;-moz-appearance:textfield}.field input::-webkit-inner-spin-button{appearance:none}.field select{padding:8px 4px;text-align:left}.field input[type=color]{height:33px;width:44px;padding:3px}.field.block{display:block}.field.block>span{display:block;margin:3px 0 9px}.field.block textarea,.field.block input{width:100%;text-align:left}.field textarea{resize:vertical;min-height:74px}.field input[type=checkbox]{width:16px;box-shadow:none;accent-color:var(--blue)}fieldset{margin:0;padding:0;border:0;min-width:0}fieldset:disabled{opacity:.5}.panel-actions{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.panel-actions button{flex:1;border:1px solid var(--line);background:#fff5;min-height:43px}.panel-actions button .icon{width:21px;height:21px}.icon-only span{display:none}button.primary{background:var(--blue);color:white;border:1px solid transparent}button.primary:hover{background:#285ade}.primary.full,.full{width:100%;margin-top:7px}button.danger{color:#b34c46}.subtle{color:var(--muted);font-size:12px;line-height:1.5;margin:8px 2px}.subtle strong{color:var(--ink);font-weight:500}details{margin-top:8px;border-top:1px solid var(--line);padding-top:7px}summary{cursor:pointer;font-size:12px;color:#636977;padding:2px 0 7px}h3{font-size:12px;font-weight:600;margin:18px 3px 7px;color:#686d79}.tool-hint{position:absolute;bottom:168px;left:50%;transform:translateX(-50%);font-size:12px;color:#777c87;max-width:65%;text-align:center;pointer-events:none}.tool-hint:empty{display:none}.notice{position:absolute;top:130px;left:46px;width:min(490px,calc(100% - 92px));padding:14px 17px;border-radius:17px;font-size:12px;line-height:1.5;border-color:#e5c6aa}.notice button{padding:8px;margin:8px 4px 0 0;background:#fff7}.toast{position:absolute;bottom:176px;left:50%;transform:translateX(-50%);border-radius:15px;padding:12px 18px;max-width:560px;font-size:13px;text-align:center;box-shadow:0 6px 20px #25283212;z-index:30}.context-panel ul{list-style:none;margin:0;padding:0}.layer-row{display:flex;align-items:center;gap:3px;min-height:44px;border-radius:10px;padding:3px;margin-bottom:3px}.layer-row.active{background:#e5ebff70}.layer-row .layer-name{flex:1;min-width:0;justify-content:flex-start;gap:8px;text-align:left;padding:8px 4px;font-size:12px}.layer-row .layer-name span{overflow:hidden;text-overflow:ellipsis}.layer-dot{width:7px;height:7px;border-radius:50%;flex:none}.layer-row button.icon-only{padding:7px}.layer-row .icon{width:17px;height:17px}.layer-row .area{font-size:10px;color:var(--muted);margin-left:2px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.catalog-item{min-width:0;white-space:normal;overflow-wrap:anywhere;flex-direction:column;border:1px solid var(--line);background:#fff4;font-size:11px;gap:8px;min-height:77px}.catalog-item svg.preview-object{width:65px;height:40px;overflow:visible}.catalog-item .icon{width:27px;height:27px}.panel-search,.material-search{width:100%;border:1px solid var(--line);border-radius:11px;background:#fff6;padding:10px 11px;outline:none;font-size:16px}.catalog-section{margin-top:8px}.catalog-section>summary{min-height:42px;display:flex;align-items:center;font-weight:600}.material-results{display:grid;gap:5px;max-height:min(52vh,430px);overflow:auto}.material-result{justify-content:flex-start;text-align:left;white-space:normal;margin-top:0;border:1px solid var(--line);background:#fff5}.material-result .icon{width:18px;height:18px}.plan-menu{position:absolute;left:46px;top:124px;width:300px;max-height:calc(100% - 270px);overflow:auto;border-radius:20px;padding:18px;z-index:5}.plan-menu h2{font-size:15px;margin:0 0 13px}.plan-menu>button{width:100%;justify-content:flex-start;font-size:13px;margin:2px 0}.plan-menu .icon{width:19px}.checkpoint{display:flex;gap:8px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:8px;margin-top:8px}.checkpoint strong{font-size:12px;display:block;font-weight:500}.checkpoint small{font-size:10px;color:var(--muted)}.checkpoint button{padding:7px}
dialog{color:var(--ink);border-radius:24px;padding:25px;border:1px solid white;max-height:90vh;max-width:calc(100vw - 35px);overflow:auto}dialog::backdrop{background:rgba(30,35,48,.2);backdrop-filter:blur(3px)}.small-dialog{width:410px;background:#f5f6f9ed}.small-dialog h2{font-size:20px;letter-spacing:-.35px;margin:0 0 15px}.small-dialog p{font-size:13px;line-height:1.6;color:#6c717c}.small-dialog .field input{width:185px}.small-dialog footer{display:flex;justify-content:flex-end;gap:7px;margin-top:21px}.small-dialog textarea{width:100%;height:180px;border:1px solid var(--line);border-radius:12px;background:#fff8;padding:12px;font-family:monospace;line-height:1.7}.object-editor{width:1000px;height:700px;background:#f3f4f7f2;padding:20px;display:flex;flex-direction:column}.editor-heading{display:flex;align-items:center;gap:15px;justify-content:space-between;margin-bottom:15px}.editor-heading h2{font-size:18px;margin:0}.editor-layout{display:grid;grid-template-columns:1fr 225px;gap:18px;flex:1;min-height:0}.editor-stage{border:1px solid var(--line);border-radius:16px;position:relative;overflow:hidden;background:#f0f1f4}.editor-stage svg{width:100%;height:100%;touch-action:none;outline:none}.editor-tools{display:flex;gap:3px;align-items:center;margin-bottom:10px}.editor-tools button{padding:8px}.editor-tools .icon{width:21px;height:21px}.editor-side{overflow:auto}.editor-footer{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:15px}.editor-footer .subtle{flex:1}.shape-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:5px 8px;border-radius:8px}.shape-row.active{background:var(--blue-soft)}.shape-row button{padding:5px 3px;font-size:12px}.editor-error{font-size:12px;color:#b34c46;margin:8px 0;min-height:16px}.empty-state{font-size:12px;color:var(--muted);padding:10px 0;line-height:1.5}
@media(max-width:1000px){.plan-capsule{top:22px;left:24px}.top-actions{top:24px;right:24px;gap:12px}.context-panel{right:24px;width:246px;top:260px;max-height:calc(100% - 405px)}.context-panel.wide{right:24px;top:245px;width:280px;max-height:calc(100% - 380px)}.zoom-capsule{left:24px}.history-capsule{left:24px;bottom:135px}.tool-capsule{bottom:28px;min-height:85px;padding:10px 16px;gap:5px}.tool-capsule button{width:66px}.demo-label{bottom:24px;left:24px}.scale-bar{right:35px;bottom:40px}.tool-hint{bottom:130px}.toast{bottom:136px}.plan-menu{left:24px;top:103px}}
@media(max-width:700px){.plan-capsule{top:16px;left:16px;min-width:212px;height:61px;padding:11px 14px;gap:12px}.wordmark{font-size:26px}.plan-divider{height:32px}.plan-info{min-width:80px;max-width:110px}.plan-info>span{font-size:12px}.plan-info small{font-size:10px}.top-actions{top:17px;right:16px;gap:10px}.top-actions button{height:44px;padding:10px}.top-actions button span{display:none}.top-actions button[data-action=layers]{min-width:0;height:44px}.print-scale{font-size:11px;padding:7px 9px}.zoom-capsule{left:15px;width:45px;border-radius:18px;top:36%;padding:4px 0}.zoom-capsule button{width:40px;height:37px}.zoom-capsule span{height:26px;font-size:10px}.history-capsule{left:16px;bottom:119px}.history-capsule button{width:37px;height:35px}.tool-capsule{bottom:25px;padding:9px 8px;gap:0;border-radius:21px;min-height:77px;max-width:calc(100% - 22px)}.tool-capsule button{width:55px;font-size:10px;gap:7px}.tool-capsule .icon{width:23px;height:23px}.demo-label{bottom:7px;left:16px;font-size:10px}.scale-bar{right:21px;bottom:124px;font-size:10px}.context-panel,.context-panel.wide{right:16px;top:185px;width:230px;max-height:calc(100% - 310px);padding:13px}.tool-hint{bottom:163px;max-width:70%;font-size:10px}.toast{bottom:170px;max-width:85%;width:max-content}.notice{left:16px;top:91px;width:calc(100% - 85px)}.plan-menu{left:16px;top:86px;width:280px}.editor-layout{grid-template-columns:1fr;grid-template-rows:minmax(210px,1fr) 200px;gap:10px}.editor-side{display:block}.editor-side>div{min-width:0}.object-editor{height:90vh;padding:15px}.editor-heading h2{font-size:15px}.editor-tools{flex-wrap:wrap}.editor-footer .subtle{display:none}.editor-footer{margin-top:8px;flex-wrap:wrap}.editor-footer>button:first-of-type{flex-basis:100%;font-size:12px;padding:6px}.small-dialog .field input{width:150px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.editable-title{font:inherit;font-size:15px;font-weight:600;letter-spacing:-.2px;color:var(--ink);background:transparent;border:1px solid transparent;border-radius:7px;padding:3px;min-width:0;width:100%;outline:none}.editable-title:hover:not(:disabled){border-color:#c8cdd6}.editable-title:focus{border-color:var(--blue);background:#ffffff70}.editable-title:disabled{opacity:.75}.draft-library{display:flex;align-items:center;gap:8px;font-size:12px;margin:14px 0}.draft-library input{accent-color:var(--blue)}
.floor-options,.profile-options{display:grid;gap:4px}.floor-options button,.profile-options button{justify-content:flex-start;font-size:13px;margin:0}.floor-options button[aria-pressed=true],.profile-options button[aria-pressed=true]{background:#346bfa12;color:#285ade}.plan-menu h3{overflow-wrap:anywhere}.workspace-identity{font-size:11px;line-height:1.45;color:var(--muted);margin:-5px 0 9px}.workspace-switch{width:100%;justify-content:flex-start;font-size:12px;margin-top:3px}.workspace-version{display:flex;gap:8px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:8px;margin-top:8px}.workspace-version strong,.workspace-version small{display:block}.workspace-version strong{font-size:11px;font-weight:500}.workspace-version small{font-size:9px;color:var(--muted);line-height:1.4}.workspace-version button{padding:7px}.profile-separator{color:var(--muted)}

#scene [data-type=wall]{pointer-events:visiblePainted}.object-id{display:grid;grid-template-columns:auto minmax(0,1fr) 28px;align-items:center;gap:5px;margin:0 0 12px;color:var(--muted);font-size:10px}.object-id input{width:100%;min-width:0;border:0;background:transparent;font:11px ui-monospace,monospace;color:var(--ink);padding:6px 2px;user-select:text}.object-id button{padding:4px}.object-id .icon{width:17px;height:17px}

.context-panel.compact-properties{top:auto;bottom:170px;right:max(24px,env(safe-area-inset-right,0px));width:min(330px,calc(100% - 32px));padding:0;border-radius:16px;max-height:min(55dvh,calc(100dvh - 230px));overscroll-behavior:contain;z-index:7}
.selection-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:6px 7px 6px 14px}.selection-identity{display:grid!important;min-width:0;gap:2px}.selection-identity strong,.selection-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-identity strong{font-size:13px;font-weight:600}.selection-identity small{font:10px ui-monospace,monospace;color:var(--muted)}.selection-actions{display:flex}.selection-summary button{width:40px;height:40px;padding:9px}.selection-summary .icon{width:19px;height:19px}#properties-content{padding:2px 13px 13px;border-top:1px solid var(--line)}

/* A selected object stays a small disclosure above the tools on phones, including Home Screen apps. */
@media(max-width:700px), (pointer:coarse) and (max-width:1000px) and (max-height:500px){
  .tool-capsule{bottom:calc(25px + env(safe-area-inset-bottom,0px))}
  .context-panel.compact-properties{top:auto;bottom:calc(112px + env(safe-area-inset-bottom,0px));left:max(16px,env(safe-area-inset-left,0px));right:max(16px,env(safe-area-inset-right,0px));width:auto;padding:0;border-radius:16px;max-height:min(50dvh,calc(100dvh - 210px - env(safe-area-inset-bottom,0px)));overscroll-behavior:contain;z-index:4}
  .properties-toggle{display:flex;width:100%;min-height:44px;padding:10px 13px;gap:12px;text-align:left;justify-content:space-between;position:sticky;top:0;background:var(--paper);z-index:1;border-radius:14px;font-size:13px}
  .properties-toggle>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .properties-toggle .icon{width:18px;height:18px}
  #properties-content{padding:10px 13px 13px}
.color-preset-section{margin:10px 0 5px}.color-preset-label{margin:0 2px 6px;color:var(--muted);font-size:11px}.color-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.color-preset{min-width:0;justify-content:flex-start;gap:7px;padding:7px 8px;border:1px solid var(--line);background:#fff5;font-size:11px;line-height:1.2;text-align:left}.color-preset>span:last-child{overflow:hidden;text-overflow:ellipsis}.color-preset-swatch{width:19px;height:19px;border-radius:50%;flex:none;background:var(--preset-color);border:1px solid #20232a26;box-shadow:inset 0 0 0 1px #fff5}.color-preset.active{border-color:var(--blue);background:#e8edff99;box-shadow:0 0 0 2px #346bfa14}.color-preset:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
  #properties-content input,#properties-content select,#properties-content textarea{font-size:16px}
  .has-compact-properties .history-capsule{bottom:calc(168px + env(safe-area-inset-bottom,0px))}
  .has-compact-properties .scale-bar{bottom:calc(172px + env(safe-area-inset-bottom,0px))}
  .has-compact-properties .tool-hint{display:none}
}
@media(pointer:coarse) and (orientation:landscape) and (max-width:1000px) and (max-height:500px){
  .plan-capsule{top:12px;left:12px;height:44px;min-width:190px;padding:7px 12px;gap:10px;border-radius:15px}
  .wordmark{font-size:24px}.plan-divider{height:28px}.plan-info>span{font-size:11px}.plan-info small{font-size:9px}
  .top-actions{top:12px;right:12px;flex-direction:row;gap:8px}
  .top-actions button,.top-actions button[data-action=layers]{height:40px;min-width:40px;padding:9px}
  .top-actions button span,.print-scale,.tool-hint{display:none}
  .zoom-capsule{left:12px;top:76px;width:40px;padding:3px 0;border-radius:15px}
  .zoom-capsule button{width:36px;height:33px}.zoom-capsule span{height:23px;font-size:10px}
  .tool-capsule{bottom:12px;padding:5px 8px;gap:2px;min-height:48px;border-radius:16px}
  .tool-capsule button{width:42px;height:36px;padding:6px}.tool-capsule button span{display:none}.tool-capsule .icon{width:22px;height:22px}
  .history-capsule,.has-compact-properties .history-capsule{left:12px;bottom:12px;padding:3px;border-radius:14px}
  .history-capsule button{width:34px;height:34px}
  .scale-bar,.has-compact-properties .scale-bar{right:16px;bottom:20px;font-size:10px}
  .context-panel.compact-properties{left:auto;right:12px;top:68px;bottom:auto;transform:none;width:min(220px,30vw);max-height:calc(100dvh - 142px)}
  .context-panel,.context-panel.wide{right:12px;top:68px;max-height:calc(100dvh - 142px)}
  .plan-menu{top:64px;left:12px;max-height:calc(100dvh - 138px)}
}


.properties-toggle{-webkit-tap-highlight-color:transparent}.properties-toggle[aria-expanded=false] .icon{transform:rotate(180deg)}

.top-export{display:flex;gap:10px}@media(max-height:500px) and (orientation:landscape){.top-export{gap:8px}}

/* Object drawing is a contextual companion to the main tool capsule. */
:root{--drawing-tools-bottom:55px;--drawing-tools-height:98px}
#canvas[data-tool=object],#canvas[data-tool=projection]{cursor:crosshair}
.object-tools{position:absolute;left:50%;bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 12px);transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px;border-radius:20px;z-index:5;max-width:calc(100% - 24px)}
.object-tools button{min-height:48px;flex:none}
.object-tools .shape-tool{width:60px;flex-direction:column;gap:4px;padding:6px 3px;font-size:11px}
.object-tools .icon{width:21px;height:21px}
.object-tools .icon-only{width:44px;padding:8px}
.object-tools .draft-done{color:var(--blue);padding:8px 12px;gap:6px}
.tool-separator{height:30px;width:1px;background:var(--line);margin:0 3px}
.drawing-object .tool-hint{bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 88px)}
.context-panel.draft-options{z-index:6}
@media(max-width:1000px){:root{--drawing-tools-bottom:28px;--drawing-tools-height:85px}}
@media(max-width:700px){
 :root{--drawing-tools-bottom:calc(25px + env(safe-area-inset-bottom,0px));--drawing-tools-height:77px}
 .tool-capsule{width:calc(100% - 22px);max-width:410px}.tool-capsule button{width:auto;min-width:0;flex:1;padding:8px 2px}
 .object-tools{gap:2px;padding:5px;border-radius:17px}.object-tools .shape-tool{width:44px;font-size:10px}.object-tools .draft-done{padding:8px 6px;font-size:12px}.object-tools .icon-only{width:40px}
 .drawing-object .tool-hint{display:none}
 .context-panel.draft-options{top:auto;bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 82px);max-height:calc(100dvh - 310px);width:230px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-width:1000px) and (max-height:500px){
 :root{--drawing-tools-bottom:12px;--drawing-tools-height:48px}
 .tool-capsule{width:auto;max-width:none}.tool-capsule button{width:42px;flex:none}
 .object-tools{bottom:72px}.object-tools button{min-height:40px}.object-tools .shape-tool{width:44px}.object-tools .shape-tool span{display:none}
 .context-panel.draft-options{top:68px;bottom:auto;max-height:calc(100dvh - 142px)}
}

@media(max-width:700px) and (orientation:portrait){.drawing-object .history-capsule{bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 84px)}.drawing-object .scale-bar{bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 90px)}}

/* Focused object canvas, using the plan's floating glass tools. */
.canvas-editor{position:fixed;inset:12px;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;background:#f1f2f4;border-radius:25px;display:block}
.canvas-editor .editor-stage{position:absolute;inset:0;border:0;border-radius:0;background:#f1f2f4}
.canvas-editor .editor-heading{position:absolute;z-index:2;top:22px;left:24px;right:24px;margin:0;pointer-events:none;align-items:flex-start}
.canvas-editor .editor-heading>div{pointer-events:auto}
.canvas-editor .editor-heading h2{font-size:13px;font-weight:500;color:var(--muted);margin:0 0 6px}
.canvas-editor .editor-heading .field{margin:0;display:block}
.canvas-editor .editor-heading .field>span{display:none}
.canvas-editor .editor-heading input{font-size:20px;font-weight:600;letter-spacing:-.5px;border:0;background:transparent;padding:0;width:240px;box-shadow:none}
.canvas-editor .editor-done{display:flex;gap:8px;align-items:center}
.canvas-editor nav{position:absolute;z-index:2;display:flex;align-items:center;padding:6px;border-radius:19px;gap:2px;margin:0}
.canvas-editor nav button{width:42px;height:42px;padding:10px;display:grid;place-items:center;border-radius:13px}
.canvas-editor nav .icon{width:21px;height:21px}
.canvas-editor .editor-tools{bottom:30px;left:50%;transform:translateX(-50%);flex-wrap:nowrap}
.canvas-editor .editor-history{bottom:30px;left:24px}
.canvas-editor .editor-view{top:50%;left:24px;flex-direction:column;transform:translateY(-50%)}
.canvas-editor .editor-selection{bottom:30px;right:24px}
.canvas-editor [hidden]{display:none!important}
.canvas-editor .editor-hint{position:absolute;bottom:98px;left:50%;transform:translateX(-50%);font-size:11px;color:#777b84;white-space:nowrap;pointer-events:none}
.canvas-editor .editor-error{position:absolute;bottom:120px;left:50%;transform:translateX(-50%);margin:0;background:#f1f2f4ed;border-radius:10px;max-width:80%;padding:6px 10px;pointer-events:none}
.canvas-editor .editor-error:empty{display:none}
.canvas-editor .editor-popover{position:absolute;z-index:3;right:24px;top:92px;padding:16px;border-radius:18px;max-width:calc(100% - 48px)}
.canvas-editor .editor-popover form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.canvas-editor .editor-popover .field{margin:0}
.canvas-editor .editor-popover input{width:100px}
.canvas-editor .editor-metric{position:absolute;z-index:4;left:50%;top:92px;transform:translateX(-50%);display:flex;align-items:end;gap:4px;padding:6px;border-radius:15px}.canvas-editor .editor-metric[hidden]{display:none}.canvas-editor .editor-metric label{display:grid;gap:2px;font-size:9px;color:var(--muted)}.canvas-editor .editor-metric input,.canvas-editor .editor-metric select{height:34px;border:1px solid var(--line);border-radius:9px;background:#fff9;padding:5px 7px;font-size:16px;color:var(--ink)}.canvas-editor .editor-metric input{width:84px}.canvas-editor .editor-metric input[name=angle]{width:58px}.canvas-editor .editor-metric select{width:54px}.canvas-editor .editor-metric button{height:34px;padding:6px 9px;border-radius:9px;font-size:11px}
.canvas-editor .editor-overlays{pointer-events:none}
.canvas-editor .editor-dimension{pointer-events:all;cursor:pointer}
.canvas-editor .editor-anchor{pointer-events:all;cursor:grab}
@media(max-width:700px){.canvas-editor{inset:0;border-radius:0;height:auto;padding:0}.canvas-editor .editor-heading{top:max(18px,env(safe-area-inset-top));left:18px;right:18px;gap:10px}.canvas-editor .editor-heading input{width:155px;font-size:17px}.canvas-editor .editor-heading h2{font-size:11px}.canvas-editor .editor-done{gap:2px}.canvas-editor .editor-done button{padding:9px 10px}.canvas-editor .editor-tools{bottom:calc(20px + env(safe-area-inset-bottom))}.canvas-editor nav button{width:40px;height:40px}.canvas-editor .editor-history{left:16px;bottom:calc(86px + env(safe-area-inset-bottom))}.canvas-editor .editor-selection{right:16px;bottom:calc(86px + env(safe-area-inset-bottom))}.canvas-editor .editor-view{left:16px}.canvas-editor .editor-hint{bottom:calc(152px + env(safe-area-inset-bottom));font-size:10px}.canvas-editor .editor-error{bottom:175px}.canvas-editor .editor-popover{right:16px;top:85px}.canvas-editor .editor-metric{top:82px;max-width:calc(100vw - 24px)}.canvas-editor .editor-metric input{width:72px}.canvas-editor .editor-metric input[name=angle]{width:52px}.canvas-editor .editor-metric select{width:48px}.canvas-editor .editor-metric button{font-size:0;width:34px}.canvas-editor .editor-metric button::after{content:'✓';font-size:15px}}
@media(max-height:500px){.canvas-editor .editor-heading{top:12px}.canvas-editor .editor-tools,.canvas-editor .editor-history,.canvas-editor .editor-selection{bottom:12px}.canvas-editor .editor-hint{bottom:74px}.canvas-editor .editor-view{left:12px}.canvas-editor .editor-error{bottom:90px}}

.canvas-editor .editor-heading .field{background:transparent;padding:0;border:0}.canvas-editor .editor-heading input{text-align:left}
.canvas-editor button{touch-action:manipulation}
.canvas-editor button .icon{pointer-events:none}

.selection-tools{position:absolute;left:50%;bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 12px);transform:translateX(-50%);display:flex;gap:3px;padding:6px;border-radius:19px;z-index:6;max-width:calc(100% - 24px)}
.selection-tools[hidden]{display:none}.selection-tools button{min-height:42px;padding:9px;font-size:12px;gap:6px;touch-action:manipulation}.selection-tools .icon{width:19px;height:19px;pointer-events:none}
#tools [data-action="tool:select"]{position:relative}#tools [data-action="tool:select"][data-multiple=true]{box-shadow:inset 0 0 0 1px var(--blue)}
@media(max-width:700px){.selection-tools{gap:0;padding:5px}.selection-tools button{padding:8px 7px;font-size:11px}.selection-tools button .icon{width:17px;height:17px}.multi-select .tool-hint{display:none}}
.selection-options .tool-hint{display:none}
@media(max-width:700px) and (orientation:portrait){.selection-options .history-capsule{bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 80px)}.selection-options .scale-bar{bottom:calc(var(--drawing-tools-bottom) + var(--drawing-tools-height) + 86px)}}


/* Adaptive workspace layout · 2026-09-13 */
:root{--ui-edge:24px;--ui-header:102px;--ui-dock:78px;--ui-sheet:0px;--ui-panel-width:310px;--ui-panel-max:560px}
.more-button{min-width:112px}.more-menu{position:absolute;top:calc(100% + 8px);right:0;width:210px;padding:7px;border-radius:18px;display:grid;z-index:40}.more-menu button{width:100%;min-height:44px;height:auto!important;justify-content:flex-start;padding:10px 12px}.more-menu .icon{width:20px;height:20px}.top-actions .more-menu button span{display:inline!important}.more-menu .print-scale{margin:4px 7px 2px;padding:8px 5px 2px;border-radius:0;border-top:1px solid var(--line);font-size:11px;background:none;box-shadow:none;backdrop-filter:none}
.sheet-tabs{display:none;position:absolute;z-index:22;left:50%;transform:translateX(-50%);bottom:calc(var(--ui-dock) + var(--ui-edge) + env(safe-area-inset-bottom,0px));height:48px;padding:4px;border-radius:17px}.sheet-tabs button{min-width:96px;min-height:40px;padding:6px 10px;font-size:11px;gap:6px}.sheet-tabs .icon{width:18px;height:18px}.sheet-tabs button[aria-pressed=true]{background:var(--blue-soft);color:var(--blue)}
.sheet-grip{display:none;width:100%;height:28px;min-height:28px;padding:5px;position:sticky;top:0;z-index:3;background:linear-gradient(var(--paper) 65%,transparent);border-radius:18px}.sheet-grip span{display:block;width:42px;height:4px;border-radius:9px;background:#a9afbb}
body[data-layout=side] .plan-capsule{top:var(--ui-edge);left:var(--ui-edge)}body[data-layout=side] .top-actions{top:var(--ui-edge);right:var(--ui-edge)}body[data-layout=side] .zoom-capsule{left:var(--ui-edge)}body[data-layout=side] .history-capsule{left:var(--ui-edge);bottom:calc(var(--ui-edge) + env(safe-area-inset-bottom,0px))}body[data-layout=side] .tool-capsule{bottom:calc(var(--ui-edge) + env(safe-area-inset-bottom,0px));min-height:var(--ui-dock)}body[data-layout=side] .context-panel{top:calc(var(--ui-header) + var(--ui-edge));right:var(--ui-edge);width:var(--ui-panel-width);max-height:var(--ui-panel-max)}
body[data-layout=phone] .sheet-tabs,body[data-layout=bottom]:not([data-low-height=true]) .sheet-tabs{display:flex}
body[data-layout=phone] .plan-capsule,body[data-layout=bottom] .plan-capsule{top:max(var(--ui-edge),env(safe-area-inset-top,0px));left:max(var(--ui-edge),env(safe-area-inset-left,0px))}
body[data-layout=phone] .top-actions,body[data-layout=bottom] .top-actions{top:max(var(--ui-edge),env(safe-area-inset-top,0px));right:max(var(--ui-edge),env(safe-area-inset-right,0px));gap:0}
body[data-layout=phone] .top-actions .more-button,body[data-layout=bottom] .top-actions .more-button{width:48px;min-width:48px;height:48px;padding:11px;border-radius:17px}body[data-layout=phone] .more-button span,body[data-layout=bottom] .more-button span{display:none}
body[data-layout=phone] .plan-capsule{height:54px;min-width:210px;max-width:calc(100vw - 84px);padding:8px 12px;gap:10px;border-radius:18px}body[data-layout=phone] .wordmark{font-size:24px}body[data-layout=phone] .plan-divider{height:30px}body[data-layout=phone] .plan-info{gap:3px;max-width:118px}body[data-layout=phone] .plan-info>span{font-size:11px}body[data-layout=phone] .plan-info small{font-size:9px}
body[data-layout=phone] .zoom-capsule,body[data-layout=bottom] .zoom-capsule{left:max(var(--ui-edge),env(safe-area-inset-left,0px));width:48px;border-radius:18px;padding:3px;top:calc(var(--ui-header) + var(--ui-edge))}body[data-layout=phone] .zoom-capsule button,body[data-layout=bottom] .zoom-capsule button{width:42px;height:42px}body[data-layout=phone] .zoom-capsule span,body[data-layout=bottom] .zoom-capsule span{height:26px;font-size:10px}
body[data-layout=phone] .tool-capsule,body[data-layout=bottom] .tool-capsule{bottom:max(var(--ui-edge),env(safe-area-inset-bottom,0px));min-height:var(--ui-dock);padding:6px 8px;gap:2px;border-radius:20px;max-width:calc(100% - var(--ui-edge)*2)}body[data-layout=phone] .tool-capsule button,body[data-layout=bottom] .tool-capsule button{min-width:48px;width:auto;height:48px;padding:5px 8px;font-size:10px;gap:4px}body[data-layout=phone] .tool-capsule .icon,body[data-layout=bottom] .tool-capsule .icon{width:22px;height:22px}
body[data-layout=phone] .history-capsule,body[data-layout=bottom] .history-capsule{left:max(var(--ui-edge),env(safe-area-inset-left,0px));bottom:calc(var(--ui-dock) + var(--ui-edge) + 58px + env(safe-area-inset-bottom,0px));padding:3px}body[data-layout=phone] .history-capsule button,body[data-layout=bottom] .history-capsule button{width:44px;height:44px}
body[data-layout=phone] .context-panel,body[data-layout=phone] .context-panel.wide,body[data-layout=phone] .context-panel.compact-properties,body[data-layout=bottom]:not([data-low-height=true]) .context-panel,body[data-layout=bottom]:not([data-low-height=true]) .context-panel.wide,body[data-layout=bottom]:not([data-low-height=true]) .context-panel.compact-properties{top:auto;left:50%;right:auto;bottom:calc(var(--ui-dock) + var(--ui-edge) + 58px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:var(--ui-panel-width);height:var(--ui-sheet);max-height:var(--ui-panel-max);padding:0 15px 15px;border-radius:22px;overscroll-behavior:contain;z-index:20}body[data-layout=phone] .context-panel>.sheet-grip,body[data-layout=bottom] .context-panel>.sheet-grip{display:flex}
body[data-layout=phone] .selection-summary,body[data-layout=bottom] .selection-summary{position:sticky;top:28px;background:var(--paper);z-index:2;border-radius:14px}
body[data-layout=phone] .plan-menu,body[data-layout=bottom] .plan-menu{left:max(var(--ui-edge),env(safe-area-inset-left,0px));top:calc(var(--ui-header) + var(--ui-edge));max-height:calc(100dvh - var(--ui-header) - var(--ui-dock) - var(--ui-edge)*3)}
body[data-layout=bottom][data-low-height=true] .sheet-tabs{display:none}body[data-layout=bottom][data-low-height=true] .context-panel,body[data-layout=bottom][data-low-height=true] .context-panel.wide,body[data-layout=bottom][data-low-height=true] .context-panel.compact-properties{left:auto;right:max(var(--ui-edge),env(safe-area-inset-right,0px));top:calc(var(--ui-header) + var(--ui-edge));bottom:calc(var(--ui-dock) + var(--ui-edge));transform:none;width:min(270px,36vw);height:auto;max-height:calc(100dvh - var(--ui-header) - var(--ui-dock) - var(--ui-edge)*3)}body[data-layout=bottom][data-low-height=true] .sheet-grip{display:none}
body[data-low-height=true] .tool-capsule button span{display:none}body[data-low-height=true] .tool-capsule{width:auto}body[data-low-height=true] .plan-info .profile-separator,body[data-low-height=true] #profile-name{display:none}
@media(pointer:coarse){button:not(.sheet-grip),summary,.layer-row{min-height:44px}.selection-summary button{width:44px;height:44px}}
@media(max-width:430px){.sheet-tabs{width:calc(100% - 24px)}.sheet-tabs button{flex:1;min-width:0;padding:5px}.sheet-tabs button span{font-size:9px}.more-menu{width:200px}.plan-menu{width:calc(100vw - 24px)}}
@media(max-width:430px){body[data-layout=phone] .tool-capsule button{min-width:0;padding:5px 3px}body[data-layout=phone] .tool-capsule button span{display:none}}
.library-browser>h3{margin-top:10px}.library-category-list{display:grid;gap:7px}.library-category,.library-type{margin:0;padding:0;border:0}.library-category>summary,.library-type>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;border:1px solid var(--line);background:#fff5;border-radius:12px;padding:10px 11px;color:var(--ink);font-weight:600}.library-category>summary::-webkit-details-marker,.library-type>summary::-webkit-details-marker{display:none}.library-category>summary small,.library-type>summary small{color:var(--muted);font-size:10px;font-weight:500}.library-category[open]>summary{border-color:#346bfa55;background:#e8edff70}.library-type-list{display:grid;gap:6px;padding:7px 0 3px 9px}.library-type>summary{min-height:40px;border-radius:10px;padding:8px 10px;font-size:11px}.library-type>.catalog-grid{padding:7px 0 3px}
.design-swatches{display:flex;align-items:center;flex:none}.design-swatches .color-preset-swatch+span{margin-left:-6px}.surface-section{margin:12px 0 6px}.surface-list{display:grid;gap:5px}.surface-choice{width:100%;min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:9px;padding:7px 8px;text-align:left;border:1px solid var(--line);background:#fff5}.surface-choice:hover{background:#fff9}.surface-choice .icon{width:17px;height:17px;color:var(--muted)}.material-swatch{width:32px;height:32px;border-radius:10px;background-color:var(--material-color);background-image:var(--material-image,none);background-size:cover;background-position:center;border:1px solid #20232a26;box-shadow:inset 0 0 0 1px #fff5}.surface-copy{display:grid;gap:2px;min-width:0}.surface-copy strong,.surface-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.surface-copy strong{font-size:11px;font-weight:600;color:var(--ink)}.surface-copy small{font-size:9px;color:var(--muted)}.material-result{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px}.material-result .material-swatch{width:28px;height:28px;border-radius:9px}

/* The active planning layer is always visible; the library keeps secondary actions outside its scroll area. */
.active-layer{position:absolute;top:122px;left:46px;min-height:32px;max-width:230px;padding:6px 10px;border-radius:12px;gap:7px;color:var(--muted);font-size:11px}.active-layer i{width:7px;height:7px;border-radius:50%;flex:none}.active-layer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.active-layer .icon{width:13px;height:13px;flex:none}
.context-panel.library-panel{overflow:hidden;display:flex;flex-direction:column}.library-scroll{min-height:0;overflow:auto;scrollbar-width:thin;padding:2px 2px 8px}.library-utilities{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:9px -2px -2px;padding:9px 2px 2px;border-top:1px solid var(--line);background:linear-gradient(180deg,transparent,#f4f5f8 28%)}.library-utilities button{min-width:0;min-height:39px;padding:7px;font-size:11px;border:1px solid var(--line);background:#fff5}.library-utilities .icon{width:17px;height:17px}
.library-category-list{margin-top:8px}.library-browser>h3{display:none}
@media(max-width:1000px) and (min-width:701px){.active-layer{top:102px;left:24px}}
@media(max-width:700px){.active-layer{top:84px;left:auto;right:16px;min-width:34px;width:34px;height:34px;padding:0;justify-content:center;border-radius:12px}.active-layer span,.active-layer .icon{display:none}.active-layer i{width:9px;height:9px}.context-panel.library-panel{padding-bottom:10px}}
@media(pointer:coarse) and (orientation:landscape) and (max-width:1000px) and (max-height:500px){.active-layer{top:62px;left:12px}}
