.editor.editor{height:100dvh;min-height:640px}@media (min-width:1151px) and (pointer:fine){.editor{--editor-control-height:2rem;--editor-button-padding:0.625rem;--editor-small-button-padding:0.5rem;--editor-button-padding-y:0.25rem;--editor-button-gap:0.375rem;--editor-field-padding:0.5rem;--editor-field-padding-y:0.25rem;--editor-field-gap:0.375rem;--editor-layer-action-size:1.75rem}}.editor.editor-play{min-height:0;overflow:hidden}.editor-status,.editor-toolbar{flex-shrink:0}.editor-map-drawer{position:fixed;inset:0 auto 0 0;width:min(320px,100%);max-width:100%;height:calc(100dvh / var(--editor-ui-scale, 1));max-height:calc(100dvh / var(--editor-ui-scale, 1));margin:0;overflow-y:auto;overscroll-behavior:contain;border-right:1px solid rgb(var(--border));padding:max(1rem,env(safe-area-inset-top)) 1rem max(1rem,env(safe-area-inset-bottom));background:rgb(var(--card));color:rgb(var(--foreground))}.editor-map-drawer::backdrop{background:rgb(0 0 0/.65)}.editor-workspace{display:grid;grid-template-columns:var(--structure-width) var(--structure-handle) minmax(0,1fr) var(--selection-handle) var(--selection-width);flex:1;min-height:0}.editor-pane{min-width:0;min-height:0;overflow:hidden}.editor [hidden],.editor-pane[hidden]{display:none!important}.editor-pane-structure{grid-column:1;grid-row:1}.editor-handle-structure{grid-column:2;grid-row:1}.editor-map-area{grid-column:3;grid-row:1;position:relative;display:flex;min-width:0;min-height:0;flex-direction:column}.editor-map-area>.editor-stage{flex:1}.editor-handle-selection{grid-column:4;grid-row:1}.editor-pane-selection{grid-column:5;grid-row:1}.editor-properties,.editor-structure{height:100%;min-height:0;overflow:auto;overflow-wrap:anywhere}.editor-stage{display:grid;grid-template-rows:minmax(0,1fr);min-width:0;min-height:0;overflow:hidden}.editor-stage>[data-testid=canvas-surface]{grid-row:1}.canvas-selection-anchor{position:absolute;z-index:11;bottom:14px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px)}.canvas-selection-toolbar{display:flex;align-items:center;width:-moz-max-content;width:max-content;max-width:100%;overflow-x:auto;padding:3px;border:1px solid rgb(var(--border));border-radius:9px;background:rgb(var(--card)/.97);color:rgb(var(--foreground));box-shadow:0 3px 12px rgb(0 0 0/.3);zoom:var(--editor-ui-scale,1)}.canvas-selection-toolbar>*{flex-shrink:0}.canvas-context-dismiss{position:fixed;inset:0;z-index:60}.canvas-context-menu{position:fixed;z-index:61;width:min(calc(290px * var(--context-scale, 1)),calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow-y:auto;padding:calc(5px * var(--context-scale, 1));border:1px solid rgb(var(--border));border-radius:8px;color:rgb(var(--foreground));background:rgb(var(--card));font-size:calc(.875rem * var(--context-scale, 1));box-shadow:0 6px 24px rgb(0 0 0/.45)}.canvas-context-heading{padding:5px 9px;color:rgb(var(--muted-foreground));font-size:.85em}.canvas-context-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:calc(40px * var(--context-scale, 1));padding:6px 9px;text-align:left;border-radius:4px}.canvas-context-menu button:focus-visible,.canvas-context-menu button:hover:not(:disabled){outline:none;background:rgb(var(--accent));box-shadow:inset 0 0 0 1px rgb(var(--ring))}.canvas-context-menu button:disabled{opacity:.45;cursor:default}.canvas-context-menu small{display:block;font-size:.8em;color:rgb(var(--muted-foreground))}.canvas-context-menu kbd{flex-shrink:0;font-family:inherit;font-size:.8em;color:rgb(var(--muted-foreground))}.editor-pane-assets{height:var(--assets-height);flex-shrink:0}.editor-handle-assets{flex:0 0 8px}.editor-resize-handle{display:flex;align-items:center;justify-content:center;height:100%;background:rgb(var(--background));touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.editor-resize-handle[data-axis=x]{width:8px;cursor:col-resize}.editor-resize-handle[data-axis=y]{height:8px;cursor:row-resize}.editor-resize-handle span{border-radius:2px;background:rgb(var(--muted-foreground)/.55)}.editor-resize-handle[data-axis=x] span{width:2px;height:32px}.editor-resize-handle[data-axis=y] span{height:2px;width:32px}.editor-resize-handle:focus-visible,.editor-resize-handle:hover{background:rgb(var(--primary)/.25);outline:2px solid rgb(var(--ring));outline-offset:-2px}.editor-asset-grid{display:grid;grid-template-columns:repeat(auto-fill,128px);grid-auto-rows:max-content;gap:8px;align-content:start}.editor-asset-filter-popover{--asset-filter-width:min(15rem,calc(100vw - 1rem));width:var(--asset-filter-width)}@supports (left:anchor(left)){.editor-asset-filter-popover{inset:auto;left:clamp(.5rem,anchor(left),calc(100% - var(--asset-filter-width) - .5rem));bottom:anchor(top);margin:.25rem 0;position-try-fallbacks:flip-block}}.editor.editor-focus{height:100dvh;min-height:0;overflow:hidden}.editor-focus .editor-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.editor-section-title{font-size:.75rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:rgb(var(--muted-foreground));overflow-wrap:anywhere}.editor-field{display:grid;min-width:0;gap:var(--editor-field-gap,.5rem);font-size:.875rem;color:rgb(var(--muted-foreground))}.editor-field input,.editor-field select{width:100%;min-width:0;min-height:var(--editor-control-height,2.75rem);border:1px solid rgb(var(--input));border-radius:.375rem;padding:var(--editor-field-padding-y,.625rem) var(--editor-field-padding,.75rem);background:rgb(var(--background));color:rgb(var(--foreground))}.editor-field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:2rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23b8ab93' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center}.editor-field input:focus-visible,.editor-field select:focus-visible{outline:2px solid rgb(var(--ring));outline-offset:2px}.editor-dialog{overflow-y:auto;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;border:1px solid rgb(var(--border));border-radius:.75rem;padding:1.5rem;background:rgb(var(--card));color:rgb(var(--foreground))}.editor-dialog::backdrop{background:rgb(0 0 0/.65)}.editor-dialog-columns{display:grid;gap:1.25rem;align-items:start}.editor-dialog-columns>*{min-width:0}.editor-settings-pairs{display:grid;gap:.75rem;align-items:start}.editor-dialog-section{min-width:0;padding:.875rem;border:1px solid rgb(var(--border));border-radius:.5rem}.editor-control-row{min-height:var(--editor-control-height,2.75rem)}.editor .editor-layer-action{width:var(--editor-layer-action-size,2.75rem);height:var(--editor-layer-action-size,2.75rem);min-height:var(--editor-layer-action-size,2.75rem)}.editor-brand{width:var(--editor-control-height,2.75rem);height:var(--editor-control-height,2.75rem)}@media (min-width:1151px) and (pointer:fine){.editor-dialog-wide{width:min(860px,calc(100% - 32px))}.editor-lighting-dialog{width:min(1080px,calc(100% - 32px))}.editor-dialog-columns,.editor-dialog-wide .editor-settings-pairs{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-lighting-dialog .editor-dialog-columns{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.editor-lighting-dialog .lighting-ambient-fields{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 3.75rem auto}.editor-lighting-dialog .lighting-three-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-lighting-dialog .lighting-position-fields{grid-template-columns:minmax(0,1.7fr) repeat(2,minmax(0,1fr))}.editor-lighting-dialog .lighting-position-fields>:first-child{grid-column:auto}}.editor-template-dialog{width:min(680px,calc(100% - 32px));overflow-y:auto}.editor canvas:focus-visible{outline:2px solid rgb(var(--ring));outline-offset:-3px}@media (max-width:1150px){.editor.editor{height:auto;min-height:100dvh}.editor-workspace{display:flex;flex-direction:column;flex:none}.editor-pane-structure{height:var(--structure-height);flex-shrink:0}.editor-pane-selection{height:var(--selection-height);flex-shrink:0}.editor-handle-selection,.editor-handle-structure{flex:0 0 8px}.editor-map-area{height:65dvh;min-height:400px;flex-shrink:0}.editor-properties,.editor-structure{border:0}.editor.editor-focus{height:100dvh;min-height:0}.editor-focus .editor-workspace{flex:1;min-height:0}.editor-focus .editor-map-area{height:auto;min-height:0;flex:1}.editor-play .editor-workspace{flex:1;min-height:0}.editor-play .editor-map-area{height:auto;min-height:0;flex:1}}.editor-pane>aside,.editor-pane>section,.editor-status,.editor-toolbar,.editor>.editor-dialog{zoom:var(--editor-ui-scale,1)}.editor-panel-restore{position:absolute;z-index:10;box-shadow:0 1px 6px rgb(0 0 0/.25)}.editor-restore-structure{left:0;top:50%;transform:translateY(-50%);border-left:0;border-radius:0 .375rem .375rem 0}.editor-restore-selection{right:0;top:50%;transform:translateY(-50%);border-right:0;border-radius:.375rem 0 0 .375rem}.editor-restore-assets{bottom:0;left:50%;transform:translateX(-50%);border-bottom:0;border-radius:.375rem .375rem 0 0}.editor.editor-presenting{position:fixed;inset:0;z-index:50;height:100dvh;min-height:0;overflow:hidden;background:#080b09}.editor-presenting .editor-stage{grid-template-rows:minmax(0,1fr);border:0;border-radius:0}.editor-presenting .editor-stage>[data-testid=canvas-surface]{grid-row:1}.presenter-overlay{position:absolute;inset:0;z-index:20;pointer-events:none}.presenter-cover{position:absolute;inset:0;display:grid;place-items:center;background:#080b09;color:#a5b0a9;font-size:1rem}.presenter-source{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));max-width:calc(100% - 80px);padding:6px 10px;border-radius:6px;color:#eee6d5;background:rgb(8 11 9/.9);font-size:12px;overflow-wrap:anywhere}.presenter-source span{color:#b9c2bc}.presenter-wake{right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top))}.presenter-tools,.presenter-wake{position:absolute;pointer-events:auto}.presenter-tools{bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(650px,calc(100% - 24px));max-height:calc(100dvh - 100px);overflow-y:auto;padding:14px;border:1px solid rgb(var(--border));border-radius:10px;background:rgb(var(--card));transition:opacity .15s}.presenter-overlay[data-controls-visible=false] .presenter-tools:not(:focus-within){opacity:0;pointer-events:none}@media (prefers-reduced-motion:reduce){.presenter-tools{transition:none}}.editor-toolbar{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 8px;border-bottom:1px solid rgb(var(--border));background:rgb(var(--card))}.editor-file-controls,.editor-toolbar-context{display:flex;align-items:center;gap:4px;flex-shrink:0;min-width:0}.editor-primary-tools{flex:1;min-width:44px;overflow-x:auto;scrollbar-width:thin}.editor-primary-tools-content{display:flex;align-items:center;gap:4px;width:-moz-max-content;width:max-content}.editor-primary-tools-content [aria-label="Placement tool"],.editor-primary-tools-content>*{flex-shrink:0}.editor-floor-navigation{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:2px;width:clamp(180px,20vw,260px)}.editor-floor-navigation>button:first-child,.editor-floor-navigation>button:last-child{width:36px}.editor-floor-search{display:none}.editor-export-dialog{width:min(1000px,calc(100% - 32px))}.editor-export-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,1.4fr);gap:24px;align-items:start}.editor-export-preview{display:grid;place-items:center;min-height:180px;border:1px solid rgb(var(--border));border-radius:8px;background:#171816;overflow:hidden}.editor-export-preview img{display:block;max-width:100%;max-height:460px;-o-object-fit:contain;object-fit:contain}.editor-print-overview{max-height:220px;background:#171816}.editor-print-overview,.editor-print-sheet{display:block;width:100%;border:1px solid rgb(var(--border))}.editor-print-sheet{max-height:360px}@media (max-width:700px){.editor-export-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:900px){.editor-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.editor-file-controls{grid-column:1;grid-row:1}.editor-toolbar-context{grid-column:2;grid-row:1}.editor-primary-tools{grid-column:1/-1;grid-row:2}.editor-floor-navigation{width:180px}}@media (max-width:500px){.editor-brand{display:none}.editor-floor-navigation{width:112px;grid-template-columns:minmax(0,1fr)}.editor-floor-navigation>button:first-child,.editor-floor-navigation>button:last-child,.editor-floor-position{display:none}}