:root { --ink:#20201d; --muted:#77756d; --line:#e9e5dc; --paper:#fbfaf7; --accent:#f36f4d; --accent-dark:#d95636; --soft:#fff0e9; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--ink); background:radial-gradient(circle at 20% 0%,#fff4ec 0,transparent 34rem),var(--paper); font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
button,input,textarea,select { font:inherit; } button { cursor:pointer; }
.shell { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:38px 0 28px; }
.topbar,.result-heading,.section-title,.switch-row { display:flex; align-items:center; justify-content:space-between; }
.topbar { margin-bottom:28px; } h1,h2,h3,p { margin:0; } h1 { margin-top:6px; font-size:31px; letter-spacing:-1px; } h2 { font-size:18px; } h3 { font-size:17px; }
.eyebrow { color:var(--accent-dark); font-size:11px; font-weight:800; letter-spacing:2px; } .status { border:1px solid var(--line); border-radius:999px; padding:8px 12px; color:var(--muted); font-size:12px; background:#fff; }
.card { background:rgba(255,255,255,.85); border:1px solid var(--line); border-radius:18px; box-shadow:0 10px 30px rgba(56,40,18,.035); }
.intro { display:flex; justify-content:space-between; align-items:center; padding:18px 22px; margin-bottom:22px; } .intro p { margin-top:6px; color:var(--muted); font-size:13px; } .pill { color:var(--accent-dark); background:var(--soft); padding:9px 12px; border-radius:999px; font-size:12px; white-space:nowrap; }
.layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; align-items:start; } .left-column,.right-column { display:flex; flex-direction:column; gap:18px; }
.left-column>.card,.category-card,.result-card { padding:22px; } .section-title { justify-content:flex-start; gap:12px; margin-bottom:18px; } .section-title p { margin-top:4px; color:var(--muted); font-size:12px; } .step { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; color:var(--accent-dark); background:var(--soft); font-size:11px; font-weight:800; }
.dropzone { min-height:180px; border:1.5px dashed #d9d2c8; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--muted); transition:.2s; } .dropzone:hover,.dropzone.dragover { border-color:var(--accent); background:#fff9f5; } .dropzone input { display:none; } .dropzone strong { color:var(--ink); font-size:14px; } .dropzone span { font-size:12px; } .upload-icon { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:#fff; background:var(--accent); font-size:22px; font-weight:300; }
.preview-wrap { display:flex; align-items:flex-start; gap:12px; margin-top:14px; } .preview-wrap img { max-height:210px; max-width:100%; border:1px solid var(--line); border-radius:12px; object-fit:contain; } .text-button,.ghost-button { border:0; background:transparent; color:var(--accent-dark); font-size:12px; padding:5px; } .ghost-button { border:1px solid var(--line); border-radius:8px; padding:7px 10px; color:var(--ink); background:#fff; }
label { color:var(--muted); font-size:12px; } textarea,input,select { display:block; width:100%; margin-top:8px; border:1px solid var(--line); border-radius:10px; outline:0; background:#fff; color:var(--ink); padding:11px 12px; } textarea { min-height:90px; resize:vertical; } textarea:focus,input:focus,select:focus { border-color:var(--accent); box-shadow:0 0 0 3px #fff0ea; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:13px; } .switch-row { justify-content:flex-start; gap:10px; margin-top:16px; } .switch-row strong { display:block; font-size:13px; } .switch-row small { display:block; color:var(--muted); font-size:11px; margin-top:3px; } .switch { position:relative; width:38px; height:22px; flex:none; } .switch input { display:none; } .switch span { position:absolute; inset:0; border-radius:20px; background:#d5d1c8; transition:.2s; } .switch span:after { content:""; position:absolute; width:16px; height:16px; left:3px; top:3px; border-radius:50%; background:#fff; transition:.2s; } .switch input:checked+span { background:var(--accent); } .switch input:checked+span:after { transform:translateX(16px); }
.primary-button { border:0; border-radius:12px; color:#fff; background:var(--accent); padding:14px 16px; font-weight:700; box-shadow:0 8px 18px rgba(243,111,77,.2); } .primary-button:hover { background:var(--accent-dark); } .primary-button:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; } .primary-button span { float:right; font-size:18px; line-height:14px; }
.category-list { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; } .category-item { border:1px solid var(--line); border-radius:10px; padding:10px; background:#fff; text-align:left; } .category-item.active { border-color:var(--accent); background:#fff7f3; } .category-item strong { display:block; font-size:13px; } .category-item small { color:var(--muted); font-size:11px; } .template-note { margin-top:14px; color:var(--muted); font-size:11px; line-height:1.6; }
.empty-state { border:1px dashed #ddd6ca; border-radius:18px; padding:58px 22px; text-align:center; color:var(--muted); } .empty-orb { width:46px; height:46px; margin:0 auto 14px; display:grid; place-items:center; border-radius:50%; color:var(--accent); background:var(--soft); font-size:23px; } .empty-state h3 { color:var(--ink); margin-bottom:7px; } .empty-state p { font-size:12px; }
.hidden { display:none !important; } .product-summary { background:#fff9f5; border-radius:11px; padding:13px; margin:16px 0; font-size:13px; line-height:1.65; } .product-summary b { color:var(--accent-dark); } .review-item { position:relative; border-top:1px solid var(--line); padding:15px 0 14px; } .review-meta { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; } .review-meta span { color:var(--accent-dark); font-size:11px; background:var(--soft); border-radius:999px; padding:4px 7px; } .review-meta button { border:0; background:none; color:var(--muted); font-size:11px; } .review-text { font-size:14px; line-height:1.8; white-space:pre-wrap; } .image-prompts { border-top:1px solid var(--line); margin-top:4px; padding-top:18px; } .image-prompts h3 { font-size:15px; } .hint { color:var(--muted); font-size:11px; line-height:1.6; margin:8px 0 12px; } .prompt-item { background:#f7f5f0; padding:11px 12px; border-radius:10px; margin-top:8px; font-size:12px; line-height:1.65; } .prompt-item strong { display:block; color:var(--accent-dark); margin-bottom:3px; }
footer { color:#aaa59b; text-align:center; font-size:11px; margin-top:22px; } .loading { opacity:.65; pointer-events:none; }
@media (max-width:800px) { .shell { width:min(100% - 24px,600px); padding-top:22px; } .layout { grid-template-columns:1fr; } .intro { align-items:flex-start; flex-direction:column; gap:12px; } .form-grid { grid-template-columns:1fr; } }

/* Multi-image workflow */
.field-label { display:block; margin-top:12px; }
.previews { display:grid; grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:10px; margin-top:12px; }
.preview-tile { position:relative; min-width:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.preview-tile img { display:block; width:100%; height:110px; object-fit:contain; }
.preview-tile button { position:absolute; right:5px; top:5px; width:26px; height:26px; border:0; border-radius:50%; color:#fff; background:rgba(32,32,29,.72); font-size:20px; line-height:20px; }
.preview-tile small { display:block; overflow:hidden; padding:5px 7px; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.category-card { min-height:130px; }
.prompt-item { display:flex; align-items:flex-start; gap:9px; cursor:pointer; }
.prompt-item input { width:auto; margin:3px 0 0; accent-color:var(--accent); }
.prompt-item span { flex:1; }
.prompt-item small { display:block; color:var(--ink); }
.image-actions { display:flex; align-items:end; gap:12px; margin-top:14px; }
.image-actions label { width:110px; }
.secondary-button { flex:1; padding:11px 14px; }
.image-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-top:14px; }
.generated-image { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.generated-image img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; background:#f5f3ee; }
.generated-image div { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; font-size:12px; }
.generated-image a { color:var(--accent-dark); text-decoration:none; }
.warning { margin:12px 0; padding:11px 13px; border:1px solid #f1c7b8; border-radius:10px; color:#8d3b24; background:#fff5f0; font-size:12px; line-height:1.6; }
@media (max-width:520px) { .image-actions { align-items:stretch; flex-direction:column; } .image-actions label { width:auto; } .preview-tile img { height:90px; } }

/* Batch slots */
.settings { padding:18px 22px; margin-bottom:18px; } .settings .hint { margin:12px 0 0; }
.settings-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; align-items:end; } .settings-grid .switch-row { margin:0 0 6px; }
.slots { display:flex; flex-direction:column; gap:16px; }
.slot { padding:18px 20px; }
.slot-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; } .slot-head .text-button { margin-left:auto; } .slot-state { font-size:12px; color:var(--muted); } .slot-state.bad { color:#c0392b; }
.slot-body { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:20px; align-items:start; }
.dropzone.mini { min-height:96px; padding:10px; text-align:center; }
.block-actions { margin:10px 0 4px; } .product-block + .product-block { margin-top:22px; padding-top:16px; border-top:2px solid var(--line); }
details.image-prompts summary { cursor:pointer; font-size:13px; color:var(--accent-dark); }
.bar { display:flex; gap:12px; align-items:center; margin:16px 0 4px; position:sticky; bottom:0; padding:12px 0; background:linear-gradient(transparent,var(--paper) 30%); } .bar .primary-button { flex:1; }
@media (max-width:800px) { .settings-grid { grid-template-columns:1fr 1fr; } .slot-body { grid-template-columns:1fr; } }
