@font-face{font-family:BlitzCanvasText;src:url(/Blitz/OpenSans-Regular.ttf) format("truetype");font-display:block}:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f6f2e8;overscroll-behavior:none}:root[data-background-theme=dark]{background:#0f1318}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}body{display:grid;place-items:stretch;background:#f6f2e8}:root[data-background-theme=dark] body,body[data-background-theme=dark]{background:#0f1318}#blitz-canvas{width:100vw;height:100vh;display:block;cursor:default;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button,[role=button]{touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}input,textarea,select,[contenteditable=true]{touch-action:manipulation;user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}@media(max-width:720px){input:not([type=checkbox]):not([type=color]):not([type=range]),textarea:not(#text-editor),select{font-size:16px}}dialog{touch-action:manipulation}#blitz-canvas.is-dragging-entity{cursor:move}#blitz-canvas.is-resizing-nwse{cursor:nwse-resize}#blitz-canvas.is-resizing-nesw{cursor:nesw-resize}#blitz-canvas.is-resizing-ns{cursor:ns-resize}#blitz-canvas.is-resizing-ew{cursor:ew-resize}#blitz-canvas.is-rotating{cursor:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='white'%20stroke-width='5'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M21%2012a9%209%200%201%201-2.64-6.36L21%208M21%203v5h-5'/%3E%3Cpath%20fill='none'%20stroke='%23141a21'%20stroke-width='2.25'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M21%2012a9%209%200%201%201-2.64-6.36L21%208M21%203v5h-5'/%3E%3C/svg%3E") 8 8,default}#blitz-canvas.is-panning{cursor:grabbing}#blitz-canvas.is-selecting{cursor:crosshair}#text-editor{position:fixed;z-index:4;display:block;box-sizing:content-box;min-width:16px;min-height:16px;margin:0;overflow:hidden;border:1px solid #2673e8;border-radius:2px;outline:0;background:#ffffffe6;box-shadow:0 0 0 1px #2673e82e;color:#18202b;font-family:BlitzCanvasText,sans-serif;font-kerning:none;font-variant-ligatures:none;font-feature-settings:"kern" 0,"liga" 0;letter-spacing:0;resize:none;-moz-tab-size:4;tab-size:4;text-decoration:none;text-indent:0;text-rendering:geometricPrecision;text-transform:none;white-space:pre-wrap;word-spacing:0}#text-editor[hidden]{display:none}#tool-island{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;z-index:10;display:flex;align-items:center;gap:4px;width:max-content;height:44px;max-width:calc(100vw - 20px);padding:5px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffff5;box-shadow:0 8px 24px #0f172a2e;transform:translate(-50%)}#side-panel-stack{position:fixed;top:16px;right:16px;z-index:2;display:grid;gap:8px;align-content:start;width:min(236px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}#toggle-properties{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:10;display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffff5;box-shadow:0 8px 24px #0f172a2e;color:#18202b;cursor:pointer}#toggle-properties[aria-pressed=true]{background:#edf3ff;color:#155bd7}#toggle-properties:disabled{color:#a5adba;cursor:default;opacity:.72}#style-island{display:grid;gap:6px;width:100%;box-sizing:border-box;padding:8px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffff5;box-shadow:0 8px 24px #0f172a2e;color:#313b48}#debugger-island{position:fixed;top:72px;left:16px;z-index:2;width:min(330px,calc(100vw - 32px));max-height:calc(100vh - 88px);overflow:auto;padding:10px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffff5;box-shadow:0 8px 24px #0f172a2e;color:#18202b;font:12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace}#debugger-island[hidden]{display:none}.debugger-heading{display:flex;justify-content:space-between;gap:12px;padding:2px 3px 8px;color:#657080;font-weight:700}#debugger-entity-id{overflow:hidden;color:#155bd7;text-overflow:ellipsis;white-space:nowrap}.debugger-component{display:grid;grid-template-columns:minmax(90px,auto) minmax(0,1fr);gap:4px 10px;padding:8px;border-top:1px solid #e4e8ee}.debugger-component h3{grid-column:1 / -1;margin:0 0 3px;color:#313b48;font:700 11px/1.2 inherit;letter-spacing:.06em;text-transform:uppercase}.debugger-component dt{color:#7a8491}.debugger-component dd{min-width:0;margin:0;overflow-wrap:anywhere;color:#18202b}#style-island[hidden],.selected-style-group[hidden],.style-control[hidden],.style-divider[hidden]{display:none}.style-panel-heading{padding:0 1px 1px;color:#657080;font-size:10px;font-weight:760;letter-spacing:.06em;text-transform:uppercase}.selected-style-group,.selected-stroke-controls{display:grid;gap:5px}.style-control{display:grid;grid-template-columns:42px 24px;align-items:center;gap:5px;min-height:24px;color:#657080;font-size:11px;font-weight:650;white-space:nowrap}.style-color-button{width:24px;height:24px;padding:0;border:1px solid #c8ced8;border-radius:6px;background:linear-gradient(var(--style-color, #000),var(--style-color, #000)) padding-box,conic-gradient(#fff 25%,#d8dee8 0,#d8dee8 50%,#fff 0,#fff 75%,#d8dee8 0) border-box;background-size:auto,8px 8px;cursor:pointer}.style-color-button:hover,.style-color-button[aria-expanded=true]{border-color:#155bd7;box-shadow:0 0 0 2px #155bd724}.color-picker-popover{position:fixed;z-index:20;width:124px;padding:7px;border:1px solid #cfd5df;border-radius:8px;background:#fffffffc;box-shadow:0 16px 36px #0f172a38}.color-picker-popover--split{display:grid;grid-template-columns:repeat(2,auto);align-items:start;gap:7px;width:auto;padding:7px}.color-picker-section{display:grid;gap:6px;min-width:0}.color-picker-popover--split .color-picker-section{width:98px}.color-picker-section-label{margin:0;color:#657080;font-size:10px;font-weight:750;line-height:1;letter-spacing:.04em;text-transform:uppercase}.color-picker-swatches{display:grid;grid-template-columns:repeat(4,24px);gap:4px;margin-bottom:7px;min-width:0}.color-picker-popover--split .color-picker-swatches{grid-template-columns:repeat(4,22px);gap:3px}.color-picker-section .color-picker-swatches{margin-bottom:0}.color-picker-swatch{width:24px;height:24px;padding:0;border:1px solid rgba(24,32,43,.08);border-radius:6px;background:var(--style-color, #000);box-shadow:inset 0 0 0 1px #ffffff2e;cursor:pointer}.color-picker-popover--split .color-picker-swatch{width:22px;height:22px;border-radius:5px}.color-picker-swatch[aria-pressed=true]{border-color:#18202b;box-shadow:0 0 0 1px #fff,0 0 0 3px #18202b}.color-picker-value{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:5px;box-sizing:border-box;width:100%;min-width:0;height:28px;padding:2px;border:1px solid #d4d9e1;border-radius:7px;background:#fff}.color-picker-popover--split .color-picker-value{grid-template-columns:22px minmax(0,1fr);gap:4px;height:26px}.color-picker-native-control{position:relative;display:block;width:24px;height:24px;overflow:hidden;border:1px solid rgba(24,32,43,.14);border-radius:6px;background:conic-gradient(from 90deg,#ef4444,#f59e0b,#22c55e,#3b82f6,#a855f7,#ef4444);cursor:pointer}.color-picker-popover--split .color-picker-native-control{width:22px;height:22px;border-radius:5px}.color-picker-native-control input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;opacity:0;cursor:pointer}.color-picker-value input{width:100%;min-width:0;box-sizing:border-box;height:22px;padding:0 1px;border:0;outline:0;background:transparent;color:#313b48;font:650 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}.color-picker-popover--split .color-picker-value input{height:20px;font-size:9px}.color-picker-alpha{width:100%;min-width:0;height:18px;margin:0;accent-color:#155bd7}.tool-stroke-controls{display:grid;gap:7px;margin-top:8px;padding-top:8px;border-top:1px solid #e5e9ef}.color-picker-popover--split .tool-stroke-controls{width:112px;min-width:0;margin-top:0;padding-top:0;padding-left:7px;border-top:0;border-left:1px solid #e5e9ef}.tool-stroke-controls .color-picker-section-label{margin-bottom:-1px}.pen-width-control{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px;color:#475569;font-size:10px;font-weight:650;line-height:1}.color-picker-popover--split .pen-width-control{margin-top:2px}.pen-width-control input[type=number]{width:56px;height:24px;padding:0 6px;border:1px solid #d4d9e1;border-radius:6px;background:#fff;color:#313b48;font:650 11px/1 inherit}.color-picker-popover--split .pen-width-control input[type=number]{width:42px}.style-opacity{width:100%;min-width:0;accent-color:#155bd7;cursor:pointer}.style-width-control{grid-template-columns:76px 72px;justify-content:start}.style-title-control{grid-template-columns:42px minmax(0,1fr)}.style-title-control input{width:100%;min-width:0;height:24px;border:1px solid #c8ced8;border-radius:6px;padding:0 7px;color:#18202b;background:#fff;font:inherit}.style-checkbox-control{grid-template-columns:minmax(0,1fr) auto}.style-checkbox-control input{width:16px;height:16px;margin:0;accent-color:#155bd7;cursor:pointer}.style-width-control input{width:72px;height:24px;padding:0 6px;border:1px solid #c8ced8;border-radius:6px;background:#fff;color:#18202b;font:600 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.style-divider{width:100%;height:1px;background:#dfe3e9}.style-compact-button{width:100%;height:24px;padding:0 8px;border:1px solid #c8ced8;border-radius:6px;background:#fff;color:#313b48;font:650 12px/1 inherit;cursor:pointer}.style-compact-button:hover:not(:disabled){border-color:#9db8eb;background:#edf3ff;color:#155bd7}.style-compact-button:disabled{color:#9aa3af;cursor:default;opacity:.72}#tool-island button,#tool-island summary{display:inline-flex;align-items:center;justify-content:center;min-width:34px;width:34px;height:32px;padding:0;border:0;border-radius:5px;background:transparent;color:#18202b;font:600 13px/1 inherit;cursor:pointer}#tool-island button:hover:not(:disabled),#tool-island summary:hover{background:#edf3ff;color:#155bd7}#tool-island button:focus-visible,#tool-island summary:focus-visible{outline:2px solid #2673e8;outline-offset:1px}#tool-island button:disabled{color:#a5acb7;cursor:default}#tool-island svg{width:17px;height:17px;flex:0 0 auto;stroke-width:2}#file-menu,#shape-menu,#view-menu,.file-menu-content,.shape-menu-content,.view-menu-content{display:contents}#file-menu>summary,#shape-menu>summary,#view-menu>summary{display:none;list-style:none}#file-menu>summary::-webkit-details-marker,#shape-menu>summary::-webkit-details-marker,#view-menu>summary::-webkit-details-marker{display:none}.scene-action-menu{position:relative;display:inline-flex}.scene-action-menu>summary{list-style:none}.scene-action-menu>summary::-webkit-details-marker{display:none}.scene-action-popup{position:absolute;top:auto;bottom:calc(100% + 8px);left:0;z-index:4;display:grid;min-width:180px;max-width:min(280px,calc(100vw - 20px));padding:5px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffffc;box-shadow:0 12px 32px #0f172a3d}.save-scene-popup{left:0;right:auto}.scene-action-menu:not([open]) .scene-action-popup{display:none}.recent-scenes[hidden],.scene-menu-divider[hidden]{display:none}.scene-menu-divider{height:1px;margin:4px 5px;background:#dfe3e9}.recent-scenes{display:grid}.recent-scene-item{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:2px}#tool-island .recent-scene-open,#tool-island .recent-scene-remove,#tool-island .scene-menu-command{width:auto;min-width:0;height:32px}.scene-menu-option{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 9px;border-radius:5px;color:#313b48;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.scene-menu-option:hover{background:#edf3ff;color:#155bd7}.scene-menu-option input{width:14px;height:14px;margin:0;accent-color:#155bd7}#tool-island .recent-scene-open,#tool-island .scene-menu-command{justify-content:flex-start;padding:0 9px}.recent-scene-open{display:flex;align-items:center;gap:8px;overflow:hidden}.recent-scene-icon{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.recent-scene-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#tool-island .recent-scene-remove{padding:0;color:#7a8491;font-size:18px}#save-scene{position:relative}#save-scene[data-dirty=true]:after{position:absolute;top:3px;right:3px;width:6px;height:6px;border:1px solid #fff;border-radius:50%;background:#8b95a3;content:""}.scene-action-menu[open]>summary{background:#edf3ff;color:#155bd7}.tool-divider{width:1px;height:22px;margin:0 2px;background:#dfe3e9}.empty-state{position:fixed;top:0;left:0;z-index:1;width:min(420px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:visible;pointer-events:none;transform-origin:center center;transform:translate(-50%,-50%);will-change:transform}.empty-state[hidden],.empty-state-section[hidden]{display:none}.empty-state-card{width:100%;padding:18px;border:1px solid rgba(190,205,224,.22);border-radius:10px;background:#0f172257;box-shadow:inset 0 1px #ffffff14,0 16px 44px #0000002e;backdrop-filter:blur(14px) saturate(1.18);-webkit-backdrop-filter:blur(14px) saturate(1.18);color:#ecf1f7db;pointer-events:auto;text-align:center}.empty-state-card h1{margin:0;color:#f1f5f9e6;font-size:22px;font-weight:700;letter-spacing:0}.empty-state-card>p{margin:8px 0 0;color:#aeb9c6c7;font-size:13px;line-height:1.5}.empty-inline-action{padding:0;border:0;border-bottom:1px solid rgba(132,170,225,.42);background:transparent;color:#8eb5eedb;font:inherit;cursor:pointer}.empty-inline-action:hover{border-bottom-color:#a8caffbf;color:#bed7fff5}.empty-primary-text{color:#e2e8f0e6;font-weight:650}.empty-inline-action:focus-visible,.empty-recent-scenes button:focus-visible,.template-card:focus-visible{outline:2px solid #6ca4ff;outline-offset:3px}.empty-state-section{margin-top:16px;padding-top:14px;border-top:1px solid rgba(125,142,160,.14);text-align:left}.empty-state-section h2{margin:0 0 8px;color:#aeb9c69e;font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.empty-recent-scenes{display:grid;gap:4px}.empty-recent-scenes .recent-scene-item{grid-template-columns:minmax(0,1fr) 34px}.empty-recent-scenes button{height:36px;border:0;border-radius:6px;background:transparent;color:#e2e8f0;font:600 13px/1 inherit;cursor:pointer}.empty-recent-scenes button:hover{background:#7fb0ff1f;color:#a8caff}.empty-recent-scenes .recent-scene-open{padding:0 10px;text-align:left}.empty-recent-scenes .recent-scene-remove{padding:0;color:#84909e;font-size:19px}.template-card{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;width:100%;min-height:54px;padding:8px;border:1px solid rgba(125,142,160,.16);border-radius:8px;background:#ffffff05;color:#e2e8f0d1;font:620 13px/1.3 inherit;text-align:left;cursor:pointer}.template-card:hover{border-color:#7fb0ff57;background:#7fb0ff0e;color:#f1f5f9eb}body[data-background-theme=paper] .empty-state-card{border-color:#8070543d;background:#fffcf47a;box-shadow:inset 0 1px #ffffff8c,0 16px 42px #5849321f;color:#322b22db}body[data-background-theme=paper] .empty-state-card h1{color:#27221ceb}body[data-background-theme=paper] .empty-state-card>p{color:#4d4438c7}body[data-background-theme=paper] .empty-primary-text{color:#2c261fe6}body[data-background-theme=paper] .empty-inline-action{border-bottom-color:#4574b56b;color:#2666bee6}body[data-background-theme=paper] .empty-inline-action:hover{border-bottom-color:#2058a8b8;color:#184e9af5}body[data-background-theme=paper] .empty-state-section{border-top-color:#5d4e3a33}body[data-background-theme=paper] .empty-state-section h2{color:#4d4438a8}body[data-background-theme=paper] .empty-recent-scenes button{color:#383128d6}body[data-background-theme=paper] .empty-recent-scenes button:hover{background:#5378a81a;color:#184e9af5}body[data-background-theme=paper] .empty-recent-scenes .recent-scene-remove{color:#50483eb8}body[data-background-theme=paper] .template-card{border-color:#5d4e3a33;background:#fff3;color:#302a22db}body[data-background-theme=paper] .template-card:hover{border-color:#2666be57;background:#5378a814;color:#241f19f0}.template-preview{position:relative;display:block;width:72px;aspect-ratio:16 / 9;overflow:hidden;border:1px solid rgba(205,212,221,.54);border-top:2px solid rgba(239,81,72,.78);background:#edf1f6d6}.template-preview span{position:absolute;display:block}.template-sidebar{inset:0 auto 0 0;width:28%;background:#151c25}.template-heading{top:18%;left:36%;width:48%;height:9%;background:#202833}.template-line{top:35%;left:36%;width:54%;height:4%;background:#909ba9}.template-block{top:52%;width:24%;height:25%;border:1px solid #c7ced8;background:#fff}.template-block-left{left:36%}.template-block-right{left:66%}#fallback{position:fixed;left:16px;bottom:16px;max-width:min(520px,calc(100vw - 32px));padding:12px 14px;border:1px solid #465261;border-radius:8px;background:#1b222b;color:#f6f0df;font-size:14px;line-height:1.4}#fallback:empty{display:none}#tool-island button[aria-pressed=true]{background:#edf3ff;color:#155bd7}#open-mcp-settings,#open-collaboration-settings{position:relative}#open-mcp-settings:after,#open-collaboration-settings:after{position:absolute;right:4px;bottom:3px;width:6px;height:6px;border:1px solid #fff;border-radius:50%;background:#8b95a3;content:""}#open-mcp-settings[data-state=connecting]:after,#open-collaboration-settings[data-state=connecting]:after{background:#e9a23b}#open-mcp-settings[data-state=connected]:after,#open-collaboration-settings[data-state=connected]:after{background:#1ba672}dialog{width:min(460px,calc(100vw - 32px));padding:0;border:1px solid #d4d9e1;border-radius:12px;background:#fff;box-shadow:0 24px 80px #0f172a59;color:#18202b}dialog::backdrop{background:#0f131894;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}#mcp-settings-form,#collaboration-settings-form{display:grid;gap:16px;padding:22px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.dialog-heading h2{margin:0;font-size:19px}.dialog-heading p,.settings-note{margin:6px 0 0;color:#657080;font-size:13px;line-height:1.45}.dialog-close{width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#657080;font-size:24px;line-height:1;cursor:pointer}#mcp-settings-form label,#collaboration-settings-form label{display:grid;gap:7px;color:#313b48;font-size:13px;font-weight:650}#mcp-settings-form input,#collaboration-settings-form input{width:100%;height:38px;padding:0 10px;border:1px solid #c8ced8;border-radius:7px;background:#fff;color:#18202b;font:13px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace}#mcp-settings-form input:focus,#collaboration-settings-form input:focus{border-color:#2673e8;outline:2px solid rgba(38,115,232,.18)}#collaboration-share-link{color:#155bd7}.bridge-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:22px}#mcp-bridge-status,#collaboration-status{display:inline-flex;align-items:center;gap:7px;color:#657080;font-size:13px}#mcp-bridge-status:before,#collaboration-status:before{width:8px;height:8px;border-radius:50%;background:#8b95a3;content:""}#mcp-bridge-status[data-state=connecting]:before,#collaboration-status[data-state=connecting]:before{background:#e9a23b}#mcp-bridge-status[data-state=connected]:before,#collaboration-status[data-state=connected]:before{background:#1ba672}#collaboration-peer-id{min-width:0;overflow:hidden;color:#657080;font:650 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-overflow:ellipsis;white-space:nowrap}.collaboration-debug{display:grid;gap:6px;min-width:0}.collaboration-debug-heading{color:#657080;font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}#collaboration-debug-log{width:100%;max-height:180px;margin:0;overflow:auto;padding:9px;border:1px solid #d4d9e1;border-radius:7px;background:#f7f9fc;color:#313b48;font:11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;white-space:pre-wrap}.dialog-actions{display:flex;justify-content:flex-end;gap:9px}.dialog-actions button{height:36px;padding:0 14px;border-radius:7px;font:650 13px/1 inherit;cursor:pointer}.secondary-action{border:1px solid #c8ced8;background:#fff;color:#313b48}.primary-action{border:1px solid #155bd7;background:#155bd7;color:#fff}#stats-panel{width:100%;box-sizing:border-box;padding:10px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffff5;box-shadow:0 8px 24px #0f172a2e;color:#18202b;font:600 12px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;pointer-events:none;-webkit-user-select:none;user-select:none}#stats-panel[hidden]{display:none}#history-controls{position:fixed;bottom:16px;left:16px;z-index:2;display:flex;gap:4px;padding:5px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffff5;box-shadow:0 8px 24px #0f172a2e}#history-controls button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:#18202b;cursor:pointer}#history-controls button:hover:not(:disabled),#history-controls button:focus-visible{background:#edf3ff;color:#155bd7}#history-controls button:disabled{color:#a5adba;cursor:default}#history-controls svg{width:20px;height:20px;stroke-width:2.25}#stats-body{display:grid;gap:8px}.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 1px 7px;border-bottom:1px solid #e1e6ee}.stats-heading span{color:#313b48;font-size:12px;font-weight:800}.stats-heading strong{color:#155bd7;font:800 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;white-space:nowrap}.stats-section{display:grid;gap:4px;padding-top:8px;border-top:1px solid #eef2f6}.stats-heading+.stats-section{padding-top:0;border-top:0}.stats-row{display:grid;grid-template-columns:minmax(112px,1fr) minmax(0,auto);align-items:center;gap:8px;min-height:20px;min-width:0}.stats-row span,.stats-breakdown em{min-width:0;overflow:hidden;color:#687386;text-overflow:ellipsis;white-space:nowrap}.stats-row strong{min-width:0;overflow:hidden;color:#18202b;font:750 12px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;text-align:right;text-overflow:ellipsis;white-space:nowrap}.stats-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;padding-top:3px}.stats-breakdown span{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;min-width:0}.stats-breakdown em{font-style:normal}.stats-breakdown strong{color:#18202b;font:750 12px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}#zoom-indicator{position:fixed;right:16px;bottom:16px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:66px;height:44px;padding:0 12px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffff5;box-shadow:0 8px 24px #0f172a2e;color:#18202b;font:650 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;pointer-events:none;-webkit-user-select:none;user-select:none}@media(max-width:720px){#side-panel-stack{top:auto;right:max(14px,env(safe-area-inset-right));bottom:calc(148px + env(safe-area-inset-bottom));left:auto;display:none;width:min(320px,calc(100vw - 28px));max-height:min(48vh,calc(100vh - 112px))}:root[data-side-panel-open=true] #side-panel-stack{display:grid}#toggle-properties{display:inline-flex}#toggle-properties{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:56px;height:56px;border-radius:10px}#toggle-properties svg{width:25px;height:25px;stroke-width:2.35}#style-island,#stats-panel{max-width:320px}.empty-state{width:min(420px,calc(100vw - 20px))}.empty-state-card{padding:16px}.template-card{grid-template-columns:68px minmax(0,1fr)}.template-preview{width:68px}#tool-island{top:auto;bottom:max(14px,env(safe-area-inset-bottom));right:auto;left:max(14px,env(safe-area-inset-left));width:max-content;max-width:calc(100vw - 98px - env(safe-area-inset-left) - env(safe-area-inset-right));height:56px;gap:3px;overflow:visible;padding:7px;border-radius:10px;transform:none}#tool-island button,#tool-island summary{min-width:36px;width:36px;height:40px;border-radius:7px}#tool-island svg{width:19px;height:19px}.tool-divider{height:28px;margin:0 4px}#file-menu,#shape-menu,#view-menu{position:relative;display:inline-flex;align-items:center;height:40px}#file-menu>summary,#shape-menu>summary,#view-menu>summary{display:inline-flex}#file-menu:not([open]) .file-menu-content,#shape-menu:not([open]) .shape-menu-content,#view-menu:not([open]) .view-menu-content{display:none}.file-menu-content,.shape-menu-content,.view-menu-content{position:absolute;top:auto;bottom:calc(100% + 8px);left:0;z-index:12;display:grid;grid-template-columns:repeat(2,36px);gap:4px;padding:5px;border:1px solid #d4d9e1;border-radius:8px;background:#fffffffa;box-shadow:0 8px 24px #0f172a33}.file-menu-content{grid-template-columns:repeat(2,36px)}.view-menu-content{right:0;left:auto;grid-template-columns:repeat(4,36px)}#history-controls{bottom:calc(84px + env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));border-radius:10px}#history-controls button{width:40px;height:40px;border-radius:7px}#zoom-indicator{top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));bottom:auto;padding:8px 12px;border-radius:8px;font-size:14px}.scene-action-popup{top:auto;bottom:calc(100% + 8px);left:-5px}#file-menu[open]>summary,#shape-menu[open]>summary,#view-menu[open]>summary{background:#edf3ff;color:#155bd7}}@media(max-width:420px){#side-panel-stack{right:14px;left:auto;bottom:calc(148px + env(safe-area-inset-bottom));width:min(320px,calc(100vw - 28px))}#history-controls{bottom:calc(84px + env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left))}}
