:root{--ink:#352a3d;--accent:#775586;--line:#e6deea;--muted:#887b90}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f7f4f8;font:13px Arial,sans-serif}button,input,select,textarea{font:inherit}button,.upload{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;background:#fffdfa;color:var(--ink);padding:10px 12px}button:hover{border-color:#a48cae;background:#f4eef7}button:focus-visible,a:focus-visible{outline:3px solid #b393c2;outline-offset:2px}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover{background:#62416f}header{min-height:76px;padding:15px 24px;display:flex;align-items:center;gap:10px;background:white;border-bottom:1px solid var(--line)}.brand{font-weight:700;font-size:23px;letter-spacing:-1px;text-decoration:none;color:#493653}.title{margin-right:auto;color:var(--muted);font-size:12px}#saveStatus{font-size:10px;color:#84738d;margin-right:10px}main{display:grid;grid-template-columns:275px minmax(300px,1fr) 270px;height:calc(100vh - 76px)}aside{padding:15px;background:#fffdff;overflow:auto}.tools{border-right:1px solid var(--line)}.properties{border-left:1px solid var(--line)}nav{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:18px}nav button{font-size:11px;padding:9px}nav button.active{background:#775586;color:#fff}.workspace{display:flex;flex-direction:column;min-width:0;background-color:#f2edf4;background-image:linear-gradient(#e9e2ed 1px,transparent 1px),linear-gradient(90deg,#e9e2ed 1px,transparent 1px);background-size:22px 22px}.toolbar{display:flex;align-items:center;gap:7px;padding:12px;background:#f9f6fc;border-bottom:1px solid var(--line)}.toolbar input{flex:1;min-width:80px;border:0;background:transparent;margin:0}.toolbar button{padding:7px 10px}.toolbar output{font-size:11px;min-width:36px;text-align:center}#scrollArea{flex:1;overflow:auto;padding:25px;display:flex;align-items:flex-start;justify-content:center}#artboardWrap{width:min(100%,430px);flex-shrink:0;box-shadow:0 12px 40px #3f2a5420;background:white}#artboard{display:block;width:100%;height:auto;touch-action:none;overflow:hidden}#artboard .layer{cursor:move}#artboard .selected-outline{stroke:#9d77b0;stroke-width:3;stroke-dasharray:10 5;fill:none;pointer-events:none}.canvas-note{text-align:center;font-size:10px;color:#8c7b97;background:#faf7fc;padding:9px}h2{font:400 29px Georgia,serif;margin:0 0 12px}h3{font-size:10px;letter-spacing:1.5px;margin:7px 0 13px}.hint,p{line-height:1.6;color:#83738a}.hint{font-size:11px}.tools .stack{display:grid;gap:8px}.tools .stack button{text-align:left}.background-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.background-grid button{padding:0;overflow:hidden;position:relative;border-radius:8px}.background-grid img{display:block;width:100%;aspect-ratio:5/7;object-fit:cover}.background-grid span{display:block;font-size:9px;line-height:1.2;padding:5px;background:white}.layers{margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}.layer-row{display:flex;gap:4px;margin:5px 0;border:1px solid var(--line);border-radius:7px;padding:3px;background:#fff}.layer-row.active{border-color:#9c7dac;background:#f1e9f6}.layer-row button{font-size:10px;padding:6px;border:0;background:transparent}.layer-row .select-layer{flex:1;min-width:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}label.field{display:block;font-size:11px;color:#7a6784;margin:12px 0 5px}input:not([type=color],[type=checkbox],[type=file]),textarea,select{width:100%;padding:9px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink)}textarea{resize:vertical;min-height:110px;font:18px 'Frank Ruhl Libre',serif}.pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.prop-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.prop-actions button{font-size:11px;padding:8px}input[type=color]{width:100%;height:34px;border:1px solid var(--line);background:white;border-radius:6px}.upload{display:block;border:1px dashed #bba9c6;border-radius:8px;padding:12px;background:#f7f1fa;text-align:center;color:#775586}.upload input{display:none}dialog{width:min(740px,95vw);max-height:90vh;overflow:auto;border:1px solid #e6daed;border-radius:19px;padding:27px;color:var(--ink);background:#fffdfc;box-shadow:0 25px 90px #26142a40}dialog::backdrop{background:#22162980}.dialog-head{display:flex;justify-content:space-between;gap:20px}.dialog-head button{border:0;background:none;font-size:24px;padding:0}.start-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}#startDialog .background-grid{grid-template-columns:repeat(4,1fr)}#downloadDialog{max-width:450px}#downloadDialog>button{display:block;width:100%;margin:12px 0}.selected-badge{color:#775586;font-size:11px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);border-radius:9px;padding:12px 20px;background:#493253;color:white;opacity:0;pointer-events:none;transition:opacity .15s;z-index:99}#toast.visible{opacity:1}@media(max-width:1100px){main{grid-template-columns:220px minmax(280px,1fr) 225px}.title,#saveStatus{display:none}.brand{margin-right:auto}}@media(max-width:780px){header{padding:11px;flex-wrap:wrap;gap:7px}.brand{font-size:21px}header button{font-size:10px;padding:8px}main{height:auto;display:grid;grid-template-columns:1fr}.tools{order:1;padding:12px;border:0}.workspace{order:0;min-height:530px}.properties{order:2;padding:18px;border-top:1px solid var(--line)}#scrollArea{height:400px;max-height:60vh;min-height:320px}.tools nav{padding:0 0 12px}.layers{max-height:260px;overflow:auto}.background-grid{grid-template-columns:repeat(6,1fr)}#startDialog .background-grid{grid-template-columns:repeat(3,1fr)}.toolbar input{max-width:150px}.canvas-note{font-size:9px}dialog{padding:20px}}

.workspace,#scrollArea{min-height:0}button[aria-pressed=true]{border-color:var(--accent)}

/* Modern studio workspace */
html#simchaFreshTheme body#simchaFreshBody.studio-modern{--ink:#27382f;--accent:#6c4c7c;--line:#e6e0e8;--muted:#68726c;background:#f5f2f6!important;color:var(--ink)!important;overflow:hidden;font:13px Arial,sans-serif!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern>header{min-height:80px!important;height:80px!important;padding:14px 24px!important;gap:10px!important;background:#fffefa!important;max-width:none!important;border-bottom:1px solid #e7e1e7!important;box-shadow:0 2px 14px #34253c06!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .brand{font:700 23px Arial!important;color:#344b3d!important;letter-spacing:-1px!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .title{display:flex!important;flex-direction:column;gap:5px;margin-right:auto!important;padding-left:20px;border-left:1px solid #e4dfe6;color:#526052!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .title strong{font-size:10px;letter-spacing:2px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .title small{font-size:11px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern #saveStatus{font-size:11px;color:#607162;margin-right:8px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern button{transition:background .15s,border-color .15s,box-shadow .15s}html#simchaFreshTheme body#simchaFreshBody.studio-modern button:disabled{opacity:.4;cursor:default}
html#simchaFreshTheme body#simchaFreshBody.studio-modern>header button{font-size:12px;padding:11px 15px;border-radius:9px}html#simchaFreshTheme body#simchaFreshBody.studio-modern>header .primary{background:#6c4c7c!important;color:white!important;border:1px solid #6c4c7c!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern main{display:grid!important;grid-template-columns:310px minmax(280px,1fr) 288px!important;max-width:none!important;height:calc(100dvh - 80px)!important;min-height:0;margin:0!important;padding:0!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern aside{background:#fffefa!important;min-height:0;padding:18px!important;overflow:auto}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools{border-right:1px solid #e5e0e6}html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties{border-left:1px solid #e5e0e6}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px!important;padding:0 0 18px!important;margin:0!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav button{font-size:11px;padding:13px 5px;background:#f7f5f8;border-color:transparent;border-radius:10px;min-width:0;min-height:45px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav button.active{background:#eee5f3;color:#674775;border-color:#d8c6e2;box-shadow:0 2px 5px #78548709}
html#simchaFreshTheme body#simchaFreshBody.studio-modern h2{font:400 27px Georgia,serif!important;letter-spacing:-.5px!important;color:#334d3d!important;margin:0 0 10px!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern h3{color:#695774!important;font:700 10px Arial!important;letter-spacing:1.4px;margin:22px 0 12px!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern p,html#simchaFreshTheme body#simchaFreshBody.studio-modern .hint{color:#677268!important;line-height:1.65!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-subtitle{font-size:12px;margin:0 0 16px!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .starter-category-label{font-size:10px;color:#786981;display:block;border-bottom:1px solid #e9e3eb;margin-bottom:20px;padding-bottom:16px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .starter-category-label select{margin-top:6px;background:#fbf9fc}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .workspace{background-color:#eeeaf0!important;min-height:0;min-width:0;background-image:radial-gradient(#cfc6d5 .8px,transparent .8px)!important;background-size:18px 18px!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .workspace.no-grid{background-image:none!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-context{display:flex;justify-content:space-between;gap:10px;padding:14px 18px 0;background:#faf8fb;color:#6d6873;font-size:10px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-free-badge{color:#47705b}html#simchaFreshTheme body#simchaFreshBody.studio-modern .toolbar{background:#faf8fb!important;padding:10px 14px!important;gap:5px!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .toolbar input{font-weight:600;font-size:13px;color:#344b3d;max-width:none}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .toolbar button{padding:7px 9px;font-size:12px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .toolbar output{font-size:10px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-tools{display:flex;justify-content:space-between;gap:8px;padding:9px 14px;background:#fffefa;border-bottom:1px solid #e2dce5}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-tools>div{display:flex;gap:7px;align-items:center;flex-wrap:wrap}html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-tools button{font-size:10px;padding:6px 9px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-tools label{display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap;color:#736979}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-tools input{accent-color:#785487}
html#simchaFreshTheme body#simchaFreshBody.studio-modern #scrollArea{padding:30px;align-items:flex-start;min-height:0}
html#simchaFreshTheme body#simchaFreshBody.studio-modern #artboardWrap{box-shadow:0 20px 60px #44334c25;border-radius:2px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-note{font-size:10px;padding:11px 8px;background:#faf8fb;color:#817486;border-top:1px solid #e2dce5}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .library-controls{display:grid;gap:8px;position:sticky;top:-18px;background:#fffefa;padding:8px 0;z-index:2}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .library-controls input,html#simchaFreshTheme body#simchaFreshBody.studio-modern .library-controls select{font-size:12px;min-height:38px;border-radius:9px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .library-count{font-size:10px;margin:4px 0 10px;color:#82748a!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library button{border:1px solid #e7e1e8;padding:0!important;background:white;border-radius:11px;text-align:left;overflow:hidden}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library button:hover{border-color:#9c7aac;box-shadow:0 5px 15px #50335f15;transform:translateY(-1px)}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library button[aria-pressed=true]{border:2px solid #6f4f7f}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library img{aspect-ratio:5/7;object-fit:cover;width:100%;display:block}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library span{padding:9px 8px!important;background:#fffefa!important;display:block}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library strong{display:block;font-size:11px;line-height:1.35;color:#394c3e;font-weight:600}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library small{display:block;font-size:9px;line-height:1.35;color:#81738a;margin-top:4px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .library-more{width:100%;margin-top:15px;font-size:12px;padding:11px;background:#f3edf7;border-color:#dfd1e7;color:#6a497b}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .library-more[hidden]{display:none}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .library-empty{grid-column:1/-1;padding:20px;text-align:center}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-secondary-actions{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-secondary-actions button{font-size:11px;padding:9px 10px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .text-presets button{font-size:13px;text-align:left;padding:15px;border-radius:10px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .text-presets button:first-child{font-size:19px;color:#6b4d7a;background:#f2ebf6}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .quick-wording{display:grid;gap:7px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .quick-wording button{font:19px 'David Libre',serif;direction:rtl;padding:12px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .palette-grid button{background:var(--palette-paper);color:var(--palette-ink);border-top:14px solid var(--palette-ink);padding:18px 8px 12px;font-size:11px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .layers{margin-top:26px;padding-top:18px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .layers-heading{display:flex;justify-content:space-between;align-items:center}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .layers-heading h3{margin:0!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern #layerCount{font-size:10px;color:#8d7c96}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .layer-row{border-radius:9px;padding:4px;margin:7px 0;align-items:center}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .layer-row.active{background:#f0e8f5;border-color:#ac8bbc}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .layer-row .select-layer{font-size:12px;text-align:start;padding:9px 6px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .layer-row button:not(.select-layer){padding:6px;min-width:24px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .inspector-intro{font-size:11px;margin:0 0 18px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties h3:first-child{margin-top:0!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .property-type{font-size:12px;font-weight:700;border-bottom:1px solid #e6dfeb;padding-bottom:12px;margin-bottom:14px;color:#665072}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties .field{font-size:11px;margin:13px 0 6px;color:#6c5b76}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties input,html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties select,html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties textarea{border-radius:8px;font-size:12px;background:#fff}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties textarea{font-size:20px;line-height:1.5;min-height:130px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties .prop-actions{gap:5px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties .prop-actions button{font-size:10px;padding:8px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties-empty{text-align:center;padding:50px 12px;color:#75677f}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties-empty>span{display:inline-grid;place-items:center;width:62px;height:62px;border-radius:20px;background:#eee5f3;color:#88639b;font-size:30px;margin-bottom:20px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties-empty h2{font-size:24px!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties-empty p{font-size:12px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .align-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .align-grid button{font-size:10px;padding:8px 4px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern dialog{width:min(1050px,94vw);max-height:90dvh;padding:30px;border-radius:22px;background:#fffefa}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .dialog-eyebrow{font:700 9px Arial;letter-spacing:2px;color:#997a4e}
html#simchaFreshTheme body#simchaFreshBody.studio-modern dialog .dialog-head h2{margin-top:9px!important;font-size:34px!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern #startGrid .modern-library{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern #startGrid .library-controls{grid-template-columns:1fr 220px;top:-30px;background:#fffefa}
html#simchaFreshTheme body#simchaFreshBody.studio-modern #startDialog .start-actions{margin-bottom:20px}html#simchaFreshTheme body#simchaFreshBody.studio-modern #startDialog>p{max-width:650px;font-size:13px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-keyboard{position:fixed;z-index:100;bottom:20px;left:50%;transform:translateX(-50%);width:min(640px,calc(100vw - 16px));padding:14px;background:#fffcf6;border:1px solid #d4bfdf;border-radius:16px;box-shadow:0 15px 60px #2e153d40}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-keyboard-head{display:flex;align-items:center;justify-content:space-between;cursor:grab;touch-action:none;padding-bottom:10px;color:#685071}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-keyboard-head button{padding:4px 9px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-key-row{display:flex;direction:rtl;gap:4px;flex-wrap:wrap;justify-content:center;margin:5px 0}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .studio-key-row button{min-width:31px;min-height:34px;font:20px 'David Libre',serif;padding:4px 8px;border-radius:7px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .simcha-site-ambient,html#simchaFreshTheme body#simchaFreshBody.studio-modern>.site-ambient-toggle{display:none!important}
@media(max-width:1180px){html#simchaFreshTheme body#simchaFreshBody.studio-modern main{grid-template-columns:270px minmax(250px,1fr) 250px!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern aside{padding:14px!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .title small,html#simchaFreshTheme body#simchaFreshBody.studio-modern #saveStatus{display:none!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .title{padding-left:10px}html#simchaFreshTheme body#simchaFreshBody.studio-modern #scrollArea{padding:20px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-tools{flex-direction:column}}
@media(max-width:850px){html#simchaFreshTheme body#simchaFreshBody.studio-modern{overflow:auto}html#simchaFreshTheme body#simchaFreshBody.studio-modern>header{height:auto!important;min-height:72px!important;flex-wrap:wrap;padding:12px!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .title{display:none!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .brand{margin-right:auto!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern>header button{padding:8px 10px;font-size:10px}html#simchaFreshTheme body#simchaFreshBody.studio-modern main{display:flex!important;flex-direction:column;height:auto!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .workspace{order:0;min-height:520px}html#simchaFreshTheme body#simchaFreshBody.studio-modern #scrollArea{height:430px;max-height:65dvh;min-height:320px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools{order:1}html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties{order:2}html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav{grid-template-columns:repeat(6,1fr);position:sticky;top:0;background:#fffefa;z-index:3}html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav button{padding:12px 3px;font-size:10px}html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library{grid-template-columns:repeat(3,minmax(0,1fr))!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern #startGrid .modern-library{grid-template-columns:repeat(3,minmax(0,1fr))!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .canvas-tools{flex-direction:row;flex-wrap:wrap}html#simchaFreshTheme body#simchaFreshBody.studio-modern #startGrid .library-controls{grid-template-columns:1fr}html#simchaFreshTheme body#simchaFreshBody.studio-modern .properties .pair{max-width:600px}html#simchaFreshTheme body#simchaFreshBody.studio-modern dialog{padding:20px}html#simchaFreshTheme body#simchaFreshBody.studio-modern #startDialog .start-actions{grid-template-columns:1fr 1fr}}
@media(max-width:420px){html#simchaFreshTheme body#simchaFreshBody.studio-modern .modern-library{grid-template-columns:repeat(2,minmax(0,1fr))!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern #startGrid .modern-library{grid-template-columns:repeat(2,minmax(0,1fr))!important}html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav{grid-template-columns:repeat(3,1fr)}}

html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav{position:sticky;top:-18px;background:#fffefa;z-index:4}

html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav button{min-height:42px;white-space:normal;font-size:11px;padding:8px 5px}
.botanical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.botanical-grid button{background:#fffdf8;border:1px solid #dfdfd1;border-radius:12px;display:flex;align-items:center;flex-direction:column;padding:6px;cursor:pointer}.botanical-grid img{width:100%;aspect-ratio:1;object-fit:contain}.botanical-grid span{font-size:12px;color:#365744}.studio-resize-handle{cursor:nwse-resize}.piece-ratio{display:flex;gap:8px;align-items:center;font-size:12px;margin:15px 0}.piece-ratio input{width:auto!important}
html#simchaFreshTheme body#simchaFreshBody.studio-modern .piece-dialog{width:min(940px,94vw);max-width:94vw;max-height:92dvh;overflow:auto;padding:22px;border:1px solid #cfd8c3;border-radius:18px;background:#faf9f2;color:#315341}.piece-head{display:flex;gap:15px;justify-content:space-between;align-items:center}.piece-head h2{margin:0;font-family:Georgia,serif;font-weight:400}.piece-head button{min-height:42px}.piece-modes,.piece-presets,.piece-footer{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.piece-modes button[aria-pressed=true]{background:#315b43;color:white}.piece-presets button{font-size:11px;padding:7px 10px}#pieceCanvas{display:block;max-width:100%;max-height:55dvh;width:auto;height:auto;margin:auto;touch-action:none;cursor:crosshair;background:#e6e7df}#pieceStatus{min-height:38px}.piece-footer{position:sticky;bottom:-22px;background:#faf9f2;padding:12px 0;justify-content:flex-end}.piece-dialog::backdrop{background:#213a2d99}.piece-dialog button{min-height:38px}.piece-dialog .primary{background:#315b43;color:#fff}.piece-dialog button:disabled{opacity:.4}.canvas-tools>div{flex-wrap:wrap}
@media(max-width:850px){.botanical-grid{grid-template-columns:repeat(3,minmax(0,1fr))}html#simchaFreshTheme body#simchaFreshBody.studio-modern .tools nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}.piece-head h2{font-size:22px}.piece-footer button{flex:1}.piece-dialog{padding:14px!important}#pieceCanvas{max-height:45dvh}}
