@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;font-synthesis:none;color:#30372b;background:#f6f6f2;--green:#c5ee89;--muted:#8b9581;--line:#e4e8de;--panel:#fafbf7;--ink:#344528}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{overscroll-behavior:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;transition:background .15s,border-color .15s}button:disabled{opacity:.35;cursor:not-allowed}button:hover:not(:disabled){background:#eaf1e1}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #82a95c;outline-offset:3px}button,a{-webkit-tap-highlight-color:transparent}button{border:0;background:transparent}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;display:block;flex-shrink:0;pointer-events:none}[data-icon]{display:inline-flex;align-items:center;justify-content:center}[hidden]{display:none!important}input,select,textarea{min-width:0}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button{display:none}input[type=range]{accent-color:#95bb6b;cursor:pointer}fieldset{margin:0;padding:0;border:0;min-width:0}fieldset:disabled{opacity:.4}h2{font-size:13px;font-weight:650;margin:0}label{font-size:11px;color:#829171}input:not([type=color]):not([type=range]),select,textarea{background:#fcfdf9;border:1px solid #dfe5d7;border-radius:5px;padding:8px;color:#526544;font-size:12px}textarea{resize:vertical;width:100%;min-height:65px}input[type=color]{border:0;padding:0;cursor:pointer;background:none;width:28px;height:28px}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:1px solid #0001;border-radius:5px}input[type=color]::-moz-color-swatch{border:0;border-radius:5px}.editor{height:100dvh;width:100%;display:flex;flex-direction:column}.editor-top{flex:0 0 64px;display:flex;align-items:center;padding:0 22px;gap:24px;background:var(--panel);border-bottom:1px solid var(--line)}.brand{font-family:Manrope,Arial,sans-serif;font-size:26px;letter-spacing:-1.8px;font-weight:800;display:flex;align-items:center;flex-shrink:0}.brand-icon{height:30px;width:30px;border-radius:9px;background:var(--green);margin-right:10px;color:#344528}.brand-icon svg{width:21px;height:21px}.brand-dot{color:#78a247}.project-info{min-width:0;display:flex;align-items:center;gap:10px;margin-right:auto;padding-left:24px;border-left:1px solid var(--line)}.project-info input{width:180px;background:transparent!important;border-color:transparent!important;font-size:13px!important;padding:6px 3px!important;font-weight:550;color:#3a4035!important}.project-info input:hover{border-color:#dfe5d7!important}.live-dot{display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:#83ad59}.local-label{font-size:9px;color:#929d87;letter-spacing:.5px;white-space:nowrap}.header-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 13px;border:1px solid var(--line);border-radius:7px;background:white;white-space:nowrap;font-size:12px;font-weight:600}.button svg{width:15px;height:15px}.button.primary{background:var(--green);border-color:var(--green);color:#304222}.button.primary:hover:not(:disabled){background:#b4df7c}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:5px;border-radius:5px;color:#839273}.icon-button svg{width:16px;height:16px}.help-button{border:1px solid #d0d9c6;border-radius:50%;min-width:21px;width:21px;height:21px;padding:0;font-size:12px;margin:0 5px}.options-bar{flex:0 0 47px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;gap:20px;padding:0 18px}.tool-name{display:flex;gap:9px;align-items:center;min-width:146px;font-size:11px;color:#586e47}.tool-name strong{font-weight:550}.tool-options{display:flex;gap:18px;align-items:center;flex:1;min-width:0;font-size:11px;color:#8e9985}.tool-options>label{display:flex;align-items:center;gap:7px;white-space:nowrap}.tool-options input[type=number]{width:49px;padding:5px}.tool-options input[type=range]{width:80px;height:3px}.tool-options select{padding:5px;font-size:11px}.tool-options output{font-size:10px;min-width:32px}.history-actions{display:flex;gap:5px;align-items:center}.separator{display:inline-block;height:18px;width:1px;background:var(--line);margin:0 8px}.text-button{padding:4px 0;display:inline-flex;gap:7px;align-items:center;font-size:11px;color:#7f906c}.text-button:hover:not(:disabled){background:transparent;color:#435f2b}.text-button svg{width:14px;height:14px}.history-actions>.text-button{margin-left:8px}.workspace{display:flex;flex:1;min-height:0;position:relative}.tools-panel{width:59px;flex-shrink:0;border-right:1px solid var(--line);background:var(--panel);padding:11px 9px;display:flex;flex-direction:column;align-items:center;gap:9px;overflow:auto;scrollbar-width:none}.tools{display:flex;flex-direction:column;gap:4px}.tool-button{width:38px;height:36px;display:flex;align-items:center;justify-content:center;position:relative;border-radius:6px;color:#839075;border:1px solid transparent;flex-shrink:0}.tool-button svg{height:19px;width:19px}.tool-button[aria-pressed=true]{background:#e8f3da;color:#506e35;border-color:#cdddba}.tool-divider{height:1px;margin:5px 2px;background:var(--line)}.tools-bottom{margin-top:auto;padding-top:14px;color:#b1bf9e;font-size:23px}.canvas-panel{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:#f0f1ed}.document-tab{display:flex;align-items:center;gap:9px;min-height:39px;padding:0 20px;border-bottom:1px solid #e0e3da;font-size:11px;color:#78896a;background:#f6f7f2;flex-shrink:0}.document-tab>span[data-icon] svg{width:14px;height:14px}.document-tab #documentMeta{color:#a0aa96;font-size:10px}.document-tab #fitButton{margin-left:auto;font-size:10px;gap:8px}.tab-dot{height:5px;width:5px;border-radius:50%;background:#9eaf87}.viewport{flex:1;min-height:0;position:relative;overflow:hidden;background-color:#eceee7;background-image:radial-gradient(#cdd3c4 0.6px,transparent 0.6px);background-size:16px 16px;touch-action:none}.document-wrap{position:absolute;left:0;top:0;transform-origin:0 0;box-shadow:0 8px 38px #283c1e1a,0 0 0 1px #34452810;background-color:#fff;background-image:conic-gradient(#e5e8df 25%,transparent 0 50%,#e5e8df 0 75%,transparent 0);background-size:20px 20px}.document-wrap canvas{display:block;position:absolute;inset:0;width:100%;height:100%}#interaction{touch-action:none;outline:none}.ruler{position:absolute;z-index:2;pointer-events:none;font-size:8px;color:#a0aa95;background:#f4f5efe8}.top-ruler{left:18px;right:0;top:0;height:18px;border-bottom:1px solid #dfe3d7}.left-ruler{left:0;top:18px;bottom:0;width:18px;border-right:1px solid #dfe3d7}.ruler span{position:absolute}.top-ruler span{top:3px;border-left:1px solid #cdd5c3;height:14px;padding-left:4px}.left-ruler span{left:3px;writing-mode:vertical-rl;border-top:1px solid #cdd5c3;width:14px;padding-top:4px}.canvas-footer{height:35px;flex-shrink:0;display:flex;align-items:center;padding:0 15px;font-size:10px;color:#8d9a80;border-top:1px solid #dfe3d8;background:#f6f7f2;gap:20px}.zoom-controls{margin-left:auto;display:flex;align-items:center;gap:5px}.zoom-controls button{color:#7c8c6a;font-size:10px;min-width:26px;height:26px;border-radius:4px}#zoomLabel{min-width:48px;font-variant-numeric:tabular-nums}#cursorInfo{font-variant-numeric:tabular-nums}.right-panel{width:284px;flex-shrink:0;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.panel-tabs{display:flex;align-items:stretch;border-bottom:1px solid var(--line);height:40px;flex-shrink:0;padding:0 17px;gap:22px}.panel-tabs>button:not(.icon-button){font-size:11px;color:#99a28e;border-bottom:2px solid transparent;padding:0}.panel-tabs>button.active{border-bottom-color:#98bb74;color:#5f764d}.panel-tabs .icon-button{display:none;margin-left:auto;align-self:center}.properties-scroll{overflow:auto;flex:1;min-height:100px;scrollbar-width:thin;scrollbar-color:#d5decb transparent}.panel-section{padding:19px 18px;border-bottom:1px solid var(--line)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.section-heading>span{color:#a2af95}.section-heading>span svg{width:15px;height:15px}.section-heading>div{display:flex;gap:2px}.section-heading h2{color:#485a3b;font-size:12px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.two-col label,.full-field{display:flex;flex-direction:column;gap:7px}.two-col input,.two-col select{width:100%}.full-field{margin-bottom:14px}.full-field>input,.full-field>select{width:100%}.input-unit{display:flex;align-items:center;background:#fcfdf9;border:1px solid #dfe5d7;border-radius:5px;padding-right:8px;font-size:10px;color:#a4ae9a}.input-unit input{border:0!important;width:100%;background:transparent!important}.document-badges{display:flex;gap:5px;margin-top:13px}.document-badges span{font-size:9px;padding:3px 7px;border-radius:4px;background:#f0f3eb;color:#929f84}.small-action{font-size:10px;margin-top:9px}.hint{font-size:11px;color:#9ba58f;line-height:1.75;margin:0 0 15px}.transform-row{margin-top:14px;align-items:end}.flip-buttons{display:flex;gap:9px;padding-bottom:3px}.flip-buttons .icon-button{border:1px solid var(--line);width:39px}.align-actions{display:flex;justify-content:space-between;margin:14px 0 0;border:1px solid var(--line);border-radius:5px;overflow:hidden}.align-actions button{height:29px;flex:1;display:flex;align-items:center;justify-content:center;color:#9aa98b}.align-actions button svg{width:15px;height:15px}.subheading{font-size:11px;font-weight:550;margin:19px 0 12px;color:#697d58}.range-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#87987a;margin-bottom:8px}.range-label output{color:#a0ad94;font-size:10px}.full-range{display:block;width:100%;height:3px;margin:0 0 17px}.preset-row{display:flex;gap:5px;margin-top:15px}.preset-row button{font-size:9px;border:1px solid var(--line);border-radius:4px;padding:6px 5px;flex:1;color:#7b8f68}.color-field{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.color-field input{height:25px;width:60px}#textProperties .full-field{margin-top:10px}.layers-panel{flex:0 0 36%;min-height:200px;max-height:50%;display:flex;flex-direction:column;border-top:1px solid var(--line);background:#fafbf7;padding:12px 0 0}.layers-panel>.section-heading{padding:0 16px;margin-bottom:8px}.count{font-size:9px;font-weight:400;background:#eaf0e2;color:#8b9b7b;padding:2px 5px;border-radius:3px;margin-left:5px}.layer-blend{display:flex;align-items:center;gap:10px;padding:0 15px 12px}.layer-blend select{width:126px;padding:5px;font-size:10px}.layer-blend label{display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap}.layer-blend input{width:33px;font-size:10px!important;padding:5px 2px!important;text-align:center}.layers-list{flex:1;min-height:0;overflow:auto;border-top:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#d5decb transparent}.layer-row{display:flex;align-items:center;padding:8px 10px;gap:7px;border-bottom:1px solid #e9ede2;min-height:54px;cursor:pointer;position:relative;outline-offset:-2px}.layer-row:hover{background:#f0f5e9}.layer-row.selected{background:#eaf3df;box-shadow:inset 3px 0 #9fbf7a}.layer-row.drag-target{border-top:2px solid #91b95d}.layer-row.invisible .layer-thumb,.layer-row.invisible .layer-label{opacity:.4}.layer-thumb{width:39px;height:31px;object-fit:contain;border:1px solid #dbe4d0;border-radius:4px;background-color:#fff;background-image:conic-gradient(#e8ece1 25%,transparent 0 50%,#e8ece1 0 75%,transparent 0);background-size:10px 10px;flex-shrink:0}.layer-label{flex:1;min-width:0}.layer-label strong{font-size:10px;font-weight:500;color:#63794f;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer-label small{display:block;font-size:9px;color:#a0ad93;margin-top:3px}.layer-row .icon-button{min-width:22px;width:22px;height:24px;padding:3px;flex-shrink:0}.layer-row .icon-button svg{width:13px;height:13px}.layer-row .lock-button:not(.locked){opacity:.25}.layer-row:hover .lock-button{opacity:1}.layer-row .locked{color:#749354}.layer-actions{flex-shrink:0;display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:6px 14px}.layer-actions .danger{margin-left:auto}.danger:hover:not(:disabled){color:#ad796c;background:#f9ece6}.layer-actions .separator{margin:0}.empty-layers{display:flex;align-items:center;flex-direction:column;justify-content:center;height:100%;min-height:90px;color:#b0bda3;gap:6px}.empty-layers svg{width:26px;height:26px}.empty-layers p{font-size:10px;margin:6px}.panel-footer{font-size:9px;color:#a1ad96;display:flex;align-items:center;gap:6px;padding:10px 18px;background:#fafbf7;border-top:1px solid var(--line);flex-shrink:0}.panel-footer .live-dot{width:4px;height:4px}.history-panel{padding:18px;overflow:auto;flex:1;min-height:100px}.history-entry{display:flex;align-items:center;gap:9px;font-size:11px;padding:10px 8px;border-radius:5px;width:100%;text-align:left;color:#8c9b7e;margin-bottom:3px}.history-entry.current{background:#eaf3df;color:#526c3a}.history-entry.future{opacity:.4}.history-entry span{font-size:9px;width:20px;color:#afba9f}.show-panel{position:absolute;right:12px;top:48px;background:var(--green);box-shadow:0 2px 7px #0001;z-index:5}.workspace.panel-hidden .right-panel{display:none}.workspace.panel-hidden .show-panel{display:flex!important}.welcome{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px;overflow:auto;background:#f0f1ed}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.8px;color:#919e83}.welcome>.eyebrow{margin-bottom:30px}.welcome-art{width:175px;height:126px;position:relative;margin-bottom:24px;flex-shrink:0}.art-card{width:128px;height:94px;position:absolute;top:17px;left:22px;border-radius:9px;overflow:hidden}.art-card.back{background:#dde6d1;border:1px solid #cbd8bb;transform:rotate(10deg);top:7px;left:31px}.art-card.front{background:#c6e79b;transform:rotate(-8deg);box-shadow:0 7px 15px #3b592319;display:flex;align-items:end}.art-card svg{width:100%;height:94px}.spark{position:absolute;color:#a2b788}.spark.one{left:-7px;top:3px;font-size:26px}.spark.two{right:-2px;bottom:15px;font-size:21px}.art-pencil{background:#f9fbf4;position:absolute;right:8px;bottom:5px;width:38px;height:38px;border:1px solid #d8e1cc;border-radius:10px;transform:rotate(10deg);color:#829e67;box-shadow:0 2px 6px #31451e0a}.welcome h1{font-family:Manrope,Arial,sans-serif;font-size:29px;line-height:1.38;letter-spacing:-1.2px;margin:0 0 14px;font-weight:750;color:#3e5130}.welcome h1 span{color:#909e82;font-weight:500}.welcome>p{font-size:12px;line-height:1.9;color:#9aa58f;margin:0 0 25px}.welcome-actions{display:flex;gap:10px}.welcome-actions .button{padding:12px 17px;font-size:11px}.demo-button{font-size:10px;color:#94a286;margin-top:21px}.demo-button span{margin-left:7px}.privacy-note{display:flex;align-items:center;gap:7px;font-size:9px;color:#a3ad98;margin-top:45px}.privacy-note .live-dot{width:4px;height:4px}.drop-overlay{position:absolute;inset:15px;border:2px dashed #8db465;border-radius:10px;background:#eff7e5ee;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#6d8954;font-size:12px;pointer-events:none}.drop-overlay svg{width:38px;height:38px}.drop-overlay strong{font-size:22px}.drop-overlay>span:last-child{color:#94a783}dialog{border:1px solid #d5dfc6;border-radius:14px;padding:30px;background:#f9fbf5;color:#3d5030;width:520px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 25px 100px #26331a33}dialog::backdrop{background:#26301de0;backdrop-filter:blur(5px)}dialog h2{font-family:Manrope,Arial,sans-serif;font-size:23px;font-weight:650;letter-spacing:-.8px;line-height:1.3}dialog p{font-size:12px;color:#93a182;line-height:1.8;margin:15px 0 23px}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.dialog-heading .eyebrow{display:block;margin-bottom:11px}.dialog-heading .icon-button{margin:-8px -10px 0 0;flex-shrink:0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:27px}.dialog-actions .button{font-size:11px}.format-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:24px 0}.format-presets button{border:1px solid #dce5d2;border-radius:7px;background:#fff;padding:15px 5px 11px;display:flex;align-items:center;flex-direction:column;font-size:10px;gap:9px;color:#82966f}.format-presets button.selected{border-color:#9cbb7d;background:#eef6e4;color:#5d7846}.format-presets small{font-size:8px;color:#a0ad93}.format-presets svg{width:24px;height:24px}.format-presets [data-icon=portrait] svg{width:16px;height:24px}.format-presets [data-icon=landscape] svg{width:28px;height:24px}dialog .two-col{margin-bottom:16px}dialog .full-field{margin:16px 0}dialog input:not([type=range]):not([type=color]),dialog select{background:white;padding:10px}#helpDialog{width:620px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}.help-grid strong{font-size:12px;color:#617b4b}.help-grid p{font-size:11px;margin:8px 0 10px}.shortcut-list{display:grid;grid-template-columns:1fr 1fr;gap:13px 25px;margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.shortcut-list>span{font-size:10px;color:#92a080;display:flex;align-items:center;justify-content:space-between;gap:6px}kbd{font-family:inherit;font-size:9px;background:#f0f4e9;border:1px solid #dfe5d6;border-radius:3px;padding:3px 5px;color:#7b9168;white-space:nowrap}.toast{position:fixed;bottom:45px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#344528;color:#f1f8e8;border:1px solid #556b42;border-radius:8px;font-size:12px;z-index:30;box-shadow:0 5px 25px #0002;max-width:90vw;pointer-events:none;line-height:1.6}.recovery-icon{width:48px;height:48px;background:#e3f1d2;border-radius:12px;margin-bottom:20px;color:#7b9c5d}.recovery-icon svg{width:26px;height:26px}
@media(min-width:1600px){.right-panel{width:310px}.panel-section{padding:22px}.welcome h1{font-size:34px}}
@media(max-width:1200px){.editor-top{gap:18px;padding:0 16px}.project-info{padding-left:18px}.project-info input{width:155px}.local-label{display:none}.header-actions{gap:7px}.header-actions .button{padding:9px 10px}.right-panel{width:260px}.tool-options{gap:10px}.tool-name{min-width:125px}.tool-options input[type=range]{width:55px}.options-bar{gap:12px}.export-detail{display:none}.layer-blend{gap:6px;padding-left:12px;padding-right:12px}.layer-blend select{width:112px}.welcome h1{font-size:26px}}
@media(max-width:1000px){.action-label{display:none}.editor-top{gap:15px}.project-info{flex:1}.project-info input{width:100%;max-width:190px}.header-actions .button:not(.primary){width:34px;padding:9px 0}.tool-name{min-width:auto}.tool-name strong{display:none}.tool-options #toolHint{font-size:10px}.history-actions .text-button span:not([data-icon]){display:none}.history-actions .separator{margin:0 4px}.welcome{padding:18px}.welcome-actions{gap:7px;flex-direction:column}.welcome h1{font-size:23px}.privacy-note{font-size:8px;margin-top:30px}.welcome>.eyebrow{font-size:8px}}
@media(max-width:760px){.right-panel{display:none;position:absolute;right:0;top:0;bottom:0;width:275px;z-index:8;box-shadow:-12px 0 35px #25311a18}.workspace.mobile-panel .right-panel{display:flex}.panel-tabs .icon-button{display:flex}.show-panel{display:flex!important}.editor-top{flex-basis:60px;padding:0 12px;gap:12px}.brand{font-size:23px}.brand-icon{width:26px;height:26px;margin-right:6px}.brand-icon svg{width:18px;height:18px}.project-info{padding-left:12px}.header-actions{gap:5px}.header-actions .button{font-size:10px;padding:9px}.header-actions #newButton,.header-actions #openButton,.help-button{display:none}.options-bar{padding:0 10px;gap:10px;flex-basis:45px}.tool-options #toolHint{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.tool-options{gap:8px;overflow:auto;scrollbar-width:none}.tool-options label{font-size:10px}.tool-options #opacityOption{display:none}.history-actions .text-button{margin:0}.tool-name{display:none}.tools-panel{width:49px;padding:10px 5px}.tool-button{width:35px;height:34px}.tools{gap:3px}.document-tab{padding:0 12px;font-size:10px;gap:6px}.document-tab #fitButton{font-size:0}.document-tab #fitButton svg{width:16px;height:16px}.document-tab #documentMeta{font-size:9px}.canvas-footer{padding:0 8px;font-size:9px;gap:5px}#cursorInfo{display:none}.welcome h1{font-size:25px}.welcome-actions{flex-direction:row}.welcome>.eyebrow{font-size:9px}.welcome-art{transform:scale(.9);margin-bottom:15px}.welcome>p{font-size:11px}.privacy-note{font-size:8px;max-width:230px;line-height:1.7}.workspace.panel-hidden .right-panel{display:none}}
@media(max-width:480px){.editor-top{flex-wrap:wrap;flex-basis:90px;gap:4px 10px;padding:10px 12px}.brand{margin-right:auto}.project-info{order:3;flex-basis:100%;padding:0;border:0;gap:8px}.project-info input{max-width:none;padding:2px 0!important;font-size:11px!important}.project-info .live-dot{width:4px;height:4px}.local-label{display:inline;font-size:8px}.header-actions .button.primary{padding:8px 10px}.welcome{padding:20px 12px}.welcome h1{font-size:22px}.welcome-actions{flex-direction:column}.welcome-actions .button{padding:10px 14px;font-size:10px}.welcome>.eyebrow{margin-bottom:13px;font-size:7px}.welcome-art{margin-bottom:5px;height:115px}.welcome>p{font-size:10px;margin-bottom:20px}.privacy-note{margin-top:24px}.demo-button{margin-top:15px;font-size:9px}.options-bar .tool-options #toolHint{max-width:190px}.canvas-footer #documentInfo{max-width:130px;overflow:hidden;white-space:nowrap}.help-grid{grid-template-columns:1fr}.shortcut-list{gap:12px}dialog{padding:24px}dialog h2{font-size:21px}.dialog-actions{flex-wrap:wrap}.format-presets{gap:5px}.format-presets small{font-size:7px}}
@media(max-height:760px){.tools-panel{gap:5px;padding-top:8px}.tools{gap:1px}.tool-button{height:31px}.tools-bottom{display:none}.welcome>.eyebrow{margin-bottom:17px}.welcome-art{margin-bottom:12px}.privacy-note{margin-top:25px}.layers-panel{min-height:185px}.panel-section{padding-top:16px;padding-bottom:16px}}
@media(max-height:600px){.tools{gap:0}.tool-button{height:28px}.tools-panel{padding-top:5px}.tool-divider{margin:2px}.welcome-art{display:none}.welcome>.eyebrow{margin-bottom:16px}.welcome h1{font-size:24px}.welcome>p{margin-bottom:16px}.privacy-note{margin-top:20px}.demo-button{margin-top:16px}.layers-panel{min-height:180px;flex-basis:45%}}
/* Lucide: same local SVG symbols and 1.8 stroke as Tinycut. */
.app-icon{flex:0 0 auto;vertical-align:middle;pointer-events:none}
.help-button{border:0;min-width:26px;width:26px;height:26px;padding:3px}
.help-button .app-icon{width:18px;height:18px}
.tools-bottom .app-icon{width:23px;height:23px}
.spark.one .app-icon{width:26px;height:26px}
.spark.two .app-icon{width:20px;height:20px}
.demo-button{display:inline-flex;align-items:center;gap:7px}
.demo-button span{margin-left:0}
.demo-button .app-icon{width:12px;height:12px}

/* The transformation overlay covers the viewport so edge handles stay visible outside the document. */
#interaction{position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline:none}

.selection-toolbar{display:flex;align-items:center;gap:8px;padding:0 15px 10px;min-width:0;flex-shrink:0}
.selection-toolbar .text-button{font-size:9px;white-space:nowrap;padding:4px 5px;border:1px solid transparent;border-radius:4px}
.selection-toolbar .text-button[aria-pressed=true]{background:#e8f3da;border-color:#cdddba;color:#506e35}
.selection-toolbar .app-icon{width:12px;height:12px}
#selectionSummary{font-size:9px;color:#8c9e7d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:auto}
.group-transform-hint{margin-top:18px;margin-bottom:0;font-size:10px}
/* Tiny3D uses the shared Tiny suite shell, palette and local Lucide icons. */
.viewport{background:#eceee7;background-image:none}.viewport canvas{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none}.viewport-label{position:absolute;top:23px;left:24px;z-index:2;display:flex;align-items:center;gap:8px;font-size:11px;color:#627452;pointer-events:none}.viewport-subtitle{font-size:8px;letter-spacing:1.2px;color:#98a18f;margin-left:8px}.viewport-note{position:absolute;bottom:18px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:8px;z-index:2;font-size:10px;color:#8b9780;pointer-events:none}.viewport-note svg{width:13px;height:13px}.tool-button.active{background:#e8f3da;color:#506e35;border-color:#cdddba}#panelButton{display:none}.tools-bottom{margin-top:auto}.tab-badge{font-size:8px;letter-spacing:1px;border:1px solid #dce3d2;border-radius:3px;padding:3px 5px;color:#97a18c}.footer-right{margin-left:auto;display:flex;align-items:center;gap:12px}.axis{font-size:9px;font-weight:700}.axis.x{color:#b77d6b}.axis.y{color:#7d9d5a}.axis.z{color:#718fbe}.eyebrow{font-size:8px;letter-spacing:1.5px;color:#9aa58d;display:block;margin-bottom:5px}.right-panel{width:286px}.selection-type{font-size:8px;letter-spacing:1px;color:#a0ac95;margin:0 0 20px}.transform-group{margin-bottom:16px}.transform-title{font-size:10px;color:#849576;margin-bottom:8px}.axis-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.axis-field{display:flex;border:1px solid #dfe5d7;border-radius:5px;align-items:center;background:#fcfdf9;overflow:hidden}.axis-field span{padding-left:8px;font-size:9px}.axis-field input{border:0!important;padding:8px 5px!important;width:100%;font-size:11px!important;text-align:right;background:none!important}.small-action{font-size:9px}.material-heading{margin-top:24px;padding-top:21px;border-top:1px solid var(--line)}.color-field{display:flex;align-items:center;justify-content:space-between;font-size:11px}.swatches{display:flex;gap:8px;margin:13px 0 21px}.swatches button{width:23px;height:23px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px #dfe5d6;background:var(--swatch)}.swatches button:hover{transform:scale(1.12);background:var(--swatch)!important}.range-label{display:flex;justify-content:space-between;font-size:10px;margin:12px 0 6px}.range-label output{font-size:9px;color:#9aa88c}#selectionControls>input[type=range]{width:100%;height:3px}.check-field{display:flex;align-items:center;gap:7px;font-size:10px;margin-top:17px}.check-field input{accent-color:#87a865}.objects-panel{flex:0 0 230px;min-height:150px;display:flex;flex-direction:column;border-top:1px solid var(--line);padding:15px 14px 0}.objects-panel .section-heading{margin-bottom:9px}.count{background:#edf1e6;border-radius:4px;font-size:9px;padding:2px 5px;margin-left:5px;color:#8c9b7d}.objects-list{flex:1;overflow:auto;scrollbar-width:thin}.object-row{display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:5px;padding:5px;margin:2px 0;font-size:11px;min-height:35px}.object-row.selected{background:#edf4e4;border-color:#dce8ce}.object-row .select-object{display:flex;align-items:center;gap:9px;flex:1;min-width:0;text-align:left;padding:4px 0}.object-row .select-object span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.object-row .select-object svg{width:16px;height:16px;color:#91a17e}.object-row .icon-button{height:24px;min-width:24px}.object-row.is-hidden{opacity:.5}.object-actions{display:flex;justify-content:space-between;padding:7px 0;border-top:1px solid var(--line);margin-top:7px}.object-actions .text-button{font-size:10px}.scene-tab{overflow:auto;flex:1;padding:15px}.panel-footer{padding:13px 17px;border-top:1px solid var(--line);font-size:9px;color:#95a386;display:flex;align-items:center;gap:8px}.export-options{display:flex;flex-direction:column;gap:10px;margin-top:22px}.export-option{display:grid;grid-template-columns:32px 1fr;gap:5px 12px;text-align:left;padding:16px;border:1px solid #dce5d3;border-radius:8px;background:#fff}.export-option>svg{grid-row:span 2;align-self:center;width:25px;height:25px;color:#82a064}.export-option strong{font-size:12px;font-weight:600}.export-option>span{font-size:10px;color:#94a086}.shortcut-list{display:flex;flex-direction:column}.shortcut-list>span{font-size:11px}.dialog-actions{flex-wrap:wrap}.webgl-error{position:absolute;inset:25%;display:grid;place-content:center;text-align:center;line-height:1.8;padding:20px;border:1px solid #cbd8bc;background:#fafbf7;border-radius:12px;z-index:3;font-size:13px}#toolHint{flex:1;font-size:11px;color:#8e9985}.canvas-footer{gap:15px}#selectedInfo{font-size:9px;color:#9ba68f}
@media(min-width:1600px){.right-panel{width:310px}}@media(max-width:1000px){.viewport-subtitle{display:none}.viewport-note{font-size:8px}.right-panel{width:255px}}@media(max-width:760px){#panelButton{display:flex}.right-panel.open{display:flex}.viewport-note{display:none}.viewport-label{left:15px;top:20px}.tab-badge{display:none}.footer-right{gap:7px}#selectedInfo{display:none}#toolHint{font-size:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history-actions .text-button span{display:none}}@media(max-height:760px){.objects-panel{flex-basis:185px}.material-heading{margin-top:18px;padding-top:15px}}

/* Shared toolbar separators. */
.tools-panel > .tool-divider{width:30px;flex-shrink:0}
/* Shared materials: library and editor live in the right inspector. */
.panel-tabs{gap:19px;padding:0 15px}.panel-tabs>button{white-space:nowrap}
.materials-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fafbf7}
.material-library-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 15px 10px;flex-shrink:0}
.material-library-heading h2{font-size:12px;color:#485a3b}.material-library-heading p{font-size:9px;color:#95a187;margin:7px 0 0}
.materials-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:180px;overflow:auto;padding:0 14px 13px;flex-shrink:0;scrollbar-width:thin}
.material-card{min-width:0;background:#fff;border:1px solid #e0e6d8;border-radius:7px;display:flex;flex-direction:column;align-items:center;padding:9px 5px 7px;gap:5px;color:#718460}
.material-card.active{border-color:#a1be80;background:#edf4e4}.material-card-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.material-card small{font-size:8px;letter-spacing:.3px;color:#9aa58e}
.material-ball{width:35px;height:35px;border-radius:50%;background:radial-gradient(circle at 32% 23%,#fff9,transparent 38%),radial-gradient(circle at 70% 85%,#0006,transparent 65%),var(--material-color);box-shadow:0 4px 6px #34452817;display:block}
.material-ball.metal{background:linear-gradient(155deg,#fff 8%,var(--material-color) 27%,#384438 44%,#fff 51%,var(--material-color) 66%,#344528 92%)}
.material-ball.glass{opacity:.65;box-shadow:inset 2px 2px 6px #fff,inset -2px -3px 4px #879778,0 3px 4px #3445281a}
.material-editor{flex:1;min-height:0;overflow:auto;padding:0 15px 18px;border-top:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#d5decb transparent}
.material-preview{position:relative;height:155px;margin:0 -15px 16px;background:radial-gradient(ellipse at center,#f9fbf4,#e4e9dc);overflow:hidden}.material-preview canvas{display:block;width:100%;height:155px}.preview-caption{position:absolute;bottom:9px;left:0;right:0;text-align:center;font-size:7px;letter-spacing:1.3px;color:#9ca68f;pointer-events:none}
.material-users{font-size:9px;color:#8c9c7b;line-height:1.7;margin:0 0 13px}.material-editor .full-field{margin-bottom:8px}.apply-material{width:100%;font-size:10px;padding:10px 6px;gap:6px}.apply-material svg{width:13px;height:13px}.material-management{display:flex;align-items:center;justify-content:space-between;margin:10px 0 17px}.material-management .text-button{font-size:9px}.material-management svg{width:12px;height:12px}
.material-channel{border-top:1px solid var(--line);padding:14px 0}.material-channel h3{font-size:11px;font-weight:600;color:#526744;margin:0 0 14px}.material-channel .hint{font-size:9px;margin-bottom:0}.material-channel .swatches{margin:12px 0 16px;gap:7px}.material-channel .swatches button{width:22px;height:22px}.material-parameter{margin-top:12px}.material-parameter>label{font-size:10px;color:#849775}.material-parameter-inputs{display:flex;align-items:center;gap:7px;margin-top:7px}.material-parameter-inputs input[type=range]{flex:1;min-width:0;width:60px;height:3px}.material-parameter-inputs input[type=number]{width:57px;text-align:right;font-size:10px;padding:6px}.material-parameter-inputs>span{width:10px;font-size:9px;color:#9caa8e}.material-channel .check-field{font-size:10px;margin-top:10px}.material-delete{padding-top:10px;border-top:1px solid var(--line)}.material-delete .danger{color:#ab8074}.material-delete .hint{font-size:9px}
.materials-active .objects-panel{flex-basis:185px;min-height:145px}.object-material-tag{width:15px;height:15px;flex-shrink:0;border-radius:50%;border:1px solid #0001;background:var(--material-color);box-shadow:inset 2px 2px 4px #fff6;padding:0}.object-material-tag:hover{background:var(--material-color)!important;outline:2px solid #b6cc9e;outline-offset:2px}
#editObjectMaterial{font-size:10px}
@media(max-width:1000px){.panel-tabs{gap:14px;padding:0 13px}.panel-tabs>button{font-size:10px}.material-management .text-button{font-size:8px}.material-management .text-button svg{width:10px;height:10px}}
@media(max-width:760px){.right-panel.open{width:300px;max-width:calc(100vw - 49px)}}



.scene-step-fields{margin-top:16px}.scene-step-fields label{font-size:10px}.scene-range{width:100%;height:3px;margin:5px 0 15px}#sceneProperties .check-field{margin-top:12px}
/* Modeling controls remain separate from the object toolbar. */
.modeling-modes{display:flex;align-items:center;gap:3px;border:1px solid #dce4d3;border-radius:6px;padding:3px;flex-shrink:0}.modeling-modes button{font-size:10px;padding:5px 9px;border-radius:3px;color:#879779}.modeling-modes button.active{background:#e5efd9;color:#536e3e}
.mesh-edit-bar{display:flex;align-items:center;gap:12px;padding:8px 16px;border-bottom:1px solid #dbe3d2;background:#f9fbf5;flex-shrink:0;flex-wrap:wrap}.component-modes{display:flex;gap:4px}.component-modes button{display:flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:4px;padding:5px 7px;font-size:10px;color:#849774}.component-modes button.active{border-color:#d0dfbf;background:#e5efd9;color:#526e3d}.component-modes svg{width:14px;height:14px}.mesh-xray{display:flex;align-items:center;gap:4px;font-size:10px;color:#859776}.mesh-xray input{accent-color:#87a963}.mesh-edit-bar>.text-button{font-size:10px}.extrude-controls{margin-left:auto;display:flex;align-items:center;gap:9px}.extrude-controls label{display:flex;align-items:center;gap:5px;font-size:9px}.extrude-controls input[type=number]{width:52px;padding:5px;font-size:10px}.extrude-controls .text-button{font-size:10px}.mesh-properties{border:1px solid #dce6d0;border-radius:6px;background:#f2f6eb;padding:11px;margin-bottom:16px;display:flex;flex-direction:column;gap:6px}.mesh-properties strong{font-size:11px;color:#647e4f;font-weight:600}.mesh-properties>span{font-size:9px;color:#8f9f80}.mesh-properties p{font-size:9px;line-height:1.7;color:#9aa98c;margin:0}
@media(max-width:1100px){.options-bar{gap:12px}.options-bar .tool-name{min-width:auto}.options-bar .tool-name strong{display:none}}@media(max-width:760px){.mesh-edit-bar{padding:6px 10px;gap:7px}.component-modes button{padding:5px;font-size:9px}.mesh-xray{font-size:9px}.extrude-controls{margin-left:0}.modeling-modes button{padding:4px 6px}.options-bar #toolHint{display:none}.options-bar .history-actions{margin-left:auto}}@media(max-width:430px){.component-modes button>span:not([data-icon]){display:none}}
.mesh-selection-tools{display:flex;gap:3px;padding-left:9px;border-left:1px solid #dbe4d1}.mesh-selection-tools button{display:flex;align-items:center;justify-content:center;width:27px;height:27px;border:1px solid transparent;border-radius:4px;color:#839773}.mesh-selection-tools button.active{background:#e5efd9;border-color:#cdddba;color:#506e35}.mesh-selection-tools svg{width:16px;height:16px}.mesh-selection-rectangle{position:absolute;pointer-events:none;z-index:25;border:1px solid #7ba151;background:#aed97a2e;box-shadow:0 0 0 1px #f9fff340}.mesh-selection-rectangle.subtract{border-color:#b58164;background:#d5aa8126;border-style:dashed}
.mesh-edit-bar{gap:9px}
@media(max-width:760px){.mesh-edit-bar{gap:6px}.mesh-selection-tools{padding-left:5px}.mesh-selection-tools button{width:25px;height:25px}.mesh-xray{white-space:nowrap}}
.scene-context-menu,.scene-context-submenu{position:fixed;z-index:1000;width:268px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:5px;background:#fafcf7;border:1px solid #d5dfc9;border-radius:9px;box-shadow:0 12px 40px #2c3c202b,0 2px 8px #26331d12;scrollbar-width:thin;color:#4e6340}.context-menu-heading{padding:9px 9px 10px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #e2e8da;margin-bottom:4px}.context-menu-heading strong{font-size:10px;font-weight:600;color:#7e916f}.context-menu-heading>span{font-size:9px;color:#9aa58f;line-height:1.5}.context-menu-item{width:100%;display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 9px;border-radius:5px;font-size:11px;text-align:left;background:transparent;min-height:31px}.context-menu-item>svg{width:15px;height:15px;color:#849a70}.context-menu-item-text{display:flex;flex-direction:column;gap:3px}.context-menu-item-text small{font-size:9px;color:#9aa98c}.context-menu-item kbd{font-size:8px;padding:2px 4px;color:#9eab92;background:transparent;border-color:#e0e8d7}.context-menu-item.checked{background:#eef4e6;color:#557b38}.context-menu-item:focus-visible{outline:1px solid #a5bf8a;outline-offset:-1px;background:#eaf2df}.context-menu-item.danger{color:#ac7b6e}.context-menu-item.danger>svg{color:inherit}.context-menu-separator{height:1px;background:#e1e8d8;margin:4px 6px}.scene-context-menu button:disabled,.scene-context-submenu button:disabled{opacity:.4}

.scene-context-submenu{width:205px;z-index:1001}.context-submenu-arrow{width:12px!important;height:12px!important;transform:rotate(-90deg);justify-self:end}.context-menu-item[aria-expanded=true]{background:#eaf2df}
.mesh-tool-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex-basis:100%;border-top:1px solid #e0e7d8;padding-top:8px;margin-top:2px;min-width:0}.mesh-tool-options label,.inline-tool-controls{display:flex;align-items:center;gap:6px;font-size:10px;color:#81936f}.inline-tool-controls{flex-wrap:wrap;gap:9px}.mesh-tool-options input[type=number]{width:64px;font-size:10px;padding:6px}.mesh-tool-options select{font-size:10px;padding:6px;max-width:165px}.active-mesh-tool select{font-weight:600;color:#57773c;max-width:172px}.mesh-tool-options .tool-checkbox{font-size:9px;white-space:nowrap}.tool-checkbox input{accent-color:#8eac70}.mesh-tool-hint{font-size:9px;color:#9aa78e;flex:1;min-width:90px;line-height:1.5}.mesh-tool-options .button{font-size:10px;padding:7px 10px}.mesh-tool-options .button svg{width:13px;height:13px}.mesh-tool-options #extrudeControls{margin:0}.knife-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:24}.knife-overlay line{stroke:#cb8d3f;stroke-width:2;stroke-dasharray:7 4}.knife-overlay circle{fill:#fafcf6;stroke:#cb8d3f;stroke-width:2}
@media(max-width:760px){.mesh-tool-options{gap:7px;padding-top:6px}.mesh-tool-options label,.mesh-tool-options select{font-size:9px}.mesh-tool-options input[type=number]{width:53px}.mesh-tool-options select{max-width:145px}.mesh-tool-hint{flex-basis:100%;order:3}.mesh-tool-options .button{margin-left:auto}}

.view-gizmo{position:absolute;right:13px;top:13px;width:132px;height:132px;z-index:4;touch-action:none;user-select:none;cursor:grab;border-radius:50%}.view-gizmo.dragging{cursor:grabbing}.view-gizmo-canvas{position:absolute!important;inset:0;width:100%!important;height:100%!important;pointer-events:none;box-shadow:none!important}.view-axis-button{position:absolute;padding:0;border-radius:50%;border:1px solid transparent;background:transparent;color:var(--axis-color);cursor:pointer}.view-axis-button:hover{background:#fff3!important;border-color:var(--axis-color);box-shadow:0 0 0 2px #fafcf766}.view-axis-button:focus-visible{outline:2px solid var(--axis-color);outline-offset:2px}.view-gizmo-home{position:absolute;right:1px;bottom:1px;width:24px;height:24px;padding:0;border:1px solid #d6dfcb;border-radius:6px;background:#fafcf7c9;color:#81946f;font-size:9px;font-weight:600;z-index:50}.view-gizmo-home:hover{background:#e7efdd}.view-gizmo.dragging .view-axis-button{cursor:grabbing}
@media(max-width:760px){.view-gizmo{width:112px;height:112px;top:9px;right:9px}.viewport-subtitle{display:none}}

.mesh-tool-cursor-hint{position:fixed;z-index:80;pointer-events:none;max-width:min(420px,calc(100vw - 16px));padding:7px 11px;border:1px solid #d4dac8;border-radius:7px;background:#faf9eff2;color:#425135;box-shadow:0 3px 12px #26351a18;font-size:12px;line-height:1.4}
.mesh-tool-cursor-hint.invalid{color:#9a4b32;border-color:#dfba9e}
.document-tab #projectionButton{margin-left:auto;font-size:10px;white-space:nowrap}.document-tab #fitButton{margin-left:0}.viewport-gizmo-space{position:absolute;top:46px;left:24px;z-index:5;display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #dce5d3;border-radius:7px;background:#fafcf7ee;box-shadow:0 2px 10px #26351a14;color:#637653;font-size:11px}.viewport-gizmo-space button{padding:5px 9px;border:1px solid #bbd3aa;border-radius:5px;background:#e8f3da;color:#425b30;font-size:11px;font-weight:700;cursor:pointer}.viewport-gizmo-space button:hover{background:#d9ecc7}.material-texture-card{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;padding:12px;border:1px solid #cbdcbb;border-radius:8px;background:#f0f6e9}.material-texture-card strong{display:block;width:100%;font-size:12px;color:#4a6638}.material-texture-card p{width:100%;margin:0;color:#7b8d70;font-size:10px;line-height:1.4}.material-texture-card #chooseMaterialTexture{width:100%;justify-content:center}.material-texture-card #materialTextureStatus{width:100%;margin:0}.material-texture-card #removeMaterialTexture{font-size:10px}
@media(max-width:760px){.viewport-gizmo-space{top:auto;bottom:16px;left:12px}}
.materials-panel .materials-list{flex:1;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;grid-auto-rows:min-content}
.materials-panel .material-card{min-height:112px;padding:12px 6px;cursor:pointer}
.materials-panel .material-card[draggable="true"]{cursor:grab}
.materials-panel .material-card[draggable="true"]:active{cursor:grabbing}
.material-drop-hint{position:absolute;left:50%;bottom:54px;transform:translateX(-50%);z-index:15;pointer-events:none;white-space:nowrap;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;padding:8px 13px;border-radius:7px;background:#344528e8;color:#f3ffe9;font-size:11px;font-weight:600;box-shadow:0 4px 18px #0003}
.viewport.material-drop-active{outline:2px solid #97d866;outline-offset:-2px}
.materials-panel .material-ball{width:54px;height:54px;background-position:center;border:1px solid #e2e8da}
.materials-panel .material-card-name{font-size:11px}
.materials-panel .material-library-heading p{font-size:10px}
.material-dialog{width:min(1000px,96vw);height:min(850px,90vh);max-width:none;max-height:none;padding:0;border:1px solid #cbd8bb;border-radius:12px;background:#fafbf7;color:#485a3b;box-shadow:0 24px 70px #1d2b1b55;overflow:hidden}
.material-dialog::backdrop{background:#1b281db3}
.material-dialog[open]{display:flex;flex-direction:column}
.material-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 24px 13px;border-bottom:1px solid #dce5d3}
.material-dialog-header h2{font-size:21px;margin:0;color:#405836}
.material-dialog-header .eyebrow{margin-bottom:5px}
.material-dialog-body{display:grid;grid-template-columns:minmax(260px,36%) minmax(0,1fr);flex:1;min-height:0}
.material-preview-column{min-width:0;min-height:0;padding:22px;background:#f2f6eb;border-right:1px solid #dce5d3;overflow:auto;scrollbar-width:thin}
.material-editor-column{display:flex;flex-direction:column;min-width:0;min-height:0}
.material-dialog-tabs{display:flex;gap:5px;padding:10px 16px;border-bottom:1px solid #dce5d3;overflow-x:auto;flex-shrink:0;scrollbar-width:thin}
.material-dialog-tabs button{border:1px solid transparent;border-radius:6px;background:transparent;color:#75896a;padding:9px 13px;font-size:11px;white-space:nowrap;cursor:pointer}
.material-dialog-tabs button.active{background:#e8f3da;border-color:#cdddba;color:#435f32;font-weight:600}
.material-dialog .material-editor{padding:4px 24px 25px;border:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#d5decb transparent}
.material-dialog .material-preview{margin:0 0 18px;height:min(340px,48vh);border:1px solid #dce5d3;border-radius:9px}
.material-dialog .material-preview canvas{width:100%;height:100%;cursor:grab;touch-action:none;outline-offset:-3px}
.material-dialog .material-preview canvas.dragging{cursor:grabbing}
.material-summary .full-field{margin:5px 0 10px}
.material-summary .material-users{margin:0 0 12px}
.material-summary .material-management{margin:11px 0 0}
.material-dialog .material-channel{border-top:1px solid #dce5d3;padding-top:20px}
.material-dialog .material-channel h3{font-size:15px}
.material-dialog .material-parameter-inputs input[type=number]{width:85px}
.material-maps #materialMapSlots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:18px}
.material-map-slot{display:grid;grid-template-columns:70px 1fr;gap:10px;padding:14px;border:1px solid #dce5d3;border-radius:8px;background:white}
.material-map-slot.has-map{border-color:#adc897;background:#fafff6}
.material-map-head{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;align-items:center}
.material-map-head strong{font-size:12px;color:#4b613e}
.material-map-head .hint{font-size:10px;margin:0}
.material-map-image{width:70px;height:70px;object-fit:cover;border:1px solid #e1e8d8;border-radius:5px;background:#f3f5ef}
.material-map-image[hidden]{display:none}
.material-map-actions{grid-column:2;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.material-map-slot:not(.has-map) .material-map-actions{grid-column:1/-1}
.material-map-actions .button{font-size:10px;padding:8px}
.material-map-actions .text-button{font-size:10px}
.material-map-settings{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.material-map-settings label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#839574}
.material-map-settings input,.material-map-settings select{width:100%;min-width:0;padding:6px;font-size:11px}
@media(max-width:700px){.material-dialog{width:98vw;height:94vh}.material-dialog-header{padding:12px 15px}.material-dialog-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.material-preview-column{padding:10px 15px 4px;max-height:42vh;border-right:0;border-bottom:1px solid #dce5d3}.material-dialog .material-preview{height:145px;margin:0 0 9px}.material-dialog .material-editor{padding:0 15px 20px}.material-maps #materialMapSlots{grid-template-columns:1fr}.material-dialog-tabs{padding:7px}}
.material-preview-shape{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:-8px 0 12px;font-size:11px;color:#849775}
.material-preview-shape select{width:120px;padding:5px;font-size:11px}
.material-map-strengths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px;padding-top:12px;border-top:1px solid #dce5d3}
.material-map-strengths .material-parameter{margin-top:0}
@media(max-width:700px){.material-map-strengths{grid-template-columns:1fr}}
.material-preset-section .hint{font-size:10px;line-height:1.5}
.material-preset-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0 4px}
.material-preset-button{display:flex;align-items:center;gap:10px;min-width:0;min-height:65px;padding:10px;text-align:left;border:1px solid #dce5d3;border-radius:8px;background:#fff}
.material-preset-button:hover{border-color:#9ebd7b;background:#f3f8ec}
.material-preset-swatch{display:block;flex:0 0 39px;width:39px;height:39px;border-radius:7px;border:1px solid #0002;background:radial-gradient(circle at 30% 25%,#fff9,transparent 40%),linear-gradient(145deg,transparent 35%,#0003),var(--preset-color);box-shadow:inset 0 2px 4px #fff6,0 2px 4px #0002}
.material-preset-text{display:flex;flex-direction:column;min-width:0;gap:3px}
.material-preset-text strong{font-size:11px;color:#4d6340}
.material-preset-text small{font-size:9px;color:#8b9a80;line-height:1.35}
@media(max-width:700px){.material-preset-list{grid-template-columns:1fr}}
.boolean-modifier-panel{border:1px solid #dce5d3;border-radius:8px;background:#f5f9ef;padding:13px;margin:12px 0}
.boolean-modifier-panel .section-heading{margin-bottom:7px}
.boolean-modifier-panel .hint{font-size:10px;line-height:1.5;margin:4px 0 12px}
.boolean-modifier-panel .full-field{margin-bottom:9px}
.boolean-modifier-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px}
.boolean-modifier-actions .button{font-size:10px;padding:7px 9px}
.boolean-modifier-actions .danger{color:#a36c60}

/* In-app manual */
.help-dialog{width:min(1140px,96vw);height:min(860px,92dvh);max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid #cbd8bb;border-radius:14px;background:#fafbf7;color:#405036;box-shadow:0 28px 80px #17261860}
.help-dialog::backdrop{background:#17251bd0}
.help-dialog[open]{display:flex;flex-direction:column}
.help-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:20px 28px 17px;border-bottom:1px solid #dce5d3}
.help-dialog-header h2{font-family:Manrope,Arial,sans-serif;font-size:24px;letter-spacing:-.6px;color:inherit}
.help-dialog-header .eyebrow{display:block;margin-bottom:5px;color:#7e966a;font-size:10px;letter-spacing:1.5px;font-weight:700}
.help-dialog-body{display:grid;grid-template-columns:260px minmax(0,1fr);flex:1;min-height:0}
.help-sidebar{display:flex;flex-direction:column;min-height:0;padding:19px 13px 16px;background:#f1f5eb;border-right:1px solid #dce5d3}
.help-sidebar>label{margin:0 10px 9px;font-size:11px;font-weight:650;color:#657c56}
.help-sidebar>input{margin:0 8px 12px;width:calc(100% - 16px);padding:10px 12px!important;font-size:12px!important}
.help-sidebar nav{min-height:0;overflow:auto;padding:0 3px 6px;scrollbar-width:thin;scrollbar-color:#cbd8be transparent}
.help-sidebar nav h3{margin:19px 9px 6px;color:#849578;font-size:10px;font-weight:750;letter-spacing:1.1px;text-transform:uppercase}
.help-sidebar nav h3:first-child{margin-top:5px}
.help-sidebar nav button{display:block;width:100%;padding:10px 12px;border-radius:7px;text-align:left;color:#536a48;font-size:12px;font-weight:550;line-height:1.3}
.help-sidebar nav button:hover{background:#e5eddb}
.help-sidebar nav button.active{background:#dcebcf;color:#365827;font-weight:700;box-shadow:inset 3px 0 #87af65}
.help-empty{margin:16px 10px;font-size:12px;line-height:1.5}
.help-article{min-height:0;overflow:auto;outline:none;padding:36px clamp(28px,5vw,72px) 64px;scrollbar-width:thin;scrollbar-color:#cbd8be transparent;font-size:13px;line-height:1.75;color:#4b5947}
.help-article>*{max-width:720px}
.help-article-eyebrow{display:block;color:#7a9b64;font-size:10px;font-weight:750;letter-spacing:1.4px;text-transform:uppercase}
.help-article h2{margin:6px 0 3px;color:#304a2d;font-family:Manrope,Arial,sans-serif;font-size:clamp(25px,3vw,34px);letter-spacing:-1.1px;line-height:1.2}
.help-article .help-lead{margin:0 0 30px;color:#819176;font-size:14px}
.help-article h3{margin:29px 0 9px;color:#3a5835;font-family:Manrope,Arial,sans-serif;font-size:17px;line-height:1.4}
.help-article p{margin:0 0 15px;line-height:1.8;color:inherit}
.help-article ol,.help-article ul{margin:7px 0 21px;padding-left:24px}
.help-article li{padding-left:7px;margin:0 0 11px}
.help-article li::marker{color:#79a35d;font-weight:750}
.help-article strong{color:#344e31;font-weight:700}
.help-article code,.help-article kbd{padding:2px 5px;border:1px solid #d9e2d2;border-radius:4px;background:#f0f5ea;color:#3f6233;font-size:.9em;white-space:nowrap}
.help-article .help-callout{padding:15px 18px;border-left:3px solid #8eb66d;border-radius:0 6px 6px 0;background:#edf5e7;color:#41543a}
.help-shortcuts{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 18px;align-items:center;margin:10px 0 24px;border-top:1px solid #dce5d3}
.help-shortcuts>span,.help-shortcuts>kbd{padding:10px 0;border-bottom:1px solid #dce5d3}
.help-shortcuts>kbd{justify-self:end}
@media(max-width:700px){.help-dialog{width:98vw;height:95dvh}.help-dialog-header{padding:13px 17px}.help-dialog-header h2{font-size:19px}.help-dialog-body{grid-template-columns:1fr;grid-template-rows:minmax(145px,31%) minmax(0,1fr)}.help-sidebar{padding:10px 12px;border-right:0;border-bottom:1px solid #dce5d3}.help-sidebar>label{display:none}.help-sidebar>input{margin-bottom:5px}.help-sidebar nav{display:flex;align-content:flex-start;align-items:flex-start;gap:5px;flex-wrap:wrap}.help-sidebar nav h3{flex-basis:100%;margin:10px 7px 1px}.help-sidebar nav button{width:auto;padding:7px 9px}.help-article{padding:22px 20px 40px}.help-article .help-lead{margin-bottom:16px}}
