:root{--ink:#2d2520;--muted:#766557;--green:#3b281f;--green-light:#efe3d2;--paper:#f7f0e5;--line:#e5d9c9;--stage:#eee3d6;--accent:#8e603d;--radius:10px;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);font-synthesis:none;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}button,a,input,textarea,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #8e603d}button{border:0;background:none}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;letter-spacing:-.6px}h1,h2{font-size:30px;line-height:1.1}h3{font-size:16px;font-weight:600}p{line-height:1.6}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{appearance:none;margin:0}[hidden]{display:none!important}
.topbar{height:76px;padding:0 28px;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);background:var(--paper);position:relative;z-index:15}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:600;letter-spacing:-1px;line-height:1}.brand-mark{width:36px;height:39px;color:var(--green);display:grid;place-items:center}.brand-mark svg{width:31px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.brand-studio{font-family:'DM Sans',Arial,sans-serif;font-weight:400;letter-spacing:1.3px;font-size:12px;margin-left:8px}.preview-badge{font-size:11px;letter-spacing:1px;color:#7c6756;padding:6px 9px;border:1px solid #e4d7c7;border-radius:4px;background:#f9f1e6}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.save-status{font-size:12px;color:var(--muted);margin-right:10px;white-space:nowrap}.button{border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;font-size:14px;font-weight:500;transition:background .15s,box-shadow .15s}.button .icon{width:17px;height:17px}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#614230}.button.secondary{border:1px solid #e1d4c3;background:var(--paper)}.button.secondary:hover{background:#f5ebdd}.button.full{width:100%}.workspace{display:grid;grid-template-columns:72px 252px minmax(300px,1fr) 274px;height:calc(100dvh - 76px);min-height:590px}.tool-rail{border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:18px 8px;gap:9px;z-index:10;background:var(--paper)}.tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:56px;height:67px;border-radius:9px;color:#7c6b5d;flex-shrink:0}.tool .icon{width:22px;height:22px}.tool span{font-size:11px;font-weight:500}.tool:hover{background:#f3e8d9;color:var(--green)}.tool.active{background:var(--green-light);color:var(--green)}.rail-bottom{margin-top:auto}.library-panel{position:relative;border-right:1px solid var(--line);display:flex;flex-direction:column;background:var(--paper);min-width:0;overflow:hidden}.library-section{display:none;overflow-y:auto;padding:25px 20px 28px;flex:1}.library-section.active{display:block}.panel-heading{margin-bottom:25px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.4px;color:#806b58;display:block;margin-bottom:9px}.panel-heading p{color:var(--muted);font-size:14px;line-height:1.5;margin-top:9px}.field-heading,.section-heading{font-size:13px;font-weight:600;margin:22px 0 12px;display:flex;align-items:center;justify-content:space-between}.field-heading span,.section-heading span{font-size:11px;font-weight:400;color:var(--muted)}.shape-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shape-option{border:1px solid var(--line);border-radius:8px;height:83px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;position:relative}.shape-option svg{height:27px;width:40px;stroke:#9c7f5d;fill:#f3e8d7;stroke-width:1.3}.shape-option span{font-size:12px}.shape-option.active{border-color:var(--green);background:#f4e9d9}.shape-option.active::after{content:'✓';position:absolute;top:4px;right:7px;font-size:10px;color:var(--green)}.material-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.material-option{padding:3px 3px 7px;border:1px solid transparent;border-radius:8px;display:flex;flex-direction:column;gap:7px;font-size:12px;align-items:center}.material-option img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px}.material-option.active{border-color:var(--green);background:#f4e9d9}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500;margin:18px 0}.field input:not([type=range]),.field select,.field textarea{width:100%;border:1px solid #ddcfbd;min-height:39px;padding:9px 10px;border-radius:6px;background:var(--paper);font-size:14px;font-weight:400;resize:vertical}.field textarea{line-height:1.5}.field select{padding-right:23px}.segmented{display:flex;background:#eee2d1;padding:3px;border-radius:7px;gap:3px}.segmented button{flex:1;padding:8px 6px;border-radius:5px;font-size:12px}.segmented button.active{background:var(--paper);color:var(--green);box-shadow:0 1px 4px #00000010}.product-note{display:flex;gap:9px;font-size:12px;line-height:1.6;color:#806c59;padding-top:24px;margin-top:24px;border-top:1px solid var(--line)}.product-note .icon{width:18px;color:#a18465;margin-top:2px}.library-footer{display:flex;justify-content:space-between;font-size:10px;color:#887260;padding:16px 19px;border-top:1px solid var(--line)}.text-preset{width:100%;border:1px solid var(--line);border-radius:8px;padding:16px 7px;margin-bottom:9px;background:#faf5ec;font-size:22px;line-height:1.4}.serif{font-family:'Cormorant Garamond',serif}.script{font-family:'Great Vibes',cursive}.sans{font-size:14px;letter-spacing:3px}.arabic{font-family:'Noto Sans Arabic',Arial,sans-serif}.small-note{font-size:12px;color:#7c6958;line-height:1.7;margin-top:15px}.search-field{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:10px}.search-field input{width:100%;border:0;outline:none;font-size:13px;min-width:0}.search-field .icon{width:16px;color:#958069}.filter-chips{display:flex;flex-wrap:wrap;gap:6px;margin:17px 0}.filter-chips button{font-size:11px;padding:6px 9px;border-radius:20px;background:#f1e6d6;color:#765f4c}.filter-chips button.active{background:var(--green);color:white}.symbol-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.symbol-button{aspect-ratio:1;border:1px solid var(--line);border-radius:7px;display:grid;place-items:center;background:#fffbf4;position:relative}.symbol-button:hover{border-color:var(--green);background:var(--green-light)}.symbol-button svg{width:39px;height:39px;fill:#5f4a35;stroke:#5f4a35;stroke-width:1.4}.symbol-button .symbol-label{position:absolute;bottom:5px;font-size:9px;opacity:.7}.upload-card{border:1px dashed #bba385;border-radius:10px;width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 10px;background:#faf3e8;margin-bottom:12px}.upload-card strong{font-size:14px}.upload-card span{font-size:12px;color:#806a56}.upload-card small{font-size:11px;color:#8a735b;margin-top:9px}.upload-icon{width:43px;height:43px;display:grid;place-items:center;background:#eee0c9;border-radius:50%}.upload-icon .icon{width:22px;color:#785b3c}.photo-tip{margin:28px 0;padding:17px;border-radius:9px;background:#f5ecdd}.photo-tip h3{font-family:'Cormorant Garamond',serif;font-size:21px}.photo-tip p{font-size:12px;color:#7c6854;margin-top:7px}.photo-library{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.photo-library button{padding:0;aspect-ratio:1;border-radius:6px;overflow:hidden;border:1px solid var(--line)}.photo-library img{width:100%;height:100%;object-fit:cover}.template-grid{display:grid;gap:13px}.template-card{padding:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;text-align:left}.template-thumb{height:119px;background-size:cover;background-position:center;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#503922;line-height:1}.template-thumb svg{width:27px;height:27px;stroke:currentColor;fill:none;margin-bottom:6px}.template-name{padding:11px 12px;display:flex;justify-content:space-between;font-size:13px}.template-name span{color:var(--muted);font-size:11px}.layer-list{display:flex;flex-direction:column;gap:8px}.layer-item{border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;gap:7px;padding:8px}.layer-item.selected{border-color:var(--green);background:var(--green-light)}.layer-select{flex:1;display:flex;align-items:center;gap:9px;min-width:0;text-align:left;font-size:12px}.layer-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-select .icon{width:16px}.layer-action{width:25px;height:28px;padding:3px;display:grid;place-items:center;color:#806954}.layer-action .icon{width:15px}.button-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.button-pair .button{padding:8px 6px;font-size:12px;min-width:0}.button-pair .button .icon{width:15px}.design-area{display:flex;flex-direction:column;min-width:0;background:var(--stage);position:relative}.canvas-toolbar{height:61px;border-bottom:1px solid #e3d4bf;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#faf5ec;gap:10px}.button-group{display:flex;gap:4px;align-items:center}.icon-button{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;padding:6px;border-radius:6px;color:#79604c;flex-shrink:0}.icon-button:hover{background:#ebddc9}.icon-button.active{color:var(--green);background:var(--green-light)}.icon-button .icon{width:18px;height:18px}.divider{height:18px;width:1px;background:#d9c8b3;display:inline-block;margin:0 6px}.view-switch{display:flex;border:1px solid #dfcfba;padding:3px;border-radius:7px;background:#eee2d0}.view-switch button{font-size:11px;padding:6px 10px;border-radius:4px;color:#816d59;white-space:nowrap}.view-switch button.active{background:var(--paper);box-shadow:0 1px 3px #0000000c;color:var(--green)}.stage{position:relative;flex:1;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#faf3e8,#e8dbc9)}.stage-heading{position:absolute;left:35px;top:25px;display:flex;flex-direction:column;gap:6px;z-index:2;pointer-events:none}.stage-heading span:first-child{font-size:13px;font-weight:500;color:#765c45}.stage-heading span:last-child{font-size:11px;color:#8b745e}.canvas-host{width:100%;height:100%;position:absolute;inset:0;touch-action:none}.ruler{position:absolute;pointer-events:none;z-index:1;opacity:.36}.ruler-horizontal{left:26px;right:0;top:0;height:11px;background:repeating-linear-gradient(to right,transparent 0 19px,#b7a184 19px 20px,transparent 20px 39px,#b7a184 39px 40px);border-top:1px solid #b9a58d}.ruler-vertical{top:0;bottom:0;left:0;width:11px;background:repeating-linear-gradient(to bottom,transparent 0 19px,#b7a184 19px 20px,transparent 20px 39px,#b7a184 39px 40px);border-left:1px solid #b9a58d}.stage-bottom{position:absolute;bottom:22px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;gap:10px;pointer-events:none}.boundary-status{font-size:11px;color:#7b634d;display:flex;align-items:center;gap:6px;max-width:60%;line-height:1.5}.boundary-status .icon{width:13px;height:13px}.boundary-status.warning{color:#9d632f;cursor:pointer;pointer-events:auto}.guide-toggle{font-size:11px;color:#816a52;display:flex;align-items:center;gap:5px;pointer-events:auto}.guide-toggle input{accent-color:var(--green);width:12px;height:12px}.zoom-control{position:absolute;left:50%;bottom:66px;transform:translateX(-50%);display:flex;align-items:center;gap:2px;background:#fffaf3f2;border:1px solid #e4d6c2;border-radius:9px;padding:3px 5px;box-shadow:0 3px 18px #563d2d0a}.zoom-control .icon-button{width:29px;height:29px}.zoom-control #zoom-fit{width:48px;font-size:11px;color:#7c634b}.zoom-control .divider{margin:0 3px}.canvas-loading{position:absolute;inset:0;background:#eee3d6e3;display:grid;place-items:center;color:#795a3e;font-family:'Cormorant Garamond',serif;font-size:24px;z-index:5}.drop-overlay{position:absolute;inset:15px;border:2px dashed var(--green);border-radius:20px;background:#faf1e4ed;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;font-family:'Cormorant Garamond',serif;font-size:30px}.drop-overlay .icon{width:43px;height:43px}.design-bottom-bar{height:51px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-top:1px solid #e0d1ba;background:#f9f1e5;gap:12px}.design-caption{font-size:11px;color:#806b54;display:flex;align-items:center;gap:9px}.design-caption .icon{width:15px}.text-button{color:#7b634c;text-decoration:underline;text-underline-offset:4px;font-size:11px;padding:8px;white-space:nowrap}.inspector{border-left:1px solid var(--line);background:var(--paper);display:flex;flex-direction:column;overflow-y:auto;padding:23px 20px 15px;position:relative}.inspector-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.inspector-heading h2{font-size:25px}.inspector-heading .eyebrow{font-size:9px;margin-bottom:6px}.inspector-heading #close-inspector{display:none}.control-section{padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:15px}.control-section .field{margin:13px 0;gap:6px;font-size:12px}.control-section input:not([type=range]),.control-section textarea,.control-section select{font-size:13px;min-height:36px;padding:8px}.control-row{display:flex;align-items:center;gap:9px}.control-row>.field{flex:1;min-width:0;margin:6px 0}.format-buttons{display:flex;align-items:center;gap:4px;padding-top:20px}.format-buttons .icon-button{border:1px solid var(--line);font-family:Georgia,serif;font-size:16px}.text-alignment{margin-top:10px}.text-alignment button{padding:5px;display:flex;align-items:center;justify-content:center}.text-alignment .icon{width:17px;height:17px}.section-heading{font-size:12px;margin:6px 0 9px}.rotation-row{justify-content:space-between;margin:13px 0}.angle-field{display:flex;align-items:center;border:1px solid #ddcfbd;border-radius:6px;padding-right:10px;flex:1;max-width:132px}.angle-field input{width:100%;border:0;padding:8px;outline-offset:0;font-size:13px;text-align:center}.angle-field span{color:#8c755e}.rotation-row .icon-button{border:1px solid var(--line);height:36px;width:36px}.align-grid{display:flex;justify-content:space-between;margin:11px 0}.align-grid .icon-button{width:31px;height:31px;border:1px solid var(--line)}input[type=range]{accent-color:var(--green);cursor:pointer;width:100%;height:14px}.range-field{position:relative}.range-field output{position:absolute;right:0;top:0;color:#8b745b;font-size:11px;font-weight:400}.inspector-bottom{margin-top:auto;padding-top:13px}.demo-label{font-size:10px;color:#80674e;margin-bottom:12px}.price-row{display:flex;justify-content:space-between;align-items:center;font-size:13px}.price-row strong{font-family:'Cormorant Garamond',serif;font-size:27px;font-weight:600}.quantity-row{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:12px}.quantity{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;height:33px}.quantity button{padding:4px 10px}.quantity input{width:31px;text-align:center;border:0;font-size:12px}.inspector-bottom .small-note{font-size:10px;margin:9px 0 0}.empty-inspector{padding:45px 3px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:15px;color:#80674f}.empty-inspector>.icon{width:33px;height:33px;opacity:.5}.empty-inspector h3{font-family:'Cormorant Garamond',serif;font-size:25px;color:#6b4e36}.empty-inspector p{font-size:13px}.mobile-inspector-toggle{display:none}.toast-region{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:60;width:max-content;max-width:calc(100vw - 30px);pointer-events:none}.toast{padding:13px 20px;background:#4b3426;color:white;box-shadow:0 7px 30px #0002;border-radius:10px;font-size:14px;animation:toast-in .2s;line-height:1.5}.toast.error{background:#884c37}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}dialog{border:1px solid #dbcab2;border-radius:18px;padding:34px;max-width:700px;width:calc(100vw - 30px);max-height:90dvh;overflow:auto;box-shadow:0 30px 90px #3b241132;color:var(--ink)}dialog::backdrop{background:#2d211b66;backdrop-filter:blur(3px)}.modal-close{position:absolute;right:16px;top:16px;z-index:2}#modal-body>h2{font-size:34px;margin-right:20px}#modal-body>p{font-size:14px;color:var(--muted);margin-top:8px;margin-bottom:24px}.modal-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.review-image{width:100%;max-height:350px;object-fit:contain;background:#f0e4d1;border-radius:10px}.review-summary{display:flex;flex-wrap:wrap;gap:15px;justify-content:space-between;font-size:13px;padding:17px 0;border-bottom:1px solid var(--line)}.review-summary strong{color:var(--green)}.share-field{border:1px solid var(--line);border-radius:8px;display:flex;padding:5px;margin:18px 0;gap:7px}.share-field input{width:100%;min-width:0;flex:1;border:0;padding:8px;font-size:12px;color:#7e654f}.saved-list{display:flex;flex-direction:column;gap:12px;margin:25px 0}.saved-card{display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-radius:10px;padding:10px}.saved-card img{height:66px;width:98px;object-fit:contain;background:#f1e6d5;border-radius:5px}.saved-card-content{flex:1;min-width:0}.saved-card-content strong{font-size:14px}.saved-card-content p{font-size:11px;color:var(--muted);margin-top:5px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0}.help-grid p{font-size:13px;color:var(--muted);margin-top:8px}.help-shortcuts{padding:17px;background:#f5ecde;border-radius:10px;font-size:13px;line-height:2.1}.crop-preview{position:relative;margin:20px auto 16px;max-height:330px;background:#e7d8c0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:10px}.crop-preview img{max-width:100%;max-height:330px;object-fit:contain}.crop-window{position:absolute;border:2px dashed white;box-shadow:0 0 0 500px #0006;pointer-events:none}.crop-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.crop-fields .field{margin:0}.fatal{padding:30px;text-align:center;margin:auto;max-width:550px}.fatal p{margin:20px 0;color:var(--muted)}
@media(min-width:1700px){.workspace{grid-template-columns:80px 285px minmax(400px,1fr) 300px}.library-section{padding:30px 25px}.topbar{padding:0 34px}.inspector{padding:26px}.stage-heading{left:48px;top:34px}}
@media(max-width:1180px){.workspace{grid-template-columns:62px 220px minmax(250px,1fr) 244px}.topbar{padding:0 18px;gap:15px}.brand{font-size:29px}.preview-badge{font-size:9px}.save-status{display:none}.library-section{padding:23px 15px}.inspector{padding:21px 15px}.tool-rail{padding:16px 4px}.tool{width:51px}.canvas-toolbar{padding:0 13px}.view-switch button{padding:6px 7px}.stage-bottom{left:19px;right:19px}.design-caption{font-size:10px}.design-bottom-bar{padding:0 15px}.button-pair .button{font-size:11px}.button-pair .button .icon{width:13px}}
@media(max-width:980px){.workspace{grid-template-columns:62px 218px minmax(260px,1fr)}.inspector{display:none;position:fixed;top:76px;bottom:0;right:0;width:280px;z-index:20;box-shadow:-10px 0 35px #4c312019}.inspector.open{display:flex}.inspector-heading #close-inspector{display:flex}.mobile-inspector-toggle{display:flex}.canvas-toolbar{justify-content:flex-start}.view-switch{margin-left:auto}.top-actions .button{padding:8px 11px}.top-actions #open-designs{font-size:0;gap:0}.top-actions #open-designs .icon{width:19px;height:19px}.stage-bottom .boundary-status{font-size:11px}.design-caption{font-size:11px}}
@media(max-width:700px){.topbar{height:62px;padding:0 14px;gap:9px}.brand{font-size:30px;gap:4px}.brand-mark{width:29px}.brand-mark svg{width:25px}.brand-studio{font-size:9px;letter-spacing:.9px;margin-left:4px}.preview-badge{display:none}.top-actions{gap:6px}.top-actions .button{min-height:34px;padding:8px 10px;font-size:11px;border-radius:6px}.top-actions .button .icon{width:15px;height:15px}.top-actions #save-design{font-size:0;gap:0}.top-actions #open-designs{display:none}.workspace{height:auto;min-height:calc(100dvh - 62px);display:grid;grid-template-columns:1fr;grid-template-rows:55px minmax(380px,calc(100dvh - 300px)) auto}.tool-rail{grid-row:1;flex-direction:row;padding:3px 9px;gap:3px;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line);position:sticky;top:0;height:55px}.tool{width:auto;min-width:46px;height:47px;gap:3px;padding:5px 8px;flex:1;border-radius:6px}.tool .icon{width:19px;height:19px}.tool span{font-size:10px}.rail-bottom{display:none}.library-panel{grid-row:3;border-right:0;border-top:1px solid var(--line);overflow:visible}.library-section{padding:22px 20px;overflow:visible}.panel-heading{margin-bottom:19px}.panel-heading .eyebrow{font-size:9px}.panel-heading h1,.panel-heading h2{font-size:28px}.panel-heading p{font-size:13px}.shape-grid{grid-template-columns:repeat(4,1fr)}.shape-option{height:75px}.shape-option span{font-size:11px}.material-grid{gap:12px}.material-option{flex-direction:row;gap:8px;padding:5px;font-size:12px}.material-option img{width:37px;height:37px}.field-heading{margin:19px 0 9px}.product-note{margin:18px 0 0;padding-top:15px}.library-footer{font-size:11px;padding:14px 20px}.design-area{grid-row:2;min-height:380px}.canvas-toolbar{height:45px;padding:0 12px}.icon-button{width:28px;height:28px}.canvas-toolbar .button-group{gap:0}.canvas-toolbar .divider{margin:0 3px}.view-switch{gap:0;padding:2px}.view-switch button{font-size:10px;padding:6px}.stage-heading{left:23px;top:20px;gap:4px}.stage-heading span:first-child{font-size:11px}.stage-heading span:last-child{font-size:10px}.stage-bottom{left:15px;right:15px;bottom:13px}.boundary-status{font-size:9px!important;max-width:58%;gap:4px}.guide-toggle{font-size:9px;gap:3px}.zoom-control{bottom:42px;padding:2px 4px}.zoom-control .icon-button{width:25px;height:25px}.zoom-control #zoom-fit{font-size:10px;width:42px}.design-bottom-bar{height:34px;padding:0 12px}.design-caption{font-size:8px;gap:4px;line-height:1.4;max-width:78%}.design-caption .icon{width:11px;height:11px}.design-bottom-bar .text-button{font-size:9px;padding:5px}.inspector{top:62px;width:min(320px,90vw);padding:22px}.inspector .field,.inspector .section-heading{font-size:14px}.inspector .field input,.inspector .field select,.inspector .field textarea{font-size:15px}.inspector .button-pair .button{font-size:13px}.inspector .eyebrow{font-size:10px}.inspector-bottom .small-note{font-size:12px}.text-preset{padding:18px}.symbol-grid{grid-template-columns:repeat(5,1fr)}.filter-chips button{font-size:12px}.symbol-button .symbol-label{font-size:8px}.template-grid{grid-template-columns:1fr 1fr}.template-name{font-size:12px}.template-name span{display:none}.template-thumb{height:115px}.upload-card{padding:22px}.small-note{font-size:13px}.layer-item{padding:12px}.layer-select{font-size:14px}dialog{padding:29px 22px;max-height:88dvh}#modal-body>h2{font-size:30px}.saved-card{gap:10px}.saved-card img{width:75px}.saved-card .button{font-size:12px;padding:7px 11px}.help-grid{gap:17px}.toast-region{bottom:15px}.toast{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Regular controls stay readable at normal browser size. */
.eyebrow,.inspector-heading .eyebrow{font-size:12px;letter-spacing:1px}.field,.control-section .field,.field-heading,.section-heading{font-size:14px}.field-heading span,.section-heading span{font-size:12px}.control-section input:not([type=range]),.control-section textarea,.control-section select{font-size:14px}.shape-option span,.material-option,.segmented button{font-size:14px}.tool span{font-size:12px}.view-switch button,.stage-heading span:last-child,.boundary-status,.guide-toggle,.design-caption,.text-button,.library-footer,.preview-badge,.demo-label,.inspector-bottom .small-note{font-size:12px}.stage-heading span:first-child{font-size:14px}.button-pair .button{font-size:13px}.symbol-button .symbol-label{font-size:10px}.range-field output,.quantity-row{font-size:13px}
@media(max-width:700px){.workspace{grid-template-rows:55px minmax(420px,calc(100dvh - 300px)) auto}.design-area{min-height:420px}.top-actions .button{font-size:12px}.tool span{font-size:12px}.shape-option span,.material-option{font-size:13px}.stage-heading span:first-child{font-size:12px}.stage-heading span:last-child{font-size:12px}.boundary-status{font-size:11px!important}.guide-toggle{font-size:11px}.view-switch button{font-size:11px}.design-caption{font-size:10px}.design-bottom-bar .text-button{font-size:11px}.library-footer{font-size:12px}}

.processing .workspace{pointer-events:none;cursor:progress}.layer-multiselect.active{color:#3b281f;background:#eadac3;border-radius:4px}

/* Keep canvas geometry and tool order stable while localized Arabic panels read naturally. */
html[lang="ar"] body{font-family:'Noto Sans Arabic','DM Sans',Arial,sans-serif}html[lang="ar"] .workspace{direction:ltr}html[lang="ar"] .library-panel,html[lang="ar"] .inspector,html[lang="ar"] dialog{direction:rtl;text-align:right}html[lang="ar"] .panel-heading h1,html[lang="ar"] h2,html[lang="ar"] h3{font-family:'Noto Sans Arabic',Arial,sans-serif;letter-spacing:0;line-height:1.6}html[lang="ar"] .brand,html[lang="ar"] .canvas-toolbar,html[lang="ar"] .quantity,html[lang="ar"] .control-row.rotation-row{direction:ltr}.studio-language{font-size:12px;background:#f4e9d9;border:1px solid var(--line);border-radius:6px;padding:7px;max-width:112px}@media(max-width:700px){.topbar .studio-language{max-width:78px;padding:5px;font-size:11px}.topbar{gap:8px}}

/* Warm timber palette: the actual engraving textures remain unchanged. */
.topbar{background:linear-gradient(180deg,#fffaf3,#fbf3e7);box-shadow:0 1px 0 #ffffffb3}.tool-rail,.library-panel,.inspector{background:#fcf7ef}.button.primary{box-shadow:inset 0 1px 0 #ffffff14,0 2px 5px #3b241114}.button.secondary{background:#fffaf3}.shape-option,.symbol-button,.template-card,.text-preset{transition:border-color .16s,background .16s,box-shadow .16s}.shape-option:hover,.material-option:hover,.template-card:hover{border-color:#b89063;box-shadow:0 2px 8px #60402309}.shape-option.active,.material-option.active{box-shadow:inset 0 0 0 1px #8e603d30}.canvas-toolbar{background:#f7efe3}.design-bottom-bar{background:#f8f0e4}.search-field input,.quantity input,.angle-field input,.share-field input{background:transparent}dialog{background:var(--paper)}.studio-language{background:#f5e9d9;color:#3b281f}.price-row strong{color:#3b281f}.library-footer{color:#7e6855}
