:root{font-family:Arial,Helvetica,sans-serif;color:#283c31;background:#f7f7f0;font-synthesis:none;font-weight:400;--ink: #283c31;--muted: #697264;--line: #dddfd3;--orange: #f05a35;--paper: #fdfdf8;--green: #e9eddf}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.32}button{transition:background .15s,color .15s,border-color .15s}button:hover:not(:disabled){background:#e9ecdf}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #d64b29;outline-offset:4px}::selection{background:#f6b79d;color:#283c31}input,textarea{caret-color:#d64b29}svg{width:18px;height:18px;flex-shrink:0}button{border:0;background:transparent}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}h1,h2{font-size:15px;font-weight:600;letter-spacing:-.025em}button,textarea,input,select{border-radius:5px}.app-header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4%;gap:20px}.brand{display:flex;align-items:center;gap:11px;font-size:22px;font-weight:700;letter-spacing:-1px;white-space:nowrap}.brandmark{width:29px;height:31px;color:var(--orange)}.brand-dot{color:var(--orange)}.header-right{display:flex;align-items:center;gap:27px}.local-badge{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.local-badge>span,.live-indicator>span{width:6px;height:6px;border-radius:50%;background:#6f835e}.text-button{display:inline-flex;gap:7px;align-items:center;padding:8px 5px;font-size:12px}.button{height:39px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:600;white-space:nowrap}.button.primary{color:#fffdf4;background:#ce4727}.button.primary:hover{background:#b83e21}.button.secondary{border:1px solid #d6d9cb;background:transparent}.button.secondary:hover{background:#e9ecdf}main{max-width:1550px;margin:auto;padding:0 4%}.project-bar{padding:35px 0 29px;display:flex;justify-content:space-between;align-items:center;gap:16px}.name-line{display:flex;align-items:center;gap:13px}.project-title input{font-size:28px;font-weight:500;letter-spacing:-1.2px;border:1px solid transparent;padding:0 3px 2px;margin-left:-3px;background:transparent;color:var(--ink);width:clamp(170px,19vw,270px);max-width:100%}.project-title input:hover{border-color:var(--line)}.format-badge{font-family:monospace;font-size:11px;white-space:nowrap;padding:5px 7px;border:1px solid #d5d9c9;border-radius:3px;color:#68725f}.project-title p{font-size:12px;color:var(--muted);margin-top:6px}.project-actions{display:flex;align-items:center;gap:22px}.save-status{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.save-status svg{width:13px;height:13px}.saving-dot{width:5px;height:5px;background:var(--orange);border-radius:50%}.workspace{display:grid;grid-template-columns:minmax(210px,.82fr) minmax(320px,1.44fr) minmax(280px,1fr);border:1px solid var(--line);border-radius:9px;background:var(--paper);overflow:hidden;min-height:618px}.panel{min-width:0}.panel+.panel{border-left:1px solid var(--line)}.panel-heading{height:69px;padding:0 23px;display:flex;align-items:center;justify-content:space-between;gap:10px}.count{font-family:monospace;font-size:10px;color:var(--muted)}.category-tabs{display:flex;margin:0 20px 23px;padding:4px;background:#eef0e5;border-radius:5px;gap:2px}.category-tabs button{padding:8px 2px;flex:1;font-size:12px;color:#64705e}.category-tabs button[aria-selected=true]{background:#fcfdf7;color:#2e4132;box-shadow:0 1px 3px #263a2a13}.glyph-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:0 20px}.glyph-button{height:54px;position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #e0e3d6;border-radius:4px;background:#f8f9f1}.glyph-button canvas{width:24px;height:24px;image-rendering:pixelated}.glyph-button span{position:absolute;bottom:3px;right:4px;font-size:8px;color:#617057}.glyph-button[aria-pressed=true]{background:#fff0e7;border-color:var(--orange);box-shadow:0 0 0 1px var(--orange)}.glyph-button[aria-pressed=true] span{color:#a43f26}.library{display:flex;flex-direction:column}.library-bottom{margin-top:auto;padding:27px 20px 20px}.mini-sample{padding:17px 12px;background:#edf0e4;border-radius:4px;display:flex;align-items:center;justify-content:center}.mini-sample canvas{width:192px;max-width:100%;image-rendering:pixelated}.library-bottom p{font-size:10px;color:var(--muted);text-align:center;margin:13px 0 9px}.library-bottom>.text-button{display:flex;margin:auto;color:#64705e;text-decoration:underline;text-underline-offset:3px;font-size:10px}.editor-heading{height:69px}.editor-heading>div:first-child{display:flex;align-items:center;gap:13px}.code{font-family:monospace;font-size:10px;color:#617057}.glyph-navigation{display:flex;align-items:center;gap:7px}.glyph-navigation>span{font-size:20px;min-width:19px;text-align:center}.glyph-navigation .icon-button{width:26px;height:29px}.glyph-navigation .icon-button:first-child svg{transform:rotate(180deg)}.glyph-navigation svg{width:13px;height:13px}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 22px 17px;border-bottom:1px solid var(--line)}.tool-group{display:flex;align-items:center;gap:4px}.tool{height:33px;display:flex;align-items:center;gap:7px;padding:0 10px;font-size:11px}.tool.active{background:#fce8dc;color:#b94424}.tool svg{width:15px;height:15px}.icon-button{height:32px;width:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;flex-shrink:0}.icon-button svg{width:16px;height:16px}.icon-button.active-grid{background:#e9eddf}.tool-divider{width:1px;height:17px;margin:0 5px;background:var(--line)}.drawing-area{padding:33px 37px 0 49px;position:relative}.drawing-area>canvas{display:block;width:100%;aspect-ratio:1;image-rendering:pixelated;border:1px solid #cbd1bd;border-radius:1px;cursor:crosshair;touch-action:none}.ruler{display:flex;position:absolute;color:#617057;font-family:monospace;font-size:9px;pointer-events:none}.top-ruler{left:49px;right:37px;top:16px;justify-content:space-around}.side-ruler{left:28px;top:33px;bottom:24px;flex-direction:column;justify-content:space-around}.grid-caption{font-family:monospace;font-size:9px;color:#617057;display:flex;justify-content:space-between;margin-top:12px}.transform-bar{display:flex;align-items:center;justify-content:space-between;margin:20px 36px 16px 48px;padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.transform-bar .icon-button{width:28px;height:30px}.transform-bar .tool-divider{margin:0 2px}.editor-footer{display:flex;align-items:center;justify-content:space-between;padding:0 22px 17px;color:#617057;font-size:10px}.editor-footer>div{display:flex}kbd{font-family:inherit;background:#edf0e4;padding:3px 4px;border-radius:3px;font-size:.95em}.specimen-stage{background:#253c32;color:#f0f1c9;margin:0 20px;padding:28px 24px 20px;min-height:220px;border-radius:5px;display:flex;flex-direction:column;justify-content:space-between;max-height:350px;overflow:auto;scrollbar-color:#7b886b #253c32;scrollbar-width:thin}.specimen-stage canvas{display:block;width:100%;image-rendering:pixelated;flex-shrink:0}.specimen-label{font-family:monospace;font-size:8px;letter-spacing:1.4px;opacity:.7;display:block;margin-top:13px}.live-indicator{font-size:8px;letter-spacing:1px;display:flex;align-items:center;gap:5px;color:#6b795e}.live-indicator>span{width:4px;height:4px}.preview-controls{padding:20px}.preview-controls>label{display:block;font-size:11px;margin-bottom:10px}textarea{width:100%;display:block;resize:vertical;min-height:76px;max-height:220px;background:#f7f8f0;border:1px solid #d9dece;padding:10px 12px;font-family:monospace;font-size:11px;line-height:1.55;color:var(--ink)}.sample-presets{display:flex;gap:5px;margin-top:9px;margin-bottom:24px}.sample-presets button{padding:6px 9px;font-size:9px;color:#64705d;border:1px solid #e0e4d5}.sample-presets button.selected{background:#e8eddd;border-color:#d6deca;color:#33472f}.slider-label{display:flex;justify-content:space-between;font-size:10px;align-items:center;margin-bottom:6px}.slider-label output{font-family:monospace;color:#67775b;font-size:10px}input[type=range]{accent-color:#63794e;width:100%;height:14px;cursor:pointer;margin:0 0 17px;display:block}input[type=color]{width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;border-radius:0}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:0}.color-picker{display:block;width:22px;height:22px;border:1px solid #a7b19a;border-radius:50%;overflow:hidden}.color-row{display:flex;align-items:center;justify-content:space-between;margin-top:2px;font-size:10px}.swatches{display:flex;align-items:center;gap:7px}.swatches .icon-button{width:23px;height:25px}.swatches svg{width:13px;height:13px}.page-footer{display:flex;align-items:center;justify-content:space-between;padding:23px 0 28px;font-size:10px;color:#617057}.page-footer>span:first-child{display:flex;align-items:center;gap:8px}.tiny-pixels{display:inline-block;width:11px;height:11px;background:conic-gradient(#8d9b77 25%,transparent 0 50%,#8d9b77 0 75%,transparent 0);background-size:7px 7px}.sheet{border:0;border-radius:12px;padding:28px;max-width:560px;width:calc(100% - 32px);color:var(--ink);background:var(--paper);box-shadow:0 20px 70px #16251b30;max-height:90dvh;overflow:auto}.sheet::backdrop{background:#1d302973}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.dialog-heading h2{font-size:23px;letter-spacing:-.7px;line-height:1.2}.sheet>p,.sheet dd,.sheet #json-options>p{font-size:13px;line-height:1.7;color:#5c6b55}.help-list{margin:24px 0}.help-list dt{font-size:13px;font-weight:600;margin:20px 0 7px}.help-list dd{margin:0}.export-tabs{display:flex;gap:4px;background:#edf0e3;border-radius:5px;padding:4px;margin:23px 0 18px}.export-tabs button{flex:1;font-size:12px;padding:10px}.export-tabs button[aria-selected=true]{background:#fffef8;box-shadow:0 1px 3px #24341c14}.export-preview{padding:16px;background-color:#e9eddf;overflow:auto;border-radius:5px}.export-preview canvas{display:block;width:100%;image-rendering:pixelated}.export-settings{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.export-settings label{font-size:11px;display:flex;flex-direction:column;gap:7px}.export-settings select{height:36px;border:1px solid #d2dac7;padding:0 8px;background:#f8faf2;color:var(--ink);font-size:11px}.export-settings input[type=color]{height:36px;width:100%;border:1px solid #d2dac7;border-radius:4px;padding:4px}.export-note{font-size:10px;line-height:1.6;color:#65745b;margin:10px 0}.full-width{width:100%;margin-top:22px}.json-illustration{padding:34px 10px;background:#e9eddf;font-family:monospace;text-align:center;font-size:23px;margin-bottom:20px}.json-illustration span{font-size:14px}.sheet pre{font-size:11px;background:#edf0e5;padding:18px;white-space:pre-wrap;line-height:1.8}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.small-sheet{max-width:440px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,12px);max-width:calc(100% - 30px);background:#293f32;color:#f7f9ed;box-shadow:0 5px 20px #21382420;border-radius:6px;padding:13px 20px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10}#toast.visible{opacity:1;transform:translate(-50%)}[hidden]{display:none!important}*{scrollbar-width:thin;scrollbar-color:#a7b397 #f2f4e9}@media(min-width:1400px){.workspace{grid-template-columns:minmax(250px,.85fr) minmax(440px,1.5fr) minmax(320px,1fr)}.glyph-list{gap:9px}.glyph-button{height:62px}.panel-heading{height:76px}.drawing-area{padding-top:36px}.top-ruler{top:19px}.side-ruler{top:36px}.preview-controls{padding-top:24px}.specimen-stage{min-height:249px}.specimen-stage canvas{margin-top:3px}}@media(max-width:1100px){.local-badge{display:none}.header-right{gap:16px}.workspace{grid-template-columns:210px minmax(290px,1fr) 280px}main{padding:0 3%}.app-header{padding:0 3%}.panel-heading{padding:0 17px}.editor-heading>div:first-child{gap:8px;flex-direction:column;align-items:flex-start}.glyph-list{gap:5px;padding:0 15px}.category-tabs{margin-left:15px;margin-right:15px}.glyph-button{height:48px}.glyph-button canvas{width:21px;height:21px}.library-bottom{padding:20px 15px}.drawing-area{padding-left:37px;padding-right:22px}.top-ruler{left:37px;right:22px}.side-ruler{left:18px}.editor-toolbar{padding-left:14px;padding-right:14px}.transform-bar{margin-left:35px;margin-right:20px}.transform-bar .icon-button{width:23px}.transform-bar .tool-group{gap:1px}.editor-footer{padding:0 15px 15px;font-size:9px}.specimen-stage{margin:0 16px;padding:25px 20px 18px}.preview-controls{padding:19px 16px}.save-status{font-size:10px}}@media(max-width:850px){.workspace{grid-template-columns:210px minmax(320px,1fr)}.specimen{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;border-left:0!important;border-top:1px solid var(--line)}.specimen .panel-heading{grid-column:1/-1;height:55px}.specimen-stage{margin:0 20px 23px;max-height:350px;min-height:245px}.preview-controls{padding:0 22px 23px 0}.library-bottom{padding-top:23px}.drawing-area{padding-left:49px;padding-right:36px}.top-ruler{left:49px;right:36px}.side-ruler{left:29px}.transform-bar{margin-left:48px;margin-right:35px}.transform-bar .icon-button{width:29px}.project-actions{gap:12px}.editor-heading>div:first-child{flex-direction:row;align-items:center}.page-footer{font-size:9px}}@media(max-width:580px){.app-header{height:72px;padding:0 18px;gap:8px}.brand{font-size:18px;letter-spacing:-.7px;gap:7px}.brandmark{width:25px;height:27px}.header-right{gap:8px}.header-right .text-button{padding:7px}.header-right .text-button span{display:none}.header-right .button{height:34px;padding:0 10px;font-size:10px}.header-right .button svg{width:14px;height:14px}main{padding:0 15px}.project-bar{padding:25px 2px 23px;align-items:flex-start}.project-title input{font-size:26px;width:166px}.name-line{gap:9px}.format-badge{font-size:9px;padding:4px 5px}.project-title p{font-size:10px;margin-top:7px}.project-actions{flex-direction:column-reverse;align-items:flex-end;gap:9px;margin-top:2px}.project-actions .button{height:30px;padding:0 8px;font-size:10px}.project-actions .button svg{width:12px;height:12px}.save-status{font-size:8px;gap:3px;white-space:nowrap}.save-status svg{height:10px;width:10px}.workspace{display:flex;flex-direction:column;border-radius:7px}.panel+.panel{border-left:0;border-top:1px solid var(--line)}.panel-heading{height:55px;padding:0 17px}.library{display:block}.category-tabs{position:absolute;right:17px;top:14px;margin:0;width:168px;padding:3px}.category-tabs button{padding:5px 0;font-size:10px}.library{position:relative}.library .panel-heading{padding-right:190px}.library .count{display:none}.glyph-list{display:flex;gap:7px;overflow-x:auto;padding:2px 17px 14px;scrollbar-width:thin;scroll-snap-type:x proximity}.glyph-button{flex-shrink:0;width:39px;height:47px;scroll-snap-align:start}.library-bottom{display:none}.editor-heading>div:first-child{flex-direction:row;align-items:center}.editor-heading{height:62px}.editor-toolbar{padding:0 16px 14px}.drawing-area{padding:30px 26px 0 39px}.top-ruler{top:13px;left:39px;right:26px}.side-ruler{left:20px;top:30px}.transform-bar{margin:18px 25px 11px 38px}.transform-bar .icon-button{width:27px}.editor-footer{padding:0 16px 15px;font-size:9px}.specimen{display:block}.specimen-stage{min-height:200px;margin:0 17px;padding:24px;max-height:300px}.preview-controls{padding:19px 17px 22px}.preview-controls textarea{min-height:78px}.sample-presets{margin-bottom:23px}.page-footer{padding:20px 2px;align-items:flex-start;gap:15px;line-height:1.6}.page-footer>span:last-child{max-width:130px;text-align:right}.sheet{padding:23px}.dialog-heading h2{font-size:22px}.sheet>p,.sheet dd{font-size:12px}.sheet{max-height:88dvh}.specimen-label{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
