@font-face{font-family:Geist Pixel Square;src:url(/static/fonts/GeistPixel-Square.woff2) format("woff2");font-display:swap}@font-face{font-family:Geist Pixel Line;src:url(/static/fonts/GeistPixel-Line.woff2) format("woff2");font-display:swap}:root{--font-body: "Geist Pixel Line", "Geist Pixel Square", monospace;--font-display: "Geist Pixel Square", "Geist Pixel Line", monospace;--font-mono: "JetBrains Mono", "Geist Pixel Line", monospace;--bg: #dbe4e6;--bg-alt: #c5d3d7;--panel: #c5d3d7;--panel-strong: #dbd5d9;--panel-2: #f1edf0;--panel-soft: #f1edf0;--ink: #241924;--ink-soft: #4b3947;--ink-mute: #6d5b68;--muted: #6d5b68;--line: rgba(18, 13, 18, .22);--line-soft: rgba(18, 13, 18, .14);--accent: #c64524;--accent-soft: #f6ded9;--teal: #567d6a;--shadow-sm: 0 1px 2px rgba(42, 35, 38, .16);--radius-xl: 8px;--radius-lg: 6px;--radius-md: 5px;--radius-sm: 3px;--radius-pill: 999px}*{box-sizing:border-box}html,body{height:100%}body{margin:0;overflow:hidden;color:var(--ink);font-family:var(--font-body);background:linear-gradient(180deg,var(--bg) 0%,var(--bg-alt) 100%)}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}img{display:block;max-width:100%}a{color:inherit}#app,.editor-shell{height:100%}#app *:not(input):not(textarea):not(select):not([contenteditable=true]){-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent;-webkit-user-drag:none;-webkit-user-select:none!important;user-select:none!important}input,textarea,select,[contenteditable=true]{-webkit-touch-callout:default;-webkit-user-select:text!important;user-select:text!important}.editor-shell{display:grid;grid-template-columns:minmax(248px,280px) minmax(0,1fr);gap:12px;padding:12px}.editor-shell--embedded{grid-template-columns:minmax(0,1fr);gap:0;padding:0}.editor-sidebar,.editor-main-shell,.editor-empty{border:1px solid var(--ink);border-radius:var(--radius-xl);background:var(--panel);box-shadow:none}.editor-sidebar{display:flex;min-height:0;flex-direction:column;padding:16px}.editor-sidebar-top{display:flex;min-height:0;flex:1;flex-direction:column;gap:14px}.editor-brand h2,.editor-main-header h1,.editor-empty-title{margin:0;font-family:var(--font-display)}.editor-brand h2{font-size:1.4rem}.editor-brand p,.editor-subtitle,.editor-empty-copy{margin:6px 0 0;color:var(--muted);line-height:1.45}.editor-source-path{margin:6px 0 0;color:#585149b8;font-family:var(--font-mono);font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}.editor-local-notice{margin:10px 0 0;padding:10px 12px;border:1px solid rgba(31,141,129,.18);border-radius:var(--radius-sm);background:linear-gradient(180deg,#e9782f14,#ffffffd6);color:var(--ink-soft);font-size:.78rem;line-height:1.45}.editor-local-notice--embedded{margin-top:12px}.editor-runtime-notice{margin:10px 0 0;padding:10px 12px;border:1px solid rgba(44,41,37,.08);border-radius:var(--radius-md);font-size:.78rem;line-height:1.45}.editor-runtime-notice--recovering{background:#fff2dfe6;color:#8a4f12}.editor-runtime-notice--error{background:#ffe7e7eb;color:#b54242}.editor-runtime-notice--ready{background:#dff4f0f0;color:var(--teal)}.editor-eyebrow{margin:0 0 8px;color:var(--muted);font-family:var(--font-display);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.editor-primary-button,.editor-secondary-button,.editor-primary-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border:1px solid var(--ink);border-radius:var(--radius-pill);text-decoration:none;transition:transform .12s ease,border-color .12s ease,background .12s ease}.editor-primary-button,.editor-primary-link{background:var(--ink);color:var(--bg)}.editor-secondary-button{background:var(--panel-soft);color:var(--ink)}.editor-project-list{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;overflow-y:auto}.editor-project,.editor-list-empty{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center;width:100%;padding:10px;border:1px solid transparent;border-radius:var(--radius-md);background:#ffffffbd;text-align:left}.editor-project:hover{border-color:#1f8d8138}.editor-project.is-active{border-color:#e9782f5c;background:linear-gradient(180deg,rgba(255,177,74,.16),transparent 60%),#fff7ebf0}.editor-project-thumb{width:54px;height:54px;overflow:hidden;border-radius:14px;border:1px dashed rgba(44,41,37,.1);background:linear-gradient(45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(-45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(44,41,37,.05) 75%),linear-gradient(-45deg,transparent 75%,rgba(44,41,37,.05) 75%),#f6efe4eb;background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}.editor-project-thumb img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.editor-project-copy p{margin:0}.editor-project-copy span,.editor-footer-link{color:var(--muted);font-size:.78rem}.editor-footer-link{margin-top:12px;text-decoration:none}.editor-workspace{min-width:0;min-height:0}.editor-workspace--embedded{height:100%}.editor-main-shell{display:flex;height:100%;min-height:0;flex-direction:column;padding:18px}.editor-main-shell--embedded-chat{padding:0}.editor-shell--embedded .editor-main-shell,.editor-shell--embedded .editor-empty{border:0;border-radius:0;box-shadow:none}.editor-main-header{display:flex;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}.editor-main-header h1{font-size:1.32rem}.editor-header-actions{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;gap:10px}.editor-save-pill{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:var(--radius-pill);background:#ffffffd6;color:var(--muted);font-size:.74rem;text-transform:uppercase}.editor-save-pill--saved{background:#dff4f0f0;color:var(--teal)}.editor-save-pill--saving{background:#fff2dff0;color:#8a4f12}.editor-save-pill--error{background:#ffe7e7f0;color:#b54242}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(188px,220px);gap:8px;min-height:0;flex:1;padding-top:8px}.editor-layout--embedded-chat{grid-template-columns:minmax(240px,var(--embedded-toolbox-width, 240px)) 16px minmax(0,1fr);gap:0;min-height:0;padding-top:0}.editor-layout--embedded-chat>.editor-tools{grid-column:1;grid-row:1}.editor-layout--embedded-chat>.editor-tools-resizer{grid-column:2;grid-row:1}.editor-layout--embedded-chat>.editor-preview-card{grid-column:3;grid-row:1}.editor-preview-card,.editor-tools{min-height:0;border:1px solid var(--ink);border-radius:var(--radius-lg);background:var(--panel)}.editor-preview-card{display:flex;min-width:0;flex-direction:column;padding:6px}.editor-preview-card--embedded-chat{padding:4px}.editor-tools-resizer{position:relative;display:flex;align-items:stretch;justify-content:center;padding:0;border:0;background:var(--panel);cursor:col-resize;touch-action:none}.editor-tools-resizer:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);background:var(--panel)}.editor-tools-resizer__grip{position:relative;z-index:1;width:8px;min-height:56px;margin:10px 0;border-left:1px solid var(--ink);border-right:1px solid var(--ink);background:linear-gradient(to right,#f3ecf257,#8d7e8257),var(--panel-strong);box-shadow:inset 0 0 0 1px #f3f6f780}.editor-tools-resizer:hover .editor-tools-resizer__grip,.editor-tools-resizer.is-active .editor-tools-resizer__grip{background:linear-gradient(to right,#f3ecf27a,#8d7e826b),var(--panel-soft)}.editor-tools-resizer:focus-visible{outline:none}.editor-tools-resizer:focus-visible .editor-tools-resizer__grip{box-shadow:inset 0 0 0 1px #f3f6f780,0 0 0 2px #1f6ce08c}.editor-preview-toolbar{display:flex;justify-content:space-between;gap:6px;padding:0 0 6px}.editor-preview-toolbar--embedded-chat{align-items:flex-start;padding-bottom:8px}.editor-preview-toolbar-main{display:flex;flex-wrap:wrap;gap:4px}.editor-preview-toolbar-main--embedded-chat{flex:1}.editor-preview-toolbar-secondary{flex-wrap:wrap}.editor-render-notice{margin:0;padding:0 4px 12px;color:var(--muted);font-size:.78rem;line-height:1.45}.editor-render-notice--embedded{padding:0}.editor-chip{display:inline-grid;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;justify-content:start;min-height:30px;min-width:38px;column-gap:8px;padding:0 10px;border:1px solid rgba(44,41,37,.08);border-radius:var(--radius-pill);background:#ffffffe6;font-size:.74rem;line-height:1;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.editor-chip--static{cursor:default}.editor-chip-label{display:inline-block;line-height:1}.editor-chip-key{display:inline-block;color:var(--muted);font-family:var(--font-body);font-size:.54rem;letter-spacing:.04em;line-height:1;text-transform:uppercase}.editor-preview-status{color:var(--muted);font-size:.82rem}.editor-preview-toolbar-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}.editor-preview-readout{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.editor-preview-readout--header{max-width:min(40vw,420px)}.editor-preview-readout span{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border:1px solid rgba(44,41,37,.08);border-radius:999px;background:#ffffffdb;color:var(--muted);font-family:var(--font-display);font-size:.58rem;letter-spacing:.05em;text-align:center;text-transform:uppercase;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.editor-preview-readout--coordinates span{min-width:64px}body.editor-pointer-session-active,body.editor-pointer-session-active *:not(input):not(select):not(textarea):not([contenteditable=true]){-webkit-touch-callout:none;-webkit-user-select:none!important;user-select:none!important}.editor-preview{position:relative;display:grid;place-items:center;min-height:0;max-height:clamp(320px,56vh,640px);flex:1;overflow:hidden;touch-action:none;overscroll-behavior:contain;border:0;border-radius:var(--radius-md);background:var(--bg)}.editor-preview--panning-ready{cursor:grab}.editor-preview--panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.editor-preview--embedded-chat{min-height:clamp(320px,54vh,760px);max-height:none;overflow:hidden}.editor-preview--placing-asset{overflow:visible}.editor-floating-asset{position:absolute;pointer-events:auto;z-index:8}.editor-floating-asset__handle{position:relative;width:100%;height:100%;cursor:grab;touch-action:none}.editor-floating-asset__handle:active{cursor:grabbing}.editor-floating-asset__selection{position:absolute;top:0;right:0;bottom:0;left:0;border:2px dashed var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:inset 0 0 0 1px #f3f6f7c7;pointer-events:none}.editor-floating-asset__actions{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:var(--radius-md);background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:var(--shadow-sm);white-space:nowrap}.editor-floating-asset--actions-above .editor-floating-asset__actions{top:auto;bottom:calc(100% + 8px)}.editor-floating-asset__actions .editor-primary-button,.editor-floating-asset__actions .editor-secondary-button{min-height:28px;padding:0 10px;border-radius:var(--radius-sm);font-family:var(--font-display);font-size:.6rem;letter-spacing:.06em;line-height:1;text-transform:uppercase}.editor-floating-asset__actions .editor-secondary-button{background:transparent;color:var(--ink-soft)}.editor-floating-asset__confirm{font-weight:600}.editor-preview-image,.editor-actual-size img{display:block;image-rendering:pixelated;image-rendering:crisp-edges}.editor-preview-image{touch-action:none}.editor-preview-pan-container{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none;will-change:transform}.editor-preview-pan-container>*{pointer-events:auto}.editor-pencil-context-palette{position:absolute;z-index:12;display:flex;gap:4px;padding:4px;border:1px solid rgba(24,19,27,.24);border-radius:var(--radius-md);background:#fffffff0;box-shadow:0 10px 24px #18131b2e;pointer-events:auto;touch-action:none}.editor-pencil-context-palette button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(24,19,27,.14);border-radius:var(--radius-sm);background:#ffffffdb;color:var(--ink)}.editor-pencil-context-palette button.is-active{border-color:#1f6ce07a;background:#1f6ce01f}.editor-pencil-context-palette svg{width:16px;height:16px}.editor-canvas-host{position:relative;flex:0 0 auto;overflow:visible;background:transparent;isolation:isolate}.editor-canvas-host--checkerboard,.editor-canvas-host--flat{background:transparent}.editor-canvas-host--placeholder,.editor-canvas-host--placing-asset{overflow:visible}.editor-canvas-host--tiled{box-shadow:0 0 0 1px #18131b1f}.editor-canvas-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.editor-canvas-placeholder div{position:absolute}.editor-canvas-host>.editor-preview-image{position:relative;z-index:1}.editor-canvas-host>.editor-preview-image--overlay{z-index:3}.editor-canvas-host>.editor-preview-image--worker-overlay{z-index:2}.editor-pixel-grid{position:absolute;top:0;right:0;bottom:0;left:0;display:block;z-index:3;overflow:hidden;pointer-events:none}.editor-tile-boundary{position:absolute;z-index:4;box-sizing:border-box;border:2px solid rgba(255,255,255,.88);outline:1px solid rgba(24,19,27,.58);outline-offset:-2px;pointer-events:none}.editor-symmetry-axis{position:absolute;pointer-events:none;z-index:5;background:#1f6ce0c2;box-shadow:0 0 0 1px #ffffff61;opacity:.92}.editor-symmetry-axis--vertical{top:0;bottom:0;transform:translate(-50%)}.editor-symmetry-axis--horizontal{left:0;right:0;transform:translateY(-50%)}.editor-brush-preview{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;pointer-events:none}.editor-brush-preview-outline{position:absolute;z-index:6;box-sizing:border-box;border:1px solid var(--editor-preview-outline-color, currentColor);outline:1px solid rgba(255,255,255,.9);outline-offset:-2px;background:color-mix(in srgb,var(--editor-preview-outline-color, currentColor) 10%,transparent)}.editor-brush-preview-outline--circle{border-radius:999px}.editor-brush-preview-outline--fill{border-style:dashed;background:#2c29250f}.editor-brush-preview-outline--eraser{border-style:dashed;background:#24192414}.editor-hover-loupe{position:absolute;z-index:3;display:grid;gap:1px;padding:6px;border:1px solid rgba(36,25,36,.16);background:#fffcf8f5;box-shadow:0 12px 24px #2419242e;pointer-events:none}.editor-hover-loupe-cell{width:12px;height:12px;border:1px solid rgba(36,25,36,.06)}.editor-hover-loupe-cell--transparent{background-image:linear-gradient(45deg,rgba(36,25,36,.12) 25%,transparent 25%),linear-gradient(-45deg,rgba(36,25,36,.12) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(36,25,36,.12) 75%),linear-gradient(-45deg,transparent 75%,rgba(36,25,36,.12) 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0}.editor-hover-loupe-cell--center{outline:2px solid #241924;outline-offset:-1px}.editor-actual-size{position:absolute;right:12px;bottom:12px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:8px;border:1px solid rgba(44,41,37,.08);border-radius:14px;background:#ffffffe0}.editor-actual-size p,.editor-actual-size span{margin:0;color:var(--muted);font-family:var(--font-display);font-size:.56rem;letter-spacing:.06em;text-transform:uppercase}.editor-tools{position:relative;overflow-y:auto;padding:8px}.editor-tools--embedded-chat{min-height:0;padding:0 14px 12px;border:0;border-right:1px solid var(--line);border-radius:0;background:var(--panel);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:var(--muted) var(--panel-soft);box-shadow:none}.editor-tools--embedded-chat::-webkit-scrollbar,.studio-aside::-webkit-scrollbar,.studio-recents::-webkit-scrollbar,.chat-list-panel__body::-webkit-scrollbar,.chat-thread::-webkit-scrollbar{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:11px;height:11px}.editor-tools--embedded-chat::-webkit-scrollbar-track,.studio-aside::-webkit-scrollbar-track,.studio-recents::-webkit-scrollbar-track,.chat-list-panel__body::-webkit-scrollbar-track,.chat-thread::-webkit-scrollbar-track{background:var(--panel-soft);box-shadow:inset 0 0 0 1px #2a23261f;border-radius:0!important;-webkit-border-radius:0!important}.editor-tools--embedded-chat::-webkit-scrollbar-thumb,.studio-aside::-webkit-scrollbar-thumb,.studio-recents::-webkit-scrollbar-thumb,.chat-list-panel__body::-webkit-scrollbar-thumb,.chat-thread::-webkit-scrollbar-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:32px;border:1px solid var(--ink);background:var(--muted);border-radius:0!important;-webkit-border-radius:0!important;background-clip:padding-box}.editor-tools--embedded-chat::-webkit-scrollbar-track-piece,.studio-aside::-webkit-scrollbar-track-piece,.studio-recents::-webkit-scrollbar-track-piece,.chat-list-panel__body::-webkit-scrollbar-track-piece,.chat-thread::-webkit-scrollbar-track-piece{border-radius:0!important;-webkit-border-radius:0!important}.editor-tools--embedded-chat::-webkit-scrollbar-corner,.studio-aside::-webkit-scrollbar-corner,.studio-recents::-webkit-scrollbar-corner,.chat-list-panel__body::-webkit-scrollbar-corner,.chat-thread::-webkit-scrollbar-corner{background:var(--panel-soft);border-radius:0!important;-webkit-border-radius:0!important}.editor-tool-group+.editor-tool-group{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.editor-tool-group--compact{display:grid;gap:10px;margin-top:0;padding-top:0;border-top:0}.editor-tool-group h2{margin:0 0 8px;font-family:var(--font-display);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}.editor-field,.editor-checkbox{display:flex;flex-direction:column;gap:4px;margin-bottom:6px;color:var(--muted);font-size:.78rem}.editor-checkbox{flex-direction:row;align-items:center}.editor-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.editor-field input:not([type=checkbox]),.editor-field select{width:100%;min-height:34px;padding:0 8px;border:1px solid rgba(44,41,37,.08);border-radius:var(--radius-md);background:#ffffffe0}.editor-field input[type=color]{padding:4px}.editor-color-section{display:grid;gap:6px;margin-bottom:4px}.editor-color-section--embedded{gap:6px;margin-bottom:0}.editor-color-field{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:.78rem}.editor-color-field-row{display:flex;align-items:center;gap:12px}.editor-color-circle{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid rgba(44,41,37,.12);border-radius:999px;background:transparent;overflow:hidden;cursor:pointer}.editor-color-circle::-webkit-color-swatch-wrapper{padding:0}.editor-color-circle::-webkit-color-swatch{border:0;border-radius:999px}.editor-color-circle::-moz-color-swatch{border:0;border-radius:999px}.editor-color-value{display:inline-flex;align-items:center;min-height:34px;padding:0 8px;border:1px solid rgba(44,41,37,.08);border-radius:var(--radius-md);background:#ffffffe0;color:var(--ink);font-family:var(--font-display);font-size:.68rem;letter-spacing:.06em;text-transform:uppercase}.editor-palette-preview{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}.editor-palette-preview span{aspect-ratio:1;border-radius:8px;border:1px solid rgba(44,41,37,.08)}.editor-palette-swatch{aspect-ratio:1;border-radius:6px;border:1px solid rgba(44,41,37,.08);cursor:pointer}.editor-palette-swatch.is-active{box-shadow:0 0 0 2px #1f6ce0e0}.editor-embedded-panel{display:grid;gap:8px;padding:14px 0;border:0;border-bottom:1px solid var(--line-soft);background:transparent;box-shadow:none}.editor-embedded-panel-kicker{margin:0 0 2px;color:var(--ink-mute);font-family:var(--font-mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase}.editor-color-field--embedded{gap:6px;color:var(--ink)}.editor-color-field-row--embedded{gap:6px}.editor-color-circle--embedded{width:42px;min-width:42px;height:42px;min-height:42px;border:1px solid var(--ink);border-radius:0;background:var(--muted)}.editor-color-circle--embedded::-webkit-color-swatch,.editor-color-circle--embedded::-moz-color-swatch{border-radius:0}.editor-color-value--embedded{flex:1;min-height:42px;justify-content:center;border:1px solid var(--ink);border-radius:0;background:var(--panel-strong);color:var(--ink)}.editor-palette-preview--embedded{gap:1px;padding:1px;border:1px solid var(--ink);background:var(--ink)}.editor-palette-preview--embedded .editor-palette-swatch{border:0;border-radius:0}.editor-palette-preview--embedded .editor-palette-swatch.is-active{box-shadow:none;outline:2px solid #f3ecf2;outline-offset:-2px}.editor-field--embedded{gap:3px;margin-bottom:0;color:var(--ink);font-size:.72rem}.editor-field--embedded-palette{gap:5px}.editor-field--embedded-select{gap:5px;color:var(--ink-soft);font-size:.76rem}.editor-tool-settings__stack{display:grid;gap:8px}.editor-toggle-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.editor-toggle-row--embedded{min-height:28px;color:var(--ink);font-size:.78rem}.editor-toggle-row__label{min-width:0;line-height:1.25}.editor-toggle-row__control{position:relative;width:22px;height:22px}.editor-toggle-row__input{position:absolute;top:0;right:0;bottom:0;left:0;margin:0;opacity:0;cursor:pointer}.editor-toggle-row__box{position:relative;display:block;width:100%;height:100%;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);box-shadow:inset 0 0 0 1px #ffffff61}.editor-toggle-row__box:after{content:"";position:absolute;left:50%;top:50%;width:6px;height:10px;border-right:2px solid var(--bg);border-bottom:2px solid var(--bg);opacity:0;transform:translate(-50%,-62%) rotate(45deg)}.editor-toggle-row__input:focus-visible+.editor-toggle-row__box{outline:2px solid rgba(31,108,224,.55);outline-offset:2px}.editor-toggle-row__input:checked+.editor-toggle-row__box{border-color:var(--ink);background:var(--ink);box-shadow:none}.editor-toggle-row__input:checked+.editor-toggle-row__box:after{opacity:1}.editor-toggle-row.is-disabled{opacity:.56}.editor-toggle-row.is-disabled .editor-toggle-row__input{cursor:not-allowed}.editor-tools--embedded-chat .editor-field--embedded input:not([type=checkbox]),.editor-tools--embedded-chat .editor-field--embedded select{min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink)}.editor-tools--embedded-chat .editor-field--embedded-palette select,.editor-tools--embedded-chat .editor-field--embedded-select select{background:var(--panel-soft)}.editor-tools--embedded-chat .editor-field--embedded input[type=range]{padding:0;accent-color:var(--ink)}.editor-embedded-size-meter{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}.editor-embedded-size-meter span{height:8px;border:1px solid var(--ink);background:var(--muted)}.editor-embedded-size-meter span.is-active{background:var(--panel-soft)}.editor-active-color-card{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2)}.editor-active-color-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.editor-active-color-chip{width:28px;height:28px;flex:0 0 28px;border-radius:3px;box-shadow:inset 0 0 0 1px #00000026}.editor-active-color-copy{display:grid;gap:2px;min-width:0}.editor-active-color-copy strong{color:var(--ink);font-family:var(--font-mono);font-size:11px;font-weight:500;line-height:1;text-transform:uppercase}.editor-active-color-copy span{color:var(--ink-mute);font-family:var(--font-mono);font-size:9px;line-height:1}.editor-color-section--embedded>.editor-embedded-panel:first-child{grid-template-columns:minmax(0,1fr) auto;align-items:center}.editor-color-section--embedded>.editor-embedded-panel:first-child .editor-embedded-panel-kicker{grid-column:1}.editor-color-section--embedded>.editor-embedded-panel:first-child .editor-field--embedded-palette{grid-column:2;justify-self:end;width:108px}.editor-color-section--embedded>.editor-embedded-panel:first-child .editor-active-color-field,.editor-color-section--embedded>.editor-embedded-panel:first-child .editor-palette-preview--embedded{grid-column:1 / -1}.editor-palette-preview--embedded{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:0;border:0;background:transparent;overflow:visible}.editor-palette-preview--embedded .editor-palette-swatch{aspect-ratio:1;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #00000014}.editor-palette-preview--embedded .editor-palette-swatch.is-active{position:relative;z-index:2;transform:scale(1.05);outline:2px solid var(--ink);outline-offset:1px;box-shadow:0 0 0 4px var(--bg),0 0 0 5px var(--accent)}.editor-brush-size-row{display:flex;align-items:center;gap:8px}.editor-brush-size-preview{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border:1px solid var(--line);border-radius:3px;background:var(--panel-2)}.editor-brush-size-preview span{width:var(--brush-preview-size);height:var(--brush-preview-size);background:var(--brush-preview-color)}.editor-brush-size-preview--circle span{border-radius:999px}.editor-brush-size-row input[type=range]{flex:1;min-width:0;accent-color:var(--accent)}.editor-brush-size-value{width:28px;flex:0 0 28px;color:var(--ink-soft);font-family:var(--font-mono);font-size:11px;text-align:right}.editor-brush-shape-control{display:inline-grid;grid-template-columns:repeat(2,24px);gap:4px;width:max-content}.editor-brush-shape-button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink-soft)}.editor-brush-shape-button:hover,.editor-brush-shape-button.is-active{border-color:var(--accent);color:var(--ink);background:var(--accent-soft)}.editor-brush-shape-icon{display:block;width:13px;height:13px;background:currentColor}.editor-brush-shape-icon--circle{border-radius:999px}.editor-tool-settings,.editor-layer-section{display:grid;gap:8px;margin-top:10px}.editor-tool-settings h2,.editor-layer-header h2{margin:0;color:var(--ink-soft);font-family:var(--font-mono);font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}.editor-tool-settings--embedded,.editor-layer-section--embedded{gap:6px;margin-top:8px}.editor-layer-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.editor-layer-list{display:grid;gap:6px}.editor-chip--compact{min-height:26px;min-width:0;padding:0 6px;column-gap:4px;font-size:.68rem}.editor-layer-add-button{min-width:58px;justify-content:center;white-space:nowrap}.editor-layer-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);gap:6px;align-items:center}.editor-layer-row.is-active .editor-layer-main{border-color:#1f6ce0e0;box-shadow:0 0 0 1px #1f6ce03d}.editor-layer-main{min-height:34px;padding:0 10px;border:1px solid rgba(44,41,37,.08);border-radius:var(--radius-md);background:#ffffffe0;color:var(--ink);text-align:left}.editor-layer-card{display:grid;gap:4px;padding:4px;border:1px solid var(--ink);background:#d6cccdb8;box-shadow:inset 0 0 0 1px #f3f6f7b3}.editor-layer-card.is-active{background:#f3ecf285;box-shadow:inset 0 0 0 1px #1f6ce03d}.editor-layer-card.is-dragging{opacity:.56}.editor-layer-card.is-drop-target{box-shadow:inset 0 0 0 1px #1f6ce03d,0 0 0 1px #1f6ce0e0}.editor-layer-main-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:stretch}.editor-layer-main--embedded{width:100%;min-height:32px;padding:0 8px;border:1px solid var(--ink);border-radius:0;background:var(--panel-soft)}.editor-layer-main--embedded.is-hidden{opacity:.58}.editor-layer-main__name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-display);font-size:.5rem;letter-spacing:.05em;text-transform:uppercase;line-height:1}.editor-layer-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.editor-layer-action-chip{padding:0;justify-content:center;font-family:var(--font-display);font-size:.92rem;line-height:1}.editor-layer-action-chip:disabled{opacity:.48}.editor-layer-grip{min-width:28px;width:28px;padding:0;justify-content:center;font-family:var(--font-display);font-size:1.05rem;line-height:1;cursor:grab}.editor-layer-grip:active{cursor:grabbing}.editor-tools--embedded-chat .editor-field--embedded-select{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;min-height:26px;gap:10px}.editor-modes-select-wrap{position:relative;width:110px;height:26px}.editor-modes-select-wrap:after{content:"";position:absolute;right:8px;top:50%;width:6px;height:6px;border-right:1px solid var(--ink-soft);border-bottom:1px solid var(--ink-soft);transform:translateY(-65%) rotate(45deg);pointer-events:none}.editor-tools--embedded-chat .editor-modes-select-wrap select{width:110px;height:26px;min-height:26px;padding:0 24px 0 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink);font-size:12px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.editor-toggle-row--embedded{grid-template-columns:minmax(0,1fr) 110px;min-height:26px}.editor-toggle-row--embedded .editor-toggle-row__control{justify-self:end}.editor-axis-toggle-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;min-height:26px;gap:10px;color:var(--ink);font-size:.78rem}.editor-axis-toggle-row__label{min-width:0;line-height:1.25}.editor-axis-toggle-row__choices{display:inline-flex;justify-content:flex-end;gap:12px;width:110px}.editor-axis-toggle-row__choice{display:inline-grid;grid-template-columns:auto 22px;align-items:center;gap:4px;color:var(--ink);line-height:1}.editor-layer-add-icon-button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink);font-family:var(--font-mono);font-size:14px}.editor-layer-list--compact{gap:4px}.editor-layer-compact-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;width:100%;min-height:36px;padding:4px 6px;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--ink);text-align:left}.editor-layer-compact-row.is-active{border-color:var(--accent);background:var(--accent-soft)}.editor-layer-compact-row.is-hidden .editor-layer-compact-name{color:var(--ink-mute)}.editor-layer-compact-row.is-locked .editor-layer-compact-name{color:var(--ink-soft)}.editor-layer-compact-main{display:flex;align-items:center;gap:8px;min-width:0;min-height:28px;padding:0;border:0;background:transparent;color:inherit;text-align:left}.editor-layer-compact-thumb{width:22px;height:22px;flex:0 0 22px;border:1px solid var(--line);border-radius:3px;background:linear-gradient(135deg,rgba(255,255,255,.42),transparent),var(--panel-2)}.editor-layer-compact-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500}.editor-layer-compact-actions{display:inline-flex;align-items:center;gap:1px}.editor-layer-compact-action{display:inline-flex;align-items:center;justify-content:center;width:18px;height:20px;padding:0;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--ink-soft);font-family:var(--font-display);font-size:11px;line-height:1}.editor-layer-compact-action svg{width:13px;height:13px}.editor-layer-compact-action:hover:not(:disabled),.editor-layer-compact-action:focus-visible,.editor-layer-compact-main:focus-visible{border-color:var(--line);background:var(--panel-2);color:var(--ink);outline:none}.editor-layer-compact-action--danger:hover:not(:disabled),.editor-layer-compact-action--danger:focus-visible{border-color:#c645246b;background:var(--accent-soft);color:var(--accent)}.editor-layer-compact-action:disabled{opacity:.35;cursor:not-allowed}.editor-layer-rename-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px;background:#24192442}.editor-layer-rename-dialog{width:min(420px,calc(100vw - 40px));border:1px solid var(--ink);background:var(--panel-strong);box-shadow:0 0 0 1px #f3f6f780,0 18px 40px #120d1238}.editor-layer-rename-form{display:grid;gap:14px;padding:14px}.editor-layer-rename-field{display:grid;gap:6px}.editor-layer-rename-title{color:var(--ink-soft);font-family:var(--font-display);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.editor-layer-rename-input{width:100%;min-height:40px;padding:0 10px;border:1px solid var(--ink);border-radius:0;background:var(--panel-soft);color:var(--ink);font-family:var(--font-display);font-size:.9rem}.editor-layer-rename-input:focus{outline:2px solid rgba(31,108,224,.55);outline-offset:2px}.editor-layer-rename-actions{display:flex;justify-content:flex-end;gap:6px}.editor-layer-rename-actions .editor-primary-button,.editor-layer-rename-actions .editor-secondary-button{min-height:34px;padding:0 14px}.new-canvas-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:20px;background:#24192452}.new-canvas-dialog{width:min(420px,calc(100vw - 40px));border:1px solid var(--ink);background:var(--panel-strong);box-shadow:0 0 0 1px #f3f6f780,0 18px 40px #120d1238}.new-canvas-dialog__header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid var(--ink);background:var(--panel)}.new-canvas-dialog__title{margin:0;color:var(--ink);font-family:var(--font-display);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase}.new-canvas-dialog__close{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:1px solid var(--ink);border-radius:0;background:var(--panel-strong);color:var(--ink);font-family:var(--font-display);font-size:.95rem;line-height:1;cursor:pointer}.new-canvas-dialog__close:hover{background:#ece6ea}.new-canvas-form{display:grid;gap:12px;padding:14px}.new-canvas-form__row{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:end}.new-canvas-form__field{display:grid;gap:5px;color:var(--ink-soft);font-family:var(--font-display);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase}.new-canvas-form__field input,.new-canvas-form__field select{width:100%;min-height:34px;padding:0 8px;border:1px solid var(--ink);border-radius:0;background:var(--panel-soft);color:var(--ink);font-family:var(--font-display);font-size:.9rem;text-transform:none}.new-canvas-form__field input:focus,.new-canvas-form__field select:focus{outline:2px solid rgba(31,108,224,.55);outline-offset:2px}.new-canvas-form__select{width:100%}.new-canvas-form__select .pixel-select__trigger{width:100%;min-height:34px;padding:0 8px;border-color:var(--ink);border-radius:0;background:var(--panel-soft);color:var(--ink);font-size:.9rem}.new-canvas-form__swap{display:inline-flex;align-items:center;justify-content:center;width:30px;min-height:34px;margin-bottom:0;padding:0;border:1px solid var(--ink);border-radius:0;background:var(--panel-strong);color:var(--ink);font-family:var(--font-display);font-size:.95rem;line-height:1;cursor:pointer}.new-canvas-form__swap:hover{background:#ece6ea}.new-canvas-form__hint{margin:0;color:var(--ink-soft);font-family:var(--font-display);font-size:.62rem;letter-spacing:.04em}.new-canvas-form__actions{display:flex;justify-content:flex-end;gap:6px}.new-canvas-form__actions .editor-primary-button,.new-canvas-form__actions .editor-secondary-button{min-height:34px;padding:0 14px}.business-info-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:55;display:grid;place-items:center;padding:20px;background:#24192457}.business-info-dialog{width:min(520px,calc(100vw - 40px));max-height:min(720px,calc(100vh - 40px));overflow:auto;border:1px solid var(--ink);background:var(--panel-strong);box-shadow:0 0 0 1px #f3f6f780,0 18px 40px #120d123d}.business-info-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--ink);background:var(--panel)}.business-info-dialog__kicker{margin:0 0 4px;color:var(--ink-soft);font-family:var(--font-display);font-size:.58rem;letter-spacing:.12em;text-transform:uppercase}.business-info-dialog__header h2{margin:0;color:var(--ink);font-family:var(--font-display);font-size:1.05rem;letter-spacing:0}.business-info-dialog__close{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1px solid var(--ink);border-radius:0;background:var(--panel-strong);color:var(--ink);font-family:var(--font-display);font-size:1rem;line-height:1;cursor:pointer}.business-info-dialog__close:hover{background:#ece6ea}.business-info-dialog__details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;border-bottom:1px solid var(--line);background:var(--line)}.business-info-dialog__details div{min-width:0;padding:12px 14px;background:var(--panel-strong)}.business-info-dialog__details dt{margin:0 0 4px;color:var(--ink-soft);font-family:var(--font-display);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase}.business-info-dialog__details dd{margin:0;color:var(--ink);font-family:var(--font-mono);font-size:.82rem;overflow-wrap:anywhere}.business-info-dialog a{color:var(--accent);text-decoration:none}.business-info-dialog a:hover{text-decoration:underline}.business-info-dialog__section{padding:14px;border-bottom:1px solid var(--line-soft)}.business-info-dialog__section h3{margin:0 0 8px;color:var(--ink);font-family:var(--font-display);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}.business-info-dialog__section p,.business-info-dialog__section li{color:var(--ink-soft);font-size:.82rem;line-height:1.55}.business-info-dialog__section p{margin:0}.business-info-dialog__section ul{margin:0;padding-left:18px}.business-info-dialog__actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:12px 14px}.business-info-dialog__actions a{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink);font-family:var(--font-display);font-size:.7rem}@media(max-width:520px){.business-info-dialog__details{grid-template-columns:1fr}}.auth-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:54;display:grid;place-items:center;padding:20px;background:#24192457}.auth-dialog{width:min(440px,calc(100vw - 40px));border:1px solid var(--ink);background:var(--panel-strong);box-shadow:0 0 0 1px #f3f6f780,0 18px 40px #120d123d}.auth-dialog__header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid var(--ink);background:var(--panel)}.auth-dialog__header h2{margin:0;color:var(--ink);font-family:var(--font-display);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase}.auth-dialog__close{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:1px solid var(--ink);border-radius:0;background:var(--panel-strong);color:var(--ink);font-family:var(--font-display);font-size:.95rem;line-height:1;cursor:pointer}.auth-dialog__form{display:grid;gap:11px;padding:14px}.auth-dialog__mode-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--ink);background:var(--panel-soft)}.auth-dialog__mode-switch button{min-height:34px;border:0;border-radius:0;background:transparent;color:var(--ink-soft);font-family:var(--font-display);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.auth-dialog__mode-switch button+button{border-left:1px solid var(--ink)}.auth-dialog__mode-switch button.is-active{background:var(--ink);color:var(--bg)}.auth-dialog__divider{display:flex;align-items:center;gap:9px;color:var(--ink-mute);font-family:var(--font-display);font-size:.56rem;letter-spacing:.1em;text-transform:uppercase}.auth-dialog__divider:before,.auth-dialog__divider:after{content:"";height:1px;flex:1;background:#2a232638}.auth-dialog__field{display:grid;gap:5px;color:var(--ink-soft);font-family:var(--font-display);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase}.auth-dialog__field input{width:100%;min-height:36px;padding:0 9px;border:1px solid var(--ink);border-radius:0;background:var(--panel-soft);color:var(--ink);font-family:var(--font-display);font-size:.9rem;letter-spacing:0;text-transform:none}.auth-dialog__field input:focus{outline:2px solid rgba(31,108,224,.55);outline-offset:2px}.auth-dialog__hint{margin:-3px 0 0;color:var(--ink-mute);font-size:.72rem;line-height:1.35}.auth-dialog__error{margin:0;padding:9px 10px;border:1px solid #6a3038;background:#efb5b1;color:#5f1f24;font-size:.76rem}.auth-dialog__notice{margin:0;padding:9px 10px;border:1px solid #b8acb6;background:#ebe6e8;color:#3a2b3d;font-size:.76rem}.auth-dialog__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.auth-dialog__actions .editor-primary-button,.auth-dialog__actions .editor-secondary-button,.auth-dialog__provider{min-height:34px;padding:0 12px;border:1px solid var(--ink);border-radius:var(--radius-sm);font-family:var(--font-display);font-size:.72rem}.auth-dialog__provider{width:100%;background:var(--panel-soft);color:var(--ink)}.auth-dialog__close:disabled,.auth-dialog__actions .editor-primary-button:disabled,.auth-dialog__actions .editor-secondary-button:disabled,.auth-dialog__provider:disabled{opacity:.55;cursor:not-allowed}.token-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:54;display:grid;place-items:center;padding:20px;background:#24192457}.token-dialog{width:min(520px,calc(100vw - 40px));border:1px solid var(--ink);background:var(--panel-strong);box-shadow:0 0 0 1px #f3f6f780,0 18px 40px #120d123d}.token-dialog__header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid var(--ink);background:var(--panel)}.token-dialog__header h2{margin:0;color:var(--ink);font-family:var(--font-display);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase}.token-dialog__close{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:1px solid var(--ink);border-radius:0;background:var(--panel-strong);color:var(--ink);font-family:var(--font-display);font-size:.95rem;line-height:1;cursor:pointer}.token-dialog__body{display:grid;gap:8px;padding:14px}.token-dialog__summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid rgba(42,35,38,.34);border-radius:var(--radius-sm);background:#cadbdfad}.token-dialog__summary span{display:grid;gap:2px}.token-dialog__summary strong{font-family:var(--font-display);font-size:.92rem}.token-dialog__summary em,.token-dialog__summary i{color:var(--ink-mute);font-size:.72rem;font-style:normal}.token-pack-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:66px;padding:10px;border:1px solid var(--ink);border-radius:var(--radius-sm);background:var(--panel-soft);color:var(--ink);text-align:left}.token-pack-row--pass{background:#ebdcd8}.token-pack-row span{display:flex;min-width:0;flex-direction:column;gap:3px}.token-pack-row strong,.token-pack-row i{font-family:var(--font-display);font-size:.78rem;font-style:normal}.token-pack-row__price{align-items:flex-end;flex:0 0 auto;text-align:right}.token-pack-row__price strong{font-size:.88rem}.token-pack-row em,.token-dialog__empty,.token-dialog__note{color:var(--ink-soft);font-size:.74rem;font-style:normal}.token-dialog__checkout-ready{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid rgba(195,70,45,.72);border-radius:var(--radius-sm);background:#f3f6f7c7}.token-dialog__checkout-ready span{display:grid;min-width:0;gap:3px}.token-dialog__checkout-ready strong{font-family:var(--font-display);font-size:.78rem}.token-dialog__checkout-ready em{color:var(--ink-mute);font-size:.72rem;font-style:normal}.token-dialog__checkout-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:28px;padding:6px 10px;border:1px solid var(--ink);border-radius:var(--radius-sm);background:var(--ink);color:#fff7fb;font-family:var(--font-display);font-size:.72rem;text-decoration:none}.token-dialog__note{margin:4px 0 0;color:var(--ink-mute);line-height:1.35}.token-dialog__close:disabled,.token-pack-row:disabled{opacity:.55;cursor:not-allowed}@media(max-width:520px){.token-dialog__summary,.token-pack-row,.token-dialog__checkout-ready{align-items:stretch;flex-direction:column}.token-pack-row__price,.token-dialog__checkout-link{align-items:flex-start;text-align:left}}.canvas-delete-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:52;display:grid;place-items:center;padding:18px;background:#24192461}.canvas-delete-dialog{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;width:min(460px,calc(100vw - 36px));padding:14px;border:1px solid var(--ink);background:var(--panel-strong);box-shadow:0 0 0 1px #f3f6f780,0 18px 40px #120d123d}.canvas-delete-dialog__thumb{display:grid;place-items:center;width:76px;height:76px;border:1px solid var(--ink);background:linear-gradient(45deg,rgba(44,41,37,.07) 25%,transparent 25%),linear-gradient(-45deg,rgba(44,41,37,.07) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(44,41,37,.07) 75%),linear-gradient(-45deg,transparent 75%,rgba(44,41,37,.07) 75%),var(--panel-soft);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;overflow:hidden}.canvas-delete-dialog__thumb img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.canvas-delete-dialog__body{display:grid;gap:8px;min-width:0}.canvas-delete-dialog__kicker{margin:0;color:var(--accent);font-family:var(--font-display);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase}.canvas-delete-dialog h2{margin:0;overflow-wrap:anywhere;color:var(--ink);font-family:var(--font-display);font-size:1rem}.canvas-delete-dialog p{margin:0;color:var(--ink-soft);font-size:.78rem;line-height:1.45}.canvas-delete-dialog__actions{display:flex;justify-content:flex-end;gap:7px;margin-top:4px}.canvas-delete-dialog__actions .editor-secondary-button,.canvas-delete-dialog__danger{min-height:32px;padding:0 12px;border:1px solid var(--ink);border-radius:var(--radius-sm);font-family:var(--font-display);font-size:.72rem}.canvas-delete-dialog__danger{background:var(--accent);color:#fff}.canvas-delete-dialog__danger:disabled,.canvas-delete-dialog__actions .editor-secondary-button:disabled{opacity:.55;cursor:not-allowed}.editor-embedded-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}.editor-embedded-status span{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:0 4px;border:1px solid var(--ink);background:var(--panel-strong);color:var(--ink);font-family:var(--font-display);font-size:.56rem;letter-spacing:.06em;text-transform:uppercase}.editor-preview-toolbar--embedded-chat .editor-chip,.editor-preview-toolbar--embedded-chat .editor-preview-readout span{min-height:26px;padding:0 8px;border:1px solid var(--ink);border-radius:0;background:var(--panel-strong);color:var(--ink);box-shadow:none}.editor-preview-toolbar--embedded-chat .editor-chip--static{background:var(--ink-soft);color:var(--bg)}.editor-preview-toolbar--embedded-chat .editor-chip-key{color:#241924c2}.editor-preview-toolbar--embedded-chat .editor-chip--static .editor-chip-key{color:#f3ecf2bd}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary){flex-wrap:nowrap;gap:2px;align-items:center;border:0;background:transparent;padding:0}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) .editor-chip{min-width:30px;width:30px;height:28px;min-height:28px;padding:0;column-gap:0;border:0;background:transparent;color:var(--ink-soft);display:inline-flex;align-items:center;justify-content:center}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) .editor-chip:hover:not(:disabled):not(.editor-chip--static){background:var(--panel-soft);color:var(--ink)}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) .editor-chip--static{background:var(--bg);color:var(--accent);box-shadow:0 1px #4a38260f}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) .editor-chip-label,.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) .editor-chip-key{display:none}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) .editor-tool-glyph,.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) .editor-tool-glyph svg{width:15px;height:15px}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat>.editor-preview-toolbar-main:not(.editor-preview-toolbar-secondary) #undo-action{margin-left:6px;border-left:1px solid var(--line);padding-left:8px;width:36px}.editor-preview-toolbar--embedded-chat .editor-preview-readout{gap:4px}.editor-preview-toolbar--embedded-chat .editor-preview-readout span{font-size:.64rem}.editor-empty{display:grid;place-items:center;height:100%;padding:24px;text-align:center}.chat-shell{display:grid;grid-template-columns:minmax(270px,304px) minmax(0,1fr);gap:8px;height:100%;padding:8px}.chat-shell--sidebar-collapsed{grid-template-columns:34px minmax(0,1fr)}.chat-sidebar,.chat-main{border:1px solid var(--ink);border-radius:var(--radius-xl);background:var(--panel);box-shadow:none}.chat-sidebar{grid-column:1;grid-row:1;display:flex;min-height:0;flex-direction:column;gap:8px;padding:8px}.chat-sidebar__header,.chat-session-card,.chat-list-panel,.chat-turn-card,.chat-composer,.chat-empty-card{border:1px solid var(--ink);border-radius:var(--radius-lg);background:var(--panel-strong);box-shadow:inset 0 0 0 1px #ffffff38}.chat-sidebar__header{display:grid;gap:8px;padding:10px 10px 12px}.chat-sidebar__header-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.chat-sidebar__actions{display:grid;gap:6px}.chat-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border:1px solid var(--ink);border-radius:0;background:var(--panel-soft);color:var(--ink);font-family:var(--font-display);font-size:.94rem;line-height:1}.chat-sidebar-toggle__icon{display:inline-flex;align-items:center;justify-content:center;width:100%}.chat-sidebar-toggle--collapsed{grid-column:1;grid-row:1;align-self:stretch;width:100%;min-width:0;height:auto;min-height:0;padding:10px 0;background:var(--panel-strong)}.chat-sidebar-toggle--collapsed .chat-sidebar-toggle__label{display:none}.chat-sidebar__canvas-picker{display:grid;gap:5px;color:var(--ink-soft);font-family:var(--font-display);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase}.chat-sidebar__canvas-picker select{width:100%;min-height:34px;padding:0 8px;border:1px solid var(--ink);border-radius:0;background:var(--panel-soft);color:var(--ink);text-transform:none}.chat-kicker{margin:0 0 6px;color:var(--ink-soft);font-family:var(--font-display);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.chat-sidebar__header h1,.chat-empty-card h2,.chat-turn-card h3,.chat-session-card strong{margin:0;font-family:var(--font-display)}.chat-sidebar__header h1{color:var(--ink);font-size:2rem;line-height:.95}.chat-sidebar__copy,.chat-session-card p,.chat-empty-card p,.chat-turn-card__prompt,.chat-turn-card__placeholder,.chat-list-item__copy span{margin:0;color:var(--muted);line-height:1.45}.chat-session-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px}.chat-session-card__eyebrow{margin:0 0 6px;color:var(--ink-soft);font-size:.72rem;text-transform:uppercase}.chat-error-banner{margin:0;padding:12px 14px;border:1px solid #6a3038;border-radius:var(--radius-md);background:#efb5b1;color:#5f1f24;font-size:.84rem}.chat-list-panel{display:flex;min-height:0;flex:1;flex-direction:column}.chat-list-panel--library{min-height:220px}.chat-list-panel__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 0}.chat-list-panel__header span{color:var(--ink-soft);font-size:.72rem}.chat-library-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:6px 10px 2px}.chat-library-tabs button{display:flex;align-items:center;justify-content:space-between;min-width:0;min-height:30px;gap:6px;padding:0 8px;border:1px solid var(--ink);border-radius:0;background:var(--panel);color:var(--ink-soft);text-align:left}.chat-library-tabs button:hover,.chat-library-tabs button:focus-visible{background:var(--panel-soft);color:var(--ink);outline:none}.chat-library-tabs button.is-active{background:var(--panel-soft);color:var(--ink)}.chat-library-tabs button span{color:var(--muted);font-size:.7rem}.chat-list-panel__body{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;overflow-y:auto;padding:8px 10px 10px;scrollbar-width:auto;scrollbar-color:var(--muted) var(--panel-soft)}.chat-list-search{display:grid;gap:4px}.chat-list-search__label{color:var(--ink-soft);font-family:var(--font-display);font-size:.58rem;letter-spacing:.08em;text-transform:uppercase}.chat-list-search input{width:100%;min-height:32px;padding:0 8px;border:1px solid var(--ink);border-radius:0;background:var(--panel-soft);color:var(--ink)}.chat-list-item{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;width:100%;align-items:center;padding:8px 10px;border:1px solid var(--ink);border-radius:var(--radius-md);background:var(--panel);text-align:left}.chat-list-item.is-active{border-color:var(--ink);background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}.chat-list-item__thumb{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border-radius:var(--radius-md);border:1px dashed rgba(42,35,38,.14);background:linear-gradient(45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(-45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(44,41,37,.05) 75%),linear-gradient(-45deg,transparent 75%,rgba(44,41,37,.05) 75%),#f6efe4eb;background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}.chat-list-item__thumb img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.chat-list-item__thumb span,.chat-turn-card__placeholder{padding:0 8px;text-align:center;font-size:.72rem}.chat-list-item__copy{display:flex;min-width:0;flex-direction:column;justify-content:center}.chat-list-item__copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-main{display:flex;min-width:0;min-height:0;flex-direction:column;gap:6px;padding:6px;background:var(--panel);box-shadow:none}.chat-turn-card__status span{padding:3px 8px;border:1px solid var(--ink);border-radius:0;background:var(--panel);color:var(--ink);font-size:.66rem}.chat-thread{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;overflow-y:auto;padding:0 0 6px}.chat-thread--workspace{overflow:hidden;padding-bottom:0}.chat-editor-panel{display:flex;min-width:0;min-height:0;flex:1;gap:6px}.chat-editor-panel>*{min-width:0;min-height:0;flex:1}.chat-turn-card{display:grid;gap:14px;padding:16px}.chat-turn-card__header,.chat-turn-card__footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-turn-card__status{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.chat-turn-card__image-shell{display:grid;place-items:center;min-height:220px;padding:16px;border-radius:var(--radius-md);border:1px dashed rgba(44,41,37,.1);background:linear-gradient(45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(-45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(44,41,37,.05) 75%),linear-gradient(-45deg,transparent 75%,rgba(44,41,37,.05) 75%),#f6efe4eb;background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}.chat-turn-card__image{max-height:360px;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges}.chat-turn-card__outputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.chat-turn-card__outputs--workspace{margin-bottom:2px}.chat-turn-card__footer{color:var(--muted);font-size:.8rem}.chat-empty-state{display:grid;place-items:center;min-height:100%}.chat-empty-card{max-width:720px;padding:16px}.chat-empty-card--hero{background:var(--ink-soft);color:var(--bg)}.chat-empty-card--hero .chat-kicker,.chat-empty-card--hero h2,.chat-empty-card--hero p{color:var(--bg)}.chat-empty-card--editor{display:grid;gap:14px}.chat-empty-card--search{padding:14px}.chat-image-preview-fallback{display:grid;place-items:center;min-height:180px;padding:16px;border-radius:var(--radius-md);border:1px dashed rgba(44,41,37,.1);background:linear-gradient(45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(-45deg,rgba(44,41,37,.05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(44,41,37,.05) 75%),linear-gradient(-45deg,transparent 75%,rgba(44,41,37,.05) 75%),#f6efe4eb;background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}.chat-image-preview-fallback img{max-height:260px;object-fit:contain;image-rendering:pixelated}.chat-empty-card__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:end;padding:5px}.chat-composer__field{display:grid}.chat-composer__field textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--ink);border-radius:var(--radius-md);background:var(--panel-soft);color:var(--ink);line-height:1.35;resize:none}.chat-composer__submit{display:grid;place-items:center;width:42px;min-width:42px;height:42px;min-height:42px;padding:0;border:1px solid var(--ink);border-radius:0;background:var(--ink-soft);color:var(--bg)}.chat-composer__blank{min-width:76px;min-height:42px;padding:0 12px;border-radius:0}.chat-composer__submit svg{width:22px;height:22px}@media(max-width:960px){.editor-layout{grid-template-columns:1fr}.editor-layout--embedded-chat>.editor-tools,.editor-layout--embedded-chat>.editor-preview-card{grid-column:auto;grid-row:auto}.editor-preview-toolbar--embedded-chat{flex-direction:column;align-items:stretch}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-meta{align-items:flex-start}.editor-preview--embedded-chat{min-height:clamp(260px,42vh,560px)}.editor-tools--embedded-chat{overflow-x:auto;overflow-y:auto;padding:12px;border-top:1px solid var(--ink);border-left:0}.editor-tools--embedded-chat .editor-tool-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px);gap:12px;align-items:start}.editor-tools--embedded-chat .editor-color-section,.editor-tools--embedded-chat .editor-field{margin-bottom:0}.editor-tools--embedded-chat .editor-color-section{gap:6px}.editor-tools--embedded-chat .editor-field input,.editor-tools--embedded-chat .editor-field select{min-height:36px}.editor-tools-resizer{display:none}.chat-turn-card__header,.chat-turn-card__footer,.chat-session-card{flex-direction:column;align-items:stretch}.chat-turn-card__status{justify-content:flex-start}}@media(max-width:820px){body{overflow:auto}.chat-shell,.editor-shell,.chat-shell--sidebar-collapsed{height:auto;min-height:100%;grid-template-columns:1fr}.chat-shell--sidebar-collapsed{grid-template-rows:auto minmax(0,1fr)}.chat-main,.chat-sidebar,.chat-sidebar-toggle--collapsed{grid-column:auto;grid-row:auto}.chat-sidebar-toggle--collapsed{justify-content:flex-start;gap:8px;width:100%;min-height:40px;padding:0 12px}.chat-sidebar-toggle--collapsed .chat-sidebar-toggle__label{display:inline;font-family:var(--font-display);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.editor-main-shell--embedded-chat{padding:12px}.editor-sidebar{min-height:320px}.editor-tools--embedded-chat .editor-tool-group{grid-template-columns:1fr}.chat-composer{grid-template-columns:1fr 1fr}.chat-composer__field{grid-column:1 / -1}.chat-composer__blank,.chat-composer__submit{width:100%;min-width:0}}.chat-shell--studio{grid-template-columns:minmax(0,1fr) 320px;gap:0;padding:0 0 24px;background:var(--bg)}.chat-shell--studio-aside-collapsed{grid-template-columns:minmax(0,1fr) 44px}.chat-shell--studio .chat-main{gap:0;padding:0;border:0;border-radius:0;background:transparent}.chat-shell--studio .chat-thread,.chat-shell--studio .chat-editor-panel{gap:0;padding:0}.chat-shell--studio .chat-thread--workspace,.chat-shell--studio .editor-main-shell--embedded-chat{overflow:visible}.chat-shell--studio .editor-main-shell--embedded-chat{border:0;background:transparent}.studio-aside{display:flex;flex-direction:column;min-height:0;height:calc(100vh - 68px);height:calc(100dvh - 68px);gap:0;margin-top:44px;padding:0 14px calc(32px + env(safe-area-inset-bottom,0px));border:0;border-left:1px solid var(--line);border-radius:0;background:var(--panel);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scroll-padding-bottom:calc(32px + env(safe-area-inset-bottom,0px));scrollbar-width:auto;scrollbar-color:var(--muted) var(--panel-soft)}.studio-aside--collapsed{align-items:center;padding:0;overflow:hidden;scrollbar-width:none}.studio-aside--collapsed::-webkit-scrollbar{display:none}.studio-aside .chat-error-banner{margin:0}.studio-aside__spacer{flex:1}.studio-hero{display:flex;flex-direction:column;gap:9px;margin:0 -14px;padding:18px 14px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--panel-strong)}.studio-hero__title{display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-size:.9rem;font-weight:600;color:var(--ink)}.studio-aside-toggle{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;margin-left:0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink-soft);font-family:var(--font-display);font-size:1rem;line-height:1}.studio-aside-toggle:hover,.studio-aside-toggle:focus-visible{border-color:#2a232685;background:var(--bg);color:var(--ink);outline:none}.studio-aside-toggle--collapsed{width:30px;height:30px;min-width:30px;margin:10px 0 0}.studio-aside-toggle--dock{margin-right:2px;border-color:#2a23265c;background:var(--bg)}.studio-hero__title svg{display:inline-block;color:var(--ink)}.studio-hero__badge{margin-left:auto;padding:2px 6px;background:var(--ink);color:var(--bg);font-family:var(--font-display);font-size:.55rem;letter-spacing:.08em}.studio-hero__lede{margin:0;color:var(--ink-soft);font-size:.78rem;line-height:1.45}.studio-hero .chat-composer{padding:10px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg);grid-template-columns:minmax(0,1fr);gap:9px;box-shadow:var(--shadow-sm)}.studio-hero .chat-composer__field textarea{min-height:68px;background:transparent;border:0;outline:none;padding:0;resize:none}.studio-hero .chat-composer__field textarea:focus{outline:none}.chat-composer__toolbar{display:flex;align-items:center;gap:6px}.chat-composer__toolbar-spacer{flex:1}.chat-composer__mini-select{min-width:0;padding:3px 6px;border:1px solid var(--line);border-radius:3px;background:var(--panel-2);color:var(--ink-soft);font-size:11px}.pixel-select{position:relative;min-width:0;font-family:var(--font-display)}.pixel-select__trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:28px;min-height:28px;padding:0 12px 0 8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink-soft);font-family:var(--font-display);font-size:11px;line-height:1;white-space:nowrap}.pixel-select__trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.pixel-select__trigger:hover:not(:disabled),.pixel-select.is-open .pixel-select__trigger{border-color:#2a232694;background:var(--panel);color:var(--ink)}.pixel-select__trigger:focus-visible{outline:2px solid rgba(31,108,224,.55);outline-offset:2px}.pixel-select__chevron{display:inline-flex;justify-content:center;width:14px;flex:0 0 14px;font-size:.72rem;line-height:1;transform:translateY(-1px)}.pixel-select__menu{position:absolute;top:calc(100% + 4px);left:0;z-index:40;min-width:100%;max-height:230px;overflow-y:auto;padding:4px;border:1px solid rgba(18,13,18,.72);border-radius:var(--radius-md);background:#565456fa;box-shadow:0 10px 24px #120d1247}.pixel-select__option{display:flex;align-items:center;gap:6px;width:100%;min-height:28px;padding:0 8px;border:0;border-radius:var(--radius-sm);background:transparent;color:#ffffffe0;font-family:var(--font-display);font-size:11px;text-align:left;white-space:nowrap}.pixel-select__option:hover:not(:disabled),.pixel-select__option:focus-visible,.pixel-select__option.is-selected{background:#ffffff1f;color:#fff;outline:none}.pixel-select__option:disabled{opacity:.48;cursor:default}.pixel-select__check{width:12px;flex:0 0 12px;color:#fff;text-align:center}.chat-composer__select--size{width:84px}.studio-hero .chat-composer__submit{width:auto;min-width:0;height:26px;min-height:26px;padding:0 12px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;gap:6px;background:var(--accent);color:#fff;font-weight:600}.studio-hero .chat-composer__submit:disabled{background:var(--accent);color:#fff;opacity:1;cursor:not-allowed}.studio-hero .chat-composer__submit.is-generating{background:var(--ink)}.studio-hero .chat-composer__submit svg{width:14px;height:14px}.chat-composer__submit-spinner,.mobile-composer__submit-spinner{width:12px;height:12px;flex:0 0 12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:generation-spin .72s linear infinite}.chat-composer__submit.is-generating svg{display:none}@keyframes generation-spin{to{transform:rotate(360deg)}}.studio-generation-debug{margin:0;padding:6px 7px;border:1px dashed var(--line);border-radius:var(--radius-sm);background:#ffffff52;color:var(--ink);font-family:var(--font-mono);font-size:.68rem;line-height:1.35;overflow-wrap:anywhere}.chat-composer__submit-label{font-family:var(--font-display);font-size:11px;font-weight:600;letter-spacing:0}.chat-composer__submit-cost{color:#ffffffc2;font-family:var(--font-mono);font-size:10px;font-weight:500}.studio-token-meter{display:grid;grid-template-columns:auto minmax(0,max-content) minmax(48px,1fr) max-content;align-items:center;gap:8px;min-height:18px;color:var(--ink-soft);font-family:var(--font-mono);font-size:11px;line-height:1}.studio-token-meter__balance{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-token-meter__gem{width:9px;height:9px;border:1px solid var(--ink-soft);transform:rotate(45deg)}.studio-token-meter__bar{position:relative;height:2px;min-width:56px;background:#2a23262e}.studio-token-meter__bar span{position:absolute;inset:0 auto 0 0;width:var(--token-meter-percent, 0%);background:var(--accent)}.studio-token-meter__cost{color:var(--ink-mute);text-align:right;white-space:nowrap}.studio-new-canvas-button{padding:3px 8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:transparent;color:var(--ink-soft);font-size:11px}.studio-new-canvas-button--wide{display:flex;align-items:center;width:100%;min-height:30px;justify-content:center}.studio-new-canvas-button:hover:not(:disabled){background:var(--panel-soft);color:var(--ink)}.studio-new-canvas-button:disabled{opacity:.5;cursor:default}.studio-section{display:flex;flex-direction:column;gap:8px;margin:0 -14px;padding:14px;border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent}.studio-section--canvas-actions{padding:10px 14px;display:flex;flex-direction:column;gap:8px}.studio-canvas-quota{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:6px 10px;font-family:var(--font-body);font-size:.78rem;color:#3c323cbf;background:#ebe6e457;border-radius:6px}.studio-canvas-quota--blocked{color:#6c2a3a;background:#ebc4c68c}.studio-canvas-quota__upgrade,.mobile-canvas-quota__upgrade{padding:0;border:0;background:transparent;color:inherit;font-family:var(--font-display);font-size:.68rem;text-decoration:underline;text-underline-offset:3px}.studio-canvas-quota__upgrade:disabled,.mobile-canvas-quota__upgrade:disabled{opacity:.5;cursor:not-allowed}.studio-section--store{padding:10px 14px;gap:8px}.studio-token-wallet{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 9px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink);text-align:left}.studio-token-wallet span{display:grid;min-width:0;gap:2px}.studio-token-wallet strong{overflow:hidden;font-family:var(--font-display);font-size:.72rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.studio-token-wallet em{color:var(--ink-mute);font-size:.68rem;font-style:normal;line-height:1.25}.studio-token-wallet__buy{flex:0 0 auto;padding:6px 9px;border:1px solid var(--ink);border-radius:var(--radius-sm);background:var(--ink);color:var(--bg);font-family:var(--font-display);font-size:.64rem;font-style:normal;white-space:nowrap}.studio-token-wallet__buy:hover:not(:disabled){filter:brightness(.98)}.studio-token-wallet__buy:disabled{opacity:.55;cursor:not-allowed}.studio-token-store-note{margin:-2px 2px 0;color:var(--ink-mute);font-size:.68rem;line-height:1.35}.mobile-canvas-quota{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 4px;padding:8px 10px;font-size:.78rem;color:#f3eef0c7;background:#ffffff0f;border-radius:8px}.mobile-canvas-quota--blocked{color:#f3c4c8;background:#6c2a3a73}.studio-section__head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-family:var(--font-display);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.studio-section__count{font-size:.6rem;color:var(--muted)}.studio-recents-search{display:grid;grid-template-columns:14px minmax(0,1fr);align-items:center;gap:5px;min-height:28px;padding:0 8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink-mute)}.studio-recents-search span{font-family:var(--font-display);font-size:.72rem;line-height:1}.studio-recents-search input{width:100%;min-width:0;height:26px;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:.72rem}.studio-recents-search input::placeholder{color:var(--ink-mute)}.studio-recents{display:flex;flex-direction:column;gap:5px;max-height:clamp(170px,31vh,360px);min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-right:3px}.studio-recent{display:flex;align-items:center;gap:8px;width:100%;padding:6px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none}.studio-recent__open{display:flex;align-items:center;gap:8px;min-width:0;flex:1;padding:0;border:0;background:transparent;color:inherit;text-align:left}.studio-recent.is-active{border-color:var(--accent);background:var(--accent-soft)}.studio-recent:hover,.studio-recent:focus-within{border-color:#2a23267a;background:var(--panel);outline:none}.studio-recent.is-active:hover,.studio-recent.is-active:focus-within{border-color:var(--accent);background:var(--accent-soft)}.studio-recent__open:focus-visible,.studio-recent__delete:focus-visible{outline:2px solid rgba(31,108,224,.35);outline-offset:1px}.studio-recent.is-renaming{align-items:flex-start;cursor:default}.studio-recent.is-deleting{opacity:.72}.studio-recent__thumb{display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex-shrink:0;background:var(--bg);border:1px solid var(--line);overflow:hidden}.studio-recent__thumb img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.studio-recent__copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.studio-recent__copy strong{font-family:var(--font-display);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-recent__copy em{font-style:normal;font-family:var(--font-mono);font-size:10px;color:var(--ink-mute)}.studio-recent__delete{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--ink-mute);font-family:var(--font-display);font-size:14px;line-height:1}.studio-recent__delete:hover{border-color:#c645246b;background:var(--accent-soft);color:var(--accent)}.studio-recent__open:disabled,.studio-recent__delete:disabled{cursor:not-allowed}.studio-recent-rename{flex:1;min-width:0;display:grid;gap:5px}.studio-recent-rename input{width:100%;min-width:0;height:26px;padding:0 7px;border:1px solid var(--accent);border-radius:var(--radius-sm);background:var(--bg);color:var(--ink);font-family:var(--font-display);font-size:12px}.studio-recent-rename input:focus{outline:2px solid rgba(31,108,224,.35);outline-offset:1px}.studio-recent-rename__actions{display:flex;justify-content:flex-end;gap:5px}.studio-recent-rename__actions button{min-height:22px;padding:0 7px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink-soft);font-family:var(--font-display);font-size:10px}.studio-recent-rename__actions button[type=submit]{border-color:var(--accent);background:var(--accent);color:#fff}.studio-recent-rename__actions button:disabled{opacity:.55;cursor:not-allowed}.studio-empty{margin:0;padding:6px 4px;color:var(--muted);font-size:.74rem}.studio-canvas-pass-promo{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;width:100%;min-height:58px;padding:8px 9px;border:1px dashed var(--accent);border-radius:var(--radius-md);background:var(--accent-soft);color:var(--ink);text-align:left}.studio-canvas-pass-promo:hover:not(:disabled),.studio-canvas-pass-promo:focus-visible{background:#ebdcd8;outline:none}.studio-canvas-pass-promo:disabled{opacity:.55;cursor:not-allowed}.studio-canvas-pass-promo__icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--accent);border-radius:var(--radius-sm);color:var(--accent);font-family:var(--font-display);font-size:.9rem}.studio-canvas-pass-promo__copy{display:grid;min-width:0;gap:2px}.studio-canvas-pass-promo__copy strong{overflow:hidden;color:var(--ink);font-family:var(--font-display);font-size:.72rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.studio-canvas-pass-promo__copy em{color:#5f1f24;font-size:.68rem;font-style:normal;line-height:1.25}.editor-status-bar{position:fixed;left:0;right:0;bottom:0;z-index:8;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:0 12px;height:24px;flex-shrink:0;border-top:1px solid var(--line);background:var(--panel);color:var(--ink-mute);font-family:var(--font-mono);font-size:11px;letter-spacing:0}.editor-status-bar__group{display:inline-flex;align-items:center;gap:16px;min-width:0}.editor-status-bar__group--left{justify-self:start;overflow:hidden}.editor-status-bar__group--right{justify-self:end}.editor-status-bar span{display:inline-flex;align-items:center;gap:4px}.editor-status-bar em{font-style:normal;color:var(--ink-soft)}.editor-status-bar__link{display:inline-flex;align-items:center;justify-self:center;min-height:18px;padding:0 6px;border:0;background:transparent;color:var(--ink-mute);font-family:var(--font-mono);font-size:11px;text-decoration:underline;text-underline-offset:2px}.editor-status-bar__link:hover{color:var(--ink)}.editor-status-bar__online{color:#5ac54f}.editor-tools-brand{display:flex;align-items:center;gap:8px;margin:0 -14px;padding:14px 14px 12px;border-bottom:1px solid var(--line-soft);font-family:var(--font-display);font-size:1.02rem;font-weight:600;letter-spacing:0}.editor-tools-brand__logo{width:24px;height:24px;flex:0 0 auto;image-rendering:pixelated;image-rendering:crisp-edges}.editor-tools-brand__text{display:inline-flex;align-items:baseline;gap:0}.editor-tools-brand__text>span:last-child{color:var(--accent);font-weight:400}.editor-toolbar-canvas-meta{display:inline-flex;align-items:center;gap:12px;margin-left:0;padding:0;color:var(--ink-soft);font-size:12px;height:22px}.editor-toolbar-canvas-meta strong{color:var(--ink-soft);font-family:var(--font-mono);font-weight:500}.editor-tool-glyph{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:currentColor}.editor-tool-glyph svg{width:14px;height:14px;display:block}.editor-preview-toolbar--embedded-chat{width:100vw;height:44px;min-height:44px;flex:0 0 44px;align-items:center;gap:12px;padding:4px 12px;border-bottom:1px solid var(--line);background:var(--panel);overflow:hidden;position:relative;z-index:2}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-chat{align-items:center;gap:12px;min-width:0;flex:1 1 auto;padding:0;background:transparent;border:0;border-radius:0}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions{flex-wrap:nowrap;align-items:center;gap:12px;min-width:0}.editor-embedded-tool-button-group{display:inline-flex;align-items:center;height:34px;gap:2px;padding:3px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--panel-2)}.editor-canvas-toolbox{position:absolute;top:46px;left:12px;z-index:8;display:grid;pointer-events:auto}.editor-embedded-tool-button-group--canvas{flex-direction:column;width:36px;height:auto;padding:3px;border-color:var(--line);background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:var(--shadow-sm)}.editor-embedded-history-button-group{display:inline-flex;align-items:center;gap:2px}.editor-topbar-divider{display:inline-block;width:1px;height:22px;flex:0 0 1px;background:var(--line)}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions .editor-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:28px;min-height:28px;padding:0;column-gap:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--ink-soft)}.editor-canvas-toolbox .editor-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--ink-soft)}.editor-canvas-toolbox .editor-chip:hover:not(:disabled):not(.editor-chip--static){background:color-mix(in srgb,var(--bg) 76%,transparent);color:var(--ink)}.editor-canvas-toolbox .editor-chip--static{background:var(--bg);color:var(--accent);box-shadow:var(--shadow-sm)}.editor-canvas-toolbox .editor-chip-label{display:none}.editor-canvas-toolbox .editor-chip-key{position:absolute;right:3px;bottom:2px;display:block;color:currentColor;font-family:var(--font-mono);font-size:8px;line-height:1;opacity:.45;letter-spacing:0;text-transform:uppercase}.editor-canvas-toolbox .editor-tool-glyph,.editor-canvas-toolbox .editor-tool-glyph svg{width:15px;height:15px}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions .editor-chip:hover:not(:disabled):not(.editor-chip--static){background:#f1ede8d1;color:var(--ink)}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions .editor-chip--static{background:var(--bg);color:var(--accent);box-shadow:var(--shadow-sm)}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions .editor-chip-label{display:none}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions .editor-chip-key{position:absolute;right:3px;bottom:2px;display:block;color:currentColor;font-family:var(--font-mono);font-size:8px;line-height:1;opacity:.45;letter-spacing:0;text-transform:uppercase}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions .editor-tool-glyph,.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-main--embedded-actions .editor-tool-glyph svg{width:15px;height:15px}.editor-preview-toolbar--embedded-chat .editor-embedded-history-button-group .editor-chip{width:30px;min-width:30px;border:0;background:transparent;color:var(--ink-soft)}.editor-preview-toolbar--embedded-chat .editor-embedded-history-button-group .editor-chip-key{display:none}.editor-preview-toolbar--embedded-chat .editor-embedded-history-button-group #undo-action{width:30px;margin-left:0;padding-left:0;border-left:0}.editor-preview-toolbar--embedded-chat .editor-preview-toolbar-meta{flex-direction:row;align-items:center;gap:8px;min-width:0;margin-left:auto}.editor-preview-toolbar--embedded-chat>.editor-preview-toolbar-meta>.editor-chip{min-height:28px;height:28px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink);font-size:.74rem}.editor-preview-toolbar--embedded-chat>.editor-preview-toolbar-meta>.editor-chip--download{gap:6px}.editor-preview-toolbar--embedded-chat>.editor-preview-toolbar-meta>.editor-chip--download svg{width:13px;height:13px}.editor-preview-toolbar--embedded-chat>.editor-preview-toolbar-meta>.editor-chip--buy-tokens{border-color:var(--ink);background:var(--ink);color:var(--bg)}.editor-preview-toolbar--embedded-chat>.editor-preview-toolbar-meta>.editor-chip--buy-tokens:disabled{opacity:.55;cursor:not-allowed}.editor-preview-toolbar--embedded-chat>.editor-preview-toolbar-meta>.editor-chip--share{gap:6px}.editor-preview-toolbar--embedded-chat>.editor-preview-toolbar-meta>.editor-chip--share svg{width:13px;height:13px;overflow:visible}.editor-topbar-account{min-width:0}.studio-topbar-account{display:inline-flex;align-items:center;gap:7px;min-width:0;height:28px;padding:0 6px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2)}.studio-topbar-account__avatar{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-family:var(--font-display);font-size:11px;font-weight:600}.studio-topbar-account__copy{display:inline-flex;flex-direction:column;justify-content:center;min-width:82px;max-width:124px;overflow:hidden;line-height:1.05}.studio-topbar-account__copy strong,.studio-topbar-account__copy em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-topbar-account__copy strong{color:var(--ink);font-family:var(--font-display);font-size:12px;font-weight:500}.studio-topbar-account__copy em{color:var(--ink-mute);font-size:10px;font-style:normal}.studio-topbar-account__button{display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 8px;border:0;border-radius:var(--radius-sm);background:var(--ink);color:var(--bg);font-family:var(--font-display);font-size:11px;white-space:nowrap}.studio-topbar-account__button:disabled{opacity:.55;cursor:not-allowed}.editor-canvas-chip{position:absolute;z-index:7;display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--ink-soft);font-family:var(--font-mono);font-size:11px;line-height:1;pointer-events:none;box-shadow:var(--shadow-sm)}.editor-canvas-chip--coords{top:10px;left:10px}.editor-canvas-chip--tool{top:10px;right:10px;text-transform:lowercase}.editor-zoom-strip{position:absolute;left:50%;bottom:12px;z-index:7;display:inline-flex;align-items:center;gap:2px;min-height:30px;padding:3px;border:1px solid var(--line);border-radius:var(--radius-md);background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:var(--shadow-sm);transform:translate(-50%)}.editor-zoom-strip button,.editor-zoom-strip span{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 8px;border-radius:var(--radius-sm);color:var(--ink-soft);font-family:var(--font-mono);font-size:11px;line-height:1}.editor-zoom-strip button{border:0;background:transparent}.editor-zoom-strip button:hover{background:var(--bg);color:var(--accent)}.editor-zoom-strip i{width:1px;height:18px;margin:0 3px;background:var(--line)}.editor-preview-toolbar--embedded-chat .editor-preview-readout--coordinates{display:none}@media(min-width:961px)and (max-width:1180px){.chat-shell--studio{grid-template-columns:minmax(0,1fr) 292px}.chat-shell--studio-aside-collapsed{grid-template-columns:minmax(0,1fr) 44px}.editor-layout--embedded-chat{grid-template-columns:minmax(220px,var(--embedded-toolbox-width, 220px)) 12px minmax(0,1fr)}.editor-tools--embedded-chat{padding-right:10px;padding-left:10px}.studio-aside{padding-right:12px;padding-left:12px}.studio-hero,.studio-section{margin-right:-12px;margin-left:-12px;padding-right:12px;padding-left:12px}}@media(max-width:960px){.chat-shell--studio{grid-template-columns:minmax(0,1fr)}.studio-aside{display:none}.editor-preview-toolbar--embedded-chat{width:100%}}.admin-shell{display:flex;flex-direction:column;min-height:100%;height:100%;overflow:auto;padding:12px;background:var(--bg);color:var(--ink)}.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--ink);border-radius:var(--radius-lg);background:var(--panel-strong)}.admin-kicker{color:var(--accent);font-family:var(--font-display);font-size:.62rem;letter-spacing:.14em;text-transform:uppercase}.admin-topbar h1,.admin-panel h2{margin:0;font-family:var(--font-display);letter-spacing:0}.admin-topbar h1{font-size:1.2rem}.admin-topbar__meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.admin-topbar__meta span{max-width:220px;overflow:hidden;color:var(--ink-soft);font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}.admin-primary-button,.admin-secondary-button,.admin-danger-button,.admin-search button{min-height:30px;padding:0 12px;border:1px solid var(--ink);border-radius:var(--radius-sm);font-family:var(--font-display);font-size:.72rem}.admin-primary-button{background:var(--ink);color:var(--bg)}.admin-danger-button{background:#efb5b1;color:#5f1f24}.admin-secondary-button,.admin-search button{background:var(--panel-soft);color:var(--ink)}.admin-primary-button:disabled,.admin-secondary-button:disabled,.admin-danger-button:disabled,.admin-search button:disabled{opacity:.55;cursor:not-allowed}.admin-error{margin:8px 0 0;padding:10px 12px;border:1px solid #6a3038;border-radius:var(--radius-md);background:#efb5b1;color:#5f1f24;font-size:.78rem}.admin-main{display:flex;min-height:0;flex:1;flex-direction:column;gap:10px;padding-top:10px}.admin-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.admin-metric{display:grid;gap:4px;min-width:0;padding:10px;border:1px solid var(--ink);border-radius:var(--radius-md);background:var(--panel-strong)}.admin-metric span{color:var(--ink-soft);font-family:var(--font-display);font-size:.58rem;letter-spacing:.08em;text-transform:uppercase}.admin-metric strong{overflow:hidden;color:var(--ink);font-family:var(--font-display);font-size:1.2rem;text-overflow:ellipsis;white-space:nowrap}.admin-metric--compact{padding:8px;background:var(--panel)}.admin-metric--compact strong{font-size:1rem}.admin-layout{display:grid;grid-template-columns:minmax(260px,320px) minmax(320px,.8fr) minmax(420px,1.4fr);grid-template-rows:auto minmax(220px,1fr);gap:10px;min-height:0;flex:1}.admin-panel{display:flex;min-width:0;min-height:0;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--ink);border-radius:var(--radius-lg);background:var(--panel-strong)}.admin-panel--users{grid-row:1 / 3}.admin-panel--detail{align-self:start;min-height:max-content;overflow:visible}.admin-panel--jobs{grid-column:3;grid-row:1 / 3}.admin-panel--ledger{min-height:220px}.admin-panel__head{display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-panel__head h2{min-width:0;overflow:hidden;font-size:.92rem;text-overflow:ellipsis;white-space:nowrap}.admin-panel__head span,.admin-pill{color:var(--ink-soft);font-family:var(--font-display);font-size:.62rem;letter-spacing:.08em;text-transform:uppercase}.admin-pill{padding:3px 7px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel)}.admin-pill--danger{border-color:#6a3038;background:#efb5b1;color:#5f1f24}.admin-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.admin-search input{min-width:0;min-height:30px;padding:0 8px;border:1px solid var(--ink);border-radius:var(--radius-sm);background:var(--panel-soft);color:var(--ink);font-family:var(--font-display);font-size:.72rem}.admin-search input:focus{outline:2px solid rgba(31,108,224,.4);outline-offset:2px}.admin-user-list,.admin-job-grid,.admin-ledger-list{display:flex;min-height:0;flex:1;flex-direction:column;gap:6px;overflow-y:auto;padding-right:3px;scrollbar-color:var(--muted) var(--panel-soft)}.admin-user-row,.admin-ledger-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--ink);text-align:left}.admin-user-row.is-active{border-color:var(--accent);background:var(--accent-soft)}.admin-user-row span,.admin-ledger-row span,.admin-job-card div{display:flex;min-width:0;flex-direction:column;gap:3px}.admin-user-row strong,.admin-ledger-row strong,.admin-job-card strong{overflow:hidden;font-family:var(--font-display);font-size:.78rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.admin-user-row em,.admin-ledger-row em,.admin-job-card em,.admin-job-card span{overflow:hidden;color:var(--ink-mute);font-style:normal;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.admin-user-row i,.admin-ledger-row i{flex:0 0 auto;color:var(--accent);font-family:var(--font-display);font-style:normal;font-size:.76rem}.admin-user-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.admin-token-form{display:grid;grid-template-columns:minmax(96px,.42fr) minmax(0,1fr);align-items:end;gap:7px;padding:9px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel)}.admin-token-form label{display:grid;gap:4px;min-width:0;color:var(--ink-soft);font-family:var(--font-display);font-size:.58rem;letter-spacing:.08em;text-transform:uppercase}.admin-token-form input{width:100%;min-height:30px;padding:0 8px;border:1px solid var(--ink);border-radius:var(--radius-sm);background:var(--panel-soft);color:var(--ink);font-family:var(--font-display);font-size:.72rem;letter-spacing:0;text-transform:none}.admin-token-form input:focus{outline:2px solid rgba(31,108,224,.4);outline-offset:2px}.admin-token-form__actions{display:grid;grid-column:1 / -1;grid-template-columns:repeat(2,minmax(70px,1fr));align-items:end;justify-self:stretch;gap:6px;width:100%}.admin-token-form__actions button{width:100%}.admin-user-meta{display:grid;gap:7px;margin:0;overflow:hidden}.admin-user-meta div{display:grid;gap:3px;min-width:0}.admin-user-meta dt{color:var(--ink-soft);font-family:var(--font-display);font-size:.58rem;letter-spacing:.08em;text-transform:uppercase}.admin-user-meta dd{margin:0;overflow-wrap:anywhere;color:var(--ink);font-size:.75rem}.admin-job-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));align-content:start}.admin-job-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel)}.admin-job-card__thumb{display:grid;place-items:center;width:52px;height:52px;border:1px solid var(--line);background:var(--panel-soft);overflow:hidden}.admin-job-card__thumb img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.admin-empty{margin:0;padding:8px;color:var(--muted);font-size:.74rem}@media(max-width:1180px){.admin-main,.admin-layout{min-height:auto;flex:0 0 auto}.admin-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-layout{grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);grid-template-rows:auto minmax(320px,1fr) minmax(190px,.5fr)}.admin-panel--users{grid-row:1 / 4}.admin-panel--jobs{grid-column:2;grid-row:2}}@media(max-width:900px){.admin-main,.admin-layout{min-height:auto;flex:0 0 auto}.admin-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:none}.admin-panel,.admin-panel--users,.admin-panel--jobs,.admin-panel--ledger{grid-column:auto;grid-row:auto}.admin-panel--ledger{min-height:260px}}@media(max-width:760px){.admin-shell{padding:8px;overflow-y:auto}.admin-topbar,.admin-topbar__meta{align-items:stretch;flex-direction:column}.admin-metrics,.admin-layout,.admin-user-detail-grid{grid-template-columns:1fr}.admin-panel,.admin-panel--users,.admin-panel--jobs,.admin-panel--ledger{grid-column:auto;grid-row:auto}.admin-token-form{grid-template-columns:1fr}.admin-token-form__actions{grid-template-columns:repeat(2,minmax(0,1fr));justify-self:stretch;width:100%}}.chat-shell--mobile{position:fixed;top:0;right:0;bottom:0;left:0;display:block;background:var(--surface-bg)}.chat-shell--mobile .chat-main,.chat-shell--mobile .studio-aside,.chat-shell--mobile .editor-preview-toolbar,.chat-shell--mobile .editor-tools--embedded-chat,.chat-shell--mobile .editor-tools-resize-handle,.chat-shell--mobile .editor-status-bar,.chat-shell--mobile .editor-render-notice,.chat-shell--mobile .editor-tools-brand,.chat-shell--mobile .editor-runtime-notice,.chat-shell--mobile .editor-local-notice{display:none!important}.chat-shell--mobile .editor-main-shell--embedded-chat,.chat-shell--mobile .editor-layout--embedded-chat,.chat-shell--mobile .editor-preview{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border-radius:0;background:var(--surface-bg)}.mobile-shell{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;z-index:50;font-family:var(--font-body);background:var(--surface-bg)}.mobile-canvas{flex:1 1 auto;min-height:0;position:relative;overflow:hidden}.mobile-topbar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#211923eb;color:#f3eef0;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);height:56px;flex:0 0 auto}.mobile-topbar__title{flex:1 1 auto;font-family:var(--font-display);font-size:1rem;font-weight:600;letter-spacing:.02em;text-align:center}.mobile-topbar__icon-btn,.mobile-dock__tool,.mobile-dock__brush,.mobile-dock__more{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid transparent;background:#ffffff0f;color:inherit;font-size:1.1rem;cursor:pointer}.mobile-topbar__icon-btn:disabled,.mobile-dock__tool:disabled{opacity:.35}.mobile-topbar__actions{display:inline-flex;gap:4px}.mobile-dock{display:flex;align-items:center;gap:8px;padding:8px 10px max(8px,env(safe-area-inset-bottom));background:#211923f5;color:#f3eef0;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);flex:0 0 auto;border-top:1px solid rgba(255,255,255,.08)}.mobile-dock__tools{flex:1 1 auto;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}.mobile-dock__tools::-webkit-scrollbar{display:none}.mobile-dock__tool{flex:0 0 auto;font-size:1.2rem}.mobile-dock__tool.is-active{background:var(--accent);color:#1a1116;border-color:var(--accent)}.mobile-dock__primary{display:flex;gap:4px;flex:0 0 auto}.mobile-dock__brush{display:inline-flex;flex-direction:column;gap:2px;min-width:64px;padding:6px 10px;font-size:.7rem;line-height:1}.mobile-dock__brush-swatch{width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.4)}.mobile-dock__brush.is-active,.mobile-dock__more.is-active{background:var(--accent);color:#1a1116}.mobile-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:60;animation:mobile-fade .16s ease-out}.mobile-scrim--sheet{background:#0000004d}@keyframes mobile-fade{0%{opacity:0}to{opacity:1}}.mobile-drawer{position:fixed;top:0;left:0;bottom:0;width:min(86vw,340px);background:var(--panel-bg, #2a2028);color:#f3eef0;z-index:70;display:flex;flex-direction:column;box-shadow:4px 0 24px #00000080;animation:mobile-slide-in .22s ease-out}@keyframes mobile-slide-in{0%{transform:translate(-100%)}to{transform:translate(0)}}.mobile-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.08)}.mobile-drawer__head strong{font-family:var(--font-display);font-size:1.05rem}.mobile-drawer__close{width:36px;height:36px;border:none;background:transparent;color:inherit;font-size:1.4rem;cursor:pointer}.mobile-drawer__scroll{flex:1 1 auto;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.mobile-drawer__new-canvas,.mobile-drawer__buy-tokens{display:block;width:100%;padding:12px;border-radius:12px;background:var(--accent);color:#1a1116;border:none;font-weight:600;cursor:pointer;font-size:.95rem}.mobile-drawer__buy-tokens{margin-top:-8px;background:#ffffff12;color:#f3eef0;border:1px solid rgba(255,255,255,.14)}.mobile-composer{display:flex;flex-direction:column;gap:8px;padding:12px;background:#ffffff0a;border-radius:12px}.mobile-composer__input{width:100%;background:#00000040;color:inherit;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:10px;font-family:inherit;font-size:.92rem;resize:vertical}.mobile-composer__row{display:flex;gap:8px}.mobile-composer__size{flex:0 0 auto;background:#0000004d;color:inherit;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:0 10px;height:40px}.mobile-composer__submit{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:1 1 auto;min-height:40px;background:var(--accent);color:#1a1116;border:none;border-radius:8px;font-weight:600;cursor:pointer;font-size:.95rem}.mobile-composer__submit.is-generating{background:#f3eef0eb}.mobile-composer__submit:disabled,.mobile-drawer__new-canvas:disabled,.mobile-drawer__buy-tokens:disabled{opacity:.45;cursor:not-allowed}.mobile-error,.mobile-status,.mobile-generation-debug{font-size:.78rem;margin:0;color:#f3a8a8}.mobile-status{color:#f3eef0b3}.mobile-generation-debug{color:#f3eef0ad;font-family:var(--font-mono);line-height:1.45}.mobile-drawer__section header{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#f3eef080;margin-bottom:8px}.mobile-recents{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.mobile-recent-row{display:flex;align-items:center;gap:4px}.mobile-recent{display:block;width:100%;min-width:0;flex:1;text-align:left;padding:10px 12px;background:transparent;border:1px solid transparent;border-radius:8px;color:inherit;font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.mobile-recent.is-active,.mobile-recent:hover{background:#ffffff0f;border-color:#ffffff1a}.mobile-recent__delete{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border:1px solid transparent;border-radius:8px;background:transparent;color:#f3eef09e;font-size:1rem}.mobile-recent__delete:hover,.mobile-recent__delete:focus-visible{border-color:#ffffff1f;background:#ffffff12;color:#f3eef0eb;outline:none}.mobile-recent:disabled,.mobile-recent__delete:disabled{opacity:.58;cursor:not-allowed}.mobile-empty{font-size:.85rem;color:#f3eef08c;margin:0}.mobile-drawer__foot{display:flex;align-items:center;gap:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);flex-wrap:wrap}.mobile-account{display:flex;flex-direction:column;flex:1 1 auto;font-size:.85rem;line-height:1.2}.mobile-account small{font-size:.72rem;color:#f3eef08c}.mobile-account strong{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.mobile-primary-btn,.mobile-secondary-btn{padding:8px 14px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:#ffffff0f;color:inherit;font-size:.85rem;cursor:pointer}.mobile-primary-btn{background:var(--accent);color:#1a1116;border-color:var(--accent);font-weight:600}.mobile-sheet{position:fixed;bottom:0;left:0;right:0;background:var(--panel-bg, #2a2028);color:#f3eef0;border-top-left-radius:18px;border-top-right-radius:18px;padding:6px 18px max(20px,env(safe-area-inset-bottom));z-index:70;box-shadow:0 -8px 24px #0006;animation:mobile-sheet-rise .22s ease-out;max-height:70vh;overflow-y:auto}@keyframes mobile-sheet-rise{0%{transform:translateY(100%)}to{transform:translateY(0)}}.mobile-sheet__handle{width:40px;height:4px;border-radius:2px;background:#fff3;margin:4px auto 16px}.mobile-sheet__body{display:flex;flex-direction:column;gap:16px}.mobile-sheet__field{display:flex;flex-direction:column;gap:8px;font-size:.85rem}.mobile-sheet__field--row{flex-direction:row;align-items:center;justify-content:space-between}.mobile-sheet__field span em{font-style:normal;color:#f3eef08c;margin-left:6px}.mobile-sheet__field input[type=range]{width:100%}.mobile-sheet__field select{background:#0000004d;color:inherit;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 10px;font-size:.9rem}.mobile-sheet__color{display:inline-flex;align-items:center;gap:12px}.mobile-sheet__color input[type=color]{width:44px;height:44px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:transparent;cursor:pointer}.mobile-sheet__palette{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.mobile-sheet__swatch{width:100%;aspect-ratio:1;border-radius:6px;border:2px solid transparent;cursor:pointer;padding:0}.mobile-sheet__swatch.is-active{border-color:#f3eef0}.mobile-sheet__shape-row{display:inline-flex;gap:6px}.mobile-sheet__shape{width:44px;height:44px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:#ffffff0f;color:inherit;font-size:1.1rem;cursor:pointer}.mobile-sheet__shape.is-active{background:var(--accent);color:#1a1116;border-color:var(--accent)}.studio-recent__share{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--ink-mute);font-family:var(--font-display);font-size:14px;line-height:1}.studio-recent__share:hover{border-color:#567d6a6b;background:#567d6a1f;color:var(--teal)}.studio-recent__share:disabled{cursor:not-allowed}.share-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#2419246b;display:flex;align-items:center;justify-content:center;z-index:60;padding:16px}.share-modal{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--radius-xl);box-shadow:0 12px 36px #24192438;width:min(480px,100%);padding:22px 22px 18px;color:var(--ink);font-family:var(--font-body)}.share-modal__kicker{margin:0;font-family:var(--font-mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-mute)}.share-modal__header h2{margin:4px 0 6px;font-family:var(--font-display);font-size:20px}.share-modal__hint{margin:0 0 14px;font-size:13px;color:var(--ink-soft)}.share-modal__loading{margin:18px 0;font-family:var(--font-mono);font-size:12px;color:var(--ink-mute)}.share-modal__url-row{display:flex;gap:8px;margin-bottom:12px}.share-modal__url{flex:1;min-width:0;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--panel-soft);padding:10px 12px;font-family:var(--font-mono);font-size:12px;color:var(--ink)}.share-modal__url:focus{outline:2px solid var(--accent);outline-offset:1px}.share-modal__copy{background:var(--ink);color:var(--panel-2);border-radius:var(--radius-md);padding:0 14px;font-family:var(--font-display);font-size:13px}.share-modal__copy:hover{background:var(--ink-soft)}.share-modal__stats{display:flex;gap:18px;margin-bottom:18px;font-family:var(--font-mono);font-size:12px;color:var(--ink-mute)}.share-modal__stats strong{color:var(--ink);font-family:var(--font-display);font-size:15px;margin-right:4px}.share-modal__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.share-modal__primary,.share-modal__secondary,.share-modal__danger{border-radius:var(--radius-md);padding:8px 14px;font-family:var(--font-display);font-size:13px}.share-modal__primary{background:var(--accent);color:#1a1116}.share-modal__primary:hover{filter:brightness(1.05)}.share-modal__secondary{background:transparent;border:1px solid var(--line);color:var(--ink)}.share-modal__secondary:hover{border-color:var(--accent);color:var(--accent)}.share-modal__danger{background:transparent;border:1px solid rgba(198,69,36,.42);color:var(--accent)}.share-modal__danger:hover{background:var(--accent-soft)}.share-modal__error{margin:12px 0 0;color:var(--accent);font-family:var(--font-mono);font-size:12px}.public-viewer{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;background:linear-gradient(180deg,var(--bg) 0%,var(--bg-alt) 100%);color:var(--ink);font-family:var(--font-body);display:flex;flex-direction:column}.public-viewer__header{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-bottom:1px solid var(--line-soft);background:var(--panel)}.public-viewer__brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-family:var(--font-display);font-size:1.02rem;font-weight:600;letter-spacing:0}.public-viewer__brand-logo{width:24px;height:24px;flex:0 0 auto;image-rendering:pixelated;image-rendering:crisp-edges}.public-viewer__brand-text{display:inline-flex;align-items:baseline;gap:0}.public-viewer__brand-suffix{color:var(--accent);font-weight:400}.public-viewer__signup-pill{text-decoration:none;background:var(--ink);color:var(--panel-2);padding:8px 14px;border-radius:var(--radius-pill);font-family:var(--font-display);font-size:13px}.public-viewer__signup-pill:hover{background:var(--ink-soft)}.public-viewer__main{flex:1;display:flex;align-items:center;justify-content:center;padding:28px 20px}.public-viewer__status{font-family:var(--font-mono);color:var(--ink-mute)}.public-viewer__error{text-align:center;max-width:420px}.public-viewer__error h1{font-family:var(--font-display);font-size:22px;margin:0 0 8px}.public-viewer__card{display:grid;grid-template-columns:minmax(320px,1.15fr) minmax(280px,.85fr);gap:24px;width:min(1040px,100%);background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-xl);padding:22px;box-shadow:var(--shadow-sm)}@media(max-width:720px){.public-viewer__card{grid-template-columns:1fr}}.public-viewer__art{position:relative;width:100%;aspect-ratio:1 / 1;max-height:min(78vh,720px);border:1px solid var(--line-soft);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-sm);background:transparent}.public-viewer__art-image{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges;z-index:1}.public-viewer__art-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:grid;place-items:center;font-family:var(--font-mono);color:var(--ink);font-size:12px}.public-viewer__art-placeholder{font-family:var(--font-mono);color:var(--ink-mute);font-size:12px}.public-viewer__meta{display:flex;flex-direction:column;gap:14px;padding:6px 4px}.public-viewer__title{margin:0;font-family:var(--font-display);font-size:22px;word-break:break-word}.public-viewer__byline{margin:0;font-family:var(--font-mono);font-size:12px;color:var(--ink-mute)}.public-viewer__actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.public-viewer__like{display:inline-flex;align-items:center;gap:8px;background:var(--panel-2);border:1px solid var(--line);border-radius:var(--radius-pill);padding:8px 16px;color:var(--ink);font-family:var(--font-display);font-size:14px}.public-viewer__like:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.public-viewer__like--active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.public-viewer__like-icon{font-size:16px}.public-viewer__like-count{font-family:var(--font-mono);font-size:12px;color:var(--ink-mute)}.public-viewer__like--active .public-viewer__like-count{color:var(--accent)}.public-viewer__view-count{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:12px;color:var(--ink-mute)}.public-viewer__signup-card{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--panel-2);border:1px solid var(--line);border-radius:var(--radius-lg);padding:12px 14px}.public-viewer__signup-line{margin:0;font-size:13px;color:var(--ink-soft);font-family:var(--font-body)}.public-viewer__signup-line strong{color:var(--ink);font-family:var(--font-display);font-weight:600}.public-viewer__primary-cta{display:inline-flex;align-items:center;gap:6px;text-decoration:none;background:var(--accent);color:#1a1116;padding:9px 14px;border-radius:var(--radius-md);font-family:var(--font-display);font-size:13px;white-space:nowrap}.public-viewer__primary-cta:hover{filter:brightness(1.05)}.public-viewer__footer{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px;border-top:1px solid var(--line-soft);font-family:var(--font-mono);font-size:11px;color:var(--ink-mute)}.public-viewer__footer a{text-decoration:none;color:var(--ink-mute)}.public-viewer__footer a:hover{color:var(--ink)}
