*,:before,:after{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:not-allowed}img,svg{display:block;max-width:100%}[hidden]{display:none!important}a{color:inherit}
:root{font-family:Inter,"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN",sans-serif;font-synthesis:none;--ink:#213b35;--muted:#62746c;--green:#007c68;--line:#c8d0c5;--paper:#fffdf7;--lime:#c6ff82;--violet:#7666e9;--coral:#ff8066;color:var(--ink);background:#f2f0e7}body{min-width:320px;font-size:14px;line-height:1.65;background:radial-gradient(ellipse at 100% 0,#e4e1ef,transparent 35%)}h1{font-size:clamp(35px,4.25vw,66px);line-height:1.12;font-weight:850;letter-spacing:0}h2{font-size:clamp(21px,2vw,29px);line-height:1.4}h3{font-size:16px;line-height:1.45}strong{font-weight:750}.section-icon svg,.quiet svg,.shuffle-button svg,.history svg,.camera-note svg,.search svg,.guide svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button{background:var(--paper);border:1px solid var(--line);transition:background .18s,color .18s,border-color .18s,transform .18s,box-shadow .18s}button:hover:not(:disabled){border-color:var(--green);transform:translateY(-1px);box-shadow:0 3px 0 #213b3510}button:active:not(:disabled){transform:none;box-shadow:none}:focus-visible{outline:3px solid var(--violet);outline-offset:4px}input,select{accent-color:var(--green);min-width:0}input[type=text],input[type=number],select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);font-size:12px}select{cursor:pointer}input[type=range]{width:100%;height:24px;margin:6px 0 0;cursor:pointer}input[type=color]{width:54px;height:36px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--paper);cursor:pointer}
.page{max-width:1610px;margin:auto;padding:42px 44px 26px}.hero{margin-bottom:32px}.eyebrow,.kicker{color:var(--green);font-size:11px;letter-spacing:.1em;font-weight:750}.eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:20px}.eyebrow img{flex:none}h1>span{color:var(--coral)}.hero-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px}.lead{font-size:clamp(14px,1.3vw,18px)}.lead strong{color:var(--green)}.quiet,.primary,.accent{padding:10px 14px;border-radius:10px;font-size:12px;font-weight:750;white-space:nowrap}.primary{background:var(--ink);border-color:var(--ink);color:var(--lime)}.accent{background:var(--lime);border-color:var(--ink)}.text-button{background:transparent;border-color:transparent;font-size:11px;font-weight:700;padding:5px;border-radius:5px}.chip{font-size:10px;font-weight:750;letter-spacing:.05em;padding:5px 9px;border:1px solid var(--line);border-radius:30px;white-space:nowrap}
.lab{container:lab / inline-size;border:1px solid var(--line);border-radius:25px;background:var(--paper);overflow:clip;box-shadow:0 12px 38px #213b3508}.section-heading{display:flex;align-items:center;gap:15px;padding:23px 25px;border-bottom:1px solid var(--line)}.section-icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;flex:none;background:var(--coral);color:white}.section-icon svg{width:32px;height:32px}.section-heading .kicker{margin-bottom:4px}.jump{margin-left:auto;font-size:11px;font-weight:700;white-space:nowrap;text-underline-offset:4px}.lab-grid{display:grid;grid-template-columns:285px minmax(0,1fr)}.controls{background:#f5f4ed;border-right:1px solid var(--line);scroll-margin-top:20px}.control-section{padding:23px 21px;border-bottom:1px solid var(--line);min-width:0}.control-section:last-child{border-bottom:0}.control-section h3{margin:4px 0 14px}.field{display:grid;gap:6px;margin-top:13px;font-size:11px;font-weight:650}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.note{font-size:11px;line-height:1.8;color:var(--muted);margin-top:10px}.range{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 9px;font-size:11px;font-weight:650;margin-top:18px}.range input{grid-column:1/-1}.range output{font-size:11px;color:var(--green);font-variant-numeric:tabular-nums}.check{display:flex;align-items:start;gap:8px;font-size:11px;font-weight:650;margin-top:16px;cursor:pointer}.check input{margin:3px 0 0;width:16px;height:16px;flex:none}.color-field{grid-template-columns:1fr auto;align-items:center}.danger{font-size:11px;border-color:#d9c7bc;color:#9d503e;padding:9px 12px;border-radius:8px}.object-actions{display:flex;gap:7px;align-items:center;margin-top:16px;flex-wrap:wrap}.seed-row{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end}.seed-row button{height:39px}.shuffle-button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:750;border-radius:10px;padding:12px;margin-top:13px;background:var(--ink);color:var(--lime);border-color:var(--ink)}.shuffle-button svg{width:22px;height:22px}
.segmented{display:flex;position:relative;isolation:isolate;anchor-scope:--iso-selection;gap:3px;border:1px solid var(--line);padding:4px;background:#e6ebe3;border-radius:11px}.segmented button{position:relative;z-index:1;flex:1 1 0;min-width:0;border:0;background:transparent;border-radius:7px;font-size:11px;font-weight:750;line-height:1.3;padding:10px 8px;white-space:nowrap;display:flex;align-items:center;justify-content:center}.segmented button:is([aria-pressed=true],[aria-selected=true]){anchor-name:--iso-selection;background:var(--ink);color:var(--lime)}.segmented button:hover:not(:disabled){transform:none;box-shadow:none;background:#cddbc9}.segmented button:is([aria-pressed=true],[aria-selected=true]):hover{background:var(--ink)}.layout-toggle{margin-top:17px}
@supports (anchor-name:--iso-selection) and (position-anchor:--iso-selection) and (anchor-scope:--iso-selection){.segmented::before{content:"";position:absolute;position-anchor:--iso-selection;left:anchor(left);top:anchor(top);width:anchor-size(width);height:anchor-size(height);border-radius:7px;background:var(--ink);z-index:0;pointer-events:none;transition:left .2s,top .2s,width .2s,height .2s}.segmented button:is([aria-pressed=true],[aria-selected=true]),.segmented button:is([aria-pressed=true],[aria-selected=true]):hover{background:transparent}}
.workspace{container:workspace / inline-size;align-self:start;min-width:0}.toolbar{display:flex;align-items:center;gap:10px;padding:14px 23px;border-bottom:1px solid var(--line);font-size:11px}.toolbar>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbar>.chip{margin-left:auto}.window-dots{display:flex;gap:5px;flex:none}.window-dots i{width:7px;height:7px;border-radius:50%;background:#b1c3b0}.window-dots i:first-child{background:var(--coral)}.settings-link{display:none;margin-left:auto;flex:none;text-underline-offset:3px;font-size:10px;white-space:nowrap}.preview-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 23px}.camera-note{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.camera-note svg{width:22px;height:22px}.history{display:flex;gap:5px}.history button{width:33px;height:33px;padding:8px;border-radius:8px;display:grid;place-items:center}.history svg{width:18px;height:18px}.canvas-wrap{padding:20px;background:#e8ede3;border-block:1px solid var(--line)}.board{position:relative;background:repeating-conic-gradient(#e3e8df 0 25%,#f6f7f1 0 50%) 0/16px 16px;border:1px solid #cbd5c5;border-radius:14px;isolation:isolate;overflow:hidden;user-select:none}.board:focus-visible{outline-offset:5px}#svgMount>svg{display:block;width:100%;height:auto;max-width:none}#svgMount [data-object]{cursor:grab;touch-action:none}.board.dragging #svgMount [data-object]{cursor:grabbing}#selectionOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none!important;overflow:visible}.canvas-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 23px;border-bottom:1px solid var(--line);font-size:10px;color:var(--green)}.compact{margin:0;font-size:10px;align-items:center;white-space:nowrap}.compact input{width:13px;height:13px;margin:0}.collision-notice{font-size:11px;line-height:1.8;color:#915533;background:#fff3dd;padding:12px 23px;border-bottom:1px solid var(--line)}
.motif-panel{padding:24px 23px;border-bottom:1px solid var(--line)}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}.panel-heading h3{margin-top:4px}.panel-heading>span{font-size:10px;color:var(--muted);white-space:nowrap}.motif-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.motif-card{min-width:0;border-radius:11px;padding:5px 3px 7px;display:grid;gap:5px;justify-items:center;font-size:10px;font-weight:700}.motif-card img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.motif-card:hover:not(:disabled){background:#e9f1e0;transform:translateY(-3px)}.motif-card span{max-width:100%;overflow-wrap:anywhere;line-height:1.4;text-align:center}
.export{padding:25px 23px}.export h3{margin-top:5px}.export-actions{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-top:17px}.png-scale{font-size:10px;display:grid;gap:3px;margin-left:auto}.png-scale select{padding:9px;font-size:11px}.code-details{margin-top:20px;border-block:1px solid var(--line);padding:13px 0}.code-details summary{cursor:pointer;font-size:12px;font-weight:700;list-style-position:inside}.code-details pre{max-height:290px;overflow:auto;background:#17352f;color:#deecdf;font-size:11px;line-height:1.8;padding:18px;border-radius:11px;tab-size:2;margin:15px 0 6px;white-space:pre-wrap;overflow-wrap:anywhere}.export-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:13px}.error{font-size:11px;color:#a5372b;margin-top:12px;overflow-wrap:anywhere}
.preset-library,.guide{margin-top:56px;scroll-margin-top:24px}.library-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:23px}.library-heading h2,.guide>h2{margin:6px 0}.library-heading p:not(.kicker){font-size:12px;color:var(--muted)}.search{display:flex;align-items:center;gap:9px;flex:0 0 245px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--paper)}.search svg{width:18px;height:18px;flex:none}.search input{min-width:0;width:100%;border:0;background:transparent;outline:0;font-size:12px;color:var(--ink)}.search:focus-within{outline:3px solid var(--violet);outline-offset:3px}.library-tools{display:flex;align-items:center;justify-content:space-between;gap:17px;margin-bottom:20px}.categories{display:flex;gap:7px;flex-wrap:wrap}.categories button{font-size:11px;font-weight:700;padding:8px 12px;border-radius:25px}.categories button[aria-pressed=true]{color:var(--lime);background:var(--ink);border-color:var(--ink)}.library-tools output{font-size:11px;color:var(--muted);white-space:nowrap}.preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.preset-card{min-width:0;padding:8px 8px 12px;border-radius:14px;text-align:left}.preset-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 7px 20px #213b3510}.preset-card[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.preset-card>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:8px;background:#f6f8f3}.preset-card>strong{display:block;font-size:12px;margin:11px 4px 0}.preset-card>small{display:block;font-size:10px;color:var(--muted);margin:1px 4px 0}.empty{padding:30px;color:var(--muted)}
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.guide-grid article{padding:25px;border:1px solid var(--line);border-radius:16px;background:#faf9f3}.guide-grid svg{width:44px;height:44px;color:var(--green);margin-bottom:18px}.guide-grid h3{margin-bottom:12px}.guide-grid p,.guide-notes{font-size:12px;color:var(--muted);line-height:1.9}.guide-notes{padding-top:22px;display:grid;gap:11px}.references{display:flex;flex-wrap:wrap;gap:9px 18px}.references a{text-underline-offset:4px}.page-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);margin-top:44px;padding-top:20px;font-size:10px;color:var(--muted)}.page-footer a{font-weight:700}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,14px);opacity:0;pointer-events:none;z-index:100;max-width:calc(100% - 32px);padding:13px 20px;border-radius:11px;background:#17352f;color:#fffdf5;text-align:center;font-size:12px;box-shadow:0 7px 25px #0002;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
@container lab (max-width:1060px){.lab-grid{grid-template-columns:250px minmax(0,1fr)}.control-section{padding:20px 16px}.section-heading h2{font-size:24px}}
@container workspace (max-width:700px){.motif-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.preview-tools,.toolbar,.canvas-footer,.export,.motif-panel{padding-inline:16px}.canvas-wrap{padding:15px 10px}.png-scale{margin-left:0}.canvas-footer{flex-wrap:wrap;gap:6px}.panel-heading{align-items:start}.panel-heading h3{font-size:15px}}
.global-colors{border-block:1px solid var(--line);padding:12px 0;margin-top:16px}.global-colors summary{font-size:12px;font-weight:700;cursor:pointer}.material-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;margin-top:15px}.material-colors label{display:grid;gap:5px;min-width:0;font-size:11px;font-weight:650}.material-colors input{width:100%;height:33px}.motif-filter{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:11px;color:var(--muted);margin-bottom:17px}.motif-filter select{width:190px;max-width:60%}.quick-shuffle{display:none}
@container lab (max-width:760px){.quick-shuffle{display:block;font-size:10px;padding:7px 9px;background:var(--ink);color:var(--lime);margin-left:auto}.lab-grid{grid-template-columns:1fr}.workspace{grid-row:1}.controls{grid-row:2;border-right:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.control-section:nth-child(even){border-left:1px solid var(--line)}.section-heading{padding:18px;gap:12px}.section-icon{width:43px;height:43px;border-radius:13px}.section-heading h2{font-size:21px}.section-heading .kicker{font-size:10px}.jump{display:none}.settings-link{display:block}.toolbar>.chip{display:none}}
@container lab (max-width:440px){.controls{display:block}.control-section:nth-child(even){border-left:0}.control-section{padding:22px}.export-actions button{font-size:11px;padding-inline:12px}.canvas-wrap{padding:12px 6px}.board{border-radius:8px}.toolbar,.preview-tools{padding-inline:12px}}
@media(max-width:1150px){.page{padding:32px 24px 24px}.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.page{padding:23px 16px 20px}.hero-bottom{flex-direction:column;align-items:start;gap:14px}.hero{margin-bottom:25px}.eyebrow{font-size:10px}.library-heading{flex-direction:column;align-items:start;gap:17px}.search{width:100%;flex-basis:auto}.library-tools{flex-direction:column;align-items:start;gap:12px}.categories{gap:6px}.categories button{padding:8px 10px}.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.preset-library,.guide{margin-top:43px}.guide-grid{grid-template-columns:1fr}.guide-grid p{font-size:13px}.page-footer{flex-direction:column;gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){button{border:1px solid ButtonText}.segmented button:is([aria-pressed=true],[aria-selected=true]),.categories button[aria-pressed=true]{background:Highlight;color:HighlightText}.segmented::before{background:Highlight}}

/* Shared character controls, in both page and full-window editor. */
.lab-heading-actions{display:flex;align-items:center;justify-content:end;gap:20px;margin-left:auto;flex-wrap:wrap}.lab-heading-actions .jump{margin-left:0}#openWorkspace{display:flex;gap:8px;align-items:center;white-space:normal;text-align:left}#openWorkspace svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}
.person-editor{margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}.person-editor summary{font-size:12px;font-weight:750;cursor:pointer}.person-parts{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.person-actions{display:grid;gap:7px;margin-top:16px}.person-actions .quiet{white-space:normal}
.editor-view-tools{display:none}.editor-shell{position:fixed;inset:0;z-index:50;background:#e6eae5;display:grid;grid-template-rows:58px minmax(0,1fr);font-size:12px;height:100dvh;min-width:320px}.workspace-mode{overflow:hidden}.editor-bar{display:flex;align-items:center;gap:12px;padding:0 16px 0 9px;background:#17382f;color:#f8fbef;border-bottom:1px solid #17382f;min-width:0}.editor-back{display:grid;place-items:center;width:35px;height:35px;padding:8px;border-radius:8px;background:transparent;color:#eff7eb;border-color:#ffffff35}.editor-bar svg,.editor-sidebar-heading svg,.editor-view-tools svg,.layer-icon svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.editor-back svg{width:20px;height:20px}.editor-brand{display:grid;line-height:1.5;min-width:0}.editor-brand strong{font-size:12px;white-space:nowrap}.editor-brand span{font-size:10px;color:#b9cdc1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:30vw}.editor-bar-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.editor-bar .primary{background:var(--lime);border-color:var(--lime);color:#17382f;font-size:11px;padding:8px 13px}.editor-bar .quiet{background:transparent;color:#edf5e8;border-color:#ffffff40;font-size:11px;padding:8px 12px}.editor-grid{position:relative;display:grid;grid-template-columns:254px minmax(0,1fr) 292px;min-height:0;container:editor / inline-size}.editor-left,.editor-right{background:#fafbf6;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}.editor-left{border-right:1px solid var(--line)}.editor-right{border-left:1px solid var(--line)}.editor-sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line);font-size:11px;min-height:49px}.editor-tabs{margin:12px}.editor-tabs button{font-size:11px;padding:9px}.editor-center{min-width:0;min-height:0;display:flex}.editor-center>.workspace{width:100%;height:100%;display:flex;flex-direction:column;container:workspace / inline-size;min-height:0}.editor-center .toolbar{display:none}.editor-center .preview-tools{padding:9px 14px;background:#f6f8f2;gap:12px;flex:none;flex-wrap:wrap;border-bottom:1px solid var(--line)}.editor-center .camera-note{display:none}.editor-view-tools{align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0}.workspace-mode .editor-view-tools{display:flex}.canvas-tools{padding:3px;border-radius:8px;gap:2px}.canvas-tools button{flex:none;width:31px;height:30px;padding:6px;border-radius:5px}.canvas-tools svg{width:19px;height:19px}.zoom-tools{display:flex;align-items:center;gap:2px;color:var(--ink);font-size:11px}.zoom-tools button{display:grid;place-items:center;width:29px;height:30px;padding:6px;border-radius:6px;border-color:transparent;background:transparent}.zoom-tools svg{width:16px;height:16px}.zoom-tools output{width:44px;text-align:center;font-variant-numeric:tabular-nums}.zoom-tools #fitCanvas{width:auto;padding-inline:9px;border-color:var(--line);margin-left:5px;background:var(--paper);font-size:10px}.editor-center .canvas-wrap{flex:1;position:relative;padding:0;min-height:0;overflow:hidden;border:0;background:radial-gradient(#acb8a780 1px,transparent 1px) 50% 50%/20px 20px,#e8ece4;touch-action:none}.editor-center .board{position:absolute;left:50%;top:50%;max-width:none;flex:none;transform:translate(-50%,-50%) translate(var(--pan-x,0px),var(--pan-y,0px)) scale(var(--editor-zoom,1));transform-origin:center;box-shadow:0 5px 32px #23352b20;border-radius:2px;overflow:hidden}.editor-center .board:focus-visible{outline-offset:3px}.editor-center #selectionOverlay{overflow:visible}.editor-center .canvas-footer{flex:none;min-height:39px;padding:9px 14px;background:#f6f8f2;border-top:1px solid var(--line);border-bottom:0;flex-wrap:wrap}.editor-center .quick-shuffle{display:none}.editor-center .collision-notice{max-height:75px;overflow:auto;flex:none;padding:8px 14px;border-top:1px solid var(--line);border-bottom:0}.editor-left .motif-panel{padding:8px 12px 18px;border:0}.editor-left .panel-heading{display:none}.editor-left .motif-filter{display:grid;gap:6px;margin:4px 0 13px}.editor-left .motif-filter select{width:100%;max-width:none}.editor-left .motif-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.editor-left .motif-card{padding:3px 2px 7px;font-size:10px}.editor-left .note{font-size:10px;line-height:1.8}.editor-right .controls{display:block;border:0;background:transparent;scroll-margin:0}.editor-right .control-section{padding:20px 17px;border-left:0}.editor-right .control-section h3{font-size:14px}.editor-right .export{padding:20px 17px;border-top:1px solid var(--line);scroll-margin-top:0}.editor-right .export h3{font-size:14px}.editor-right .export-actions{gap:7px}.editor-right .export-actions button{padding:9px 11px;font-size:11px}.editor-right .png-scale{margin:0}.editor-right .export-footer{display:grid;gap:10px}.editor-right .export-footer .text-button{text-align:left;padding-left:0}.editor-right .code-details pre{max-height:180px}.editor-right .range{margin-top:16px}.layer-note{padding:0 14px 14px}.layer-list{display:grid;gap:2px;padding:0 7px 14px}.layer-list button{display:flex;align-items:center;gap:9px;text-align:left;padding:10px 8px;border-color:transparent;background:transparent;border-radius:6px;font-size:11px;min-height:40px}.layer-list button[aria-pressed=true]{background:#e2ecd9;color:#17382f;border-color:#bdcdb2}.layer-list button:hover:not(:disabled){transform:none;box-shadow:none;background:#edf1e5}.layer-icon{color:#7d9386;flex:none}.layer-icon svg{width:18px;height:18px}.layer-list small{margin-left:auto;font-size:10px;color:var(--muted)}.editor-panel-toggles,.panel-close,.panel-backdrop{display:none}.hand-tool,.hand-tool #svgMount [data-object]{cursor:grab!important}.panning,.panning #svgMount [data-object]{cursor:grabbing!important}
@media(min-width:1051px) and (max-width:1250px){.editor-grid{grid-template-columns:222px minmax(0,1fr) 265px}}
@media(max-width:1050px){.editor-grid{grid-template-columns:minmax(0,1fr)}.editor-left,.editor-right{display:none;position:absolute;top:0;bottom:0;width:min(320px,calc(100% - 40px));z-index:5;box-shadow:0 10px 40px #13291f35}.editor-left{left:0}.editor-right{right:0}.editor-shell[data-panel=left] .editor-left,.editor-shell[data-panel=right] .editor-right{display:block}.editor-panel-toggles{display:flex;gap:5px;margin-left:10px}.editor-panel-toggles button{background:transparent;color:#ecf4e5;border-color:#ffffff35;font-size:11px;border-radius:7px;padding:7px 11px}.editor-panel-toggles button[aria-expanded=true]{background:var(--lime);color:var(--ink)}.panel-close{display:grid;place-items:center;width:26px;height:26px;border:0;background:transparent;padding:5px;border-radius:5px}.panel-close svg{width:17px;height:17px}.panel-backdrop:not([hidden]){display:block;position:absolute;inset:0;background:#162d2338;border:0;border-radius:0;z-index:4;cursor:default}.panel-backdrop:hover:not(:disabled){transform:none;box-shadow:none}.editor-sidebar-heading{padding-block:11px}.editor-left .motif-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.lab-heading-actions{width:100%;margin-left:0;justify-content:start}.section-heading{flex-wrap:wrap}.editor-shell{grid-template-rows:56px minmax(0,1fr)}.editor-bar{gap:7px;padding-right:9px}.editor-brand strong{font-size:11px}.editor-brand span,.editor-bar>img,#editorShare{display:none}.editor-brand{max-width:135px}.editor-panel-toggles{margin-left:auto;gap:4px}.editor-panel-toggles button{padding:7px 9px;font-size:10px}.editor-bar-actions{margin-left:0}.editor-bar .primary{padding:8px 9px;font-size:10px}.editor-center .preview-tools{padding:8px}.editor-center .canvas-footer{padding:8px 10px;font-size:10px;gap:8px}.editor-back{width:30px;height:30px;padding:6px}.editor-view-tools{gap:7px;flex-basis:100%}.editor-center .history{margin-left:auto}}

.selection-tools{border-block:1px solid var(--line);padding:10px 0 14px;margin-bottom:15px}.selection-toolbar{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:11px}.selection-flags{display:flex;gap:18px}.selection-flags .check{margin-top:12px}.group-actions,.project-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.group-actions .quiet,.project-actions .quiet{font-size:11px;padding:9px 10px;white-space:normal}.snap-settings{padding:0 0 15px;border-bottom:1px solid var(--line);margin-bottom:15px}.selection-export{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.selection-export h3{font-size:14px}.selection-export .field-pair{align-items:center}.road-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 20px;background:#f6f8f2;border-top:1px solid var(--line)}.road-controls>.quiet{display:flex;align-items:center;gap:7px;padding:7px 10px;font-size:11px}.road-controls>.quiet[aria-pressed=true]{background:var(--ink);color:var(--lime)}.road-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.road-controls>.note{flex-basis:100%;margin:0}.road-brush,.road-brush #svgMount [data-object]{cursor:crosshair!important}.editor-center .road-controls{padding:8px 12px;gap:10px;flex:none}.editor-center .road-controls .note{font-size:10px}.project-dialog{width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line);border-radius:18px;padding:25px;color:var(--ink);background:var(--paper);box-shadow:0 20px 70px #13291f40}.project-dialog::backdrop{background:#13291f80;backdrop-filter:blur(4px)}.project-dialog h2{font-size:20px;margin-bottom:14px}.project-dialog>p{overflow-wrap:anywhere;font-size:12px}.dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:22px}.layer-row{display:flex;align-items:center;gap:0;min-width:0;border-radius:6px}.layer-row.grouped{padding-left:9px}.layer-row.is-hidden{opacity:.6}.layer-row>button[data-layer]{flex:1;min-width:0;padding:9px 5px;gap:7px;min-height:39px}.layer-row>button[data-layer]>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-list .layer-action{flex:none;width:25px;height:32px;min-height:0;padding:5px 4px;display:grid;place-items:center}.layer-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.layer-action[aria-pressed=true]{color:#426c4b}.layer-group{margin-top:5px;border:1px solid #cbd6c3;border-radius:7px;background:#f0f4e9;overflow:hidden}.layer-list .layer-group-name{border-radius:0;width:100%;padding:9px 7px;font-size:11px;min-height:36px;border-bottom:1px solid #d4dece;font-weight:750}.layer-group-name>svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}.layer-group-name small{margin-left:auto}.layer-list .layer-group .layer-row>button[data-layer]{background:transparent}.layer-list .layer-row>button[data-layer][aria-pressed=true]{background:#dceacd}.project-section h3{font-size:15px}
@container workspace (max-width:430px){.selection-export .export-actions{display:grid;grid-template-columns:1fr}.road-controls{padding-inline:12px}.road-controls .note{font-size:10px}}
#svgMount [data-locked=true]{cursor:not-allowed}.road-brush #svgMount [data-locked=true]{cursor:crosshair}
.editor-brand strong{overflow:hidden;text-overflow:ellipsis}.editor-center .road-controls:has(#roadBrushToggle[aria-pressed=false]){display:none}.editor-center .road-controls>#roadBrushToggle{display:none}
.layer-list .layer-group-name{overflow-wrap:anywhere}
.canvas-wrap{position:relative}.selection-rotate{position:absolute;z-index:3;display:grid;place-items:center;width:40px;height:40px;padding:9px;border:1px solid #b8b0ef;border-radius:50%;background:var(--paper);color:#6150ce;box-shadow:0 3px 12px #213b3524;touch-action:manipulation}.selection-rotate svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.selection-rotate:hover:not(:disabled){background:#ece8ff;border-color:#7666e9;transform:none;box-shadow:0 4px 16px #4c388c30}.selection-rotate:disabled{opacity:.55;box-shadow:none}.hand-tool>.selection-rotate,.panning>.selection-rotate{display:none}
.arrange-panel,.elevation-panel{border-top:1px solid var(--line);padding-top:15px;margin-top:17px}.arrange-panel h3,.elevation-panel h3{font-size:12px;margin-bottom:10px}.arrange-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px}.arrange-actions button{padding:8px 5px;border-radius:7px;font-size:10px;font-weight:700}.arrange-panel .segmented button{font-size:10px}.elevation-panel .field-pair{align-items:end}.elevation-panel .field-pair>.quiet{white-space:normal;padding:10px;font-size:11px;min-height:39px}.elevation-panel>#placeOnTop{width:100%;margin-top:10px}.custom-editor,.motion-editor{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.custom-editor summary,.motion-editor summary{font-size:12px;font-weight:750;cursor:pointer}.custom-editor .text-button{margin-top:7px}.motion-editor>.quiet{width:100%;margin-top:16px;white-space:normal}.motion-editor>.quiet[aria-pressed=true]{background:#e9ddfa;border-color:#a65cd6;color:#6c3e91}.route-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.route-points{padding-left:23px;max-height:136px;overflow:auto;font-size:10px;line-height:2;font-variant-numeric:tabular-nums;color:var(--muted);margin:12px 0}.motion-export{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.motion-export h3{font-size:14px}.my-library{border-bottom:1px solid var(--line);padding:24px 23px}.my-library .field{margin-bottom:12px}.my-library .project-actions{margin-top:14px}.my-asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.my-asset-card{border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:0;overflow:hidden}.my-asset-card>button[data-add-asset]{width:100%;border:0;padding:7px 7px 10px;display:grid;justify-items:start;text-align:left;background:transparent;border-radius:8px;box-shadow:none!important;transform:none!important}.my-asset-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#f1f4eb;border-radius:5px;margin-bottom:8px}.my-asset-card strong{font-size:11px;overflow-wrap:anywhere}.my-asset-card span{font-size:10px;color:var(--green);margin-top:4px}.my-asset-card>.text-button{font-size:10px;margin:0 6px 5px;color:var(--muted)}.my-asset-grid>.note{grid-column:1/-1}.editor-left .my-library{padding:8px 13px 18px;border:0}.editor-left .my-library .panel-heading h3{font-size:14px}.editor-left .my-asset-grid{grid-template-columns:1fr}.editor-left .my-library .quiet{font-size:11px;white-space:normal;width:100%}.editor-left .my-asset-card>button[data-add-asset]{grid-template-columns:70px minmax(0,1fr);column-gap:10px;align-items:center}.editor-left .my-asset-card img{grid-row:1/3;margin:0;aspect-ratio:1}.editor-left .my-asset-card strong{align-self:end}.editor-left .my-asset-card span{align-self:start}.editor-tabs{gap:2px}.editor-tabs button{padding-inline:5px;font-size:10px}.draft-recovery{margin-top:13px;padding:12px;border:1px solid #d9c7a3;border-radius:9px;background:#fff6dd}.draft-recovery>.note{margin-top:0}.draft-recovery .quiet{padding:7px 10px;font-size:11px;white-space:normal}.autosave-status{color:var(--muted);font-size:10px;white-space:normal}.editor-center .canvas-footer>.autosave-status{margin-left:auto}.preview-play{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 11px;font-size:11px}.preview-play svg{width:15px;height:15px;fill:currentColor;stroke:none;flex:none}#svgMount [data-owner]{cursor:grab;touch-action:none}.board.dragging #svgMount [data-owner]{cursor:grabbing}.route-tool,.route-tool #svgMount [data-object],.route-tool #svgMount [data-owner]{cursor:crosshair!important}.hand-tool #svgMount [data-owner]{cursor:grab!important}.panning #svgMount [data-owner]{cursor:grabbing!important}.scene-playing #svgMount [data-object],.scene-playing #svgMount [data-owner]{cursor:default!important}
@container workspace (max-width:700px){.my-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.my-library{padding-inline:16px}}
@media(forced-colors:active){.draft-recovery{background:Canvas;border-color:CanvasText}.my-asset-card{border-color:CanvasText}}
.editor-left .my-library .panel-heading{display:flex;margin:6px 0 14px}
.scale-panel{border-top:1px solid var(--line);padding-top:15px;margin-top:17px}.scale-panel h3{font-size:12px;margin-bottom:12px}.scale-panel>.range{margin-bottom:10px}.scale-controls{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px}.scale-controls>.quiet{padding:0;min-height:40px;font-size:18px;display:grid;place-items:center}.scale-percent{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px}.scale-percent input{min-width:0;width:100%;text-align:center;font-variant-numeric:tabular-nums}.scale-panel .range output{font-variant-numeric:tabular-nums}
.size-shape-controls{margin-top:16px;padding-top:14px;border-top:1px dashed var(--line)}.size-subheading{font-size:10px;font-weight:700;color:var(--muted)}.size-shape-controls .range{margin-top:12px}.inspector-navigation{position:sticky;top:0;z-index:4;background:#fafbf6;padding:12px;border-bottom:1px solid var(--line)}.inspector-tabs button{font-size:11px;min-height:36px;padding-inline:6px}.editor-right .selection-export{margin:0;padding:20px 17px;border-top:1px solid var(--line)}.editor-right :is(.control-section,.export,.selection-export){scroll-margin-top:78px}.editor-right #objectDock>.control-section{border-bottom:0}
@media(max-width:600px){.editor-bar #editorProject{padding:8px 9px;font-size:10px}.editor-bar-actions{gap:5px}.editor-brand{flex:1;max-width:135px}}
.sticky-selection{display:grid;gap:4px;padding:11px 4px 2px;min-width:0}.sticky-selection strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sticky-selection span{font-size:10px;color:var(--muted)}.editor-right :is(.control-section,.export,.selection-export){scroll-margin-top:130px}.editor-view-tools{flex-wrap:wrap;gap:8px}.zoom-tools{margin-left:auto}.zoom-tools output{width:auto;min-width:76px;white-space:nowrap}.quick-snap{display:flex;align-items:center;gap:4px}.quick-snap button{padding:7px 9px;border-radius:7px;font-size:10px;white-space:nowrap;min-height:32px}.quick-snap button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--lime)}.quick-snap select{padding:6px 22px 6px 7px;width:64px;min-height:32px;font-size:10px}.selection-scale-handle{position:absolute;z-index:3;width:28px;height:28px;padding:0;border:0;background:transparent;display:grid;place-items:center;transform:translate(-50%,-50%);touch-action:none}.selection-scale-handle span{display:block;width:11px;height:11px;border:2px solid #7666e9;background:var(--paper);border-radius:2px;pointer-events:none}.selection-scale-handle:is(:hover,:active){transform:translate(-50%,-50%);background:transparent;box-shadow:none}.selection-scale-handle:hover span{background:#e6dfff;border-color:#4931c4}.handle-nw,.handle-se{cursor:nwse-resize}.handle-ne,.handle-sw{cursor:nesw-resize}.hand-tool>.selection-scale-handle,.panning>.selection-scale-handle{display:none}.board.scaling,#svgMount .board.scaling [data-object]{cursor:nwse-resize}.axis-diagram{display:flex;align-items:center;gap:10px;margin-bottom:12px}.axis-diagram>svg{width:90px;height:55px;flex:none}.axis-diagram g{fill:none;stroke:#a8b6a2;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.axis-diagram[data-axis=x] [data-axis-diagram=x],.axis-diagram[data-axis=y] [data-axis-diagram=y]{stroke:var(--green);stroke-width:3}.axis-diagram text{font-size:10px;font-weight:700;fill:var(--ink)}.axis-diagram>span{font-size:10px;line-height:1.7;color:var(--muted)}.arrange-actions button{display:flex;align-items:center;gap:5px;text-align:left;min-height:45px}.arrange-actions button svg{width:43px;height:30px;flex:none;fill:#85b395;stroke:#386550;stroke-width:.7}.arrange-actions button span{font-size:10px;line-height:1.4;white-space:normal}
#editorExport{anchor-name:--iso-export-trigger}.quick-export{position:fixed;inset:auto 12px auto auto;top:68px;margin:0;width:min(364px,calc(100vw - 24px));max-height:calc(100dvh - 90px);overflow:auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 16px 60px #102e3033;font-size:12px;overscroll-behavior:contain}.quick-export>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.quick-export h2{font-size:19px;margin-top:4px}.quick-export .segmented button{font-size:11px;padding-inline:5px;min-height:38px}.quick-export .export-actions{margin-top:18px}.quick-export .export-actions button{flex:1;padding:11px 8px;font-size:12px}.quick-export>#quickSaveMotion{width:100%;margin-top:10px;font-size:12px}.quick-export .icon-close{position:relative;width:32px;height:32px;flex:none;border-radius:8px;padding:0;background:transparent}.icon-close::before,.icon-close::after{content:"";position:absolute;left:8px;top:14px;width:14px;height:2px;background:currentColor;border-radius:2px;transform:rotate(45deg)}.icon-close::after{transform:rotate(-45deg)}.quick-export .check{align-self:end;margin-bottom:11px}.quick-export .error{font-size:11px;margin-top:12px}
@supports(position-anchor:--iso-export-trigger){.quick-export{position-anchor:--iso-export-trigger;inset:auto;top:anchor(bottom);right:anchor(right);margin-top:8px;position-try-fallbacks:--iso-export-viewport,flip-inline,flip-block}}
@position-try --iso-export-viewport{left:auto;right:12px}
@media(forced-colors:active){.selection-scale-handle span{background:Canvas;border-color:ButtonText}.quick-snap button[aria-pressed=true]{background:Highlight;color:HighlightText}.axis-diagram g{stroke:CanvasText}.axis-diagram text{fill:CanvasText}}
.board.scaling,.board.scaling #svgMount [data-object],.board.scaling #svgMount [data-owner]{cursor:var(--resize-cursor,nwse-resize)!important}
.motif-card{position:relative}.motif-card .variant-count{position:absolute;right:3px;top:3px;font-size:10px;line-height:1.5;padding:1px 4px;border:1px solid #c8d0c5;border-radius:4px;background:#fffdf7eb;color:var(--green);font-weight:650}.variant-field .note{margin-top:0;font-weight:400;font-size:10px}
/* Reserve header space for the shared Tools link without duplicating it. */
.workspace-mode:has([data-tool-directory-button]) .editor-bar{padding-right:100px}
@media(max-width:700px){.workspace-mode:has([data-tool-directory-button]) .editor-bar{padding-right:56px}}
@media(max-width:420px){.workspace-mode:has([data-tool-directory-button]) .editor-brand{display:none}}
.shadow-settings{border:0;padding:0;margin:0;min-inline-size:0}.shadow-settings:disabled{opacity:.45}.shadow-settings:disabled input{cursor:not-allowed}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.elevation-panel>.support-hint{font-size:11px;line-height:1.8;margin-top:10px;padding:10px 11px;border-left:3px solid #93b18b;border-radius:5px;background:#edf3e8;color:#3f624c}.elevation-panel>.support-hint[data-unavailable=true]{border-color:#c3ab77;background:#f7f0de;color:#735d35}
