:root{--purple:#6c4de6;--ink:#252537;--border:#e7e7f0;--muted:#818196;--bg:#f5f6fb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Heebo','Inter',Arial,sans-serif;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:9px;background:#fff;padding:9px 12px;color:inherit;transition:.15s}button:hover{border-color:#b8adff;background:#f5f3ff}button:disabled{opacity:.35;cursor:default}input,select,textarea{border:1px solid #dedee9;border-radius:9px;background:white;padding:10px;width:100%;outline:0;color:var(--ink)}input:focus,textarea:focus,select:focus{border-color:var(--purple);box-shadow:0 0 0 3px #6c4de618}input[type=color]{width:47px;height:38px;padding:3px;cursor:pointer;flex-shrink:0}input[type=range]{padding:0;accent-color:var(--purple)}input[type=checkbox]{width:auto}label{display:block;font-size:12px;font-weight:700;margin:14px 0 7px}h2{font-size:19px;margin:3px 0 8px}h3{font-size:14px;margin:24px 0 9px}.muted{color:var(--muted);font-size:12px;line-height:1.65}.accent{background:var(--purple);color:white;border-color:var(--purple);font-weight:700}.accent:hover{background:#5738d2;color:#fff}.ghost{background:#f3f0ff;color:#6347d6;border:0}.full{width:100%;margin:5px 0}.inline{display:flex;gap:7px;align-items:center}.inline>input:not([type=color]){min-width:0}.two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.two input{min-width:0}header{height:65px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:20px}.brand{display:flex;align-items:center;gap:9px;font-family:Inter,Arial,sans-serif;direction:ltr;white-space:nowrap;font-size:19px;letter-spacing:-.8px}.brand b{color:var(--purple)}.brand small{font-size:9px;color:var(--purple);letter-spacing:2px}.brandmark{width:36px;height:36px;background:var(--purple);color:#fff;border-radius:11px;display:grid;place-items:center;font-size:24px}.head-center{display:flex;align-items:center;gap:10px}.head-center input{width:180px;border:1px solid transparent;background:#f8f8fc;text-align:center;font-weight:700}.head-center #saveStatus{font-size:11px;color:#19a56a}.header-actions{display:flex;gap:7px}.app{display:flex;height:calc(100vh - 65px);min-height:0}.rail{width:78px;flex-shrink:0;background:white;border-inline-end:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:14px 7px;gap:6px}.rail button{border:0;width:65px;height:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#73738b;background:transparent}.rail button span{font-size:24px;line-height:1}.rail button small{font-size:11px}.rail button.active{background:#f0ecff;color:var(--purple);font-weight:800}.left-panel{width:300px;flex-shrink:0;background:white;border-inline-end:1px solid var(--border);overflow-y:auto;padding:22px 18px}.tab-pane{display:none}.tab-pane.active{display:block}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.template-card{border:1px solid var(--border);padding:0;overflow:hidden;text-align:center;background:white;border-radius:12px}.template-card:hover{border-color:var(--purple);transform:translateY(-2px);box-shadow:0 7px 18px #6c4de61a}.template-preview{height:98px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.template-preview .sym{font-size:31px;line-height:1}.template-preview .brandtext{font-size:15px;font-weight:900;letter-spacing:1px}.template-card small{display:block;padding:8px 4px;color:#666;font-size:11px}.notice{background:#fff9e8;border:1px solid #ffe8b2;border-radius:9px;padding:10px;color:#957224;font-size:11px;margin-top:17px}.shape-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.shape-grid button{height:75px;font-size:32px}.palette{display:flex;gap:3px;border:1px solid var(--border);border-radius:9px;padding:7px;margin-bottom:8px;cursor:pointer}.palette span{height:31px;flex:1;border-radius:5px}.palette:hover{border-color:var(--purple)}.upload-box{margin:18px 0;min-height:170px;border:2px dashed #c6baf9;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--purple);cursor:pointer;background:#faf8ff}.upload-box span{font-size:40px}.upload-box small{color:#888}.font-sample{display:block;width:100%;margin-bottom:7px;text-align:start;font-size:19px;padding:11px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column;background:#f2f3f9}.contextbar{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:white;border-bottom:1px solid var(--border);gap:10px}.contextbar #selectionLabel{font-size:12px;color:#7b7b8c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-actions{display:flex;gap:6px}.context-actions button{padding:6px 9px;font-size:12px}.danger{color:#d23c4c}.canvas-scroll{flex:1;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:45px;min-height:0}#artboardWrap{flex-shrink:0;box-shadow:0 12px 50px #2c23591c;position:relative}#artboard{display:block;touch-action:none;background:transparent;overflow:visible}#artboard [data-id]{cursor:move}#artboard [data-id].locked{cursor:not-allowed}.bottom-bar{height:47px;background:white;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 17px;font-size:12px}.zoom{display:flex;gap:7px;align-items:center}.zoom button{padding:4px 9px}.right-panel{width:270px;flex-shrink:0;background:#fff;border-inline-start:1px solid var(--border);overflow-y:auto;padding:21px 17px}.right-panel textarea{resize:vertical}.right-panel .inline button{flex:1;padding:8px 5px}.empty{text-align:center;color:#9a9aac;margin-top:80px}.empty div{font-size:45px;color:#c1b4fc}.empty p{font-size:13px;line-height:1.7}.layer{width:100%;display:flex;align-items:center;gap:7px;margin:6px 0;text-align:start}.layer.selected{border-color:var(--purple);background:#f4f0ff}.layer span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer button{padding:2px 6px}.modal{position:fixed;inset:0;background:#16142b77;z-index:20;display:grid;place-items:center}.modal[hidden],[hidden]{display:none!important}.modal-card{width:min(420px,92vw);background:#fff;border-radius:18px;box-shadow:0 20px 80px #0003;padding:24px}.modal-head{display:flex;align-items:center;justify-content:space-between}.check{display:flex;align-items:center;gap:8px;margin:15px 0}.check input{width:auto}@media(max-width:1250px){.left-panel{width:245px}.right-panel{width:235px}.head-center{display:none}}@media(max-width:900px){body{overflow:auto}.app{height:calc(100vh - 65px)}.right-panel{width:215px}.left-panel{width:220px}.rail{width:60px}.rail button{width:52px}.bottom-bar>.muted{display:none}}@media(max-width:680px){header{padding:0 8px;gap:5px}.brand{font-size:12px}.brandmark{width:25px;height:25px}.header-actions button{padding:6px;font-size:11px}.left-panel{width:180px;padding:13px}.rail{width:45px;padding:5px 2px}.rail button{width:40px;font-size:10px}.rail button small{font-size:8px}.right-panel{position:absolute;inset-inline-end:0;bottom:0;top:120px;z-index:5;box-shadow:0 0 20px #0001;width:200px;display:none}.right-panel.show{display:block}.context-actions button{padding:5px;font-size:10px}}

/* Expanded template library */
.suggest-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}.suggest-row strong{font-size:12px;color:#6654b6}.suggest-row button{padding:9px 12px;border-radius:8px;font-size:12px}.template-preview.template-variant-1{flex-direction:row;gap:8px}.template-preview.template-variant-1 .sym{font-size:32px}.template-preview.template-variant-2{flex-direction:row-reverse;gap:7px}.template-preview.template-variant-2 .sym{font-size:34px}.template-preview.template-variant-3 .sym{font-size:22px}.template-preview.template-variant-3 .brandtext{font-family:Georgia,serif;letter-spacing:2px}.template-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#templateSearch{width:100%}
/* Art-directed premium template thumbnails */
.premium-card{border:1px solid #e3dfd9;box-shadow:0 2px 12px #00000008}.premium-card:hover{box-shadow:0 9px 25px #00000018;transform:translateY(-3px)}
.premium-preview{height:142px;position:relative;overflow:hidden;gap:4px;direction:ltr;padding:14px 7px}
.premium-preview .sym{font-family:Georgia,serif;font-size:37px!important;line-height:1.1;display:grid;place-items:center;z-index:1}
.premium-preview .brandtext{font-size:15px!important;font-family:Georgia,serif;font-weight:800;letter-spacing:1px;z-index:1;overflow-wrap:anywhere;max-width:100%}
.premium-preview .premium-sub{font-size:6px;letter-spacing:2px;font-weight:700;color:var(--ink);z-index:1}
.premium-layout-0 .sym{background:var(--ink);width:58px;height:58px;border-radius:50%;color:var(--accent)!important}
.premium-layout-1{border:11px solid var(--ink);outline:2px solid var(--accent);outline-offset:-16px}
.premium-layout-1 .sym{font-size:46px!important}.premium-layout-1 .brandtext{font-size:13px!important}
.premium-layout-2{flex-direction:row!important;flex-wrap:wrap;align-content:center}.premium-layout-2 .sym{background:var(--ink);height:84px;width:42px;color:var(--accent)!important;transform:skew(-8deg);font-size:25px!important}.premium-layout-2 .brandtext{font-family:Montserrat,Arial,sans-serif;font-size:13px!important;max-width:65%}.premium-layout-2 .premium-sub{width:100%}
.premium-layout-3 .sym{border:3px double var(--accent);border-radius:50%;width:72px;height:72px}
.premium-layout-4{flex-direction:row!important;flex-wrap:wrap;align-content:center}.premium-layout-4 .sym{background:var(--ink);color:var(--accent)!important;width:60px;height:75px}.premium-layout-4 .brandtext{max-width:58%;font-family:Montserrat,Arial,sans-serif;font-size:14px!important}.premium-layout-4 .premium-sub{width:100%}
.premium-layout-5 .sym{border:5px double var(--ink);border-radius:50%;width:77px;height:77px}
