:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial;background:#f6f7fa;color:#1d2838;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}.auth-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(140deg,#eef2fc,#f6f7fa 55%,#f4edf7)}.auth-card{background:white;max-width:440px;width:calc(100% - 30px);padding:42px;border-radius:20px;box-shadow:0 16px 56px #17223a13}.auth-card h1{font-size:24px;margin:16px 0 6px}.auth-card h1 span{font-weight:400;color:#69768a}.auth-card p{color:#7b8798;margin-bottom:25px}.auth-card small{display:block;color:#8b97a5;text-align:center;margin-top:20px}.brandmark{width:40px;height:40px;background:#5569d9;border-radius:11px;display:grid;place-items:center;color:white;font-size:27px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:236px;background:#fff;border-right:1px solid #e9ecf1;padding:29px 14px;display:flex;flex-direction:column;z-index:4}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 32px;font-size:17px;font-weight:780;letter-spacing:-.5px}.brand small{display:block;font-size:10px;letter-spacing:1.8px;color:#8b95a6;font-weight:700;margin-top:4px}.sidebar nav{display:grid;gap:5px}.nav{width:100%;padding:13px 15px;border:0;background:transparent;border-radius:10px;text-align:left;display:flex;align-items:center;gap:13px;color:#667286;font-weight:600}.nav.active{background:#edf0ff;color:#485ece}.nav:hover{background:#f4f5fc}.sidebar-bottom{margin-top:auto;display:grid;gap:10px;padding:12px;color:#8490a1;font-size:12px;overflow-wrap:anywhere}.logout{border:1px solid #e3e6ee;background:white;border-radius:8px;padding:10px;color:#344054;text-align:left}.main{margin-left:236px;max-width:1660px;padding:0 37px 80px}.topbar{padding:32px 0 25px;display:flex;justify-content:space-between;align-items:center}.topbar h1{font-size:26px;letter-spacing:-.8px;margin:9px 0 0}.eyebrow{color:#8a95a7;letter-spacing:1.6px;font-size:10px;font-weight:750}.top-info{background:white;border:1px solid #e8ebf2;color:#7e8c9c;padding:10px 14px;border-radius:9px;font-size:11px}.steps{display:flex;gap:0;background:white;border:1px solid #e6eaf0;border-radius:13px;overflow:hidden;margin-bottom:28px}.step{flex:1;background:white;border:0;border-right:1px solid #edf0f3;color:#98a1ae;text-align:left;padding:18px 20px;font-weight:650;white-space:nowrap}.step:last-child{border:0}.step b{display:inline-grid;place-items:center;margin-right:9px;border-radius:8px;background:#f3f4f8;color:#a3acb7;width:29px;height:29px}.step.current,.step.done{color:#4b5cc7;background:#f7f8ff}.step.current b,.step.done b{background:#566ad7;color:white}.section-heading{margin:0 0 20px}.section-heading h2{font-size:22px;letter-spacing:-.5px;margin:0 0 5px}.section-heading p,.muted{color:#8490a0}.section-heading p{margin:0}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product{background:white;border:1px solid #e5e9f0;border-radius:13px;padding:30px 20px;display:flex;flex-direction:column;gap:10px;text-align:left}.product.selected{border:2px solid #566ad7;background:#fdfdff;padding:29px 19px}.product-emoji{font-size:47px;text-align:center;padding:16px 0 26px}.product strong{font-size:15px}.product small{color:#8a94a4}.panel{border:1px solid #e6eaf0;background:white;padding:23px;border-radius:14px;min-width:0}.form-flex{margin-top:18px;display:flex;align-items:end;justify-content:space-between;gap:18px}.form-flex label{max-width:400px;flex:1}.two-col{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:18px}.panel h3{font-size:16px;margin:0 0 17px}.panel-title{font-weight:750;margin-bottom:14px}label{display:grid;gap:8px;font-size:12px;font-weight:700;color:#586476;margin-bottom:16px}input:not([type=checkbox]):not([type=range]),select,textarea{width:100%;background:white;border:1px solid #dfe4ec;border-radius:9px;padding:12px;color:#283448;outline:0}input:focus,select:focus,textarea:focus{border-color:#7485e2;box-shadow:0 0 0 3px #7282db15}textarea{resize:vertical;line-height:1.5}.auth-card label{margin-bottom:17px}.group-label{margin:0 0 10px;font-size:10px;letter-spacing:1.5px;color:#8994a6}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.chip{background:#fff;border:1px solid #e1e6ee;color:#6d798a;padding:9px 12px;border-radius:8px;font-size:12px;font-weight:600}.chip.active{background:#edf0ff;color:#4b5fc8;border-color:#9daced}.primary,.outline{border-radius:9px;padding:12px 16px;border:1px solid #596ed9;background:#596ed9;color:white;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none}.outline{background:white;color:#4e6079;border-color:#dfe4ec}.primary:hover{background:#475bc6}.outline:hover{background:#f6f8fb}.wide{width:100%}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.spaced{justify-content:space-between}.file-btn{cursor:pointer}.tiny{font-size:11px}.checker{background-color:#fff;background-image:linear-gradient(45deg,#f0f1f5 25%,transparent 25%),linear-gradient(-45deg,#f0f1f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0f1f5 75%),linear-gradient(-45deg,transparent 75%,#f0f1f5 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;min-height:320px;display:grid;place-items:center;border-radius:12px;border:1px solid #e2e5ed;overflow:hidden}.checker img{max-width:100%;max-height:360px;object-fit:contain}.checker #artEmpty{text-align:center;font-size:58px;color:#b7c0d1}.checker #artEmpty small{font-size:12px;display:block}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.editor-tools{display:flex;justify-content:space-between;gap:10px;font-weight:700;padding-bottom:20px}.canvas-wrap{display:grid;place-items:center;background:#edf0f5;border-radius:11px;min-height:340px;overflow:hidden;padding:20px}.canvas-wrap canvas{max-width:100%;height:auto;box-shadow:0 5px 20px #19243b20;background:white;touch-action:none;cursor:grab}.settings-panel{height:max-content}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:12px;font-weight:550}.check input{accent-color:#596ed9}.mockup-wrap{min-height:280px}.mockup-wrap canvas{max-height:420px}.export-line{display:flex;align-items:center;border-top:1px solid #eceff4;padding:18px 0;gap:13px}.export-line>div{flex:1}.export-line small{display:block;margin-top:4px;color:#919baa}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:15px}.library-card{background:white;padding:12px;border:1px solid #e5e9ef;border-radius:12px}.library-card img{width:100%;height:160px;object-fit:contain;background:repeating-conic-gradient(#f3f4f7 0% 25%,#fff 0% 50%) 50% / 20px 20px;border-radius:9px}.library-card strong{display:block;margin:11px 2px 5px;overflow-wrap:anywhere}.library-card small{color:#8290a1}.library-card .actions{margin-top:12px}.library-card button{font-size:12px;padding:8px 9px}.settings-card{max-width:550px}#toast{position:fixed;bottom:24px;right:24px;z-index:12;background:#23314a;color:white;border-radius:9px;padding:13px 18px;max-width:380px;display:none;box-shadow:0 8px 26px #0002}@media(max-width:1080px){.product-grid{grid-template-columns:repeat(2,1fr)}.editor-grid,.two-col{grid-template-columns:1fr}.top-info{display:none}}@media(max-width:700px){.sidebar{width:100%;height:65px;bottom:auto;flex-direction:row;align-items:center;padding:10px;overflow-x:auto}.brand{padding:0 12px;font-size:12px}.brand small,.sidebar-bottom{display:none}.sidebar nav{display:flex}.nav{width:auto;padding:10px;font-size:18px}.nav span{display:none}.main{margin:65px 0 0;padding:0 15px 40px}.topbar{padding:23px 0}.steps{overflow-x:auto}.step{flex:0 0 auto;font-size:11px;padding:10px}.step b{width:20px;height:20px}.product-grid{gap:9px}.product{padding:16px 10px}.product.selected{padding:15px 9px}.product-emoji{font-size:30px}.form-flex{flex-direction:column;align-items:stretch}.form-flex label{max-width:none;width:100%}.panel{padding:15px}}

/* Account-scoped API key removal confirmation */
.key-confirm-overlay{position:fixed;inset:0;background:rgba(22,28,41,.55);display:flex;align-items:center;justify-content:center;padding:20px;z-index:9999}
.key-confirm-dialog{background:#fff;border-radius:16px;box-shadow:0 24px 64px rgba(17,24,39,.22);padding:26px;max-width:440px;width:100%}
.key-confirm-dialog h3{margin:0 0 10px;font-size:19px}
.key-confirm-dialog p{margin:0;color:#5e6676;line-height:1.6;font-size:14px}
.key-confirm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}
.key-remove-danger{border:0;border-radius:9px;background:#b42318;color:#fff;padding:11px 17px;font-weight:650;cursor:pointer}
.key-remove-danger:hover{background:#912018}

.product-default-panel{margin-bottom:18px}.product-default-panel h3{margin-bottom:4px}.product-default-panel p{margin:0 0 20px}.product-default-panel form{max-width:630px}.product-default-header{display:flex;justify-content:space-between}

.studio-dialog-input{width:100%;margin-top:18px;padding:12px;border:1px solid #dfe4ec;border-radius:9px;font:inherit}
.studio-dialog-input:focus{outline:2px solid #8595e8;outline-offset:1px}

.mockup-upload-progress{margin-top:14px;padding:14px;background:#f7f8fd;border:1px solid #e1e6f5;border-radius:10px;font-size:12px;font-weight:650;color:#4e6079}.mockup-upload-progress progress{display:block;width:100%;height:12px;margin-top:9px;accent-color:#586bd8;border-radius:10px;overflow:hidden}.mockup-upload-progress progress::-webkit-progress-bar{background:#e7eaf5;border-radius:10px}.mockup-upload-progress progress::-webkit-progress-value{background:#586bd8;border-radius:10px;transition:width .15s}

/* Product dimensions are editable directly from each selection tile. */
.product-tile{position:relative;min-width:0;background:#fff;border:1px solid #e5e9f0;border-radius:13px;overflow:hidden;display:flex;flex-direction:column}
.product-tile:has(.product.selected){border-color:#566ad7;box-shadow:0 0 0 1px #566ad7}
.product-tile .product,.product-tile .product.selected{border:0;border-radius:0;padding:29px 20px 17px;flex:1;width:100%;background:transparent}
.product-tile .product.selected{box-shadow:none}
.product-edit{display:flex;justify-content:center;align-items:center;gap:6px;width:100%;border:0;border-top:1px solid #edf0f5;background:#fafbfe;padding:11px 12px;font-size:12px;font-weight:700;color:#5367b5}
.product-edit:hover,.product-edit:focus-visible{background:#edf0ff;color:#394ca8}
.product-tile .product small{line-height:1.5}
@media(max-width:700px){.product-tile .product,.product-tile .product.selected{padding:15px 10px}.product-edit{font-size:11px;padding:10px 5px}}

/* Compact product cards and subtle editable dimensions */
.product-tile{background:transparent;border:0;overflow:visible;position:relative;display:block}
.product-tile:has(.product.selected){border:0;box-shadow:none}
.product-tile .product,.product-tile .product.selected{border:1px solid #e5e9f0;border-radius:13px;padding:28px 20px 43px;min-height:226px;background:#fff;display:flex;width:100%;box-sizing:border-box}
.product-tile .product.selected{border:2px solid #566ad7;padding:27px 19px 42px;background:#fdfdff}
.product-edit{position:absolute;bottom:12px;left:18px;width:auto;border:0;background:transparent;padding:6px 7px;color:#6b78a0;font-size:11px;border-radius:7px;display:inline-flex;gap:4px}
.product-edit:hover{background:#edf0ff}
.mock-file-field{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:16px}
.mock-file-title{font-size:12px;font-weight:700;color:#586476}
.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
.mock-choose-btn{cursor:pointer;margin:0;padding:10px 14px;display:inline-flex}
.mock-upload-preview{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid #e3e8f2;border-radius:12px;margin-bottom:16px;background:#fafbfe}
.mock-upload-preview[hidden]{display:none!important}
.mock-upload-preview img{width:125px;height:95px;object-fit:contain;border-radius:7px;background:#fff;border:1px solid #e8ecf3}
.mock-upload-preview strong,.mock-upload-preview small{display:block;margin-bottom:5px;overflow-wrap:anywhere}
@media(max-width:700px){.product-tile .product,.product-tile .product.selected{min-height:180px;padding:15px 10px 40px}.product-edit{bottom:9px;left:5px}}

.area-copy-actions{display:grid;gap:8px;margin:11px 0}.area-copy-actions .outline{font-size:12px;padding:10px 12px;white-space:normal;text-align:center}

/* 2026-10-19: source selector, custom upload buttons, cost estimate, and start-over controls */
.create-utility-bar{display:flex;justify-content:flex-end;margin:-10px 0 18px}.art-source-switch{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.source-btn{border:1px solid #dfe4ec;background:#fff;color:#516174;border-radius:10px;padding:10px 14px;font-weight:700}.source-btn.active{background:#edf0ff;border-color:#9daced;color:#4b5fc8}.file-pick-stack{display:grid;gap:8px;margin:16px 0}.file-picker{justify-self:start}.cost-estimate{margin-top:16px;padding:12px 14px;border-radius:12px;background:#f7f8fc;border:1px solid #e4e8f1;color:#47566d;display:grid;gap:4px}.cost-estimate strong{font-size:17px;color:#23314a}.cost-estimate span,.cost-estimate small{color:#778396}.product-tile .product,.product-tile .product.selected{padding-bottom:28px;min-height:0}.product-edit{display:none!important}.create-utility-bar .outline{min-width:128px}.mock-file-field .outline,.file-picker{cursor:pointer}.file-picker input{display:none}@media(max-width:700px){.create-utility-bar{justify-content:stretch}.create-utility-bar .outline{width:100%}}
.delete-preset-button:not(:disabled){border-color:#edcfcc;color:#ac3840;background:#fff}.delete-preset-button:not(:disabled):hover{background:#fff4f4}

.psd-buttons{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.psd-buttons .outline{font-size:12px;padding:10px}.export-line:has(.psd-buttons){align-items:center}@media(max-width:720px){.export-line:has(.psd-buttons){flex-wrap:wrap}.psd-buttons{width:100%}}

/* 2026-10-19 actual-cost + manage preset */
.generation-cost-card{margin-top:14px;padding:14px 16px;border:1px solid #e4e8f1;background:#f8fafc;border-radius:14px;display:grid;gap:4px}.generation-cost-card[hidden]{display:none!important}.cost-kicker{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#72809a}.cost-main{font-size:24px;font-weight:800;color:#24324d}.cost-sub{font-size:12px;line-height:1.45;color:#68758b}.preset-manage-dialog .preset-manage-actions{display:grid;gap:10px;margin-top:10px}.preset-manage-dialog .preset-manage-actions .outline[disabled]{opacity:.45;cursor:not-allowed}
.generation-model-field{margin-top:17px}.generation-model-field label{margin-bottom:0}

.generation-model-field{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.generation-model-field label{min-width:0}@media(max-width:620px){.generation-model-field{grid-template-columns:1fr}}
