@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Jost:wght@400;500;600&display=swap');
:root{--ink:#34302b;--muted:#8d857a;--line:#e9e5dd;--cream:#f8f6f2;--khaki:#a69680;--khaki-dark:#80705c;--white:#fff;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:#51493f;border-radius:5px;padding:11px 13px;font-size:12px;font-weight:600;transition:background .15s,border-color .15s,transform .15s}button:hover{border-color:#b8aa97;background:#faf8f4}button:active{transform:translateY(1px)}button.primary,.templates button.selected{background:var(--ink);color:white;border-color:var(--ink)}button.primary:hover{background:#554d43}.actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.actions button{padding:10px 12px;font-size:11px}.actions .primary{background:var(--khaki-dark);border-color:var(--khaki-dark)}
header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 30px;background:white;border-bottom:1px solid var(--line);min-height:80px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid #c9bba9;border-radius:50%;font:italic 26px Georgia,serif;color:var(--khaki-dark)}.brand-name{font-family:'Jost',sans-serif;letter-spacing:.19em;font-size:14px;font-weight:600;line-height:1.1}.brand-name small{display:block;letter-spacing:.43em;font-size:9px;margin-top:4px;font-weight:400}.brand-divider{height:27px;width:1px;background:#dcd4c9;margin:0 4px}.brand-studio{font:italic 20px Georgia,serif;color:#8b7a65}
main{display:grid;grid-template-columns:255px minmax(0,1fr) 305px;min-height:calc(100vh - 128px)}aside{background:#fff;padding:26px 22px;border-right:1px solid var(--line);min-width:0}aside.inspector{border-left:1px solid var(--line);border-right:0}.eyebrow{color:#a69887;font-size:9px;font-weight:700;letter-spacing:.19em;margin:0 0 16px}h3{font-family:Georgia,serif;font-size:19px;letter-spacing:0;text-transform:none;font-weight:400;margin:19px 0 17px;color:#39332d}.sidebar>button{display:block;width:100%;margin:9px 0;text-align:left;padding:13px 15px}.templates{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:29px}.templates button{min-height:52px;font-family:Georgia,serif;font-size:14px;font-weight:400}.hint{font-size:11px;line-height:1.8;color:#948b80}.sidebar .hint{margin:14px 0 22px}.upload-label{display:block;background:#f4f0e9;border:1px dashed #c9baa6;border-radius:5px;padding:17px 12px;cursor:pointer;text-align:center;font-size:12px;color:#74624c;font-weight:600;line-height:1.5}.upload-label:hover{background:#eee7dc}
.workspace{min-width:0;background:radial-gradient(ellipse at 50% 18%,#fdfbf8 0%,#f4f0ea 65%,#efeae2 100%);padding:32px 28px 45px;display:flex;flex-direction:column;align-items:center}.topbar{display:flex;align-items:center;justify-content:space-between;width:min(100%,500px);gap:14px;margin:0 0 24px}.workspace-title{font:22px Georgia,serif;color:#544a3e}.workspace-title small{display:block;font:11px 'DM Sans',sans-serif;letter-spacing:.07em;color:#9b8e7f;margin-top:7px}.status-pill{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#7b8b72;background:#eff3eb;border:1px solid #e0e8d8;padding:7px 12px;border-radius:99px}.paper-wrap{width:min(100%,500px);background:white;box-shadow:0 14px 50px #62564722,0 1px 4px #62564715;touch-action:none}svg#canvas{display:block;width:100%;height:auto;user-select:none;touch-action:none}svg .item{cursor:move}svg .item.selected{filter:drop-shadow(0 0 1px #a47d31)}svg .selection{pointer-events:none;fill:none;stroke:#b79a72;stroke-width:1.5;stroke-dasharray:5 4}svg .resize-handle{fill:#fff;stroke:#ad9270;stroke-width:2;cursor:nwse-resize;pointer-events:all}svg .rotate-handle{fill:#ad9270;stroke:#fff;stroke-width:2;cursor:grab;pointer-events:all}svg .rotation-stem{stroke:#ad9270;stroke-width:1.5;pointer-events:none}svg .resize-handle:hover,svg .rotate-handle:hover{stroke:#29241e;stroke-width:3}
.inspector label{display:block;font-size:11px;font-weight:600;color:#746c62;margin:15px 0}.inspector input,.inspector select,.inspector textarea{display:block;width:100%;margin-top:8px;border:1px solid #e4dfd7;border-radius:5px;padding:11px 12px;font-size:12px;font-weight:400;background:#fff;color:#38332d;outline:none}.inspector input:focus,.inspector select:focus,.inspector textarea:focus{border-color:#a99881;box-shadow:0 0 0 3px #c6b49b22}.inspector input[type=color]{height:41px;padding:4px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two button{font-size:11px}.danger{color:#b35f55}.danger:hover{background:#fff6f4;border-color:#c99c93}.layer{display:block;width:100%;text-align:left;margin:6px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.layer.active{border-color:#aa967c;background:#f5f0e8}.font-picker{margin:22px 0 25px;border-top:1px solid var(--line);padding-top:19px}.font-picker-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:12px}.font-picker-head strong{font:17px Georgia,serif;font-weight:400}.font-picker-head span{color:#95887a;font-size:10px}.font-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}.font-tabs button{padding:7px 9px;font-size:10px;font-weight:500}.font-tabs button.active{background:#39332d;color:#fff;border-color:#39332d}.font-preview-list{display:grid;gap:7px;max-height:320px;overflow-y:auto;padding-right:4px}.font-preview{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;padding:12px;background:#fff;border:1px solid #eae5de;border-radius:5px}.font-preview.active{border-color:#ab9577;background:#f8f4ed;box-shadow:inset 3px 0 #ab9577}.font-preview .font-name{font:10px 'DM Sans',Arial,sans-serif;color:#948679}.font-preview .font-sample{font-size:24px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#393029}.font-preview:hover{background:#faf7f1}.mobile-note{display:none;text-align:center;font-size:12px;color:#7c7064;margin:15px}footer{text-align:center;font-size:10px;letter-spacing:.05em;padding:16px;color:#a49b90;background:#fff;border-top:1px solid var(--line)}
@media(max-width:1120px){main{grid-template-columns:205px minmax(0,1fr) 255px}aside{padding:22px 15px}header{padding:13px 18px}.workspace{padding:25px 15px}}@media(max-width:800px){main{grid-template-columns:1fr}.sidebar{order:1;border-bottom:1px solid var(--line)}.workspace{order:2;padding:25px 14px}.inspector{order:3;border-top:1px solid var(--line)}.mobile-note{display:block}.brand-studio{font-size:16px}header{padding:13px 15px}.actions{width:100%;overflow-x:auto;flex-wrap:nowrap}.actions button{flex-shrink:0}.templates{grid-template-columns:repeat(4,minmax(0,1fr))}.templates button{font-size:12px;min-height:44px}}@media(max-width:410px){.brand-name{font-size:12px}.brand-studio{font-size:14px}.brand{gap:7px}.brand-divider{margin:0}.templates{grid-template-columns:1fr 1fr}}

/* v1.6 — Luna-style three-zone composition in SunKissed palette */
:root{--ink:#3d352d;--cream:#f5f1ea;--khaki:#a69680;--line:#e1d9cf}
body{height:100vh;overflow:hidden;background:#f5f1ea}
header{height:58px;min-height:58px;padding:7px 13px;flex-wrap:nowrap;gap:13px;box-shadow:none;position:relative;z-index:5}
.brand{gap:8px;flex-shrink:0}.brand-mark{width:29px;height:29px;font-size:19px}.brand-name{font-size:11px;letter-spacing:.12em}.brand-name small{font-size:7px;margin-top:2px}.brand-divider{height:23px}.brand-studio{font-size:15px}
.header-templates{display:flex;align-items:center;min-width:0;overflow-x:auto;flex:1}.header-templates .templates{display:flex;gap:5px;margin:0}.header-templates button{min-height:0;padding:8px 11px;border-radius:20px;font:11px 'DM Sans',sans-serif;white-space:nowrap;background:#faf8f5;color:#6e6357}.header-templates button.selected{background:#8c7b66;color:white;border-color:#8c7b66}
.actions{flex-wrap:nowrap;gap:5px;flex-shrink:0}.actions button,.toolbar-upload{border-radius:20px;padding:8px 11px;font-size:10px;font-weight:500;white-space:nowrap}.toolbar-upload{display:inline-flex;align-items:center;cursor:pointer;background:#fff;border:1px solid var(--line);color:#51493f}.toolbar-upload:hover{background:#f5f0e9}.actions #imageFile{display:none!important}.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
main{display:grid;grid-template-columns:minmax(0,1fr) 315px;height:calc(100vh - 58px);min-height:0}.workspace{min-width:0;height:100%;padding:0;background-color:#f0ebe2;background-image:linear-gradient(45deg,#eae4da 25%,transparent 25%),linear-gradient(-45deg,#eae4da 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eae4da 75%),linear-gradient(-45deg,transparent 75%,#eae4da 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;overflow:auto;display:flex;flex-direction:column;align-items:stretch}
.topbar{width:100%;height:45px;min-height:45px;margin:0;padding:0 13px;background:#fbf9f5;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.workspace-title{font:11px 'DM Sans',sans-serif;color:#877c6d}.zoom-controls{display:flex;align-items:center;gap:7px}.zoom-controls button{border-radius:18px;padding:5px 10px;font-size:12px}.zoom-controls span{font-size:11px;color:#807466;min-width:35px;text-align:center}
.paper-wrap{width:min(440px,calc((100vh - 135px)*5/7),calc(100% - 60px));margin:auto;flex-shrink:0;box-shadow:0 9px 32px #3c302225;transform-origin:center center;transition:transform .15s}svg#canvas{background:#fff}.inspector{height:100%;overflow-y:auto;padding:18px 16px!important;border-left:1px solid var(--line);background:#fffdf9}.inspector .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:6px}.inspector h3{font:600 11px 'DM Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#807567;margin:17px 0 12px}.inspector label{margin:10px 0;font-size:10px}.inspector input,.inspector select,.inspector textarea{padding:9px;font-size:12px;margin-top:6px}.inspector button{border-radius:17px;padding:9px 10px;font-size:11px}.font-picker{margin:15px 0;padding-top:12px}.font-picker-head strong{font-size:14px}.font-preview-list{max-height:160px}.font-preview{padding:8px}.font-preview .font-sample{font-size:19px}.layer{border-radius:7px!important;padding:9px 11px!important}footer{display:none}.mobile-note{display:none}
@media(max-width:1200px){.brand-divider,.brand-studio{display:none}.header-templates button{padding:7px 9px}.actions button,.toolbar-upload{padding:7px 9px}}
@media(max-width:900px){body{height:auto;overflow:auto}header{height:auto;min-height:60px;flex-wrap:wrap}.header-templates{order:3;flex-basis:100%}.actions{margin-left:auto;max-width:100%;overflow-x:auto}main{height:auto;min-height:0;grid-template-columns:1fr}.workspace{height:75vh;min-height:500px}.inspector{height:auto;max-height:none;border-top:1px solid var(--line)}.paper-wrap{width:min(400px,calc((75vh - 100px)*5/7),calc(100% - 30px))}.mobile-note{display:block}}

/* v1.7 functional decorative controls */
.decor-section{border-top:1px solid var(--line);margin-top:18px;padding-top:9px}.decor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.decor-grid button{font-size:10px;padding:9px 3px;border-radius:8px}.decor-grid button.active{background:#e9e0d4;border-color:#a69680;color:#3d352d}.decor-section .two{margin:9px 0}.decor-section input{width:100%}

/* V2.0 multi-product workflow */
.product-bar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:15px 28px;background:#fff;border-bottom:1px solid var(--line)}.product-bar-heading{display:flex;gap:10px;align-items:center;margin-right:12px;min-width:190px}.product-bar-heading strong{display:block;font:20px Georgia,serif;color:var(--ink)}.product-bar-heading small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.step-pill{border:1px solid var(--khaki);color:var(--khaki-dark);border-radius:50%;padding:10px;font-size:11px}.product-bar label{display:flex;flex-direction:column;gap:5px;color:#827769;font-size:10px;letter-spacing:.06em;text-transform:uppercase}.product-bar select{min-width:145px;max-width:220px;background:#faf8f5;border:1px solid #ddd4c8;border-radius:5px;padding:10px;color:#4c4339;font-size:12px}.product-bar button{white-space:nowrap}.product-apply{background:#80705c;color:#fff;border-color:#80705c}.product-apply:hover{background:#675844;color:#fff}.product-notice{padding:8px 28px;background:#f8f6f2;color:#817568;font-size:11px;border-bottom:1px solid #ebe5dc}.product-info{padding:15px;border:1px solid #e7dfd3;background:#faf8f5;border-radius:6px;margin-bottom:24px;display:flex;flex-direction:column;gap:7px}.product-info .eyebrow{margin:0 0 3px}.product-info strong{font:19px Georgia,serif}.product-info span{font-size:11px;color:#817568}.paper-wrap svg{height:auto;max-height:72vh;width:auto;max-width:min(100%,560px);box-shadow:0 15px 45px #5a4e3a22}#canvas{touch-action:none}@media(max-width:900px){.product-bar{padding:12px}.product-bar select{min-width:130px}.product-notice{padding:9px 12px}}

/* v2.2 bring-your-own-design workflow */
.start-options{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 28px;background:#faf8f4;border-bottom:1px solid #e8e2d8;flex-wrap:wrap}.start-copy{display:flex;flex-direction:column;gap:4px}.start-copy strong{font-family:Georgia,serif;font-size:18px;font-weight:normal;color:#40382f}.start-copy small{color:#80776c;font-size:12px}.start-buttons{display:flex;gap:8px;flex-wrap:wrap}.start-buttons button,.import-actions button{border:1px solid #d7cfc2;border-radius:8px;background:#fff;color:#51483f;padding:11px 15px;cursor:pointer;font-size:12px}.start-buttons button.start-active,.import-actions #applyArtwork:not(:disabled){background:#80705c;color:white;border-color:#80705c}.import-panel{margin:12px 28px 4px;background:white;border:1px solid #ddd3c7;border-radius:13px;padding:20px;box-shadow:0 8px 24px #42362b0d}.import-panel[hidden]{display:none}.import-heading{display:flex;justify-content:space-between;align-items:start;gap:15px}.import-heading h3{font-family:Georgia,serif;font-weight:normal;margin:5px 0}.import-heading p{font-size:13px;color:#786d60;margin:0 0 14px}.import-heading #closeImport{border:0;background:#f7f4ef;font-size:24px;border-radius:7px;cursor:pointer;width:34px;height:34px}.import-body{display:grid;grid-template-columns:minmax(200px,1fr) minmax(240px,1fr);gap:14px}.drop-zone{border:1px dashed #b5a692;border-radius:10px;background:#fbf9f6;min-height:135px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;cursor:pointer;padding:15px}.drop-zone.drag-over{background:#f0eae0;border-color:#80705c}.drop-icon{font-size:25px;color:#80705c}.drop-zone strong{font-size:13px}.drop-zone small{font-size:11px;color:#877a6c}.import-details{background:#f8f6f2;border-radius:10px;padding:15px;min-height:110px;font-size:12px;line-height:1.5;color:#62584c}.import-details strong{font-size:13px}.import-details p{margin:7px 0}.import-details .warn{color:#875c36}.import-details .good{color:#52694c}.import-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.import-actions button:disabled{opacity:.45;cursor:not-allowed}.import-actions #downloadReview{background:#f8f6f2}@media(max-width:780px){.start-options{padding:14px}.import-panel{margin:12px;padding:14px}.import-body{grid-template-columns:1fr}}

/* V2.3 — viewport layout and independently scrollable design canvas. */
@media (min-width:901px){
  html,body{height:100%;min-height:0}
  body{display:flex;flex-direction:column;overflow:hidden}
  body>header,body>.start-options,body>.import-panel,body>.product-bar,body>.product-notice{flex-shrink:0}
  main{flex:1 1 auto;height:auto;min-height:0;overflow:hidden}
  .workspace{height:100%;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .paper-wrap{margin:24px auto 45px;flex-shrink:0;transform-origin:center center}
  .paper-wrap svg{max-height:none}
  .inspector{min-height:0;overflow-y:auto}
}
@media(max-width:900px){
  .workspace{overflow-y:auto;overscroll-behavior:contain}
  .paper-wrap{margin:22px auto 40px}
  .paper-wrap svg{max-height:none}
}

/* V2.4 — SunKissed storefront-inspired color system, screenshot reference. */
:root{--ink:#29231f;--muted:#746c65;--line:#e5ddd3;--cream:#f6f0e8;--khaki:#a78367;--khaki-dark:#8e5c3f;--white:#fff;background:#f8f6f3;color:var(--ink)}
body{background:#f8f6f3}
header{background:#29231f!important;border-bottom:1px solid #493c32;color:#fff}
.brand-name,.brand-name small{color:#fff}.brand-mark{color:#f7f1e8;border-color:#bda993}.brand-divider{background:#68594c}.brand-studio{color:#eee3d7}
.header-templates button{background:#3b342d;color:#f2eae1;border:1px solid #5c4c3f}.header-templates button:hover{background:#514238;color:#fff}.header-templates button.selected{background:#a56f4d;color:#fff;border-color:#b7825d}
.actions button,.actions .toolbar-upload{background:#3b342d;color:#fff;border-color:#5b4c40}.actions button:hover,.actions .toolbar-upload:hover{background:#584638;border-color:#a77b59}.actions .primary{background:#a56f4d;border-color:#a56f4d;color:#fff}.actions .primary:hover{background:#ba835d}
.start-options{background:#f5ebde;border-bottom:1px solid #e3d4c3}.start-copy strong{color:#29231f}.start-copy .eyebrow{color:#955f40}.start-copy small{color:#6b5d51}.start-buttons button{border-color:#d5c3b0;background:#fffaf5;color:#46362c}.start-buttons button.start-active{background:#8e5c3f;border-color:#8e5c3f;color:#fff}.start-buttons button:hover{border-color:#a56f4d;background:#f7e9dc}
.product-bar{background:#fff;border-bottom:1px solid #e6dcd0}.product-bar-heading strong{color:#29231f}.step-pill{border-color:#9b6545;background:#9b6545;color:white}.product-bar select{background:#fbf8f4;border-color:#d6c9bb;color:#332923}.product-bar select:focus{outline:2px solid #b88b6a;outline-offset:1px}.product-notice{background:#efe2d4;color:#72533d;border-bottom:1px solid #e4d0bd}
.workspace{background-color:#e9e0d5;background-image:linear-gradient(45deg,#e2d7ca 25%,transparent 25%),linear-gradient(-45deg,#e2d7ca 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2d7ca 75%),linear-gradient(-45deg,transparent 75%,#e2d7ca 75%)}.topbar{background:#f6efe6;border-bottom-color:#dcccbc}.workspace-title{color:#5e4c3e}.zoom-controls button{background:#fff9f2;border-color:#d8c5b4;color:#4b3528}.zoom-controls span{color:#6d5544}.paper-wrap{box-shadow:0 16px 44px #3c2d2250,0 1px 5px #3c2d2224}
.inspector{background:#fff!important;border-left:1px solid #ded1c3}.inspector .eyebrow{color:#99613f}.inspector h3{color:#33251c}.inspector label{color:#625146}.inspector input,.inspector select,.inspector textarea{background:#fcfaf7;border-color:#dcd0c4;color:#302720}.inspector input:focus,.inspector select:focus,.inspector textarea:focus{border-color:#a56f4d;box-shadow:0 0 0 3px #a56f4d25}.product-info{background:#f7eee4;border:1px solid #e7d5c3}.product-info strong{color:#2e241f}.product-info span{color:#6f5d4d}.decor-section{border-top-color:#e3d7ca}.decor-grid button.active,.font-tabs button.active{background:#8e5c3f;color:#fff;border-color:#8e5c3f}.font-preview.active{background:#fbf1e7;border-color:#b78864;box-shadow:inset 3px 0 #9c6645}.font-preview:hover{background:#fcf3ea}.layer.active{background:#f7e9dc;border-color:#ad7a55}.inspector button:hover{border-color:#a56f4d}.drop-zone{background:#fcf5ed;border-color:#b9987b}.drop-zone.drag-over{background:#f5e7d8}.import-panel{border-color:#d9c6b4}.import-details{background:#f8eee4}.import-actions #applyArtwork:not(:disabled){background:#8e5c3f;border-color:#8e5c3f}
svg .selection{stroke:#a56f4d}svg .resize-handle{stroke:#a56f4d}svg .rotate-handle{fill:#a56f4d}
@media(max-width:900px){header{background:#29231f!important}.header-templates{scrollbar-color:#a56f4d #29231f}}

/* V2.6: persistent Undo / Redo at bottom-right of the central workspace. */
.workspace-history{position:fixed;right:335px;bottom:20px;z-index:15;display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #dbcabb;border-radius:24px;background:#fffaf4;box-shadow:0 6px 24px #3c2d222b;pointer-events:auto}
.workspace-history button{border-radius:18px;background:#8e5c3f;border:1px solid #8e5c3f;color:white;font-size:12px;padding:10px 16px;white-space:nowrap}
.workspace-history button:hover{background:#70452e;border-color:#70452e;color:white}
@media(max-width:900px){.workspace-history{right:16px;bottom:16px}.workspace-history button{padding:9px 12px}}

/* Unsaved work protection dialog */
.switch-dialog[hidden]{display:none!important}.switch-dialog{position:fixed;inset:0;z-index:9999;background:rgba(35,29,25,.62);display:flex;align-items:center;justify-content:center;padding:22px}.switch-dialog-card{width:min(530px,100%);background:#fffaf4;border:1px solid #e3d2c2;border-radius:16px;box-shadow:0 20px 65px #1b140f55;padding:32px;color:#29231f}.switch-dialog-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#f6e6d8;color:#8e5c3f;font-size:24px;font-weight:bold;margin-bottom:16px}.switch-dialog-card h2{font-family:Georgia,serif;font-size:26px;line-height:1.2;margin:12px 0}.switch-dialog-card p:not(.eyebrow){font-size:14px;line-height:1.65;color:#67594e}.switch-dialog-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.switch-dialog-actions button{flex:1 1 auto;padding:12px 14px;border-radius:9px;border:1px solid #d9c9b9;background:#fffaf4;color:#3c3029;cursor:pointer}.switch-dialog-actions .switch-confirm{background:#8e5c3f;color:white;border-color:#8e5c3f}.switch-dialog-actions button:focus-visible{outline:3px solid #bd8b65;outline-offset:2px}

/* v2.9: left-aligned tools and accessible File dropdown */
header{justify-content:flex-start!important}
header .actions{margin-left:18px!important;flex:1 1 auto;justify-content:flex-start;min-width:0;overflow:visible!important}
header .actions #imageFile{display:none!important}
.toolbar-divider{height:24px;border-left:1px solid #66574c;margin:0 5px}
.file-menu{position:relative;flex-shrink:0}
.file-menu #fileMenuToggle{font-weight:650;background:#a56f4d;color:white;border-color:#b98562;min-width:68px}
.file-menu #fileMenuToggle:hover{background:#b9805a}
.file-menu-panel{position:absolute;top:calc(100% + 10px);left:0;width:190px;z-index:200;background:#fff;border:1px solid #e4d8ca;border-radius:10px;box-shadow:0 14px 38px #1b120d40;padding:7px;display:flex;flex-direction:column;gap:3px}
.file-menu-panel[hidden]{display:none!important}
.actions .file-menu-panel button{display:block;width:100%;text-align:left;background:transparent;color:#352c26;border:0;border-radius:6px;padding:11px 12px;font-size:12px}
.actions .file-menu-panel button:hover{background:#f5ebe0;color:#7f4e34}
.file-menu-separator{height:1px;background:#e9e0d7;margin:5px 3px}
@media(max-width:900px){header .actions{margin-left:0!important;flex-basis:100%;order:2;overflow:visible!important;flex-wrap:wrap}.file-menu-panel{position:absolute}.toolbar-divider{display:none}}

/* v3.0 — Upload action moved to File; introductory action banner removed. */
body>.start-options{display:none!important}
.file-menu-panel{min-width:200px}

/* Official SunKissed Decor logo in the studio header */
.brand-logo{display:block;width:110px;height:43px;object-fit:contain;object-position:center;flex-shrink:0}
@media(max-width:600px){.brand-logo{width:90px;height:38px}}

/* V3.2: remove redundant visual UI, retain internal fields for existing editor JS */
.step-pill,.inspector .product-info,.inspector label.legacy-font-select{display:none!important}
.product-bar-heading{min-width:0}

/* v3.3 — compact canvas, floating layer manager */
.product-notice,.workspace-title{display:none!important}
.topbar{justify-content:flex-end}
.advanced-position-fields{display:none!important}
.workspace-history{overflow:visible}
.workspace-history #layersToggle{display:inline-flex;align-items:center;gap:7px}
.layers-popover[hidden]{display:none!important}
.layers-popover{position:absolute;bottom:calc(100% + 12px);right:0;width:min(330px,calc(100vw - 30px));max-height:min(460px,65vh);overflow-y:auto;background:#fffdf9;border:1px solid #d9c8b7;border-radius:14px;box-shadow:0 12px 38px #30201840;padding:16px;color:#33251c;z-index:30;text-align:left}
.layers-popover-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.layers-popover-header strong{font:20px Georgia,serif}
.workspace-history .layers-popover-header button{background:transparent;border:1px solid #e2d5c8;color:#4b382c;padding:3px 9px;font-size:19px}
.layers-help{font-size:11px;color:#806e5f;line-height:1.5;margin:8px 0 12px}
.layers-popover #layers{max-height:265px;overflow-y:auto}
.workspace-history .layers-popover .layer{display:block;width:100%;background:#fbf7f2;color:#44352b;border:1px solid #e7d9cb;text-align:left;border-radius:7px;padding:9px 11px;margin:6px 0;font-size:12px}
.workspace-history .layers-popover .layer.active{background:#f1ddc9;border-color:#9e6b49;color:#33251c}
.layers-popover-actions{display:flex;gap:8px;margin-top:12px}
.workspace-history .layers-popover-actions button{flex:1;background:#f8f0e7;border-color:#ddcabb;color:#624a38;padding:8px 9px;font-size:11px}
@media(max-width:600px){.workspace-history{gap:4px;padding:5px}.workspace-history button{padding:8px!important;font-size:11px}.workspace-history #layersToggle span{display:none}.layers-popover{right:0}}

/* V3.5: scrollable oversized pasteboard around the invitation.
   The stage provides real scrollable dimensions even when the paper is CSS-scaled. */
.workspace{align-items:stretch!important}
.canvas-stage{box-sizing:border-box;display:flex;justify-content:center;align-items:flex-start;flex:0 0 auto;min-width:100%;width:max-content;min-height:calc(100% + 500px);padding:105px 180px 650px;position:relative}
.canvas-stage .paper-wrap{margin:0!important;flex:0 0 auto}
@media(max-width:900px){.canvas-stage{padding:85px 100px 450px;min-height:calc(100% + 350px)}}

/* Drag-to-select marquee on empty canvas */
.marquee-rect{fill:rgba(158,107,73,.10);stroke:#9e6b49;stroke-width:1.4;stroke-dasharray:7 5;}

.workspace-marquee{position:fixed;z-index:9999;pointer-events:none;border:1.5px solid #8e5c3f;background:rgba(142,92,63,.13);box-sizing:border-box}

/* V4.0 group, lock and align toolbar */
.selection-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 18px;background:#f8f3eb;border-bottom:1px solid #e2d8c9}.selection-tools button{background:#fff;border:1px solid #d7c8b5;border-radius:7px;padding:7px 11px;color:#45362d;cursor:pointer;font-size:12px}.selection-tools button:hover{background:#eee2d3}.selection-separator{width:1px;height:22px;background:#cdbca9;margin:0 5px}

/* v4.7.4 — unified white studio toolbar */
.product-bar{display:flex;align-items:center;gap:12px;padding:15px 24px;flex-wrap:wrap;position:relative;z-index:5;flex-shrink:0}
.product-bar-heading{margin:0;min-width:145px;flex:0 0 auto}
.studio-title{margin:0;font:italic 22px Georgia,serif;color:#332923;white-space:nowrap}
.product-bar>label{flex:0 1 auto;min-width:0}
.product-bar select{min-width:120px;max-width:185px}
.product-bar .actions{margin-left:auto;display:flex;gap:6px;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:wrap;overflow:visible;width:auto}
.product-bar .actions button,.product-bar .toolbar-upload{background:#faf8f5;border:1px solid #d6c9bb;color:#4c382c;padding:8px 10px;font-size:11px}
.product-bar .actions button:hover,.product-bar .toolbar-upload:hover{background:#efe6dc;border-color:#a77b59}
.product-bar #fileMenuToggle,.product-bar .quote-entry{background:#8e5c3f;color:#fff;border-color:#8e5c3f}
.product-bar .toolbar-divider{border-color:#ded1c3;height:24px;margin:0 2px}
@media(max-width:1500px){.product-bar .actions{flex-basis:100%;margin-left:0;justify-content:flex-start}}
@media(max-width:700px){.product-bar{padding:12px;gap:10px}.product-bar-heading{flex-basis:100%}.product-bar>label{flex:1 1 calc(50% - 10px)}.product-bar select{width:100%;min-width:0;max-width:none}.product-bar .actions{gap:7px}.product-bar .toolbar-divider{display:none}.studio-title{font-size:21px}}

/* v4.7.5 — mobile canvas with two compact toolbars */
.mobile-studio-top,.mobile-studio-bottom,.mobile-panel-close{display:none}
@media(max-width:900px){
html,body{height:100%;min-height:0;overflow:hidden}
body{display:flex;flex-direction:column}
.mobile-studio-top{display:flex;flex:0 0 54px;align-items:center;justify-content:space-between;gap:7px;padding:7px 10px;background:#fff;border-bottom:1px solid #e5ddd3;z-index:40}
.mobile-studio-top strong{font:italic 17px Georgia,serif;white-space:nowrap}
.mobile-studio-top button{padding:8px 9px;font-size:11px;border-radius:18px;white-space:nowrap}
.mobile-studio-top .quote-entry{font-size:10px}
.mobile-studio-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex:0 0 auto;order:10;padding:7px 8px max(7px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #ded1c3;z-index:40}
.mobile-studio-bottom>button,.mobile-studio-bottom .toolbar-upload,.mobile-studio-bottom #fileMenuToggle{width:100%;padding:9px 3px!important;font-size:10px!important;border-radius:8px;white-space:nowrap;text-align:center;justify-content:center;background:#faf7f2;color:#4c382c;border:1px solid #ded1c3;min-height:34px}
.mobile-studio-bottom .file-menu{min-width:0}.mobile-studio-bottom #layersToggle span{display:inline}.mobile-studio-bottom #layersToggle svg{width:14px;height:14px}
.mobile-studio-bottom .file-menu-panel{position:fixed;left:8px;right:8px;top:auto;bottom:100px;width:auto;max-height:60vh;overflow:auto;z-index:80}
body>main{display:flex!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:hidden;position:relative}
.workspace{flex:1;width:100%;height:100%;min-width:0;overflow:auto!important;position:relative;padding:0!important}
.canvas-stage{width:max-content;min-height:100%!important;justify-content:center;align-items:center}
.paper-wrap{width:calc(100vw - 36px)!important;max-width:500px;flex-shrink:0;transform-origin:center center}
.paper-wrap svg,#canvas{display:block;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important}
.topbar{height:39px;min-height:39px;padding:4px 10px;justify-content:center;z-index:3}.zoom-controls{justify-content:center}
.workspace-history{position:static!important;background:none!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
.layers-popover{position:fixed!important;left:8px!important;right:8px!important;bottom:100px!important;width:auto!important;max-height:60vh!important;z-index:70}
.mobile-note{display:none!important}
.product-bar{display:none!important}
.mobile-product-open .product-bar{display:grid!important;grid-template-columns:1fr 1fr;align-content:start;gap:12px;position:fixed;inset:54px 8px 100px;padding:15px;overflow:auto;background:#fff;border:1px solid #ded1c3;border-radius:12px;z-index:60}
.product-bar-heading,.product-bar .actions{display:none!important}
.product-bar>label{min-width:0}.product-bar select{width:100%;min-width:0;max-width:none}
.inspector{display:none!important}
.mobile-inspector-open .inspector{display:block!important;position:fixed;inset:54px 8px 100px;overflow:auto;padding:16px;border:1px solid #ded1c3;border-radius:12px;z-index:60;background:#fff}
.mobile-panel-close{display:block;width:100%;grid-column:1/-1;margin-bottom:8px;background:#8e5c3f;color:#fff}
.import-panel{position:fixed;inset:60px 8px 100px;margin:0;overflow:auto;z-index:75}
}

/* Keep mobile-only controls hidden even if an older stylesheet is cached. */
.mobile-studio-top[hidden],.mobile-studio-bottom[hidden],.mobile-panel-close[hidden]{display:none!important}
@media(min-width:901px){.mobile-studio-top,.mobile-studio-bottom,.mobile-panel-close{display:none!important}}
