:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;color:var(--ink);background:var(--page);color-scheme:light;--page:#f6f7f3;--green:#36563b;--ink:#2e3e32;--muted:#81907c;--line:#e4e9de;--soft:#eff4e7;--lime:#dcedb6;--paper:#fff;--amber:#9c793c}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;object-fit:cover}h1,h2,h3,h4,p{margin:0}input,textarea,select{min-width:0}button:disabled,input:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a9bf88;outline-offset:3px}svg.lucide{width:18px;height:18px;stroke-width:1.65;flex-shrink:0;vertical-align:middle}[hidden]{display:none!important}::selection{background:#dcebbb}
.boot{min-height:75vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}.boot img{width:44px;height:44px}.layout{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;padding:33px 25px 18px;display:flex;flex-direction:column;background:#fafbf7;border-right:1px solid var(--line);z-index:20}.brand{display:flex;align-items:center;gap:12px;font-size:28px;letter-spacing:3px;color:#45623b;font-weight:600}.brand img{width:43px;height:43px}.brand small{display:block;font-size:8px;letter-spacing:2.5px;margin-top:5px;font-weight:400;color:#99a588}.workspace-label{display:flex;align-items:center;gap:9px;border:1px solid #e4eacf;background:#f1f5e9;border-radius:7px;padding:11px 12px;font-size:10px;color:#8c9a75;margin:29px 0 31px}.workspace-label svg{width:14px;height:14px}.nav-caption{font-size:9px;color:#a1ac98;letter-spacing:1.8px;padding:0 12px;margin-bottom:12px}.navigation{display:flex;flex-direction:column;gap:5px}.navigation button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 14px;border-radius:8px;color:#8b9980;font-size:12px}.navigation button:hover{background:#f0f4e8}.navigation button.active{background:#e8f0d9;color:#4e6b3c;font-weight:600}.navigation button b{width:5px;height:5px;border-radius:50%;background:#749454;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:26px}.rail-card{padding:18px 15px;border:1px solid #e0e8d4;border-radius:11px;background:linear-gradient(130deg,#eef4e5,#f5f8ef)}.tiny-label{display:block;color:#8c9e79;font-size:9px;letter-spacing:1px}.rail-card h3{font-size:12px;font-weight:500;line-height:1.9;margin-top:11px;color:#647c51}.rail-card>strong{display:block;font-size:30px;line-height:1;margin:18px 0 12px;font-weight:500;color:#5c7844}.rail-card strong small{font-size:10px;color:#90a277;font-weight:400;margin-left:9px}.rail-card p{font-size:9px;line-height:1.9;color:#91a37b;margin-bottom:15px}.rail-card .text-button{font-size:10px}.account-chip{display:flex;align-items:center;gap:11px;width:100%;padding:22px 0 14px;border-bottom:1px solid var(--line);text-align:left}.avatar{height:33px;width:33px;border-radius:50%;display:grid;place-items:center;background:#e4eccf;color:#65804d;font-size:12px;flex-shrink:0}.avatar.large{width:46px;height:46px;font-size:18px}.account-chip b{font-size:11px;font-weight:500;display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis}.account-chip small{display:block;font-size:8px;color:#9aaa8b;margin-top:5px}.account-chip>svg{margin-left:auto;width:13px;color:#a4b092}.privacy-link{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:9px;color:#98a58a}.privacy-link svg{width:11px;height:11px}
.main{margin-left:244px;min-height:100vh}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 39px;border-bottom:1px solid var(--line);background:#fafbf8;gap:20px}.breadcrumb{display:flex;align-items:center;gap:18px;font-size:11px;color:#a5af9b}.breadcrumb b{color:#728467;font-weight:500}.top-actions{display:flex;align-items:center;gap:20px}.top-actions .text-button{font-size:11px}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:20px;font-size:9px;border:1px solid var(--line);color:#94a384;background:#f6f9ef}.status-pill i{width:5px;height:5px;border-radius:50%;background:currentColor}.status-pill.good{color:#738b54;border-color:#dce5cc}.status-pill.warm{color:#aa9060;background:#fcf8ec;border-color:#ede4cd}.mobile-brand,.mobile-account,.mobile-nav{display:none}.content{max-width:1530px;padding:32px 39px 30px;margin:0 auto;min-height:calc(100vh - 133px)}.page-footer{display:flex;justify-content:space-between;gap:15px;padding:16px 39px 23px;color:#a7b09b;font-size:9px;letter-spacing:.6px}.eyebrow{font-size:9px;letter-spacing:2.2px;color:#9bab89;margin-bottom:10px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{font-size:28px;font-weight:500;letter-spacing:-.8px;line-height:1.45}.subheading{font-size:11px;line-height:1.9;color:#8b9980;margin-top:9px}.heading-actions{display:flex;gap:10px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;font-size:12px;font-weight:500;line-height:1.55;border-radius:8px;border:1px solid var(--line);background:#fff;white-space:nowrap}.button:hover{background:#f2f6ec}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:#456a46}.button.lime{background:var(--lime);border-color:var(--lime);color:#425b32}.button.danger{color:#ac6453;border-color:#ead8ce}.button.small{font-size:10px;padding:6px 10px}.button.full{width:100%}.button.big{padding:14px 20px;font-size:13px}.text-button{display:inline-flex;align-items:center;gap:6px;color:#75945c;font-size:11px;line-height:1.8;padding:2px 0}.text-button:hover{text-decoration:underline}.text-button.danger{color:#b16f5c}.text-button.center{align-self:center}.icon-button{padding:8px;display:inline-flex;justify-content:center;align-items:center;border-radius:7px;color:#91a07f}.icon-button:hover{background:#f0f4e9}.muted{font-size:12px;color:var(--muted);line-height:1.9}.fine{font-size:10px;color:#95a28c;line-height:1.9}.fine a,.check a{color:#628349;text-decoration:underline}.notice{display:flex;align-items:flex-start;gap:10px;padding:13px 16px;background:#f0f5e7;border:1px solid #e0e8d1;border-radius:8px;color:#879875;font-size:11px;line-height:1.9;margin-bottom:23px}.notice svg{width:16px;height:16px;margin-top:3px}.notice.warm{background:#fbf7ed;border-color:#ede5d0;color:#a38b5f}.notice .text-button{margin-left:auto;flex-shrink:0}.notice>div{min-width:0}.panel{border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden;min-width:0}.panel-head{padding:19px 23px;border-bottom:1px solid #edf0e7;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-head h2{font-size:14px;font-weight:500;color:#52684a}.panel-head p{font-size:10px;color:#96a48a;line-height:1.9;margin-top:5px}.panel-body{padding:23px}.panel-footer{padding:14px 23px;border-top:1px solid var(--line);font-size:10px;color:#96a28b;line-height:1.8;display:flex;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:18px}.field{display:flex;flex-direction:column;gap:9px;min-width:0}.field>span{font-size:11px;font-weight:500;color:#768c61}.field>input,.field>textarea,.field>select,.input{width:100%;border:1px solid #dfe7d6;border-radius:7px;background:#fbfcf8;padding:11px 12px;font-size:12px;line-height:1.6;outline:none;transition:border-color .15s}.field>input:focus,.field>textarea:focus,.field>select:focus,.input:focus{border-color:#9bb47c;box-shadow:0 0 0 3px #adbf9020}.field>textarea{resize:vertical;min-height:110px}.field>small{font-size:10px;color:#98a68a;line-height:1.8}.field input::placeholder,.field textarea::placeholder,.input::placeholder{color:#a9b49e}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.span2{grid-column:1/-1}.form-actions{padding-top:18px;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;justify-content:flex-end}.form-actions .fine{margin-right:auto;max-width:390px}.check{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#7f9370;line-height:1.9}.check input{accent-color:#6f8b53;margin-top:4px;flex-shrink:0}.two-column{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);gap:22px;align-items:start}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat{padding:20px 21px;border:1px solid var(--line);border-radius:10px;background:#fff;position:relative}.stat>span{font-size:10px;color:#98a68a;display:block}.stat>strong{font-size:30px;font-weight:500;display:block;margin:12px 0 5px;color:#526f41}.stat>small{font-size:9px;color:#a3ad97;line-height:1.6;display:block}.stat>svg{position:absolute;right:20px;top:19px;width:17px;height:17px;color:#a4b78b}
.studio-grid{display:grid;grid-template-columns:minmax(340px,1fr) minmax(280px,.93fr);gap:24px;align-items:stretch;margin-bottom:32px}.composer{display:flex;flex-direction:column}.composer .panel-body{display:flex;flex-direction:column;gap:20px;padding:24px}.composer-title{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:500}.composer-title>svg{color:#8ca96b}.version-caption{display:flex;align-items:center;justify-content:space-between;gap:10px}.version-caption span{color:#9baa8d;font-size:10px}.balance-tag{font-size:11px;color:#799454;font-weight:500}.balance-tag b{font-size:16px;margin-right:3px;font-weight:500}.prompt-input{min-height:135px!important;padding:14px!important;line-height:1.95!important;background:#fcfdf9!important}.upload-slot{border:1px dashed #d1ddc2;background:#f6f9ef;border-radius:8px;padding:14px;display:flex;align-items:center;gap:12px}.upload-slot>svg{color:#a0b386;width:24px;height:24px}.upload-slot>div{flex:1;min-width:0}.upload-slot strong{font-size:11px;font-weight:500;color:#7d9465;display:block;margin-bottom:4px}.upload-slot input{font-size:10px;max-width:100%;color:#8c9c7c}.upload-slot input::file-selector-button{background:#e7efda;border:0;border-radius:4px;padding:5px 8px;color:#718a55;margin-right:6px;font:inherit;cursor:pointer}.reference-thumb{height:62px;width:62px;object-fit:cover;border-radius:5px}.creation-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:2px}.creation-bottom p{font-size:10px;color:#9ba98a}.creation-bottom b{font-weight:500;color:#6d864f}.creative-note{display:flex;align-items:center;justify-content:center;gap:7px;font-size:9px;color:#a1ac95;padding:1px 0 0}.creative-note svg{width:12px;height:12px}.canvas-panel{position:relative;background:#e9eee2;border:1px solid #e0e7d8;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-height:490px}.canvas-panel>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.canvas-caption{position:absolute;inset:auto 0 0;padding:45px 24px 21px;background:linear-gradient(transparent,#1e3128b8);color:#fff;z-index:1}.canvas-caption>span{font-size:9px;letter-spacing:1px;color:#e3e9db}.canvas-caption h3{font-size:18px;font-weight:500;margin:7px 0}.canvas-caption p{font-size:10px;line-height:1.9;color:#e2e9d8}.canvas-label{position:absolute;top:18px;left:18px;padding:6px 10px;border-radius:5px;background:#fffffff0;backdrop-filter:blur(8px);font-size:9px;color:#748568;z-index:2}.canvas-expand{position:absolute;right:17px;top:15px;background:#ffffffe5;z-index:2}.canvas-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;flex:1;padding:45px;text-align:center;position:relative;background:radial-gradient(ellipse at 60% 30%,#fff9df,#e7eedc 58%,#e2e9d8)}.canvas-placeholder:before{content:"";width:154px;height:192px;border:1px solid #bccba690;position:absolute;top:calc(50% - 134px);left:calc(50% - 77px);transform:rotate(-9deg);border-radius:60px 60px 9px 9px;background:#ffffff28}.canvas-placeholder>.lucide{width:41px;height:41px;color:#9aad7e;margin-bottom:20px;position:relative}.canvas-placeholder h3{font-size:20px;font-weight:400;letter-spacing:2px;color:#789060;margin:0 0 12px;position:relative}.canvas-placeholder p{font-size:11px;line-height:2;color:#97a784;max-width:240px;position:relative}.canvas-placeholder .button{margin-top:22px;position:relative}.spinner{width:30px;height:30px;border:2px solid #c7d5b5;border-top-color:#6e8a50;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px;z-index:1}@keyframes spin{to{transform:rotate(360deg)}}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px;gap:20px}.section-heading h2{font-size:18px;font-weight:500;letter-spacing:-.3px}.section-heading p{font-size:10px;color:#9aa78c;margin-top:7px;line-height:1.9}.section-heading .text-button{font-size:10px}.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.template-card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;transition:transform .18s}.template-card:hover{transform:translateY(-3px)}.template-art{height:178px;position:relative;overflow:hidden;background:#eff3e8}.template-art>img{height:100%;width:100%;transition:transform .3s}.template-card:hover .template-art>img{transform:scale(1.035)}.template-art>.badge{position:absolute;top:10px;left:10px;background:#ffffffed;backdrop-filter:blur(8px);font-size:8px}.template-info{padding:15px 14px}.template-info h3{font-size:12px;font-weight:500;line-height:1.8}.template-info p{font-size:10px;color:#9ba98c;margin:5px 0 14px;line-height:1.7;min-height:17px}.template-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #eef1e9;padding-top:11px}.template-bottom span{font-size:9px;color:#90a078}.template-bottom .text-button{font-size:10px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tabs button{padding:8px 13px;border-radius:6px;font-size:11px;color:#94a083}.tabs button.active{background:#e5edd7;color:#65804b}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:9px 11px;border-radius:7px;background:#fff;min-width:220px}.search svg{width:15px;height:15px;color:#a4b091}.search input{border:0;outline:0;background:transparent;font-size:11px;width:100%;color:#657b55}.search input::placeholder{color:#a6b197}.empty{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:38px 25px;grid-column:1/-1}.empty-art{width:67px;height:67px;border-radius:20px;background:#edf3e4;border:1px solid #e0e8d3;display:grid;place-items:center;transform:rotate(-6deg);margin-bottom:20px}.empty-art svg{height:29px;width:29px;color:#a1b48a;transform:rotate(6deg)}.empty h3{font-size:15px;font-weight:500;color:#7c9267}.empty p{font-size:11px;line-height:1.95;color:#9da98f;max-width:420px;margin-top:9px}.empty .button{margin-top:20px}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;color:#94a188;font-size:9px;background:#f1f4eb;border:1px solid #e4eada;white-space:nowrap;line-height:1.5}.badge.good{color:#7a965b;background:#eff5e4;border-color:#deebcc}.badge.warm{color:#ac965d;background:#faf6e9;border-color:#eee4c9}.badge.danger{color:#b98067;background:#fbf0e9;border-color:#edddd2}
.table-scroll{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}th{font-weight:400;color:#a5b095;font-size:9px;padding:13px 17px;background:#fafbf7;white-space:nowrap}td{padding:17px;border-top:1px solid #edf0e6;vertical-align:middle;color:#80946a;line-height:1.85}td:first-child,th:first-child{padding-left:23px}td:last-child,th:last-child{padding-right:23px}tbody tr:hover{background:#fdfefb}td strong{font-weight:500;color:#657e51}td small{font-size:9px;color:#a0ad91}.nowrap{white-space:nowrap}.number{font-variant-numeric:tabular-nums;white-space:nowrap}.positive{color:#699451}.product-cell{display:flex;align-items:center;gap:13px;min-width:220px}.product-cell img,.product-placeholder{width:44px;height:56px;border-radius:5px;flex-shrink:0;background:#eff4e5}.product-placeholder{display:grid;place-items:center;color:#a6b993}.product-cell strong{font-size:11px;display:block}.product-cell small{display:block;margin-top:5px;font-size:9px}.mapping{min-width:100px;max-width:175px;overflow-wrap:anywhere}.mapping small{display:block}.row-actions{display:flex;gap:12px;align-items:center;white-space:nowrap}.row-actions .text-button{font-size:10px}.table-count{font-size:16px;color:#728b58;font-weight:500}.flow-strip{display:grid;grid-template-columns:1fr 20px 1.1fr 20px 1fr;gap:15px;padding:19px 22px;margin-bottom:23px;border:1px solid var(--line);background:#fff;border-radius:11px;align-items:center}.flow-step{display:flex;align-items:center;gap:12px}.flow-step>i,.flow-step>.lucide{height:34px;width:34px;padding:8px;background:#eff4e5;border-radius:10px;color:#8fa474}.flow-step small{font-size:9px;display:block;color:#a1ad91;margin-bottom:6px}.flow-step strong{font-size:11px;font-weight:500;color:#6c8357;line-height:1.65}.flow-strip>svg{width:16px;color:#bdcaae}.flow-step.helper>.lucide{background:#f7edd0;color:#aa985e}.flow-step.helper strong{color:#929164}.customer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.customer-card{padding:21px;border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0}.customer-top{display:flex;align-items:center;gap:11px;margin-bottom:20px}.customer-top h3{font-size:12px;font-weight:500}.customer-top p{font-size:9px;color:#a0ac91;margin-top:5px}.customer-top>.badge{margin-left:auto}.wallet-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:12px 0;font-size:10px;color:#899b75}.wallet-row span{display:block;font-size:9px;color:#a1af90;margin-top:4px}.wallet-row strong{font-size:16px;font-weight:500;color:#769356;white-space:nowrap}.wallet-row strong small{font-size:9px;color:#a2af94;margin-left:4px}.customer-actions{display:flex;justify-content:space-between;margin-top:14px;border-top:1px solid var(--line);padding-top:13px;gap:10px}.customer-actions .text-button{font-size:10px}.work-list{display:flex;flex-direction:column;gap:22px}.work-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;border-bottom:1px solid var(--line)}.work-head h3{font-size:12px;font-weight:500}.work-head small{font-size:9px;color:#9fac91;display:block;margin-top:6px}.work-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px}.work-image img{width:100%;height:180px;border-radius:6px;background:#f3f6ee;object-fit:contain;cursor:zoom-in}.work-image>div{display:flex;justify-content:space-between;margin-top:10px;gap:8px}.work-image .text-button{font-size:10px}.work-message{font-size:11px;padding:20px;color:#99a686;line-height:1.9}.deleted-image{height:180px;display:grid;place-items:center;background:#f3f6ed;border-radius:6px;font-size:10px;color:#a0ad90}.preview-image{width:100%;max-height:68vh;object-fit:contain;border-radius:8px;background:#f3f6ee}.steps{list-style:none;display:flex;flex-direction:column;gap:24px;margin:0;padding:0}.steps li{display:flex;gap:14px}.steps li>span{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;flex-shrink:0;background:#eaf1dc;font-size:11px;color:#819b60}.steps h3{font-size:12px;font-weight:500;color:#6d8655;line-height:1.8;margin-bottom:7px}.steps p{font-size:11px;line-height:1.95;color:#99a789}.callout{padding:21px;border:1px solid #dce6cc;border-radius:10px;background:linear-gradient(120deg,#eff4e6,#f6f9ef)}.callout h3{font-size:13px;font-weight:500;color:#74915a;margin-bottom:12px}.callout p{font-size:11px;line-height:2;color:#97a883}.checklist{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}.checklist li{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.8;color:#a0ac8d}.checklist svg{width:16px;height:16px;margin-top:1px;color:#b0ba9d}.checklist li.done{color:#7c975e}.checklist li.done svg{color:#819e5f}.codebox{font-family:Consolas,"Microsoft YaHei",monospace;font-size:10px;line-height:1.9;background:#f4f7ed;border:1px solid #e2e9d4;border-radius:7px;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:350px}.file-preview{font-family:Consolas,"Microsoft YaHei",monospace;font-size:10px!important;line-height:1.8!important;min-height:170px!important}.version-item{border:1px solid var(--line);border-radius:7px;padding:14px;margin-bottom:12px}.version-item summary{cursor:pointer;font-size:12px;color:#7b935f}.version-item p{white-space:pre-wrap;font-size:11px;color:#96a582;line-height:1.95;margin-top:15px}.audit-row{padding:13px 0;border-top:1px solid var(--line)}.audit-row>strong{font-size:11px;font-weight:500}.audit-row p{font-size:10px;color:#96a48b;line-height:1.85;overflow-wrap:anywhere}.section-space{margin-top:24px}
dialog{border:1px solid #dce5d2;border-radius:14px;padding:0;background:#fff;color:var(--ink);width:480px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 45px);box-shadow:0 22px 85px #23352226;overflow:auto}dialog.wide{width:810px}dialog::backdrop{background:#24312662;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:23px 26px 0}.modal-head h2{font-size:19px;font-weight:500;line-height:1.5}.modal-body{padding:20px 26px 27px}.modal-body>.notice{margin-bottom:20px}.modal-body .panel{border-radius:8px}.modal-body td{font-size:10px}.modal-body .table-scroll{margin-left:-5px;margin-right:-5px}.account-summary{display:flex;align-items:center;gap:14px;margin-bottom:26px}.account-summary h3{font-size:17px;font-weight:500}.account-summary p{font-size:11px;margin-top:4px}.toast{position:fixed;top:19px;left:50%;transform:translateX(-50%);padding:13px 22px;max-width:calc(100vw - 30px);border-radius:9px;background:#344f38f5;backdrop-filter:blur(12px);color:#f6f9ef;box-shadow:0 8px 25px #29432d20;font-size:12px;line-height:1.8;z-index:10000;text-align:center}.login-page{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:#fbfcf8}.login-story{background:linear-gradient(138deg,#e7efdb,#dce7ce);padding:55px 65px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;width:310px;height:390px;right:-70px;top:37%;border:1px solid #a9bd8a80;border-radius:155px 155px 16px 16px;transform:rotate(14deg);background:#ffffff18}.login-story>.brand{position:relative;z-index:1}.login-story h1{font-size:43px;line-height:1.65;font-weight:400;letter-spacing:-1px;color:#557248;position:relative;z-index:1}.login-story p{font-size:12px;line-height:2;color:#93a27e;margin-top:20px;position:relative;z-index:1}.login-story footer{font-size:9px;letter-spacing:2px;color:#a3b08f}.login-form-area{padding:65px;display:flex;align-items:center;justify-content:center}.login-card{max-width:355px;width:100%}.login-card h2{font-size:25px;font-weight:500;margin-bottom:9px}.login-card>.fine{margin-bottom:28px}.login-card .stack{gap:23px}.login-card .field>input{padding:13px}.login-card .button{padding:13px}.login-card .privacy-link{margin-top:24px;justify-content:center;gap:8px}.legal{max-width:780px;margin:45px auto;padding:20px 28px 60px}.legal>.brand{margin-bottom:65px}.legal .brand small{display:inline;margin-top:0}.legal h1{font-size:29px;font-weight:500;margin-bottom:35px}.legal section{margin-bottom:28px}.legal h2{font-size:16px;font-weight:500;margin-bottom:12px;color:#698252}.legal section p{font-size:13px;line-height:2.1;color:#87987a;margin-top:10px}
@media(min-width:1120px) and (max-height:810px){.sidebar{padding-top:23px}.workspace-label{margin:24px 0 22px}.navigation button{padding-top:11px;padding-bottom:11px}.sidebar-bottom{padding-top:17px}.rail-card{padding:14px}.rail-card h3{font-size:11px}.rail-card strong{margin-top:12px;font-size:26px}.account-chip{padding-top:16px}.sidebar .brand{font-size:25px}.sidebar .brand img{width:38px;height:38px}}
@media(min-width:761px) and (max-width:1240px){.sidebar{width:212px;padding-left:18px;padding-right:18px}.main{margin-left:212px}.content{padding:27px}.topbar{padding:0 27px}.page-footer{padding-left:27px;padding-right:27px}.studio-grid{grid-template-columns:minmax(325px,1fr) minmax(230px,.83fr);gap:20px}.template-grid{gap:13px}.template-art{height:155px}.template-info{padding:12px}.stats{gap:12px}.stat{padding:17px}.stat>strong{font-size:27px}.stat>svg{right:15px}.flow-strip{gap:9px;padding:16px}.flow-step{gap:8px}.flow-step strong{font-size:10px}.page-heading h1{font-size:26px}}
@media(min-width:761px) and (max-width:1050px){.sidebar{width:78px;padding:25px 12px}.sidebar .brand{padding:0 7px}.sidebar .brand img{width:35px;height:35px}.sidebar .brand>span,.workspace-label,.nav-caption,.navigation button>span,.navigation button>b,.rail-card,.account-chip>span:not(.avatar),.account-chip>svg,.privacy-link{display:none}.navigation{margin-top:38px}.navigation button{justify-content:center;padding:14px 0}.sidebar-bottom{margin-top:auto}.account-chip{justify-content:center}.main{margin-left:78px}.studio-grid{grid-template-columns:minmax(320px,1fr) minmax(260px,1fr)}.content{padding:26px}.topbar{padding:0 26px}.two-column{grid-template-columns:1fr}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.template-grid.preview>.template-card:nth-child(4){display:none}.customer-list{gap:15px}.work-images{grid-template-columns:repeat(3,minmax(0,1fr))}.login-story{padding:45px 35px}.login-form-area{padding:40px}.login-story h1{font-size:35px}}
@media(max-width:760px){.sidebar{display:none}.main{margin-left:0}.topbar{height:64px;padding:0 17px;gap:10px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:19px;letter-spacing:2px;color:#5d764b;white-space:nowrap}.mobile-brand img{height:27px;width:27px}.mobile-account{display:inline-flex}.top-actions{gap:11px}.top-actions .text-button{font-size:9px}.top-actions .text-button svg{width:13px;height:13px}.status-pill{font-size:8px;padding:5px 7px}.content{padding:22px 16px 25px;min-height:calc(100vh - 180px)}.page-heading{align-items:flex-start;gap:15px;margin-bottom:21px;flex-direction:column}.page-heading h1{font-size:24px}.eyebrow{font-size:8px;margin-bottom:8px}.subheading{font-size:10px;margin-top:7px;max-width:360px}.heading-actions{align-self:flex-end;gap:8px}.heading-actions .button{font-size:11px;padding:9px 12px}.page-footer{padding:12px 17px 98px;flex-direction:column;align-items:center;gap:9px;font-size:8px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:space-around;padding:10px 4px max(12px,env(safe-area-inset-bottom));background:#fafcf6f7;border-top:1px solid #dfe7d3;backdrop-filter:blur(12px);height:69px}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:1;color:#9ba98b;font-size:9px;min-width:0;padding:0 2px}.mobile-nav button svg{width:18px;height:18px}.mobile-nav button.active{color:#607d48}.mobile-nav button b{display:none}body[data-app=merchant] .mobile-nav button{font-size:8px}.notice{font-size:10px;padding:11px 12px;margin-bottom:19px;gap:8px}.notice .text-button{font-size:10px}.panel-head{padding:16px}.panel-head h2{font-size:13px}.panel-head p{font-size:9px}.panel-body{padding:18px 16px}.panel-footer{padding:12px 16px;font-size:9px;align-items:flex-start;flex-direction:column;gap:3px}.studio-grid{grid-template-columns:1fr;gap:18px;margin-bottom:27px}.composer .panel-body{padding:20px 17px;gap:19px}.canvas-panel{min-height:330px;max-height:430px;aspect-ratio:4/3}.canvas-placeholder{padding:34px}.canvas-placeholder h3{font-size:19px}.canvas-placeholder p{font-size:10px}.canvas-caption{padding:40px 19px 19px}.canvas-caption h3{font-size:17px}.canvas-caption p{font-size:10px}.canvas-label{font-size:8px;top:14px;left:14px}.canvas-expand{right:12px;top:10px}.field>span{font-size:11px}.field>input,.field>textarea,.field>select,.input{font-size:14px;padding:11px}.field>small{font-size:9px}.form-grid{gap:16px}.composer .form-grid{gap:14px}.creation-bottom{gap:12px}.creation-bottom .button{font-size:12px;padding:12px 15px}.prompt-input{font-size:13px!important;min-height:140px!important}.creative-note{font-size:9px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-art{height:176px}.template-info{padding:13px 10px}.template-info h3{font-size:11px}.template-info p{font-size:9px;margin-bottom:11px;line-height:1.8}.template-bottom{padding-top:9px;flex-wrap:wrap;gap:6px}.template-bottom span{font-size:8px}.template-bottom .text-button{font-size:9px}.section-heading{gap:12px;align-items:flex-start}.section-heading h2{font-size:17px}.section-heading p{font-size:9px}.section-heading .text-button{white-space:nowrap}.toolbar{gap:12px;margin-bottom:18px}.tabs{gap:2px}.tabs button{font-size:10px;padding:7px 8px}.search{width:100%;padding:10px}.search input{font-size:13px}.empty{min-height:230px;padding:30px 19px}.empty h3{font-size:14px}.empty p{font-size:10px}.empty-art{height:61px;width:61px;margin-bottom:18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:20px}.stat{padding:16px}.stat>span{font-size:10px}.stat>strong{font-size:26px;margin:10px 0 6px}.stat>small{font-size:8px}.stat>svg{height:14px;width:14px;right:15px;top:15px}.flow-strip{grid-template-columns:1fr;gap:15px;padding:18px;margin-bottom:20px}.flow-strip>svg{display:none}.flow-step{gap:13px}.flow-step small{font-size:8px}.flow-step strong{font-size:11px}.flow-step>.lucide{height:32px;width:32px}.product-cell{gap:10px;min-width:197px}.product-cell img{height:49px;width:38px}.product-cell strong{font-size:10px}.product-cell small{font-size:8px}.row-actions{gap:11px}.row-actions .text-button{font-size:10px}th{padding:12px;font-size:9px}td{padding:14px 12px;font-size:10px}td:first-child,th:first-child{padding-left:16px}td:last-child,th:last-child{padding-right:16px}.table-count{font-size:15px}.customer-list{grid-template-columns:1fr;gap:16px}.customer-card{padding:19px}.customer-top h3{font-size:13px}.wallet-row{font-size:11px}.customer-actions .text-button{font-size:10px}.work-head{padding:15px 16px}.work-head h3{font-size:11px}.work-head small{font-size:8px}.work-images{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px}.work-image img{height:150px}.work-image .text-button{font-size:10px}.deleted-image{height:150px}.work-message{padding:17px;font-size:10px}.two-column{grid-template-columns:1fr;gap:18px}.callout{padding:19px}.callout p{font-size:10px}.steps{gap:21px}.steps h3{font-size:12px}.steps p{font-size:10px}.checklist li{font-size:10px}.form-actions{flex-wrap:wrap;gap:12px}.form-actions .fine{max-width:100%;width:100%}.form-actions .button{font-size:11px}.form-grid.collapse{grid-template-columns:1fr}.form-grid.collapse>.span2{grid-column:auto}dialog{max-width:calc(100vw - 22px);max-height:calc(100dvh - 22px);border-radius:12px}.modal-head{padding:19px 19px 0}.modal-head h2{font-size:17px}.modal-body{padding:17px 19px 22px}.modal-body .form-grid{grid-template-columns:1fr}.modal-body .span2{grid-column:auto}.modal-body .button{font-size:11px}.stack{gap:18px}.toast{top:12px;font-size:11px;padding:12px 17px}.login-page{grid-template-columns:1fr}.login-story{padding:31px 26px 35px;min-height:235px;gap:35px}.login-story .brand{font-size:25px;gap:10px}.login-story .brand img{height:35px;width:35px}.login-story .brand small{font-size:7px}.login-story h1{font-size:28px;line-height:1.5}.login-story p{font-size:10px;max-width:245px;margin-top:10px}.login-story footer{display:none}.login-story:after{width:180px;height:240px;top:20%;right:-50px}.login-form-area{padding:34px 26px 50px;align-items:flex-start}.login-card{max-width:400px}.login-card h2{font-size:23px}.login-card .field>input{font-size:15px}.login-card .stack{gap:20px}.legal{margin:20px auto;padding:20px 22px 50px}.legal>.brand{margin-bottom:40px;font-size:25px}.legal h1{font-size:24px;line-height:1.7}.legal section p{font-size:12px}.legal h2{font-size:15px}}
@media(max-width:380px){.top-actions{gap:6px}.top-actions .text-button{font-size:8px}.status-pill{font-size:7px}.topbar{padding:0 12px}.template-art{height:150px}.content{padding-left:13px;padding-right:13px}.template-info h3{font-size:10px}.template-grid{gap:10px}.creation-bottom .button{padding:11px}.mobile-nav button{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Top-layer notices remain visible above native dialogs. */
.toast{inset:auto;top:19px;left:50%;margin:0;width:max-content;border:0}
.canvas-panel{min-width:0;max-width:100%}
.page-heading>div{min-width:0;max-width:100%}
h1,h2,h3{overflow-wrap:anywhere}
.brand>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-brand{min-width:0;max-width:40%}
.mobile-brand>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.block{display:block}
.panel-head>.text-button{white-space:nowrap;flex-shrink:0}
.batch-table{min-width:830px}
.batch-table td:first-child{min-width:190px}
.prompt-cell{max-width:380px;min-width:200px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.version-item .fine{margin-bottom:8px}
@media(min-width:761px){.topbar .mobile-account{display:none}}
@media(max-width:760px){.toast{top:12px}.prompt-cell{max-width:220px}}

/* The shared control is also present before merchant authentication. */
.theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);font-size:11px;white-space:nowrap;flex-shrink:0}
.theme-switch:hover{background:var(--soft)}
.theme-switch span{align-items:center}
.theme-switch svg{width:15px;height:15px}
.theme-moon{display:inline-flex}
.theme-sun{display:none}
html[data-theme=dark] .theme-moon{display:none}
html[data-theme=dark] .theme-sun{display:inline-flex}
.login-theme{position:absolute;right:30px;top:25px;z-index:30}
.legal-theme{display:flex;justify-content:flex-end;margin-bottom:24px}
.space-memory{display:flex;align-items:center;gap:9px;padding:12px 16px;margin-bottom:20px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--muted);font-size:11px;line-height:1.8}
.space-memory>svg{width:16px;height:16px;color:#7b975e}
.space-memory>span{min-width:0;flex:1}
.space-memory .text-button{white-space:nowrap}
.recovery-actions{display:flex;gap:12px;flex-wrap:wrap}
.recovery-actions>.button{flex:1}
.field>.recovery-code{font-family:Consolas,monospace;font-size:15px;line-height:1.8;letter-spacing:.7px;min-height:95px;overflow-wrap:anywhere}

html[data-theme=dark]{
  color-scheme:dark;
  --page:#101912;--green:#416348;--ink:#e0e9db;--muted:#a4b39d;
  --line:#334536;--soft:#223429;--lime:#c6dca4;--paper:#19271f;--amber:#debf83;
}
html[data-theme=dark] ::selection{background:#536e45;color:#f5faed}
html[data-theme=dark] :is(.sidebar,.topbar){background:#142018;border-color:var(--line)}
html[data-theme=dark] .brand{color:#c4d9b1}
html[data-theme=dark] :is(.brand small,.nav-caption,.privacy-link,.account-chip small,.breadcrumb,.eyebrow,.subheading,.fine,.field>small,.panel-head p,.panel-footer,.page-footer,.stat>small,.stat>span,.tiny-label,.rail-card p,.rail-card strong small,.version-caption span,.creative-note,.creation-bottom p,.template-info p,.template-bottom span,.section-heading p,.empty p,.customer-top p,.wallet-row span,.wallet-row strong small,.work-head small,.work-message,.steps p,.callout p,.checklist li,.version-item p,.audit-row p,.legal section p){color:var(--muted)}
html[data-theme=dark] :is(.breadcrumb b,.panel-head h2,.field>span,.composer-title,.template-info h3,.section-heading h2,.empty h3,.customer-top h3,.work-head h3,.modal-head h2,.account-summary h3,.steps h3,.callout h3,.legal h2,.flow-step strong){color:var(--ink)}
html[data-theme=dark] :is(.navigation button,.mobile-nav button){color:#a7b69e}
html[data-theme=dark] .navigation button:hover{background:#203126}
html[data-theme=dark] :is(.navigation button.active,.tabs button.active){background:#304832;color:#d7e8c2}
html[data-theme=dark] .navigation button b{background:#b0ce83}
html[data-theme=dark] :is(.workspace-label,.avatar,.empty-art,.steps li>span){background:#273c29;color:#bad398;border-color:#3c5234}
html[data-theme=dark] :is(.rail-card,.callout){background:linear-gradient(125deg,#233729,#1c2d22);border-color:#384d36}
html[data-theme=dark] :is(.rail-card h3,.rail-card>strong,.stat>strong,.balance-tag b,.creation-bottom b,.wallet-row strong,.table-count,.checklist li.done,.checklist li.done svg){color:#b6d38f}
html[data-theme=dark] :is(.button,.stat,.template-card,.search,.flow-strip,.customer-card,dialog){background:var(--paper);border-color:var(--line)}
html[data-theme=dark] .button:hover{background:#263b2c}
html[data-theme=dark] .button.primary{background:var(--green);border-color:var(--green);color:#f7fbf3}
html[data-theme=dark] .button.primary:hover{background:#4d7351}
html[data-theme=dark] .button.lime{background:var(--lime);border-color:var(--lime);color:#293d25}
html[data-theme=dark] :is(.button.danger,.text-button.danger){color:#e9aa99;border-color:#6c4840}
html[data-theme=dark] :is(.text-button,.fine a,.check a,.version-item summary,.space-memory>svg){color:#b1ce8b}
html[data-theme=dark] .icon-button{color:#b6c6a7}
html[data-theme=dark] .icon-button:hover{background:#2b3c2d}
html[data-theme=dark] :is(.notice,.badge,.status-pill){background:#223628;border-color:#3a5136;color:#b6c7a2}
html[data-theme=dark] :is(.notice.warm,.badge.warm,.status-pill.warm){background:#352f20;border-color:#584d31;color:#e0c58b}
html[data-theme=dark] :is(.badge.good,.status-pill.good){background:#293d28;border-color:#3f5935;color:#bfd699}
html[data-theme=dark] .badge.danger{background:#382921;border-color:#684839;color:#e6b195}
html[data-theme=dark] :is(.panel-head,.template-bottom,.work-head){border-color:var(--line)}
html[data-theme=dark] :is(.field>input,.field>textarea,.field>select,.input){background:#111e16;border-color:#3c513a;color:#e0e9db}
html[data-theme=dark] :is(.field>input,.field>textarea,.field>select,.input):focus{border-color:#9dbb79;box-shadow:0 0 0 3px #9dbb7925}
html[data-theme=dark] :is(.field input,.field textarea,.input,.search input)::placeholder{color:#86967e}
html[data-theme=dark] .prompt-input{background:#111e16!important}
html[data-theme=dark] :is(.search input,.check,.tabs button,.wallet-row){color:#b4c4a4}
html[data-theme=dark] .check input{accent-color:#98b772}
html[data-theme=dark] .upload-slot{background:#1d2e21;border-color:#4b6340}
html[data-theme=dark] :is(.upload-slot strong,.upload-slot input){color:#b6c9a3}
html[data-theme=dark] .upload-slot input::file-selector-button{background:#324b30;color:#d1e2bb}
html[data-theme=dark] :is(.canvas-panel,.template-art,.product-placeholder,.product-cell img,.work-image img,.deleted-image,.preview-image){background:#1e3023;border-color:var(--line)}
html[data-theme=dark] .canvas-placeholder{background:radial-gradient(ellipse at 60% 30%,#2d402a,#203226 58%,#18291f)}
html[data-theme=dark] .canvas-placeholder:before{background:#acc79708;border-color:#6a835260}
html[data-theme=dark] :is(.canvas-placeholder h3,.canvas-placeholder>.lucide){color:#b6ca97}
html[data-theme=dark] .canvas-placeholder p{color:#a7b89b}
html[data-theme=dark] :is(.canvas-label,.canvas-expand,.template-art>.badge){background:#142019e8;color:#cfddbd;border-color:#41543c}
html[data-theme=dark] .spinner{border-color:#496041;border-top-color:#c0d891}
html[data-theme=dark] th{background:#15221a;color:#aec09e}
html[data-theme=dark] td{border-color:var(--line);color:#b0c49e}
html[data-theme=dark] tbody tr:hover{background:#213126}
html[data-theme=dark] td strong{color:#d2e1c2}
html[data-theme=dark] td small{color:#98ad88}
html[data-theme=dark] .positive{color:#c0df93}
html[data-theme=dark] .flow-step>.lucide{background:#293e2a;color:#bfd69f}
html[data-theme=dark] .flow-step small{color:#9faf94}
html[data-theme=dark] .flow-step.helper>.lucide{background:#3c3521;color:#dac68b}
html[data-theme=dark] .flow-step.helper strong{color:#cecfaa}
html[data-theme=dark] .codebox{background:#112017;border-color:#3a4e34;color:#bed0aa}
html[data-theme=dark] dialog::backdrop{background:#020803ab}
html[data-theme=dark] .toast{background:#d2e2c0f5;color:#243720;box-shadow:0 8px 25px #0005}
html[data-theme=dark] .login-page{background:#111b14}
html[data-theme=dark] .login-story{background:linear-gradient(138deg,#243b29,#182d22)}
html[data-theme=dark] .login-story:after{background:#bad79308;border-color:#6c895460}
html[data-theme=dark] .login-story h1{color:#c8dcb6}
html[data-theme=dark] :is(.login-story p,.login-story footer){color:#a4b697}
html[data-theme=dark] .mobile-nav{background:#142019f5;border-color:var(--line)}
html[data-theme=dark] .mobile-nav button.active{color:#c9dfa6}
html[data-theme=dark] .mobile-brand{color:#c6d8b4}
@media(max-width:760px){
  .top-actions{gap:9px;flex-shrink:0}
  .topbar .status-pill{display:none}
  .theme-switch{min-height:38px;padding:8px 10px;font-size:10px}
  .login-theme{right:20px;top:28px}
  .login-story .brand{max-width:calc(100% - 75px)}
  .space-memory{font-size:10px;padding:11px 12px;align-items:flex-start;flex-wrap:wrap;gap:7px}
  .space-memory>svg{margin-top:3px}
  .space-memory>span{flex-basis:calc(100% - 24px)}
  .space-memory .text-button{margin-left:23px}
  .recovery-actions{gap:9px}
  .field>.recovery-code{font-size:14px;letter-spacing:0}
}
.provider-tabs{display:flex;flex-wrap:wrap;max-width:100%;gap:5px}
.provider-tabs button{white-space:normal;text-align:left}
.provider-title{font-size:15px;margin:0 0 10px;color:var(--ink)}
.provider-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border:1px solid var(--line);border-radius:10px}
.provider-checks strong{font-size:12px;color:var(--ink)}
.provider-checks small{display:block;margin-top:8px;font-size:10px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}

/* Buyer workbench: deliberately scoped so the merchant console stays unchanged. */
body[data-app=buyer]{
  --page:#f7f7f4;--paper:#fff;--ink:#29312c;--muted:#626d63;--line:#e1e5dd;
  --soft:#f3f5f0;--green:#314438;--lime:#e2ebd9;
  --buyer-primary:#314438;--buyer-on-primary:#fff;--buyer-danger:#a44f3d;
  background:var(--page);color:var(--ink);font-size:14px;
}
html[data-theme=dark] body[data-app=buyer]{
  --page:#161b18;--paper:#1e2621;--ink:#e7eee7;--muted:#a9b4a9;--line:#354238;
  --soft:#252f28;--green:#bfcfb3;--lime:#354632;
  --buyer-primary:#c8d9bc;--buyer-on-primary:#1d2b21;--buyer-danger:#e6ab99;
}
body[data-app=buyer] .buyer-layout{min-height:100dvh;display:flex;flex-direction:column}
body[data-app=buyer] .buyer-header{background:var(--paper);border-bottom:1px solid var(--line)}
body[data-app=buyer] .buyer-header-inner{max-width:1240px;min-height:72px;margin:auto;padding:0 28px;display:flex;align-items:center;gap:32px}
body[data-app=buyer] .buyer-brand{display:flex;align-items:center;gap:9px;min-width:0;flex-shrink:0}
body[data-app=buyer] .buyer-brand img{width:31px;height:31px}
body[data-app=buyer] .buyer-brand>span{font-size:22px;font-weight:650;letter-spacing:1px;max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body[data-app=buyer] .buyer-brand>small{font-size:9px;letter-spacing:1.7px;color:var(--muted);margin:5px 0 0 2px}
body[data-app=buyer] .buyer-nav{display:flex;align-self:stretch;align-items:stretch;gap:5px;flex:1;justify-content:center}
body[data-app=buyer] .buyer-nav button{position:relative;padding:0 17px;font-size:13px;color:var(--muted);white-space:nowrap;min-height:44px}
body[data-app=buyer] .buyer-nav button:hover{color:var(--ink);background:var(--soft)}
body[data-app=buyer] .buyer-nav button.active{color:var(--ink);font-weight:650}
body[data-app=buyer] .buyer-nav button.active:after{content:"";position:absolute;bottom:0;left:16px;right:16px;height:2px;background:var(--green);border-radius:2px}
body[data-app=buyer] .buyer-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
body[data-app=buyer] .buyer-tools .theme-switch{width:36px;height:36px;min-height:36px;padding:8px;border:0;border-radius:7px;background:transparent}
body[data-app=buyer] .buyer-tools [data-theme-label]{display:none}
body[data-app=buyer] .buyer-account{width:36px;height:36px}
body[data-app=buyer] .buyer-tools .buyer-topup{padding:8px 12px;font-size:12px;min-height:36px;margin-left:4px}
body[data-app=buyer] .buyer-topup svg{width:15px;height:15px}
body[data-app=buyer] .buyer-content{width:100%;max-width:1240px;margin:0 auto;padding:28px 28px 20px;flex:1;min-width:0}
body[data-app=buyer] .buyer-workspace{display:grid;grid-template-columns:minmax(340px,.88fr) minmax(0,1.12fr);gap:24px;align-items:stretch}
body[data-app=buyer] .panel{border-color:var(--line);background:var(--paper);border-radius:12px;box-shadow:0 2px 5px #12211403}
body[data-app=buyer] .buyer-composer-head{padding:22px 24px 0}
body[data-app=buyer] .buyer-composer-head h1{font-size:20px;line-height:1.4;font-weight:650;letter-spacing:-.4px}
body[data-app=buyer] .buyer-composer-head p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:5px}
body[data-app=buyer] .composer .panel-body{gap:17px;padding:20px 24px 22px}
body[data-app=buyer] .field{gap:8px}
body[data-app=buyer] .field>span{font-size:12px;color:var(--ink);font-weight:550}
body[data-app=buyer] .field>span small{font-size:11px;color:var(--muted);font-weight:400;margin-left:5px}
body[data-app=buyer] :is(.field>input,.field>textarea,.field>select,.input){font-size:13px;color:var(--ink);background:var(--paper);border-color:var(--line);padding:10px 12px;border-radius:7px}
body[data-app=buyer] .field>select{min-height:42px}
body[data-app=buyer] :is(.field>input,.field>textarea,.field>select,.input):focus{border-color:var(--green);box-shadow:0 0 0 3px #8b9e8020}
body[data-app=buyer] :is(.field input,.field textarea,.input,.search input)::placeholder{color:var(--muted);opacity:.75}
body[data-app=buyer] .field>small{font-size:11px;color:var(--muted);line-height:1.6}
body[data-app=buyer] .prompt-input{background:var(--paper)!important;font-size:13px!important;line-height:1.8!important;padding:12px!important;min-height:112px!important;height:112px}
body[data-app=buyer] .version-caption{gap:8px;margin-top:8px;flex-wrap:wrap;line-height:1.5}
body[data-app=buyer] .version-caption>span{color:var(--muted);font-size:11px}
body[data-app=buyer] .version-caption .text-button{font-size:11px;gap:4px}
body[data-app=buyer] .version-caption b{font-size:13px;font-weight:600}
body[data-app=buyer] .buyer-upload{display:flex;align-items:center;gap:12px;position:relative;min-width:0;padding:12px;border:1px dashed #bdc8b7;border-radius:8px;cursor:pointer;background:var(--soft)}
body[data-app=buyer] .buyer-upload>svg{color:var(--muted);width:23px;height:23px}
body[data-app=buyer] .buyer-upload>div{flex:1;min-width:0}
body[data-app=buyer] .buyer-upload strong{display:block;font-size:12px;font-weight:500;color:var(--ink)}
body[data-app=buyer] .buyer-upload p{font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px}
body[data-app=buyer] .buyer-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
body[data-app=buyer] .buyer-upload:focus-within{outline:2px solid var(--green);outline-offset:3px}
body[data-app=buyer] .buyer-upload.unavailable{cursor:not-allowed;border-color:var(--line)}
body[data-app=buyer] .buyer-upload.unavailable input{cursor:not-allowed}
body[data-app=buyer] .buyer-upload.uploaded{cursor:default;border-style:solid}
body[data-app=buyer] .reference-thumb{width:42px;height:42px}
body[data-app=buyer] .composer .form-grid{gap:14px}
body[data-app=buyer] .buyer-submit p{margin-top:10px;font-size:11px;text-align:center;color:var(--muted);line-height:1.5}
body[data-app=buyer] .buyer-submit .button{font-size:13px;padding:12px;min-height:46px}
body[data-app=buyer] .button{background:var(--paper);border-color:var(--line);color:var(--ink);font-size:12px}
body[data-app=buyer] .button:hover{background:var(--soft)}
body[data-app=buyer] .button.primary{background:var(--buyer-primary);border-color:var(--buyer-primary);color:var(--buyer-on-primary)}
body[data-app=buyer] .button.primary:hover{background:var(--buyer-primary);border-color:var(--buyer-primary);color:var(--buyer-on-primary);filter:brightness(1.08)}
body[data-app=buyer] .button:disabled{opacity:.55}
body[data-app=buyer] .text-button{color:var(--green);font-size:12px}
body[data-app=buyer] :is(.button.danger,.text-button.danger){color:var(--buyer-danger)}
body[data-app=buyer] .icon-button{color:var(--muted)}
body[data-app=buyer] :is(.icon-button,.theme-switch):hover{background:var(--soft)}
body[data-app=buyer] .buyer-stage{display:flex;flex-direction:column;min-width:0}
body[data-app=buyer] .buyer-stage-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:23px 24px 18px}
body[data-app=buyer] .buyer-stage-head h2{font-size:18px;font-weight:600;line-height:1.5}
body[data-app=buyer] .buyer-stage-head .text-button{font-size:11px;color:var(--muted)}
body[data-app=buyer] .buyer-stage-body{display:flex;flex-direction:column;flex:1;padding:0 22px 22px;gap:14px;min-width:0}
body[data-app=buyer] .buyer-canvas-empty{flex:1;min-height:420px;border:1px dashed var(--line);border-radius:8px;background:var(--page);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:36px 24px;gap:12px}
body[data-app=buyer] .buyer-empty-icon{display:grid;place-items:center;width:62px;height:62px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:#a5b09e;margin-bottom:6px}
body[data-app=buyer] .buyer-empty-icon svg{width:27px;height:27px}
body[data-app=buyer] .buyer-canvas-empty h3{font-size:16px;font-weight:500;color:var(--ink);letter-spacing:0}
body[data-app=buyer] .buyer-canvas-empty p{font-size:12px;line-height:1.9;color:var(--muted);max-width:310px;overflow-wrap:anywhere}
body[data-app=buyer] .buyer-canvas-empty .spinner{border-color:var(--line);border-top-color:var(--green);margin-bottom:8px}
body[data-app=buyer] .buyer-template-preview{margin:0;display:flex;flex-direction:column;flex:1;gap:13px;min-width:0}
body[data-app=buyer] .buyer-template-preview>img{width:100%;height:440px;object-fit:contain;background:var(--page);border:1px solid var(--line);border-radius:8px}
body[data-app=buyer] .buyer-template-preview figcaption{font-size:11px;line-height:1.8;color:var(--muted)}
body[data-app=buyer] .buyer-template-preview figcaption span{display:inline-block;margin-right:8px;padding:2px 7px;border-radius:4px;background:var(--soft);color:var(--ink)}
body[data-app=buyer] .buyer-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start;flex:1;min-width:0}
body[data-app=buyer] .buyer-results.single{grid-template-columns:minmax(0,1fr)}
body[data-app=buyer] .buyer-result{margin:0;min-width:0}
body[data-app=buyer] .buyer-result-preview{display:block;width:100%;padding:0;border-radius:7px;overflow:hidden;border:1px solid var(--line);background:var(--page);cursor:zoom-in}
body[data-app=buyer] .buyer-result-preview img{width:100%;height:210px;object-fit:contain}
body[data-app=buyer] .buyer-results.single img{height:435px}
body[data-app=buyer] .buyer-result figcaption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;margin-top:9px;color:var(--muted);font-size:10px}
body[data-app=buyer] .buyer-result .text-button{font-size:11px}
body[data-app=buyer] .buyer-result .text-button svg{width:14px;height:14px}
body[data-app=buyer] .buyer-result-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;line-height:1.8;color:var(--muted)}
body[data-app=buyer] .badge{color:var(--muted);border-color:var(--line);background:var(--soft)}
body[data-app=buyer] .badge.good{color:var(--green)}
body[data-app=buyer] .buyer-footer{width:100%;max-width:1240px;margin:0 auto;padding:0 28px 22px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 18px;color:var(--muted);font-size:10px;line-height:1.8}
body[data-app=buyer] .buyer-footer>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
body[data-app=buyer] .buyer-footer .text-button{font-size:10px}
body[data-app=buyer] .buyer-footer a:hover{text-decoration:underline}
body[data-app=buyer] .eyebrow:empty{display:none}
body[data-app=buyer] .page-heading{margin-bottom:24px}
body[data-app=buyer] .page-heading h1{font-size:23px;font-weight:600;letter-spacing:-.5px}
body[data-app=buyer] .subheading{font-size:12px;color:var(--muted)}
body[data-app=buyer] :is(.template-card,.search,dialog){background:var(--paper);border-color:var(--line)}
body[data-app=buyer] :is(.template-info h3,.empty h3,.field>span,.modal-head h2,.work-head h3,.account-summary h3){color:var(--ink)}
body[data-app=buyer] :is(.template-info p,.template-bottom span,.empty p,.fine,.work-head small,.work-message,.panel-footer){color:var(--muted)}
body[data-app=buyer] .template-info h3{font-size:14px}
body[data-app=buyer] .template-info p{font-size:12px;line-height:1.8}
body[data-app=buyer] .template-bottom{border-color:var(--line)}
body[data-app=buyer] .template-bottom span{font-size:11px}
body[data-app=buyer] .template-bottom .text-button{font-size:11px}
body[data-app=buyer] .template-art{height:210px;background:var(--soft)}
body[data-app=buyer] .tabs button{font-size:12px;color:var(--muted)}
body[data-app=buyer] .tabs button.active{background:var(--soft);color:var(--ink)}
body[data-app=buyer] .search input{font-size:13px;color:var(--ink)}
body[data-app=buyer] .empty{min-height:320px}
body[data-app=buyer] .empty-art{background:var(--soft);border-color:var(--line);transform:none}
body[data-app=buyer] .empty-art svg{color:var(--muted);transform:none}
body[data-app=buyer] .empty h3{font-size:17px}
body[data-app=buyer] .empty p{font-size:12px}
body[data-app=buyer] .check{font-size:12px;color:var(--muted)}
body[data-app=buyer] :is(.check a,.fine a){color:var(--green)}
body[data-app=buyer] .check input{accent-color:var(--green)}
body[data-app=buyer] .work-head h3{font-size:14px}
body[data-app=buyer] .work-head small{font-size:11px;line-height:1.8}
body[data-app=buyer] .work-message{font-size:12px}
body[data-app=buyer] :is(.preview-image,.work-image img,.deleted-image){background:var(--page)}
body[data-app=buyer] .callout{background:var(--soft);border-color:var(--line)}
body[data-app=buyer] :is(.callout h3,.steps h3){color:var(--ink)}
body[data-app=buyer] :is(.callout p,.steps p){color:var(--muted);font-size:12px}
body[data-app=buyer] .fine{font-size:11px}
body[data-app=buyer] th{background:var(--soft);color:var(--muted);font-size:11px}
body[data-app=buyer] td{border-color:var(--line);color:var(--ink);font-size:12px}
body[data-app=buyer] tbody tr:hover{background:var(--soft)}
body[data-app=buyer] .notice{font-size:12px}
body[data-app=buyer] :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:960px){
  body[data-app=buyer] .buyer-header-inner{gap:16px;padding:0 22px}
  body[data-app=buyer] .buyer-brand>small{display:none}
  body[data-app=buyer] .buyer-nav{gap:0}
  body[data-app=buyer] .buyer-nav button{padding:0 12px;font-size:12px}
  body[data-app=buyer] .buyer-content{padding:24px 22px 18px}
  body[data-app=buyer] .buyer-workspace{grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr);gap:18px}
  body[data-app=buyer] .buyer-composer-head{padding-left:20px;padding-right:20px}
  body[data-app=buyer] .composer .panel-body{padding-left:20px;padding-right:20px}
  body[data-app=buyer] .buyer-stage-body{padding-left:18px;padding-right:18px}
  body[data-app=buyer] .buyer-result-preview img{height:180px}
  body[data-app=buyer] .buyer-results.single img{height:410px}
  body[data-app=buyer] .buyer-footer{padding-left:22px;padding-right:22px}
}
@media(max-width:760px){
  body[data-app=buyer] .buyer-header-inner{min-height:0;padding:14px 16px 0;gap:13px 8px;flex-wrap:wrap;justify-content:space-between}
  body[data-app=buyer] .buyer-brand img{width:29px;height:29px}
  body[data-app=buyer] .buyer-brand>span{font-size:21px;max-width:130px}
  body[data-app=buyer] .buyer-nav{order:3;flex-basis:100%;gap:0;justify-content:flex-start;margin:0 -4px}
  body[data-app=buyer] .buyer-nav button{flex:1;min-height:44px;padding:10px 8px;font-size:12px}
  body[data-app=buyer] .buyer-nav button.active:after{left:12px;right:12px}
  body[data-app=buyer] .buyer-tools{gap:4px}
  body[data-app=buyer] .buyer-tools .buyer-topup{font-size:11px;padding:7px 9px;margin-left:0}
  body[data-app=buyer] .buyer-tools .theme-switch,body[data-app=buyer] .buyer-account{width:34px;height:36px}
  body[data-app=buyer] .buyer-content{padding:18px 14px}
  body[data-app=buyer] .buyer-workspace{grid-template-columns:minmax(0,1fr);gap:18px}
  body[data-app=buyer] .buyer-composer-head{padding:19px 18px 0}
  body[data-app=buyer] .buyer-composer-head h1{font-size:19px}
  body[data-app=buyer] .composer .panel-body{padding:18px;gap:16px}
  body[data-app=buyer] :is(.field>input,.field>textarea,.field>select,.input){font-size:16px}
  body[data-app=buyer] .field>span{font-size:12px}
  body[data-app=buyer] .prompt-input{font-size:16px!important;min-height:114px!important;height:114px}
  body[data-app=buyer] .buyer-stage-head{padding:18px}
  body[data-app=buyer] .buyer-stage-head h2{font-size:17px}
  body[data-app=buyer] .buyer-stage-body{padding:0 16px 16px}
  body[data-app=buyer] .buyer-canvas-empty{min-height:270px;padding:30px 18px}
  body[data-app=buyer] .buyer-template-preview>img{height:320px}
  body[data-app=buyer] .buyer-results{gap:12px}
  body[data-app=buyer] .buyer-result-preview img{height:180px}
  body[data-app=buyer] .buyer-results.single img{height:340px}
  body[data-app=buyer] .buyer-footer{padding:0 17px 22px;align-items:flex-start;font-size:10px}
  body[data-app=buyer] .buyer-footer>div{gap:8px 12px}
  body[data-app=buyer] .page-heading{gap:12px}
  body[data-app=buyer] .page-heading h1{font-size:22px}
  body[data-app=buyer] .subheading{font-size:12px}
  body[data-app=buyer] .template-art{height:180px}
  body[data-app=buyer] .template-info h3{font-size:13px}
  body[data-app=buyer] .template-info p{font-size:11px}
  body[data-app=buyer] .template-bottom{align-items:flex-start;flex-direction:column}
  body[data-app=buyer] .search input{font-size:16px}
  body[data-app=buyer] .modal-body .button{font-size:12px}
  body[data-app=buyer] .work-images{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Buyer dialogue canvas. All rules remain outside the merchant's style scope. */
body[data-app=buyer] .buyer-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body[data-app=buyer] .buyer-chat-page{height:100dvh;min-height:0;overflow:hidden}
body[data-app=buyer] .buyer-chat-page .buyer-header{flex-shrink:0}
body[data-app=buyer] .buyer-chat-page .buyer-header-inner{max-width:1480px;min-height:66px}
body[data-app=buyer] .buyer-chat-page .buyer-content{display:flex;flex-direction:column;min-height:0;max-width:1480px;padding:18px 24px 10px}
body[data-app=buyer] .buyer-chat-page .buyer-footer{max-width:1480px;flex-shrink:0;padding:0 25px 10px;font-size:10px}
body[data-app=buyer] .chat-service-notice{flex-shrink:0;margin-bottom:12px;padding:9px 13px}
body[data-app=buyer] .chat-workbench{display:grid;grid-template-columns:232px minmax(0,1fr);gap:14px;flex:1;min-height:0}
body[data-app=buyer] :is(.chat-history,.chat-main){background:var(--paper);border:1px solid var(--line);border-radius:18px;min-width:0;min-height:0;box-shadow:0 2px 10px #14201503}
body[data-app=buyer] .chat-history{display:flex;flex-direction:column;overflow:hidden;padding:12px}
body[data-app=buyer] .chat-history-head{display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px}
body[data-app=buyer] .chat-history-head h2{font-size:14px;font-weight:600}
body[data-app=buyer] .chat-history-head .icon-button{padding:7px}
body[data-app=buyer] .chat-history-head svg{width:15px;height:15px}
body[data-app=buyer] .chat-new{display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;background:var(--ink);color:var(--paper);border-radius:11px;font-size:12px;font-weight:550;flex-shrink:0}
body[data-app=buyer] .chat-new:hover{filter:brightness(1.12)}
body[data-app=buyer] .chat-new svg{width:16px;height:16px}
body[data-app=buyer] .chat-history-search{display:flex;align-items:center;gap:8px;background:var(--page);border:1px solid var(--line);border-radius:9px;padding:9px;margin:12px 0;flex-shrink:0;color:var(--muted)}
body[data-app=buyer] .chat-history-search>svg{width:14px;height:14px}
body[data-app=buyer] .chat-history-search input{min-width:0;width:100%;background:transparent;border:0;font-size:12px;outline:none;color:var(--ink)}
body[data-app=buyer] .chat-history-search:focus-within{outline:2px solid var(--green);outline-offset:2px}
body[data-app=buyer] .chat-history-search input:focus-visible{outline:0}
body[data-app=buyer] .chat-history-items{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px}
body[data-app=buyer] .chat-history-items.mobile{max-height:60dvh;min-height:220px}
body[data-app=buyer] .chat-history-row{position:relative;display:flex;align-items:stretch;flex-shrink:0;border:1px solid transparent;border-radius:11px;min-width:0}
body[data-app=buyer] .chat-history-row:hover{background:var(--page)}
body[data-app=buyer] .chat-history-row.selected{background:var(--soft);border-color:var(--line)}
body[data-app=buyer] .chat-history-item{display:block;flex:1;min-width:0;border:0;border-radius:11px;padding:12px 10px;text-align:left;color:var(--ink);background:transparent}
body[data-app=buyer] .chat-history-tools{display:none;position:absolute;right:6px;top:8px;gap:2px;background:inherit}
body[data-app=buyer] .chat-history-row:is(:hover,:focus-within) .chat-history-tools{display:flex}
body[data-app=buyer] .chat-history-tools .icon-button{padding:5px}
body[data-app=buyer] .chat-history-tools svg{width:13px;height:13px}
body[data-app=buyer] .chat-history-row:is(:hover,:focus-within) .chat-history-meta{padding-right:52px}
body[data-app=buyer] .chat-history-title{display:flex;align-items:center;gap:7px;min-width:0}
body[data-app=buyer] .chat-history-title svg{width:14px;height:14px;color:var(--muted)}
body[data-app=buyer] .chat-history-title strong{font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-app=buyer] .chat-history-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:7px 0 5px;font-size:10px;color:var(--muted)}
body[data-app=buyer] .chat-history-item>small{display:block;font-size:10px;line-height:1.5;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body[data-app=buyer] .chat-status-dot{display:block;width:5px;height:5px;border-radius:50%;background:var(--green);flex-shrink:0}
body[data-app=buyer] .chat-status-dot.pending{background:#b99a55}
body[data-app=buyer] .chat-status-dot.failed{background:var(--buyer-danger)}
body[data-app=buyer] .chat-history-empty{padding:42px 8px;text-align:center;color:var(--muted)}
body[data-app=buyer] .chat-history-empty>svg{width:23px;height:23px;opacity:.6;margin-bottom:12px}
body[data-app=buyer] .chat-history-empty p{font-size:12px;margin-bottom:7px}
body[data-app=buyer] .chat-history-empty span{font-size:10px;line-height:1.7}
body[data-app=buyer] .chat-history-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);padding:12px 3px 2px;border-top:1px solid var(--line);margin-top:10px;flex-shrink:0}
body[data-app=buyer] .chat-history-footer .text-button{font-size:10px}
body[data-app=buyer] .chat-history-footer:has(> :only-child){justify-content:center}
body[data-app=buyer] .chat-main{position:relative;display:flex;flex-direction:column;overflow:hidden}
body[data-app=buyer] .chat-main-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;border-bottom:1px solid var(--line);flex-shrink:0}
body[data-app=buyer] .chat-main-head h1{font-size:18px;font-weight:600;line-height:1.5}
body[data-app=buyer] .chat-main-head p{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.6}
body[data-app=buyer] .chat-title-wrap{display:flex;align-items:center;gap:8px;min-width:0}
body[data-app=buyer] .chat-head-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
body[data-app=buyer] .chat-head-actions svg{width:16px;height:16px}
body[data-app=buyer] .chat-mobile-history{display:none}
body[data-app=buyer] .chat-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 26px 12px;outline-offset:-3px}
body[data-app=buyer] .chat-welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 12px;gap:12px}
body[data-app=buyer] .chat-welcome-icon{height:48px;width:48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--soft);margin-bottom:4px}
body[data-app=buyer] .chat-welcome-icon svg{width:22px;height:22px}
body[data-app=buyer] .chat-welcome h2{font-size:25px;font-weight:600;line-height:1.5;letter-spacing:-.7px}
body[data-app=buyer] .chat-welcome>p{font-size:12px;line-height:1.9;color:var(--muted);max-width:390px}
body[data-app=buyer] .chat-welcome>small{font-size:10px;color:var(--muted);line-height:1.7}
body[data-app=buyer] .chat-template-hint{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;max-width:360px;min-width:0;padding:9px 12px 9px 9px;margin:5px 0;background:var(--paper);text-align:left}
body[data-app=buyer] .chat-template-hint:hover{background:var(--soft)}
body[data-app=buyer] .chat-template-hint>img{width:52px;height:45px;border-radius:7px;flex-shrink:0}
body[data-app=buyer] .chat-template-hint>span{display:block;min-width:0}
body[data-app=buyer] .chat-template-hint strong{display:block;font-size:12px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body[data-app=buyer] .chat-template-hint small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
body[data-app=buyer] .chat-template-hint>svg{width:14px;height:14px;margin-left:5px;color:var(--muted)}
body[data-app=buyer] .chat-thread{max-width:920px;margin:0 auto}
body[data-app=buyer] .chat-load-older{display:block;margin:0 auto 22px;font-size:11px;color:var(--muted);padding:8px 14px;border:1px solid var(--line);border-radius:20px}
body[data-app=buyer] .chat-turn{display:flex;flex-direction:column;gap:21px;margin-bottom:32px;scroll-margin-top:16px}
body[data-app=buyer] .chat-turn:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:12px}
body[data-app=buyer] .chat-user{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:10px}
body[data-app=buyer] .chat-avatar{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:50%;background:var(--soft);color:var(--muted);margin-top:4px}
body[data-app=buyer] .chat-avatar>svg{width:15px;height:15px}
body[data-app=buyer] .chat-avatar.assistant{background:transparent}
body[data-app=buyer] .chat-avatar>img{width:28px;height:28px;border-radius:8px}
body[data-app=buyer] .chat-user-content{max-width:82%;min-width:0;display:flex;flex-direction:column;align-items:flex-end;gap:7px}
body[data-app=buyer] .chat-message-meta{display:flex;align-items:center;gap:8px;font-size:10px;line-height:1.6;color:var(--muted);min-height:20px}
body[data-app=buyer] .chat-bubble{background:var(--soft);border:1px solid var(--line);padding:12px 15px;border-radius:17px 17px 4px 17px;min-width:0;max-width:100%;text-align:left}
body[data-app=buyer] .chat-bubble>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85}
body[data-app=buyer] .chat-turn.is-selected .chat-bubble{border-color:var(--muted)}
body[data-app=buyer] .chat-bubble-references{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px;margin-bottom:9px}
body[data-app=buyer] .chat-reference-image{padding:0;border-radius:9px;overflow:hidden;cursor:zoom-in;border:1px solid var(--line)}
body[data-app=buyer] .chat-reference-image img{width:72px;height:72px;object-fit:cover;background:var(--paper);display:block}
body[data-app=buyer] .chat-bubble-references .chat-reference-image:only-child img{width:88px;height:88px;object-fit:contain}
body[data-app=buyer] .chat-expired-reference{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}
body[data-app=buyer] .chat-user-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 12px;font-size:10px;line-height:1.6;color:var(--muted)}
body[data-app=buyer] .chat-user-actions .text-button{font-size:10px;color:var(--muted)}
body[data-app=buyer] .chat-user-actions svg{width:12px;height:12px}
body[data-app=buyer] .chat-assistant{display:flex;align-items:flex-start;gap:10px}
body[data-app=buyer] .chat-assistant-content{flex:1;min-width:0}
body[data-app=buyer] .chat-assistant-content>.chat-message-meta{margin-bottom:10px}
body[data-app=buyer] .chat-message-meta .badge{font-size:9px;padding:2px 6px}
body[data-app=buyer] .chat-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:570px;align-items:start}
body[data-app=buyer] .chat-gallery.single{grid-template-columns:minmax(0,1fr);max-width:340px}
body[data-app=buyer] .chat-result{margin:0;min-width:0}
body[data-app=buyer] .chat-result-image{padding:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;width:100%;display:block;background:var(--page);cursor:zoom-in}
body[data-app=buyer] .chat-result-image img{width:100%;height:auto;max-height:360px;aspect-ratio:1;object-fit:contain}
body[data-app=buyer] .chat-result-image.landscape img{aspect-ratio:3/2}
body[data-app=buyer] .chat-result-image.portrait img{aspect-ratio:2/3}
body[data-app=buyer] .chat-result figcaption{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:8px 1px 0}
body[data-app=buyer] .chat-result figcaption .text-button{font-size:11px;color:var(--ink)}
body[data-app=buyer] .chat-result figcaption svg{width:13px;height:13px}
body[data-app=buyer] .chat-result-missing{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:140px;aspect-ratio:1.3;background:var(--page);border:1px dashed var(--line);border-radius:13px;color:var(--muted);text-align:center;padding:12px;font-size:11px;line-height:1.6}
body[data-app=buyer] .chat-result-missing>svg{width:22px;height:22px}
body[data-app=buyer] .chat-result-missing.pending>svg{animation:spin 1.2s linear infinite}
body[data-app=buyer] .chat-job-status{font-size:11px;line-height:1.8;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}
body[data-app=buyer] .chat-job-status.failed{color:var(--buyer-danger);padding:12px 15px;background:var(--page);border:1px solid var(--line);border-radius:12px}
body[data-app=buyer] .chat-history-note{font-size:10px;line-height:1.7;text-align:center;color:var(--muted);padding:0 8px 6px}
body[data-app=buyer] .chat-compose-wrap{position:relative;flex-shrink:0;padding:12px 26px 13px;background:var(--paper)}
body[data-app=buyer] .chat-composer{position:relative;max-width:820px;margin:0 auto;border:1px solid var(--line);border-radius:23px;background:var(--paper);padding:12px 14px 10px;box-shadow:0 5px 24px #18241709}
body[data-app=buyer] .chat-composer:focus-within{border-color:var(--muted)}
body[data-app=buyer] .chat-composer.is-drop-target{outline:2px dashed var(--green);outline-offset:-5px;background:var(--soft)}
body[data-app=buyer] .chat-drop-overlay{display:none;position:absolute;inset:0;z-index:2;border-radius:inherit;background:color-mix(in srgb,var(--paper) 88%,transparent);color:var(--green);font-size:13px;font-weight:550;pointer-events:none;align-items:center;justify-content:center;gap:8px}
body[data-app=buyer] .chat-drop-overlay>svg{width:20px;height:20px}
body[data-app=buyer] .chat-composer.is-drop-target .chat-drop-overlay{display:flex}
body[data-app=buyer] .chat-prompt{display:block;box-sizing:border-box;width:100%;min-height:70px;max-height:160px;padding:8px 5px;font-size:14px;line-height:1.75;color:var(--ink);background:transparent;border:0;resize:none;overflow-y:auto;box-shadow:none}
body[data-app=buyer] .chat-prompt::placeholder{color:var(--muted);opacity:.8}
body[data-app=buyer] .chat-prompt:focus-visible{outline:none}
body[data-app=buyer] .chat-compose-tools{display:flex;align-items:center;gap:7px;padding-top:10px;margin-top:3px;border-top:1px solid var(--line);min-width:0}
body[data-app=buyer] .chat-attach{position:relative;display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:50%;color:var(--muted);cursor:pointer}
body[data-app=buyer] .chat-attach:hover{background:var(--soft)}
body[data-app=buyer] .chat-attach input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
body[data-app=buyer] .chat-attach:focus-within{outline:2px solid var(--green);outline-offset:2px}
body[data-app=buyer] .chat-attach:has(input:disabled){opacity:.5;cursor:not-allowed}
body[data-app=buyer] .chat-attach:has(input:disabled) input{cursor:not-allowed}
body[data-app=buyer] .chat-template-select{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:18px;padding:5px 7px 5px 9px;min-width:0;max-width:230px;flex:0 1 230px}
body[data-app=buyer] .chat-template-select>svg{width:14px;height:14px;color:var(--muted)}
body[data-app=buyer] .chat-template-select>select{width:100%;min-width:0;background:transparent;border:0;font-size:12px;color:var(--ink);padding:2px 0;white-space:nowrap;text-overflow:ellipsis}
body[data-app=buyer] .chat-settings{position:relative;flex-shrink:0}
body[data-app=buyer] .chat-settings>summary{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:18px;padding:7px 10px;list-style:none;font-size:11px;white-space:nowrap;cursor:pointer;color:var(--ink)}
body[data-app=buyer] .chat-settings>summary::-webkit-details-marker{display:none}
body[data-app=buyer] .chat-settings>summary:hover{background:var(--soft)}
body[data-app=buyer] .chat-settings>summary>svg{width:13px;height:13px}
body[data-app=buyer] .chat-settings-panel{position:absolute;bottom:calc(100% + 12px);left:0;width:300px;max-width:calc(100vw - 64px);padding:17px;display:grid;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:0 10px 32px #0002;z-index:50}
body[data-app=buyer] .chat-settings-panel>p{color:var(--muted);font-size:11px;line-height:1.7}
body[data-app=buyer] .chat-setting-info{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}
body[data-app=buyer] .chat-setting-info>strong{font-size:12px;font-weight:500;color:var(--ink);text-align:right;overflow-wrap:anywhere}
body[data-app=buyer] .chat-segment{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body[data-app=buyer] .chat-segment>button{display:grid;gap:3px;justify-items:center;padding:9px 6px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--muted);line-height:1.4}
body[data-app=buyer] .chat-segment>button>b{font-size:13px;font-weight:500;color:var(--ink)}
body[data-app=buyer] .chat-segment>button>small{font-size:10px}
body[data-app=buyer] .chat-segment>button.active{border-color:var(--green);background:var(--soft)}
body[data-app=buyer] .chat-segment>button.active>b{color:var(--green)}
body[data-app=buyer] .chat-segment>button:disabled{opacity:.55}
body[data-app=buyer] .chat-tool-button{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:50%;color:var(--muted)}
body[data-app=buyer] .chat-tool-button:hover{background:var(--soft)}
body[data-app=buyer] .chat-tool-button>svg{width:17px;height:17px}
body[data-app=buyer] .chat-tool-button:disabled{opacity:.5}
body[data-app=buyer] .chat-credit{display:inline-flex;align-items:center;gap:5px;border-radius:18px;background:var(--soft);color:var(--green);font-size:11px;padding:7px 9px;white-space:nowrap;flex-shrink:0}
body[data-app=buyer] .chat-credit>svg{height:14px;width:14px}
body[data-app=buyer] .chat-send{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;margin-left:auto;border-radius:50%;background:var(--ink);color:var(--paper);border:1px solid var(--ink)}
body[data-app=buyer] .chat-send>svg{height:20px;width:20px}
body[data-app=buyer] .chat-send:hover{filter:brightness(1.15)}
body[data-app=buyer] .chat-send:disabled{background:var(--soft);color:var(--muted);border-color:var(--line);opacity:.65}
body[data-app=buyer] .chat-composer[aria-busy=true] .chat-send>svg,body[data-app=buyer] .chat-composer.is-uploading .chat-attach>svg{animation:spin 1.2s linear infinite}
body[data-app=buyer] .chat-compose-caption{display:flex;justify-content:space-between;gap:10px;max-width:810px;margin:8px auto 0;font-size:10px;color:var(--muted);line-height:1.6}
body[data-app=buyer] .chat-references{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;padding:4px 3px 9px}
body[data-app=buyer] .chat-reference{position:relative;margin:0;width:58px;height:58px;flex-shrink:0;border:1px solid var(--line);border-radius:9px;background:var(--page);overflow:hidden}
body[data-app=buyer] .chat-reference>img{width:100%;height:100%;object-fit:cover;display:block}
body[data-app=buyer] .chat-reference figcaption{position:absolute;left:0;right:0;bottom:0;padding:2px 0;font-size:9px;line-height:1.3;text-align:center;color:#fff;background:#0009}
body[data-app=buyer] .chat-reference-remove{position:absolute;top:2px;right:2px;display:grid;place-items:center;width:18px;height:18px;padding:0;border-radius:50%;background:#000a;color:#fff}
body[data-app=buyer] .chat-reference-remove>svg{width:11px;height:11px}
body[data-app=buyer] .chat-reference-remove:disabled{opacity:.4}
body[data-app=buyer] .chat-reference-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:1 1 220px;min-width:0;align-self:center}
body[data-app=buyer] .chat-reference-tools small{flex:1 1 100%;font-size:10px;line-height:1.6;color:var(--muted)}
body[data-app=buyer] .chat-tool-pill{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:16px;padding:6px 10px;font-size:11px;color:var(--ink);background:var(--paper);white-space:nowrap}
body[data-app=buyer] .chat-tool-pill:hover{background:var(--soft)}
body[data-app=buyer] .chat-tool-pill>svg{width:14px;height:14px;color:var(--muted)}
body[data-app=buyer] .chat-tool-pill:disabled{opacity:.5}
body[data-app=buyer] .compare-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-app=buyer] .compare-pair figure{margin:0;min-width:0}
body[data-app=buyer] .compare-pair img{width:100%;max-height:60dvh;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:var(--page)}
body[data-app=buyer] .compare-pair figcaption{margin-top:7px;font-size:11px;color:var(--muted);text-align:center}
body[data-app=buyer] .prompt-picker{display:grid;gap:4px}
body[data-app=buyer] .prompt-list{display:grid;gap:10px;max-height:52dvh;overflow-y:auto;padding-right:2px}
body[data-app=buyer] .prompt-item{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:var(--paper)}
body[data-app=buyer] .prompt-item-text{flex:1 1 260px;min-width:0}
body[data-app=buyer] .prompt-item-text h3{font-size:13px;font-weight:500}
body[data-app=buyer] .prompt-item-text p{font-size:12px;line-height:1.85;color:var(--muted);margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}
body[data-app=buyer] .prompt-item-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
body[data-app=buyer] .pill{display:inline-flex;align-items:center;border-radius:14px;padding:4px 9px;font-size:10px;color:var(--green);background:var(--soft)}
body[data-app=buyer] .chat-jump-latest{position:absolute;top:-32px;left:50%;transform:translateX(-50%);display:grid;place-items:center;border:1px solid var(--line);width:35px;height:35px;border-radius:50%;background:var(--paper);color:var(--ink);box-shadow:0 3px 12px #0001;z-index:2}
body[data-app=buyer] .buyer-canvas-focus :is(.buyer-header,.buyer-footer){display:none}
body[data-app=buyer] .buyer-canvas-focus .buyer-content{padding:12px;max-width:none}
@media(max-width:1100px){
  body[data-app=buyer] .chat-workbench{grid-template-columns:210px minmax(0,1fr);gap:12px}
  body[data-app=buyer] .chat-compose-wrap{padding-left:18px;padding-right:18px}
  body[data-app=buyer] .chat-template-select{max-width:180px}
  body[data-app=buyer] .chat-credit{padding:7px}
}
@media(max-width:1023px){
  body[data-app=buyer] .chat-workbench{grid-template-columns:minmax(0,1fr)}
  body[data-app=buyer] .chat-history{display:none}
  body[data-app=buyer] .chat-mobile-history{display:inline-flex;padding:7px;margin-left:-6px}
  body[data-app=buyer] .chat-template-select{max-width:260px;flex-basis:260px}
}
@media(max-width:760px){
  body[data-app=buyer] .buyer-chat-page .buyer-header-inner{min-height:0;padding-top:10px;gap:6px 8px}
  body[data-app=buyer] .buyer-chat-page .buyer-footer{display:none}
  body[data-app=buyer] .buyer-chat-page .buyer-content{padding:10px;min-height:0}
  body[data-app=buyer] .chat-main{border-radius:15px}
  body[data-app=buyer] .chat-main-head{padding:11px 13px;gap:6px}
  body[data-app=buyer] .chat-main-head h1{font-size:16px}
  body[data-app=buyer] .chat-main-head p{font-size:10px}
  body[data-app=buyer] .chat-head-actions{gap:0}
  body[data-app=buyer] .chat-head-actions .icon-button{padding:7px}
  body[data-app=buyer] .chat-messages{padding:16px 11px 8px}
  body[data-app=buyer] .chat-welcome{padding:20px 8px;gap:10px}
  body[data-app=buyer] .chat-welcome h2{font-size:21px}
  body[data-app=buyer] .chat-welcome>p{font-size:11px}
  body[data-app=buyer] .chat-template-hint{max-width:100%;gap:9px;padding:8px}
  body[data-app=buyer] .chat-template-hint strong{max-width:190px;font-size:11px}
  body[data-app=buyer] .chat-template-hint>img{width:45px;height:40px}
  body[data-app=buyer] .chat-avatar{width:25px;height:25px}
  body[data-app=buyer] .chat-avatar>img{width:24px;height:24px}
  body[data-app=buyer] :is(.chat-user,.chat-assistant){gap:7px}
  body[data-app=buyer] .chat-user-content{max-width:calc(100% - 32px)}
  body[data-app=buyer] .chat-bubble{padding:10px 12px}
  body[data-app=buyer] .chat-bubble>p{font-size:13px}
  body[data-app=buyer] .chat-gallery{gap:9px}
  body[data-app=buyer] .chat-gallery.single{max-width:260px}
  body[data-app=buyer] .chat-result figcaption{gap:3px 8px}
  body[data-app=buyer] .chat-result figcaption .text-button{font-size:10px}
  body[data-app=buyer] .chat-result-missing{min-height:110px;font-size:10px}
  body[data-app=buyer] .chat-compose-wrap{padding:8px 9px max(10px,env(safe-area-inset-bottom))}
  body[data-app=buyer] .chat-composer{padding:9px 10px 8px;border-radius:20px}
  body[data-app=buyer] .chat-prompt{font-size:16px;min-height:64px;max-height:115px;padding:7px 3px}
  body[data-app=buyer] .chat-compose-tools{flex-wrap:wrap;gap:7px 6px;padding-top:8px}
  body[data-app=buyer] .chat-attach{order:0;width:30px;height:32px}
  body[data-app=buyer] .chat-tool-button{order:0;width:30px;height:32px}
  body[data-app=buyer] .chat-template-select{order:1;flex:1 1 calc(100% - 120px);max-width:none;min-width:0;padding:5px 6px}
  body[data-app=buyer] .chat-template-select>select{font-size:12px}
  body[data-app=buyer] .chat-send{order:2;margin-left:0;width:34px;height:34px}
  body[data-app=buyer] .chat-settings{order:3;margin-left:0}
  body[data-app=buyer] .chat-settings-panel{left:0;right:auto}
  body[data-app=buyer] .chat-settings>summary{font-size:11px;padding:6px 9px}
  body[data-app=buyer] .chat-credit{order:4;font-size:11px;margin-left:auto;padding:6px 9px}
  body[data-app=buyer] .chat-compose-caption{justify-content:center;font-size:10px;margin-top:6px}
  body[data-app=buyer] .chat-compose-caption>span:last-child{display:none}
  body[data-app=buyer] .chat-reference{width:48px;height:48px}
  body[data-app=buyer] .chat-reference-tools{flex-basis:100%}
  body[data-app=buyer] .chat-tool-pill{padding:6px 9px;font-size:11px}
  /* Touch screens have no hover: the rename/delete tools stay visible on the selected dialogue. */
  body[data-app=buyer] .chat-history-row.selected .chat-history-tools{display:flex}
  body[data-app=buyer] .chat-history-row.selected .chat-history-meta{padding-right:52px}
  body[data-app=buyer] .compare-pair{grid-template-columns:minmax(0,1fr)}
  body[data-app=buyer] .compare-pair img{max-height:38dvh}
  body[data-app=buyer] .prompt-list{max-height:46dvh}
  body[data-app=buyer] .prompt-item{padding:13px}
  body[data-app=buyer] .prompt-item-actions{width:100%;justify-content:flex-start}
  body[data-app=buyer] .chat-history-search input{font-size:16px}
  body[data-app=buyer] .chat-history-items.mobile{max-height:58dvh}
  body[data-app=buyer] .buyer-canvas-focus .buyer-content{padding:6px}
}
/* Short windows and on-screen keyboards use page scrolling instead of clipping controls. */
@media(max-height:600px){
  body[data-app=buyer] .buyer-chat-page{height:auto;min-height:100dvh;overflow:visible}
  body[data-app=buyer] .buyer-chat-page .buyer-content{flex:0 0 auto}
  body[data-app=buyer] .chat-workbench{height:520px;flex:none}
}
/* Private prompt gallery: shared merchant and buyer visual vocabulary. */
.effect-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.merchant-effects{padding:22px;grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}
.effect-card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.effect-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #16201a0c}
.effect-image{position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;overflow:hidden;background:var(--soft);text-align:left}
.effect-image>img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.effect-image:hover>img{transform:scale(1.025)}
.effect-tag{position:absolute;top:12px;left:12px;padding:5px 10px;border-radius:20px;background:#ffffffed;color:#34413a;font-size:11px;box-shadow:0 2px 12px #00000008}
.effect-zoom{position:absolute;bottom:12px;right:12px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#ffffffdd;color:#34413a}
.effect-placeholder{height:100%;min-height:170px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;color:var(--muted);background:linear-gradient(145deg,var(--soft),var(--page));font-size:12px}
.effect-placeholder svg{width:32px;height:32px;opacity:.55}
.effect-body{padding:16px}.effect-body h3{font-size:15px;line-height:1.5;overflow-wrap:anywhere;font-weight:600}.effect-body>p{font-size:12px;line-height:1.75;color:var(--muted);margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.effect-title{display:flex;align-items:start;gap:8px;justify-content:space-between}.effect-title .badge{flex-shrink:0}
.effect-use{width:100%;justify-content:space-between;margin-top:15px;border-radius:9px;background:var(--soft)}
.effect-actions{display:flex;gap:15px;align-items:center;border-top:1px solid var(--line);padding-top:13px;margin-top:14px}.effect-actions small{margin-right:auto;color:var(--muted);font-size:11px}
.effect-private{margin-top:15px;font-size:12px;color:var(--muted)}.effect-private summary{cursor:pointer}.effect-private p{padding-top:10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;line-height:1.7}
.effect-upload-preview{border:1px dashed var(--line);border-radius:12px;min-height:110px;display:grid;place-items:center;background:var(--soft);color:var(--muted);font-size:12px}.effect-upload-preview img{max-height:240px;object-fit:contain;margin:auto}
dialog:has(.prompt-picker),dialog:has(.effect-detail){width:min(1080px,94vw);max-width:94vw}
.effect-library-heading{padding:8px 0 24px}.effect-library-heading>span{font-size:10px;letter-spacing:2px;color:var(--muted)}.effect-library-heading h2{font-size:28px;font-weight:550;line-height:1.4;margin-top:9px}.effect-library-heading p{font-size:13px;color:var(--muted);margin-top:9px}
.effect-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-bottom:22px}.effect-toolbar .tabs{max-width:100%;overflow:auto}.effect-toolbar .search{max-width:100%;width:220px}
#prompt-list.effect-grid{max-height:55dvh;overflow:auto;padding:4px 4px 14px;scrollbar-gutter:stable}
.prompt-picker>.fine{margin-top:16px;line-height:1.7}
.effect-detail{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:28px;align-items:center}.effect-detail>img{max-height:65dvh;width:100%;object-fit:contain;border-radius:12px;background:var(--soft)}.effect-detail h2{font-size:24px;margin:14px 0}.effect-detail p{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:20px}.effect-detail .text-button{margin:16px}
body[data-app=buyer] .effect-selection{display:flex;gap:10px;align-items:center;background:var(--soft);border:1px solid var(--line);padding:9px 12px;border-radius:12px;margin:3px 0 8px}
.effect-selection>img{width:40px;height:44px;border-radius:7px;object-fit:cover}.effect-selection>span{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.effect-selection small{font-size:10px;color:var(--muted)}.effect-selection strong{font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-app=buyer] .chat-tool-button[data-action=prompt-library]{width:auto;gap:5px;padding:0 8px}.effect-library-label{font-size:11px;white-space:nowrap}
.effect-history-label{display:flex;gap:7px;align-items:center;font-size:12px;opacity:.8;margin-bottom:7px}
@media(max-width:720px){.effect-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.merchant-effects{padding:14px}.effect-body{padding:12px}.effect-body h3{font-size:13px}.effect-library-heading h2{font-size:22px}.effect-toolbar .search{width:100%}.effect-toolbar .tabs{width:100%}.effect-detail{grid-template-columns:1fr;gap:16px}.effect-detail>img{max-height:40dvh}#prompt-list.effect-grid{max-height:49dvh}.effect-title{flex-wrap:wrap}.effect-selection .text-button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.effect-card,.effect-image>img{transition:none}.effect-card:hover,.effect-image:hover>img{transform:none}}

.effect-grid{grid-auto-rows:max-content;align-content:start}#prompt-list.effect-grid{max-height:none;overflow:visible;scrollbar-gutter:auto}
.effect-image{height:clamp(160px,30dvh,300px);aspect-ratio:auto}

.sample-editor{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.sample-tile{padding:8px;border:1px solid var(--line);border-radius:12px;min-width:0}.sample-tile img{width:100%;height:140px;object-fit:contain;background:var(--soft)}.sample-tile .text-button{padding:7px;font-size:12px}.sample-view{min-width:0}.sample-view>img{width:100%;height:55dvh;object-fit:contain;background:var(--soft);border-radius:12px}.sample-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}@media(max-width:720px){.sample-view>img{height:38dvh}}

.photo-only-guide{display:flex;flex-direction:column;gap:8px;padding:22px 8px}.photo-only-guide span{color:var(--muted);font-size:14px}.chat-attach.photo-upload{width:auto;gap:8px;padding:10px 16px;border-radius:12px;background:var(--soft);font-size:15px}.chat-send.photo-generate{width:auto;border-radius:24px;padding:0 18px;gap:8px}.chat-template-select[hidden]{display:none}

/* Photo-only actions override compact icon controls on desktop and mobile. */
body[data-app=buyer] .chat-attach.photo-upload,
body[data-app=buyer] .chat-send.photo-generate{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:max-content;height:42px;gap:8px;padding:0 16px;white-space:nowrap;line-height:1.2;border-radius:12px;flex:0 0 auto}
body[data-app=buyer] .chat-attach.photo-upload>svg,
body[data-app=buyer] .chat-send.photo-generate>svg{width:20px;height:20px;flex-shrink:0}
body[data-app=buyer] .chat-attach.photo-upload>span,
body[data-app=buyer] .chat-send.photo-generate>span{white-space:nowrap;font-size:14px;line-height:1.2}
@media(max-width:720px){body[data-app=buyer] .chat-send.photo-generate{margin-left:auto}body[data-app=buyer] .photo-only-guide{padding:14px 4px}}

.image-expiry{display:block;background:#fff1cb;color:#885b00;padding:6px 10px;font-size:12px;line-height:1.5;border-radius:8px;margin-bottom:6px;font-variant-numeric:tabular-nums}

@media(max-width:720px){body[data-app=buyer] .work-images{grid-template-columns:minmax(0,1fr)}body[data-app=buyer] .work-image img{height:auto;max-height:440px;width:100%;object-fit:contain}body[data-app=buyer] .work-image .image-expiry{font-size:12px}}



/* Buyer gallery and merchant fulfillment workspace, September 2026. */
.creation-modes{display:flex;align-items:center;gap:8px;margin:0 0 12px;flex-wrap:wrap}
.creation-modes button{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border:1px solid var(--line);border-radius:24px;background:var(--paper);font-size:12px;color:var(--ink)}
.creation-modes button.active{background:#36563b;color:#fff;border-color:#36563b}
.creation-modes button svg{width:15px;height:15px}.creation-modes>span{margin-left:auto;font-size:11px;color:var(--muted)}
body[data-app=buyer] .chat-attach{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;padding:8px 12px;border-radius:12px}
body[data-app=buyer] .chat-attach>span{font-size:12px;white-space:nowrap}
.gallery-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:center;padding:38px;margin:8px 0 30px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(120deg,var(--soft),var(--paper));overflow:hidden}
.gallery-intro h2{font-size:clamp(27px,3vw,42px);font-weight:500;line-height:1.5;letter-spacing:-1px;color:var(--ink);margin:12px 0}
.gallery-intro>p{font-size:13px;line-height:1.9;color:var(--muted)}
.gallery-facts{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:24px;font-size:10px;color:var(--muted)}
.gallery-facts strong{font-size:22px;color:var(--ink);font-weight:500;margin-right:4px}
.gallery-showcase{display:flex;align-items:center;justify-content:center;min-width:0;gap:10px;height:270px;padding:8px}
.gallery-sample{position:relative;width:34%;height:220px;border-radius:14px;overflow:hidden;box-shadow:0 10px 28px #182b2526;background:var(--soft);padding:0;transition:transform .2s}
.gallery-sample.sample-0{transform:rotate(-7deg) translateY(10px)}.gallery-sample.sample-1{transform:translateY(-10px);height:244px;z-index:1}.gallery-sample.sample-2{transform:rotate(7deg) translateY(10px)}
.gallery-sample:only-child{width:82%;height:100%;transform:rotate(3deg)}
.gallery-sample:hover{transform:translateY(-12px)}.gallery-sample img{width:100%;height:100%;object-fit:cover}
.gallery-sample span{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#11221bc9);padding:28px 10px 12px;color:white;display:flex;gap:6px;justify-content:space-between;align-items:center;font-size:11px;line-height:1.5}
.gallery-sample svg{width:14px;flex-shrink:0}
.gallery-filter-row{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;font-size:12px;color:var(--muted)}
.gallery-filter-row .button[aria-pressed=true]{background:#36563b;color:#fff}
.effect-card{position:relative;border-radius:18px;box-shadow:0 4px 20px #16241c05}
.effect-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.effect-image{height:auto;aspect-ratio:4/3}
.effect-image>img{object-fit:contain;object-position:center}
.effect-grid:has(>.effect-card:only-child){grid-template-columns:minmax(0,860px)}
.effect-card:only-child{display:grid;grid-template-columns:1.2fr 1fr}
.effect-card:only-child .effect-body{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:28px;gap:12px}
.effect-card:only-child .effect-image{height:100%;min-height:250px}
.effect-card:only-child .effect-favorite{right:auto;left:12px;top:52px}
.effect-body{padding:18px}.effect-body h3{font-size:16px;line-height:1.5}
.effect-body>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px;line-height:1.7}
.effect-use{width:100%;justify-content:space-between;border-radius:10px;margin-top:14px}
.effect-favorite{position:absolute;top:12px;right:12px;z-index:2;width:36px;height:36px;display:grid;place-items:center;background:#ffffffed;color:#334c3a;border:1px solid #ffffff9c;border-radius:50%;box-shadow:0 2px 10px #0001}
.effect-favorite svg{width:17px;height:17px}.effect-favorite.saved{color:#bc4e65}.effect-favorite.saved svg{fill:currentColor}
.effect-zoom{right:12px;bottom:12px;top:auto}
dialog.wide:has(.prompt-picker){width:1120px}.prompt-picker .gallery-hero{padding:26px;gap:16px}.prompt-picker .gallery-intro h2{font-size:30px}
.full-effect-library .gallery-hero{padding:38px}.full-effect-library .gallery-intro h2{font-size:clamp(27px,3vw,42px)}
.fulfillment-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px 34px;background:#294a35;color:#f3f7eb;border-radius:18px;margin-bottom:24px}
.fulfillment-banner .eyebrow{color:#c8d9aa}.fulfillment-banner h2{font-size:26px;font-weight:500;margin:8px 0 12px}.fulfillment-banner p{color:#d0dec9;font-size:12px;line-height:1.8}.fulfillment-banner>.button{background:#e6f1d2;color:#284631;border:0;white-space:nowrap}
html[data-theme=dark] .fulfillment-banner>.button{background:#e6f1d2;color:#284631}
.fulfillment-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start}
.fulfillment-todos{padding:0 24px}.fulfillment-todo{display:flex;gap:12px;align-items:center;padding:23px 0;border-bottom:1px solid var(--line)}.fulfillment-todo:last-child{border-bottom:0}.fulfillment-todo>svg{width:18px;flex-shrink:0;color:#829b5c}.fulfillment-todo>div{flex:1;min-width:0}.fulfillment-todo h3{font-size:14px;font-weight:500;line-height:1.7}.fulfillment-todo p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:5px}.fulfillment-todo .text-button{white-space:nowrap}
.delivery-option{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.delivery-option h3{font-size:16px;font-weight:500;margin:13px 0 8px}.delivery-option p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:12px}
body[data-app=merchant] .navigation button{padding-top:10px;padding-bottom:10px}
button:focus-visible,a:focus-visible{outline:2px solid #849f63;outline-offset:4px}
@media(min-width:1450px){.full-effect-library .effect-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.fulfillment-columns{grid-template-columns:1fr}.gallery-hero{padding:26px;gap:12px}.gallery-showcase{height:235px}.gallery-sample{height:190px}.gallery-sample.sample-1{height:216px}}
@media(max-width:720px){.gallery-hero,.prompt-picker .gallery-hero,.full-effect-library .gallery-hero{grid-template-columns:1fr;padding:24px 20px;gap:20px;margin-bottom:22px}.gallery-intro h2,.prompt-picker .gallery-intro h2,.full-effect-library .gallery-intro h2{font-size:28px}.gallery-showcase{height:200px;padding:0 12px}.gallery-sample{height:166px}.gallery-sample.sample-1{height:188px}.gallery-facts{margin-top:16px}.effect-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.effect-body{padding:12px}.effect-body h3{font-size:13px}.effect-body>p{font-size:11px}.effect-use{font-size:11px;padding:9px 8px}.effect-favorite{width:32px;height:32px;right:8px;top:8px}.effect-tag{max-width:calc(100% - 52px)}.creation-modes{margin-bottom:9px}.creation-modes button{font-size:11px;padding:9px 12px}.creation-modes>span{display:none}.fulfillment-banner{align-items:flex-start;flex-direction:column;padding:24px}.fulfillment-banner h2{font-size:23px}.fulfillment-todos{padding:0 16px}.fulfillment-todo{flex-wrap:wrap;gap:10px}.fulfillment-todo .text-button{margin-left:28px}.fulfillment-todo>div{flex-basis:80%}body[data-app=merchant] .mobile-nav{justify-content:flex-start;overflow-x:auto}body[data-app=merchant] .mobile-nav button{flex:0 0 70px}.effect-toolbar .tabs{overflow-x:auto;flex-wrap:nowrap;max-width:100%}.effect-toolbar .tabs button{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.gallery-sample{transition:none}}
@media(max-width:720px){.effect-card:only-child{grid-template-columns:1fr}.effect-card:only-child .effect-body{padding:20px;gap:8px}.effect-card:only-child .effect-image{min-height:0;aspect-ratio:4/3}}
