: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-inline-start: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(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}
.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}
/* 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}
/* Studio 3: richer catalog, calm chrome, and precise controls. */
.brand.brand-image{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;font-family:'DM Sans',Arial,sans-serif;letter-spacing:0}.brand.brand-image img{width:184px;max-height:25px;height:auto;object-fit:contain}.brand-caption{font-size:10px;font-weight:400;color:var(--muted);letter-spacing:.35px;line-height:1.2}.shape-grid{gap:7px}.shape-option{height:79px}.shape-option span{line-height:1.3;text-align:center}.material-grid{gap:7px}.project-name{pointer-events:auto;max-width:260px;width:min(260px,35vw);font:500 14px 'DM Sans',Arial,sans-serif;color:var(--ink);border:1px solid transparent;border-radius:5px;padding:4px 6px;margin-left:-6px;background:transparent;outline-offset:2px}.project-name:hover,.project-name:focus{border-color:#cbb697;background:#fffaf3d9}.project-name::placeholder{color:#816b56;font-weight:400}.stage-heading{gap:4px;top:18px}.stage-heading span:first-of-type{font-size:12px;color:#806a54}.stage-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;pointer-events:auto}.account-save-nudge{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f5ead9;border:1px solid var(--line);padding:15px;border-radius:9px;margin-top:20px}.account-save-nudge p{font-size:13px;line-height:1.6;color:#705943;flex:1}.account-save-nudge .button{font-size:12px;flex-shrink:0}.inspector-heading{padding-bottom:10px;border-bottom:1px solid var(--line)}.inspector-bottom{background:linear-gradient(180deg,transparent,#f5ead9);margin-left:-12px;margin-right:-12px;padding:17px 12px 5px;border-radius:8px}.control-section.transform-controls{padding-top:2px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#9e7b55}.stage-bottom{align-items:flex-end}.boundary-status{max-width:45%}
html[lang="ar"] .brand-caption{font-family:'Noto Sans Arabic',Arial,sans-serif;font-size:9px}html[lang="ar"] .project-name{font-family:'Noto Sans Arabic',Arial,sans-serif}
.shape-option span{font-size:12px;max-width:100%;overflow-wrap:normal}
/* Compact original wordmark on transparent header chrome; footer logo stays original. */
.topbar .brand{min-width:0;flex:0 1 auto}.topbar .gs-agency-brand{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;width:fit-content;max-width:100%;background:transparent;border:0;padding:0;box-shadow:none}.topbar .gs-brand-credit{font:500 8px/1.2 Arial,sans-serif;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.topbar .gs-agency-brand .gs-brand-logo{width:174px;max-width:100%;height:22px;object-fit:contain}.topbar .gs-agency-brand .gs-brand-logo,.topbar .brand.brand-image>img{filter:brightness(.24) saturate(.25)}
/* Dismissible controls, upload progress and concise review proofs. */
.inspector-heading #close-inspector,.mobile-inspector-toggle{display:flex}
.panel-close,.panel-scrim{display:none}
.photo-progress{position:absolute;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);width:min(320px,calc(100% - 28px));padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 12px 40px #3b281f24;display:flex;flex-direction:column;gap:14px;text-align:center;font-size:14px;pointer-events:auto}
.photo-progress>span::before{content:'';display:block;margin:0 auto 12px;width:22px;height:22px;border:2px solid #d8c3a8;border-top-color:var(--green);border-radius:50%;animation:studio-spin .8s linear infinite}
@keyframes studio-spin{to{transform:rotate(360deg)}}
.review-dialog{max-width:820px;padding:28px}.review-heading{padding-inline-end:35px;margin-bottom:20px}.review-heading h2{font-size:36px;margin-bottom:7px}.review-heading p{font-size:14px;line-height:1.6;margin:0;color:var(--muted)}
.review-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr);gap:25px;align-items:center}.review-proof{background:#eee1cd;border:1px solid #e3d1b6;border-radius:11px;padding:18px;min-width:0}.review-proof .review-image{display:block;width:100%;height:300px;max-height:36dvh;object-fit:contain;border-radius:0;background:transparent}
.review-details h3{font-size:24px;margin:0 0 14px}.review-details dl{margin:0}.review-details dl>div{display:flex;justify-content:space-between;gap:12px;margin:12px 0;font-size:13px}.review-details dt{color:var(--muted)}.review-details dd{margin:0;text-align:end}.review-quantity{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:15px 0}.review-quantity input{width:78px!important;min-height:42px;text-align:center}.review-total{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:15px;font-size:14px}.review-total strong{font:600 30px 'Cormorant Garamond',serif}.review-details .small-note{font-size:12px;line-height:1.65;margin:12px 0 0}.review-warning{font-size:12px;color:#8f4c22;line-height:1.6;margin:12px 0}
.review-actions{display:flex;gap:10px;margin-top:22px}.review-actions .button{flex:1;min-height:46px;font-size:14px}.review-actions .primary{flex:1.5}.cart-status:empty{display:none}.cart-status{font-size:13px;color:var(--muted);margin:12px 0 0}.review-downloads{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.review-downloads summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:30px}.download-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.download-options .button{font-size:12px}.saved-dialog{max-width:580px;padding:28px}.saved-proof{display:block;max-height:220px;margin:0 0 20px}.saved-dialog .share-field{display:flex;min-width:0}.saved-dialog .share-field input{min-width:0;flex:1;font-size:12px}.saved-dialog .small-note{font-size:12px}.saved-dialog .account-save-nudge{margin:15px 0 0}
/* The photo result is fixed; only cropping and placement remain editable. */
.photo-crop-controls .small-note{margin:0 0 12px;font-size:12px;line-height:1.65}
.photo-crop-controls #crop-photo{width:100%;min-height:44px;justify-content:center;padding:11px 16px}
#opacity-control[hidden]{display:none!important}
/* Symbol artwork and captions occupy separate rows at every width. */
.symbol-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.symbol-button{aspect-ratio:auto;min-width:0;min-height:104px;padding:13px 5px 9px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:9px}
.symbol-button svg{display:block;width:36px;height:36px;flex:0 0 36px}
.symbol-button .symbol-label{position:static;display:flex;align-items:center;justify-content:center;width:100%;min-height:28px;font-size:11px;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere;opacity:.85}
.shape-option{height:auto;min-height:88px;padding:12px 5px}.shape-option span{overflow-wrap:anywhere}
.material-option .material-swatch{display:block;width:100%;aspect-ratio:1;border-radius:5px;border:1px solid #3b281f18}
/* Merchant identity uses lightweight responsive transparent assets. */
.topbar .brand{min-width:0;flex-shrink:1}.topbar .woody-brand{display:inline-flex;align-items:center;gap:9px}.topbar .woody-brand-mark{width:40px;height:46px;object-fit:contain}.topbar .woody-brand-wordmark{width:154px;height:auto;max-height:44px;object-fit:contain;filter:none}
/* Client-photo choices: stable image and label rows at every width. */
.shape-option{min-height:106px;height:auto;padding:9px 6px;gap:7px;justify-content:flex-start;min-width:0}.shape-option svg{display:block;flex-shrink:0;width:68px;max-width:100%;height:48px;stroke:none;fill:none}.shape-option span{display:flex;align-items:center;justify-content:center;min-height:2.6em;font-size:12px;line-height:1.3;overflow-wrap:normal;word-break:normal;hyphens:auto;max-width:100%;text-align:center}.symbol-button{min-width:0;gap:7px;justify-content:flex-start}.symbol-button .symbol-label{display:block;width:100%;min-height:2.6em;text-align:center;line-height:1.3;white-space:normal;overflow-wrap:normal;word-break:normal}
/* Approved horizontal logo has its own aspect ratio; no duplicate emblem. */
.topbar .woody-brand-horizontal{display:block;width:180px;max-width:100%;line-height:0}.topbar .woody-brand-horizontal .gs-brand-logo{display:block;width:100%;height:auto;max-height:53px;object-fit:contain;filter:none!important}

/* One viewport, two working surfaces: the controls never cover the wood. */
:root{--studio-header:72px;--studio-rail:calc(54px + env(safe-area-inset-bottom));--studio-dock:clamp(164px,38dvh,340px)}
html,body{height:100%;overflow:hidden}
body{height:100dvh}
h1,h2,h3,.empty-inspector h3,.photo-tip h3,.review-total strong,.price-row strong{font-family:'DM Sans',Arial,sans-serif;letter-spacing:0;line-height:1.35}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .price-row strong,html[lang="ar"] .review-total strong{font-family:'Noto Sans Arabic',Arial,sans-serif}
.topbar{height:var(--studio-header);padding:0 22px;gap:16px;flex-wrap:nowrap;z-index:25}
.topbar .brand{flex:0 1 auto;min-width:80px}
.topbar .woody-brand-horizontal{width:174px}
.top-actions{width:auto;min-width:0;margin-inline-start:auto;gap:8px;flex-shrink:0}
.studio-language{width:106px;max-width:106px;min-height:38px;font-size:12px}
.top-actions .button{white-space:nowrap;min-height:38px}
.workspace,body.inspector-open .workspace{height:calc(100dvh - var(--studio-header));min-height:0;display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:64px 236px minmax(0,1fr);grid-template-areas:"tools library canvas";padding:0}
body.inspector-open .workspace{grid-template-columns:64px 224px minmax(0,1fr) 276px;grid-template-areas:"tools library canvas inspector"}
.tool-rail{grid-area:tools;position:static;min-height:0;height:auto;overflow-x:hidden;overflow-y:auto;padding:12px 5px;gap:6px}
.tool{width:54px;min-width:0;height:62px;padding:5px 2px;gap:5px}
.tool span{font-size:11px;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tool .icon{width:20px;height:20px}
.library-panel{grid-area:library;display:flex;position:relative;inset:auto;width:auto;height:auto;min-height:0;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none}
.library-section{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:20px 16px;scroll-padding-top:56px}
.panel-heading{margin-bottom:18px}.panel-heading h1,.panel-heading h2{font-size:24px;font-weight:600;line-height:1.35}.panel-heading p{font-size:13px;line-height:1.6;margin-top:8px}
.library-footer{padding:10px 16px;flex-shrink:0;font-size:10px;gap:8px}
.design-area{grid-area:canvas;min-width:0;min-height:0;height:auto;overflow:hidden}
.canvas-toolbar{height:48px;min-height:48px;padding:0 12px;gap:8px;flex-shrink:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain}
.canvas-toolbar .button-group{gap:2px;flex-shrink:0}
.canvas-toolbar .icon-button{width:32px;height:36px}
.canvas-toolbar .divider{margin-inline:3px}
.selection-tools{display:flex;align-items:center;gap:2px;min-width:0;flex-shrink:0}
.selection-button{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 8px;border-radius:6px;font-size:11px;white-space:nowrap;color:#79604c;flex-shrink:0}
.selection-button .icon{width:18px;height:18px}
.selection-button:hover,.selection-button[aria-pressed="true"]{background:var(--green-light);color:var(--green)}
.canvas-toolbar .view-switch{margin-inline-start:auto;min-width:0;padding:2px;flex-shrink:0}
.view-switch button{font-size:11px;padding:6px 8px}
.mobile-inspector-toggle{display:flex}
.stage{min-height:0;flex:1;background:radial-gradient(ellipse at 50% 45%,#faf3e8,#e8dbc9)}
.stage-heading{top:9px;left:20px;right:20px;gap:2px;max-height:65px}
.project-name{width:min(260px,65%);max-width:260px;font-size:12px;line-height:1.3;padding:3px 5px}
.stage-heading span{font-size:10px;line-height:1.35}.stage-heading #product-title{font-size:11px;line-height:1.35}
.stage-bottom{left:12px;right:12px;bottom:8px;gap:8px;align-items:center;min-height:20px}
.stage-options{gap:7px;max-width:65%}.stage-options .guide-toggle{font-size:10px;line-height:1.4;gap:4px}.guide-toggle input{width:12px;height:12px;flex-shrink:0}
.boundary-status{font-size:10px;line-height:1.3;max-width:38%}.boundary-status .icon{width:12px;height:12px;flex-shrink:0}
.zoom-control{bottom:38px;padding:2px 4px;border-radius:7px}.zoom-control .icon-button{width:28px;height:28px}.zoom-control #zoom-fit{width:40px;font-size:10px}
.design-bottom-bar{height:30px;min-height:30px;padding:0 12px;flex-shrink:0;gap:8px}.design-caption{font-size:10px;line-height:1.3}.design-caption .icon{width:12px;height:12px}.design-bottom-bar .text-button{font-size:10px;padding:5px}
.inspector{grid-area:inspector;display:none;position:relative;inset:auto;min-width:0;min-height:0;width:auto;height:auto;padding:16px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none;scroll-padding-top:56px}
.inspector.open{display:flex}
.inspector-heading{position:sticky;top:-16px;z-index:2;margin:-16px -16px 12px;padding:13px 16px 10px;background:#fcf7ef;gap:12px;flex-shrink:0}
.inspector-heading h2{font-size:20px;font-weight:600;line-height:1.35}.inspector-heading .eyebrow{font-size:9px;letter-spacing:.8px}
.inspector-heading #close-inspector{display:flex;width:36px;height:36px}
.inspector .control-section{flex-shrink:0}.inspector .field input:not([type=range]),.inspector .field textarea,.inspector .field select{font-size:14px;min-height:40px}.inspector .field,.inspector .section-heading{font-size:12px;line-height:1.5}
.inspector .button{min-height:40px}.inspector .button-pair .button{font-size:12px}.inspector-bottom{margin:12px -6px 0;padding:12px 6px 4px;flex-shrink:0}.price-row strong{font-size:21px;line-height:1.3}.inspector-bottom .small-note{font-size:10px;line-height:1.5}.demo-label{font-size:10px}
.empty-inspector{padding:20px 0;gap:10px}.empty-inspector h3{font-size:19px}.empty-inspector p{font-size:12px;line-height:1.5}
.panel-scrim{display:none!important}.panel-close{display:none}
.shape-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.symbol-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.material-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.material-option{font-size:11px;gap:5px;padding:3px;min-width:0}.material-option .material-swatch{width:100%;height:auto;aspect-ratio:1;flex:0 0 auto}
.review-heading h2{font-size:28px}.review-details h3{font-size:21px}.review-total strong{font-size:26px}

/* Narrow desktop and tablets keep a single dock beside the preview. */
@media(max-width:1180px){
  :root{--studio-header:66px}
  .topbar{padding-inline:16px;gap:12px}.save-status,.preview-badge{display:none}.topbar .woody-brand-horizontal{width:154px}.top-actions #open-designs{font-size:0;gap:0;width:38px;padding:8px}.top-actions .button{font-size:12px;padding:8px 10px}
  .workspace,body.inspector-open .workspace{grid-template-columns:56px minmax(0,1fr);grid-template-areas:"tools canvas";grid-template-rows:minmax(0,1fr)}
  body.library-open .workspace{grid-template-columns:56px minmax(0,1fr) clamp(236px,28vw,292px);grid-template-areas:"tools canvas library"}
  body.inspector-open .workspace{grid-template-columns:56px minmax(0,1fr) clamp(236px,28vw,292px);grid-template-areas:"tools canvas inspector"}
  .tool-rail{padding:10px 3px}.tool{width:48px;height:59px}
  .library-panel{display:none;border-right:0;border-left:1px solid var(--line)}body.library-open .library-panel{display:flex}
  .library-panel .panel-close{display:flex;position:absolute;top:8px;right:auto;inset-inline-end:8px;z-index:4;width:36px;height:36px;background:#fcf7ef}
  .library-section{padding:16px 14px;scroll-padding-top:52px}.library-section .panel-heading{padding-inline-end:32px}.library-section .panel-heading .eyebrow,.inspector-heading .eyebrow{display:none}.library-section .panel-heading p{display:none}.library-section .panel-heading h1,.library-section .panel-heading h2{font-size:21px;line-height:1.4}
  .library-footer{padding:10px 14px;font-size:10px}.inspector{padding:14px}.inspector-heading{top:-14px;margin:-14px -14px 10px;padding:10px 14px}.inspector-heading h2{font-size:19px}
  .canvas-toolbar{display:grid;position:relative;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"history view" "selection selection";height:76px;min-height:76px;padding:2px 8px;gap:0 6px;overflow:visible}
  .canvas-toolbar .button-group{grid-area:history;gap:0}.selection-tools{grid-area:selection;gap:2px;margin-inline-end:36px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:none;touch-action:pan-x}.view-switch{grid-area:view}.mobile-inspector-toggle{position:absolute;right:8px;bottom:3px;background:#f7efe3;justify-self:end}.canvas-toolbar .divider{display:none}.canvas-toolbar .icon-button{width:30px;height:34px}.selection-button{height:34px;font-size:11px;padding:5px 6px}.view-switch button{font-size:10px;padding:6px}.clear-selection-button{width:30px;padding:6px;gap:0}.clear-selection-button span{display:none}
  .stage-heading{left:14px;right:14px;top:7px}.stage-heading span{font-size:10px}.project-name{max-width:85%;width:200px}.stage-options{max-width:63%;gap:5px}.stage-options .guide-toggle{font-size:9px}.boundary-status{font-size:9px;max-width:35%}
}

/* Portrait phones use a real lower grid row, never an overlay on the canvas. */
@media(max-width:700px) and (orientation:portrait),(max-width:479px){
  :root{--studio-header:62px}
  .topbar{padding:8px 10px;gap:6px}.topbar .woody-brand-horizontal{width:118px}.topbar .woody-brand-horizontal .gs-brand-logo{max-height:37px}.top-actions{gap:5px}.topbar .studio-language{width:68px;max-width:68px;font-size:11px;min-height:36px;padding:5px}.top-actions #open-designs,.top-actions #save-design,.top-actions #review-design{font-size:0;gap:0;width:36px;min-width:36px;min-height:36px;padding:7px}.top-actions .button .icon{width:16px;height:16px}
  .workspace,body.inspector-open .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--studio-rail);grid-template-areas:"canvas" "tools"}
  body.library-open .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--studio-dock) var(--studio-rail);grid-template-areas:"canvas" "library" "tools"}
  body.inspector-open .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--studio-dock) var(--studio-rail);grid-template-areas:"canvas" "inspector" "tools"}
  .tool-rail{height:var(--studio-rail);padding:4px 6px max(4px,env(safe-area-inset-bottom));flex-direction:row;justify-content:space-between;gap:2px;border:0;border-top:1px solid var(--line);overflow:hidden}
  .tool{flex:1;min-width:0;width:auto;height:46px;gap:3px;padding:4px 1px}.tool span{font-size:10px;max-width:100%;line-height:1.3}.tool .icon{width:19px;height:19px}.rail-bottom{display:none}
  .library-panel,.inspector{border:0;border-top:1px solid #d8c5ae;border-radius:0;width:auto;height:auto;min-height:0;box-shadow:none}
  .library-section{padding:14px 16px;scroll-padding-top:50px}.library-section .panel-heading{position:sticky;top:-14px;z-index:2;background:#fcf7ef;padding:4px 0 10px;padding-inline-end:30px;margin-bottom:10px}.library-section .panel-heading h1,.library-section .panel-heading h2{font-size:19px}.library-panel .panel-close{top:8px;right:auto;inset-inline-end:8px}.library-footer{display:none}
  .inspector{padding:14px 16px}.inspector-heading{top:-14px;margin:-14px -16px 10px;padding:10px 16px}.inspector-heading h2{font-size:19px}.inspector .field input:not([type=range]),.inspector .field select,.inspector .field textarea,.library-section .field input,.library-section .field textarea,.library-section .field select{font-size:16px;min-height:42px}.inspector .field,.inspector .section-heading{font-size:12px}.inspector .button{min-height:42px}.inspector .control-section{padding-bottom:12px;margin-bottom:12px}
  .shape-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shape-option{min-height:99px}.shape-option span{font-size:11px}.symbol-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.symbol-button{min-height:95px;padding:10px 4px 7px}.symbol-button .symbol-label{font-size:10px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-thumb{height:100px}.template-name{font-size:12px}.template-name span{display:none}.material-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.material-option{flex-direction:row;font-size:11px;gap:5px}.material-option .material-swatch{width:33px;height:33px;flex:0 0 33px}.upload-card{padding:16px;margin-bottom:10px}.upload-card strong{font-size:14px}.photo-tip{margin:16px 0;padding:12px}.photo-tip h3{font-size:15px}.field-heading{font-size:13px;margin:16px 0 9px}.panel-heading .eyebrow{display:none}
  .stage-heading{left:12px;right:12px;top:5px;gap:1px}.project-name{font-size:11px;width:180px;line-height:1.3;padding:2px 4px}.stage-heading #product-title{font-size:10px}.stage-heading #product-dimensions{font-size:9px}.stage-bottom{left:9px;right:9px;bottom:5px;min-height:16px}.stage-options{gap:5px;max-width:100%;flex-wrap:nowrap}.stage-options .guide-toggle{font-size:9px;gap:3px}.stage-options .guide-toggle input{width:11px;height:11px}.boundary-status{position:absolute;left:0;right:0;bottom:58px;max-width:100%;justify-content:center;font-size:9px!important;pointer-events:none}.boundary-status.warning{pointer-events:auto}.zoom-control{bottom:26px;padding:1px 3px}.zoom-control .icon-button{width:26px;height:26px}.zoom-control #zoom-fit{width:40px}
  .design-bottom-bar{display:none}.canvas-toolbar{height:72px;min-height:72px;padding:1px 8px;gap:0 4px}.canvas-toolbar .icon-button{width:30px;height:34px}.selection-button{font-size:11px;height:34px}.selection-button .icon{width:17px;height:17px}.view-switch button{font-size:10px;padding:6px}.stage-bottom{justify-content:flex-end}
  dialog.review-dialog,dialog.saved-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:22px 16px;border-radius:12px}.review-heading{margin-bottom:14px}.review-heading h2{font-size:24px}.review-heading p{font-size:12px}.review-layout{grid-template-columns:1fr;gap:14px}.review-proof{padding:10px}.review-proof .review-image{height:210px;max-height:28dvh}.review-details h3{font-size:20px;margin-bottom:10px}.review-details dl>div{margin:9px 0}.review-quantity{margin:10px 0}.review-total{padding-top:10px}.review-details .small-note{font-size:11px;margin-top:9px}.review-actions{margin-top:15px;gap:7px}.review-actions .button{font-size:12px;min-height:44px;padding-inline:8px}.review-downloads{margin-top:14px;padding-top:12px}.download-options .button{font-size:11px}.modal-close{right:8px;top:8px;width:34px;height:34px;border-radius:50%;background:#f0e4d1}.saved-proof{max-height:25dvh}.saved-dialog .share-field{gap:5px}.saved-dialog .share-field .button{font-size:11px;padding-inline:8px}.help-grid{grid-template-columns:1fr;gap:14px}.crop-fields{gap:10px}.account-save-nudge{flex-direction:column;align-items:stretch;gap:10px}.account-save-nudge .button{width:100%}.toast-region{bottom:calc(var(--studio-rail) + 10px)}
}
@media(max-width:359px){
  .topbar{padding-inline:8px;gap:4px}.topbar .woody-brand-horizontal{width:94px}.top-actions{gap:4px}.topbar .studio-language{width:60px;max-width:60px}.top-actions #open-designs,.top-actions #save-design,.top-actions #review-design{width:34px;min-width:34px}
  .canvas-toolbar{padding-inline:6px}.canvas-toolbar .button-group .icon-button{width:28px}.view-switch button{font-size:9px;padding:6px 4px}.selection-button{padding-inline:4px;font-size:10px}.stage-options .guide-toggle{font-size:8px}.material-option{flex-direction:column}.symbol-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:480px) and (orientation:landscape) and (max-height:540px){
  :root{--studio-header:58px}
  .topbar{padding-inline:12px;gap:8px}.topbar .woody-brand-horizontal{width:128px}.top-actions{gap:6px}.top-actions #save-design,.top-actions #review-design{font-size:0;gap:0;width:36px;min-width:36px;padding:7px}.studio-language{width:82px;max-width:82px}
  .canvas-toolbar{height:70px;min-height:70px}.stage-heading #product-title,.stage-heading #product-dimensions{display:none}.stage-heading{top:4px}.project-name{font-size:10px}.stage-options{display:none}.boundary-status{font-size:9px!important;max-width:100%}.stage-bottom{bottom:5px}.zoom-control{bottom:27px}.design-bottom-bar{display:none}.library-section .panel-heading{margin-bottom:10px}.library-section .panel-heading h1,.library-section .panel-heading h2{font-size:18px}.library-footer{display:none}.inspector-heading h2{font-size:18px}.rail-bottom{display:none}.tool-rail{padding-block:4px;gap:4px}.tool{height:36px;gap:2px}.tool .icon{width:18px;height:18px}.tool span{font-size:9px}
}
@media(max-width:600px) and (max-height:520px){
  :root{--studio-dock:38dvh;--studio-rail:48px;--studio-header:54px}
  .topbar{padding-block:4px}.tool-rail{padding:2px 6px}.tool{height:44px}.canvas-toolbar{height:64px;min-height:64px}.stage-heading #product-title,.stage-heading #product-dimensions{display:none}.stage-heading{top:2px}.stage-bottom,.boundary-status{display:none}.zoom-control{bottom:5px;padding:0 2px}.zoom-control .icon-button{width:23px;height:23px}.zoom-control #zoom-fit{width:32px}.project-name{font-size:10px}.inspector-heading h2,.library-section .panel-heading h1,.library-section .panel-heading h2{font-size:17px}
}
@media(max-width:700px) and (orientation:portrait) and (max-height:740px){
  :root{--studio-dock:clamp(144px,29dvh,216px)}
  body.library-open .stage-heading #product-title,body.library-open .stage-heading #product-dimensions,body.inspector-open .stage-heading #product-title,body.inspector-open .stage-heading #product-dimensions{display:none}
}
@media(min-width:480px) and (max-width:700px) and (orientation:landscape){
  body.library-open .workspace,body.inspector-open .workspace{grid-template-columns:48px minmax(0,1fr) 220px}
  .tool-rail{padding:4px 2px;gap:4px}.tool{width:42px;min-width:0;height:36px;gap:2px}.tool span{font-size:9px}
  body.library-open .canvas-toolbar,body.inspector-open .canvas-toolbar{grid-template-columns:minmax(0,1fr) 30px;grid-template-areas:"history edit" "selection selection" "view view";height:102px;min-height:102px;padding-inline:6px}
  body.library-open .canvas-toolbar .view-switch,body.inspector-open .canvas-toolbar .view-switch{margin-inline:0;justify-self:center}
  body.library-open #selection-mode,body.inspector-open #selection-mode{width:30px;padding:6px;gap:0}body.library-open #selection-mode span,body.inspector-open #selection-mode span{display:none}
  body.library-open .selection-tools,body.inspector-open .selection-tools{margin-inline-end:0}body.library-open .mobile-inspector-toggle,body.inspector-open .mobile-inspector-toggle{position:static;grid-area:edit}
}
/* A short landscape screen gives its height to the model. Tools scroll sideways. */
@media(min-width:480px) and (max-width:700px) and (orientation:landscape) and (max-height:420px){
  .canvas-toolbar,body.library-open .canvas-toolbar,body.inspector-open .canvas-toolbar{display:flex;height:44px;min-height:44px;padding:4px 6px;gap:5px;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;touch-action:pan-x;scrollbar-width:thin}
  .canvas-toolbar .button-group,.canvas-toolbar .selection-tools,.canvas-toolbar .view-switch,.canvas-toolbar .mobile-inspector-toggle{flex:0 0 auto}
  .canvas-toolbar .view-switch,body.library-open .canvas-toolbar .view-switch,body.inspector-open .canvas-toolbar .view-switch{margin-inline:0}
  .canvas-toolbar #selection-mode{width:30px;padding:6px;gap:0}.canvas-toolbar #selection-mode span{display:none}.canvas-toolbar .selection-tools,body.library-open .canvas-toolbar .selection-tools,body.inspector-open .canvas-toolbar .selection-tools{margin-inline-end:0;overflow:visible}.canvas-toolbar .mobile-inspector-toggle{position:static}
}
@media(min-width:1700px){.workspace{grid-template-columns:72px 264px minmax(0,1fr)}body.inspector-open .workspace{grid-template-columns:72px 252px minmax(0,1fr) 300px}.tool{width:62px}.library-section{padding:24px 20px}.topbar{padding-inline:30px}.inspector{padding-inline:20px}}
/* V45: a blank product, three tools, and contextual controls beside the preview. */
[hidden]{display:none!important}
.studio-order-progress{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#f6ecdd;border-bottom:1px solid #decbb2;color:#594331;font-size:12px;line-height:1.5}
.studio-order-progress strong{display:block;font-size:13px}.studio-order-progress span{display:block;color:var(--muted);font-size:11px}.studio-order-progress a{flex-shrink:0;color:#73492b;text-decoration:underline;text-underline-offset:3px;font-size:12px}
.review-piece-label{display:inline-block;margin-bottom:8px;padding:5px 9px;border:1px solid #dac3a4;border-radius:4px;background:#f5e9d7;color:#694729;font-size:12px;font-weight:500}
.review-copy-note{font-size:12px;line-height:1.65;color:var(--muted);margin:8px 0 0}
.review-actions{flex-wrap:wrap}.review-actions .button{min-width:150px}
@media(max-width:700px){.studio-order-progress{padding:8px 10px;gap:8px}.studio-order-progress strong{font-size:12px}.studio-order-progress span{font-size:10px}.review-actions .button{min-width:0}}
.workspace,body.inspector-open .workspace{grid-template-columns:64px minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"tools canvas"}
.library-panel{display:none}
body.library-open .workspace{grid-template-columns:64px 256px minmax(0,1fr);grid-template-areas:"tools library canvas"}
body.library-open .library-panel{display:flex}
body.inspector-open .workspace{grid-template-columns:64px minmax(0,1fr) 280px;grid-template-areas:"tools canvas inspector"}
.library-panel .panel-close{display:flex;position:absolute;top:8px;inset-inline-end:8px;z-index:4;width:32px;height:32px;background:#fcf7ef}
.library-section .panel-heading{padding-inline-end:32px}
.library-section .panel-heading h2{font-family:'DM Sans',sans-serif;font-size:19px;line-height:1.35;font-weight:500}
.library-footer,.inspector-bottom,.design-caption{display:none}
.canvas-toolbar,body.library-open .canvas-toolbar,body.inspector-open .canvas-toolbar{display:flex;grid-template-areas:none;position:relative;height:48px;min-height:48px;flex-wrap:nowrap;gap:6px;padding:3px 10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.canvas-toolbar .button-group{flex-shrink:0;gap:0}
.canvas-toolbar .view-switch{margin-inline-start:auto;flex-shrink:0}
.canvas-toolbar .mobile-inspector-toggle,body.library-open .mobile-inspector-toggle,body.inspector-open .mobile-inspector-toggle{position:static;flex-shrink:0;background:transparent}
.stage{background:radial-gradient(ellipse at 50% 46%,#faf3e8,#e8dbc9)}
.zoom-control{bottom:12px}
.stage-bottom{bottom:52px;justify-content:center;pointer-events:none}
.boundary-status:not(.warning){display:none}
.boundary-status.warning{position:static;max-width:100%;width:auto;padding:4px 8px;background:#fff7e9e8;border-radius:5px;font-size:10px!important;pointer-events:none}
.design-bottom-bar{justify-content:flex-end;padding:4px 12px;height:28px;min-height:28px}
.template-heading{display:flex;align-items:center;gap:8px}
.template-heading h2{margin:0}
.template-heading .text-button{display:inline-flex;align-items:center;gap:3px;font-size:11px;padding:4px 0;white-space:nowrap}
.template-heading .text-button .icon{width:15px;height:15px}
.template-categories,.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tool span{font-size:10px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25}
.template-grid{grid-template-columns:minmax(0,1fr)}
.template-grid .template-thumb{aspect-ratio:1.4/1}
.template-category,.template-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;background:#fffaf3;border:1px solid #ddcbb4;border-radius:8px;text-align:start}
.template-category:hover,.template-card:hover{border-color:#92603c;background:#f7edde}
.template-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:auto;aspect-ratio:1/1;background:#f3e7d3;padding:8px;overflow:hidden}
.template-thumb svg{display:block;width:100%;height:100%;max-width:100%;pointer-events:none}
.template-category .template-thumb svg{width:65%;height:65%}
.template-category>span:last-child,.template-name{font-size:11px;line-height:1.45;font-weight:500;letter-spacing:0;padding:9px 8px;white-space:normal;overflow-wrap:anywhere}
.library-section .field{margin-bottom:12px}
.library-section .upload-card{margin-bottom:12px}
.photo-crop-controls .small-note{display:none}
.transform-controls .button{font-size:11px;min-height:40px;padding:8px 6px}
.inspector-heading h2{font-family:'DM Sans',sans-serif;font-size:17px;line-height:1.4}
.inspector .control-section:last-child{margin-bottom:0;border-bottom:0}
@media(max-width:1180px){
 .workspace,body.inspector-open .workspace{grid-template-columns:56px minmax(0,1fr);grid-template-areas:"tools canvas"}
 body.library-open .workspace{grid-template-columns:56px 236px minmax(0,1fr);grid-template-areas:"tools library canvas"}
 body.inspector-open .workspace{grid-template-columns:56px minmax(0,1fr) 252px;grid-template-areas:"tools canvas inspector"}
 .canvas-toolbar,body.library-open .canvas-toolbar,body.inspector-open .canvas-toolbar{height:44px;min-height:44px;padding:3px 6px;gap:4px}
 .canvas-toolbar .icon-button{width:28px;height:32px}
 .canvas-toolbar .view-switch button{padding:5px 6px;font-size:10px}
 .canvas-toolbar .divider{display:none}
}
@media(max-width:700px) and (orientation:portrait),(max-width:479px){
 .workspace,body.inspector-open .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--studio-rail);grid-template-areas:"canvas" "tools"}
 body.library-open .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--studio-dock) var(--studio-rail);grid-template-areas:"canvas" "library" "tools"}
 body.inspector-open .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--studio-dock) var(--studio-rail);grid-template-areas:"canvas" "inspector" "tools"}
 .tool-rail{justify-content:center;gap:12px}
 .tool{max-width:132px;height:46px;flex:1}
 .tool span{font-size:11px}
 .library-section .panel-heading{padding-inline-end:30px}
 .template-categories,.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .template-category>span:last-child,.template-name{font-size:10px;padding:7px 6px}
 .template-thumb{aspect-ratio:1.15/1;padding:5px}
 .stage-bottom{bottom:49px;left:8px;right:8px;justify-content:center}
 .zoom-control{bottom:9px}
 .design-bottom-bar{display:none}
 .inspector-heading h2{font-size:17px}
 .transform-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .transform-controls .rotation-row{margin:0;grid-column:1 / -1;justify-content:center}
 .transform-controls .button-pair{grid-column:1 / -1}
 .transform-controls>.full{grid-column:1 / -1}
}
@media(min-width:480px) and (max-width:700px) and (orientation:landscape){
 .workspace{grid-template-columns:48px minmax(0,1fr)}
 body.library-open .workspace{grid-template-columns:48px 208px minmax(0,1fr)}
 body.inspector-open .workspace{grid-template-columns:48px minmax(0,1fr) 208px}
 .canvas-toolbar .icon-button{width:25px;height:30px}
 .canvas-toolbar .view-switch button{font-size:9px;padding:4px}
 .tool{width:42px;height:46px}
}
@media(max-width:359px){.template-categories,.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.canvas-toolbar .view-switch button{font-size:9px;padding:5px 4px}}

/* Original outlined phrase templates keep their full composition visible. */
.words-template-preview{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;pointer-events:none}
.template-category .words-template-preview{width:82%;height:82%}
.words-template-search{margin:0 0 16px}

/* Compact two-column theme cards adapt to the studio sidebar at every size. */
.template-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.unified-template-category{position:relative;min-width:0}
.unified-template-category .template-thumb{height:clamp(54px,7.5dvh,78px);min-height:0;aspect-ratio:auto;padding:7px}
.unified-template-category .template-thumb svg{max-height:100%}
.unified-template-category .words-template-preview{width:100%;height:100%}
.unified-template-category>span:last-child{min-height:34px;display:flex;align-items:center;padding:7px;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.template-new-badge{position:absolute;top:5px;inset-inline-end:5px;z-index:1;padding:2px 5px;border:1px solid #d3bfa4;border-radius:4px;background:#fffaf3ed;color:#705139;font-size:9px;font-weight:600;line-height:1.15;pointer-events:none}
@media(max-width:640px){.unified-template-category .template-thumb{height:clamp(50px,7dvh,68px);padding:6px}.unified-template-category>span:last-child{font-size:10px;min-height:32px;padding:6px}.template-new-badge{font-size:8px;padding:2px 4px}}
@media(max-height:560px) and (orientation:landscape){.unified-template-category .template-thumb{height:48px}.unified-template-category>span:last-child{font-size:10px;min-height:30px}}

/* Original catalogue accessories keep their actual model/color choices in the Studio. */
.recovered-product-grid{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 16px}
.recovered-product-grid button{display:flex;align-items:center;gap:10px;text-align:start;border:1px solid var(--line);padding:8px;border-radius:6px;font-size:12px;min-height:58px}
.recovered-product-grid svg{width:36px;height:46px;flex:0 0 36px}
.recovered-product-grid .active{border-color:var(--green);background:var(--green-light)}
#panel-product .material-swatch{width:42px;height:42px;border-radius:50%;box-shadow:inset 0 0 0 1px #0002}
#panel-product .material-grid{gap:8px}
#panel-product .material-option{font-size:11px;padding-block:5px}
#panel-product .recovered-product-price{display:flex;justify-content:space-between;gap:10px;margin-block:22px 8px;font-size:14px}
#recovered-product-tool[hidden],#recovered-material-field[hidden],#recovered-size-field[hidden]{display:none!important}
@media(max-width:640px){#panel-product .field select{font-size:16px}}
/* Product options share one drawer for the full published catalogue. */
#panel-product select[hidden],#phone-model-field[hidden],#recovered-size-field[hidden],#recovered-material-field[hidden]{display:none!important}
.studio-option-swatches{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;min-width:0}
.studio-option-swatches button{flex:1 1 86px;min-height:44px;padding:9px 10px;border:1px solid #d7c3aa;border-radius:5px;background:#fffaf2;color:var(--ink);font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.studio-option-swatches button.active{background:#eddfca;border-color:#71553d;box-shadow:inset 0 0 0 1px #71553d}
.studio-phone-families{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.studio-phone-families button{min-width:34px;min-height:38px;border:1px solid #d7c3aa;border-radius:4px;background:#fffaf2;font:inherit;font-size:12px;cursor:pointer}.studio-phone-families button.active{background:#3b281f;color:white}
.studio-option-swatches button:focus-visible,.studio-phone-families button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.studio-product-picker{border-top:1px solid #ddcdb7;padding-top:18px;margin-top:18px}.studio-product-picker>summary{font-size:13px;cursor:pointer;min-height:30px}.studio-product-picker .recovered-product-grid{margin-top:14px}
@media(max-width:640px){.studio-option-swatches button{font-size:11px;flex-basis:82px;padding:9px 6px}.studio-product-picker .recovered-product-grid{gap:8px}}
@media(max-width:640px){#studio-size-options:has(>button:nth-child(4):last-child){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#studio-size-options:has(>button:nth-child(4):last-child)>button{min-width:0;padding-inline:4px}}
@media(max-width:360px){#studio-size-options:has(>button:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Optional display accessories stay beside the decision to add the design. */
.review-accessories{margin-top:20px;padding:15px 16px;border:1px solid #dfc9aa;border-radius:10px;background:#f6ecdd}
.review-accessories-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.review-accessories-heading h3{margin:0;font-size:16px}.review-accessories-heading>span{font-size:11px;color:#7b5a39;background:#eaddc8;padding:4px 8px;border-radius:4px}
.review-accessories>p{font-size:12px;color:var(--muted);line-height:1.5;margin:5px 0 11px}.review-accessory-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.review-accessory{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #dfceb7;background:var(--paper);border-radius:8px;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}.review-accessory:hover{border-color:#b4946d}.review-accessory.is-selected{border-color:#8e603d;background:#f1e2cc}.review-accessory:focus-within{outline:2px solid var(--accent);outline-offset:2px}.review-accessory input{width:18px;height:18px;min-width:18px;margin:0;accent-color:var(--accent)}.review-accessory img{width:54px;height:54px;object-fit:contain;border-radius:4px;flex:0 0 auto}.review-accessory-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.review-accessory-copy strong{min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:1.45}.review-accessory-copy small{font-size:12px;color:#7b5a39}.review-accessories>.review-accessory-note{font-size:11px;margin:10px 0 0}.review-order-total{margin-top:18px}
@media(max-width:600px){.review-accessories{margin-top:14px;padding:12px}.review-accessory-options{grid-template-columns:1fr;gap:8px}.review-accessory{padding:8px 10px}.review-accessory img{width:44px;height:44px}.review-accessory-copy{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.review-accessory-copy strong{font-size:12px}.review-accessory-copy small{font-size:12px;white-space:nowrap}.review-accessories-heading h3{font-size:14px}.review-order-total{margin-top:14px}}

/* Keep the complete review and optional choices visible on taller desktop screens. */
@media(min-width:701px){dialog.review-dialog{max-height:calc(100dvh - 40px)}.review-dialog .review-proof .review-image{height:clamp(190px,28dvh,250px);max-height:32dvh}}

/* Accessories added with a design can have a separate quantity. */
.review-accessory{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;cursor:default}
.review-accessory-toggle{display:flex;align-items:center;gap:8px;min-width:0;cursor:pointer}
.review-accessory img{width:40px;height:48px}
.review-accessory-copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.review-accessory-copy strong{font-size:12px}.review-accessory-copy small{font-size:11px}.review-accessory-copy .review-accessory-existing{font-size:10px;color:var(--muted);white-space:normal}
.review-accessory-quantity{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.review-accessory-quantity>span{font-size:10px;color:var(--muted)}
.review-accessory-stepper{display:flex;align-items:center;overflow:hidden;border:1px solid #d4bea0;border-radius:5px;background:#fffaf3}
.review-accessory-stepper button{width:25px;min-width:25px;min-height:34px;padding:0;margin:0;border:0;background:#f2e6d3;color:var(--ink);font-size:18px;cursor:pointer}
.review-accessory-stepper input[type=number]{width:32px!important;min-width:32px;max-width:32px;min-height:34px!important;height:34px;padding:0!important;margin:0!important;border:0;border-radius:0;background:#fffaf3;text-align:center;font-size:13px;appearance:textfield;-moz-appearance:textfield}
.review-accessory-stepper input::-webkit-inner-spin-button,.review-accessory-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.review-accessory-stepper button:disabled,.review-accessory-stepper input:disabled{opacity:.45;cursor:default}
.review-accessory-stepper button:focus-visible,.review-accessory-stepper input:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:700px){.review-accessory-options{grid-template-columns:minmax(0,1fr)}.review-accessory img{width:44px;height:48px}.review-accessory-copy{flex-direction:column;align-items:flex-start}.review-accessory{padding:9px 10px}.review-accessory-copy strong{font-size:12px}}

/* Previewing the photo is independent from choosing the accessory or quantity. */
.review-accessory{grid-template-columns:76px minmax(0,1fr) auto;gap:10px;min-height:116px}
.review-accessory-toggle{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start}
.review-accessory-toggle>input{margin-top:2px}
.review-accessory--no-photo{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:480px){.review-accessory{grid-template-columns:64px minmax(0,1fr);gap:9px 11px;padding:10px}.review-accessory-photo{grid-column:1;grid-row:1 / 3;align-self:center}.review-accessory-toggle{grid-column:2;grid-row:1}.review-accessory-quantity{grid-column:2;grid-row:2;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:3px 8px}.review-accessory-quantity>span{font-size:10px}.review-accessory--no-photo{grid-template-columns:minmax(0,1fr)}.review-accessory--no-photo .review-accessory-toggle,.review-accessory--no-photo .review-accessory-quantity{grid-column:1}}

/* Product orientation and provisional text controls share the compact dock. */
#studio-orientation-field[hidden],#new-text-status[hidden]{display:none!important}
.studio-orientation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
.studio-orientation-options button{min-width:0;min-height:42px;padding:9px 6px;font-size:13px}
.new-text-format{display:flex;align-items:flex-end;gap:12px}.new-text-format .field{flex:1;min-width:0;margin-bottom:0}.new-text-format .format-buttons{display:flex;gap:5px;flex-shrink:0}
.new-text-actions{display:flex;gap:8px;margin-top:14px}.new-text-actions .primary{flex:1}.new-text-actions .button{min-height:44px;padding-inline:14px}
.new-text-status{margin:10px 0;color:var(--muted);line-height:1.5;font-size:12px}
@media(max-width:479px){.new-text-format{gap:8px}.new-text-actions .button{font-size:12px}.studio-orientation-options button{font-size:12px}}

.review-magnet-option{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;margin:18px 0;cursor:pointer}.review-magnet-option input{width:20px;height:20px;accent-color:#3b281f;flex:none}

/* Selected-product startup: no unresolved default canvas behind loading. */
#canvas-host[aria-busy="true"]{visibility:hidden}
.canvas-loading{background:var(--paper,#fbf7ef)}
.canvas-loading.selected-product-ready{background:#eee3d6b3}

/* One keychain product, with image choices for its exact seven model variants. */
#studio-keychain-family-field[hidden]{display:none!important}
.studio-keychain-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.studio-keychain-options button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:122px;padding:10px 7px;border:1px solid var(--line);border-radius:8px;background:var(--paper,#fbf7ef);color:var(--ink,#3b281f);font:inherit;font-size:11px;line-height:1.35;text-align:center;cursor:pointer}
.studio-keychain-options button.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:#eee2d0}
.studio-keychain-options button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.studio-keychain-options svg{width:100%;height:76px;display:block;flex:none}
@media(max-width:767px){.studio-keychain-options{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-keychain-options button{min-height:116px;font-size:10px;padding:8px 5px}.studio-keychain-options svg{height:64px}}
@media(max-width:359px){.studio-keychain-options{grid-template-columns:repeat(2,minmax(0,1fr))}}




.review-magnet-option,.review-accessory-magnet{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #d8c4a8;border-radius:10px;background:#fffaf2;cursor:pointer;text-align:start}.review-magnet-option input,.review-accessory-magnet input{accent-color:#765035;width:20px;height:20px;flex:0 0 auto}.review-magnet-option span,.review-accessory-magnet span{display:grid;gap:3px}.review-magnet-option strong,.review-accessory-magnet strong{font-size:14px;font-weight:600}.review-magnet-option small,.review-accessory-magnet small{font-size:12px;color:#766553}.review-accessory-magnet{grid-column:1/-1;margin:0 0 8px;padding:10px 12px;background:#f8efdf}.review-accessory-magnet:has(input:disabled){opacity:.6}

.studio-option-preview{display:flex;align-items:center;justify-content:center;width:100%;height:82px;overflow:hidden;background:#fbf5e9;border-radius:6px}.studio-option-preview svg{width:100%;height:100%;display:block}.studio-option-swatches button{display:grid;align-content:start;gap:7px;min-width:0;padding:8px;line-height:1.3}.studio-option-swatches button>span:last-child{overflow-wrap:anywhere}

/* The original compact field rhythm, with font names shown in their own face. */
.studio-font-picker{position:relative;width:100%;min-width:0;margin:0}
.studio-font-picker>summary{position:relative;display:block;list-style:none;width:100%;height:42px;min-height:42px;max-height:42px;margin:0;padding:10px 28px 10px 10px;border:1px solid #ddcfbd;border-radius:6px;background:var(--paper);font-size:16px;font-weight:400;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.studio-font-picker>summary::-webkit-details-marker{display:none}
.studio-font-picker>summary::after{content:"";position:absolute;inset-inline-end:12px;top:16px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
.studio-font-list{position:fixed;z-index:1000;display:grid;gap:1px;max-height:264px;margin:0;padding:4px;border:1px solid #ddcfbd;border-radius:6px;background:var(--paper);box-shadow:0 5px 16px #3b281f25;overflow:auto;overscroll-behavior:contain}
.studio-font-list[hidden]{display:none!important}
.studio-font-list button{display:block;width:100%;height:38px;min-height:38px;max-height:38px;margin:0;padding:8px 10px;border:0;border-radius:4px;background:transparent;text-align:start;font-size:16px;font-weight:400;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-font-list button:hover,.studio-font-list button[aria-pressed=true]{background:#eee2d1}
.wallet-side-options{display:flex}
.wallet-side-options button{min-height:36px}


/* Keep the next step named and the review decision visible. */
.topbar .top-actions #review-design{font-size:14px;gap:7px;width:auto;min-width:0;min-height:40px;padding:9px 12px}
dialog.review-dialog{padding:0;overflow:hidden}
.review-dialog #modal-body{display:flex;flex-direction:column;max-height:calc(100dvh - 48px);min-height:0}
.review-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:28px;scrollbar-gutter:stable}
.review-purchase-bar{flex:none;padding:16px 28px 20px;border-top:1px solid var(--line);background:var(--paper);box-shadow:0 -8px 18px #3b241108}
.review-purchase-bar .review-total{margin:0;padding:0;border:0}
.review-purchase-bar .review-actions{margin:12px 0 0}
.review-purchase-bar .cart-status{margin-top:8px}
@media(max-width:700px){
 :root{--studio-header:104px}
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-rows:36px 44px;gap:6px;padding:8px 10px}
 .topbar .brand{grid-column:1;grid-row:1}
 .topbar .top-actions{display:contents}
 .topbar .studio-language-wrap{grid-column:2;grid-row:1}
 .topbar #open-designs{grid-column:3;grid-row:1}
 .topbar #save-design{grid-column:4;grid-row:1}
 .topbar .top-actions #review-design{grid-column:1/-1;grid-row:2;width:100%;min-width:0;min-height:44px;padding:9px 12px;font-size:14px;gap:7px;white-space:normal;line-height:1.35}
 .review-scroll{padding:22px 16px 16px}
 .review-purchase-bar{padding:12px 16px max(12px,env(safe-area-inset-bottom))}
 .review-purchase-bar .review-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin-top:10px}
 .review-purchase-bar .review-actions #studio-add-cart{grid-column:1/-1;font-size:14px}
 .review-purchase-bar .review-actions .button{min-width:0;white-space:normal;line-height:1.35}
 .review-purchase-bar .cart-status{font-size:12px}
}
