:root{--accent:#0066ff;--ink:#222d40;--muted:#64748b;--line:#e2e8ef;--bg:#f8f9fa}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:115px}body{margin:0;background:var(--bg);color:var(--ink);font:16px Arial,Helvetica,sans-serif}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid #66a3ff;outline-offset:4px}button:disabled{cursor:default}header{height:102px;background:#fff;border-bottom:1px solid var(--line);border-radius:0 0 16px 16px;display:flex;align-items:center;padding:16px 30px;gap:40px;position:relative;z-index:2}.brand{display:flex;align-items:center;text-decoration:none;color:var(--ink);white-space:nowrap;font-size:26px;letter-spacing:-.9px;gap:15px}.brand em{font-style:normal;color:#0052cc}.brand-icon{display:grid;place-items:center;background:#0066ff;color:white;border-radius:50%;width:56px;height:56px;font-size:40px;transform:rotate(-25deg)}nav{display:flex;align-items:stretch;gap:22px;height:100%;flex:1;margin-left:8px}nav a,nav button{display:flex;align-items:center;justify-content:center;border:0;background:transparent;text-decoration:none;color:var(--ink);font-weight:600;font-size:18px;padding:0 10px;white-space:nowrap}nav .active{color:#0052cc;border-bottom:3px solid var(--accent)}nav a:hover,nav button:hover{color:var(--accent)}.avatar{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;background:#0066ff;color:white;border-radius:50%;font-size:19px}main{margin-right:106px;padding:72px 46px 24px;min-height:calc(100vh - 102px)}.drop{border:3px dashed #d5d5d5;border-radius:12px;background:#fff;text-align:center;padding:42px 24px 44px;min-height:292px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s}.drop:hover,.drop.dragging{border-color:var(--accent);background:#f3f8ff}h1{font-size:24px;margin:10px 0 28px}.upload-button{display:inline-block;background:var(--accent);color:white;border-radius:5px;padding:17px 28px;font-size:23px}.drop p{font-size:20px;line-height:1.6;color:#6d6d6d;margin:16px 0 0}.size-fields{display:flex;gap:22px;margin-top:48px}.outlined{position:relative;display:flex;align-items:center;border:1.5px solid #c8c9ca;border-radius:17px;width:224px;height:78px;padding:12px 18px}.outlined:focus-within{border-color:#6d7788;box-shadow:0 0 0 1px #6d7788}.outlined>span{position:absolute;top:-11px;left:13px;padding:0 6px;background:var(--bg);font-size:17px;color:#536176}.outlined input{border:0;outline:0;background:transparent;width:100%;min-width:0;color:var(--ink);font-size:23px;padding-right:8px}.outlined i{font-style:normal;color:#536176;font-size:21px;margin-left:12px}.generate-actions{display:flex;align-items:center;flex-direction:column;gap:24px;margin-top:36px}.generate{border:0;background:var(--accent);color:white;font-size:21px;font-weight:bold;padding:24px 42px;border-radius:50px;box-shadow:0 6px 18px #0066ff2a;min-width:350px}.generate:disabled{background:#dedede;color:#a3a3a3;box-shadow:none}.generate:not(:disabled):hover,.accent:hover{background:#0052cc}.clear{background:#626262;color:white;border:0;border-radius:8px;padding:9px 13px;font-size:14px}.clear[hidden]{display:none}.library-heading{display:flex;justify-content:space-between;gap:20px;margin:26px 0 20px;font-size:13px;color:var(--accent)}#countlabel{color:#7c8796}.library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.asset{border:1px solid #e1e7eb;border-radius:5px;box-shadow:0 1px 3px #23364b0a;padding:10px;color:#3e6b8b;min-width:0}.asset-head{position:relative;background-color:white;background-image:conic-gradient(#ccc 25%,#fff 0 50%,#ccc 0 75%,#fff 0);background-size:14px 14px;height:170px;display:flex;justify-content:center;align-items:center;overflow:hidden;margin-bottom:8px}.thumb{max-width:95%;max-height:90%;object-fit:contain}.name{position:absolute;bottom:3px;left:3px;right:3px;background:#4449;color:#fff;font-size:12px;padding:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px}.remove{position:absolute;top:5px;right:5px;background:#444b;color:white;border:0;border-radius:50%;width:25px;height:25px;font-size:20px;line-height:20px}.asset .field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:13px}.asset .field>span{flex:1}.asset input[type=number]{min-width:0;width:50%;border:1px solid #d7dfe7;background:white;box-shadow:0 1px 2px #24314215;border-radius:4px;height:39px;padding:8px;color:#3d6d8b;font-size:12px}.toggle-line{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:32px;font-size:13px}.switch{appearance:none;position:relative;border:0;border-radius:20px;background:#cfcfcf;width:39px;height:20px;cursor:pointer;flex-shrink:0;margin:0}.switch:checked{background:var(--accent)}.switch:after{content:'';position:absolute;width:16px;height:16px;top:2px;left:2px;border-radius:50%;background:white;box-shadow:0 0 1px #777}.switch:checked:after{left:21px}.quality{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:11px 0;gap:5px}.quality .dot{display:inline-block;width:18px;height:18px;background:#4bd05d;margin-right:8px;vertical-align:middle}.quality.warn .dot{background:#e9ae42}.card-actions{display:flex;gap:8px}.card-actions button{flex:1;min-width:0;padding:10px 4px;border:1px solid #ccc;border-radius:4px;color:#5c5c5c;background:#f0f0f0;font-size:12px}.card-actions button:last-child{color:var(--accent);border-color:var(--accent);background:white}.card-actions button:hover{background:#eaf2ff}.rail{position:absolute;right:0;top:102px;width:106px;min-height:calc(100vh - 102px);height:calc(100% - 102px);padding:8px;background:#f8f9fa;box-shadow:-5px 0 12px #24314212}.rail a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:92px;border-bottom:1px solid var(--line);text-decoration:none;font-size:15px;color:#393939}.rail a:last-child{border:0}.rail svg{width:26px;height:26px;fill:#64748b}.canva{background:linear-gradient(140deg,#00d4cd,#6051ff 70%,#b01df6);color:white;width:29px;height:29px;border-radius:50%;font:bold italic 26px Georgia;text-align:center}.results{margin-top:55px;background:white;border:1px solid var(--line);border-radius:10px;padding:25px}.results[hidden]{display:none}.results-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px}.overline{font-size:10px;letter-spacing:1.5px;color:var(--accent)}h2{font-size:22px;margin:9px 0}.results p{font-size:12px;color:#748297;line-height:1.8}.result-actions{display:flex;gap:8px}button:not(.generate,.clear,.switch,.remove,nav button,.card-actions button){transition:background .15s} .result-actions button,.preview-toolbar button,#faq-save{border:1px solid #d9dfe5;border-radius:6px;background:white;color:#465466;padding:10px 14px;font-size:13px}.result-actions .accent{background:var(--accent);color:white;border-color:var(--accent)}.results-body{display:grid;grid-template-columns:1fr 235px;gap:30px;padding-top:20px}.preview{min-width:0}.preview-toolbar,.preview-footer{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#718095;gap:12px}.preview-toolbar>div{display:flex;gap:12px;align-items:center}.preview-toolbar button{padding:5px 12px}.sheet-wrap{max-width:420px;margin:22px auto}.sheet{position:relative;overflow:hidden;width:100%;background-color:white;background-image:conic-gradient(#e7e7e7 25%,#fff 0 50%,#e7e7e7 0 75%,#fff 0);background-size:14px 14px;border:1px solid #d9dee4;box-shadow:0 4px 15px #24314213}.design{position:absolute}.ruler{display:flex;justify-content:space-between;font-size:9px;color:#8b97a3;margin-bottom:6px}.export-settings{border-left:1px solid var(--line);padding-left:25px}.export-settings h3{font-size:15px;margin:0 0 18px}.export-settings>label{display:block;font-size:12px;color:#65758a;margin:14px 0}.export-settings>label.toggle-line{display:flex}.export-settings input[type=number],select{width:100%;border:1px solid #d9e0e7;border-radius:5px;background:white;padding:9px;color:#3f5166;margin-top:6px}.stats{display:flex;gap:10px;margin-top:20px}.stats>div{flex:1;background:#f7f8fa;border-radius:5px;padding:12px 8px}.stats strong{display:block;font-size:23px}.stats span{font-size:8px;color:#8691a0}.empty{padding:30px;text-align:center}.empty span{display:block}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;margin-top:80px;font-size:10px;color:#9ba4b0;letter-spacing:.6px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#29384a;color:white;padding:14px 22px;border-radius:7px;max-width:90%;font-size:14px;z-index:20;box-shadow:0 5px 22px #0002}dialog{border:0;border-radius:12px;color:var(--ink);max-width:530px;padding:30px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#14203566}dialog p{font-size:14px;line-height:1.8;color:#617084}.dialog-close{position:absolute;right:12px;top:10px;background:none;border:0;font-size:25px;color:#748094}
@media(min-width:1700px){header{height:135px;padding:20px 44px;gap:65px}.brand{font-size:34px}.brand-icon,.avatar{width:74px;height:74px}nav{gap:35px}nav a,nav button{font-size:24px}main{padding:95px 64px 30px;margin-right:142px}.rail{top:135px;width:142px;height:calc(100% - 135px);min-height:calc(100vh - 135px)}.rail a{height:125px;font-size:20px}.rail svg{width:34px;height:34px}.drop{min-height:400px;padding:60px 35px}h1{font-size:32px}.upload-button{font-size:30px;padding:23px 38px}.drop p{font-size:28px}.outlined{width:300px;height:103px}.outlined input{font-size:30px}.outlined>span{font-size:23px;top:-15px}.outlined i{font-size:28px}.size-fields{margin-top:68px;gap:30px}.generate{font-size:28px;padding:32px 55px}.generate-actions{margin-top:50px}.asset-head{height:215px}.asset .field,.toggle-line{font-size:18px}.asset input[type=number]{height:50px;font-size:15px}.quality{font-size:17px}.card-actions button{font-size:16px}.asset{padding:14px}.library{gap:28px}.name{font-size:16px}}
@media(max-width:1200px){header{gap:22px;padding:15px 22px}.brand{font-size:22px}.brand-icon{width:46px;height:46px;font-size:32px}nav{gap:7px;margin:0}nav a,nav button{font-size:15px;padding:0 7px}.avatar{width:45px;height:45px;font-size:16px}main{padding:55px 28px 25px;margin-right:85px}.rail{width:85px}.rail a{font-size:12px}.library{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.drop p{font-size:17px}.outlined{width:200px}}
@media(max-width:850px){header{height:auto;flex-wrap:wrap;padding:16px 20px;gap:14px}.brand{flex:1}nav{order:3;flex-basis:100%;height:44px;overflow:auto;justify-content:space-between}.avatar{width:42px;height:42px}main{margin-right:0;padding:35px 20px}.rail{display:none}.size-fields{gap:12px}.outlined{width:auto;flex:1;padding:10px;height:70px}.outlined>span{font-size:13px}.outlined input{font-size:20px}.outlined i{font-size:16px;margin-left:5px}.library{grid-template-columns:repeat(2,minmax(0,1fr))}.results-body{grid-template-columns:1fr}.export-settings{border-left:0;padding:0;border-top:1px solid var(--line);padding-top:20px}.results-heading{align-items:flex-start;flex-wrap:wrap}.drop{min-height:255px}.drop p{font-size:15px}.generate{font-size:17px;min-width:0;padding:22px 30px}footer{flex-direction:column;gap:10px}}
@media(max-width:480px){.library{grid-template-columns:1fr}.asset-head{height:240px}h1{font-size:20px}.size-fields{flex-wrap:wrap}.outlined{min-width:calc(50% - 12px)}.outlined:last-child{flex-grow:0}.drop{padding:30px 18px}.brand{font-size:21px}nav a,nav button{font-size:13px}.results{padding:15px}}

/* Full-width workspace with a single navigation link. */
main{margin-right:0}
nav{justify-content:flex-start}
@media(max-width:850px){nav{justify-content:flex-start}}

.upload-progress{font-size:14px;color:#64748b;margin:16px 0 0;line-height:1.6}.drop[aria-busy=true]{border-color:var(--accent)}

/* Charcoal workspace with electric blue controls. */
:root{color-scheme:dark;--accent:#0066ff;--accent-text:#80b5ff;--ink:#f3f5f9;--muted:#b2bac7;--line:#41454d;--bg:#24262b;--surface:#2d3036;--field:#202328}
body{background:var(--bg);color:var(--ink)}
header{background:#1d1f23;border-color:#393d45;border-radius:0;min-height:124px;height:124px;gap:48px}
.brand{width:420px;height:96px;overflow:hidden;justify-content:center;flex-shrink:0}
.brand-logo{display:block;width:440px;max-width:none;height:auto;flex-shrink:0}
nav .active{color:var(--accent-text);border-color:#3989ff}
nav a:hover{color:#bdd8ff}
.avatar{background:#163b76;color:#cce0ff;border:1px solid #3168bd;width:46px;height:46px;font-size:16px}
main{padding-top:54px;min-height:calc(100vh - 124px)}
.drop{background:var(--surface);border-color:#535963;box-shadow:0 12px 35px #00000012}
.drop:hover,.drop.dragging{background:#29374c;border-color:#5c9dff}
.drop p{color:#b4bdca}
.drop p b{color:#e1e7ef}
.upload-button{border-radius:8px;background:#0066ff;box-shadow:0 4px 15px #0066ff20}
.drop:hover .upload-button{background:#1976ff}
.outlined{border-color:#565e6a;background:transparent}
.outlined>span{background:var(--bg);color:#b8c5d8}
.outlined i{color:#aebcd0}
.outlined:focus-within{border-color:#70aaff;box-shadow:0 0 0 1px #70aaff}
.generate{box-shadow:0 6px 24px #0066ff30}
.generate:not(:disabled):hover,.result-actions .accent:hover{background:#1a76ff}
.generate:disabled{background:#383d46;color:#a0a8b5}
.clear{background:#363b44;color:#dbe2ec;border:1px solid #525967}
.clear:hover{background:#444b56}
.library-heading,.overline{color:var(--accent-text)}
#countlabel{color:#adb7c6}
.asset{background:var(--surface);border-color:#444b55;color:#c4d2e4;border-radius:9px;box-shadow:0 5px 18px #00000015;padding:12px}
.asset-head{border-radius:5px;background-color:#343840;background-image:conic-gradient(#343840 25%,#41464f 0 50%,#343840 0 75%,#41464f 0)}
.name{background:#161b25d9;color:#e4ebf6}
.remove{background:#161b25d9;color:#f4f7ff;border:1px solid #7e899860}
.remove:hover{background:#8f3549}
.asset input[type=number],.export-settings input[type=number],select{background:var(--field);border-color:#535d6a;color:#e4edfa;box-shadow:none}
.asset input[type=number]:focus,.export-settings input[type=number]:focus,select:focus{outline:2px solid #6fa8ff;outline-offset:1px}
.switch{background:#626b78}
.switch:checked{background:#1c78ff}
.switch:after{box-shadow:none;background:#fff}
.quality{color:#c0cfe0}
.quality .dot{border-radius:4px;background:#43cf8a}
.quality.warn{color:#f0c477}
.quality.warn .dot{background:#e9ae42}
.card-actions button{background:#373e49;border-color:#5b6573;color:#e0e8f5}
.card-actions button:last-child{background:#18365d;border-color:#4f8bd9;color:#a6cfff}
.card-actions button:hover{background:#3d4e65}
.card-actions button:last-child:hover{background:#214777}
.results{background:var(--surface);border-color:#444b55;box-shadow:0 10px 32px #00000012}
.results p{color:#b2bece}
.result-actions button,.preview-toolbar button{background:#363e4a;color:#deebfc;border-color:#566273}
.result-actions button:hover,.preview-toolbar button:hover{background:#45536a}
.result-actions .accent{background:#0066ff;color:white;border-color:#317fff}
button:disabled{opacity:.6}
.generate:disabled{opacity:1}
.preview-toolbar,.preview-footer{color:#b1bfd1}
.ruler{color:#a5b3c8}
.sheet{background-color:#343840;background-image:conic-gradient(#343840 25%,#41464f 0 50%,#343840 0 75%,#41464f 0);border-color:#69717d;box-shadow:0 8px 25px #0003}
.export-settings>label{color:#bdcbe0}
.stats>div{background:#22262d;border:1px solid #414955}
.stats span{color:#a4b5cd}
footer{color:#9aa7b9;border-color:#424953}
.upload-progress{color:#a9cfff}
.toast{background:#18283e;color:#e1edff;border:1px solid #4474b0;box-shadow:0 8px 28px #0005}
@media(min-width:1700px){header{height:150px}.brand{width:520px;height:115px}.brand-logo{width:545px}main{padding-top:70px}}
@media(max-width:1200px){header{gap:28px}.brand{width:350px;height:88px}.brand-logo{width:367px}}
@media(max-width:850px){header{height:auto;min-height:0;gap:10px;justify-content:space-between}.brand{width:290px;height:74px;flex:0 1 290px}.brand-logo{width:304px}.avatar{width:38px;height:38px}nav{height:38px;margin:0}nav a{padding-left:0}main{padding-top:32px}}
@media(max-width:420px){header{padding:10px 15px}.brand{width:245px;flex-basis:245px;height:66px}.brand-logo{width:257px}.avatar{width:32px;height:32px;font-size:13px}.result-actions{flex-wrap:wrap}}
.portal-button{border:1px solid #3d73bc;border-radius:8px;background:#18365d;color:#cce2ff;padding:12px 18px;white-space:nowrap;font-size:14px}.portal-button:hover{background:#214777}.sheet-limit{font-size:12px;line-height:1.6;color:#aebdd0;margin:20px 0 0;text-align:center}#portal{background:#292d34;color:#edf3fc;border:1px solid #505c6d;width:min(900px,94vw);max-width:900px;max-height:85vh;padding:25px}#portal::backdrop{background:#080c14c9}.portal-heading{display:flex;align-items:center;justify-content:space-between}.portal-heading button{background:transparent;color:white;border:0;font-size:28px}#portal p{font-size:13px;line-height:1.7;color:#b7c5d9}#account-actions{display:flex;gap:12px;align-items:center}#account-actions a{color:#95c2ff}#portal button:not(.portal-heading button){border:1px solid #5077ab;border-radius:6px;background:#18365d;color:#dbeaff;padding:10px 15px}.saved-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:15px;margin:20px 0}.saved-item{background:#21252d;border:1px solid #444e5d;border-radius:8px;padding:12px;min-width:0}.saved-item img{width:100%;height:135px;object-fit:contain;background:conic-gradient(#343840 25%,#41464f 0 50%,#343840 0 75%,#41464f 0);background-size:14px 14px}.saved-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin:10px 0}.saved-item button{width:100%;font-size:12px}@media(max-width:600px){.portal-button{font-size:12px;padding:9px}.result-actions{flex-wrap:wrap}}
.cloud-state{font-size:10px;color:#9dc5ff;margin:8px 0;line-height:1.5}
#duplicate-dialog,#rename-dialog,#delete-dialog,#sheet-duplicate-dialog{background:#292d34;color:#edf3fc;border:1px solid #505c6d;width:min(540px,94vw);padding:28px;border-radius:12px}#duplicate-dialog::backdrop,#rename-dialog::backdrop,#delete-dialog::backdrop,#sheet-duplicate-dialog::backdrop{background:#080c14c9}#duplicate-dialog p,#rename-dialog p,#delete-dialog p,#sheet-duplicate-dialog p{color:#c1cddd;line-height:1.7;font-size:14px;overflow-wrap:anywhere}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}.dialog-actions button{border:1px solid #5077ab;border-radius:6px;background:#18365d;color:#dbeaff;padding:11px 14px}.dialog-actions button:last-child{background:#0066ff;color:white;border-color:#408cff}.dialog-actions button.danger,#portal button.danger{background:#522b37;color:#ffc3d0;border-color:#a15b6c}.dialog-actions button.danger:hover,#portal button.danger:hover{background:#713348}#image-name{width:100%;background:#202328;border:1px solid #68778e;border-radius:6px;padding:12px;margin-top:10px;color:#edf3fc}#rename-form label{font-size:13px;color:#c1cddd}.saved-manage{display:flex;gap:8px;margin-top:8px}.saved-manage button{flex:1;min-width:0}#portal .saved-manage button{padding:8px;font-size:12px}
.login-page{margin:0;padding:45px 20px;min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at top,#26374f,#202226 65%)}.login-card{width:450px;max-width:100%;background:#2b2e34;border:1px solid #485262;border-radius:18px;padding:28px 34px;text-align:center;box-shadow:0 20px 80px #0004}.login-logo{width:100%;display:block;margin:-15px 0 5px}.login-card h1{font-size:27px;margin:14px 0 10px}.login-card>p{font-size:14px;color:#b9c6da;line-height:1.7}.login-setup{background:#293d57;border:1px solid #4776b1;color:#cde3ff;padding:12px;border-radius:7px;font-size:12px;line-height:1.7;margin:18px 0}.login-tabs{display:flex;gap:5px;background:#20242b;padding:4px;border-radius:8px;margin:24px 0 16px}.login-tabs button{flex:1;background:none;border:0;border-radius:5px;padding:10px;color:#aebed4;font-size:13px}.login-tabs button.selected{background:#3b4657;color:white}.google-login{display:flex;align-items:center;justify-content:center;gap:16px;border:1px solid #657186;border-radius:7px;padding:12px;color:#eff5ff;text-decoration:none;font-size:14px;background:#323a46}.google-login span{font-weight:bold;font-size:20px;color:#96bfff}.google-login.unavailable{opacity:.5;cursor:default}.login-divider{font-size:11px;color:#90a0b7;display:flex;align-items:center;gap:10px;margin:23px 0}.login-divider:before,.login-divider:after{content:'';height:1px;background:#475161;flex:1}.login-card form label{display:block;text-align:left;font-size:12px;color:#c0cce0;margin:16px 0}.login-card input{display:block;width:100%;background:#21252c;border:1px solid #556176;border-radius:6px;padding:12px;margin-top:7px;color:white;font-size:14px}.login-card input:focus{outline:2px solid #69a4ff}.login-primary{width:100%;padding:13px;background:#0066ff;color:white;font-weight:600;border:1px solid #317fff;border-radius:7px;margin-top:8px}.login-primary:disabled{background:#3a485f;color:#a5b5ce;border-color:#506078;opacity:.7}.login-message{color:#b9d5ff;line-height:1.7;font-size:12px}.login-text{background:transparent;border:0;color:#8bbaff;font-size:12px}.back-builder,.login-card>a:not(.google-login){display:block;color:#9bb6da;font-size:12px;margin-top:24px;text-decoration:none}

#projects-dialog{width:min(900px,94vw)}#save-project-dialog{width:min(520px,94vw)}#project-name{display:block;width:100%;margin-top:10px;padding:12px;background:#151a25;color:#eff6ff;border:1px solid #46536d;border-radius:8px}.saved-project{border:1px solid #34415a;border-radius:12px;padding:20px;margin:14px 0;background:#171f2d}.saved-project h3{margin:0 0 8px}.saved-project p{color:#b4c3da;font-size:14px}.project-actions,.project-downloads{display:flex;flex-wrap:wrap;gap:12px}.project-downloads a{display:inline-block;color:#68b6ff;margin-top:15px}.project-actions button{padding:10px 16px}#save-project-error{color:#ffb0aa}#projects-open{white-space:nowrap}@media(max-width:700px){header{flex-wrap:wrap}#projects-open{margin-left:auto}.result-actions{flex-wrap:wrap}}

/* Completed sheet previews stay beside their own download action. */
#projects-dialog{max-height:88vh;overflow-y:auto}
.project-reopen{padding:10px 16px;margin:3px 0 17px;border-radius:7px}
.project-sheet-list{display:grid;gap:12px}
.project-sheet-row{display:flex;align-items:center;gap:18px;padding:14px;border:1px solid #34435b;border-radius:10px;background:#111a28}
.project-sheet-thumbnail{flex:0 0 128px;width:128px;height:104px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #46536b;border-radius:7px;background-color:#273246;background-image:linear-gradient(45deg,#344258 25%,transparent 25%),linear-gradient(-45deg,#344258 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#344258 75%),linear-gradient(-45deg,transparent 75%,#344258 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}
.project-sheet-thumbnail img{max-width:100%;max-height:100%;object-fit:contain}.project-sheet-thumbnail span{font-size:11px;text-align:center;padding:10px;color:#c2d1e8;background:#172235d9}.project-sheet-thumbnail.preview-ready span{display:none}
.project-sheet-content{min-width:0}.saved-project .project-sheet-size{margin:0 0 10px;color:#b7c9e3;font-size:13px}.project-download-button{padding:11px 15px!important;border:1px solid #467deb!important;background:#214c9a!important;color:#f1f6ff!important;border-radius:7px;font-size:14px;line-height:1.35}.project-download-button:hover{background:#2d63bd!important}.project-download-button:focus-visible{outline:2px solid #a8ceff;outline-offset:3px}
@media(max-width:480px){.project-sheet-row{gap:12px;padding:10px}.project-sheet-thumbnail{flex-basis:90px;width:90px;height:90px}.project-download-button{padding:9px 10px!important;font-size:13px}.saved-project{padding:16px}.project-sheet-content{flex:1}}

.library-selection{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:sticky;top:0;z-index:2;padding:12px;margin:14px 0;background:#182337;border:1px solid #3f567b;border-radius:9px}.library-selection[hidden]{display:none}.library-selection button{padding:9px 12px}.library-selection span{margin-right:auto;color:#aac8f4;font-size:13px}.library-image-select{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:13px;color:#b9cff0;cursor:pointer}.library-image-select input{width:18px;height:18px;accent-color:#3c85ff;margin:0}.saved-item.selected{border-color:#5b9cff;box-shadow:0 0 0 1px #5b9cff;background:#1d3050}.project-card-controls{display:flex;align-items:center;gap:12px;margin-bottom:16px}.project-card-controls .project-reopen{margin:0}.project-delete{padding:10px 14px;border-radius:7px;color:#ffb1b8!important;background:transparent!important;border:1px solid #874c5b!important}.project-expiry{color:#a4b7d5!important;font-size:12px!important;margin-bottom:14px!important}.library-selection button:disabled{opacity:.45}

.project-session{margin:24px 0 28px;padding:26px;border:1px solid #354965;background:#172132;border-radius:14px}.project-session h1{font-size:27px;margin:8px 0 12px;color:#f1f6ff}.project-session p{color:#b3c4de;font-size:14px}.project-session label{display:block;color:#dce8fb;margin:20px 0 8px;font-size:14px}.new-project-fields{display:flex;gap:12px;max-width:660px}.new-project-fields input{flex:1;min-width:0;background:#0d1625;border:1px solid #50668a;color:#eef5ff;border-radius:8px;padding:14px;font:inherit}.new-project-fields button{padding:12px 20px;white-space:nowrap;border-radius:8px}#active-project-bar{display:flex;align-items:center;justify-content:space-between;gap:20px}#active-project-bar[hidden],#upload-section[hidden],#layout-actions[hidden],#project-start[hidden]{display:none}.project-session-actions{display:flex;gap:10px}.project-session-actions button{padding:10px 15px;border-radius:7px}#autosave-status{margin:0;color:#92d2ba}#autosave-status[data-state="pending"],#autosave-status[data-state="saving"]{color:#a7caff}#autosave-status[data-state="error"],#new-project-error{color:#ffb0b8}.project-download-button[hidden]{display:none}@media(max-width:600px){.project-session{padding:20px}.new-project-fields{flex-direction:column}#active-project-bar{align-items:flex-start;flex-direction:column}.project-session h1{font-size:24px}}
/* GangMasterDTF horizontal brand lockup. */
header .brand-logo{width:100%;height:100%;object-fit:cover;object-position:center}
.account-menu{position:relative;flex-shrink:0;color:#e8efff}.account-menu summary{list-style:none;cursor:pointer;border:1px solid #42648f;border-radius:8px;background:#1d3553;padding:13px 17px;white-space:nowrap;font-size:14px}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary span{margin-left:8px}.account-menu summary:focus-visible{outline:2px solid #80b5ff;outline-offset:3px}.account-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:240px;background:#202936;border:1px solid #476080;border-radius:10px;padding:8px;box-shadow:0 15px 35px #0007;z-index:100}.account-dropdown a,.account-dropdown button{display:block;width:100%;text-align:left;text-decoration:none;background:transparent;border:0;border-radius:6px;padding:12px;color:#f2f6ff;font:inherit;font-size:14px}.account-dropdown a:hover,.account-dropdown button:hover{background:#304764}.account-dropdown>span{display:block;color:#a9bad2;font-size:12px;padding:9px 12px;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #39485b;margin-bottom:5px}.account-dropdown form{margin:0}.profile-header{gap:22px}.profile-header>.portal-button{margin-left:auto;text-decoration:none}.profile-main{max-width:1140px;margin:auto;padding:50px 28px}.profile-main h1{font-size:32px;margin:10px 0}.profile-intro{color:#b4c3da;margin-bottom:30px}.profile-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:24px;align-items:start}.profile-card{background:#1b2330;border:1px solid #394b65;border-radius:14px;padding:26px;margin-bottom:22px}.profile-card h2{font-size:20px;margin:0 0 20px}.profile-card p{color:#b4c3da;font-size:14px;line-height:1.7}.profile-card label{display:block;font-size:14px;color:#c3d0e3;margin:0 0 20px}.profile-card input{display:block;width:100%;margin-top:8px;padding:13px;background:#141b26;color:#f2f6ff;border:1px solid #4a5b73;border-radius:7px;font-size:16px}.profile-card input:focus{outline:2px solid #6aa7ff}.profile-card input[readonly]{color:#a1b1ca;background:#202936}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.profile-note{font-size:12px!important;color:#a3b7d2!important}.profile-form-actions{display:flex;align-items:center;gap:16px;margin-top:26px}.profile-form-actions span{font-size:13px;color:#a6c9ff}.profile-card button{padding:12px 18px;border-radius:7px}.profile-card button:disabled{opacity:.5;cursor:default}.profile-card a{color:#84b8ff}.profile-card dl{font-size:14px;border-top:1px solid #39485b;padding-top:20px;margin-top:25px}.profile-card dt{color:#95a9c5;margin-top:16px}.profile-card dd{margin:7px 0 0;color:#ecf2ff}.profile-signout{margin-top:22px;width:100%;color:#e3ecff}.profile-card form>label{margin-bottom:4px}
@media(max-width:1200px){header{gap:16px}.brand{width:300px}}@media(max-width:850px){header{flex-wrap:wrap}.account-menu summary{padding:10px 13px}.profile-grid{grid-template-columns:1fr}.profile-header .brand{flex-basis:260px}.profile-main{padding:32px 18px}}@media(max-width:500px){.profile-fields{grid-template-columns:1fr}.profile-card{padding:20px}.profile-form-actions{align-items:flex-start;flex-direction:column}.profile-header .brand{flex-basis:100%;margin:auto}.account-dropdown{width:220px}}

/* Sticky application chrome. Keep hidden controls in the DOM for layout compatibility. */
body{padding-bottom:0}
header{position:sticky;top:0;z-index:50;background:rgba(29,31,35,.82);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.account-menu summary{display:flex;align-items:center;gap:9px;background:transparent;border-color:transparent;padding:11px 8px}
.account-menu summary:hover,.account-menu[open] summary{background:#ffffff0c;border-color:#50627a}
.account-menu summary span{margin:0}.account-icon{width:23px;height:23px;flex-shrink:0}
.export-settings[hidden]{display:none!important}.results-body{grid-template-columns:minmax(0,1fr)}
.site-footer{position:static;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:center;margin:0;padding:14px 20px;min-height:48px;background:rgba(29,31,35,.94);backdrop-filter:blur(12px);border-top:1px solid #3a424f;color:#b7c4d6;font-size:12px;text-align:center}.site-footer nav{flex:0 1 auto;display:flex;flex-wrap:wrap;justify-content:center;gap:16px;height:auto;margin:0}.site-footer nav a{color:#9cc6ff;font-size:12px;font-weight:400;padding:0;min-height:24px;text-decoration:underline;text-underline-offset:3px}.site-footer nav a:hover{color:#fff}
.legal-header{justify-content:space-between;height:auto;min-height:100px}.legal-header>.portal-button{text-decoration:none;white-space:nowrap}.legal-main{max-width:960px;margin:0 auto;padding:48px 24px 64px;min-height:calc(100vh - 200px)}.legal-document{background:#1b2330;border:1px solid #394b65;border-radius:16px;padding:clamp(22px,5vw,52px);color:#d4dfef}.legal-document h1{font-size:clamp(30px,5vw,42px);margin:12px 0;color:#f2f6ff;line-height:1.2}.legal-document h2{font-size:21px;color:#f2f6ff;margin:0 0 12px;line-height:1.4}.legal-document section{margin-top:32px;scroll-margin-top:140px}.legal-document p,.legal-document li{font-size:15px;line-height:1.85;color:#c3d0e3}.legal-document ul{padding-left:24px}.legal-document li{margin:10px 0}.legal-document a{color:#8cbeff;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.legal-document a:hover{color:white}.legal-date{color:#98acc9!important;font-size:13px!important;margin-bottom:28px}.legal-table-wrap{overflow-x:auto}.legal-document table{width:100%;border-collapse:collapse;font-size:14px}.legal-document caption{text-align:left;color:#c3d0e3;padding:0 0 12px}.legal-document th,.legal-document td{text-align:left;padding:12px;border-bottom:1px solid #394b65}.legal-document th{color:#f2f6ff}.legal-navigation{display:flex;flex-wrap:wrap;height:auto;margin:36px 0 0;padding:22px 0 0;border-top:1px solid #394b65;gap:24px}.legal-navigation a{padding:0;font-size:14px;font-weight:400}.legal-document code{font-size:.9em;overflow-wrap:anywhere}@media(max-width:600px){.legal-header{gap:14px;padding:16px 20px}.legal-header .brand{width:min(260px,100%);flex-basis:auto}.legal-header>.portal-button{font-size:13px;padding:10px 12px}.legal-main{padding:24px 14px 40px}.site-footer{gap:8px 20px}}

/* Compact, borderless account control. */
header .account-menu>summary,header .account-menu>summary:hover,header .account-menu[open]>summary{display:flex;align-items:center;gap:7px;width:auto;min-height:40px;padding:8px 2px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:14px;line-height:20px;color:#e8efff}
header .account-menu>summary:hover{color:#8bbcff}
header .account-menu>summary .account-icon{display:block;width:18px;height:18px;min-width:18px;max-width:18px;min-height:18px;max-height:18px;flex:0 0 18px}
header .account-menu>summary span{margin:0}

.sheet-stats{max-width:420px;margin:18px auto 0;gap:12px}.sheet-stats>div{padding:14px 16px}.sheet-stats strong{color:#ecf3ff;font-size:24px}.sheet-stats span{display:block;margin-top:5px;font-size:10px;letter-spacing:.7px;line-height:1.5}

.project-card-controls{flex-wrap:wrap}#rename-sheet-dialog{width:min(480px,94vw)}#sheet-name{display:block;width:100%;margin-top:10px;padding:12px;background:#151a25;color:#eff6ff;border:1px solid #46536d;border-radius:8px}#rename-sheet-error{color:#ffb0b8}

/* Keep the mobile header in two predictable rows. */
.builder-header nav{display:none!important}.builder-header>.brand{margin-right:auto}
@media(max-width:850px){
 .builder-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand account" "sheets library";gap:12px 10px;height:auto;min-height:0;padding:12px 16px 16px;align-items:center}
 .builder-header>.brand{grid-area:brand;width:100%;max-width:300px;height:70px;margin:0;min-width:0;flex-basis:auto}
 .builder-header>.brand .brand-logo{object-fit:contain}
 .builder-header>#account-menu{grid-area:account;justify-self:end}
 .builder-header>#projects-open{grid-area:sheets}
 .builder-header>#portal-open{grid-area:library}
 .builder-header>.portal-button{width:100%;height:44px;min-width:0;padding:10px 12px;font-size:14px}
}
@media(max-width:420px){.builder-header{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px 14px 14px}.builder-header>.brand{height:64px;max-width:none}.builder-header>#account-menu{min-width:0}.builder-header .account-menu>summary{font-size:13px;gap:6px}}

.saved-sheet-actions{display:flex;gap:8px;flex-wrap:wrap}.saved-sheet-actions button{padding:10px 12px;border-radius:7px}.project-export-button{background:#1260d4;color:#fff;border:1px solid #4c91f3}.project-export-button:disabled{opacity:.65}

/* Apparel logo uses its original artwork, framed tightly for the header. */
header .brand{aspect-ratio:4.25;height:auto}header .brand .brand-logo{object-fit:cover;aspect-ratio:4.25;height:auto}.builder-header>.brand{height:auto}

#portal #account-actions{display:none!important}

.trial-banner{position:sticky;top:0;z-index:70;height:44px;padding:6px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#10243c;color:#bdd6f7;border-bottom:1px solid #33577d;font-size:12px}.trial-banner strong{font-size:10px;letter-spacing:1px;color:#8fc5ff;margin-right:8px}.trial-banner button{border:0;background:transparent;color:#ebf4ff;padding:7px 0;font-size:13px;white-space:nowrap}.trial-banner button:hover{color:#82baff}header{top:44px}.feedback-dialog{width:min(540px,94vw);max-height:85dvh;overflow:auto;padding:26px;color:#edf3fc;background:#202936;border:1px solid #4a6283;border-radius:14px}.feedback-dialog::backdrop{background:#080c14b3}.feedback-heading{display:flex;gap:16px;align-items:center;justify-content:space-between}.feedback-heading>button{font-size:25px;background:transparent;border:0;color:#edf3fc}.feedback-dialog p{font-size:14px;line-height:1.65;color:#b4c5dd}.feedback-dialog label{display:block;margin-top:18px;font-size:14px}.feedback-dialog textarea,.feedback-dialog select{display:block;width:100%;margin-top:8px;padding:12px;background:#111a27;color:#eef5ff;border:1px solid #50668a;border-radius:7px;font:inherit}.feedback-dialog textarea{resize:vertical}.feedback-dialog .feedback-trap{display:none}.feedback-note{font-size:12px!important}.feedback-status{color:#b5d5ff!important}.feedback-dialog .dialog-actions button{padding:10px 16px}.feedback-dialog button:disabled{opacity:.6}.feedback-dialog .dialog-actions button:last-child{background:#1260d4;color:white}.feedback-dialog:focus{outline:none}@media(max-width:500px){.trial-banner{padding:6px 14px;font-size:10px}.trial-banner strong{margin-right:4px}.trial-banner button{font-size:12px}.feedback-dialog{padding:20px}}

.subscription-card{border-color:#3978bd}.subscription-price strong{font-size:2rem;color:#f0f7ff}.subscription-price span{color:#b8c9df}.subscription-status{color:#8bc3ff;font-weight:700}.subscription-consent{display:flex!important;align-items:flex-start;gap:12px;font-size:.95rem;line-height:1.5;margin:20px 0}.subscription-consent input{width:20px!important;min-width:20px;height:20px;margin-top:3px}.subscription-refresh{margin-top:16px}.subscription-confirm{padding:16px;background:#101b2b;border:1px solid #5078a5;border-radius:10px}.subscription-card button{max-width:100%;white-space:normal}
.admin-main{max-width:1450px}.trial-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px}.trial-control .admin-confirm{grid-column:1/-1}.admin-badge{display:inline-block;border:1px solid #537092;background:#1a2c43;color:#c9ddfa;font-size:.8rem;padding:5px 10px;border-radius:999px;vertical-align:middle}.admin-badge.enabled{background:#103c36;border-color:#2d9c86;color:#a9f3db}.admin-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px}.admin-section-heading{display:flex;gap:16px;justify-content:space-between;align-items:center}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;margin-top:20px;text-align:left}.admin-table th{color:#93b7e4;font-size:.85rem}.admin-table th,.admin-table td{padding:14px 8px;border-bottom:1px solid #34445b;vertical-align:top}.admin-table small{display:block;color:#acbdd3;overflow-wrap:anywhere;margin-top:6px}.admin-table td{font-size:.9rem}.admin-table button{padding:8px 12px}.admin-notice,.admin-confirm{border:1px solid #528ed4;border-radius:12px;padding:20px;background:#162a43;margin-bottom:24px}.admin-notice{position:relative}.admin-account-actions{display:flex;flex-wrap:wrap;gap:10px}.admin-confirm{margin-top:16px}.admin-detail{overflow-wrap:anywhere}.admin-activity{list-style:none;padding:0}.admin-activity li{padding:12px 0;border-top:1px solid #34445b;display:flex;justify-content:space-between;gap:20px}.admin-activity span{color:#acbdd3;font-size:.9rem}.trial-access-notice{background:#143b3a;border:1px solid #36877d;padding:16px;border-radius:10px;color:#b8f1e5}.account-dropdown [hidden]{display:none!important}@media(max-width:900px){.admin-columns,.trial-control{grid-template-columns:1fr}.admin-activity li{flex-direction:column;gap:6px}.admin-header{flex-wrap:wrap}.admin-table td,.admin-table th{padding:10px 5px}.admin-main{padding:24px 16px}.trial-control{gap:12px}}
.resolution-warning{color:#ffe3a6;background:#3c3020;border:1px solid #96713d;border-radius:8px;padding:12px;font-size:.85rem;line-height:1.5;margin:12px 0}.secure-card-container{min-height:110px;padding:12px;background:#182334;border:1px solid #54729a;border-radius:10px;margin:16px 0}.personal-fields select{width:100%;padding:14px;border:1px solid #536f94;border-radius:10px;background:#0d1726;color:#e9f1ff;font:inherit}.personal-fields{gap:16px}.login-card:has(.personal-fields){max-width:780px}.login-card .personal-fields{display:grid;grid-template-columns:1fr 1fr}.login-card .personal-fields label{min-width:0}@media(max-width:600px){.login-card .personal-fields{grid-template-columns:1fr}}
.storage-meter{width:100%;height:12px;accent-color:#139bff;margin:8px 0}
.storage-plan-list{border:1px solid #3e5d82;border-radius:12px;overflow:hidden;margin:20px 0}.storage-plan-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #34445b}.storage-plan-list>div:last-child{border:0}.subscription-card select{width:100%;padding:12px;background:#0d1726;border:1px solid #537398;color:#eaf3ff;border-radius:8px;font:inherit}
.cloud-import-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 8px}.cloud-import-actions button{padding:12px 18px}#canva-import-dialog{width:min(1050px,94vw);max-height:88vh;overflow:auto}#canva-designs img{width:100%;height:160px;object-fit:contain}#canva-designs input{width:20px;height:20px}.storage-plan-list span{white-space:nowrap}.storage-plan-list strong{flex:1}

.cloud-import-actions #drive-import,.cloud-import-actions #canva-import{display:inline-flex;align-items:center;justify-content:center;gap:10px}.cloud-import-actions .provider-icon{display:block;width:20px;height:20px;flex:0 0 20px;object-fit:contain}

.site-footer{gap:8px 18px;padding:12px 20px;line-height:1.6}.site-footer .footer-branding{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px}.site-footer .footer-divider{color:#65748a}.site-footer nav{gap:14px;padding-left:18px;border-left:1px solid #465063}.site-footer nav a{min-height:24px;align-items:center}.cloud-import-actions #canva-import .provider-icon{box-sizing:content-box;padding:8px;margin:-8px 0 -8px -8px}@media(max-width:700px){.site-footer{padding:12px 16px;gap:6px 14px}.site-footer .footer-branding{gap:3px 8px}.site-footer .footer-divider{display:none}.site-footer nav{border-left:0;padding-left:0}}

.cloud-connection-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #3a475c}.cloud-connection-row .profile-note{margin:6px 0 0}.cloud-connection-row button{flex-shrink:0;padding:10px 16px}@media(max-width:420px){.cloud-connection-row{gap:12px;align-items:flex-start}.cloud-connection-row button{font-size:13px;padding:9px 12px}}

.adobe-provider-icon{display:inline-grid;place-items:center;background:#ed2024;color:#fff;font-size:17px;font-weight:800;width:22px;height:22px;border-radius:4px;flex-shrink:0}.cloud-import-actions{flex-wrap:wrap}#adobe-library{display:block;width:100%;max-width:500px;margin:8px 0 12px;padding:10px;border:1px solid #44516a;border-radius:6px}#adobe-images .saved-item label{display:flex;gap:8px;align-items:center}#adobe-images .saved-item img{width:100%;object-fit:contain;height:150px}
.express-host-dialog{width:min(560px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #425270;border-radius:14px;background:#171e2b;color:#edf3ff;box-shadow:0 20px 70px #0009}.express-host-dialog::backdrop{background:#000b}.express-host-dialog h2{margin-top:0}.express-host-dialog p{font-size:14px;line-height:1.6}.express-result-preview{display:block;max-width:100%;max-height:42dvh;margin:12px auto;background-color:white;background-image:conic-gradient(#ccc 25%,#fff 0 50%,#ccc 0 75%,#fff 0);background-size:18px 18px}.express-host-dialog .dialog-actions{flex-wrap:wrap}[data-express-edit]:disabled{opacity:.5;cursor:not-allowed}

/* Artwork actions: a full-width editor action and a balanced management row. */
#saved-artwork{grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:18px}
#portal .saved-item>.library-add-button{display:flex;align-items:center;justify-content:center;min-height:42px;width:100%;padding:10px 14px;border:1px solid #4c8bdc;border-radius:9px;background:#1b477c;color:#eef6ff;font-size:13px;font-weight:600;line-height:1.35;white-space:normal;overflow-wrap:normal;transition:background .16s,border-color .16s,box-shadow .16s}
#portal .saved-item>.library-add-button:hover:not(:disabled){background:#245b9b;border-color:#75acff;box-shadow:0 3px 12px #0066ff24}
#portal .saved-manage,.card-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}
#portal .saved-manage button,.card-actions button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:40px;margin:0;padding:10px 12px;border:1px solid #46566d;border-radius:9px;background:#252f3e;color:#dbe7f8;font-size:12px;font-weight:600;line-height:1.4;text-align:center;white-space:normal;word-break:normal;overflow-wrap:normal;transition:background .16s,border-color .16s,box-shadow .16s}
#portal .saved-manage button:hover:not(:disabled),.card-actions button:hover:not(:disabled){background:#34445a;border-color:#7393be}
#portal .saved-manage .danger{color:#ffb5be;background:#382733;border-color:#764550}
#portal .saved-manage .danger:hover:not(:disabled){color:#ffd8dd;background:#50303d;border-color:#b46b7c}
#portal .saved-manage .express-edit-button,.card-actions .express-edit-button{grid-column:1/-1;min-height:46px;gap:9px;padding:11px 12px;background:linear-gradient(115deg,#302251,#24345b);border:1px solid #7366ac;color:#f1ecff;font-size:13px;font-weight:600}
#portal .saved-manage .express-edit-button:hover:not(:disabled),.card-actions .express-edit-button:hover:not(:disabled){background:linear-gradient(115deg,#44306d,#304777);border-color:#ac92ee;box-shadow:0 3px 14px #8558eb22}
#portal .saved-manage .express-button-logo,.card-actions .express-button-logo{display:block;flex:0 0 22px;width:22px;height:22px;max-width:none;object-fit:contain;margin:0;padding:0;border-radius:5px}
.express-button-label{display:block;min-width:0;max-width:100%;line-height:1.4;text-wrap:balance}
#portal .saved-manage button:focus-visible,.card-actions button:focus-visible{outline:2px solid #a8caff;outline-offset:3px}
#portal .saved-manage button:disabled,.card-actions button:disabled{opacity:.5;cursor:default;box-shadow:none}
@media(max-width:480px){#saved-artwork{grid-template-columns:minmax(0,1fr)}#portal .saved-manage button{font-size:13px;min-height:44px}}
#portal .saved-manage .photopea-edit-button,.card-actions .photopea-edit-button{background:linear-gradient(115deg,#163f42,#1f4055);border-color:#4e969a;color:#e4ffff}#portal .saved-manage .photopea-edit-button:hover:not(:disabled),.card-actions .photopea-edit-button:hover:not(:disabled){background:linear-gradient(115deg,#205958,#29546c);border-color:#79c9c9}.photopea-edit-button .express-button-logo[hidden]{display:none!important}
.photopea-dialog{position:fixed;inset:10px;width:calc(100vw - 20px);height:calc(100dvh - 20px);max-width:none;max-height:none;margin:0;padding:0;border:1px solid #3d5c70;border-radius:12px;background:#17202b;color:#edf6ff;overflow:hidden}.photopea-dialog[open]{display:flex;flex-direction:column}.photopea-dialog::backdrop{background:#030812d9}.photopea-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 16px;border-bottom:1px solid #415166;background:#1b2b39}.photopea-top>div{display:flex;align-items:center;gap:18px;min-width:0}.photopea-top strong{color:#91e2db;font-size:19px}.photopea-top [data-name]{color:#becddd;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photopea-top button{background:transparent;border:0;color:#edf6ff;font-size:25px;padding:4px 10px}.photopea-intro{max-width:650px;margin:auto;padding:30px}.photopea-intro p{color:#b9c9dc;font-size:15px;line-height:1.7}.photopea-dialog button{border-radius:7px;min-height:40px;padding:9px 14px}.photopea-stage{flex:1;min-height:0;overflow:hidden;background:#252525}.photopea-stage[hidden],.photopea-intro[hidden]{display:none}.photopea-stage iframe{display:block;border:0;width:100%;height:100%}.photopea-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 16px;border-top:1px solid #415166;background:#1b2b39}.photopea-bottom p{color:#c4d4e6;font-size:12px;line-height:1.5;margin:0}.photopea-bottom>div{display:flex;gap:8px;flex-shrink:0}.photopea-dialog button:disabled{opacity:.45;cursor:default}@media(max-width:650px){.photopea-dialog{inset:0;width:100vw;height:100dvh;border-radius:0}.photopea-top{padding:8px 10px}.photopea-bottom{flex-direction:column;align-items:stretch;padding:8px 10px;gap:8px}.photopea-bottom>div{justify-content:flex-end;flex-wrap:wrap}.photopea-bottom button{font-size:12px}.photopea-intro{padding:20px}}

.photopea-top .photopea-brand-logo{display:block;flex:0 0 26px;width:26px;height:26px;object-fit:contain;border-radius:5px}.photopea-top>div{gap:10px}

.library-mockup-button{display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid #537cae;border-radius:8px;min-height:42px;padding:10px 14px;color:#d9e9ff;background:#1b3554;text-decoration:none;line-height:1.3;font-size:14px}.library-mockup-button:hover{background:#254b76}.mockup-nav{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;text-align:center}.builder-header{gap:18px}.builder-header .portal-button{white-space:normal;line-height:1.3}
@media(max-width:850px){.builder-header{grid-template-areas:"brand account" "sheets library" "mockups mockups"}.builder-header>.mockup-nav{grid-area:mockups;width:100%}}

.site-header,.builder-header{position:sticky;top:44px;z-index:60}.site-header{height:auto;min-height:110px;gap:22px;padding:12px 28px;flex-wrap:wrap}.site-header>.brand{width:min(350px,40vw);height:78px;margin-right:auto;overflow:hidden}.site-header>.brand .brand-logo{width:100%;height:100%;object-fit:contain;aspect-ratio:auto}.site-header-links{display:flex;align-items:center;gap:10px}.site-header-links a{display:inline-flex;align-items:center;text-align:center;line-height:1.3;text-decoration:none}.site-header>.account-menu{flex-shrink:0}.site-header .account-menu summary{white-space:nowrap}.site-header .account-dropdown button{width:100%;text-align:left}@media(max-width:700px){.site-header{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 16px}.site-header>.brand{width:100%;max-width:250px;height:62px;margin:0}.site-header-links{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr}.site-header-links a{min-height:42px;font-size:13px;justify-content:center}.site-header>.account-menu{grid-column:2;grid-row:1}.site-header .account-menu>summary{font-size:13px}}
html:has(#mockup-root) .trial-banner,html:has(#mockup-root) .site-footer{display:none}html:has(#mockup-root){scroll-padding-top:90px}

/* Shared brand dimensions on every screen, including the detached studio. */
:root{--app-logo-width:420px;--app-logo-height:calc(var(--app-logo-width)/4.25)}
header.builder-header>.brand,header.site-header>.brand{width:var(--app-logo-width);max-width:none;height:var(--app-logo-height);min-width:0;flex:0 0 var(--app-logo-width);aspect-ratio:4.25;overflow:hidden}
header.builder-header>.brand .brand-logo,header.site-header>.brand .brand-logo{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;aspect-ratio:auto}
@media(max-width:1100px){header.builder-header,header.site-header{height:auto;display:flex;flex-wrap:wrap;gap:12px;padding:12px 16px}header.builder-header>.brand,header.site-header>.brand{margin-right:calc(100% - var(--app-logo-width));flex:0 0 var(--app-logo-width)}header.site-header .site-header-links{display:flex;flex-wrap:wrap}header.builder-header>.account-menu,header.site-header>.account-menu{margin-left:auto}}
@media(max-width:451px){:root{--app-logo-width:calc(100vw - 32px)}}

.storage-breakdown{margin:22px 0;overflow-x:auto}.storage-breakdown table{width:100%;border-collapse:collapse;font-size:14px}.storage-breakdown caption{text-align:left;font-weight:600;color:#e8efff;padding-bottom:12px}.storage-breakdown th,.storage-breakdown td{padding:12px 8px;border-bottom:1px solid #394b65;text-align:right;white-space:nowrap}.storage-breakdown th:first-child{text-align:left;white-space:normal}.storage-breakdown tbody th{font-weight:400;color:#c3d0e3}.storage-breakdown thead th{color:#98acc8;font-size:12px}

/* Independent profile columns keep shorter cards from leaving empty grid rows. */
.profile-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:start}.profile-column{display:flex;flex-direction:column;gap:24px;min-width:0}.profile-column>.profile-card{margin:0}.site-footer .footer-build{margin-left:auto;flex-shrink:0;text-align:right;font-size:11px;color:#94a8c2;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:850px){.profile-grid{grid-template-columns:1fr}.site-footer .footer-build{align-self:flex-end}}
html:has(#mockup-root) .site-footer{display:flex;justify-content:flex-end;border:0;background:transparent;padding:12px 20px}html:has(#mockup-root) .site-footer>.footer-branding,html:has(#mockup-root) .site-footer>nav{display:none}

.communications-main{max-width:1400px}.communications-tabs,.communications-actions{display:flex;gap:10px;flex-wrap:wrap}.communications-tabs button,.communications-actions button{padding:11px 15px;border-radius:8px}.communications-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.template-choice{display:block;width:100%;text-align:left;margin-bottom:8px!important;background:#23344d;color:#eff5ff;border:1px solid #455e7e}.template-choice[aria-pressed=true]{border-color:#6caaff;background:#244b7d}.template-choice small{display:block;font-size:11px;margin-top:7px;color:#b4c3da}.communications-main textarea,.communications-main select{width:100%;display:block;margin-top:8px;padding:12px;border:1px solid #4a5b73;border-radius:7px;background:#141b26;color:#f2f6ff;font:inherit}.template-enabled{display:flex!important;align-items:center;gap:10px}.template-enabled input{width:18px!important;margin:0!important}.email-preview{width:100%;min-height:650px;border:1px solid #4a5b73;background:white;margin-top:24px;border-radius:8px}.communication-item{padding:22px 0;border-top:1px solid #394b65}.communication-item-heading{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.communication-item-heading span{color:#a7b7cf;font-size:12px}.communication-item .feedback-message{white-space:pre-wrap;color:#eef3fb}.communication-item button{padding:10px 15px}@media(max-width:850px){.communications-grid{grid-template-columns:1fr}.communications-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:8px}.communications-grid>aside h2{grid-column:1/-1}.communications-main{padding:28px 16px}}

.sandbox-banner{height:36px;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px 12px;background:#754b00;color:#fff4cd;font-size:12px;font-weight:700;position:sticky;top:0;z-index:120}html[data-environment=sandbox] .trial-banner{top:36px}html[data-environment=sandbox] .site-header,html[data-environment=sandbox] .builder-header{top:80px}html[data-environment=sandbox] .mockup-app .mk-top{top:36px}

/* Owner insights */
.activity-panel{padding:28px;min-width:0}.activity-heading,.activity-navigation,.activity-history-heading,.activity-settings-row{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.activity-heading h2{margin:6px 0!important;font-size:23px}.activity-heading p{margin:0}.activity-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;color:#8dbfff}.activity-panel button{font:inherit;font-size:13px;border:1px solid #4d6d95;background:#214570;color:#eef5ff;cursor:pointer;white-space:normal;line-height:1.4}.activity-panel button:hover{background:#2c5688}.activity-panel button:focus-visible,.activity-panel summary:focus-visible,.activity-panel select:focus-visible{outline:2px solid #8dc5ff;outline-offset:3px}.activity-panel .activity-secondary{background:#253348}.activity-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.activity-overview>div{display:flex;align-items:center;gap:12px;border:1px solid #354b67;background:#182333;border-radius:11px;padding:18px}.activity-overview strong{font-size:27px;color:#f3f7ff;font-variant-numeric:tabular-nums}.activity-overview span{font-size:13px;color:#d5e1f2}.activity-overview small{display:block;font-size:11px;color:#9db1cd;margin-top:5px;line-height:1.5}.activity-dot{display:inline-block;width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#66d9ad;box-shadow:0 0 0 3px #66d9ad12;margin-right:5px}.activity-badge{display:inline-block;align-self:start;font-size:11px!important;padding:4px 9px;border-radius:20px;background:#293e5c;color:#c5dcff!important;white-space:nowrap}.activity-badge.is-success{background:#163e35;color:#9de6c7!important}.activity-badge.is-error{background:#4e302b;color:#ffd0b9!important}.activity-navigation{border-bottom:1px solid #35465d;padding-bottom:15px}.activity-tabs{display:flex;gap:6px;flex-wrap:wrap}.activity-tabs button{background:transparent;border-color:transparent;color:#b7c7dd}.activity-tabs button[aria-pressed=true]{background:#264e7c;border-color:#6497d1;color:#fff}.activity-updated,.activity-history-heading>span{color:#9fb3cf;font-size:11px}.activity-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.activity-filters label{margin:0!important;min-width:150px;flex:1;font-size:12px!important}.activity-filters label:first-child{flex:2;min-width:200px}.activity-filters input,.activity-filters select{box-sizing:border-box;width:100%;min-height:44px;background:#141e2c;border:1px solid #4a6181;border-radius:7px;color:#eef5ff;font:inherit;font-size:14px;padding:10px 12px;display:block;margin-top:7px;color-scheme:dark}.activity-users{display:grid;gap:10px;margin:16px 0}.activity-user{display:flex;align-items:center;gap:14px;padding:18px;background:#19283b;border:1px solid #3b526e;border-radius:10px;min-width:0}.activity-avatar{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#304d73;border-radius:50%;color:#dbeaff;font-weight:700}.activity-user-info{min-width:0;flex:1}.activity-user-info>strong,.activity-user-info>span{display:block;overflow-wrap:anywhere}.activity-user-info>span{font-size:12px;color:#9fb5d3;margin-top:4px}.activity-user-info p{margin:9px 0 0;font-size:12px}.activity-user-action{text-align:right;flex-shrink:0}.activity-user-action time{display:block;font-size:11px;color:#a9bed8;margin-bottom:8px}.activity-user-action button{padding:7px 11px}.activity-empty{text-align:center;padding:35px 16px;background:#162130;border:1px dashed #3c5370;border-radius:10px;margin:16px 0}.activity-empty strong{color:#dce8f8}.activity-empty p{margin:9px auto 0;max-width:460px;font-size:13px}.activity-history-heading h3{margin:10px 0 0;font-size:16px}.activity-event{display:flex;align-items:start;gap:13px;padding:19px 0;border-bottom:1px solid #34465e}.activity-event-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#213c50;color:#a7d9e4;flex-shrink:0}.activity-event-icon.is-error{background:#4e302b;color:#ffd0b9}.activity-event-body{min-width:0;flex:1}.activity-event-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:14px}.activity-event-body>p{font-size:12px;margin:7px 0;overflow-wrap:anywhere}.activity-event time{font-size:11px;color:#a8b9d0;flex-shrink:0;margin-top:5px}.activity-event details{font-size:12px;color:#9fb4d1;margin-top:10px}.activity-event summary{cursor:pointer;max-width:max-content}.activity-event code{display:block;overflow-wrap:anywhere;white-space:pre-wrap;color:#bfcee2;background:#141e2c;padding:10px;margin-top:10px;border-radius:5px}.activity-event details p{font-size:12px;margin-bottom:0}.activity-load-more{display:block;margin:20px auto}.activity-settings{margin-top:24px;border-top:1px solid #3b4f6b;padding-top:18px}.activity-settings>summary{cursor:pointer;font-size:13px;color:#bdd4f2}.activity-settings-row{margin-top:20px}.activity-settings-row h3{font-size:15px;margin:0}.activity-settings-row p{margin:7px 0;font-size:13px}.activity-settings .profile-note{max-width:850px}@media(max-width:900px){.activity-overview{grid-template-columns:1fr}.activity-overview>div{padding:14px}.activity-panel{padding:20px}}@media(max-width:550px){.activity-user{flex-wrap:wrap}.activity-user-action{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left}.activity-user-action time{margin:0}.activity-event{flex-wrap:wrap}.activity-event>time{margin-left:42px}.activity-tabs{width:100%}.activity-tabs button{flex:1}.activity-filters label,.activity-filters label:first-child{min-width:100%;box-sizing:border-box}.activity-heading h2{font-size:20px}}

/* Local vector tracing and AI image enlargement */
.enhance-dialog{width:min(1250px,96vw);max-width:96vw;max-height:94dvh;margin:auto;padding:0;border:1px solid #547298;border-radius:16px;background:#1b2738;color:#edf3ff;box-shadow:0 24px 100px #000a;overflow:auto}.enhance-dialog::backdrop{background:#080e18d9}.enhance-dialog button,.enhance-dialog select,.enhance-dialog input{font:inherit;font-size:14px}.enhance-dialog button{border:1px solid #527baa;border-radius:8px;background:#224b7e;color:#f1f6ff;padding:11px 16px;cursor:pointer;line-height:1.4;white-space:normal}.enhance-dialog button:disabled{opacity:.45;cursor:default}.enhance-dialog button:focus-visible,.enhance-dialog summary:focus-visible{outline:2px solid #88bfff;outline-offset:3px}.enhance-header{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:24px 28px;border-bottom:1px solid #3f536d}.enhance-header h2{margin:6px 0;font-size:24px}.enhance-header p{margin:0;color:#a6bddb;font-size:13px;overflow-wrap:anywhere}.enhance-eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.12em;color:#79b7ff}.enhance-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);gap:26px;padding:26px}.enhance-preview{min-width:0;align-self:start;position:sticky;top:16px}.enhance-preview-tabs{display:flex;gap:8px;margin-bottom:12px}.enhance-preview-tabs button[aria-pressed=true]{background:#3371b8;border-color:#9ac5ff}.enhance-image{height:440px;max-height:52vh;background:repeating-conic-gradient(#d0d8e1 0% 25%,#e9edf3 0% 50%) 50%/24px 24px;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:18px;overflow:hidden}.enhance-image img{max-width:100%;max-height:100%;object-fit:contain}.enhance-preview>p{font-size:12px;color:#b2c6e1;line-height:1.6}.enhance-controls{min-width:0}.enhance-controls h3{font-size:17px;margin:0 0 10px}.enhance-controls p{font-size:13px;line-height:1.65;color:#c2d1e5}.enhance-note{font-size:12px!important;color:#9db4d2!important;line-height:1.6}.enhance-tool{border:1px solid #3e5675;background:#182337;padding:18px;border-radius:12px;margin-bottom:15px}.enhance-dialog label{display:block;color:#c6d5e9;font-size:13px;margin:14px 0}.enhance-dialog input,.enhance-dialog select{display:block;box-sizing:border-box;width:100%;background:#101c2b;color:#eff5ff;padding:10px;margin-top:7px;border:1px solid #536e8f;border-radius:7px;color-scheme:dark}.enhance-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.enhance-actions{display:flex;gap:10px;flex-wrap:wrap}.enhance-status{padding:10px 26px;border-top:1px solid #3f536d;background:#142239}.enhance-status p{font-size:13px;line-height:1.6}.enhance-status progress{display:block;width:100%;margin:12px 0;accent-color:#68aaff}.enhance-status progress[hidden],.enhance-status button[hidden]{display:none}.enhance-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:22px 26px}.enhance-footer>span{font-size:12px;color:#a5bad5;max-width:330px;line-height:1.6}.enhance-controls details{font-size:12px;color:#a8c1e3}.enhance-controls details summary{cursor:pointer}.enhance-controls a{color:#8cbfff}.library-enhance-button{width:100%;border:1px solid #6487b2;background:#24405f;color:#d7e9ff;padding:12px;border-radius:8px;font:inherit;font-size:13px;line-height:1.4}@media(max-width:760px){.enhance-body{grid-template-columns:1fr;padding:16px;gap:16px}.enhance-preview{position:static}.enhance-image{height:250px}.enhance-header,.enhance-footer{padding:18px}.enhance-header h2{font-size:20px}.enhance-footer .enhance-actions{width:100%}.enhance-footer button{flex:1}}

.release-build{display:grid;grid-template-columns:1fr 2fr;gap:16px;margin:20px 0}.release-build>div{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #425d7e;border-radius:10px;background:#16283c}.release-build small{color:#9fbbdd}.release-build strong{font-size:19px;color:#e9f3ff}.release-build span,.release-build code{font-size:12px;color:#b5cbe7;overflow-wrap:anywhere}.release-latest,.release-setup{margin-top:22px;border-top:1px solid #3d5370;padding-top:18px}.release-setup summary{cursor:pointer;color:#c2d9fa}.release-setup form>button{margin:6px 10px 6px 0}.release-panel .admin-section-heading h2{margin-top:8px}.release-panel code{overflow-wrap:anywhere}@media(max-width:600px){.release-build{grid-template-columns:1fr}.release-panel button{max-width:100%;white-space:normal}}
